]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
b040e242 VS |
41 | |
42 | ||
43 | ||
b040e242 VS |
44 | |
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | # Configure paths for GTK+ | |
53 | # Owen Taylor 97-11-3 | |
698dcdb6 | 54 | |
698dcdb6 VZ |
55 | |
56 | ||
57 | # Guess values for system-dependent variables and create Makefiles. | |
58 | # Generated automatically using autoconf version 2.13 | |
59 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
60 | # | |
61 | # This configure script is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy, distribute and modify it. | |
63 | ||
64 | # Defaults: | |
65 | ac_help= | |
66 | ac_default_prefix=/usr/local | |
67 | # Any additions from configure.in: | |
68 | ac_help="$ac_help | |
8168de4c | 69 | --enable-gui use GUI classes" |
1e6feb95 | 70 | ac_help="$ac_help |
8168de4c | 71 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
72 | ac_help="$ac_help |
73 | --with-gtk use GTK+" | |
74 | ac_help="$ac_help | |
75 | --with-motif use Motif/Lesstif" | |
76 | ac_help="$ac_help | |
77 | --with-mac use Mac OS X" | |
78 | ac_help="$ac_help | |
79 | --with-wine use WINE" | |
80 | ac_help="$ac_help | |
77e13408 | 81 | --with-msw use MS-Windows" |
698dcdb6 VZ |
82 | ac_help="$ac_help |
83 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 84 | ac_help="$ac_help |
b3e8d00a | 85 | --with-mgl use SciTech MGL" |
1725144d RR |
86 | ac_help="$ac_help |
87 | --with-microwin use MicroWindows" | |
f79bd02d JS |
88 | ac_help="$ac_help |
89 | --with-x11 use X11" | |
d8356fa3 VZ |
90 | ac_help="$ac_help |
91 | --enable-nanox use NanoX" | |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 102 | ac_help="$ac_help |
d0e9b150 | 103 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
104 | ac_help="$ac_help |
105 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-shared create shared library code" |
698dcdb6 | 112 | ac_help="$ac_help |
3a922bb4 | 113 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-optimise create optimised code" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
118 | ac_help="$ac_help |
119 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-debug_info create code with debugging information" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-profile create code with profiling information" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 134 | ac_help="$ac_help |
b3e8d00a | 135 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-no_deps create code without dependency information" |
54276ccf | 140 | ac_help="$ac_help |
b3e8d00a | 141 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 142 | ac_help="$ac_help |
b3e8d00a | 143 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-intl use internationalization system" |
698dcdb6 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
148 | ac_help="$ac_help |
149 | --enable-protocols use wxProtocol and derived classes" | |
150 | ac_help="$ac_help | |
151 | --enable-ftp use wxFTP (requires wxProtocol" | |
152 | ac_help="$ac_help | |
153 | --enable-http use wxHTTP (requires wxProtocol" | |
154 | ac_help="$ac_help | |
155 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-sockets use socket/network classes" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-datetime use wxDateTime class" |
1e6feb95 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-dialupman use dialup network classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-timer use wxTimer class" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-wave use wxWave class" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-fraction use wxFraction class" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
180 | ac_help="$ac_help |
181 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-longlong use wxLongLong class" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-geometry use geometry class" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-log use logging system" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-streams use wxStream etc classes" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-file use wxFile classes" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-ffile use wxFFile classes" |
1e6feb95 | 194 | ac_help="$ac_help |
a3a584a7 VZ |
195 | --enable-textbuf use wxTextBuffer class" |
196 | ac_help="$ac_help | |
197 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
202 | ac_help="$ac_help |
203 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 220 | ac_help="$ac_help |
69d27ff7 | 221 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 222 | ac_help="$ac_help |
b3e8d00a | 223 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
224 | ac_help="$ac_help |
225 | --enable-url use wxURL class" | |
226 | ac_help="$ac_help | |
227 | --enable-protocol use wxProtocol class" | |
228 | ac_help="$ac_help | |
229 | --enable-protocol-http HTTP support in wxProtocol" | |
230 | ac_help="$ac_help | |
231 | --enable-protocol-ftp FTP support in wxProtocol" | |
232 | ac_help="$ac_help | |
233 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-threads use threads" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-docview use document view architecture" |
698dcdb6 | 238 | ac_help="$ac_help |
3379ed37 | 239 | --enable-help use help subsystem" |
29fd3c0c VS |
240 | ac_help="$ac_help |
241 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
242 | ac_help="$ac_help |
243 | --enable-html use wxHTML sub-library" | |
244 | ac_help="$ac_help | |
245 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-constraints use layout-constraints system" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-printarch use printing architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-loggui use standard GUI logger" |
1e6feb95 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
256 | ac_help="$ac_help |
257 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-prologio use Prolog IO library" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-resources use wxWindows resources" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-metafile use win32 metafiles" |
698dcdb6 | 272 | ac_help="$ac_help |
24176f2c | 273 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-controls use all usual controls" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-accel use accelerators" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-button use wxButton class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-caret use wxCaret class" |
1e6feb95 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-choice use wxChoice class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-gauge use wxGauge class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-grid use wxGrid class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-imaglist use wxImageList class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-listbox use wxListBox class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-notebook use wxNotebook class" |
24176f2c GD |
308 | ac_help="$ac_help |
309 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-sash use wxSashWindow class" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-slider use wxSlider class" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-statline use wxStaticLine class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-stattext use wxStaticText class" |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
350 | ac_help="$ac_help |
351 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
352 | ac_help="$ac_help |
353 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 354 | ac_help="$ac_help |
b3e8d00a | 355 | --enable-commondlg use all common dialogs" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
362 | ac_help="$ac_help |
363 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
372 | ac_help="$ac_help |
373 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 374 | ac_help="$ac_help |
8168de4c | 375 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-tipdlg use startup tips" |
698dcdb6 | 378 | ac_help="$ac_help |
8168de4c | 379 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
380 | ac_help="$ac_help |
381 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 384 | ac_help="$ac_help |
8168de4c | 385 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-splines use spline drawing code" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 392 | ac_help="$ac_help |
8168de4c | 393 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 394 | ac_help="$ac_help |
b3e8d00a | 395 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 396 | ac_help="$ac_help |
8168de4c | 397 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
398 | ac_help="$ac_help |
399 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
400 | ac_help="$ac_help |
401 | --enable-palette use wxPalette class" | |
1e6feb95 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-image use wxImage class" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 406 | ac_help="$ac_help |
8168de4c | 407 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
408 | ac_help="$ac_help |
409 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 410 | ac_help="$ac_help |
8168de4c | 411 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 412 | ac_help="$ac_help |
8168de4c | 413 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
414 | ac_help="$ac_help |
415 | --enable-icocur use Windows ICO and CUR formats" | |
698dcdb6 VZ |
416 | ac_help="$ac_help |
417 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
418 | ac_help="$ac_help | |
419 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
420 | ac_help="$ac_help | |
421 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
422 | ac_help="$ac_help |
423 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
424 | ac_help="$ac_help | |
425 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
426 | ac_help="$ac_help | |
427 | --disable-gtktest Do not try to compile and run a test GTK program" | |
428 | ac_help="$ac_help | |
429 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
430 | ac_help="$ac_help | |
431 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
432 | ac_help="$ac_help | |
433 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
434 | ac_help="$ac_help |
435 | --with-x use the X Window System" | |
b040e242 VS |
436 | ac_help="$ac_help |
437 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
438 | |
439 | # Initialize some variables set by options. | |
440 | # The variables have the same names as the options, with | |
441 | # dashes changed to underlines. | |
698dcdb6 VZ |
442 | build=NONE |
443 | cache_file=./config.cache | |
10f2d63a | 444 | exec_prefix=NONE |
698dcdb6 | 445 | host=NONE |
10f2d63a | 446 | no_create= |
698dcdb6 | 447 | nonopt=NONE |
10f2d63a VZ |
448 | no_recursion= |
449 | prefix=NONE | |
450 | program_prefix=NONE | |
451 | program_suffix=NONE | |
452 | program_transform_name=s,x,x, | |
453 | silent= | |
454 | site= | |
455 | srcdir= | |
698dcdb6 | 456 | target=NONE |
10f2d63a VZ |
457 | verbose= |
458 | x_includes=NONE | |
459 | x_libraries=NONE | |
460 | bindir='${exec_prefix}/bin' | |
461 | sbindir='${exec_prefix}/sbin' | |
462 | libexecdir='${exec_prefix}/libexec' | |
463 | datadir='${prefix}/share' | |
464 | sysconfdir='${prefix}/etc' | |
465 | sharedstatedir='${prefix}/com' | |
466 | localstatedir='${prefix}/var' | |
467 | libdir='${exec_prefix}/lib' | |
468 | includedir='${prefix}/include' | |
469 | oldincludedir='/usr/include' | |
470 | infodir='${prefix}/info' | |
471 | mandir='${prefix}/man' | |
472 | ||
698dcdb6 VZ |
473 | # Initialize some other variables. |
474 | subdirs= | |
475 | MFLAGS= MAKEFLAGS= | |
476 | SHELL=${CONFIG_SHELL-/bin/sh} | |
477 | # Maximum number of lines to put in a shell here document. | |
478 | ac_max_here_lines=12 | |
10f2d63a VZ |
479 | |
480 | ac_prev= | |
481 | for ac_option | |
482 | do | |
698dcdb6 | 483 | |
10f2d63a VZ |
484 | # If the previous option needs an argument, assign it. |
485 | if test -n "$ac_prev"; then | |
486 | eval "$ac_prev=\$ac_option" | |
487 | ac_prev= | |
488 | continue | |
489 | fi | |
490 | ||
698dcdb6 VZ |
491 | case "$ac_option" in |
492 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
493 | *) ac_optarg= ;; | |
494 | esac | |
10f2d63a VZ |
495 | |
496 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
497 | ||
698dcdb6 | 498 | case "$ac_option" in |
10f2d63a VZ |
499 | |
500 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
501 | ac_prev=bindir ;; | |
502 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 503 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
504 | |
505 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 506 | ac_prev=build ;; |
10f2d63a | 507 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 508 | build="$ac_optarg" ;; |
10f2d63a VZ |
509 | |
510 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
511 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
512 | ac_prev=cache_file ;; | |
513 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
514 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 515 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
516 | |
517 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
518 | ac_prev=datadir ;; | |
519 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
520 | | --da=*) | |
698dcdb6 | 521 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
522 | |
523 | -disable-* | --disable-*) | |
698dcdb6 | 524 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 525 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
526 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
527 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
528 | fi | |
529 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
530 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
531 | |
532 | -enable-* | --enable-*) | |
698dcdb6 | 533 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 534 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
535 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
536 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
537 | fi | |
538 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
539 | case "$ac_option" in | |
540 | *=*) ;; | |
10f2d63a VZ |
541 | *) ac_optarg=yes ;; |
542 | esac | |
698dcdb6 | 543 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
544 | |
545 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
546 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
547 | | --exec | --exe | --ex) | |
548 | ac_prev=exec_prefix ;; | |
549 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
550 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
551 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 552 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
553 | |
554 | -gas | --gas | --ga | --g) | |
555 | # Obsolete; use --with-gas. | |
556 | with_gas=yes ;; | |
557 | ||
698dcdb6 VZ |
558 | -help | --help | --hel | --he) |
559 | # Omit some internal or obsolete options to make the list less imposing. | |
560 | # This message is too long to be a string in the A/UX 3.1 sh. | |
561 | cat << EOF | |
562 | Usage: configure [options] [host] | |
563 | Options: [defaults in brackets after descriptions] | |
564 | Configuration: | |
565 | --cache-file=FILE cache test results in FILE | |
566 | --help print this message | |
567 | --no-create do not create output files | |
568 | --quiet, --silent do not print \`checking...' messages | |
569 | --version print the version of autoconf that created configure | |
570 | Directory and file names: | |
571 | --prefix=PREFIX install architecture-independent files in PREFIX | |
572 | [$ac_default_prefix] | |
573 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
574 | [same as prefix] | |
575 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
576 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
577 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
578 | --datadir=DIR read-only architecture-independent data in DIR | |
579 | [PREFIX/share] | |
580 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
581 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
582 | [PREFIX/com] | |
583 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
584 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
585 | --includedir=DIR C header files in DIR [PREFIX/include] | |
586 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
587 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
588 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
589 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
590 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
591 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
592 | --program-transform-name=PROGRAM | |
593 | run sed PROGRAM on installed program names | |
594 | EOF | |
595 | cat << EOF | |
596 | Host type: | |
597 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
598 | --host=HOST configure for HOST [guessed] | |
599 | --target=TARGET configure for TARGET [TARGET=HOST] | |
600 | Features and packages: | |
601 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
602 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
603 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
604 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
605 | --x-includes=DIR X include files are in DIR | |
606 | --x-libraries=DIR X library files are in DIR | |
607 | EOF | |
608 | if test -n "$ac_help"; then | |
609 | echo "--enable and --with options recognized:$ac_help" | |
610 | fi | |
611 | exit 0 ;; | |
10f2d63a VZ |
612 | |
613 | -host | --host | --hos | --ho) | |
698dcdb6 | 614 | ac_prev=host ;; |
10f2d63a | 615 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 616 | host="$ac_optarg" ;; |
10f2d63a VZ |
617 | |
618 | -includedir | --includedir | --includedi | --included | --include \ | |
619 | | --includ | --inclu | --incl | --inc) | |
620 | ac_prev=includedir ;; | |
621 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
622 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 623 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
624 | |
625 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
626 | ac_prev=infodir ;; | |
627 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 628 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
629 | |
630 | -libdir | --libdir | --libdi | --libd) | |
631 | ac_prev=libdir ;; | |
632 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 633 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
636 | | --libexe | --libex | --libe) | |
637 | ac_prev=libexecdir ;; | |
638 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
639 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 640 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
643 | | --localstate | --localstat | --localsta | --localst \ | |
644 | | --locals | --local | --loca | --loc | --lo) | |
645 | ac_prev=localstatedir ;; | |
646 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
647 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
648 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 649 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
652 | ac_prev=mandir ;; | |
653 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 654 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -nfp | --nfp | --nf) | |
657 | # Obsolete; use --without-fp. | |
658 | with_fp=no ;; | |
659 | ||
660 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
661 | | --no-cr | --no-c) | |
662 | no_create=yes ;; | |
663 | ||
664 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
665 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
666 | no_recursion=yes ;; | |
667 | ||
668 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
669 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
670 | | --oldin | --oldi | --old | --ol | --o) | |
671 | ac_prev=oldincludedir ;; | |
672 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
673 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
674 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 675 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
678 | ac_prev=prefix ;; | |
679 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 680 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
683 | | --program-pre | --program-pr | --program-p) | |
684 | ac_prev=program_prefix ;; | |
685 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
686 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 687 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
690 | | --program-suf | --program-su | --program-s) | |
691 | ac_prev=program_suffix ;; | |
692 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
693 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 694 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -program-transform-name | --program-transform-name \ | |
697 | | --program-transform-nam | --program-transform-na \ | |
698 | | --program-transform-n | --program-transform- \ | |
699 | | --program-transform | --program-transfor \ | |
700 | | --program-transfo | --program-transf \ | |
701 | | --program-trans | --program-tran \ | |
702 | | --progr-tra | --program-tr | --program-t) | |
703 | ac_prev=program_transform_name ;; | |
704 | -program-transform-name=* | --program-transform-name=* \ | |
705 | | --program-transform-nam=* | --program-transform-na=* \ | |
706 | | --program-transform-n=* | --program-transform-=* \ | |
707 | | --program-transform=* | --program-transfor=* \ | |
708 | | --program-transfo=* | --program-transf=* \ | |
709 | | --program-trans=* | --program-tran=* \ | |
710 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 711 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
714 | | -silent | --silent | --silen | --sile | --sil) | |
715 | silent=yes ;; | |
716 | ||
717 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
718 | ac_prev=sbindir ;; | |
719 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
720 | | --sbi=* | --sb=*) | |
698dcdb6 | 721 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
722 | |
723 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
724 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
725 | | --sharedst | --shareds | --shared | --share | --shar \ | |
726 | | --sha | --sh) | |
727 | ac_prev=sharedstatedir ;; | |
728 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
729 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
730 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
731 | | --sha=* | --sh=*) | |
698dcdb6 | 732 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
733 | |
734 | -site | --site | --sit) | |
735 | ac_prev=site ;; | |
736 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 737 | site="$ac_optarg" ;; |
10f2d63a VZ |
738 | |
739 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
740 | ac_prev=srcdir ;; | |
741 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 742 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
745 | | --syscon | --sysco | --sysc | --sys | --sy) | |
746 | ac_prev=sysconfdir ;; | |
747 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
748 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 749 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 752 | ac_prev=target ;; |
10f2d63a | 753 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 754 | target="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
757 | verbose=yes ;; | |
758 | ||
698dcdb6 VZ |
759 | -version | --version | --versio | --versi | --vers) |
760 | echo "configure generated by autoconf version 2.13" | |
761 | exit 0 ;; | |
10f2d63a VZ |
762 | |
763 | -with-* | --with-*) | |
698dcdb6 | 764 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 765 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
766 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
767 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
768 | fi | |
10f2d63a | 769 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
770 | case "$ac_option" in |
771 | *=*) ;; | |
10f2d63a VZ |
772 | *) ac_optarg=yes ;; |
773 | esac | |
698dcdb6 | 774 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
775 | |
776 | -without-* | --without-*) | |
698dcdb6 | 777 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 778 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
779 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
780 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
781 | fi | |
782 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
783 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
784 | |
785 | --x) | |
786 | # Obsolete; use --with-x. | |
787 | with_x=yes ;; | |
788 | ||
789 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
790 | | --x-incl | --x-inc | --x-in | --x-i) | |
791 | ac_prev=x_includes ;; | |
792 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
793 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 794 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
795 | |
796 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
797 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
798 | ac_prev=x_libraries ;; | |
799 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
800 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 801 | x_libraries="$ac_optarg" ;; |
10f2d63a | 802 | |
698dcdb6 | 803 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
804 | ;; |
805 | ||
806 | *) | |
698dcdb6 VZ |
807 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
808 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
809 | fi | |
810 | if test "x$nonopt" != xNONE; then | |
811 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
812 | fi | |
813 | nonopt="$ac_option" | |
10f2d63a VZ |
814 | ;; |
815 | ||
816 | esac | |
817 | done | |
818 | ||
819 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
820 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
821 | fi | |
822 | ||
823 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
824 | ||
825 | # File descriptor usage: | |
826 | # 0 standard input | |
827 | # 1 file creation | |
828 | # 2 errors and warnings | |
829 | # 3 some systems may open it to /dev/tty | |
830 | # 4 used on the Kubota Titan | |
831 | # 6 checking for... messages and results | |
832 | # 5 compiler messages saved in config.log | |
833 | if test "$silent" = yes; then | |
834 | exec 6>/dev/null | |
835 | else | |
836 | exec 6>&1 | |
10f2d63a | 837 | fi |
698dcdb6 VZ |
838 | exec 5>./config.log |
839 | ||
840 | echo "\ | |
841 | This file contains any messages produced by compilers while | |
842 | running configure, to aid debugging if configure makes a mistake. | |
843 | " 1>&5 | |
10f2d63a | 844 | |
698dcdb6 VZ |
845 | # Strip out --no-create and --no-recursion so they do not pile up. |
846 | # Also quote any args containing shell metacharacters. | |
847 | ac_configure_args= | |
848 | for ac_arg | |
10f2d63a | 849 | do |
698dcdb6 VZ |
850 | case "$ac_arg" in |
851 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
852 | | --no-cr | --no-c) ;; | |
853 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
854 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
855 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
856 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
857 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
858 | esac |
859 | done | |
860 | ||
698dcdb6 VZ |
861 | # NLS nuisances. |
862 | # Only set these to C if already set. These must not be set unconditionally | |
863 | # because not all systems understand e.g. LANG=C (notably SCO). | |
864 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
865 | # Non-C LC_CTYPE values break the ctype check. | |
866 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
867 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
868 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
869 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 870 | |
698dcdb6 VZ |
871 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
872 | rm -rf conftest* confdefs.h | |
873 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
874 | echo > confdefs.h | |
10f2d63a | 875 | |
698dcdb6 VZ |
876 | # A filename unique to this package, relative to the directory that |
877 | # configure is in, which we can look for to find out if srcdir is correct. | |
878 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
879 | |
880 | # Find the source files, if location was not specified. | |
881 | if test -z "$srcdir"; then | |
882 | ac_srcdir_defaulted=yes | |
883 | # Try the directory containing this script, then its parent. | |
884 | ac_prog=$0 | |
698dcdb6 | 885 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
886 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
887 | srcdir=$ac_confdir | |
888 | if test ! -r $srcdir/$ac_unique_file; then | |
889 | srcdir=.. | |
890 | fi | |
891 | else | |
892 | ac_srcdir_defaulted=no | |
893 | fi | |
894 | if test ! -r $srcdir/$ac_unique_file; then | |
895 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 896 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 897 | else |
698dcdb6 | 898 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
899 | fi |
900 | fi | |
698dcdb6 | 901 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
902 | |
903 | # Prefer explicitly selected file to automatically selected ones. | |
904 | if test -z "$CONFIG_SITE"; then | |
905 | if test "x$prefix" != xNONE; then | |
906 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
907 | else | |
908 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
909 | fi | |
910 | fi | |
911 | for ac_site_file in $CONFIG_SITE; do | |
912 | if test -r "$ac_site_file"; then | |
698dcdb6 | 913 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
914 | . "$ac_site_file" |
915 | fi | |
916 | done | |
917 | ||
918 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
919 | echo "loading cache $cache_file" |
920 | . $cache_file | |
10f2d63a | 921 | else |
698dcdb6 VZ |
922 | echo "creating cache $cache_file" |
923 | > $cache_file | |
10f2d63a VZ |
924 | fi |
925 | ||
926 | ac_ext=c | |
698dcdb6 | 927 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 928 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
929 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
930 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
931 | cross_compiling=$ac_cv_prog_cc_cross | |
932 | ||
933 | ac_exeext= | |
934 | ac_objext=o | |
935 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
936 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
937 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
938 | ac_n= ac_c=' | |
939 | ' ac_t=' ' | |
940 | else | |
941 | ac_n=-n ac_c= ac_t= | |
942 | fi | |
10f2d63a | 943 | else |
698dcdb6 | 944 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 945 | fi |
698dcdb6 VZ |
946 | |
947 | ||
10f2d63a | 948 | |
7c66a493 VZ |
949 | ac_aux_dir= |
950 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
951 | if test -f $ac_dir/install-sh; then | |
952 | ac_aux_dir=$ac_dir | |
953 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
954 | break | |
955 | elif test -f $ac_dir/install.sh; then | |
956 | ac_aux_dir=$ac_dir | |
957 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
958 | break | |
959 | fi | |
960 | done | |
961 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 962 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 963 | fi |
698dcdb6 VZ |
964 | ac_config_guess=$ac_aux_dir/config.guess |
965 | ac_config_sub=$ac_aux_dir/config.sub | |
966 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 967 | |
698dcdb6 VZ |
968 | |
969 | # Do some error checking and defaulting for the host and target type. | |
970 | # The inputs are: | |
971 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
972 | # | |
973 | # The rules are: | |
974 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
975 | # same time. | |
976 | # 2. Host defaults to nonopt. | |
977 | # 3. If nonopt is not specified, then host defaults to the current host, | |
978 | # as determined by config.guess. | |
979 | # 4. Target and build default to nonopt. | |
980 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
981 | |
982 | # The aliases save the names the user supplied, while $host etc. | |
983 | # will get canonicalized. | |
698dcdb6 VZ |
984 | case $host---$target---$nonopt in |
985 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
986 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
987 | esac | |
988 | ||
989 | ||
990 | # Make sure we can run config.sub. | |
991 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
992 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
993 | fi | |
994 | ||
995 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
d8356fa3 | 996 | echo "configure:997: checking host system type" >&5 |
698dcdb6 VZ |
997 | |
998 | host_alias=$host | |
999 | case "$host_alias" in | |
1000 | NONE) | |
1001 | case $nonopt in | |
1002 | NONE) | |
1003 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1004 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1005 | fi ;; | |
1006 | *) host_alias=$nonopt ;; | |
1007 | esac ;; | |
1008 | esac | |
1009 | ||
1010 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1011 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1012 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1013 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1014 | echo "$ac_t""$host" 1>&6 | |
1015 | ||
1016 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
d8356fa3 | 1017 | echo "configure:1018: checking target system type" >&5 |
698dcdb6 VZ |
1018 | |
1019 | target_alias=$target | |
1020 | case "$target_alias" in | |
1021 | NONE) | |
1022 | case $nonopt in | |
1023 | NONE) target_alias=$host_alias ;; | |
1024 | *) target_alias=$nonopt ;; | |
1025 | esac ;; | |
1026 | esac | |
1027 | ||
1028 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1029 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1030 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1031 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1032 | echo "$ac_t""$target" 1>&6 | |
1033 | ||
1034 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
d8356fa3 | 1035 | echo "configure:1036: checking build system type" >&5 |
698dcdb6 VZ |
1036 | |
1037 | build_alias=$build | |
1038 | case "$build_alias" in | |
1039 | NONE) | |
1040 | case $nonopt in | |
1041 | NONE) build_alias=$host_alias ;; | |
1042 | *) build_alias=$nonopt ;; | |
1043 | esac ;; | |
1044 | esac | |
1045 | ||
1046 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1047 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1048 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1049 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1050 | echo "$ac_t""$build" 1>&6 | |
1051 | ||
1052 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1053 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1054 | NONENONEs,x,x, && | |
1055 | program_prefix=${target_alias}- | |
1056 | ||
698dcdb6 VZ |
1057 | |
1058 | ||
10f2d63a | 1059 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1060 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1061 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1062 | |
10f2d63a | 1063 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1064 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1065 | |
978f1259 RL |
1066 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1067 | ||
a0d927d1 | 1068 | WX_CURRENT=2 |
6426998c RL |
1069 | WX_REVISION=0 |
1070 | WX_AGE=0 | |
1071 | ||
698dcdb6 VZ |
1072 | |
1073 | ||
10f2d63a VZ |
1074 | USE_UNIX=1 |
1075 | USE_WIN32=0 | |
f9bc1684 | 1076 | USE_DOS=0 |
b12915c1 | 1077 | USE_BEOS=0 |
1216f52d | 1078 | USE_MAC=0 |
b12915c1 | 1079 | |
10f2d63a VZ |
1080 | USE_LINUX= |
1081 | USE_SGI= | |
1082 | USE_HPUX= | |
1083 | USE_SYSV= | |
1084 | USE_SVR4= | |
1085 | USE_AIX= | |
1086 | USE_SUN= | |
1087 | USE_SOLARIS= | |
1088 | USE_SUNOS= | |
1089 | USE_ALPHA= | |
1090 | USE_OSF= | |
1091 | USE_BSD= | |
f11bdd03 | 1092 | USE_DARWIN= |
10f2d63a | 1093 | USE_FREEBSD= |
95c8801c | 1094 | USE_OPENBSD= |
f6bcfd97 | 1095 | USE_NETBSD= |
10f2d63a VZ |
1096 | USE_VMS= |
1097 | USE_ULTRIX= | |
10f2d63a VZ |
1098 | USE_DATA_GENERAL= |
1099 | ||
ab9b9eab VZ |
1100 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1101 | ||
3f345b47 VZ |
1102 | CPP_MT_FLAG=-D_REENTRANT |
1103 | ||
f79bd02d | 1104 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1105 | |
1106 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1107 | DEFAULT_wxUSE_MAC=0 |
1108 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1109 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1110 | DEFAULT_wxUSE_MOTIF=0 |
1111 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1112 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1113 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1114 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1115 | |
1116 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1117 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1118 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1119 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1120 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1121 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1122 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1123 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1124 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1125 | |
d6a55c4b | 1126 | PROGRAM_EXT= |
3a922bb4 | 1127 | SO_SUFFIX=so |
d6a55c4b | 1128 | |
10f2d63a VZ |
1129 | case "${host}" in |
1130 | *-hp-hpux* ) | |
1131 | USE_HPUX=1 | |
1132 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1133 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1134 | SO_SUFFIX=sl |
698dcdb6 | 1135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1136 | #define __HPUX__ 1 |
1137 | EOF | |
1138 | ||
1139 | ;; | |
1140 | *-*-linux* ) | |
1141 | USE_LINUX=1 | |
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1143 | #define __LINUX__ 1 |
1144 | EOF | |
1145 | ||
1146 | TMP=`uname -m` | |
1147 | if test "x$TMP" = "xalpha"; then | |
1148 | USE_ALPHA=1 | |
698dcdb6 | 1149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1150 | #define __ALPHA__ 1 |
1151 | EOF | |
1152 | ||
1153 | fi | |
1154 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1155 | ;; | |
1156 | *-*-irix5* | *-*-irix6* ) | |
1157 | USE_SGI=1 | |
1158 | USE_SVR4=1 | |
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1160 | #define __SGI__ 1 |
1161 | EOF | |
1162 | ||
698dcdb6 | 1163 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1164 | #define __SVR4__ 1 |
1165 | EOF | |
1166 | ||
1167 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1168 | ;; | |
1169 | *-*-solaris2* ) | |
1170 | USE_SUN=1 | |
1171 | USE_SOLARIS=1 | |
1172 | USE_SVR4=1 | |
698dcdb6 | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1174 | #define __SUN__ 1 |
1175 | EOF | |
1176 | ||
698dcdb6 | 1177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1178 | #define __SOLARIS__ 1 |
1179 | EOF | |
1180 | ||
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1182 | #define __SVR4__ 1 |
1183 | EOF | |
1184 | ||
1185 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1186 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1187 | ;; |
1188 | *-*-sunos4* ) | |
1189 | USE_SUN=1 | |
1190 | USE_SUNOS=1 | |
1191 | USE_BSD=1 | |
698dcdb6 | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1193 | #define __SUN__ 1 |
1194 | EOF | |
1195 | ||
698dcdb6 | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1197 | #define __SUNOS__ 1 |
1198 | EOF | |
1199 | ||
698dcdb6 | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1201 | #define __BSD__ 1 |
1202 | EOF | |
1203 | ||
1204 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1205 | ;; | |
f6bcfd97 | 1206 | *-*-freebsd*) |
10f2d63a VZ |
1207 | USE_BSD=1 |
1208 | USE_FREEBSD=1 | |
3f345b47 | 1209 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1211 | #define __FREEBSD__ 1 |
1212 | EOF | |
1213 | ||
698dcdb6 | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a | 1215 | #define __BSD__ 1 |
95c8801c VS |
1216 | EOF |
1217 | ||
1218 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1219 | ;; | |
1220 | *-*-openbsd*) | |
1221 | USE_BSD=1 | |
1222 | USE_OPENBSD=1 | |
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1224 | #define __FREEBSD__ 1 |
1225 | EOF | |
1226 | ||
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
95c8801c | 1228 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1229 | EOF |
1230 | ||
1231 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1232 | ;; | |
1233 | *-*-netbsd*) | |
1234 | USE_BSD=1 | |
1235 | USE_NETBSD=1 | |
698dcdb6 | 1236 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1237 | #define __FREEBSD__ 1 |
1238 | EOF | |
1239 | ||
698dcdb6 | 1240 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1241 | #define __NETBSD__ 1 |
10f2d63a VZ |
1242 | EOF |
1243 | ||
1244 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1245 | ;; | |
1246 | *-*-osf* ) | |
1247 | USE_ALPHA=1 | |
1248 | USE_OSF=1 | |
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define __ALPHA__ 1 |
1251 | EOF | |
1252 | ||
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __OSF__ 1 |
1255 | EOF | |
1256 | ||
1257 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1258 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1259 | ;; |
1260 | *-*-dgux5* ) | |
1261 | USE_ALPHA=1 | |
1262 | USE_SVR4=1 | |
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define __ALPHA__ 1 |
1265 | EOF | |
1266 | ||
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __SVR4__ 1 |
1269 | EOF | |
1270 | ||
1271 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1272 | ;; | |
1273 | *-*-sysv5* ) | |
1274 | USE_SYSV=1 | |
1275 | USE_SVR4=1 | |
698dcdb6 | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1277 | #define __SYSV__ 1 |
1278 | EOF | |
1279 | ||
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1281 | #define __SVR4__ 1 |
1282 | EOF | |
1283 | ||
1284 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1285 | ;; | |
1286 | *-*-aix* ) | |
1287 | USE_AIX=1 | |
1288 | USE_SYSV=1 | |
1289 | USE_SVR4=1 | |
698dcdb6 | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1291 | #define __AIX__ 1 |
1292 | EOF | |
1293 | ||
698dcdb6 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __SYSV__ 1 |
1296 | EOF | |
1297 | ||
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __SVR4__ 1 |
1300 | EOF | |
1301 | ||
1302 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1303 | ;; | |
1304 | ||
1c8183e2 | 1305 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1306 | USE_UNIX=0 |
1307 | USE_WIN32=1 | |
3a922bb4 | 1308 | SO_SUFFIX=dll |
698dcdb6 | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1310 | #define __WIN32__ 1 |
1311 | EOF | |
1312 | ||
698dcdb6 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __WIN95__ 1 |
1315 | EOF | |
1316 | ||
698dcdb6 | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1318 | #define __WINDOWS__ 1 |
1319 | EOF | |
1320 | ||
698dcdb6 | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1322 | #define __GNUWIN32__ 1 |
1323 | EOF | |
1324 | ||
698dcdb6 | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1326 | #define STRICT 1 |
1327 | EOF | |
1328 | ||
698dcdb6 | 1329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1330 | #define WINVER 0x0400 |
1331 | EOF | |
1332 | ||
cf27ef00 | 1333 | PROGRAM_EXT=".exe" |
7b7a7637 | 1334 | RESCOMP=windres |
10f2d63a VZ |
1335 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1336 | ;; | |
1337 | ||
f9bc1684 VS |
1338 | *-pc-msdosdjgpp ) |
1339 | USE_UNIX=0 | |
1340 | USE_DOS=1 | |
1341 | cat >> confdefs.h <<\EOF | |
1342 | #define __DOS__ 1 | |
1343 | EOF | |
1344 | ||
1345 | PROGRAM_EXT=".exe" | |
1346 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1347 | ;; |
1348 | ||
6fa882bd | 1349 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1350 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1351 | #define __EMX__ 1 |
1352 | EOF | |
1353 | ||
cf27ef00 | 1354 | PROGRAM_EXT=".exe" |
e07802fc | 1355 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1356 | ;; |
1357 | ||
d08b457b GD |
1358 | powerpc-*-darwin* ) |
1359 | USE_BSD=1 | |
f11bdd03 | 1360 | USE_DARWIN=1 |
3f345b47 | 1361 | CPP_MT_FLAG= |
3a922bb4 | 1362 | SO_SUFFIX=dylib |
698dcdb6 | 1363 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1364 | #define __BSD__ 1 |
b4085ce6 GD |
1365 | EOF |
1366 | ||
698dcdb6 | 1367 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1368 | #define __DARWIN__ 1 |
d08b457b GD |
1369 | EOF |
1370 | ||
1371 | cat >> confdefs.h <<\EOF | |
1372 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1373 | EOF |
1374 | ||
1375 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1376 | ;; | |
1377 | ||
b12915c1 VZ |
1378 | *-*-beos* ) |
1379 | USE_BEOS=1 | |
698dcdb6 | 1380 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1381 | #define __BEOS__ 1 |
1382 | EOF | |
1383 | ||
1384 | ;; | |
1385 | ||
10f2d63a | 1386 | *) |
698dcdb6 | 1387 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1388 | esac |
1389 | ||
1390 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1391 | wxUSE_UNIX=yes |
698dcdb6 | 1392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1393 | #define __UNIX__ 1 |
1394 | EOF | |
1395 | ||
10f2d63a VZ |
1396 | fi |
1397 | ||
2389f33b VZ |
1398 | if test "$USE_LINUX" = 1; then |
1399 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
d8356fa3 | 1400 | echo "configure:1401: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1401 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1403 | else | |
a72a4bfa VS |
1404 | |
1405 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 1406 | #line 1407 "configure" |
2389f33b VZ |
1407 | #include "confdefs.h" |
1408 | #include <features.h> | |
1409 | int main() { | |
1410 | ||
1411 | #if !__GLIBC_PREREQ(2, 1) | |
1412 | #error not glibc2.1 | |
1413 | #endif | |
1414 | ||
1415 | ; return 0; } | |
1416 | EOF | |
d8356fa3 | 1417 | if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1418 | rm -rf conftest* |
1419 | ||
1420 | wx_lib_glibc21=yes | |
1421 | ||
1422 | else | |
1423 | echo "configure: failed program was:" >&5 | |
1424 | cat conftest.$ac_ext >&5 | |
1425 | rm -rf conftest* | |
1426 | ||
1427 | wx_lib_glibc21=no | |
1428 | ||
1429 | ||
1430 | fi | |
1431 | rm -f conftest* | |
1432 | ||
1433 | fi | |
1434 | ||
1435 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1436 | if test "$wx_lib_glibc21" = "yes"; then |
1437 | cat >> confdefs.h <<\EOF | |
1438 | #define wxHAVE_GLIBC2 1 | |
1439 | EOF | |
1440 | ||
1441 | fi | |
1442 | fi | |
10f2d63a | 1443 | |
1e487827 | 1444 | |
1e487827 | 1445 | |
6232543b | 1446 | |
10f2d63a VZ |
1447 | wx_arg_cache_file="configarg.cache" |
1448 | echo "loading argument cache $wx_arg_cache_file" | |
1449 | rm -f ${wx_arg_cache_file}.tmp | |
1450 | touch ${wx_arg_cache_file}.tmp | |
1451 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1452 | |
10f2d63a VZ |
1453 | |
1454 | DEBUG_CONFIGURE=0 | |
1455 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1456 | DEFAULT_wxUSE_UNIVERSAL=no |
1457 | ||
d8356fa3 VZ |
1458 | DEFAULT_wxUSE_NANOX=no |
1459 | ||
10f2d63a VZ |
1460 | DEFAULT_wxUSE_THREADS=yes |
1461 | ||
1462 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1463 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1464 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1465 | DEFAULT_wxUSE_PROFILE=no |
1466 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1467 | DEFAULT_wxUSE_NO_RTTI=yes |
1468 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1469 | DEFAULT_wxUSE_PERMISSIVE=no |
1470 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1471 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1472 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1473 | DEFAULT_wxUSE_MEM_TRACING=no | |
1474 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1475 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1476 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1477 | DEFAULT_wxUSE_APPLE_IEEE=no |
1478 | ||
1479 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1480 | DEFAULT_wxUSE_LOGWINDOW=no |
1481 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1482 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1483 | |
1484 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1485 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1486 | |
3e44f09d | 1487 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1488 | DEFAULT_wxUSE_ZLIB=no |
1489 | DEFAULT_wxUSE_LIBPNG=no | |
1490 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1491 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1492 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1493 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1494 | |
eb4efbdc | 1495 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1496 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1497 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1498 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1499 | DEFAULT_wxUSE_DATETIME=no | |
1500 | DEFAULT_wxUSE_TIMEDATE=no | |
1501 | DEFAULT_wxUSE_TIMER=no | |
1502 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1503 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1504 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1505 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1506 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_WAVE=no |
1508 | DEFAULT_wxUSE_INTL=no | |
1509 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1510 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1511 | DEFAULT_wxUSE_STREAMS=no |
1512 | DEFAULT_wxUSE_SOCKETS=no | |
1513 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1514 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1515 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1516 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1517 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1518 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1519 | |
1520 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1521 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1522 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1523 | ||
1524 | DEFAULT_wxUSE_X_RESOURCES=no | |
1525 | DEFAULT_wxUSE_CLIPBOARD=no | |
1526 | DEFAULT_wxUSE_TOOLTIPS=no | |
1527 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1528 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_SPLINES=no |
1530 | ||
1531 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1532 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1533 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1534 | ||
1535 | DEFAULT_wxUSE_PROLOGIO=no | |
1536 | DEFAULT_wxUSE_RESOURCES=no | |
1537 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1538 | DEFAULT_wxUSE_IPC=no | |
1539 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1540 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1541 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1542 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1543 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1544 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1545 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1546 | DEFAULT_wxUSE_PROTOCOL=no | |
1547 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1548 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1549 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1550 | DEFAULT_wxUSE_URL=no | |
1551 | ||
10f2d63a | 1552 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1553 | DEFAULT_wxUSE_CHOICEDLG=no |
1554 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1555 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1556 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1557 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1558 | DEFAULT_wxUSE_FONTDLG=no |
1559 | DEFAULT_wxUSE_MSGDLG=no | |
1560 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1561 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1562 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1564 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1565 | DEFAULT_wxUSE_WIZARDDLG=no |
1566 | ||
1e6feb95 | 1567 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1568 | DEFAULT_wxUSE_MINIFRAME=no |
1569 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1570 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1571 | DEFAULT_wxUSE_FS_INET=no |
1572 | DEFAULT_wxUSE_FS_ZIP=no | |
1573 | DEFAULT_wxUSE_BUSYINFO=no | |
1574 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1575 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1576 | |
1577 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1578 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1579 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1580 | DEFAULT_wxUSE_CALCTRL=no |
1581 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_CHECKBOX=no |
1583 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1584 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1585 | DEFAULT_wxUSE_COMBOBOX=no |
1586 | DEFAULT_wxUSE_GAUGE=no | |
1587 | DEFAULT_wxUSE_GRID=no | |
1588 | DEFAULT_wxUSE_NEW_GRID=no | |
1589 | DEFAULT_wxUSE_IMAGLIST=no | |
1590 | DEFAULT_wxUSE_LISTBOX=no | |
1591 | DEFAULT_wxUSE_LISTCTRL=no | |
1592 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1593 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1594 | DEFAULT_wxUSE_RADIOBOX=no |
1595 | DEFAULT_wxUSE_RADIOBTN=no | |
1596 | DEFAULT_wxUSE_SASH=no | |
1597 | DEFAULT_wxUSE_SCROLLBAR=no | |
1598 | DEFAULT_wxUSE_SLIDER=no | |
1599 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1600 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_SPLITTER=no |
1602 | DEFAULT_wxUSE_STATBMP=no | |
1603 | DEFAULT_wxUSE_STATBOX=no | |
1604 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1605 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1606 | DEFAULT_wxUSE_STATUSBAR=yes |
1607 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1608 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1609 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1610 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1611 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1612 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1613 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1614 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1615 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1616 | |
1617 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1618 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_WCSRTOMBS=no |
1620 | ||
edae8572 | 1621 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1622 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1623 | DEFAULT_wxUSE_GIF=no |
1624 | DEFAULT_wxUSE_PCX=no | |
1625 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1626 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1627 | DEFAULT_wxUSE_XPM=no |
658974ae | 1628 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1629 | else |
1e6feb95 VZ |
1630 | DEFAULT_wxUSE_UNIVERSAL=no |
1631 | ||
d8356fa3 VZ |
1632 | DEFAULT_wxUSE_NANOX=no |
1633 | ||
10f2d63a VZ |
1634 | DEFAULT_wxUSE_THREADS=yes |
1635 | ||
1636 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1637 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_OPTIMISE=yes |
1639 | DEFAULT_wxUSE_PROFILE=no | |
1640 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1641 | DEFAULT_wxUSE_NO_RTTI=yes |
1642 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1643 | DEFAULT_wxUSE_PERMISSIVE=no |
1644 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1645 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1646 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1647 | DEFAULT_wxUSE_MEM_TRACING=no | |
1648 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1649 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1650 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1651 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1652 | ||
1653 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1654 | DEFAULT_wxUSE_LOGWINDOW=yes |
1655 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1656 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1657 | |
1658 | DEFAULT_wxUSE_GUI=yes | |
1659 | ||
831b3152 | 1660 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1661 | DEFAULT_wxUSE_ZLIB=yes |
1662 | DEFAULT_wxUSE_LIBPNG=yes | |
1663 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1664 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1665 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1666 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1667 | |
eb4efbdc | 1668 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1669 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1670 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1671 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1672 | DEFAULT_wxUSE_DATETIME=yes | |
1673 | DEFAULT_wxUSE_TIMEDATE=no | |
1674 | DEFAULT_wxUSE_TIMER=yes | |
1675 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1676 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1677 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1678 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1679 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_WAVE=no |
1681 | DEFAULT_wxUSE_INTL=yes | |
1682 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1683 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_STREAMS=yes |
1685 | DEFAULT_wxUSE_SOCKETS=yes | |
1686 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1687 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1688 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1689 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1690 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1691 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1692 | |
1693 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1694 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1695 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1696 | ||
1697 | DEFAULT_wxUSE_X_RESOURCES=no | |
1698 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1699 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1700 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1701 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1702 | DEFAULT_wxUSE_SPLINES=yes |
1703 | ||
1704 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1705 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1706 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1707 | ||
1708 | DEFAULT_wxUSE_PROLOGIO=yes | |
1709 | DEFAULT_wxUSE_RESOURCES=yes | |
1710 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1711 | DEFAULT_wxUSE_IPC=yes | |
1712 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1713 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1714 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1715 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1716 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1717 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1718 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1719 | DEFAULT_wxUSE_PROTOCOL=yes |
1720 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1721 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1722 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1723 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1724 | |
1725 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1726 | DEFAULT_wxUSE_CHOICEDLG=yes |
1727 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1728 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1729 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1730 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1731 | DEFAULT_wxUSE_FONTDLG=yes |
1732 | DEFAULT_wxUSE_MSGDLG=yes | |
1733 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1734 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1735 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1736 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1737 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1738 | DEFAULT_wxUSE_WIZARDDLG=yes |
1739 | ||
1e6feb95 | 1740 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1741 | DEFAULT_wxUSE_MINIFRAME=yes |
1742 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1743 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1744 | DEFAULT_wxUSE_FS_INET=yes |
1745 | DEFAULT_wxUSE_FS_ZIP=yes | |
1746 | DEFAULT_wxUSE_BUSYINFO=yes | |
1747 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1748 | DEFAULT_wxUSE_VALIDATORS=yes | |
1749 | ||
1750 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1751 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1752 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1753 | DEFAULT_wxUSE_CALCTRL=yes |
1754 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1755 | DEFAULT_wxUSE_CHECKBOX=yes |
1756 | DEFAULT_wxUSE_CHECKLST=yes | |
1757 | DEFAULT_wxUSE_CHOICE=yes | |
1758 | DEFAULT_wxUSE_COMBOBOX=yes | |
1759 | DEFAULT_wxUSE_GAUGE=yes | |
1760 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1761 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1762 | DEFAULT_wxUSE_IMAGLIST=yes |
1763 | DEFAULT_wxUSE_LISTBOX=yes | |
1764 | DEFAULT_wxUSE_LISTCTRL=yes | |
1765 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1766 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1767 | DEFAULT_wxUSE_RADIOBOX=yes |
1768 | DEFAULT_wxUSE_RADIOBTN=yes | |
1769 | DEFAULT_wxUSE_SASH=yes | |
1770 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1771 | DEFAULT_wxUSE_SLIDER=yes | |
1772 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1773 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1774 | DEFAULT_wxUSE_SPLITTER=yes |
1775 | DEFAULT_wxUSE_STATBMP=yes | |
1776 | DEFAULT_wxUSE_STATBOX=yes | |
1777 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1778 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1779 | DEFAULT_wxUSE_STATUSBAR=yes |
1780 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1781 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1782 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1783 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1784 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1785 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1786 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1787 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1788 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1789 | |
1790 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1791 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1792 | DEFAULT_wxUSE_WCSRTOMBS=no |
1793 | ||
edae8572 | 1794 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1795 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1796 | DEFAULT_wxUSE_GIF=yes |
1797 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1798 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1799 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1800 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1801 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1802 | fi |
1803 | ||
698dcdb6 VZ |
1804 | |
1805 | ||
10f2d63a VZ |
1806 | for toolkit in `echo $ALL_TOOLKITS`; do |
1807 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1808 | if test "x$LINE" != x ; then | |
1809 | has_toolkit_in_cache=1 | |
1810 | eval "DEFAULT_$LINE" | |
1811 | eval "CACHE_$toolkit=1" | |
1812 | fi | |
1813 | done | |
1814 | ||
698dcdb6 VZ |
1815 | |
1816 | ||
1817 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
d8356fa3 | 1818 | echo "configure:1819: checking for --enable-gui" >&5 |
10f2d63a VZ |
1819 | no_cache=0 |
1820 | # Check whether --enable-gui or --disable-gui was given. | |
1821 | if test "${enable_gui+set}" = set; then | |
1822 | enableval="$enable_gui" | |
698dcdb6 | 1823 | |
10f2d63a VZ |
1824 | if test "$enableval" = yes; then |
1825 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1826 | else | |
1827 | ac_cv_use_gui='wxUSE_GUI=no' | |
1828 | fi | |
698dcdb6 | 1829 | |
10f2d63a | 1830 | else |
698dcdb6 | 1831 | |
10f2d63a VZ |
1832 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1833 | if test "x$LINE" != x ; then | |
1834 | eval "DEFAULT_$LINE" | |
1835 | else | |
1836 | no_cache=1 | |
1837 | fi | |
1838 | ||
1839 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1840 | |
1841 | fi | |
10f2d63a VZ |
1842 | |
1843 | ||
1844 | eval "$ac_cv_use_gui" | |
1845 | if test "$no_cache" != 1; then | |
1846 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1847 | fi | |
1848 | ||
1849 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1851 | else |
698dcdb6 | 1852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1853 | fi |
698dcdb6 | 1854 | |
10f2d63a | 1855 | |
b12915c1 | 1856 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1857 | |
1e6feb95 VZ |
1858 | |
1859 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
d8356fa3 | 1860 | echo "configure:1861: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1861 | no_cache=0 |
1862 | # Check whether --enable-universal or --disable-universal was given. | |
1863 | if test "${enable_universal+set}" = set; then | |
1864 | enableval="$enable_universal" | |
1865 | ||
1866 | if test "$enableval" = yes; then | |
1867 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1868 | else | |
1869 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1870 | fi | |
1871 | ||
1872 | else | |
1873 | ||
1874 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1875 | if test "x$LINE" != x ; then | |
1876 | eval "DEFAULT_$LINE" | |
1877 | else | |
1878 | no_cache=1 | |
1879 | fi | |
1880 | ||
1881 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1882 | ||
1883 | fi | |
1884 | ||
1885 | ||
1886 | eval "$ac_cv_use_universal" | |
1887 | if test "$no_cache" != 1; then | |
1888 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1889 | fi | |
1890 | ||
1891 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1892 | echo "$ac_t""yes" 1>&6 | |
1893 | else | |
1894 | echo "$ac_t""no" 1>&6 | |
1895 | fi | |
1896 | ||
10f2d63a VZ |
1897 | # Check whether --with-gtk or --without-gtk was given. |
1898 | if test "${with_gtk+set}" = set; then | |
1899 | withval="$with_gtk" | |
1900 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1901 | fi |
10f2d63a VZ |
1902 | |
1903 | # Check whether --with-motif or --without-motif was given. | |
1904 | if test "${with_motif+set}" = set; then | |
1905 | withval="$with_motif" | |
1906 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1907 | fi |
10f2d63a | 1908 | |
b4085ce6 GD |
1909 | # Check whether --with-mac or --without-mac was given. |
1910 | if test "${with_mac+set}" = set; then | |
1911 | withval="$with_mac" | |
1912 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1913 | fi |
b4085ce6 | 1914 | |
10f2d63a VZ |
1915 | # Check whether --with-wine or --without-wine was given. |
1916 | if test "${with_wine+set}" = set; then | |
1917 | withval="$with_wine" | |
1918 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1919 | fi |
10f2d63a | 1920 | |
77e13408 RL |
1921 | # Check whether --with-msw or --without-msw was given. |
1922 | if test "${with_msw+set}" = set; then | |
1923 | withval="$with_msw" | |
1924 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1925 | fi |
10f2d63a | 1926 | |
e07802fc VZ |
1927 | # Check whether --with-pm or --without-pm was given. |
1928 | if test "${with_pm+set}" = set; then | |
1929 | withval="$with_pm" | |
1930 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1931 | fi |
1932 | ||
1e6feb95 VZ |
1933 | # Check whether --with-mgl or --without-mgl was given. |
1934 | if test "${with_mgl+set}" = set; then | |
1935 | withval="$with_mgl" | |
1936 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1937 | fi | |
1938 | ||
1725144d RR |
1939 | # Check whether --with-microwin or --without-microwin was given. |
1940 | if test "${with_microwin+set}" = set; then | |
1941 | withval="$with_microwin" | |
1942 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1943 | fi | |
1944 | ||
f79bd02d JS |
1945 | # Check whether --with-x11 or --without-x11 was given. |
1946 | if test "${with_x11+set}" = set; then | |
1947 | withval="$with_x11" | |
3c011993 | 1948 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1949 | fi |
1950 | ||
10f2d63a | 1951 | |
ba875e66 VZ |
1952 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
1953 | echo "configure:1954: checking for --enable-nanox" >&5 | |
d8356fa3 | 1954 | no_cache=0 |
ba875e66 VZ |
1955 | # Check whether --enable-nanox or --disable-nanox was given. |
1956 | if test "${enable_nanox+set}" = set; then | |
1957 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1958 | |
1959 | if test "$enableval" = yes; then | |
ba875e66 | 1960 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1961 | else |
ba875e66 | 1962 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1963 | fi |
1964 | ||
1965 | else | |
1966 | ||
1967 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1968 | if test "x$LINE" != x ; then | |
1969 | eval "DEFAULT_$LINE" | |
1970 | else | |
1971 | no_cache=1 | |
1972 | fi | |
1973 | ||
ba875e66 | 1974 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1975 | |
1976 | fi | |
1977 | ||
1978 | ||
ba875e66 | 1979 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1980 | if test "$no_cache" != 1; then |
ba875e66 | 1981 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1982 | fi |
1983 | ||
1984 | if test "$wxUSE_NANOX" = yes; then | |
1985 | echo "$ac_t""yes" 1>&6 | |
1986 | else | |
1987 | echo "$ac_t""no" 1>&6 | |
1988 | fi | |
1989 | ||
1990 | ||
8168de4c VZ |
1991 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1992 | if test "${enable_gtk2+set}" = set; then | |
1993 | enableval="$enable_gtk2" | |
1994 | wxUSE_GTK2=1 | |
10f2d63a | 1995 | else |
8168de4c | 1996 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1997 | fi |
1998 | ||
703e0a69 | 1999 | |
1e487827 | 2000 | |
698dcdb6 | 2001 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
d8356fa3 | 2002 | echo "configure:2003: checking for --with-libpng" >&5 |
698dcdb6 VZ |
2003 | no_cache=0 |
2004 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2005 | if test "${with_libpng+set}" = set; then |
2006 | withval="$with_libpng" | |
698dcdb6 | 2007 | |
10f2d63a | 2008 | if test "$withval" = yes; then |
b12915c1 | 2009 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2010 | elif test "$withval" = no; then |
b12915c1 | 2011 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2012 | elif test "$withval" = sys; then |
2013 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2014 | elif test "$withval" = builtin; then |
2015 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2016 | else |
4f14bcd8 | 2017 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2018 | fi |
698dcdb6 | 2019 | |
10f2d63a | 2020 | else |
698dcdb6 | 2021 | |
b12915c1 | 2022 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2023 | if test "x$LINE" != x ; then |
2024 | eval "DEFAULT_$LINE" | |
2025 | else | |
2026 | no_cache=1 | |
2027 | fi | |
2028 | ||
b12915c1 | 2029 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
2030 | |
2031 | fi | |
10f2d63a VZ |
2032 | |
2033 | ||
b12915c1 | 2034 | eval "$ac_cv_use_libpng" |
10f2d63a | 2035 | if test "$no_cache" != 1; then |
b12915c1 | 2036 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2037 | fi |
2038 | ||
b12915c1 | 2039 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 2040 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2041 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2042 | echo "$ac_t""no" 1>&6 |
422107f9 | 2043 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2044 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2045 | elif test "$wxUSE_LIBPNG" = builtin; then |
2046 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2047 | else |
4f14bcd8 | 2048 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2049 | fi |
698dcdb6 | 2050 | |
10f2d63a | 2051 | |
698dcdb6 | 2052 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
d8356fa3 | 2053 | echo "configure:2054: checking for --with-libjpeg" >&5 |
10f2d63a | 2054 | no_cache=0 |
698dcdb6 | 2055 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2056 | if test "${with_libjpeg+set}" = set; then |
2057 | withval="$with_libjpeg" | |
698dcdb6 | 2058 | |
10f2d63a | 2059 | if test "$withval" = yes; then |
b12915c1 | 2060 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2061 | elif test "$withval" = no; then |
b12915c1 | 2062 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2063 | elif test "$withval" = sys; then |
2064 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2065 | elif test "$withval" = builtin; then |
2066 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2067 | else |
4f14bcd8 | 2068 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2069 | fi |
698dcdb6 | 2070 | |
10f2d63a | 2071 | else |
698dcdb6 | 2072 | |
b12915c1 | 2073 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2074 | if test "x$LINE" != x ; then |
2075 | eval "DEFAULT_$LINE" | |
2076 | else | |
2077 | no_cache=1 | |
2078 | fi | |
2079 | ||
b12915c1 | 2080 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2081 | |
2082 | fi | |
10f2d63a VZ |
2083 | |
2084 | ||
b12915c1 | 2085 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2086 | if test "$no_cache" != 1; then |
b12915c1 | 2087 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2088 | fi |
2089 | ||
b12915c1 | 2090 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2091 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2092 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2093 | echo "$ac_t""no" 1>&6 |
422107f9 | 2094 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2095 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2096 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2097 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2098 | else |
4f14bcd8 | 2099 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2100 | fi |
698dcdb6 | 2101 | |
10f2d63a | 2102 | |
698dcdb6 | 2103 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
d8356fa3 | 2104 | echo "configure:2105: checking for --with-libtiff" >&5 |
10f2d63a | 2105 | no_cache=0 |
698dcdb6 | 2106 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2107 | if test "${with_libtiff+set}" = set; then |
2108 | withval="$with_libtiff" | |
698dcdb6 | 2109 | |
10f2d63a | 2110 | if test "$withval" = yes; then |
b12915c1 | 2111 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2112 | elif test "$withval" = no; then |
b12915c1 | 2113 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2114 | elif test "$withval" = sys; then |
2115 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2116 | elif test "$withval" = builtin; then |
2117 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2118 | else |
4f14bcd8 | 2119 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2120 | fi |
698dcdb6 | 2121 | |
10f2d63a | 2122 | else |
698dcdb6 | 2123 | |
b12915c1 | 2124 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2125 | if test "x$LINE" != x ; then |
2126 | eval "DEFAULT_$LINE" | |
2127 | else | |
2128 | no_cache=1 | |
2129 | fi | |
2130 | ||
b12915c1 | 2131 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2132 | |
2133 | fi | |
10f2d63a VZ |
2134 | |
2135 | ||
b12915c1 | 2136 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2137 | if test "$no_cache" != 1; then |
b12915c1 | 2138 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2139 | fi |
2140 | ||
b12915c1 | 2141 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2142 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2143 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2144 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2145 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2146 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2147 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2148 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2149 | else |
4f14bcd8 | 2150 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2151 | fi |
698dcdb6 | 2152 | |
10f2d63a | 2153 | |
698dcdb6 | 2154 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
d8356fa3 | 2155 | echo "configure:2156: checking for --with-opengl" >&5 |
10f2d63a | 2156 | no_cache=0 |
698dcdb6 | 2157 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2158 | if test "${with_opengl+set}" = set; then |
2159 | withval="$with_opengl" | |
698dcdb6 | 2160 | |
10f2d63a | 2161 | if test "$withval" = yes; then |
b12915c1 | 2162 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2163 | else |
b12915c1 | 2164 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2165 | fi |
698dcdb6 | 2166 | |
10f2d63a | 2167 | else |
698dcdb6 | 2168 | |
b12915c1 | 2169 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2170 | if test "x$LINE" != x ; then |
2171 | eval "DEFAULT_$LINE" | |
2172 | else | |
2173 | no_cache=1 | |
2174 | fi | |
2175 | ||
b12915c1 | 2176 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2177 | |
2178 | fi | |
10f2d63a VZ |
2179 | |
2180 | ||
b12915c1 | 2181 | eval "$ac_cv_use_opengl" |
10f2d63a | 2182 | if test "$no_cache" != 1; then |
b12915c1 | 2183 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2184 | fi |
2185 | ||
b12915c1 | 2186 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2187 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2188 | else |
698dcdb6 | 2189 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2190 | fi |
698dcdb6 | 2191 | |
10f2d63a | 2192 | |
b12915c1 VZ |
2193 | fi |
2194 | ||
1e487827 | 2195 | |
698dcdb6 | 2196 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
d8356fa3 | 2197 | echo "configure:2198: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2198 | no_cache=0 |
2199 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2200 | if test "${with_dmalloc+set}" = set; then |
2201 | withval="$with_dmalloc" | |
698dcdb6 | 2202 | |
c7a2bf27 | 2203 | if test "$withval" = yes; then |
b12915c1 | 2204 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2205 | else |
b12915c1 | 2206 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2207 | fi |
698dcdb6 | 2208 | |
c7a2bf27 | 2209 | else |
698dcdb6 | 2210 | |
b12915c1 | 2211 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2212 | if test "x$LINE" != x ; then |
2213 | eval "DEFAULT_$LINE" | |
2214 | else | |
2215 | no_cache=1 | |
2216 | fi | |
2217 | ||
b12915c1 | 2218 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2219 | |
2220 | fi | |
c7a2bf27 RR |
2221 | |
2222 | ||
b12915c1 | 2223 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2224 | if test "$no_cache" != 1; then |
b12915c1 | 2225 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2226 | fi |
2227 | ||
b12915c1 | 2228 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2229 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2230 | else |
698dcdb6 | 2231 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2232 | fi |
698dcdb6 | 2233 | |
c7a2bf27 | 2234 | |
3e44f09d | 2235 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
d8356fa3 | 2236 | echo "configure:2237: checking for --with-regex" >&5 |
3e44f09d VZ |
2237 | no_cache=0 |
2238 | # Check whether --with-regex or --without-regex was given. | |
2239 | if test "${with_regex+set}" = set; then | |
2240 | withval="$with_regex" | |
2241 | ||
2242 | if test "$withval" = yes; then | |
2243 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2244 | elif test "$withval" = no; then | |
2245 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2246 | elif test "$withval" = sys; then | |
2247 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2248 | elif test "$withval" = builtin; then |
2249 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2250 | else |
4f14bcd8 | 2251 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2252 | fi |
2253 | ||
2254 | else | |
2255 | ||
2256 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2257 | if test "x$LINE" != x ; then | |
2258 | eval "DEFAULT_$LINE" | |
2259 | else | |
2260 | no_cache=1 | |
2261 | fi | |
2262 | ||
2263 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2264 | ||
2265 | fi | |
2266 | ||
2267 | ||
2268 | eval "$ac_cv_use_regex" | |
2269 | if test "$no_cache" != 1; then | |
2270 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2271 | fi | |
2272 | ||
2273 | if test "$wxUSE_REGEX" = yes; then | |
2274 | echo "$ac_t""yes" 1>&6 | |
2275 | elif test "$wxUSE_REGEX" = no; then | |
2276 | echo "$ac_t""no" 1>&6 | |
2277 | elif test "$wxUSE_REGEX" = sys; then | |
2278 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2279 | elif test "$wxUSE_REGEX" = builtin; then |
2280 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2281 | else |
4f14bcd8 | 2282 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2283 | fi |
2284 | ||
2285 | ||
698dcdb6 | 2286 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
d8356fa3 | 2287 | echo "configure:2288: checking for --with-zlib" >&5 |
10f2d63a | 2288 | no_cache=0 |
698dcdb6 | 2289 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2290 | if test "${with_zlib+set}" = set; then |
2291 | withval="$with_zlib" | |
698dcdb6 | 2292 | |
10f2d63a | 2293 | if test "$withval" = yes; then |
b12915c1 | 2294 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2295 | elif test "$withval" = no; then |
b12915c1 | 2296 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2297 | elif test "$withval" = sys; then |
2298 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2299 | elif test "$withval" = builtin; then |
2300 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2301 | else |
4f14bcd8 | 2302 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2303 | fi |
698dcdb6 | 2304 | |
10f2d63a | 2305 | else |
698dcdb6 | 2306 | |
b12915c1 | 2307 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2308 | if test "x$LINE" != x ; then |
2309 | eval "DEFAULT_$LINE" | |
2310 | else | |
2311 | no_cache=1 | |
2312 | fi | |
2313 | ||
b12915c1 | 2314 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2315 | |
2316 | fi | |
10f2d63a VZ |
2317 | |
2318 | ||
b12915c1 | 2319 | eval "$ac_cv_use_zlib" |
10f2d63a | 2320 | if test "$no_cache" != 1; then |
b12915c1 | 2321 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2322 | fi |
2323 | ||
b12915c1 | 2324 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2325 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2326 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2327 | echo "$ac_t""no" 1>&6 |
422107f9 | 2328 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2329 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2330 | elif test "$wxUSE_ZLIB" = builtin; then |
2331 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2332 | else |
4f14bcd8 | 2333 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2334 | fi |
698dcdb6 | 2335 | |
10f2d63a | 2336 | |
698dcdb6 | 2337 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
d8356fa3 | 2338 | echo "configure:2339: checking for --with-odbc" >&5 |
10f2d63a | 2339 | no_cache=0 |
698dcdb6 | 2340 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2341 | if test "${with_odbc+set}" = set; then |
2342 | withval="$with_odbc" | |
698dcdb6 | 2343 | |
10f2d63a VZ |
2344 | if test "$withval" = yes; then |
2345 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2346 | else | |
2347 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2348 | fi | |
698dcdb6 | 2349 | |
10f2d63a | 2350 | else |
698dcdb6 | 2351 | |
10f2d63a VZ |
2352 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2353 | if test "x$LINE" != x ; then | |
2354 | eval "DEFAULT_$LINE" | |
2355 | else | |
2356 | no_cache=1 | |
2357 | fi | |
2358 | ||
2359 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2360 | |
2361 | fi | |
10f2d63a VZ |
2362 | |
2363 | ||
2364 | eval "$ac_cv_use_odbc" | |
2365 | if test "$no_cache" != 1; then | |
2366 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2367 | fi | |
2368 | ||
2369 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2371 | else |
698dcdb6 | 2372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2373 | fi |
698dcdb6 VZ |
2374 | |
2375 | ||
10f2d63a | 2376 | |
698dcdb6 | 2377 | |
698dcdb6 | 2378 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
d8356fa3 | 2379 | echo "configure:2380: checking for --enable-shared" >&5 |
10f2d63a VZ |
2380 | no_cache=0 |
2381 | # Check whether --enable-shared or --disable-shared was given. | |
2382 | if test "${enable_shared+set}" = set; then | |
2383 | enableval="$enable_shared" | |
698dcdb6 | 2384 | |
10f2d63a VZ |
2385 | if test "$enableval" = yes; then |
2386 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2387 | else | |
2388 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2389 | fi | |
698dcdb6 | 2390 | |
10f2d63a | 2391 | else |
698dcdb6 | 2392 | |
10f2d63a VZ |
2393 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2394 | if test "x$LINE" != x ; then | |
2395 | eval "DEFAULT_$LINE" | |
2396 | else | |
2397 | no_cache=1 | |
2398 | fi | |
2399 | ||
2400 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2401 | |
2402 | fi | |
10f2d63a VZ |
2403 | |
2404 | ||
2405 | eval "$ac_cv_use_shared" | |
2406 | if test "$no_cache" != 1; then | |
2407 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2408 | fi | |
2409 | ||
2410 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2411 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2412 | else |
698dcdb6 | 2413 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2414 | fi |
698dcdb6 | 2415 | |
10f2d63a | 2416 | |
3a922bb4 | 2417 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
d8356fa3 | 2418 | echo "configure:2419: checking for --enable-soname" >&5 |
00cf1208 | 2419 | no_cache=0 |
3a922bb4 RL |
2420 | # Check whether --enable-soname or --disable-soname was given. |
2421 | if test "${enable_soname+set}" = set; then | |
2422 | enableval="$enable_soname" | |
698dcdb6 | 2423 | |
00cf1208 | 2424 | if test "$enableval" = yes; then |
3a922bb4 | 2425 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2426 | else |
3a922bb4 | 2427 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2428 | fi |
698dcdb6 | 2429 | |
00cf1208 | 2430 | else |
698dcdb6 | 2431 | |
3a922bb4 | 2432 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2433 | if test "x$LINE" != x ; then |
2434 | eval "DEFAULT_$LINE" | |
2435 | else | |
2436 | no_cache=1 | |
2437 | fi | |
2438 | ||
3a922bb4 | 2439 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2440 | |
2441 | fi | |
00cf1208 RR |
2442 | |
2443 | ||
3a922bb4 | 2444 | eval "$ac_cv_use_soname" |
00cf1208 | 2445 | if test "$no_cache" != 1; then |
3a922bb4 | 2446 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2447 | fi |
2448 | ||
3a922bb4 | 2449 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2450 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2451 | else |
698dcdb6 | 2452 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2453 | fi |
698dcdb6 | 2454 | |
00cf1208 | 2455 | |
698dcdb6 | 2456 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
d8356fa3 | 2457 | echo "configure:2458: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2458 | no_cache=0 |
2459 | # Check whether --enable-optimise or --disable-optimise was given. | |
2460 | if test "${enable_optimise+set}" = set; then | |
2461 | enableval="$enable_optimise" | |
698dcdb6 | 2462 | |
10f2d63a VZ |
2463 | if test "$enableval" = yes; then |
2464 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2465 | else | |
2466 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2467 | fi | |
698dcdb6 | 2468 | |
10f2d63a | 2469 | else |
698dcdb6 | 2470 | |
10f2d63a VZ |
2471 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2472 | if test "x$LINE" != x ; then | |
2473 | eval "DEFAULT_$LINE" | |
2474 | else | |
2475 | no_cache=1 | |
2476 | fi | |
2477 | ||
2478 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2479 | |
2480 | fi | |
10f2d63a VZ |
2481 | |
2482 | ||
2483 | eval "$ac_cv_use_optimise" | |
2484 | if test "$no_cache" != 1; then | |
2485 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2486 | fi | |
2487 | ||
2488 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2489 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2490 | else |
698dcdb6 | 2491 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2492 | fi |
698dcdb6 | 2493 | |
10f2d63a | 2494 | |
698dcdb6 | 2495 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
d8356fa3 | 2496 | echo "configure:2497: checking for --enable-debug" >&5 |
10f2d63a VZ |
2497 | no_cache=0 |
2498 | # Check whether --enable-debug or --disable-debug was given. | |
2499 | if test "${enable_debug+set}" = set; then | |
2500 | enableval="$enable_debug" | |
698dcdb6 | 2501 | |
10f2d63a VZ |
2502 | if test "$enableval" = yes; then |
2503 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2504 | else | |
2505 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2506 | fi | |
698dcdb6 | 2507 | |
10f2d63a | 2508 | else |
698dcdb6 | 2509 | |
10f2d63a VZ |
2510 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2511 | if test "x$LINE" != x ; then | |
2512 | eval "DEFAULT_$LINE" | |
2513 | else | |
2514 | no_cache=1 | |
2515 | fi | |
2516 | ||
2517 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2518 | |
2519 | fi | |
10f2d63a VZ |
2520 | |
2521 | ||
2522 | eval "$ac_cv_use_debug" | |
2523 | if test "$no_cache" != 1; then | |
2524 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2525 | fi | |
2526 | ||
2527 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2529 | else |
698dcdb6 | 2530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2531 | fi |
698dcdb6 | 2532 | |
10f2d63a | 2533 | |
683dccda GD |
2534 | |
2535 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
d8356fa3 | 2536 | echo "configure:2537: checking for --enable-precomp" >&5 |
683dccda GD |
2537 | no_cache=0 |
2538 | # Check whether --enable-precomp or --disable-precomp was given. | |
2539 | if test "${enable_precomp+set}" = set; then | |
2540 | enableval="$enable_precomp" | |
2541 | ||
2542 | if test "$enableval" = yes; then | |
2543 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2544 | else | |
2545 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2546 | fi | |
2547 | ||
2548 | else | |
2549 | ||
2550 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2551 | if test "x$LINE" != x ; then | |
2552 | eval "DEFAULT_$LINE" | |
2553 | else | |
2554 | no_cache=1 | |
2555 | fi | |
2556 | ||
2557 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2558 | ||
2559 | fi | |
2560 | ||
2561 | ||
2562 | eval "$ac_cv_use_precomp" | |
2563 | if test "$no_cache" != 1; then | |
2564 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2565 | fi | |
2566 | ||
2567 | if test "$wxUSE_PRECOMP" = yes; then | |
2568 | echo "$ac_t""yes" 1>&6 | |
2569 | else | |
2570 | echo "$ac_t""no" 1>&6 | |
2571 | fi | |
2572 | ||
2573 | ||
10f2d63a VZ |
2574 | if test "$wxUSE_DEBUG" = "yes"; then |
2575 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2576 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2577 | elif test "$wxUSE_DEBUG" = "no"; then | |
2578 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2579 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2580 | fi | |
2581 | ||
698dcdb6 VZ |
2582 | |
2583 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
d8356fa3 | 2584 | echo "configure:2585: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2585 | no_cache=0 |
2586 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2587 | if test "${enable_debug_flag+set}" = set; then | |
2588 | enableval="$enable_debug_flag" | |
698dcdb6 | 2589 | |
10f2d63a VZ |
2590 | if test "$enableval" = yes; then |
2591 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2592 | else | |
2593 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2594 | fi | |
698dcdb6 | 2595 | |
10f2d63a | 2596 | else |
698dcdb6 | 2597 | |
10f2d63a VZ |
2598 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2599 | if test "x$LINE" != x ; then | |
2600 | eval "DEFAULT_$LINE" | |
2601 | else | |
2602 | no_cache=1 | |
2603 | fi | |
2604 | ||
2605 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2606 | |
2607 | fi | |
10f2d63a VZ |
2608 | |
2609 | ||
2610 | eval "$ac_cv_use_debug_flag" | |
2611 | if test "$no_cache" != 1; then | |
2612 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2613 | fi | |
2614 | ||
2615 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2616 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2617 | else |
698dcdb6 | 2618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2619 | fi |
698dcdb6 | 2620 | |
10f2d63a | 2621 | |
698dcdb6 | 2622 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
d8356fa3 | 2623 | echo "configure:2624: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2624 | no_cache=0 |
2625 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2626 | if test "${enable_debug_info+set}" = set; then | |
2627 | enableval="$enable_debug_info" | |
698dcdb6 | 2628 | |
10f2d63a VZ |
2629 | if test "$enableval" = yes; then |
2630 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2631 | else | |
2632 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2633 | fi | |
698dcdb6 | 2634 | |
10f2d63a | 2635 | else |
698dcdb6 | 2636 | |
10f2d63a VZ |
2637 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2638 | if test "x$LINE" != x ; then | |
2639 | eval "DEFAULT_$LINE" | |
2640 | else | |
2641 | no_cache=1 | |
2642 | fi | |
2643 | ||
2644 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2645 | |
2646 | fi | |
10f2d63a VZ |
2647 | |
2648 | ||
2649 | eval "$ac_cv_use_debug_info" | |
2650 | if test "$no_cache" != 1; then | |
2651 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2652 | fi | |
2653 | ||
2654 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2655 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2656 | else |
698dcdb6 | 2657 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2658 | fi |
698dcdb6 | 2659 | |
10f2d63a | 2660 | |
698dcdb6 | 2661 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
d8356fa3 | 2662 | echo "configure:2663: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2663 | no_cache=0 |
2664 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2665 | if test "${enable_debug_gdb+set}" = set; then | |
2666 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2667 | |
10f2d63a VZ |
2668 | if test "$enableval" = yes; then |
2669 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2670 | else | |
2671 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2672 | fi | |
698dcdb6 | 2673 | |
10f2d63a | 2674 | else |
698dcdb6 | 2675 | |
10f2d63a VZ |
2676 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2677 | if test "x$LINE" != x ; then | |
2678 | eval "DEFAULT_$LINE" | |
2679 | else | |
2680 | no_cache=1 | |
2681 | fi | |
2682 | ||
2683 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2684 | |
2685 | fi | |
10f2d63a VZ |
2686 | |
2687 | ||
2688 | eval "$ac_cv_use_debug_gdb" | |
2689 | if test "$no_cache" != 1; then | |
2690 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2691 | fi | |
2692 | ||
2693 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2694 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2695 | else |
698dcdb6 | 2696 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2697 | fi |
698dcdb6 | 2698 | |
10f2d63a | 2699 | |
698dcdb6 | 2700 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
d8356fa3 | 2701 | echo "configure:2702: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2702 | no_cache=0 |
2703 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2704 | if test "${enable_debug_cntxt+set}" = set; then | |
2705 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2706 | |
10f2d63a VZ |
2707 | if test "$enableval" = yes; then |
2708 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2709 | else | |
2710 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2711 | fi | |
698dcdb6 | 2712 | |
10f2d63a | 2713 | else |
698dcdb6 | 2714 | |
10f2d63a VZ |
2715 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2716 | if test "x$LINE" != x ; then | |
2717 | eval "DEFAULT_$LINE" | |
2718 | else | |
2719 | no_cache=1 | |
2720 | fi | |
2721 | ||
2722 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2723 | |
2724 | fi | |
10f2d63a VZ |
2725 | |
2726 | ||
2727 | eval "$ac_cv_use_debug_cntxt" | |
2728 | if test "$no_cache" != 1; then | |
2729 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2730 | fi | |
2731 | ||
2732 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2733 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2734 | else |
698dcdb6 | 2735 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2736 | fi |
698dcdb6 | 2737 | |
10f2d63a | 2738 | |
698dcdb6 | 2739 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
d8356fa3 | 2740 | echo "configure:2741: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2741 | no_cache=0 |
2742 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2743 | if test "${enable_mem_tracing+set}" = set; then | |
2744 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2745 | |
10f2d63a VZ |
2746 | if test "$enableval" = yes; then |
2747 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2748 | else | |
2749 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2750 | fi | |
698dcdb6 | 2751 | |
10f2d63a | 2752 | else |
698dcdb6 | 2753 | |
10f2d63a VZ |
2754 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2755 | if test "x$LINE" != x ; then | |
2756 | eval "DEFAULT_$LINE" | |
2757 | else | |
2758 | no_cache=1 | |
2759 | fi | |
2760 | ||
2761 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2762 | |
2763 | fi | |
10f2d63a VZ |
2764 | |
2765 | ||
2766 | eval "$ac_cv_use_mem_tracing" | |
2767 | if test "$no_cache" != 1; then | |
2768 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2769 | fi | |
2770 | ||
2771 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2772 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2773 | else |
698dcdb6 | 2774 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2775 | fi |
698dcdb6 | 2776 | |
10f2d63a | 2777 | |
698dcdb6 | 2778 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
d8356fa3 | 2779 | echo "configure:2780: checking for --enable-profile" >&5 |
10f2d63a VZ |
2780 | no_cache=0 |
2781 | # Check whether --enable-profile or --disable-profile was given. | |
2782 | if test "${enable_profile+set}" = set; then | |
2783 | enableval="$enable_profile" | |
698dcdb6 | 2784 | |
10f2d63a VZ |
2785 | if test "$enableval" = yes; then |
2786 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2787 | else | |
2788 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2789 | fi | |
698dcdb6 | 2790 | |
10f2d63a | 2791 | else |
698dcdb6 | 2792 | |
10f2d63a VZ |
2793 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2794 | if test "x$LINE" != x ; then | |
2795 | eval "DEFAULT_$LINE" | |
2796 | else | |
2797 | no_cache=1 | |
2798 | fi | |
2799 | ||
2800 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2801 | |
2802 | fi | |
10f2d63a VZ |
2803 | |
2804 | ||
2805 | eval "$ac_cv_use_profile" | |
2806 | if test "$no_cache" != 1; then | |
2807 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2808 | fi | |
2809 | ||
2810 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2811 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2812 | else |
698dcdb6 | 2813 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2814 | fi |
698dcdb6 | 2815 | |
10f2d63a | 2816 | |
698dcdb6 | 2817 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
d8356fa3 | 2818 | echo "configure:2819: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2819 | no_cache=0 |
2820 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2821 | if test "${enable_no_rtti+set}" = set; then | |
2822 | enableval="$enable_no_rtti" | |
698dcdb6 | 2823 | |
10f2d63a VZ |
2824 | if test "$enableval" = yes; then |
2825 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2826 | else | |
2827 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2828 | fi | |
698dcdb6 | 2829 | |
10f2d63a | 2830 | else |
698dcdb6 | 2831 | |
10f2d63a VZ |
2832 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2833 | if test "x$LINE" != x ; then | |
2834 | eval "DEFAULT_$LINE" | |
2835 | else | |
2836 | no_cache=1 | |
2837 | fi | |
2838 | ||
2839 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2840 | |
2841 | fi | |
10f2d63a VZ |
2842 | |
2843 | ||
2844 | eval "$ac_cv_use_no_rtti" | |
2845 | if test "$no_cache" != 1; then | |
2846 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2847 | fi | |
2848 | ||
2849 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2851 | else |
698dcdb6 | 2852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2853 | fi |
698dcdb6 | 2854 | |
10f2d63a | 2855 | |
698dcdb6 | 2856 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
d8356fa3 | 2857 | echo "configure:2858: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2858 | no_cache=0 |
2859 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2860 | if test "${enable_no_exceptions+set}" = set; then | |
2861 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2862 | |
10f2d63a VZ |
2863 | if test "$enableval" = yes; then |
2864 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2865 | else | |
2866 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2867 | fi | |
698dcdb6 | 2868 | |
10f2d63a | 2869 | else |
698dcdb6 | 2870 | |
10f2d63a VZ |
2871 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2872 | if test "x$LINE" != x ; then | |
2873 | eval "DEFAULT_$LINE" | |
2874 | else | |
2875 | no_cache=1 | |
2876 | fi | |
2877 | ||
2878 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2879 | |
2880 | fi | |
10f2d63a VZ |
2881 | |
2882 | ||
2883 | eval "$ac_cv_use_no_exceptions" | |
2884 | if test "$no_cache" != 1; then | |
2885 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2886 | fi | |
2887 | ||
2888 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2890 | else |
698dcdb6 | 2891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2892 | fi |
698dcdb6 | 2893 | |
10f2d63a | 2894 | |
698dcdb6 | 2895 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
d8356fa3 | 2896 | echo "configure:2897: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2897 | no_cache=0 |
2898 | # Check whether --enable-permissive or --disable-permissive was given. | |
2899 | if test "${enable_permissive+set}" = set; then | |
2900 | enableval="$enable_permissive" | |
698dcdb6 | 2901 | |
10f2d63a VZ |
2902 | if test "$enableval" = yes; then |
2903 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2904 | else | |
2905 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2906 | fi | |
698dcdb6 | 2907 | |
10f2d63a | 2908 | else |
698dcdb6 | 2909 | |
10f2d63a VZ |
2910 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2911 | if test "x$LINE" != x ; then | |
2912 | eval "DEFAULT_$LINE" | |
2913 | else | |
2914 | no_cache=1 | |
2915 | fi | |
2916 | ||
2917 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2918 | |
2919 | fi | |
10f2d63a VZ |
2920 | |
2921 | ||
2922 | eval "$ac_cv_use_permissive" | |
2923 | if test "$no_cache" != 1; then | |
2924 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2925 | fi | |
2926 | ||
2927 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2928 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2929 | else |
698dcdb6 | 2930 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2931 | fi |
698dcdb6 | 2932 | |
10f2d63a | 2933 | |
698dcdb6 | 2934 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
d8356fa3 | 2935 | echo "configure:2936: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2936 | no_cache=0 |
2937 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2938 | if test "${enable_no_deps+set}" = set; then | |
2939 | enableval="$enable_no_deps" | |
698dcdb6 | 2940 | |
10f2d63a VZ |
2941 | if test "$enableval" = yes; then |
2942 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2943 | else | |
2944 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2945 | fi | |
698dcdb6 | 2946 | |
10f2d63a | 2947 | else |
698dcdb6 | 2948 | |
10f2d63a VZ |
2949 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2950 | if test "x$LINE" != x ; then | |
2951 | eval "DEFAULT_$LINE" | |
2952 | else | |
2953 | no_cache=1 | |
2954 | fi | |
2955 | ||
2956 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2957 | |
2958 | fi | |
10f2d63a VZ |
2959 | |
2960 | ||
2961 | eval "$ac_cv_use_no_deps" | |
2962 | if test "$no_cache" != 1; then | |
2963 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2964 | fi | |
2965 | ||
2966 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2967 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2968 | else |
698dcdb6 | 2969 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2970 | fi |
698dcdb6 VZ |
2971 | |
2972 | ||
10f2d63a | 2973 | |
54276ccf | 2974 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
d8356fa3 | 2975 | echo "configure:2976: checking for --enable-compat20" >&5 |
54276ccf VZ |
2976 | no_cache=0 |
2977 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2978 | if test "${enable_compat20+set}" = set; then | |
2979 | enableval="$enable_compat20" | |
2980 | ||
2981 | if test "$enableval" = yes; then | |
2982 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2983 | else | |
2984 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2985 | fi | |
2986 | ||
2987 | else | |
2988 | ||
2989 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2990 | if test "x$LINE" != x ; then | |
2991 | eval "DEFAULT_$LINE" | |
2992 | else | |
2993 | no_cache=1 | |
2994 | fi | |
2995 | ||
2996 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2997 | ||
2998 | fi | |
2999 | ||
3000 | ||
3001 | eval "$ac_cv_use_compat20" | |
3002 | if test "$no_cache" != 1; then | |
3003 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3004 | fi | |
3005 | ||
3006 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3007 | echo "$ac_t""yes" 1>&6 | |
3008 | else | |
3009 | echo "$ac_t""no" 1>&6 | |
3010 | fi | |
3011 | ||
3012 | ||
3013 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
d8356fa3 | 3014 | echo "configure:3015: checking for --enable-compat22" >&5 |
54276ccf VZ |
3015 | no_cache=0 |
3016 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3017 | if test "${enable_compat22+set}" = set; then | |
3018 | enableval="$enable_compat22" | |
3019 | ||
3020 | if test "$enableval" = yes; then | |
3021 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3022 | else | |
3023 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3024 | fi | |
3025 | ||
3026 | else | |
3027 | ||
3028 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3029 | if test "x$LINE" != x ; then | |
3030 | eval "DEFAULT_$LINE" | |
3031 | else | |
3032 | no_cache=1 | |
3033 | fi | |
3034 | ||
3035 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3036 | ||
3037 | fi | |
3038 | ||
3039 | ||
3040 | eval "$ac_cv_use_compat22" | |
3041 | if test "$no_cache" != 1; then | |
3042 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3043 | fi | |
3044 | ||
3045 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3046 | echo "$ac_t""yes" 1>&6 | |
3047 | else | |
3048 | echo "$ac_t""no" 1>&6 | |
3049 | fi | |
3050 | ||
3051 | ||
3052 | ||
698dcdb6 VZ |
3053 | |
3054 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
d8356fa3 | 3055 | echo "configure:3056: checking for --enable-intl" >&5 |
10f2d63a VZ |
3056 | no_cache=0 |
3057 | # Check whether --enable-intl or --disable-intl was given. | |
3058 | if test "${enable_intl+set}" = set; then | |
3059 | enableval="$enable_intl" | |
698dcdb6 | 3060 | |
10f2d63a VZ |
3061 | if test "$enableval" = yes; then |
3062 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3063 | else | |
3064 | ac_cv_use_intl='wxUSE_INTL=no' | |
3065 | fi | |
698dcdb6 | 3066 | |
10f2d63a | 3067 | else |
698dcdb6 | 3068 | |
10f2d63a VZ |
3069 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3070 | if test "x$LINE" != x ; then | |
3071 | eval "DEFAULT_$LINE" | |
3072 | else | |
3073 | no_cache=1 | |
3074 | fi | |
3075 | ||
3076 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3077 | |
3078 | fi | |
10f2d63a VZ |
3079 | |
3080 | ||
3081 | eval "$ac_cv_use_intl" | |
3082 | if test "$no_cache" != 1; then | |
3083 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3084 | fi | |
3085 | ||
3086 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3087 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3088 | else |
698dcdb6 | 3089 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3090 | fi |
698dcdb6 | 3091 | |
10f2d63a | 3092 | |
698dcdb6 | 3093 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
d8356fa3 | 3094 | echo "configure:3095: checking for --enable-config" >&5 |
10f2d63a VZ |
3095 | no_cache=0 |
3096 | # Check whether --enable-config or --disable-config was given. | |
3097 | if test "${enable_config+set}" = set; then | |
3098 | enableval="$enable_config" | |
698dcdb6 | 3099 | |
10f2d63a VZ |
3100 | if test "$enableval" = yes; then |
3101 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3102 | else | |
3103 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3104 | fi | |
698dcdb6 | 3105 | |
10f2d63a | 3106 | else |
698dcdb6 | 3107 | |
10f2d63a VZ |
3108 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3109 | if test "x$LINE" != x ; then | |
3110 | eval "DEFAULT_$LINE" | |
3111 | else | |
3112 | no_cache=1 | |
3113 | fi | |
3114 | ||
3115 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3116 | |
3117 | fi | |
10f2d63a VZ |
3118 | |
3119 | ||
3120 | eval "$ac_cv_use_config" | |
3121 | if test "$no_cache" != 1; then | |
3122 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3123 | fi | |
3124 | ||
3125 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3126 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3127 | else |
698dcdb6 | 3128 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3129 | fi |
698dcdb6 VZ |
3130 | |
3131 | ||
b12915c1 | 3132 | |
a1622950 | 3133 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
d8356fa3 | 3134 | echo "configure:3135: checking for --enable-protocols" >&5 |
a1622950 VZ |
3135 | no_cache=0 |
3136 | # Check whether --enable-protocols or --disable-protocols was given. | |
3137 | if test "${enable_protocols+set}" = set; then | |
3138 | enableval="$enable_protocols" | |
3139 | ||
3140 | if test "$enableval" = yes; then | |
3141 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3142 | else | |
3143 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3144 | fi | |
3145 | ||
3146 | else | |
3147 | ||
3148 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3149 | if test "x$LINE" != x ; then | |
3150 | eval "DEFAULT_$LINE" | |
3151 | else | |
3152 | no_cache=1 | |
3153 | fi | |
3154 | ||
3155 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3156 | ||
3157 | fi | |
3158 | ||
3159 | ||
3160 | eval "$ac_cv_use_protocols" | |
3161 | if test "$no_cache" != 1; then | |
3162 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3163 | fi | |
3164 | ||
3165 | if test "$wxUSE_PROTOCOL" = yes; then | |
3166 | echo "$ac_t""yes" 1>&6 | |
3167 | else | |
3168 | echo "$ac_t""no" 1>&6 | |
3169 | fi | |
3170 | ||
3171 | ||
3172 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
d8356fa3 | 3173 | echo "configure:3174: checking for --enable-ftp" >&5 |
a1622950 VZ |
3174 | no_cache=0 |
3175 | # Check whether --enable-ftp or --disable-ftp was given. | |
3176 | if test "${enable_ftp+set}" = set; then | |
3177 | enableval="$enable_ftp" | |
3178 | ||
3179 | if test "$enableval" = yes; then | |
3180 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3181 | else | |
3182 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3183 | fi | |
3184 | ||
3185 | else | |
3186 | ||
3187 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3188 | if test "x$LINE" != x ; then | |
3189 | eval "DEFAULT_$LINE" | |
3190 | else | |
3191 | no_cache=1 | |
3192 | fi | |
3193 | ||
3194 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3195 | ||
3196 | fi | |
3197 | ||
3198 | ||
3199 | eval "$ac_cv_use_ftp" | |
3200 | if test "$no_cache" != 1; then | |
3201 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3202 | fi | |
3203 | ||
3204 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3205 | echo "$ac_t""yes" 1>&6 | |
3206 | else | |
3207 | echo "$ac_t""no" 1>&6 | |
3208 | fi | |
3209 | ||
3210 | ||
3211 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
d8356fa3 | 3212 | echo "configure:3213: checking for --enable-http" >&5 |
a1622950 VZ |
3213 | no_cache=0 |
3214 | # Check whether --enable-http or --disable-http was given. | |
3215 | if test "${enable_http+set}" = set; then | |
3216 | enableval="$enable_http" | |
3217 | ||
3218 | if test "$enableval" = yes; then | |
3219 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3220 | else | |
3221 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3222 | fi | |
3223 | ||
3224 | else | |
3225 | ||
3226 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3227 | if test "x$LINE" != x ; then | |
3228 | eval "DEFAULT_$LINE" | |
3229 | else | |
3230 | no_cache=1 | |
3231 | fi | |
3232 | ||
3233 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3234 | ||
3235 | fi | |
3236 | ||
3237 | ||
3238 | eval "$ac_cv_use_http" | |
3239 | if test "$no_cache" != 1; then | |
3240 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3241 | fi | |
3242 | ||
3243 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3244 | echo "$ac_t""yes" 1>&6 | |
3245 | else | |
3246 | echo "$ac_t""no" 1>&6 | |
3247 | fi | |
3248 | ||
3249 | ||
3250 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
d8356fa3 | 3251 | echo "configure:3252: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3252 | no_cache=0 |
3253 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3254 | if test "${enable_fileproto+set}" = set; then | |
3255 | enableval="$enable_fileproto" | |
3256 | ||
3257 | if test "$enableval" = yes; then | |
3258 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3259 | else | |
3260 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3261 | fi | |
3262 | ||
3263 | else | |
3264 | ||
3265 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3266 | if test "x$LINE" != x ; then | |
3267 | eval "DEFAULT_$LINE" | |
3268 | else | |
3269 | no_cache=1 | |
3270 | fi | |
3271 | ||
3272 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3273 | ||
3274 | fi | |
3275 | ||
3276 | ||
3277 | eval "$ac_cv_use_fileproto" | |
3278 | if test "$no_cache" != 1; then | |
3279 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3280 | fi | |
3281 | ||
3282 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3283 | echo "$ac_t""yes" 1>&6 | |
3284 | else | |
3285 | echo "$ac_t""no" 1>&6 | |
3286 | fi | |
3287 | ||
3288 | ||
698dcdb6 | 3289 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
d8356fa3 | 3290 | echo "configure:3291: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3291 | no_cache=0 |
3292 | # Check whether --enable-sockets or --disable-sockets was given. | |
3293 | if test "${enable_sockets+set}" = set; then | |
3294 | enableval="$enable_sockets" | |
698dcdb6 | 3295 | |
10f2d63a VZ |
3296 | if test "$enableval" = yes; then |
3297 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3298 | else | |
3299 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3300 | fi | |
698dcdb6 | 3301 | |
10f2d63a | 3302 | else |
698dcdb6 | 3303 | |
10f2d63a VZ |
3304 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3305 | if test "x$LINE" != x ; then | |
3306 | eval "DEFAULT_$LINE" | |
3307 | else | |
3308 | no_cache=1 | |
3309 | fi | |
3310 | ||
3311 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3312 | |
3313 | fi | |
10f2d63a VZ |
3314 | |
3315 | ||
3316 | eval "$ac_cv_use_sockets" | |
3317 | if test "$no_cache" != 1; then | |
3318 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3319 | fi | |
3320 | ||
3321 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3323 | else |
698dcdb6 | 3324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3325 | fi |
698dcdb6 | 3326 | |
b12915c1 | 3327 | |
698dcdb6 VZ |
3328 | |
3329 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
d8356fa3 | 3330 | echo "configure:3331: checking for --enable-ipc" >&5 |
10f2d63a | 3331 | no_cache=0 |
eb4efbdc VZ |
3332 | # Check whether --enable-ipc or --disable-ipc was given. |
3333 | if test "${enable_ipc+set}" = set; then | |
3334 | enableval="$enable_ipc" | |
698dcdb6 | 3335 | |
10f2d63a | 3336 | if test "$enableval" = yes; then |
eb4efbdc | 3337 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3338 | else |
eb4efbdc | 3339 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3340 | fi |
698dcdb6 | 3341 | |
10f2d63a | 3342 | else |
698dcdb6 | 3343 | |
eb4efbdc | 3344 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3345 | if test "x$LINE" != x ; then |
3346 | eval "DEFAULT_$LINE" | |
3347 | else | |
3348 | no_cache=1 | |
3349 | fi | |
3350 | ||
eb4efbdc | 3351 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3352 | |
3353 | fi | |
10f2d63a VZ |
3354 | |
3355 | ||
eb4efbdc | 3356 | eval "$ac_cv_use_ipc" |
10f2d63a | 3357 | if test "$no_cache" != 1; then |
eb4efbdc | 3358 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3359 | fi |
3360 | ||
eb4efbdc | 3361 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3363 | else |
698dcdb6 | 3364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3365 | fi |
698dcdb6 VZ |
3366 | |
3367 | ||
eb4efbdc | 3368 | |
1e6feb95 | 3369 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
d8356fa3 | 3370 | echo "configure:3371: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3371 | no_cache=0 |
3372 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3373 | if test "${enable_cmdline+set}" = set; then | |
3374 | enableval="$enable_cmdline" | |
3375 | ||
3376 | if test "$enableval" = yes; then | |
3377 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3378 | else | |
3379 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3380 | fi | |
3381 | ||
3382 | else | |
3383 | ||
3384 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3385 | if test "x$LINE" != x ; then | |
3386 | eval "DEFAULT_$LINE" | |
3387 | else | |
3388 | no_cache=1 | |
3389 | fi | |
3390 | ||
3391 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3392 | ||
3393 | fi | |
3394 | ||
3395 | ||
3396 | eval "$ac_cv_use_cmdline" | |
3397 | if test "$no_cache" != 1; then | |
3398 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3399 | fi | |
3400 | ||
3401 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3402 | echo "$ac_t""yes" 1>&6 | |
3403 | else | |
3404 | echo "$ac_t""no" 1>&6 | |
3405 | fi | |
3406 | ||
3407 | ||
3408 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
d8356fa3 | 3409 | echo "configure:3410: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3410 | no_cache=0 |
3411 | # Check whether --enable-datetime or --disable-datetime was given. | |
3412 | if test "${enable_datetime+set}" = set; then | |
3413 | enableval="$enable_datetime" | |
3414 | ||
3415 | if test "$enableval" = yes; then | |
3416 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3417 | else | |
3418 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3419 | fi | |
3420 | ||
3421 | else | |
3422 | ||
3423 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3424 | if test "x$LINE" != x ; then | |
3425 | eval "DEFAULT_$LINE" | |
3426 | else | |
3427 | no_cache=1 | |
3428 | fi | |
3429 | ||
3430 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3431 | ||
3432 | fi | |
3433 | ||
3434 | ||
3435 | eval "$ac_cv_use_datetime" | |
3436 | if test "$no_cache" != 1; then | |
3437 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3438 | fi | |
3439 | ||
3440 | if test "$wxUSE_DATETIME" = yes; then | |
3441 | echo "$ac_t""yes" 1>&6 | |
3442 | else | |
3443 | echo "$ac_t""no" 1>&6 | |
3444 | fi | |
3445 | ||
3446 | ||
3447 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
d8356fa3 | 3448 | echo "configure:3449: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3449 | no_cache=0 |
3450 | # Check whether --enable-timedate or --disable-timedate was given. | |
3451 | if test "${enable_timedate+set}" = set; then | |
3452 | enableval="$enable_timedate" | |
3453 | ||
3454 | if test "$enableval" = yes; then | |
3455 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3456 | else | |
3457 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3458 | fi | |
3459 | ||
3460 | else | |
3461 | ||
3462 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3463 | if test "x$LINE" != x ; then | |
3464 | eval "DEFAULT_$LINE" | |
3465 | else | |
3466 | no_cache=1 | |
3467 | fi | |
3468 | ||
3469 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3470 | ||
3471 | fi | |
3472 | ||
3473 | ||
3474 | eval "$ac_cv_use_timedate" | |
3475 | if test "$no_cache" != 1; then | |
3476 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3477 | fi | |
3478 | ||
3479 | if test "$wxUSE_TIMEDATE" = yes; then | |
3480 | echo "$ac_t""yes" 1>&6 | |
3481 | else | |
3482 | echo "$ac_t""no" 1>&6 | |
3483 | fi | |
3484 | ||
3485 | ||
3486 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
d8356fa3 | 3487 | echo "configure:3488: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3488 | no_cache=0 |
3489 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3490 | if test "${enable_stopwatch+set}" = set; then | |
3491 | enableval="$enable_stopwatch" | |
3492 | ||
3493 | if test "$enableval" = yes; then | |
3494 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3495 | else | |
3496 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3497 | fi | |
3498 | ||
3499 | else | |
3500 | ||
3501 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3502 | if test "x$LINE" != x ; then | |
3503 | eval "DEFAULT_$LINE" | |
3504 | else | |
3505 | no_cache=1 | |
3506 | fi | |
3507 | ||
3508 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3509 | ||
3510 | fi | |
3511 | ||
3512 | ||
3513 | eval "$ac_cv_use_stopwatch" | |
3514 | if test "$no_cache" != 1; then | |
3515 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3516 | fi | |
3517 | ||
3518 | if test "$wxUSE_STOPWATCH" = yes; then | |
3519 | echo "$ac_t""yes" 1>&6 | |
3520 | else | |
3521 | echo "$ac_t""no" 1>&6 | |
3522 | fi | |
3523 | ||
3524 | ||
698dcdb6 | 3525 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
d8356fa3 | 3526 | echo "configure:3527: checking for --enable-dialupman" >&5 |
10f2d63a | 3527 | no_cache=0 |
eb4efbdc VZ |
3528 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3529 | if test "${enable_dialupman+set}" = set; then | |
3530 | enableval="$enable_dialupman" | |
698dcdb6 | 3531 | |
10f2d63a | 3532 | if test "$enableval" = yes; then |
eb4efbdc | 3533 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3534 | else |
eb4efbdc | 3535 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3536 | fi |
698dcdb6 | 3537 | |
10f2d63a | 3538 | else |
698dcdb6 | 3539 | |
eb4efbdc | 3540 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3541 | if test "x$LINE" != x ; then |
3542 | eval "DEFAULT_$LINE" | |
3543 | else | |
3544 | no_cache=1 | |
3545 | fi | |
3546 | ||
eb4efbdc | 3547 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3548 | |
3549 | fi | |
10f2d63a VZ |
3550 | |
3551 | ||
eb4efbdc | 3552 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3553 | if test "$no_cache" != 1; then |
eb4efbdc | 3554 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3555 | fi |
3556 | ||
eb4efbdc | 3557 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3558 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3559 | else |
698dcdb6 | 3560 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3561 | fi |
698dcdb6 | 3562 | |
10f2d63a | 3563 | |
698dcdb6 | 3564 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
d8356fa3 | 3565 | echo "configure:3566: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3566 | no_cache=0 |
3567 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3568 | if test "${enable_apple_ieee+set}" = set; then | |
3569 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3570 | |
10f2d63a VZ |
3571 | if test "$enableval" = yes; then |
3572 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3573 | else | |
3574 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3575 | fi | |
698dcdb6 | 3576 | |
10f2d63a | 3577 | else |
698dcdb6 | 3578 | |
10f2d63a VZ |
3579 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3580 | if test "x$LINE" != x ; then | |
3581 | eval "DEFAULT_$LINE" | |
3582 | else | |
3583 | no_cache=1 | |
3584 | fi | |
3585 | ||
3586 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3587 | |
3588 | fi | |
10f2d63a VZ |
3589 | |
3590 | ||
3591 | eval "$ac_cv_use_apple_ieee" | |
3592 | if test "$no_cache" != 1; then | |
3593 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3594 | fi | |
3595 | ||
3596 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3597 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3598 | else |
698dcdb6 | 3599 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3600 | fi |
698dcdb6 | 3601 | |
10f2d63a | 3602 | |
1e6feb95 | 3603 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
d8356fa3 | 3604 | echo "configure:3605: checking for --enable-timer" >&5 |
10f2d63a | 3605 | no_cache=0 |
1e6feb95 VZ |
3606 | # Check whether --enable-timer or --disable-timer was given. |
3607 | if test "${enable_timer+set}" = set; then | |
3608 | enableval="$enable_timer" | |
698dcdb6 | 3609 | |
10f2d63a | 3610 | if test "$enableval" = yes; then |
1e6feb95 | 3611 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3612 | else |
1e6feb95 | 3613 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3614 | fi |
698dcdb6 | 3615 | |
10f2d63a | 3616 | else |
698dcdb6 | 3617 | |
1e6feb95 | 3618 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3619 | if test "x$LINE" != x ; then |
3620 | eval "DEFAULT_$LINE" | |
3621 | else | |
3622 | no_cache=1 | |
3623 | fi | |
3624 | ||
1e6feb95 | 3625 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3626 | |
3627 | fi | |
10f2d63a VZ |
3628 | |
3629 | ||
1e6feb95 | 3630 | eval "$ac_cv_use_timer" |
10f2d63a | 3631 | if test "$no_cache" != 1; then |
1e6feb95 | 3632 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3633 | fi |
3634 | ||
1e6feb95 | 3635 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3637 | else |
698dcdb6 | 3638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3639 | fi |
698dcdb6 | 3640 | |
10f2d63a | 3641 | |
698dcdb6 | 3642 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
d8356fa3 | 3643 | echo "configure:3644: checking for --enable-wave" >&5 |
10f2d63a VZ |
3644 | no_cache=0 |
3645 | # Check whether --enable-wave or --disable-wave was given. | |
3646 | if test "${enable_wave+set}" = set; then | |
3647 | enableval="$enable_wave" | |
698dcdb6 | 3648 | |
10f2d63a VZ |
3649 | if test "$enableval" = yes; then |
3650 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3651 | else | |
3652 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3653 | fi | |
698dcdb6 | 3654 | |
10f2d63a | 3655 | else |
698dcdb6 | 3656 | |
10f2d63a VZ |
3657 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3658 | if test "x$LINE" != x ; then | |
3659 | eval "DEFAULT_$LINE" | |
3660 | else | |
3661 | no_cache=1 | |
3662 | fi | |
3663 | ||
3664 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3665 | |
3666 | fi | |
10f2d63a VZ |
3667 | |
3668 | ||
3669 | eval "$ac_cv_use_wave" | |
3670 | if test "$no_cache" != 1; then | |
3671 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3672 | fi | |
3673 | ||
3674 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3676 | else |
698dcdb6 | 3677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3678 | fi |
698dcdb6 | 3679 | |
10f2d63a | 3680 | |
698dcdb6 | 3681 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
d8356fa3 | 3682 | echo "configure:3683: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3683 | no_cache=0 |
3684 | # Check whether --enable-fraction or --disable-fraction was given. | |
3685 | if test "${enable_fraction+set}" = set; then | |
3686 | enableval="$enable_fraction" | |
698dcdb6 | 3687 | |
10f2d63a VZ |
3688 | if test "$enableval" = yes; then |
3689 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3690 | else | |
3691 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3692 | fi | |
698dcdb6 | 3693 | |
10f2d63a | 3694 | else |
698dcdb6 | 3695 | |
10f2d63a VZ |
3696 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3697 | if test "x$LINE" != x ; then | |
3698 | eval "DEFAULT_$LINE" | |
3699 | else | |
3700 | no_cache=1 | |
3701 | fi | |
3702 | ||
3703 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3704 | |
3705 | fi | |
10f2d63a VZ |
3706 | |
3707 | ||
3708 | eval "$ac_cv_use_fraction" | |
3709 | if test "$no_cache" != 1; then | |
3710 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3711 | fi | |
3712 | ||
3713 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3715 | else |
698dcdb6 | 3716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3717 | fi |
698dcdb6 | 3718 | |
10f2d63a | 3719 | |
698dcdb6 | 3720 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
d8356fa3 | 3721 | echo "configure:3722: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3722 | no_cache=0 |
3723 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3724 | if test "${enable_dynlib+set}" = set; then | |
3725 | enableval="$enable_dynlib" | |
698dcdb6 | 3726 | |
10f2d63a VZ |
3727 | if test "$enableval" = yes; then |
3728 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3729 | else | |
3730 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3731 | fi | |
698dcdb6 | 3732 | |
10f2d63a | 3733 | else |
698dcdb6 | 3734 | |
10f2d63a VZ |
3735 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3736 | if test "x$LINE" != x ; then | |
3737 | eval "DEFAULT_$LINE" | |
3738 | else | |
3739 | no_cache=1 | |
3740 | fi | |
3741 | ||
3742 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3743 | |
3744 | fi | |
10f2d63a VZ |
3745 | |
3746 | ||
3747 | eval "$ac_cv_use_dynlib" | |
3748 | if test "$no_cache" != 1; then | |
3749 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3750 | fi | |
3751 | ||
3752 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3753 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3754 | else |
698dcdb6 | 3755 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3756 | fi |
698dcdb6 | 3757 | |
10f2d63a | 3758 | |
0b9ab0bd | 3759 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
d8356fa3 | 3760 | echo "configure:3761: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3761 | no_cache=0 |
3762 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3763 | if test "${enable_dynamicloader+set}" = set; then | |
3764 | enableval="$enable_dynamicloader" | |
3765 | ||
3766 | if test "$enableval" = yes; then | |
3767 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3768 | else | |
3769 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3770 | fi | |
3771 | ||
3772 | else | |
3773 | ||
3774 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3775 | if test "x$LINE" != x ; then | |
3776 | eval "DEFAULT_$LINE" | |
3777 | else | |
3778 | no_cache=1 | |
3779 | fi | |
3780 | ||
3781 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3782 | ||
3783 | fi | |
3784 | ||
3785 | ||
3786 | eval "$ac_cv_use_dynamicloader" | |
3787 | if test "$no_cache" != 1; then | |
3788 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3789 | fi | |
3790 | ||
3791 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3792 | echo "$ac_t""yes" 1>&6 | |
3793 | else | |
3794 | echo "$ac_t""no" 1>&6 | |
3795 | fi | |
3796 | ||
3797 | ||
698dcdb6 | 3798 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
d8356fa3 | 3799 | echo "configure:3800: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3800 | no_cache=0 |
3801 | # Check whether --enable-longlong or --disable-longlong was given. | |
3802 | if test "${enable_longlong+set}" = set; then | |
3803 | enableval="$enable_longlong" | |
698dcdb6 | 3804 | |
10f2d63a VZ |
3805 | if test "$enableval" = yes; then |
3806 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3807 | else | |
3808 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3809 | fi | |
698dcdb6 | 3810 | |
10f2d63a | 3811 | else |
698dcdb6 | 3812 | |
10f2d63a VZ |
3813 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3814 | if test "x$LINE" != x ; then | |
3815 | eval "DEFAULT_$LINE" | |
3816 | else | |
3817 | no_cache=1 | |
3818 | fi | |
3819 | ||
3820 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3821 | |
3822 | fi | |
10f2d63a VZ |
3823 | |
3824 | ||
3825 | eval "$ac_cv_use_longlong" | |
3826 | if test "$no_cache" != 1; then | |
3827 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3828 | fi | |
3829 | ||
3830 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3832 | else |
698dcdb6 | 3833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3834 | fi |
698dcdb6 | 3835 | |
10f2d63a | 3836 | |
698dcdb6 | 3837 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
d8356fa3 | 3838 | echo "configure:3839: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3839 | no_cache=0 |
3840 | # Check whether --enable-geometry or --disable-geometry was given. | |
3841 | if test "${enable_geometry+set}" = set; then | |
3842 | enableval="$enable_geometry" | |
698dcdb6 | 3843 | |
e8f65ba6 RR |
3844 | if test "$enableval" = yes; then |
3845 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3846 | else | |
3847 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3848 | fi | |
698dcdb6 | 3849 | |
e8f65ba6 | 3850 | else |
698dcdb6 | 3851 | |
e8f65ba6 RR |
3852 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3853 | if test "x$LINE" != x ; then | |
3854 | eval "DEFAULT_$LINE" | |
3855 | else | |
3856 | no_cache=1 | |
3857 | fi | |
3858 | ||
3859 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3860 | |
3861 | fi | |
e8f65ba6 RR |
3862 | |
3863 | ||
3864 | eval "$ac_cv_use_geometry" | |
3865 | if test "$no_cache" != 1; then | |
3866 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3867 | fi | |
3868 | ||
3869 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3870 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3871 | else |
698dcdb6 | 3872 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3873 | fi |
698dcdb6 | 3874 | |
e8f65ba6 | 3875 | |
698dcdb6 | 3876 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
d8356fa3 | 3877 | echo "configure:3878: checking for --enable-log" >&5 |
10f2d63a VZ |
3878 | no_cache=0 |
3879 | # Check whether --enable-log or --disable-log was given. | |
3880 | if test "${enable_log+set}" = set; then | |
3881 | enableval="$enable_log" | |
698dcdb6 | 3882 | |
10f2d63a VZ |
3883 | if test "$enableval" = yes; then |
3884 | ac_cv_use_log='wxUSE_LOG=yes' | |
3885 | else | |
3886 | ac_cv_use_log='wxUSE_LOG=no' | |
3887 | fi | |
698dcdb6 | 3888 | |
10f2d63a | 3889 | else |
698dcdb6 | 3890 | |
10f2d63a VZ |
3891 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3892 | if test "x$LINE" != x ; then | |
3893 | eval "DEFAULT_$LINE" | |
3894 | else | |
3895 | no_cache=1 | |
3896 | fi | |
3897 | ||
3898 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3899 | |
3900 | fi | |
10f2d63a VZ |
3901 | |
3902 | ||
3903 | eval "$ac_cv_use_log" | |
3904 | if test "$no_cache" != 1; then | |
3905 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3906 | fi | |
3907 | ||
3908 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3909 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3910 | else |
698dcdb6 | 3911 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3912 | fi |
698dcdb6 | 3913 | |
10f2d63a | 3914 | |
698dcdb6 | 3915 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
d8356fa3 | 3916 | echo "configure:3917: checking for --enable-streams" >&5 |
10f2d63a VZ |
3917 | no_cache=0 |
3918 | # Check whether --enable-streams or --disable-streams was given. | |
3919 | if test "${enable_streams+set}" = set; then | |
3920 | enableval="$enable_streams" | |
698dcdb6 | 3921 | |
10f2d63a VZ |
3922 | if test "$enableval" = yes; then |
3923 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3924 | else | |
3925 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3926 | fi | |
698dcdb6 | 3927 | |
10f2d63a | 3928 | else |
698dcdb6 | 3929 | |
10f2d63a VZ |
3930 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3931 | if test "x$LINE" != x ; then | |
3932 | eval "DEFAULT_$LINE" | |
3933 | else | |
3934 | no_cache=1 | |
3935 | fi | |
3936 | ||
3937 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3938 | |
3939 | fi | |
10f2d63a VZ |
3940 | |
3941 | ||
3942 | eval "$ac_cv_use_streams" | |
3943 | if test "$no_cache" != 1; then | |
3944 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3945 | fi | |
3946 | ||
3947 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3948 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3949 | else |
698dcdb6 | 3950 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3951 | fi |
698dcdb6 | 3952 | |
10f2d63a | 3953 | |
698dcdb6 | 3954 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
d8356fa3 | 3955 | echo "configure:3956: checking for --enable-file" >&5 |
10f2d63a VZ |
3956 | no_cache=0 |
3957 | # Check whether --enable-file or --disable-file was given. | |
3958 | if test "${enable_file+set}" = set; then | |
3959 | enableval="$enable_file" | |
698dcdb6 | 3960 | |
10f2d63a VZ |
3961 | if test "$enableval" = yes; then |
3962 | ac_cv_use_file='wxUSE_FILE=yes' | |
3963 | else | |
3964 | ac_cv_use_file='wxUSE_FILE=no' | |
3965 | fi | |
698dcdb6 | 3966 | |
10f2d63a | 3967 | else |
698dcdb6 | 3968 | |
10f2d63a VZ |
3969 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3970 | if test "x$LINE" != x ; then | |
3971 | eval "DEFAULT_$LINE" | |
3972 | else | |
3973 | no_cache=1 | |
3974 | fi | |
3975 | ||
3976 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3977 | |
3978 | fi | |
10f2d63a VZ |
3979 | |
3980 | ||
3981 | eval "$ac_cv_use_file" | |
3982 | if test "$no_cache" != 1; then | |
3983 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3984 | fi | |
3985 | ||
3986 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3987 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3988 | else |
698dcdb6 | 3989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3990 | fi |
698dcdb6 | 3991 | |
10f2d63a | 3992 | |
1e6feb95 | 3993 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
d8356fa3 | 3994 | echo "configure:3995: checking for --enable-ffile" >&5 |
10f2d63a | 3995 | no_cache=0 |
1e6feb95 VZ |
3996 | # Check whether --enable-ffile or --disable-ffile was given. |
3997 | if test "${enable_ffile+set}" = set; then | |
3998 | enableval="$enable_ffile" | |
698dcdb6 | 3999 | |
10f2d63a | 4000 | if test "$enableval" = yes; then |
1e6feb95 | 4001 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4002 | else |
1e6feb95 | 4003 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4004 | fi |
698dcdb6 | 4005 | |
10f2d63a | 4006 | else |
698dcdb6 | 4007 | |
1e6feb95 | 4008 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4009 | if test "x$LINE" != x ; then |
4010 | eval "DEFAULT_$LINE" | |
4011 | else | |
4012 | no_cache=1 | |
4013 | fi | |
4014 | ||
1e6feb95 | 4015 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
4016 | |
4017 | fi | |
10f2d63a VZ |
4018 | |
4019 | ||
1e6feb95 | 4020 | eval "$ac_cv_use_ffile" |
10f2d63a | 4021 | if test "$no_cache" != 1; then |
1e6feb95 | 4022 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4023 | fi |
4024 | ||
1e6feb95 | 4025 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 4026 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4027 | else |
698dcdb6 | 4028 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4029 | fi |
698dcdb6 | 4030 | |
10f2d63a | 4031 | |
a3a584a7 | 4032 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
d8356fa3 | 4033 | echo "configure:4034: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4034 | no_cache=0 |
4035 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4036 | if test "${enable_textbuf+set}" = set; then | |
4037 | enableval="$enable_textbuf" | |
4038 | ||
4039 | if test "$enableval" = yes; then | |
4040 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4041 | else | |
4042 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | ||
4047 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4055 | ||
4056 | fi | |
4057 | ||
4058 | ||
4059 | eval "$ac_cv_use_textbuf" | |
4060 | if test "$no_cache" != 1; then | |
4061 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4062 | fi | |
4063 | ||
4064 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4065 | echo "$ac_t""yes" 1>&6 | |
4066 | else | |
4067 | echo "$ac_t""no" 1>&6 | |
4068 | fi | |
4069 | ||
4070 | ||
1e6feb95 | 4071 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
d8356fa3 | 4072 | echo "configure:4073: checking for --enable-textfile" >&5 |
10f2d63a | 4073 | no_cache=0 |
1e6feb95 VZ |
4074 | # Check whether --enable-textfile or --disable-textfile was given. |
4075 | if test "${enable_textfile+set}" = set; then | |
4076 | enableval="$enable_textfile" | |
698dcdb6 | 4077 | |
10f2d63a | 4078 | if test "$enableval" = yes; then |
1e6feb95 | 4079 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4080 | else |
1e6feb95 | 4081 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4082 | fi |
698dcdb6 | 4083 | |
10f2d63a | 4084 | else |
698dcdb6 | 4085 | |
1e6feb95 | 4086 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4087 | if test "x$LINE" != x ; then |
4088 | eval "DEFAULT_$LINE" | |
4089 | else | |
4090 | no_cache=1 | |
4091 | fi | |
4092 | ||
1e6feb95 | 4093 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4094 | |
4095 | fi | |
10f2d63a VZ |
4096 | |
4097 | ||
1e6feb95 | 4098 | eval "$ac_cv_use_textfile" |
10f2d63a | 4099 | if test "$no_cache" != 1; then |
1e6feb95 | 4100 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4101 | fi |
4102 | ||
1e6feb95 | 4103 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4104 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4105 | else |
698dcdb6 | 4106 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4107 | fi |
698dcdb6 | 4108 | |
10f2d63a | 4109 | |
1e6feb95 | 4110 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
d8356fa3 | 4111 | echo "configure:4112: checking for --enable-fontmap" >&5 |
10f2d63a | 4112 | no_cache=0 |
1e6feb95 VZ |
4113 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4114 | if test "${enable_fontmap+set}" = set; then | |
4115 | enableval="$enable_fontmap" | |
698dcdb6 | 4116 | |
10f2d63a | 4117 | if test "$enableval" = yes; then |
1e6feb95 | 4118 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4119 | else |
1e6feb95 | 4120 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4121 | fi |
698dcdb6 | 4122 | |
10f2d63a | 4123 | else |
698dcdb6 | 4124 | |
1e6feb95 | 4125 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4126 | if test "x$LINE" != x ; then |
4127 | eval "DEFAULT_$LINE" | |
4128 | else | |
4129 | no_cache=1 | |
4130 | fi | |
4131 | ||
1e6feb95 | 4132 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4133 | |
4134 | fi | |
10f2d63a VZ |
4135 | |
4136 | ||
1e6feb95 | 4137 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4138 | if test "$no_cache" != 1; then |
1e6feb95 | 4139 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4140 | fi |
4141 | ||
1e6feb95 | 4142 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4143 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4144 | else |
698dcdb6 | 4145 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4146 | fi |
698dcdb6 | 4147 | |
10f2d63a | 4148 | |
1e6feb95 | 4149 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
d8356fa3 | 4150 | echo "configure:4151: checking for --enable-unicode" >&5 |
10f2d63a | 4151 | no_cache=0 |
1e6feb95 VZ |
4152 | # Check whether --enable-unicode or --disable-unicode was given. |
4153 | if test "${enable_unicode+set}" = set; then | |
4154 | enableval="$enable_unicode" | |
4155 | ||
4156 | if test "$enableval" = yes; then | |
4157 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4158 | else | |
4159 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4160 | fi | |
4161 | ||
4162 | else | |
4163 | ||
4164 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4165 | if test "x$LINE" != x ; then | |
4166 | eval "DEFAULT_$LINE" | |
4167 | else | |
4168 | no_cache=1 | |
4169 | fi | |
4170 | ||
4171 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4172 | ||
4173 | fi | |
4174 | ||
4175 | ||
4176 | eval "$ac_cv_use_unicode" | |
4177 | if test "$no_cache" != 1; then | |
4178 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4179 | fi | |
4180 | ||
4181 | if test "$wxUSE_UNICODE" = yes; then | |
4182 | echo "$ac_t""yes" 1>&6 | |
4183 | else | |
4184 | echo "$ac_t""no" 1>&6 | |
4185 | fi | |
4186 | ||
4187 | ||
a72a4bfa | 4188 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
d8356fa3 | 4189 | echo "configure:4190: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4190 | no_cache=0 |
4191 | # Check whether --enable-mslu or --disable-mslu was given. | |
4192 | if test "${enable_mslu+set}" = set; then | |
4193 | enableval="$enable_mslu" | |
4194 | ||
4195 | if test "$enableval" = yes; then | |
4196 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4197 | else | |
4198 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4199 | fi | |
4200 | ||
4201 | else | |
4202 | ||
4203 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4204 | if test "x$LINE" != x ; then | |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
4210 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4211 | ||
4212 | fi | |
4213 | ||
4214 | ||
4215 | eval "$ac_cv_use_mslu" | |
4216 | if test "$no_cache" != 1; then | |
4217 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4218 | fi | |
4219 | ||
4220 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4221 | echo "$ac_t""yes" 1>&6 | |
4222 | else | |
4223 | echo "$ac_t""no" 1>&6 | |
4224 | fi | |
4225 | ||
4226 | ||
1e6feb95 | 4227 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
d8356fa3 | 4228 | echo "configure:4229: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4229 | no_cache=0 |
4230 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4231 | if test "${enable_wxprintfv+set}" = set; then | |
4232 | enableval="$enable_wxprintfv" | |
4233 | ||
4234 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4235 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4236 | else | |
4237 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4238 | fi | |
698dcdb6 | 4239 | |
10f2d63a | 4240 | else |
698dcdb6 | 4241 | |
10f2d63a VZ |
4242 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4243 | if test "x$LINE" != x ; then | |
4244 | eval "DEFAULT_$LINE" | |
4245 | else | |
4246 | no_cache=1 | |
4247 | fi | |
4248 | ||
4249 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4250 | |
4251 | fi | |
10f2d63a VZ |
4252 | |
4253 | ||
4254 | eval "$ac_cv_use_wxprintfv" | |
4255 | if test "$no_cache" != 1; then | |
4256 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4257 | fi | |
4258 | ||
4259 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4260 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4261 | else |
698dcdb6 | 4262 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4263 | fi |
698dcdb6 | 4264 | |
10f2d63a | 4265 | |
698dcdb6 | 4266 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
d8356fa3 | 4267 | echo "configure:4268: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4268 | no_cache=0 |
4269 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4270 | if test "${enable_std_iostreams+set}" = set; then | |
4271 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4272 | |
10f2d63a VZ |
4273 | if test "$enableval" = yes; then |
4274 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4275 | else | |
4276 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4277 | fi | |
698dcdb6 | 4278 | |
10f2d63a | 4279 | else |
698dcdb6 | 4280 | |
10f2d63a VZ |
4281 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4282 | if test "x$LINE" != x ; then | |
4283 | eval "DEFAULT_$LINE" | |
4284 | else | |
4285 | no_cache=1 | |
4286 | fi | |
4287 | ||
4288 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4289 | |
4290 | fi | |
10f2d63a VZ |
4291 | |
4292 | ||
4293 | eval "$ac_cv_use_std_iostreams" | |
4294 | if test "$no_cache" != 1; then | |
4295 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4296 | fi | |
4297 | ||
4298 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4300 | else |
698dcdb6 | 4301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4302 | fi |
698dcdb6 | 4303 | |
10f2d63a | 4304 | |
698dcdb6 | 4305 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
d8356fa3 | 4306 | echo "configure:4307: checking for --enable-filesystem" >&5 |
24528b0c VS |
4307 | no_cache=0 |
4308 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4309 | if test "${enable_filesystem+set}" = set; then | |
4310 | enableval="$enable_filesystem" | |
698dcdb6 | 4311 | |
24528b0c VS |
4312 | if test "$enableval" = yes; then |
4313 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4314 | else | |
4315 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4316 | fi | |
698dcdb6 | 4317 | |
24528b0c | 4318 | else |
698dcdb6 | 4319 | |
24528b0c VS |
4320 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4328 | |
4329 | fi | |
24528b0c VS |
4330 | |
4331 | ||
4332 | eval "$ac_cv_use_filesystem" | |
4333 | if test "$no_cache" != 1; then | |
4334 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4335 | fi | |
4336 | ||
4337 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4338 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4339 | else |
698dcdb6 | 4340 | echo "$ac_t""no" 1>&6 |
24528b0c | 4341 | fi |
698dcdb6 | 4342 | |
24528b0c | 4343 | |
698dcdb6 | 4344 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
d8356fa3 | 4345 | echo "configure:4346: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4346 | no_cache=0 |
4347 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4348 | if test "${enable_fs_inet+set}" = set; then | |
4349 | enableval="$enable_fs_inet" | |
698dcdb6 | 4350 | |
10f2d63a VZ |
4351 | if test "$enableval" = yes; then |
4352 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4353 | else | |
4354 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4355 | fi | |
698dcdb6 | 4356 | |
10f2d63a | 4357 | else |
698dcdb6 | 4358 | |
10f2d63a VZ |
4359 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4360 | if test "x$LINE" != x ; then | |
4361 | eval "DEFAULT_$LINE" | |
4362 | else | |
4363 | no_cache=1 | |
4364 | fi | |
4365 | ||
4366 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4367 | |
4368 | fi | |
10f2d63a VZ |
4369 | |
4370 | ||
4371 | eval "$ac_cv_use_fs_inet" | |
4372 | if test "$no_cache" != 1; then | |
4373 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4374 | fi | |
4375 | ||
4376 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4377 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4378 | else |
698dcdb6 | 4379 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4380 | fi |
698dcdb6 | 4381 | |
10f2d63a | 4382 | |
698dcdb6 | 4383 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
d8356fa3 | 4384 | echo "configure:4385: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4385 | no_cache=0 |
4386 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4387 | if test "${enable_fs_zip+set}" = set; then | |
4388 | enableval="$enable_fs_zip" | |
698dcdb6 | 4389 | |
10f2d63a VZ |
4390 | if test "$enableval" = yes; then |
4391 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4392 | else | |
4393 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4394 | fi | |
698dcdb6 | 4395 | |
10f2d63a | 4396 | else |
698dcdb6 | 4397 | |
10f2d63a VZ |
4398 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4399 | if test "x$LINE" != x ; then | |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
4405 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4406 | |
4407 | fi | |
10f2d63a VZ |
4408 | |
4409 | ||
4410 | eval "$ac_cv_use_fs_zip" | |
4411 | if test "$no_cache" != 1; then | |
4412 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4413 | fi | |
4414 | ||
4415 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4416 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4417 | else |
698dcdb6 | 4418 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4419 | fi |
698dcdb6 | 4420 | |
10f2d63a | 4421 | |
698dcdb6 | 4422 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
d8356fa3 | 4423 | echo "configure:4424: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4424 | no_cache=0 |
4425 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4426 | if test "${enable_zipstream+set}" = set; then | |
4427 | enableval="$enable_zipstream" | |
698dcdb6 | 4428 | |
10f2d63a VZ |
4429 | if test "$enableval" = yes; then |
4430 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4431 | else | |
4432 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4433 | fi | |
698dcdb6 | 4434 | |
10f2d63a | 4435 | else |
698dcdb6 | 4436 | |
10f2d63a VZ |
4437 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4438 | if test "x$LINE" != x ; then | |
4439 | eval "DEFAULT_$LINE" | |
4440 | else | |
4441 | no_cache=1 | |
4442 | fi | |
4443 | ||
4444 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4445 | |
4446 | fi | |
10f2d63a VZ |
4447 | |
4448 | ||
4449 | eval "$ac_cv_use_zipstream" | |
4450 | if test "$no_cache" != 1; then | |
4451 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4452 | fi | |
4453 | ||
4454 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4455 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4456 | else |
698dcdb6 | 4457 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4458 | fi |
698dcdb6 | 4459 | |
10f2d63a | 4460 | |
698dcdb6 VZ |
4461 | |
4462 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
d8356fa3 | 4463 | echo "configure:4464: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4464 | no_cache=0 |
4465 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4466 | if test "${enable_catch_segvs+set}" = set; then | |
4467 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4468 | |
eb4efbdc VZ |
4469 | if test "$enableval" = yes; then |
4470 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4471 | else | |
4472 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4473 | fi | |
698dcdb6 | 4474 | |
eb4efbdc | 4475 | else |
698dcdb6 | 4476 | |
eb4efbdc VZ |
4477 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4478 | if test "x$LINE" != x ; then | |
4479 | eval "DEFAULT_$LINE" | |
4480 | else | |
4481 | no_cache=1 | |
4482 | fi | |
4483 | ||
4484 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4485 | |
4486 | fi | |
eb4efbdc VZ |
4487 | |
4488 | ||
4489 | eval "$ac_cv_use_catch_segvs" | |
4490 | if test "$no_cache" != 1; then | |
4491 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4492 | fi | |
4493 | ||
4494 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4495 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4496 | else |
698dcdb6 | 4497 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4498 | fi |
698dcdb6 | 4499 | |
eb4efbdc | 4500 | |
698dcdb6 | 4501 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
d8356fa3 | 4502 | echo "configure:4503: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4503 | no_cache=0 |
4504 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4505 | if test "${enable_snglinst+set}" = set; then | |
4506 | enableval="$enable_snglinst" | |
698dcdb6 | 4507 | |
4f3c5f06 VZ |
4508 | if test "$enableval" = yes; then |
4509 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4510 | else | |
4511 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4512 | fi | |
698dcdb6 | 4513 | |
4f3c5f06 | 4514 | else |
698dcdb6 | 4515 | |
4f3c5f06 VZ |
4516 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4517 | if test "x$LINE" != x ; then | |
4518 | eval "DEFAULT_$LINE" | |
4519 | else | |
4520 | no_cache=1 | |
4521 | fi | |
4522 | ||
4523 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4524 | |
4525 | fi | |
4f3c5f06 VZ |
4526 | |
4527 | ||
4528 | eval "$ac_cv_use_snglinst" | |
4529 | if test "$no_cache" != 1; then | |
4530 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4531 | fi | |
4532 | ||
4533 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4534 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4535 | else |
698dcdb6 | 4536 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4537 | fi |
698dcdb6 VZ |
4538 | |
4539 | ||
eb4efbdc | 4540 | |
1e6feb95 | 4541 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
d8356fa3 | 4542 | echo "configure:4543: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4543 | no_cache=0 |
4544 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4545 | if test "${enable_mimetype+set}" = set; then | |
4546 | enableval="$enable_mimetype" | |
4547 | ||
4548 | if test "$enableval" = yes; then | |
4549 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4550 | else | |
4551 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4552 | fi | |
4553 | ||
4554 | else | |
4555 | ||
4556 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4557 | if test "x$LINE" != x ; then | |
4558 | eval "DEFAULT_$LINE" | |
4559 | else | |
4560 | no_cache=1 | |
4561 | fi | |
4562 | ||
4563 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4564 | ||
4565 | fi | |
4566 | ||
4567 | ||
4568 | eval "$ac_cv_use_mimetype" | |
4569 | if test "$no_cache" != 1; then | |
4570 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4571 | fi | |
4572 | ||
4573 | if test "$wxUSE_MIMETYPE" = yes; then | |
4574 | echo "$ac_t""yes" 1>&6 | |
4575 | else | |
4576 | echo "$ac_t""no" 1>&6 | |
4577 | fi | |
4578 | ||
4579 | ||
3e44f09d | 4580 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
d8356fa3 | 4581 | echo "configure:4582: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4582 | no_cache=0 |
4583 | # Check whether --enable-system_options or --disable-system_options was given. | |
4584 | if test "${enable_system_options+set}" = set; then | |
4585 | enableval="$enable_system_options" | |
4586 | ||
4587 | if test "$enableval" = yes; then | |
4588 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4589 | else | |
4590 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4591 | fi | |
4592 | ||
4593 | else | |
4594 | ||
4595 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4596 | if test "x$LINE" != x ; then | |
4597 | eval "DEFAULT_$LINE" | |
4598 | else | |
4599 | no_cache=1 | |
4600 | fi | |
4601 | ||
4602 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4603 | ||
4604 | fi | |
4605 | ||
4606 | ||
4607 | eval "$ac_cv_use_system_options" | |
4608 | if test "$no_cache" != 1; then | |
4609 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4610 | fi | |
4611 | ||
4612 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4613 | echo "$ac_t""yes" 1>&6 | |
4614 | else | |
4615 | echo "$ac_t""no" 1>&6 | |
4616 | fi | |
4617 | ||
4618 | ||
1e6feb95 | 4619 | |
4cdb0ab0 | 4620 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
d8356fa3 | 4621 | echo "configure:4622: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4622 | no_cache=0 |
4623 | # Check whether --enable-url or --disable-url was given. | |
4624 | if test "${enable_url+set}" = set; then | |
4625 | enableval="$enable_url" | |
4626 | ||
4627 | if test "$enableval" = yes; then | |
4628 | ac_cv_use_url='wxUSE_URL=yes' | |
4629 | else | |
4630 | ac_cv_use_url='wxUSE_URL=no' | |
4631 | fi | |
4632 | ||
4633 | else | |
4634 | ||
4635 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4636 | if test "x$LINE" != x ; then | |
4637 | eval "DEFAULT_$LINE" | |
4638 | else | |
4639 | no_cache=1 | |
4640 | fi | |
4641 | ||
4642 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4643 | ||
4644 | fi | |
4645 | ||
4646 | ||
4647 | eval "$ac_cv_use_url" | |
4648 | if test "$no_cache" != 1; then | |
4649 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4650 | fi | |
4651 | ||
4652 | if test "$wxUSE_URL" = yes; then | |
4653 | echo "$ac_t""yes" 1>&6 | |
4654 | else | |
4655 | echo "$ac_t""no" 1>&6 | |
4656 | fi | |
4657 | ||
4658 | ||
4659 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
d8356fa3 | 4660 | echo "configure:4661: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4661 | no_cache=0 |
4662 | # Check whether --enable-protocol or --disable-protocol was given. | |
4663 | if test "${enable_protocol+set}" = set; then | |
4664 | enableval="$enable_protocol" | |
4665 | ||
4666 | if test "$enableval" = yes; then | |
4667 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4668 | else | |
4669 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4670 | fi | |
4671 | ||
4672 | else | |
4673 | ||
4674 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4675 | if test "x$LINE" != x ; then | |
4676 | eval "DEFAULT_$LINE" | |
4677 | else | |
4678 | no_cache=1 | |
4679 | fi | |
4680 | ||
4681 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4682 | ||
4683 | fi | |
4684 | ||
4685 | ||
4686 | eval "$ac_cv_use_protocol" | |
4687 | if test "$no_cache" != 1; then | |
4688 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4689 | fi | |
4690 | ||
4691 | if test "$wxUSE_PROTOCOL" = yes; then | |
4692 | echo "$ac_t""yes" 1>&6 | |
4693 | else | |
4694 | echo "$ac_t""no" 1>&6 | |
4695 | fi | |
4696 | ||
4697 | ||
4698 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
d8356fa3 | 4699 | echo "configure:4700: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4700 | no_cache=0 |
4701 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4702 | if test "${enable_protocol_http+set}" = set; then | |
4703 | enableval="$enable_protocol_http" | |
4704 | ||
4705 | if test "$enableval" = yes; then | |
4706 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4707 | else | |
4708 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4709 | fi | |
4710 | ||
4711 | else | |
4712 | ||
4713 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4714 | if test "x$LINE" != x ; then | |
4715 | eval "DEFAULT_$LINE" | |
4716 | else | |
4717 | no_cache=1 | |
4718 | fi | |
4719 | ||
4720 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4721 | ||
4722 | fi | |
4723 | ||
4724 | ||
4725 | eval "$ac_cv_use_protocol_http" | |
4726 | if test "$no_cache" != 1; then | |
4727 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4728 | fi | |
4729 | ||
4730 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4731 | echo "$ac_t""yes" 1>&6 | |
4732 | else | |
4733 | echo "$ac_t""no" 1>&6 | |
4734 | fi | |
4735 | ||
4736 | ||
4737 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
d8356fa3 | 4738 | echo "configure:4739: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4739 | no_cache=0 |
4740 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4741 | if test "${enable_protocol_ftp+set}" = set; then | |
4742 | enableval="$enable_protocol_ftp" | |
4743 | ||
4744 | if test "$enableval" = yes; then | |
4745 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4746 | else | |
4747 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4748 | fi | |
4749 | ||
4750 | else | |
4751 | ||
4752 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4753 | if test "x$LINE" != x ; then | |
4754 | eval "DEFAULT_$LINE" | |
4755 | else | |
4756 | no_cache=1 | |
4757 | fi | |
4758 | ||
4759 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4760 | ||
4761 | fi | |
4762 | ||
4763 | ||
4764 | eval "$ac_cv_use_protocol_ftp" | |
4765 | if test "$no_cache" != 1; then | |
4766 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4767 | fi | |
4768 | ||
4769 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4770 | echo "$ac_t""yes" 1>&6 | |
4771 | else | |
4772 | echo "$ac_t""no" 1>&6 | |
4773 | fi | |
4774 | ||
4775 | ||
4776 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
d8356fa3 | 4777 | echo "configure:4778: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4778 | no_cache=0 |
4779 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4780 | if test "${enable_protocol_file+set}" = set; then | |
4781 | enableval="$enable_protocol_file" | |
4782 | ||
4783 | if test "$enableval" = yes; then | |
4784 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4785 | else | |
4786 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4787 | fi | |
4788 | ||
4789 | else | |
4790 | ||
4791 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4792 | if test "x$LINE" != x ; then | |
4793 | eval "DEFAULT_$LINE" | |
4794 | else | |
4795 | no_cache=1 | |
4796 | fi | |
4797 | ||
4798 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4799 | ||
4800 | fi | |
4801 | ||
4802 | ||
4803 | eval "$ac_cv_use_protocol_file" | |
4804 | if test "$no_cache" != 1; then | |
4805 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4806 | fi | |
4807 | ||
4808 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4809 | echo "$ac_t""yes" 1>&6 | |
4810 | else | |
4811 | echo "$ac_t""no" 1>&6 | |
4812 | fi | |
4813 | ||
4814 | ||
4815 | ||
4816 | ||
698dcdb6 VZ |
4817 | |
4818 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
d8356fa3 | 4819 | echo "configure:4820: checking for --enable-threads" >&5 |
10f2d63a VZ |
4820 | no_cache=0 |
4821 | # Check whether --enable-threads or --disable-threads was given. | |
4822 | if test "${enable_threads+set}" = set; then | |
4823 | enableval="$enable_threads" | |
698dcdb6 | 4824 | |
10f2d63a VZ |
4825 | if test "$enableval" = yes; then |
4826 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4827 | else | |
4828 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4829 | fi | |
698dcdb6 | 4830 | |
10f2d63a | 4831 | else |
698dcdb6 | 4832 | |
10f2d63a VZ |
4833 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4834 | if test "x$LINE" != x ; then | |
4835 | eval "DEFAULT_$LINE" | |
4836 | else | |
4837 | no_cache=1 | |
4838 | fi | |
4839 | ||
4840 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4841 | |
4842 | fi | |
10f2d63a VZ |
4843 | |
4844 | ||
4845 | eval "$ac_cv_use_threads" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4852 | else |
698dcdb6 | 4853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4854 | fi |
698dcdb6 | 4855 | |
10f2d63a | 4856 | |
b12915c1 VZ |
4857 | if test "$wxUSE_GUI" = "yes"; then |
4858 | ||
698dcdb6 VZ |
4859 | |
4860 | ||
4861 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
d8356fa3 | 4862 | echo "configure:4863: checking for --enable-docview" >&5 |
10f2d63a VZ |
4863 | no_cache=0 |
4864 | # Check whether --enable-docview or --disable-docview was given. | |
4865 | if test "${enable_docview+set}" = set; then | |
4866 | enableval="$enable_docview" | |
698dcdb6 | 4867 | |
10f2d63a VZ |
4868 | if test "$enableval" = yes; then |
4869 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4870 | else | |
4871 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4872 | fi | |
698dcdb6 | 4873 | |
10f2d63a | 4874 | else |
698dcdb6 | 4875 | |
10f2d63a VZ |
4876 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4877 | if test "x$LINE" != x ; then | |
4878 | eval "DEFAULT_$LINE" | |
4879 | else | |
4880 | no_cache=1 | |
4881 | fi | |
4882 | ||
4883 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4884 | |
4885 | fi | |
10f2d63a VZ |
4886 | |
4887 | ||
4888 | eval "$ac_cv_use_docview" | |
4889 | if test "$no_cache" != 1; then | |
4890 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4891 | fi | |
4892 | ||
4893 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4894 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4895 | else |
698dcdb6 | 4896 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4897 | fi |
698dcdb6 | 4898 | |
10f2d63a | 4899 | |
698dcdb6 | 4900 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
d8356fa3 | 4901 | echo "configure:4902: checking for --enable-help" >&5 |
10f2d63a VZ |
4902 | no_cache=0 |
4903 | # Check whether --enable-help or --disable-help was given. | |
4904 | if test "${enable_help+set}" = set; then | |
4905 | enableval="$enable_help" | |
698dcdb6 | 4906 | |
10f2d63a VZ |
4907 | if test "$enableval" = yes; then |
4908 | ac_cv_use_help='wxUSE_HELP=yes' | |
4909 | else | |
4910 | ac_cv_use_help='wxUSE_HELP=no' | |
4911 | fi | |
698dcdb6 | 4912 | |
10f2d63a | 4913 | else |
698dcdb6 | 4914 | |
10f2d63a VZ |
4915 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4916 | if test "x$LINE" != x ; then | |
4917 | eval "DEFAULT_$LINE" | |
4918 | else | |
4919 | no_cache=1 | |
4920 | fi | |
4921 | ||
4922 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4923 | |
4924 | fi | |
10f2d63a VZ |
4925 | |
4926 | ||
4927 | eval "$ac_cv_use_help" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4933 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4934 | else |
698dcdb6 | 4935 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4936 | fi |
698dcdb6 | 4937 | |
10f2d63a | 4938 | |
29fd3c0c | 4939 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
d8356fa3 | 4940 | echo "configure:4941: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4941 | no_cache=0 |
4942 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4943 | if test "${enable_mshtmlhelp+set}" = set; then | |
4944 | enableval="$enable_mshtmlhelp" | |
4945 | ||
4946 | if test "$enableval" = yes; then | |
4947 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4948 | else | |
4949 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4950 | fi | |
4951 | ||
4952 | else | |
4953 | ||
4954 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4962 | ||
4963 | fi | |
4964 | ||
4965 | ||
4966 | eval "$ac_cv_use_mshtmlhelp" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4972 | echo "$ac_t""yes" 1>&6 | |
4973 | else | |
4974 | echo "$ac_t""no" 1>&6 | |
4975 | fi | |
4976 | ||
4977 | ||
3379ed37 | 4978 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
d8356fa3 | 4979 | echo "configure:4980: checking for --enable-html" >&5 |
3379ed37 VZ |
4980 | no_cache=0 |
4981 | # Check whether --enable-html or --disable-html was given. | |
4982 | if test "${enable_html+set}" = set; then | |
4983 | enableval="$enable_html" | |
4984 | ||
4985 | if test "$enableval" = yes; then | |
4986 | ac_cv_use_html='wxUSE_HTML=yes' | |
4987 | else | |
4988 | ac_cv_use_html='wxUSE_HTML=no' | |
4989 | fi | |
4990 | ||
4991 | else | |
4992 | ||
4993 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4994 | if test "x$LINE" != x ; then | |
4995 | eval "DEFAULT_$LINE" | |
4996 | else | |
4997 | no_cache=1 | |
4998 | fi | |
4999 | ||
5000 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5001 | ||
5002 | fi | |
5003 | ||
5004 | ||
5005 | eval "$ac_cv_use_html" | |
5006 | if test "$no_cache" != 1; then | |
5007 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5008 | fi | |
5009 | ||
5010 | if test "$wxUSE_HTML" = yes; then | |
5011 | echo "$ac_t""yes" 1>&6 | |
5012 | else | |
5013 | echo "$ac_t""no" 1>&6 | |
5014 | fi | |
5015 | ||
5016 | ||
5017 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
d8356fa3 | 5018 | echo "configure:5019: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5019 | no_cache=0 |
5020 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5021 | if test "${enable_htmlhelp+set}" = set; then | |
5022 | enableval="$enable_htmlhelp" | |
5023 | ||
5024 | if test "$enableval" = yes; then | |
5025 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5026 | else | |
5027 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5028 | fi | |
5029 | ||
5030 | else | |
5031 | ||
5032 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5033 | if test "x$LINE" != x ; then | |
5034 | eval "DEFAULT_$LINE" | |
5035 | else | |
5036 | no_cache=1 | |
5037 | fi | |
5038 | ||
5039 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5040 | ||
5041 | fi | |
5042 | ||
5043 | ||
5044 | eval "$ac_cv_use_htmlhelp" | |
5045 | if test "$no_cache" != 1; then | |
5046 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5047 | fi | |
5048 | ||
5049 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5050 | echo "$ac_t""yes" 1>&6 | |
5051 | else | |
5052 | echo "$ac_t""no" 1>&6 | |
5053 | fi | |
5054 | ||
5055 | ||
698dcdb6 | 5056 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
d8356fa3 | 5057 | echo "configure:5058: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5058 | no_cache=0 |
5059 | # Check whether --enable-constraints or --disable-constraints was given. | |
5060 | if test "${enable_constraints+set}" = set; then | |
5061 | enableval="$enable_constraints" | |
698dcdb6 | 5062 | |
10f2d63a VZ |
5063 | if test "$enableval" = yes; then |
5064 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5065 | else | |
5066 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5067 | fi | |
698dcdb6 | 5068 | |
10f2d63a | 5069 | else |
698dcdb6 | 5070 | |
10f2d63a VZ |
5071 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5072 | if test "x$LINE" != x ; then | |
5073 | eval "DEFAULT_$LINE" | |
5074 | else | |
5075 | no_cache=1 | |
5076 | fi | |
5077 | ||
5078 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5079 | |
5080 | fi | |
10f2d63a VZ |
5081 | |
5082 | ||
5083 | eval "$ac_cv_use_constraints" | |
5084 | if test "$no_cache" != 1; then | |
5085 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5086 | fi | |
5087 | ||
5088 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5089 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5090 | else |
698dcdb6 | 5091 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5092 | fi |
698dcdb6 | 5093 | |
10f2d63a | 5094 | |
698dcdb6 | 5095 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
d8356fa3 | 5096 | echo "configure:5097: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5097 | no_cache=0 |
5098 | # Check whether --enable-printarch or --disable-printarch was given. | |
5099 | if test "${enable_printarch+set}" = set; then | |
5100 | enableval="$enable_printarch" | |
698dcdb6 | 5101 | |
10f2d63a VZ |
5102 | if test "$enableval" = yes; then |
5103 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5104 | else | |
5105 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5106 | fi | |
698dcdb6 | 5107 | |
10f2d63a | 5108 | else |
698dcdb6 | 5109 | |
10f2d63a VZ |
5110 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5111 | if test "x$LINE" != x ; then | |
5112 | eval "DEFAULT_$LINE" | |
5113 | else | |
5114 | no_cache=1 | |
5115 | fi | |
5116 | ||
5117 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5118 | |
5119 | fi | |
10f2d63a VZ |
5120 | |
5121 | ||
5122 | eval "$ac_cv_use_printarch" | |
5123 | if test "$no_cache" != 1; then | |
5124 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5125 | fi | |
5126 | ||
5127 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5128 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5129 | else |
698dcdb6 | 5130 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5131 | fi |
698dcdb6 | 5132 | |
10f2d63a | 5133 | |
698dcdb6 | 5134 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
d8356fa3 | 5135 | echo "configure:5136: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5136 | no_cache=0 |
5137 | # Check whether --enable-mdi or --disable-mdi was given. | |
5138 | if test "${enable_mdi+set}" = set; then | |
5139 | enableval="$enable_mdi" | |
698dcdb6 | 5140 | |
10f2d63a VZ |
5141 | if test "$enableval" = yes; then |
5142 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5143 | else | |
5144 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5145 | fi | |
698dcdb6 | 5146 | |
10f2d63a | 5147 | else |
698dcdb6 | 5148 | |
10f2d63a VZ |
5149 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5150 | if test "x$LINE" != x ; then | |
5151 | eval "DEFAULT_$LINE" | |
5152 | else | |
5153 | no_cache=1 | |
5154 | fi | |
5155 | ||
5156 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5157 | |
5158 | fi | |
10f2d63a VZ |
5159 | |
5160 | ||
5161 | eval "$ac_cv_use_mdi" | |
5162 | if test "$no_cache" != 1; then | |
5163 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5164 | fi | |
5165 | ||
5166 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5167 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5168 | else |
698dcdb6 | 5169 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5170 | fi |
698dcdb6 VZ |
5171 | |
5172 | ||
1e6feb95 | 5173 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
d8356fa3 | 5174 | echo "configure:5175: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-loggui or --disable-loggui was given. | |
5177 | if test "${enable_loggui+set}" = set; then | |
5178 | enableval="$enable_loggui" | |
5179 | ||
5180 | if test "$enableval" = yes; then | |
5181 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5182 | else | |
5183 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5184 | fi | |
5185 | ||
5186 | else | |
5187 | ||
5188 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5196 | ||
5197 | fi | |
5198 | ||
5199 | ||
5200 | eval "$ac_cv_use_loggui" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_LOGGUI" = yes; then | |
5206 | echo "$ac_t""yes" 1>&6 | |
5207 | else | |
5208 | echo "$ac_t""no" 1>&6 | |
5209 | fi | |
5210 | ||
5211 | ||
5212 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
d8356fa3 | 5213 | echo "configure:5214: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5214 | no_cache=0 |
5215 | # Check whether --enable-logwin or --disable-logwin was given. | |
5216 | if test "${enable_logwin+set}" = set; then | |
5217 | enableval="$enable_logwin" | |
5218 | ||
5219 | if test "$enableval" = yes; then | |
5220 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5221 | else | |
5222 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5223 | fi | |
5224 | ||
5225 | else | |
5226 | ||
5227 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5235 | ||
5236 | fi | |
5237 | ||
5238 | ||
5239 | eval "$ac_cv_use_logwin" | |
5240 | if test "$no_cache" != 1; then | |
5241 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5242 | fi | |
5243 | ||
5244 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5245 | echo "$ac_t""yes" 1>&6 | |
5246 | else | |
5247 | echo "$ac_t""no" 1>&6 | |
5248 | fi | |
5249 | ||
5250 | ||
69d27ff7 | 5251 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
d8356fa3 | 5252 | echo "configure:5253: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5253 | no_cache=0 |
5254 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5255 | if test "${enable_logdialog+set}" = set; then | |
5256 | enableval="$enable_logdialog" | |
5257 | ||
5258 | if test "$enableval" = yes; then | |
5259 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5260 | else | |
5261 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5262 | fi | |
5263 | ||
5264 | else | |
5265 | ||
5266 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5267 | if test "x$LINE" != x ; then | |
5268 | eval "DEFAULT_$LINE" | |
5269 | else | |
5270 | no_cache=1 | |
5271 | fi | |
5272 | ||
5273 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5274 | ||
5275 | fi | |
5276 | ||
5277 | ||
5278 | eval "$ac_cv_use_logdialog" | |
5279 | if test "$no_cache" != 1; then | |
5280 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5281 | fi | |
5282 | ||
5283 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5284 | echo "$ac_t""yes" 1>&6 | |
5285 | else | |
5286 | echo "$ac_t""no" 1>&6 | |
5287 | fi | |
5288 | ||
5289 | ||
10f2d63a | 5290 | |
698dcdb6 | 5291 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
d8356fa3 | 5292 | echo "configure:5293: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5293 | no_cache=0 |
5294 | # Check whether --enable-postscript or --disable-postscript was given. | |
5295 | if test "${enable_postscript+set}" = set; then | |
5296 | enableval="$enable_postscript" | |
698dcdb6 | 5297 | |
10f2d63a VZ |
5298 | if test "$enableval" = yes; then |
5299 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5300 | else | |
5301 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5302 | fi | |
698dcdb6 | 5303 | |
10f2d63a | 5304 | else |
698dcdb6 | 5305 | |
10f2d63a VZ |
5306 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5307 | if test "x$LINE" != x ; then | |
5308 | eval "DEFAULT_$LINE" | |
5309 | else | |
5310 | no_cache=1 | |
5311 | fi | |
5312 | ||
5313 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5314 | |
5315 | fi | |
10f2d63a VZ |
5316 | |
5317 | ||
5318 | eval "$ac_cv_use_postscript" | |
5319 | if test "$no_cache" != 1; then | |
5320 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5321 | fi | |
5322 | ||
5323 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5324 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5325 | else |
698dcdb6 | 5326 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5327 | fi |
698dcdb6 VZ |
5328 | |
5329 | ||
5330 | ||
10f2d63a | 5331 | |
1e6feb95 | 5332 | |
698dcdb6 | 5333 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
d8356fa3 | 5334 | echo "configure:5335: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5335 | no_cache=0 |
5336 | # Check whether --enable-prologio or --disable-prologio was given. | |
5337 | if test "${enable_prologio+set}" = set; then | |
5338 | enableval="$enable_prologio" | |
698dcdb6 | 5339 | |
10f2d63a VZ |
5340 | if test "$enableval" = yes; then |
5341 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5342 | else | |
5343 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5344 | fi | |
698dcdb6 | 5345 | |
10f2d63a | 5346 | else |
698dcdb6 | 5347 | |
10f2d63a VZ |
5348 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5349 | if test "x$LINE" != x ; then | |
5350 | eval "DEFAULT_$LINE" | |
5351 | else | |
5352 | no_cache=1 | |
5353 | fi | |
5354 | ||
5355 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5356 | |
5357 | fi | |
10f2d63a VZ |
5358 | |
5359 | ||
5360 | eval "$ac_cv_use_prologio" | |
5361 | if test "$no_cache" != 1; then | |
5362 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5363 | fi | |
5364 | ||
5365 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5367 | else |
698dcdb6 | 5368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5369 | fi |
698dcdb6 | 5370 | |
10f2d63a | 5371 | |
698dcdb6 | 5372 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
d8356fa3 | 5373 | echo "configure:5374: checking for --enable-resources" >&5 |
10f2d63a VZ |
5374 | no_cache=0 |
5375 | # Check whether --enable-resources or --disable-resources was given. | |
5376 | if test "${enable_resources+set}" = set; then | |
5377 | enableval="$enable_resources" | |
698dcdb6 | 5378 | |
10f2d63a VZ |
5379 | if test "$enableval" = yes; then |
5380 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5381 | else | |
5382 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5383 | fi | |
698dcdb6 | 5384 | |
10f2d63a | 5385 | else |
698dcdb6 | 5386 | |
10f2d63a VZ |
5387 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5388 | if test "x$LINE" != x ; then | |
5389 | eval "DEFAULT_$LINE" | |
5390 | else | |
5391 | no_cache=1 | |
5392 | fi | |
5393 | ||
5394 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5395 | |
5396 | fi | |
10f2d63a VZ |
5397 | |
5398 | ||
5399 | eval "$ac_cv_use_resources" | |
5400 | if test "$no_cache" != 1; then | |
5401 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5402 | fi | |
5403 | ||
5404 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5405 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5406 | else |
698dcdb6 | 5407 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5408 | fi |
698dcdb6 | 5409 | |
10f2d63a | 5410 | |
698dcdb6 VZ |
5411 | |
5412 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
d8356fa3 | 5413 | echo "configure:5414: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5414 | no_cache=0 |
5415 | # Check whether --enable-xresources or --disable-xresources was given. | |
5416 | if test "${enable_xresources+set}" = set; then | |
5417 | enableval="$enable_xresources" | |
698dcdb6 | 5418 | |
10f2d63a VZ |
5419 | if test "$enableval" = yes; then |
5420 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5421 | else | |
5422 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5423 | fi | |
698dcdb6 | 5424 | |
10f2d63a | 5425 | else |
698dcdb6 | 5426 | |
10f2d63a VZ |
5427 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5428 | if test "x$LINE" != x ; then | |
5429 | eval "DEFAULT_$LINE" | |
5430 | else | |
5431 | no_cache=1 | |
5432 | fi | |
5433 | ||
5434 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5435 | |
5436 | fi | |
10f2d63a VZ |
5437 | |
5438 | ||
5439 | eval "$ac_cv_use_xresources" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5445 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5446 | else |
698dcdb6 | 5447 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5448 | fi |
698dcdb6 VZ |
5449 | |
5450 | ||
10f2d63a | 5451 | |
698dcdb6 VZ |
5452 | |
5453 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
d8356fa3 | 5454 | echo "configure:5455: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5455 | no_cache=0 |
5456 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5457 | if test "${enable_clipboard+set}" = set; then | |
5458 | enableval="$enable_clipboard" | |
698dcdb6 | 5459 | |
10f2d63a VZ |
5460 | if test "$enableval" = yes; then |
5461 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5462 | else | |
5463 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5464 | fi | |
698dcdb6 | 5465 | |
10f2d63a | 5466 | else |
698dcdb6 | 5467 | |
10f2d63a VZ |
5468 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5469 | if test "x$LINE" != x ; then | |
5470 | eval "DEFAULT_$LINE" | |
5471 | else | |
5472 | no_cache=1 | |
5473 | fi | |
5474 | ||
5475 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5476 | |
5477 | fi | |
10f2d63a VZ |
5478 | |
5479 | ||
5480 | eval "$ac_cv_use_clipboard" | |
5481 | if test "$no_cache" != 1; then | |
5482 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5483 | fi | |
5484 | ||
5485 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5486 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5487 | else |
698dcdb6 | 5488 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5489 | fi |
698dcdb6 | 5490 | |
10f2d63a | 5491 | |
698dcdb6 | 5492 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
d8356fa3 | 5493 | echo "configure:5494: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5494 | no_cache=0 |
5495 | # Check whether --enable-dnd or --disable-dnd was given. | |
5496 | if test "${enable_dnd+set}" = set; then | |
5497 | enableval="$enable_dnd" | |
698dcdb6 | 5498 | |
10f2d63a VZ |
5499 | if test "$enableval" = yes; then |
5500 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5501 | else | |
5502 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5503 | fi | |
698dcdb6 | 5504 | |
10f2d63a | 5505 | else |
698dcdb6 | 5506 | |
10f2d63a VZ |
5507 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5508 | if test "x$LINE" != x ; then | |
5509 | eval "DEFAULT_$LINE" | |
5510 | else | |
5511 | no_cache=1 | |
5512 | fi | |
5513 | ||
5514 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5515 | |
5516 | fi | |
10f2d63a VZ |
5517 | |
5518 | ||
5519 | eval "$ac_cv_use_dnd" | |
5520 | if test "$no_cache" != 1; then | |
5521 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5522 | fi | |
5523 | ||
5524 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5526 | else |
698dcdb6 | 5527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5528 | fi |
698dcdb6 | 5529 | |
10f2d63a | 5530 | |
698dcdb6 | 5531 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d8356fa3 | 5532 | echo "configure:5533: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5533 | no_cache=0 |
5534 | # Check whether --enable-metafile or --disable-metafile was given. | |
5535 | if test "${enable_metafile+set}" = set; then | |
5536 | enableval="$enable_metafile" | |
698dcdb6 | 5537 | |
b64f0a5f RL |
5538 | if test "$enableval" = yes; then |
5539 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5540 | else | |
5541 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5542 | fi | |
698dcdb6 | 5543 | |
b64f0a5f | 5544 | else |
698dcdb6 | 5545 | |
b64f0a5f RL |
5546 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5547 | if test "x$LINE" != x ; then | |
5548 | eval "DEFAULT_$LINE" | |
5549 | else | |
5550 | no_cache=1 | |
5551 | fi | |
5552 | ||
5553 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5554 | |
5555 | fi | |
b64f0a5f RL |
5556 | |
5557 | ||
5558 | eval "$ac_cv_use_metafile" | |
5559 | if test "$no_cache" != 1; then | |
5560 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5561 | fi | |
5562 | ||
5563 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5564 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5565 | else |
698dcdb6 | 5566 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5567 | fi |
698dcdb6 VZ |
5568 | |
5569 | ||
10f2d63a | 5570 | |
24176f2c | 5571 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
d8356fa3 | 5572 | echo "configure:5573: checking for --enable-treelayout" >&5 |
10f2d63a | 5573 | no_cache=0 |
24176f2c GD |
5574 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5575 | if test "${enable_treelayout+set}" = set; then | |
5576 | enableval="$enable_treelayout" | |
698dcdb6 | 5577 | |
10f2d63a | 5578 | if test "$enableval" = yes; then |
24176f2c | 5579 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5580 | else |
24176f2c | 5581 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5582 | fi |
698dcdb6 | 5583 | |
10f2d63a | 5584 | else |
698dcdb6 | 5585 | |
24176f2c | 5586 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5587 | if test "x$LINE" != x ; then |
5588 | eval "DEFAULT_$LINE" | |
5589 | else | |
5590 | no_cache=1 | |
5591 | fi | |
5592 | ||
24176f2c | 5593 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5594 | |
5595 | fi | |
10f2d63a VZ |
5596 | |
5597 | ||
24176f2c | 5598 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5599 | if test "$no_cache" != 1; then |
24176f2c | 5600 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5601 | fi |
5602 | ||
24176f2c | 5603 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5605 | else |
698dcdb6 | 5606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5607 | fi |
698dcdb6 | 5608 | |
10f2d63a | 5609 | |
698dcdb6 VZ |
5610 | |
5611 | ||
5612 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
d8356fa3 | 5613 | echo "configure:5614: checking for --enable-controls" >&5 |
10f2d63a VZ |
5614 | no_cache=0 |
5615 | # Check whether --enable-controls or --disable-controls was given. | |
5616 | if test "${enable_controls+set}" = set; then | |
5617 | enableval="$enable_controls" | |
698dcdb6 | 5618 | |
10f2d63a VZ |
5619 | if test "$enableval" = yes; then |
5620 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5621 | else | |
5622 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5623 | fi | |
698dcdb6 | 5624 | |
10f2d63a | 5625 | else |
698dcdb6 | 5626 | |
10f2d63a VZ |
5627 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5628 | if test "x$LINE" != x ; then | |
5629 | eval "DEFAULT_$LINE" | |
5630 | else | |
5631 | no_cache=1 | |
5632 | fi | |
5633 | ||
5634 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5635 | |
5636 | fi | |
10f2d63a VZ |
5637 | |
5638 | ||
5639 | eval "$ac_cv_use_controls" | |
5640 | if test "$no_cache" != 1; then | |
5641 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5642 | fi | |
5643 | ||
5644 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5645 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5646 | else |
698dcdb6 | 5647 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5648 | fi |
698dcdb6 | 5649 | |
10f2d63a VZ |
5650 | |
5651 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5652 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5653 | DEFAULT_wxUSE_BMPBUTTON=yes |
5654 | DEFAULT_wxUSE_BUTTON=yes | |
5655 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5656 | DEFAULT_wxUSE_CARET=yes |
5657 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5658 | DEFAULT_wxUSE_CHECKBOX=yes |
5659 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5660 | DEFAULT_wxUSE_CHOICE=yes | |
5661 | DEFAULT_wxUSE_GAUGE=yes | |
5662 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5663 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5664 | DEFAULT_wxUSE_IMAGLIST=yes |
5665 | DEFAULT_wxUSE_LISTBOX=yes | |
5666 | DEFAULT_wxUSE_LISTCTRL=yes | |
5667 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5668 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5669 | DEFAULT_wxUSE_RADIOBOX=yes |
5670 | DEFAULT_wxUSE_RADIOBTN=yes | |
5671 | DEFAULT_wxUSE_SASH=yes | |
5672 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5673 | DEFAULT_wxUSE_SLIDER=yes | |
5674 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5675 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5676 | DEFAULT_wxUSE_SPLITTER=yes |
5677 | DEFAULT_wxUSE_STATBMP=yes | |
5678 | DEFAULT_wxUSE_STATBOX=yes | |
5679 | DEFAULT_wxUSE_STATLINE=yes | |
5680 | DEFAULT_wxUSE_STATUSBAR=yes | |
5681 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5682 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5683 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5684 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5685 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5686 | DEFAULT_wxUSE_TOOLTIPS=yes |
5687 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5688 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5689 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5690 | elif test "$wxUSE_CONTROLS" = "no"; then |
5691 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5692 | DEFAULT_wxUSE_BMPBUTTON=no |
5693 | DEFAULT_wxUSE_BUTTON=no | |
5694 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5695 | DEFAULT_wxUSE_CARET=no |
5696 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5697 | DEFAULT_wxUSE_CHECKBOX=no |
5698 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5699 | DEFAULT_wxUSE_CHOICE=no | |
5700 | DEFAULT_wxUSE_GAUGE=no | |
5701 | DEFAULT_wxUSE_GRID=no | |
5702 | DEFAULT_wxUSE_NEW_GRID=no | |
5703 | DEFAULT_wxUSE_IMAGLIST=no | |
5704 | DEFAULT_wxUSE_LISTBOX=no | |
5705 | DEFAULT_wxUSE_LISTCTRL=no | |
5706 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5707 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5708 | DEFAULT_wxUSE_RADIOBOX=no |
5709 | DEFAULT_wxUSE_RADIOBTN=no | |
5710 | DEFAULT_wxUSE_SASH=no | |
5711 | DEFAULT_wxUSE_SCROLLBAR=no | |
5712 | DEFAULT_wxUSE_SLIDER=no | |
5713 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5714 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5715 | DEFAULT_wxUSE_SPLITTER=no |
5716 | DEFAULT_wxUSE_STATBMP=no | |
5717 | DEFAULT_wxUSE_STATBOX=no | |
5718 | DEFAULT_wxUSE_STATLINE=no | |
5719 | DEFAULT_wxUSE_STATUSBAR=no | |
5720 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5721 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5722 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5723 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5724 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5725 | DEFAULT_wxUSE_TOOLTIPS=no |
5726 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5727 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5728 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5729 | fi |
5730 | ||
698dcdb6 VZ |
5731 | |
5732 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
d8356fa3 | 5733 | echo "configure:5734: checking for --enable-accel" >&5 |
10f2d63a VZ |
5734 | no_cache=0 |
5735 | # Check whether --enable-accel or --disable-accel was given. | |
5736 | if test "${enable_accel+set}" = set; then | |
5737 | enableval="$enable_accel" | |
698dcdb6 | 5738 | |
10f2d63a VZ |
5739 | if test "$enableval" = yes; then |
5740 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5741 | else | |
5742 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5743 | fi | |
698dcdb6 | 5744 | |
10f2d63a | 5745 | else |
698dcdb6 | 5746 | |
10f2d63a VZ |
5747 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5748 | if test "x$LINE" != x ; then | |
5749 | eval "DEFAULT_$LINE" | |
5750 | else | |
5751 | no_cache=1 | |
5752 | fi | |
5753 | ||
5754 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5755 | |
5756 | fi | |
10f2d63a VZ |
5757 | |
5758 | ||
5759 | eval "$ac_cv_use_accel" | |
5760 | if test "$no_cache" != 1; then | |
5761 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5762 | fi | |
5763 | ||
5764 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5765 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5766 | else |
698dcdb6 | 5767 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5768 | fi |
698dcdb6 | 5769 | |
10f2d63a | 5770 | |
1e6feb95 | 5771 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
d8356fa3 | 5772 | echo "configure:5773: checking for --enable-button" >&5 |
10f2d63a | 5773 | no_cache=0 |
1e6feb95 VZ |
5774 | # Check whether --enable-button or --disable-button was given. |
5775 | if test "${enable_button+set}" = set; then | |
5776 | enableval="$enable_button" | |
698dcdb6 | 5777 | |
10f2d63a | 5778 | if test "$enableval" = yes; then |
1e6feb95 | 5779 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5780 | else |
1e6feb95 | 5781 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5782 | fi |
698dcdb6 | 5783 | |
10f2d63a | 5784 | else |
698dcdb6 | 5785 | |
1e6feb95 | 5786 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5787 | if test "x$LINE" != x ; then |
5788 | eval "DEFAULT_$LINE" | |
5789 | else | |
5790 | no_cache=1 | |
5791 | fi | |
5792 | ||
1e6feb95 | 5793 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5794 | |
5795 | fi | |
10f2d63a VZ |
5796 | |
5797 | ||
1e6feb95 | 5798 | eval "$ac_cv_use_button" |
10f2d63a | 5799 | if test "$no_cache" != 1; then |
1e6feb95 | 5800 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5801 | fi |
5802 | ||
1e6feb95 | 5803 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5805 | else |
698dcdb6 | 5806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5807 | fi |
698dcdb6 | 5808 | |
10f2d63a | 5809 | |
698dcdb6 | 5810 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
d8356fa3 | 5811 | echo "configure:5812: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5812 | no_cache=0 |
5813 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5814 | if test "${enable_bmpbutton+set}" = set; then | |
5815 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5816 | |
10f2d63a VZ |
5817 | if test "$enableval" = yes; then |
5818 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5819 | else | |
5820 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5821 | fi | |
698dcdb6 | 5822 | |
10f2d63a | 5823 | else |
698dcdb6 | 5824 | |
10f2d63a VZ |
5825 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5826 | if test "x$LINE" != x ; then | |
5827 | eval "DEFAULT_$LINE" | |
5828 | else | |
5829 | no_cache=1 | |
5830 | fi | |
5831 | ||
5832 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5833 | |
5834 | fi | |
10f2d63a VZ |
5835 | |
5836 | ||
5837 | eval "$ac_cv_use_bmpbutton" | |
5838 | if test "$no_cache" != 1; then | |
5839 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5840 | fi | |
5841 | ||
5842 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5843 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5844 | else |
698dcdb6 | 5845 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5846 | fi |
698dcdb6 | 5847 | |
10f2d63a | 5848 | |
1e6feb95 | 5849 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
d8356fa3 | 5850 | echo "configure:5851: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5851 | no_cache=0 |
5852 | # Check whether --enable-calendar or --disable-calendar was given. | |
5853 | if test "${enable_calendar+set}" = set; then | |
5854 | enableval="$enable_calendar" | |
5855 | ||
5856 | if test "$enableval" = yes; then | |
5857 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5858 | else | |
5859 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5860 | fi | |
5861 | ||
5862 | else | |
5863 | ||
5864 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5865 | if test "x$LINE" != x ; then | |
5866 | eval "DEFAULT_$LINE" | |
5867 | else | |
5868 | no_cache=1 | |
5869 | fi | |
5870 | ||
5871 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5872 | ||
5873 | fi | |
5874 | ||
5875 | ||
5876 | eval "$ac_cv_use_calendar" | |
5877 | if test "$no_cache" != 1; then | |
5878 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5879 | fi | |
5880 | ||
5881 | if test "$wxUSE_CALCTRL" = yes; then | |
5882 | echo "$ac_t""yes" 1>&6 | |
5883 | else | |
5884 | echo "$ac_t""no" 1>&6 | |
5885 | fi | |
5886 | ||
5887 | ||
5888 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
d8356fa3 | 5889 | echo "configure:5890: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5890 | no_cache=0 |
5891 | # Check whether --enable-caret or --disable-caret was given. | |
5892 | if test "${enable_caret+set}" = set; then | |
5893 | enableval="$enable_caret" | |
5894 | ||
5895 | if test "$enableval" = yes; then | |
5896 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5897 | else | |
5898 | ac_cv_use_caret='wxUSE_CARET=no' | |
5899 | fi | |
5900 | ||
5901 | else | |
5902 | ||
5903 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5904 | if test "x$LINE" != x ; then | |
5905 | eval "DEFAULT_$LINE" | |
5906 | else | |
5907 | no_cache=1 | |
5908 | fi | |
5909 | ||
5910 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5911 | ||
5912 | fi | |
5913 | ||
5914 | ||
5915 | eval "$ac_cv_use_caret" | |
5916 | if test "$no_cache" != 1; then | |
5917 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5918 | fi | |
5919 | ||
5920 | if test "$wxUSE_CARET" = yes; then | |
5921 | echo "$ac_t""yes" 1>&6 | |
5922 | else | |
5923 | echo "$ac_t""no" 1>&6 | |
5924 | fi | |
5925 | ||
5926 | ||
698dcdb6 | 5927 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
d8356fa3 | 5928 | echo "configure:5929: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5929 | no_cache=0 |
5930 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5931 | if test "${enable_checkbox+set}" = set; then | |
5932 | enableval="$enable_checkbox" | |
698dcdb6 | 5933 | |
10f2d63a VZ |
5934 | if test "$enableval" = yes; then |
5935 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5936 | else | |
5937 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5938 | fi | |
698dcdb6 | 5939 | |
10f2d63a | 5940 | else |
698dcdb6 | 5941 | |
10f2d63a VZ |
5942 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5943 | if test "x$LINE" != x ; then | |
5944 | eval "DEFAULT_$LINE" | |
5945 | else | |
5946 | no_cache=1 | |
5947 | fi | |
5948 | ||
5949 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5950 | |
5951 | fi | |
10f2d63a VZ |
5952 | |
5953 | ||
5954 | eval "$ac_cv_use_checkbox" | |
5955 | if test "$no_cache" != 1; then | |
5956 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5957 | fi | |
5958 | ||
5959 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5961 | else |
698dcdb6 | 5962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5963 | fi |
698dcdb6 | 5964 | |
10f2d63a | 5965 | |
698dcdb6 | 5966 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
d8356fa3 | 5967 | echo "configure:5968: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5968 | no_cache=0 |
5969 | # Check whether --enable-checklst or --disable-checklst was given. | |
5970 | if test "${enable_checklst+set}" = set; then | |
5971 | enableval="$enable_checklst" | |
698dcdb6 | 5972 | |
10f2d63a VZ |
5973 | if test "$enableval" = yes; then |
5974 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5975 | else | |
5976 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5977 | fi | |
698dcdb6 | 5978 | |
10f2d63a | 5979 | else |
698dcdb6 | 5980 | |
10f2d63a VZ |
5981 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5982 | if test "x$LINE" != x ; then | |
5983 | eval "DEFAULT_$LINE" | |
5984 | else | |
5985 | no_cache=1 | |
5986 | fi | |
5987 | ||
5988 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5989 | |
5990 | fi | |
10f2d63a VZ |
5991 | |
5992 | ||
5993 | eval "$ac_cv_use_checklst" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5999 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6000 | else |
698dcdb6 | 6001 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6002 | fi |
698dcdb6 | 6003 | |
10f2d63a | 6004 | |
698dcdb6 | 6005 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
d8356fa3 | 6006 | echo "configure:6007: checking for --enable-choice" >&5 |
10f2d63a VZ |
6007 | no_cache=0 |
6008 | # Check whether --enable-choice or --disable-choice was given. | |
6009 | if test "${enable_choice+set}" = set; then | |
6010 | enableval="$enable_choice" | |
698dcdb6 | 6011 | |
10f2d63a VZ |
6012 | if test "$enableval" = yes; then |
6013 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6014 | else | |
6015 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6016 | fi | |
698dcdb6 | 6017 | |
10f2d63a | 6018 | else |
698dcdb6 | 6019 | |
10f2d63a VZ |
6020 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6021 | if test "x$LINE" != x ; then | |
6022 | eval "DEFAULT_$LINE" | |
6023 | else | |
6024 | no_cache=1 | |
6025 | fi | |
6026 | ||
6027 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
6028 | |
6029 | fi | |
10f2d63a VZ |
6030 | |
6031 | ||
6032 | eval "$ac_cv_use_choice" | |
6033 | if test "$no_cache" != 1; then | |
6034 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6035 | fi | |
6036 | ||
6037 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 6038 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6039 | else |
698dcdb6 | 6040 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6041 | fi |
698dcdb6 | 6042 | |
10f2d63a | 6043 | |
698dcdb6 | 6044 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
d8356fa3 | 6045 | echo "configure:6046: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6046 | no_cache=0 |
6047 | # Check whether --enable-combobox or --disable-combobox was given. | |
6048 | if test "${enable_combobox+set}" = set; then | |
6049 | enableval="$enable_combobox" | |
698dcdb6 | 6050 | |
10f2d63a VZ |
6051 | if test "$enableval" = yes; then |
6052 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6053 | else | |
6054 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6055 | fi | |
698dcdb6 | 6056 | |
10f2d63a | 6057 | else |
698dcdb6 | 6058 | |
10f2d63a VZ |
6059 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6060 | if test "x$LINE" != x ; then | |
6061 | eval "DEFAULT_$LINE" | |
6062 | else | |
6063 | no_cache=1 | |
6064 | fi | |
6065 | ||
6066 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6067 | |
6068 | fi | |
10f2d63a VZ |
6069 | |
6070 | ||
6071 | eval "$ac_cv_use_combobox" | |
6072 | if test "$no_cache" != 1; then | |
6073 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6074 | fi | |
6075 | ||
6076 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6077 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6078 | else |
698dcdb6 | 6079 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6080 | fi |
698dcdb6 | 6081 | |
10f2d63a | 6082 | |
698dcdb6 | 6083 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
d8356fa3 | 6084 | echo "configure:6085: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6085 | no_cache=0 |
6086 | # Check whether --enable-gauge or --disable-gauge was given. | |
6087 | if test "${enable_gauge+set}" = set; then | |
6088 | enableval="$enable_gauge" | |
698dcdb6 | 6089 | |
10f2d63a VZ |
6090 | if test "$enableval" = yes; then |
6091 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6092 | else | |
6093 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6094 | fi | |
698dcdb6 | 6095 | |
10f2d63a | 6096 | else |
698dcdb6 | 6097 | |
10f2d63a VZ |
6098 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6099 | if test "x$LINE" != x ; then | |
6100 | eval "DEFAULT_$LINE" | |
6101 | else | |
6102 | no_cache=1 | |
6103 | fi | |
6104 | ||
6105 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6106 | |
6107 | fi | |
10f2d63a VZ |
6108 | |
6109 | ||
6110 | eval "$ac_cv_use_gauge" | |
6111 | if test "$no_cache" != 1; then | |
6112 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6113 | fi | |
6114 | ||
6115 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6116 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6117 | else |
698dcdb6 | 6118 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6119 | fi |
698dcdb6 | 6120 | |
10f2d63a | 6121 | |
698dcdb6 | 6122 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
d8356fa3 | 6123 | echo "configure:6124: checking for --enable-grid" >&5 |
10f2d63a VZ |
6124 | no_cache=0 |
6125 | # Check whether --enable-grid or --disable-grid was given. | |
6126 | if test "${enable_grid+set}" = set; then | |
6127 | enableval="$enable_grid" | |
698dcdb6 | 6128 | |
10f2d63a VZ |
6129 | if test "$enableval" = yes; then |
6130 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6131 | else | |
6132 | ac_cv_use_grid='wxUSE_GRID=no' | |
6133 | fi | |
698dcdb6 | 6134 | |
10f2d63a | 6135 | else |
698dcdb6 | 6136 | |
10f2d63a VZ |
6137 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6138 | if test "x$LINE" != x ; then | |
6139 | eval "DEFAULT_$LINE" | |
6140 | else | |
6141 | no_cache=1 | |
6142 | fi | |
6143 | ||
6144 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6145 | |
6146 | fi | |
10f2d63a VZ |
6147 | |
6148 | ||
6149 | eval "$ac_cv_use_grid" | |
6150 | if test "$no_cache" != 1; then | |
6151 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6152 | fi | |
6153 | ||
6154 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6155 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6156 | else |
698dcdb6 | 6157 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6158 | fi |
698dcdb6 | 6159 | |
10f2d63a | 6160 | |
698dcdb6 | 6161 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
d8356fa3 | 6162 | echo "configure:6163: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6163 | no_cache=0 |
6164 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6165 | if test "${enable_newgrid+set}" = set; then | |
6166 | enableval="$enable_newgrid" | |
698dcdb6 | 6167 | |
10f2d63a VZ |
6168 | if test "$enableval" = yes; then |
6169 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6170 | else | |
6171 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6172 | fi | |
698dcdb6 | 6173 | |
10f2d63a | 6174 | else |
698dcdb6 | 6175 | |
10f2d63a VZ |
6176 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6177 | if test "x$LINE" != x ; then | |
6178 | eval "DEFAULT_$LINE" | |
6179 | else | |
6180 | no_cache=1 | |
6181 | fi | |
6182 | ||
6183 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6184 | |
6185 | fi | |
10f2d63a VZ |
6186 | |
6187 | ||
6188 | eval "$ac_cv_use_newgrid" | |
6189 | if test "$no_cache" != 1; then | |
6190 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6191 | fi | |
6192 | ||
6193 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6194 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6195 | else |
698dcdb6 | 6196 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6197 | fi |
698dcdb6 | 6198 | |
10f2d63a | 6199 | |
698dcdb6 | 6200 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
d8356fa3 | 6201 | echo "configure:6202: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6202 | no_cache=0 |
6203 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6204 | if test "${enable_imaglist+set}" = set; then | |
6205 | enableval="$enable_imaglist" | |
698dcdb6 | 6206 | |
10f2d63a VZ |
6207 | if test "$enableval" = yes; then |
6208 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6209 | else | |
6210 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6211 | fi | |
698dcdb6 | 6212 | |
10f2d63a | 6213 | else |
698dcdb6 | 6214 | |
10f2d63a VZ |
6215 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6216 | if test "x$LINE" != x ; then | |
6217 | eval "DEFAULT_$LINE" | |
6218 | else | |
6219 | no_cache=1 | |
6220 | fi | |
6221 | ||
6222 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6223 | |
6224 | fi | |
10f2d63a VZ |
6225 | |
6226 | ||
6227 | eval "$ac_cv_use_imaglist" | |
6228 | if test "$no_cache" != 1; then | |
6229 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6230 | fi | |
6231 | ||
6232 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6233 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6234 | else |
698dcdb6 | 6235 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6236 | fi |
698dcdb6 | 6237 | |
10f2d63a | 6238 | |
698dcdb6 | 6239 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
d8356fa3 | 6240 | echo "configure:6241: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6241 | no_cache=0 |
6242 | # Check whether --enable-listbox or --disable-listbox was given. | |
6243 | if test "${enable_listbox+set}" = set; then | |
6244 | enableval="$enable_listbox" | |
698dcdb6 | 6245 | |
10f2d63a VZ |
6246 | if test "$enableval" = yes; then |
6247 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6248 | else | |
6249 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6250 | fi | |
698dcdb6 | 6251 | |
10f2d63a | 6252 | else |
698dcdb6 | 6253 | |
10f2d63a VZ |
6254 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6255 | if test "x$LINE" != x ; then | |
6256 | eval "DEFAULT_$LINE" | |
6257 | else | |
6258 | no_cache=1 | |
6259 | fi | |
6260 | ||
6261 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6262 | |
6263 | fi | |
10f2d63a VZ |
6264 | |
6265 | ||
6266 | eval "$ac_cv_use_listbox" | |
6267 | if test "$no_cache" != 1; then | |
6268 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6269 | fi | |
6270 | ||
6271 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6272 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6273 | else |
698dcdb6 | 6274 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6275 | fi |
698dcdb6 | 6276 | |
10f2d63a | 6277 | |
698dcdb6 | 6278 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
d8356fa3 | 6279 | echo "configure:6280: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6280 | no_cache=0 |
6281 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6282 | if test "${enable_listctrl+set}" = set; then | |
6283 | enableval="$enable_listctrl" | |
698dcdb6 | 6284 | |
10f2d63a VZ |
6285 | if test "$enableval" = yes; then |
6286 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6287 | else | |
6288 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6289 | fi | |
698dcdb6 | 6290 | |
10f2d63a | 6291 | else |
698dcdb6 | 6292 | |
10f2d63a VZ |
6293 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6294 | if test "x$LINE" != x ; then | |
6295 | eval "DEFAULT_$LINE" | |
6296 | else | |
6297 | no_cache=1 | |
6298 | fi | |
6299 | ||
6300 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6301 | |
6302 | fi | |
10f2d63a VZ |
6303 | |
6304 | ||
6305 | eval "$ac_cv_use_listctrl" | |
6306 | if test "$no_cache" != 1; then | |
6307 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6308 | fi | |
6309 | ||
6310 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6312 | else |
698dcdb6 | 6313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6314 | fi |
698dcdb6 | 6315 | |
10f2d63a | 6316 | |
698dcdb6 | 6317 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
d8356fa3 | 6318 | echo "configure:6319: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6319 | no_cache=0 |
6320 | # Check whether --enable-notebook or --disable-notebook was given. | |
6321 | if test "${enable_notebook+set}" = set; then | |
6322 | enableval="$enable_notebook" | |
698dcdb6 | 6323 | |
10f2d63a VZ |
6324 | if test "$enableval" = yes; then |
6325 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6326 | else | |
6327 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6328 | fi | |
698dcdb6 | 6329 | |
10f2d63a | 6330 | else |
698dcdb6 | 6331 | |
10f2d63a VZ |
6332 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6333 | if test "x$LINE" != x ; then | |
6334 | eval "DEFAULT_$LINE" | |
6335 | else | |
6336 | no_cache=1 | |
6337 | fi | |
6338 | ||
6339 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6340 | |
6341 | fi | |
10f2d63a VZ |
6342 | |
6343 | ||
6344 | eval "$ac_cv_use_notebook" | |
6345 | if test "$no_cache" != 1; then | |
6346 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6347 | fi | |
6348 | ||
6349 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6350 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6351 | else |
698dcdb6 | 6352 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6353 | fi |
698dcdb6 | 6354 | |
10f2d63a | 6355 | |
24176f2c | 6356 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
d8356fa3 | 6357 | echo "configure:6358: checking for --enable-propsheet" >&5 |
24176f2c GD |
6358 | no_cache=0 |
6359 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6360 | if test "${enable_propsheet+set}" = set; then | |
6361 | enableval="$enable_propsheet" | |
6362 | ||
6363 | if test "$enableval" = yes; then | |
6364 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6365 | else | |
6366 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6367 | fi | |
6368 | ||
6369 | else | |
6370 | ||
6371 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6372 | if test "x$LINE" != x ; then | |
6373 | eval "DEFAULT_$LINE" | |
6374 | else | |
6375 | no_cache=1 | |
6376 | fi | |
6377 | ||
6378 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6379 | ||
6380 | fi | |
6381 | ||
6382 | ||
6383 | eval "$ac_cv_use_propsheet" | |
6384 | if test "$no_cache" != 1; then | |
6385 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6386 | fi | |
6387 | ||
6388 | if test "$wxUSE_PROPSHEET" = yes; then | |
6389 | echo "$ac_t""yes" 1>&6 | |
6390 | else | |
6391 | echo "$ac_t""no" 1>&6 | |
6392 | fi | |
6393 | ||
6394 | ||
698dcdb6 | 6395 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
d8356fa3 | 6396 | echo "configure:6397: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6397 | no_cache=0 |
6398 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6399 | if test "${enable_radiobox+set}" = set; then | |
6400 | enableval="$enable_radiobox" | |
698dcdb6 | 6401 | |
10f2d63a VZ |
6402 | if test "$enableval" = yes; then |
6403 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6404 | else | |
6405 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6406 | fi | |
698dcdb6 | 6407 | |
10f2d63a | 6408 | else |
698dcdb6 | 6409 | |
10f2d63a VZ |
6410 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6411 | if test "x$LINE" != x ; then | |
6412 | eval "DEFAULT_$LINE" | |
6413 | else | |
6414 | no_cache=1 | |
6415 | fi | |
6416 | ||
6417 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6418 | |
6419 | fi | |
10f2d63a VZ |
6420 | |
6421 | ||
6422 | eval "$ac_cv_use_radiobox" | |
6423 | if test "$no_cache" != 1; then | |
6424 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6425 | fi | |
6426 | ||
6427 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6428 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6429 | else |
698dcdb6 | 6430 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6431 | fi |
698dcdb6 | 6432 | |
10f2d63a | 6433 | |
698dcdb6 | 6434 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
d8356fa3 | 6435 | echo "configure:6436: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6436 | no_cache=0 |
6437 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6438 | if test "${enable_radiobtn+set}" = set; then | |
6439 | enableval="$enable_radiobtn" | |
698dcdb6 | 6440 | |
10f2d63a VZ |
6441 | if test "$enableval" = yes; then |
6442 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6443 | else | |
6444 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6445 | fi | |
698dcdb6 | 6446 | |
10f2d63a | 6447 | else |
698dcdb6 | 6448 | |
10f2d63a VZ |
6449 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6450 | if test "x$LINE" != x ; then | |
6451 | eval "DEFAULT_$LINE" | |
6452 | else | |
6453 | no_cache=1 | |
6454 | fi | |
6455 | ||
6456 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6457 | |
6458 | fi | |
10f2d63a VZ |
6459 | |
6460 | ||
6461 | eval "$ac_cv_use_radiobtn" | |
6462 | if test "$no_cache" != 1; then | |
6463 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6464 | fi | |
6465 | ||
6466 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6467 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6468 | else |
698dcdb6 | 6469 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6470 | fi |
698dcdb6 | 6471 | |
10f2d63a | 6472 | |
698dcdb6 | 6473 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
d8356fa3 | 6474 | echo "configure:6475: checking for --enable-sash" >&5 |
10f2d63a VZ |
6475 | no_cache=0 |
6476 | # Check whether --enable-sash or --disable-sash was given. | |
6477 | if test "${enable_sash+set}" = set; then | |
6478 | enableval="$enable_sash" | |
698dcdb6 | 6479 | |
10f2d63a VZ |
6480 | if test "$enableval" = yes; then |
6481 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6482 | else | |
6483 | ac_cv_use_sash='wxUSE_SASH=no' | |
6484 | fi | |
698dcdb6 | 6485 | |
10f2d63a | 6486 | else |
698dcdb6 | 6487 | |
10f2d63a VZ |
6488 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6489 | if test "x$LINE" != x ; then | |
6490 | eval "DEFAULT_$LINE" | |
6491 | else | |
6492 | no_cache=1 | |
6493 | fi | |
6494 | ||
6495 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6496 | |
6497 | fi | |
10f2d63a VZ |
6498 | |
6499 | ||
6500 | eval "$ac_cv_use_sash" | |
6501 | if test "$no_cache" != 1; then | |
6502 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6503 | fi | |
6504 | ||
6505 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6506 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6507 | else |
698dcdb6 | 6508 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6509 | fi |
698dcdb6 | 6510 | |
10f2d63a | 6511 | |
698dcdb6 | 6512 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
d8356fa3 | 6513 | echo "configure:6514: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6514 | no_cache=0 |
6515 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6516 | if test "${enable_scrollbar+set}" = set; then | |
6517 | enableval="$enable_scrollbar" | |
698dcdb6 | 6518 | |
10f2d63a VZ |
6519 | if test "$enableval" = yes; then |
6520 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6521 | else | |
6522 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6523 | fi | |
698dcdb6 | 6524 | |
10f2d63a | 6525 | else |
698dcdb6 | 6526 | |
10f2d63a VZ |
6527 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6528 | if test "x$LINE" != x ; then | |
6529 | eval "DEFAULT_$LINE" | |
6530 | else | |
6531 | no_cache=1 | |
6532 | fi | |
6533 | ||
6534 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6535 | |
6536 | fi | |
10f2d63a VZ |
6537 | |
6538 | ||
6539 | eval "$ac_cv_use_scrollbar" | |
6540 | if test "$no_cache" != 1; then | |
6541 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6542 | fi | |
6543 | ||
6544 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6546 | else |
698dcdb6 | 6547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6548 | fi |
698dcdb6 | 6549 | |
10f2d63a | 6550 | |
698dcdb6 | 6551 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
d8356fa3 | 6552 | echo "configure:6553: checking for --enable-slider" >&5 |
10f2d63a VZ |
6553 | no_cache=0 |
6554 | # Check whether --enable-slider or --disable-slider was given. | |
6555 | if test "${enable_slider+set}" = set; then | |
6556 | enableval="$enable_slider" | |
698dcdb6 | 6557 | |
10f2d63a VZ |
6558 | if test "$enableval" = yes; then |
6559 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6560 | else | |
6561 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6562 | fi | |
698dcdb6 | 6563 | |
10f2d63a | 6564 | else |
698dcdb6 | 6565 | |
10f2d63a VZ |
6566 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6567 | if test "x$LINE" != x ; then | |
6568 | eval "DEFAULT_$LINE" | |
6569 | else | |
6570 | no_cache=1 | |
6571 | fi | |
6572 | ||
6573 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6574 | |
6575 | fi | |
10f2d63a VZ |
6576 | |
6577 | ||
6578 | eval "$ac_cv_use_slider" | |
6579 | if test "$no_cache" != 1; then | |
6580 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6581 | fi | |
6582 | ||
6583 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6585 | else |
698dcdb6 | 6586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6587 | fi |
698dcdb6 | 6588 | |
10f2d63a | 6589 | |
698dcdb6 | 6590 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
d8356fa3 | 6591 | echo "configure:6592: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6592 | no_cache=0 |
6593 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6594 | if test "${enable_spinbtn+set}" = set; then | |
6595 | enableval="$enable_spinbtn" | |
698dcdb6 | 6596 | |
10f2d63a VZ |
6597 | if test "$enableval" = yes; then |
6598 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6599 | else | |
6600 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6601 | fi | |
698dcdb6 | 6602 | |
10f2d63a | 6603 | else |
698dcdb6 | 6604 | |
10f2d63a VZ |
6605 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6606 | if test "x$LINE" != x ; then | |
6607 | eval "DEFAULT_$LINE" | |
6608 | else | |
6609 | no_cache=1 | |
6610 | fi | |
6611 | ||
6612 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6613 | |
6614 | fi | |
10f2d63a VZ |
6615 | |
6616 | ||
6617 | eval "$ac_cv_use_spinbtn" | |
6618 | if test "$no_cache" != 1; then | |
6619 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6620 | fi | |
6621 | ||
6622 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6624 | else |
698dcdb6 | 6625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6626 | fi |
698dcdb6 | 6627 | |
10f2d63a | 6628 | |
698dcdb6 | 6629 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
d8356fa3 | 6630 | echo "configure:6631: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6631 | no_cache=0 |
6632 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6633 | if test "${enable_spinctrl+set}" = set; then | |
6634 | enableval="$enable_spinctrl" | |
698dcdb6 | 6635 | |
56cfaa52 RR |
6636 | if test "$enableval" = yes; then |
6637 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6638 | else | |
6639 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6640 | fi | |
698dcdb6 | 6641 | |
56cfaa52 | 6642 | else |
698dcdb6 | 6643 | |
56cfaa52 RR |
6644 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6645 | if test "x$LINE" != x ; then | |
6646 | eval "DEFAULT_$LINE" | |
6647 | else | |
6648 | no_cache=1 | |
6649 | fi | |
6650 | ||
6651 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6652 | |
6653 | fi | |
56cfaa52 RR |
6654 | |
6655 | ||
6656 | eval "$ac_cv_use_spinctrl" | |
6657 | if test "$no_cache" != 1; then | |
6658 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6659 | fi | |
6660 | ||
6661 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6662 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6663 | else |
698dcdb6 | 6664 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6665 | fi |
698dcdb6 | 6666 | |
56cfaa52 | 6667 | |
698dcdb6 | 6668 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
d8356fa3 | 6669 | echo "configure:6670: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6670 | no_cache=0 |
6671 | # Check whether --enable-splitter or --disable-splitter was given. | |
6672 | if test "${enable_splitter+set}" = set; then | |
6673 | enableval="$enable_splitter" | |
698dcdb6 | 6674 | |
10f2d63a VZ |
6675 | if test "$enableval" = yes; then |
6676 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6677 | else | |
6678 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6679 | fi | |
698dcdb6 | 6680 | |
10f2d63a | 6681 | else |
698dcdb6 | 6682 | |
10f2d63a VZ |
6683 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6684 | if test "x$LINE" != x ; then | |
6685 | eval "DEFAULT_$LINE" | |
6686 | else | |
6687 | no_cache=1 | |
6688 | fi | |
6689 | ||
6690 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6691 | |
6692 | fi | |
10f2d63a VZ |
6693 | |
6694 | ||
6695 | eval "$ac_cv_use_splitter" | |
6696 | if test "$no_cache" != 1; then | |
6697 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6698 | fi | |
6699 | ||
6700 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6702 | else |
698dcdb6 | 6703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6704 | fi |
698dcdb6 | 6705 | |
10f2d63a | 6706 | |
698dcdb6 | 6707 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
d8356fa3 | 6708 | echo "configure:6709: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6709 | no_cache=0 |
6710 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6711 | if test "${enable_statbmp+set}" = set; then | |
6712 | enableval="$enable_statbmp" | |
698dcdb6 | 6713 | |
10f2d63a VZ |
6714 | if test "$enableval" = yes; then |
6715 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6716 | else | |
6717 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6718 | fi | |
698dcdb6 | 6719 | |
10f2d63a | 6720 | else |
698dcdb6 | 6721 | |
10f2d63a VZ |
6722 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6723 | if test "x$LINE" != x ; then | |
6724 | eval "DEFAULT_$LINE" | |
6725 | else | |
6726 | no_cache=1 | |
6727 | fi | |
6728 | ||
6729 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6730 | |
6731 | fi | |
10f2d63a VZ |
6732 | |
6733 | ||
6734 | eval "$ac_cv_use_statbmp" | |
6735 | if test "$no_cache" != 1; then | |
6736 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6737 | fi | |
6738 | ||
6739 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6740 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6741 | else |
698dcdb6 | 6742 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6743 | fi |
698dcdb6 | 6744 | |
10f2d63a | 6745 | |
698dcdb6 | 6746 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
d8356fa3 | 6747 | echo "configure:6748: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6748 | no_cache=0 |
6749 | # Check whether --enable-statbox or --disable-statbox was given. | |
6750 | if test "${enable_statbox+set}" = set; then | |
6751 | enableval="$enable_statbox" | |
698dcdb6 | 6752 | |
10f2d63a VZ |
6753 | if test "$enableval" = yes; then |
6754 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6755 | else | |
6756 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6757 | fi | |
698dcdb6 | 6758 | |
10f2d63a | 6759 | else |
698dcdb6 | 6760 | |
10f2d63a VZ |
6761 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6762 | if test "x$LINE" != x ; then | |
6763 | eval "DEFAULT_$LINE" | |
6764 | else | |
6765 | no_cache=1 | |
6766 | fi | |
6767 | ||
6768 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6769 | |
6770 | fi | |
10f2d63a VZ |
6771 | |
6772 | ||
6773 | eval "$ac_cv_use_statbox" | |
6774 | if test "$no_cache" != 1; then | |
6775 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6776 | fi | |
6777 | ||
6778 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6780 | else |
698dcdb6 | 6781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6782 | fi |
698dcdb6 | 6783 | |
10f2d63a | 6784 | |
698dcdb6 | 6785 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
d8356fa3 | 6786 | echo "configure:6787: checking for --enable-statline" >&5 |
10f2d63a VZ |
6787 | no_cache=0 |
6788 | # Check whether --enable-statline or --disable-statline was given. | |
6789 | if test "${enable_statline+set}" = set; then | |
6790 | enableval="$enable_statline" | |
698dcdb6 | 6791 | |
10f2d63a VZ |
6792 | if test "$enableval" = yes; then |
6793 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6794 | else | |
6795 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6796 | fi | |
698dcdb6 | 6797 | |
10f2d63a | 6798 | else |
698dcdb6 | 6799 | |
10f2d63a VZ |
6800 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6801 | if test "x$LINE" != x ; then | |
6802 | eval "DEFAULT_$LINE" | |
6803 | else | |
6804 | no_cache=1 | |
6805 | fi | |
6806 | ||
6807 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6808 | |
6809 | fi | |
10f2d63a VZ |
6810 | |
6811 | ||
6812 | eval "$ac_cv_use_statline" | |
6813 | if test "$no_cache" != 1; then | |
6814 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6815 | fi | |
6816 | ||
6817 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6819 | else |
698dcdb6 | 6820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6821 | fi |
698dcdb6 | 6822 | |
10f2d63a | 6823 | |
1e6feb95 | 6824 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
d8356fa3 | 6825 | echo "configure:6826: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6826 | no_cache=0 |
6827 | # Check whether --enable-stattext or --disable-stattext was given. | |
6828 | if test "${enable_stattext+set}" = set; then | |
6829 | enableval="$enable_stattext" | |
6830 | ||
6831 | if test "$enableval" = yes; then | |
6832 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6833 | else | |
6834 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6835 | fi | |
6836 | ||
6837 | else | |
6838 | ||
6839 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6840 | if test "x$LINE" != x ; then | |
6841 | eval "DEFAULT_$LINE" | |
6842 | else | |
6843 | no_cache=1 | |
6844 | fi | |
6845 | ||
6846 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6847 | ||
6848 | fi | |
6849 | ||
6850 | ||
6851 | eval "$ac_cv_use_stattext" | |
6852 | if test "$no_cache" != 1; then | |
6853 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6854 | fi | |
6855 | ||
6856 | if test "$wxUSE_STATTEXT" = yes; then | |
6857 | echo "$ac_t""yes" 1>&6 | |
6858 | else | |
6859 | echo "$ac_t""no" 1>&6 | |
6860 | fi | |
6861 | ||
6862 | ||
698dcdb6 | 6863 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
d8356fa3 | 6864 | echo "configure:6865: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6865 | no_cache=0 |
6866 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6867 | if test "${enable_statusbar+set}" = set; then | |
6868 | enableval="$enable_statusbar" | |
698dcdb6 | 6869 | |
10f2d63a VZ |
6870 | if test "$enableval" = yes; then |
6871 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6872 | else | |
6873 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6874 | fi | |
698dcdb6 | 6875 | |
10f2d63a | 6876 | else |
698dcdb6 | 6877 | |
10f2d63a VZ |
6878 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6879 | if test "x$LINE" != x ; then | |
6880 | eval "DEFAULT_$LINE" | |
6881 | else | |
6882 | no_cache=1 | |
6883 | fi | |
6884 | ||
6885 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6886 | |
6887 | fi | |
10f2d63a VZ |
6888 | |
6889 | ||
6890 | eval "$ac_cv_use_statusbar" | |
6891 | if test "$no_cache" != 1; then | |
6892 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6893 | fi | |
6894 | ||
6895 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6896 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6897 | else |
698dcdb6 | 6898 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6899 | fi |
698dcdb6 | 6900 | |
10f2d63a | 6901 | |
698dcdb6 | 6902 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
d8356fa3 | 6903 | echo "configure:6904: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6904 | no_cache=0 |
6905 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6906 | if test "${enable_tabdialog+set}" = set; then | |
6907 | enableval="$enable_tabdialog" | |
698dcdb6 | 6908 | |
10f2d63a VZ |
6909 | if test "$enableval" = yes; then |
6910 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6911 | else | |
6912 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6913 | fi | |
698dcdb6 | 6914 | |
10f2d63a | 6915 | else |
698dcdb6 | 6916 | |
10f2d63a VZ |
6917 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6918 | if test "x$LINE" != x ; then | |
6919 | eval "DEFAULT_$LINE" | |
6920 | else | |
6921 | no_cache=1 | |
6922 | fi | |
6923 | ||
6924 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6925 | |
6926 | fi | |
10f2d63a VZ |
6927 | |
6928 | ||
6929 | eval "$ac_cv_use_tabdialog" | |
6930 | if test "$no_cache" != 1; then | |
6931 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6932 | fi | |
6933 | ||
6934 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6936 | else |
698dcdb6 | 6937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6938 | fi |
698dcdb6 | 6939 | |
10f2d63a | 6940 | |
1e6feb95 | 6941 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
d8356fa3 | 6942 | echo "configure:6943: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6943 | no_cache=0 |
6944 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6945 | if test "${enable_textctrl+set}" = set; then | |
6946 | enableval="$enable_textctrl" | |
6947 | ||
6948 | if test "$enableval" = yes; then | |
6949 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6950 | else | |
6951 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6952 | fi | |
6953 | ||
6954 | else | |
6955 | ||
6956 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6957 | if test "x$LINE" != x ; then | |
6958 | eval "DEFAULT_$LINE" | |
6959 | else | |
6960 | no_cache=1 | |
6961 | fi | |
6962 | ||
6963 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6964 | ||
6965 | fi | |
6966 | ||
6967 | ||
6968 | eval "$ac_cv_use_textctrl" | |
6969 | if test "$no_cache" != 1; then | |
6970 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6971 | fi | |
6972 | ||
6973 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6974 | echo "$ac_t""yes" 1>&6 | |
6975 | else | |
6976 | echo "$ac_t""no" 1>&6 | |
6977 | fi | |
6978 | ||
6979 | ||
698dcdb6 | 6980 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
d8356fa3 | 6981 | echo "configure:6982: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6982 | no_cache=0 |
6983 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6984 | if test "${enable_togglebtn+set}" = set; then | |
6985 | enableval="$enable_togglebtn" | |
698dcdb6 | 6986 | |
1db8dc4a VZ |
6987 | if test "$enableval" = yes; then |
6988 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6989 | else | |
6990 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6991 | fi | |
698dcdb6 | 6992 | |
1db8dc4a | 6993 | else |
698dcdb6 | 6994 | |
1db8dc4a VZ |
6995 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
7003 | |
7004 | fi | |
1db8dc4a VZ |
7005 | |
7006 | ||
7007 | eval "$ac_cv_use_togglebtn" | |
7008 | if test "$no_cache" != 1; then | |
7009 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7010 | fi | |
7011 | ||
7012 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 7013 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7014 | else |
698dcdb6 | 7015 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7016 | fi |
698dcdb6 | 7017 | |
1db8dc4a | 7018 | |
698dcdb6 | 7019 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
d8356fa3 | 7020 | echo "configure:7021: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7021 | no_cache=0 |
7022 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7023 | if test "${enable_toolbar+set}" = set; then | |
7024 | enableval="$enable_toolbar" | |
698dcdb6 | 7025 | |
10f2d63a VZ |
7026 | if test "$enableval" = yes; then |
7027 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7028 | else | |
7029 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7030 | fi | |
698dcdb6 | 7031 | |
10f2d63a | 7032 | else |
698dcdb6 | 7033 | |
10f2d63a VZ |
7034 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7035 | if test "x$LINE" != x ; then | |
7036 | eval "DEFAULT_$LINE" | |
7037 | else | |
7038 | no_cache=1 | |
7039 | fi | |
7040 | ||
7041 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7042 | |
7043 | fi | |
10f2d63a VZ |
7044 | |
7045 | ||
7046 | eval "$ac_cv_use_toolbar" | |
7047 | if test "$no_cache" != 1; then | |
7048 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7049 | fi | |
7050 | ||
7051 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7052 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7053 | else |
698dcdb6 | 7054 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7055 | fi |
698dcdb6 | 7056 | |
10f2d63a | 7057 | |
698dcdb6 | 7058 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
d8356fa3 | 7059 | echo "configure:7060: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7060 | no_cache=0 |
7061 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7062 | if test "${enable_tbarnative+set}" = set; then | |
7063 | enableval="$enable_tbarnative" | |
698dcdb6 | 7064 | |
360d6699 VZ |
7065 | if test "$enableval" = yes; then |
7066 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7067 | else | |
7068 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7069 | fi | |
698dcdb6 | 7070 | |
360d6699 | 7071 | else |
698dcdb6 | 7072 | |
360d6699 VZ |
7073 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7074 | if test "x$LINE" != x ; then | |
7075 | eval "DEFAULT_$LINE" | |
7076 | else | |
7077 | no_cache=1 | |
7078 | fi | |
7079 | ||
7080 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7081 | |
7082 | fi | |
360d6699 VZ |
7083 | |
7084 | ||
7085 | eval "$ac_cv_use_tbarnative" | |
7086 | if test "$no_cache" != 1; then | |
7087 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7088 | fi | |
7089 | ||
7090 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7091 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7092 | else |
698dcdb6 | 7093 | echo "$ac_t""no" 1>&6 |
360d6699 | 7094 | fi |
698dcdb6 | 7095 | |
360d6699 | 7096 | |
698dcdb6 | 7097 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
d8356fa3 | 7098 | echo "configure:7099: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7099 | no_cache=0 |
7100 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7101 | if test "${enable_tbarsmpl+set}" = set; then | |
7102 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7103 | |
360d6699 VZ |
7104 | if test "$enableval" = yes; then |
7105 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7106 | else | |
7107 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7108 | fi | |
698dcdb6 | 7109 | |
360d6699 | 7110 | else |
698dcdb6 | 7111 | |
360d6699 VZ |
7112 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7113 | if test "x$LINE" != x ; then | |
7114 | eval "DEFAULT_$LINE" | |
7115 | else | |
7116 | no_cache=1 | |
7117 | fi | |
7118 | ||
7119 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7120 | |
7121 | fi | |
360d6699 VZ |
7122 | |
7123 | ||
7124 | eval "$ac_cv_use_tbarsmpl" | |
7125 | if test "$no_cache" != 1; then | |
7126 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7127 | fi | |
7128 | ||
7129 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7130 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7131 | else |
698dcdb6 | 7132 | echo "$ac_t""no" 1>&6 |
360d6699 | 7133 | fi |
698dcdb6 | 7134 | |
360d6699 | 7135 | |
698dcdb6 | 7136 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
d8356fa3 | 7137 | echo "configure:7138: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7138 | no_cache=0 |
7139 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7140 | if test "${enable_treectrl+set}" = set; then | |
7141 | enableval="$enable_treectrl" | |
698dcdb6 | 7142 | |
10f2d63a VZ |
7143 | if test "$enableval" = yes; then |
7144 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7145 | else | |
7146 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7147 | fi | |
698dcdb6 | 7148 | |
10f2d63a | 7149 | else |
698dcdb6 | 7150 | |
10f2d63a VZ |
7151 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7152 | if test "x$LINE" != x ; then | |
7153 | eval "DEFAULT_$LINE" | |
7154 | else | |
7155 | no_cache=1 | |
7156 | fi | |
7157 | ||
7158 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7159 | |
7160 | fi | |
10f2d63a VZ |
7161 | |
7162 | ||
1e6feb95 VZ |
7163 | eval "$ac_cv_use_treectrl" |
7164 | if test "$no_cache" != 1; then | |
7165 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7166 | fi | |
7167 | ||
7168 | if test "$wxUSE_TREECTRL" = yes; then | |
7169 | echo "$ac_t""yes" 1>&6 | |
7170 | else | |
7171 | echo "$ac_t""no" 1>&6 | |
7172 | fi | |
7173 | ||
7174 | ||
9926e4a4 | 7175 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
d8356fa3 | 7176 | echo "configure:7177: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7177 | no_cache=0 |
7178 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7179 | if test "${enable_tipwindow+set}" = set; then | |
7180 | enableval="$enable_tipwindow" | |
7181 | ||
7182 | if test "$enableval" = yes; then | |
7183 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7184 | else | |
7185 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7186 | fi | |
7187 | ||
7188 | else | |
7189 | ||
7190 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7191 | if test "x$LINE" != x ; then | |
7192 | eval "DEFAULT_$LINE" | |
7193 | else | |
7194 | no_cache=1 | |
7195 | fi | |
7196 | ||
7197 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7198 | ||
7199 | fi | |
7200 | ||
7201 | ||
7202 | eval "$ac_cv_use_tipwindow" | |
7203 | if test "$no_cache" != 1; then | |
7204 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7205 | fi | |
7206 | ||
7207 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7208 | echo "$ac_t""yes" 1>&6 | |
7209 | else | |
7210 | echo "$ac_t""no" 1>&6 | |
7211 | fi | |
7212 | ||
7213 | ||
9f41d601 | 7214 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
d8356fa3 | 7215 | echo "configure:7216: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7216 | no_cache=0 |
7217 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7218 | if test "${enable_popupwin+set}" = set; then | |
7219 | enableval="$enable_popupwin" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7223 | else | |
7224 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7237 | ||
7238 | fi | |
7239 | ||
7240 | ||
7241 | eval "$ac_cv_use_popupwin" | |
7242 | if test "$no_cache" != 1; then | |
7243 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7244 | fi | |
7245 | ||
7246 | if test "$wxUSE_POPUPWIN" = yes; then | |
7247 | echo "$ac_t""yes" 1>&6 | |
7248 | else | |
7249 | echo "$ac_t""no" 1>&6 | |
7250 | fi | |
7251 | ||
7252 | ||
1e6feb95 VZ |
7253 | |
7254 | ||
7255 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
d8356fa3 | 7256 | echo "configure:7257: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7257 | no_cache=0 |
7258 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7259 | if test "${enable_commondlg+set}" = set; then | |
7260 | enableval="$enable_commondlg" | |
7261 | ||
7262 | if test "$enableval" = yes; then | |
7263 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7264 | else | |
7265 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7266 | fi | |
7267 | ||
7268 | else | |
7269 | ||
7270 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7271 | if test "x$LINE" != x ; then | |
7272 | eval "DEFAULT_$LINE" | |
7273 | else | |
7274 | no_cache=1 | |
7275 | fi | |
7276 | ||
7277 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7278 | ||
7279 | fi | |
7280 | ||
7281 | ||
7282 | eval "$ac_cv_use_commondlg" | |
7283 | if test "$no_cache" != 1; then | |
7284 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7285 | fi | |
7286 | ||
7287 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7288 | echo "$ac_t""yes" 1>&6 | |
7289 | else | |
7290 | echo "$ac_t""no" 1>&6 | |
7291 | fi | |
7292 | ||
7293 | ||
7294 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
d8356fa3 | 7295 | echo "configure:7296: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7296 | no_cache=0 |
7297 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7298 | if test "${enable_choicedlg+set}" = set; then | |
7299 | enableval="$enable_choicedlg" | |
7300 | ||
7301 | if test "$enableval" = yes; then | |
7302 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7303 | else | |
7304 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7305 | fi | |
7306 | ||
7307 | else | |
7308 | ||
7309 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7310 | if test "x$LINE" != x ; then | |
7311 | eval "DEFAULT_$LINE" | |
7312 | else | |
7313 | no_cache=1 | |
7314 | fi | |
7315 | ||
7316 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7317 | ||
7318 | fi | |
7319 | ||
7320 | ||
7321 | eval "$ac_cv_use_choicedlg" | |
7322 | if test "$no_cache" != 1; then | |
7323 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7324 | fi | |
7325 | ||
7326 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7327 | echo "$ac_t""yes" 1>&6 | |
7328 | else | |
7329 | echo "$ac_t""no" 1>&6 | |
7330 | fi | |
7331 | ||
7332 | ||
7333 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
d8356fa3 | 7334 | echo "configure:7335: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7335 | no_cache=0 |
7336 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7337 | if test "${enable_coldlg+set}" = set; then | |
7338 | enableval="$enable_coldlg" | |
7339 | ||
7340 | if test "$enableval" = yes; then | |
7341 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7342 | else | |
7343 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7344 | fi | |
7345 | ||
7346 | else | |
7347 | ||
7348 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7349 | if test "x$LINE" != x ; then | |
7350 | eval "DEFAULT_$LINE" | |
7351 | else | |
7352 | no_cache=1 | |
7353 | fi | |
7354 | ||
7355 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7356 | ||
7357 | fi | |
7358 | ||
7359 | ||
7360 | eval "$ac_cv_use_coldlg" | |
7361 | if test "$no_cache" != 1; then | |
7362 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7363 | fi | |
7364 | ||
7365 | if test "$wxUSE_COLOURDLG" = yes; then | |
7366 | echo "$ac_t""yes" 1>&6 | |
7367 | else | |
7368 | echo "$ac_t""no" 1>&6 | |
7369 | fi | |
7370 | ||
7371 | ||
7372 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
d8356fa3 | 7373 | echo "configure:7374: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7374 | no_cache=0 |
7375 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7376 | if test "${enable_filedlg+set}" = set; then | |
7377 | enableval="$enable_filedlg" | |
7378 | ||
7379 | if test "$enableval" = yes; then | |
7380 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7381 | else | |
7382 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7383 | fi | |
7384 | ||
7385 | else | |
7386 | ||
7387 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7388 | if test "x$LINE" != x ; then | |
7389 | eval "DEFAULT_$LINE" | |
7390 | else | |
7391 | no_cache=1 | |
7392 | fi | |
7393 | ||
7394 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7395 | ||
7396 | fi | |
7397 | ||
7398 | ||
7399 | eval "$ac_cv_use_filedlg" | |
7400 | if test "$no_cache" != 1; then | |
7401 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7402 | fi | |
7403 | ||
7404 | if test "$wxUSE_FILEDLG" = yes; then | |
7405 | echo "$ac_t""yes" 1>&6 | |
7406 | else | |
7407 | echo "$ac_t""no" 1>&6 | |
7408 | fi | |
7409 | ||
7410 | ||
69d27ff7 | 7411 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
d8356fa3 | 7412 | echo "configure:7413: checking for --enable-finddlg" >&5 |
8db37e06 | 7413 | no_cache=0 |
69d27ff7 MB |
7414 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7415 | if test "${enable_finddlg+set}" = set; then | |
7416 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7417 | |
7418 | if test "$enableval" = yes; then | |
69d27ff7 | 7419 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7420 | else |
69d27ff7 | 7421 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7422 | fi |
7423 | ||
7424 | else | |
7425 | ||
7426 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7427 | if test "x$LINE" != x ; then | |
7428 | eval "DEFAULT_$LINE" | |
7429 | else | |
7430 | no_cache=1 | |
7431 | fi | |
7432 | ||
69d27ff7 | 7433 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7434 | |
7435 | fi | |
7436 | ||
7437 | ||
69d27ff7 | 7438 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7439 | if test "$no_cache" != 1; then |
69d27ff7 | 7440 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7441 | fi |
7442 | ||
7443 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7444 | echo "$ac_t""yes" 1>&6 | |
7445 | else | |
7446 | echo "$ac_t""no" 1>&6 | |
7447 | fi | |
7448 | ||
7449 | ||
1e6feb95 | 7450 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
d8356fa3 | 7451 | echo "configure:7452: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7452 | no_cache=0 |
7453 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7454 | if test "${enable_fontdlg+set}" = set; then | |
7455 | enableval="$enable_fontdlg" | |
7456 | ||
7457 | if test "$enableval" = yes; then | |
7458 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7459 | else | |
7460 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7461 | fi | |
7462 | ||
7463 | else | |
7464 | ||
7465 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7466 | if test "x$LINE" != x ; then | |
7467 | eval "DEFAULT_$LINE" | |
7468 | else | |
7469 | no_cache=1 | |
7470 | fi | |
7471 | ||
7472 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7473 | ||
7474 | fi | |
7475 | ||
7476 | ||
7477 | eval "$ac_cv_use_fontdlg" | |
7478 | if test "$no_cache" != 1; then | |
7479 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7480 | fi | |
7481 | ||
7482 | if test "$wxUSE_FONTDLG" = yes; then | |
7483 | echo "$ac_t""yes" 1>&6 | |
7484 | else | |
7485 | echo "$ac_t""no" 1>&6 | |
7486 | fi | |
7487 | ||
7488 | ||
7489 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
d8356fa3 | 7490 | echo "configure:7491: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7491 | no_cache=0 |
7492 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7493 | if test "${enable_dirdlg+set}" = set; then | |
7494 | enableval="$enable_dirdlg" | |
7495 | ||
7496 | if test "$enableval" = yes; then | |
7497 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7498 | else | |
7499 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7500 | fi | |
7501 | ||
7502 | else | |
7503 | ||
7504 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7505 | if test "x$LINE" != x ; then | |
7506 | eval "DEFAULT_$LINE" | |
7507 | else | |
7508 | no_cache=1 | |
7509 | fi | |
7510 | ||
7511 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7512 | ||
7513 | fi | |
7514 | ||
7515 | ||
7516 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7517 | if test "$no_cache" != 1; then |
1e6feb95 | 7518 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7519 | fi |
7520 | ||
1e6feb95 | 7521 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7523 | else |
698dcdb6 | 7524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7525 | fi |
698dcdb6 VZ |
7526 | |
7527 | ||
1e6feb95 | 7528 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
d8356fa3 | 7529 | echo "configure:7530: checking for --enable-msgdlg" >&5 |
10f2d63a | 7530 | no_cache=0 |
1e6feb95 VZ |
7531 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7532 | if test "${enable_msgdlg+set}" = set; then | |
7533 | enableval="$enable_msgdlg" | |
698dcdb6 | 7534 | |
10f2d63a | 7535 | if test "$enableval" = yes; then |
1e6feb95 | 7536 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7537 | else |
1e6feb95 | 7538 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7539 | fi |
698dcdb6 | 7540 | |
10f2d63a | 7541 | else |
698dcdb6 | 7542 | |
1e6feb95 | 7543 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7544 | if test "x$LINE" != x ; then |
7545 | eval "DEFAULT_$LINE" | |
7546 | else | |
7547 | no_cache=1 | |
7548 | fi | |
7549 | ||
1e6feb95 | 7550 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7551 | |
7552 | fi | |
10f2d63a VZ |
7553 | |
7554 | ||
1e6feb95 | 7555 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7556 | if test "$no_cache" != 1; then |
1e6feb95 | 7557 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7558 | fi |
7559 | ||
1e6feb95 | 7560 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7561 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7562 | else |
698dcdb6 | 7563 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7564 | fi |
698dcdb6 | 7565 | |
10f2d63a | 7566 | |
1e6feb95 | 7567 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
d8356fa3 | 7568 | echo "configure:7569: checking for --enable-numberdlg" >&5 |
10f2d63a | 7569 | no_cache=0 |
1e6feb95 VZ |
7570 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7571 | if test "${enable_numberdlg+set}" = set; then | |
7572 | enableval="$enable_numberdlg" | |
698dcdb6 | 7573 | |
10f2d63a | 7574 | if test "$enableval" = yes; then |
1e6feb95 | 7575 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7576 | else |
1e6feb95 | 7577 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7578 | fi |
698dcdb6 | 7579 | |
10f2d63a | 7580 | else |
698dcdb6 | 7581 | |
1e6feb95 | 7582 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7583 | if test "x$LINE" != x ; then |
7584 | eval "DEFAULT_$LINE" | |
7585 | else | |
7586 | no_cache=1 | |
7587 | fi | |
7588 | ||
1e6feb95 | 7589 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7590 | |
7591 | fi | |
10f2d63a VZ |
7592 | |
7593 | ||
1e6feb95 | 7594 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7595 | if test "$no_cache" != 1; then |
1e6feb95 | 7596 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7597 | fi |
7598 | ||
1e6feb95 | 7599 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7601 | else |
698dcdb6 | 7602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7603 | fi |
698dcdb6 | 7604 | |
10f2d63a | 7605 | |
cbca9943 | 7606 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
d8356fa3 | 7607 | echo "configure:7608: checking for --enable-splash" >&5 |
cbca9943 VZ |
7608 | no_cache=0 |
7609 | # Check whether --enable-splash or --disable-splash was given. | |
7610 | if test "${enable_splash+set}" = set; then | |
7611 | enableval="$enable_splash" | |
7612 | ||
7613 | if test "$enableval" = yes; then | |
7614 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7615 | else | |
7616 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7617 | fi | |
7618 | ||
7619 | else | |
7620 | ||
7621 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7622 | if test "x$LINE" != x ; then | |
7623 | eval "DEFAULT_$LINE" | |
7624 | else | |
7625 | no_cache=1 | |
7626 | fi | |
7627 | ||
7628 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7629 | ||
7630 | fi | |
7631 | ||
7632 | ||
7633 | eval "$ac_cv_use_splash" | |
7634 | if test "$no_cache" != 1; then | |
7635 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7636 | fi | |
7637 | ||
7638 | if test "$wxUSE_SPLASH" = yes; then | |
7639 | echo "$ac_t""yes" 1>&6 | |
7640 | else | |
7641 | echo "$ac_t""no" 1>&6 | |
7642 | fi | |
7643 | ||
7644 | ||
698dcdb6 | 7645 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
d8356fa3 | 7646 | echo "configure:7647: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7647 | no_cache=0 |
7648 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7649 | if test "${enable_textdlg+set}" = set; then | |
7650 | enableval="$enable_textdlg" | |
698dcdb6 | 7651 | |
10f2d63a VZ |
7652 | if test "$enableval" = yes; then |
7653 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7654 | else | |
7655 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7656 | fi | |
698dcdb6 | 7657 | |
10f2d63a | 7658 | else |
698dcdb6 | 7659 | |
10f2d63a VZ |
7660 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7661 | if test "x$LINE" != x ; then | |
7662 | eval "DEFAULT_$LINE" | |
7663 | else | |
7664 | no_cache=1 | |
7665 | fi | |
7666 | ||
7667 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7668 | |
7669 | fi | |
10f2d63a VZ |
7670 | |
7671 | ||
7672 | eval "$ac_cv_use_textdlg" | |
7673 | if test "$no_cache" != 1; then | |
7674 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7675 | fi | |
7676 | ||
7677 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7679 | else |
698dcdb6 | 7680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7681 | fi |
698dcdb6 | 7682 | |
10f2d63a | 7683 | |
698dcdb6 | 7684 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
d8356fa3 | 7685 | echo "configure:7686: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7686 | no_cache=0 |
7687 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7688 | if test "${enable_tipdlg+set}" = set; then | |
7689 | enableval="$enable_tipdlg" | |
698dcdb6 | 7690 | |
10f2d63a VZ |
7691 | if test "$enableval" = yes; then |
7692 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7693 | else | |
7694 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7695 | fi | |
698dcdb6 | 7696 | |
10f2d63a | 7697 | else |
698dcdb6 | 7698 | |
10f2d63a VZ |
7699 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7700 | if test "x$LINE" != x ; then | |
7701 | eval "DEFAULT_$LINE" | |
7702 | else | |
7703 | no_cache=1 | |
7704 | fi | |
7705 | ||
7706 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7707 | |
7708 | fi | |
10f2d63a VZ |
7709 | |
7710 | ||
7711 | eval "$ac_cv_use_tipdlg" | |
7712 | if test "$no_cache" != 1; then | |
7713 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7714 | fi | |
7715 | ||
7716 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7717 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7718 | else |
698dcdb6 | 7719 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7720 | fi |
698dcdb6 | 7721 | |
10f2d63a | 7722 | |
698dcdb6 | 7723 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
d8356fa3 | 7724 | echo "configure:7725: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7725 | no_cache=0 |
7726 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7727 | if test "${enable_progressdlg+set}" = set; then | |
7728 | enableval="$enable_progressdlg" | |
698dcdb6 | 7729 | |
10f2d63a VZ |
7730 | if test "$enableval" = yes; then |
7731 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7732 | else | |
7733 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7734 | fi | |
698dcdb6 | 7735 | |
10f2d63a | 7736 | else |
698dcdb6 | 7737 | |
10f2d63a VZ |
7738 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7739 | if test "x$LINE" != x ; then | |
7740 | eval "DEFAULT_$LINE" | |
7741 | else | |
7742 | no_cache=1 | |
7743 | fi | |
7744 | ||
7745 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7746 | |
7747 | fi | |
10f2d63a VZ |
7748 | |
7749 | ||
7750 | eval "$ac_cv_use_progressdlg" | |
7751 | if test "$no_cache" != 1; then | |
7752 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7753 | fi | |
7754 | ||
7755 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7756 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7757 | else |
698dcdb6 | 7758 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7759 | fi |
698dcdb6 | 7760 | |
10f2d63a | 7761 | |
b1f5d087 | 7762 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
d8356fa3 | 7763 | echo "configure:7764: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7764 | no_cache=0 |
7765 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7766 | if test "${enable_wizarddlg+set}" = set; then | |
7767 | enableval="$enable_wizarddlg" | |
7768 | ||
7769 | if test "$enableval" = yes; then | |
7770 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7771 | else | |
7772 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7773 | fi | |
7774 | ||
7775 | else | |
7776 | ||
7777 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7778 | if test "x$LINE" != x ; then | |
7779 | eval "DEFAULT_$LINE" | |
7780 | else | |
7781 | no_cache=1 | |
7782 | fi | |
7783 | ||
7784 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7785 | ||
7786 | fi | |
7787 | ||
7788 | ||
7789 | eval "$ac_cv_use_wizarddlg" | |
7790 | if test "$no_cache" != 1; then | |
7791 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7792 | fi | |
7793 | ||
7794 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7795 | echo "$ac_t""yes" 1>&6 | |
7796 | else | |
7797 | echo "$ac_t""no" 1>&6 | |
7798 | fi | |
7799 | ||
7800 | ||
7801 | ||
7802 | ||
1e6feb95 | 7803 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
d8356fa3 | 7804 | echo "configure:7805: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7805 | no_cache=0 |
7806 | # Check whether --enable-menus or --disable-menus was given. | |
7807 | if test "${enable_menus+set}" = set; then | |
7808 | enableval="$enable_menus" | |
7809 | ||
7810 | if test "$enableval" = yes; then | |
7811 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7812 | else | |
7813 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7814 | fi | |
7815 | ||
7816 | else | |
7817 | ||
7818 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7819 | if test "x$LINE" != x ; then | |
7820 | eval "DEFAULT_$LINE" | |
7821 | else | |
7822 | no_cache=1 | |
7823 | fi | |
7824 | ||
7825 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7826 | ||
7827 | fi | |
7828 | ||
7829 | ||
7830 | eval "$ac_cv_use_menus" | |
7831 | if test "$no_cache" != 1; then | |
7832 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7833 | fi | |
7834 | ||
7835 | if test "$wxUSE_MENUS" = yes; then | |
7836 | echo "$ac_t""yes" 1>&6 | |
7837 | else | |
7838 | echo "$ac_t""no" 1>&6 | |
7839 | fi | |
7840 | ||
7841 | ||
698dcdb6 | 7842 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
d8356fa3 | 7843 | echo "configure:7844: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7844 | no_cache=0 |
7845 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7846 | if test "${enable_miniframe+set}" = set; then | |
7847 | enableval="$enable_miniframe" | |
698dcdb6 | 7848 | |
10f2d63a VZ |
7849 | if test "$enableval" = yes; then |
7850 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7851 | else | |
7852 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7853 | fi | |
698dcdb6 | 7854 | |
10f2d63a | 7855 | else |
698dcdb6 | 7856 | |
10f2d63a VZ |
7857 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7858 | if test "x$LINE" != x ; then | |
7859 | eval "DEFAULT_$LINE" | |
7860 | else | |
7861 | no_cache=1 | |
7862 | fi | |
7863 | ||
7864 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7865 | |
7866 | fi | |
10f2d63a VZ |
7867 | |
7868 | ||
7869 | eval "$ac_cv_use_miniframe" | |
7870 | if test "$no_cache" != 1; then | |
7871 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7872 | fi | |
7873 | ||
7874 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7875 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7876 | else |
698dcdb6 | 7877 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7878 | fi |
698dcdb6 | 7879 | |
10f2d63a | 7880 | |
698dcdb6 | 7881 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
d8356fa3 | 7882 | echo "configure:7883: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7883 | no_cache=0 |
7884 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7885 | if test "${enable_tooltips+set}" = set; then | |
7886 | enableval="$enable_tooltips" | |
698dcdb6 | 7887 | |
10f2d63a VZ |
7888 | if test "$enableval" = yes; then |
7889 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7890 | else | |
7891 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7892 | fi | |
698dcdb6 | 7893 | |
10f2d63a | 7894 | else |
698dcdb6 | 7895 | |
10f2d63a VZ |
7896 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7897 | if test "x$LINE" != x ; then | |
7898 | eval "DEFAULT_$LINE" | |
7899 | else | |
7900 | no_cache=1 | |
7901 | fi | |
7902 | ||
7903 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7904 | |
7905 | fi | |
10f2d63a VZ |
7906 | |
7907 | ||
7908 | eval "$ac_cv_use_tooltips" | |
7909 | if test "$no_cache" != 1; then | |
7910 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7911 | fi | |
7912 | ||
7913 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7914 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7915 | else |
698dcdb6 | 7916 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7917 | fi |
698dcdb6 | 7918 | |
10f2d63a | 7919 | |
698dcdb6 | 7920 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
d8356fa3 | 7921 | echo "configure:7922: checking for --enable-splines" >&5 |
10f2d63a VZ |
7922 | no_cache=0 |
7923 | # Check whether --enable-splines or --disable-splines was given. | |
7924 | if test "${enable_splines+set}" = set; then | |
7925 | enableval="$enable_splines" | |
698dcdb6 | 7926 | |
10f2d63a VZ |
7927 | if test "$enableval" = yes; then |
7928 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7929 | else | |
7930 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7931 | fi | |
698dcdb6 | 7932 | |
10f2d63a | 7933 | else |
698dcdb6 | 7934 | |
10f2d63a VZ |
7935 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7936 | if test "x$LINE" != x ; then | |
7937 | eval "DEFAULT_$LINE" | |
7938 | else | |
7939 | no_cache=1 | |
7940 | fi | |
7941 | ||
7942 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7943 | |
7944 | fi | |
10f2d63a VZ |
7945 | |
7946 | ||
7947 | eval "$ac_cv_use_splines" | |
7948 | if test "$no_cache" != 1; then | |
7949 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7950 | fi | |
7951 | ||
7952 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7953 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7954 | else |
698dcdb6 | 7955 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7956 | fi |
698dcdb6 | 7957 | |
10f2d63a | 7958 | |
698dcdb6 | 7959 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
d8356fa3 | 7960 | echo "configure:7961: checking for --enable-validators" >&5 |
10f2d63a VZ |
7961 | no_cache=0 |
7962 | # Check whether --enable-validators or --disable-validators was given. | |
7963 | if test "${enable_validators+set}" = set; then | |
7964 | enableval="$enable_validators" | |
698dcdb6 | 7965 | |
10f2d63a VZ |
7966 | if test "$enableval" = yes; then |
7967 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7968 | else | |
7969 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7970 | fi | |
698dcdb6 | 7971 | |
10f2d63a | 7972 | else |
698dcdb6 | 7973 | |
10f2d63a VZ |
7974 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7975 | if test "x$LINE" != x ; then | |
7976 | eval "DEFAULT_$LINE" | |
7977 | else | |
7978 | no_cache=1 | |
7979 | fi | |
7980 | ||
7981 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7982 | |
7983 | fi | |
10f2d63a VZ |
7984 | |
7985 | ||
7986 | eval "$ac_cv_use_validators" | |
7987 | if test "$no_cache" != 1; then | |
7988 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7989 | fi | |
7990 | ||
7991 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7992 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7993 | else |
698dcdb6 | 7994 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7995 | fi |
698dcdb6 | 7996 | |
10f2d63a | 7997 | |
698dcdb6 | 7998 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
d8356fa3 | 7999 | echo "configure:8000: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8000 | no_cache=0 |
8001 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8002 | if test "${enable_busyinfo+set}" = set; then | |
8003 | enableval="$enable_busyinfo" | |
698dcdb6 | 8004 | |
10f2d63a VZ |
8005 | if test "$enableval" = yes; then |
8006 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8007 | else | |
8008 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8009 | fi | |
698dcdb6 | 8010 | |
10f2d63a | 8011 | else |
698dcdb6 | 8012 | |
10f2d63a VZ |
8013 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8014 | if test "x$LINE" != x ; then | |
8015 | eval "DEFAULT_$LINE" | |
8016 | else | |
8017 | no_cache=1 | |
8018 | fi | |
8019 | ||
8020 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
8021 | |
8022 | fi | |
10f2d63a VZ |
8023 | |
8024 | ||
8025 | eval "$ac_cv_use_busyinfo" | |
8026 | if test "$no_cache" != 1; then | |
8027 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8028 | fi | |
8029 | ||
8030 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 8031 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8032 | else |
698dcdb6 | 8033 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8034 | fi |
698dcdb6 | 8035 | |
10f2d63a | 8036 | |
698dcdb6 | 8037 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
d8356fa3 | 8038 | echo "configure:8039: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8039 | no_cache=0 |
8040 | # Check whether --enable-joystick or --disable-joystick was given. | |
8041 | if test "${enable_joystick+set}" = set; then | |
8042 | enableval="$enable_joystick" | |
698dcdb6 | 8043 | |
f6bcfd97 BP |
8044 | if test "$enableval" = yes; then |
8045 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8046 | else | |
8047 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8048 | fi | |
698dcdb6 | 8049 | |
f6bcfd97 | 8050 | else |
698dcdb6 | 8051 | |
f6bcfd97 BP |
8052 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8053 | if test "x$LINE" != x ; then | |
8054 | eval "DEFAULT_$LINE" | |
8055 | else | |
8056 | no_cache=1 | |
8057 | fi | |
8058 | ||
8059 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8060 | |
8061 | fi | |
f6bcfd97 BP |
8062 | |
8063 | ||
8064 | eval "$ac_cv_use_joystick" | |
8065 | if test "$no_cache" != 1; then | |
8066 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8067 | fi | |
8068 | ||
8069 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8070 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8071 | else |
698dcdb6 | 8072 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8073 | fi |
698dcdb6 VZ |
8074 | |
8075 | ||
1e6feb95 | 8076 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d8356fa3 | 8077 | echo "configure:8078: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8078 | no_cache=0 |
8079 | # Check whether --enable-metafile or --disable-metafile was given. | |
8080 | if test "${enable_metafile+set}" = set; then | |
8081 | enableval="$enable_metafile" | |
8082 | ||
8083 | if test "$enableval" = yes; then | |
8084 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8085 | else | |
8086 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8087 | fi | |
8088 | ||
8089 | else | |
8090 | ||
8091 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8099 | ||
8100 | fi | |
8101 | ||
8102 | ||
8103 | eval "$ac_cv_use_metafile" | |
8104 | if test "$no_cache" != 1; then | |
8105 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8106 | fi | |
8107 | ||
8108 | if test "$wxUSE_METAFILE" = yes; then | |
8109 | echo "$ac_t""yes" 1>&6 | |
8110 | else | |
8111 | echo "$ac_t""no" 1>&6 | |
8112 | fi | |
8113 | ||
8114 | ||
24fd6d87 | 8115 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
d8356fa3 | 8116 | echo "configure:8117: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8117 | no_cache=0 |
8118 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8119 | if test "${enable_dragimage+set}" = set; then | |
8120 | enableval="$enable_dragimage" | |
8121 | ||
8122 | if test "$enableval" = yes; then | |
8123 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8124 | else | |
8125 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8126 | fi | |
8127 | ||
8128 | else | |
8129 | ||
8130 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8131 | if test "x$LINE" != x ; then | |
8132 | eval "DEFAULT_$LINE" | |
8133 | else | |
8134 | no_cache=1 | |
8135 | fi | |
8136 | ||
8137 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8138 | ||
8139 | fi | |
8140 | ||
8141 | ||
8142 | eval "$ac_cv_use_dragimage" | |
8143 | if test "$no_cache" != 1; then | |
8144 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8145 | fi | |
8146 | ||
8147 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8148 | echo "$ac_t""yes" 1>&6 | |
8149 | else | |
8150 | echo "$ac_t""no" 1>&6 | |
8151 | fi | |
8152 | ||
8153 | ||
10f2d63a | 8154 | |
698dcdb6 | 8155 | |
edae8572 | 8156 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
d8356fa3 | 8157 | echo "configure:8158: checking for --enable-palette" >&5 |
edae8572 VZ |
8158 | no_cache=0 |
8159 | # Check whether --enable-palette or --disable-palette was given. | |
8160 | if test "${enable_palette+set}" = set; then | |
8161 | enableval="$enable_palette" | |
8162 | ||
8163 | if test "$enableval" = yes; then | |
8164 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8165 | else | |
8166 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8167 | fi | |
8168 | ||
8169 | else | |
8170 | ||
8171 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8172 | if test "x$LINE" != x ; then | |
8173 | eval "DEFAULT_$LINE" | |
8174 | else | |
8175 | no_cache=1 | |
8176 | fi | |
8177 | ||
8178 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8179 | ||
8180 | fi | |
8181 | ||
8182 | ||
8183 | eval "$ac_cv_use_palette" | |
8184 | if test "$no_cache" != 1; then | |
8185 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8186 | fi | |
8187 | ||
8188 | if test "$wxUSE_PALETTE" = yes; then | |
8189 | echo "$ac_t""yes" 1>&6 | |
8190 | else | |
8191 | echo "$ac_t""no" 1>&6 | |
8192 | fi | |
8193 | ||
8194 | ||
698dcdb6 | 8195 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
d8356fa3 | 8196 | echo "configure:8197: checking for --enable-image" >&5 |
0046ff7c VS |
8197 | no_cache=0 |
8198 | # Check whether --enable-image or --disable-image was given. | |
8199 | if test "${enable_image+set}" = set; then | |
8200 | enableval="$enable_image" | |
698dcdb6 | 8201 | |
0046ff7c VS |
8202 | if test "$enableval" = yes; then |
8203 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8204 | else | |
8205 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8206 | fi | |
698dcdb6 | 8207 | |
0046ff7c | 8208 | else |
698dcdb6 | 8209 | |
0046ff7c VS |
8210 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8211 | if test "x$LINE" != x ; then | |
8212 | eval "DEFAULT_$LINE" | |
8213 | else | |
8214 | no_cache=1 | |
8215 | fi | |
8216 | ||
8217 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8218 | |
8219 | fi | |
0046ff7c VS |
8220 | |
8221 | ||
8222 | eval "$ac_cv_use_image" | |
8223 | if test "$no_cache" != 1; then | |
8224 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8225 | fi | |
8226 | ||
8227 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8228 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8229 | else |
698dcdb6 | 8230 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8231 | fi |
698dcdb6 | 8232 | |
0046ff7c | 8233 | |
698dcdb6 | 8234 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
d8356fa3 | 8235 | echo "configure:8236: checking for --enable-gif" >&5 |
10f2d63a VZ |
8236 | no_cache=0 |
8237 | # Check whether --enable-gif or --disable-gif was given. | |
8238 | if test "${enable_gif+set}" = set; then | |
8239 | enableval="$enable_gif" | |
698dcdb6 | 8240 | |
10f2d63a VZ |
8241 | if test "$enableval" = yes; then |
8242 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8243 | else | |
8244 | ac_cv_use_gif='wxUSE_GIF=no' | |
8245 | fi | |
698dcdb6 | 8246 | |
10f2d63a | 8247 | else |
698dcdb6 | 8248 | |
10f2d63a VZ |
8249 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8250 | if test "x$LINE" != x ; then | |
8251 | eval "DEFAULT_$LINE" | |
8252 | else | |
8253 | no_cache=1 | |
8254 | fi | |
8255 | ||
8256 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8257 | |
8258 | fi | |
10f2d63a VZ |
8259 | |
8260 | ||
8261 | eval "$ac_cv_use_gif" | |
8262 | if test "$no_cache" != 1; then | |
8263 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8264 | fi | |
8265 | ||
8266 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8268 | else |
698dcdb6 | 8269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8270 | fi |
698dcdb6 | 8271 | |
10f2d63a | 8272 | |
698dcdb6 | 8273 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
d8356fa3 | 8274 | echo "configure:8275: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8275 | no_cache=0 |
8276 | # Check whether --enable-pcx or --disable-pcx was given. | |
8277 | if test "${enable_pcx+set}" = set; then | |
8278 | enableval="$enable_pcx" | |
698dcdb6 | 8279 | |
10f2d63a VZ |
8280 | if test "$enableval" = yes; then |
8281 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8282 | else | |
8283 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8284 | fi | |
698dcdb6 | 8285 | |
10f2d63a | 8286 | else |
698dcdb6 | 8287 | |
10f2d63a VZ |
8288 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8289 | if test "x$LINE" != x ; then | |
8290 | eval "DEFAULT_$LINE" | |
8291 | else | |
8292 | no_cache=1 | |
8293 | fi | |
8294 | ||
8295 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8296 | |
8297 | fi | |
10f2d63a VZ |
8298 | |
8299 | ||
8300 | eval "$ac_cv_use_pcx" | |
8301 | if test "$no_cache" != 1; then | |
8302 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8303 | fi | |
8304 | ||
8305 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8307 | else |
698dcdb6 | 8308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8309 | fi |
698dcdb6 | 8310 | |
10f2d63a | 8311 | |
4b6b4dfc | 8312 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
d8356fa3 | 8313 | echo "configure:8314: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8314 | no_cache=0 |
8315 | # Check whether --enable-iff or --disable-iff was given. | |
8316 | if test "${enable_iff+set}" = set; then | |
8317 | enableval="$enable_iff" | |
8318 | ||
8319 | if test "$enableval" = yes; then | |
8320 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8321 | else | |
8322 | ac_cv_use_iff='wxUSE_IFF=no' | |
8323 | fi | |
8324 | ||
8325 | else | |
8326 | ||
8327 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8328 | if test "x$LINE" != x ; then | |
8329 | eval "DEFAULT_$LINE" | |
8330 | else | |
8331 | no_cache=1 | |
8332 | fi | |
8333 | ||
8334 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8335 | ||
8336 | fi | |
8337 | ||
8338 | ||
8339 | eval "$ac_cv_use_iff" | |
8340 | if test "$no_cache" != 1; then | |
8341 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8342 | fi | |
8343 | ||
8344 | if test "$wxUSE_IFF" = yes; then | |
8345 | echo "$ac_t""yes" 1>&6 | |
8346 | else | |
8347 | echo "$ac_t""no" 1>&6 | |
8348 | fi | |
8349 | ||
8350 | ||
698dcdb6 | 8351 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
d8356fa3 | 8352 | echo "configure:8353: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8353 | no_cache=0 |
8354 | # Check whether --enable-pnm or --disable-pnm was given. | |
8355 | if test "${enable_pnm+set}" = set; then | |
8356 | enableval="$enable_pnm" | |
698dcdb6 | 8357 | |
10f2d63a VZ |
8358 | if test "$enableval" = yes; then |
8359 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8360 | else | |
8361 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8362 | fi | |
698dcdb6 | 8363 | |
10f2d63a | 8364 | else |
698dcdb6 | 8365 | |
10f2d63a VZ |
8366 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8367 | if test "x$LINE" != x ; then | |
8368 | eval "DEFAULT_$LINE" | |
8369 | else | |
8370 | no_cache=1 | |
8371 | fi | |
8372 | ||
8373 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8374 | |
8375 | fi | |
10f2d63a VZ |
8376 | |
8377 | ||
8378 | eval "$ac_cv_use_pnm" | |
8379 | if test "$no_cache" != 1; then | |
8380 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8381 | fi | |
8382 | ||
8383 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8385 | else |
698dcdb6 | 8386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8387 | fi |
698dcdb6 | 8388 | |
10f2d63a | 8389 | |
69d27ff7 | 8390 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
d8356fa3 | 8391 | echo "configure:8392: checking for --enable-xpm" >&5 |
0046ff7c | 8392 | no_cache=0 |
69d27ff7 MB |
8393 | # Check whether --enable-xpm or --disable-xpm was given. |
8394 | if test "${enable_xpm+set}" = set; then | |
8395 | enableval="$enable_xpm" | |
698dcdb6 | 8396 | |
0046ff7c | 8397 | if test "$enableval" = yes; then |
69d27ff7 | 8398 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8399 | else |
69d27ff7 | 8400 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8401 | fi |
698dcdb6 | 8402 | |
0046ff7c | 8403 | else |
698dcdb6 | 8404 | |
0046ff7c VS |
8405 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8406 | if test "x$LINE" != x ; then | |
8407 | eval "DEFAULT_$LINE" | |
8408 | else | |
8409 | no_cache=1 | |
8410 | fi | |
8411 | ||
69d27ff7 | 8412 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8413 | |
8414 | fi | |
0046ff7c VS |
8415 | |
8416 | ||
69d27ff7 | 8417 | eval "$ac_cv_use_xpm" |
0046ff7c | 8418 | if test "$no_cache" != 1; then |
69d27ff7 | 8419 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8420 | fi |
8421 | ||
8422 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8423 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8424 | else |
698dcdb6 | 8425 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8426 | fi |
698dcdb6 | 8427 | |
0046ff7c | 8428 | |
c7206e64 | 8429 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
d8356fa3 | 8430 | echo "configure:8431: checking for --enable-ico_cur" >&5 |
658974ae | 8431 | no_cache=0 |
c7206e64 VS |
8432 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8433 | if test "${enable_ico_cur+set}" = set; then | |
8434 | enableval="$enable_ico_cur" | |
658974ae VS |
8435 | |
8436 | if test "$enableval" = yes; then | |
c7206e64 | 8437 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8438 | else |
c7206e64 | 8439 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8440 | fi |
8441 | ||
8442 | else | |
8443 | ||
8444 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8445 | if test "x$LINE" != x ; then | |
8446 | eval "DEFAULT_$LINE" | |
8447 | else | |
8448 | no_cache=1 | |
8449 | fi | |
8450 | ||
c7206e64 | 8451 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8452 | |
8453 | fi | |
8454 | ||
8455 | ||
c7206e64 | 8456 | eval "$ac_cv_use_ico_cur" |
658974ae | 8457 | if test "$no_cache" != 1; then |
c7206e64 | 8458 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8459 | fi |
8460 | ||
8461 | if test "$wxUSE_ICO_CUR" = yes; then | |
8462 | echo "$ac_t""yes" 1>&6 | |
8463 | else | |
8464 | echo "$ac_t""no" 1>&6 | |
8465 | fi | |
8466 | ||
8467 | ||
b12915c1 VZ |
8468 | fi |
8469 | ||
698dcdb6 | 8470 | |
10f2d63a VZ |
8471 | echo "saving argument cache $wx_arg_cache_file" |
8472 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8473 | |
10f2d63a | 8474 | |
698dcdb6 VZ |
8475 | |
8476 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
d8356fa3 | 8477 | echo "configure:8478: checking for toolkit" >&5 |
10f2d63a VZ |
8478 | |
8479 | if test "$wxUSE_GUI" = "yes"; then | |
8480 | ||
3a922bb4 RL |
8481 | if test "$USE_BEOS" = 1; then |
8482 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8483 | fi | |
b12915c1 | 8484 | |
3a922bb4 RL |
8485 | if test "$TOOLKIT_GIVEN" = 1; then |
8486 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8487 | var=wxUSE_$toolkit | |
8488 | eval "value=\$${var}" | |
8489 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8490 | done | |
10f2d63a | 8491 | else |
3a922bb4 RL |
8492 | for toolkit in `echo $ALL_TOOLKITS`; do |
8493 | if test "$has_toolkit_in_cache" != 1; then | |
8494 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8495 | else | |
8496 | var=DEFAULT_wxUSE_$toolkit | |
8497 | fi | |
8498 | eval "wxUSE_$toolkit=\$${var}" | |
8499 | done | |
10f2d63a | 8500 | fi |
10f2d63a | 8501 | |
3a922bb4 | 8502 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8503 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8504 | |
3a922bb4 | 8505 | case "${host}" in |
6fa882bd | 8506 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8507 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8508 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8509 | LEX_STEM="lexyy" | |
8510 | ;; | |
8511 | *) | |
8512 | PATH_IFS=':' | |
8513 | LEX_STEM="lex.yy" | |
8514 | ;; | |
8515 | esac | |
10f2d63a | 8516 | |
3a922bb4 RL |
8517 | case "$NUM_TOOLKITS" in |
8518 | 1) | |
8519 | ;; | |
8520 | 0) | |
8521 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8522 | ;; | |
8523 | *) | |
8524 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8525 | esac | |
10f2d63a | 8526 | |
3a922bb4 RL |
8527 | for toolkit in `echo $ALL_TOOLKITS`; do |
8528 | var=wxUSE_$toolkit | |
8529 | eval "value=\$${var}" | |
8530 | if test "x$value" != x; then | |
8531 | cache_var=CACHE_$toolkit | |
8532 | eval "cache=\$${cache_var}" | |
8533 | if test "$cache" = 1; then | |
8534 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8535 | fi | |
8536 | if test "$value" = 1; then | |
8537 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8538 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8539 | fi | |
8540 | fi | |
8541 | done | |
10f2d63a | 8542 | else |
cf27ef00 | 8543 | PATH_IFS=':' |
3a922bb4 | 8544 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8545 | fi |
8546 | ||
698dcdb6 VZ |
8547 | |
8548 | cat > confcache <<\EOF | |
10f2d63a VZ |
8549 | # This file is a shell script that caches the results of configure |
8550 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8551 | # scripts and configure runs. It is not useful on other systems. |
8552 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8553 | # |
698dcdb6 VZ |
8554 | # By default, configure uses ./config.cache as the cache file, |
8555 | # creating it if it does not exist already. You can give configure | |
8556 | # the --cache-file=FILE option to use a different cache file; that is | |
8557 | # what configure does when it calls configure scripts in | |
8558 | # subdirectories, so they share the cache. | |
8559 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8560 | # config.status only pays attention to the cache file if you give it the | |
8561 | # --recheck option to rerun configure. | |
10f2d63a | 8562 | # |
698dcdb6 | 8563 | EOF |
10f2d63a VZ |
8564 | # The following way of writing the cache mishandles newlines in values, |
8565 | # but we know of no workaround that is simple, portable, and efficient. | |
8566 | # So, don't put newlines in cache variables' values. | |
8567 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8568 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8569 | (set) 2>&1 | |
8570 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8571 | *ac_space=\ *) | |
8572 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8573 | # turns \\\\ into \\, and sed turns \\ into \). | |
8574 | sed -n \ | |
8575 | -e "s/'/'\\\\''/g" \ | |
8576 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8577 | ;; | |
8578 | *) | |
8579 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8580 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8581 | ;; | |
8582 | esac >> confcache | |
8583 | if cmp -s $cache_file confcache; then | |
8584 | : | |
8585 | else | |
10f2d63a | 8586 | if test -w $cache_file; then |
698dcdb6 VZ |
8587 | echo "updating cache $cache_file" |
8588 | cat confcache > $cache_file | |
10f2d63a VZ |
8589 | else |
8590 | echo "not updating unwritable cache $cache_file" | |
8591 | fi | |
8592 | fi | |
8593 | rm -f confcache | |
8594 | ||
698dcdb6 | 8595 | |
e59890c3 | 8596 | if test "$build" != "$host" ; then |
f9bc1684 | 8597 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8598 | CC=$host_alias-gcc |
8599 | CXX=$host_alias-c++ | |
8600 | AR=$host_alias-ar | |
8601 | RANLIB=$host_alias-ranlib | |
8602 | DLLTOOL=$host_alias-dlltool | |
8603 | RESCOMP=$host_alias-windres | |
8604 | LD=$host_alias-ld | |
8605 | NM=$host_alias-nm | |
8606 | STRIP=$host_alias-strip | |
8607 | else | |
8608 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8609 | fi | |
10f2d63a VZ |
8610 | fi |
8611 | ||
698dcdb6 | 8612 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8613 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8614 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 8615 | echo "configure:8616: checking for $ac_word" >&5 |
698dcdb6 VZ |
8616 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8618 | else |
8619 | if test -n "$CC"; then | |
8620 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8621 | else |
698dcdb6 VZ |
8622 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8623 | ac_dummy="$PATH" | |
8624 | for ac_dir in $ac_dummy; do | |
8625 | test -z "$ac_dir" && ac_dir=. | |
8626 | if test -f $ac_dir/$ac_word; then | |
8627 | ac_cv_prog_CC="gcc" | |
8628 | break | |
8629 | fi | |
8630 | done | |
8631 | IFS="$ac_save_ifs" | |
10f2d63a | 8632 | fi |
6232543b | 8633 | fi |
698dcdb6 | 8634 | CC="$ac_cv_prog_CC" |
6232543b | 8635 | if test -n "$CC"; then |
698dcdb6 | 8636 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8637 | else |
698dcdb6 | 8638 | echo "$ac_t""no" 1>&6 |
1e487827 | 8639 | fi |
6232543b | 8640 | |
1e487827 VS |
8641 | if test -z "$CC"; then |
8642 | # Extract the first word of "cc", so it can be a program name with args. | |
8643 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8644 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 8645 | echo "configure:8646: checking for $ac_word" >&5 |
698dcdb6 VZ |
8646 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8648 | else |
8649 | if test -n "$CC"; then | |
8650 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8651 | else | |
698dcdb6 | 8652 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8653 | ac_prog_rejected=no |
698dcdb6 VZ |
8654 | ac_dummy="$PATH" |
8655 | for ac_dir in $ac_dummy; do | |
8656 | test -z "$ac_dir" && ac_dir=. | |
8657 | if test -f $ac_dir/$ac_word; then | |
8658 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8659 | ac_prog_rejected=yes | |
8660 | continue | |
8661 | fi | |
8662 | ac_cv_prog_CC="cc" | |
8663 | break | |
8664 | fi | |
8665 | done | |
8666 | IFS="$ac_save_ifs" | |
1e487827 VS |
8667 | if test $ac_prog_rejected = yes; then |
8668 | # We found a bogon in the path, so make sure we never use it. | |
8669 | set dummy $ac_cv_prog_CC | |
8670 | shift | |
698dcdb6 | 8671 | if test $# -gt 0; then |
1e487827 VS |
8672 | # We chose a different compiler from the bogus one. |
8673 | # However, it has the same basename, so the bogon will be chosen | |
8674 | # first if we set CC to just the basename; use the full file name. | |
8675 | shift | |
698dcdb6 | 8676 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8677 | shift |
8678 | ac_cv_prog_CC="$@" | |
703e0a69 | 8679 | fi |
1e487827 VS |
8680 | fi |
8681 | fi | |
8682 | fi | |
698dcdb6 | 8683 | CC="$ac_cv_prog_CC" |
1e487827 | 8684 | if test -n "$CC"; then |
698dcdb6 | 8685 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8686 | else |
698dcdb6 | 8687 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8688 | fi |
1e487827 | 8689 | |
698dcdb6 VZ |
8690 | if test -z "$CC"; then |
8691 | case "`uname -s`" in | |
8692 | *win32* | *WIN32*) | |
8693 | # Extract the first word of "cl", so it can be a program name with args. | |
8694 | set dummy cl; ac_word=$2 | |
8695 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d8356fa3 | 8696 | echo "configure:8697: checking for $ac_word" >&5 |
698dcdb6 VZ |
8697 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8699 | else |
8700 | if test -n "$CC"; then | |
8701 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8702 | else |
698dcdb6 VZ |
8703 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8704 | ac_dummy="$PATH" | |
8705 | for ac_dir in $ac_dummy; do | |
8706 | test -z "$ac_dir" && ac_dir=. | |
8707 | if test -f $ac_dir/$ac_word; then | |
8708 | ac_cv_prog_CC="cl" | |
8709 | break | |
8710 | fi | |
8711 | done | |
8712 | IFS="$ac_save_ifs" | |
703e0a69 | 8713 | fi |
1e487827 | 8714 | fi |
698dcdb6 | 8715 | CC="$ac_cv_prog_CC" |
1e487827 | 8716 | if test -n "$CC"; then |
698dcdb6 | 8717 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8718 | else |
698dcdb6 | 8719 | echo "$ac_t""no" 1>&6 |
1e487827 | 8720 | fi |
698dcdb6 VZ |
8721 | ;; |
8722 | esac | |
8723 | fi | |
8724 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8725 | fi |
8726 | ||
698dcdb6 | 8727 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d8356fa3 | 8728 | echo "configure:8729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8729 | |
698dcdb6 VZ |
8730 | ac_ext=c |
8731 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8732 | ac_cpp='$CPP $CPPFLAGS' | |
8733 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8734 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8735 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8736 | |
698dcdb6 | 8737 | cat > conftest.$ac_ext << EOF |
1e487827 | 8738 | |
d8356fa3 | 8739 | #line 8740 "configure" |
1e487827 VS |
8740 | #include "confdefs.h" |
8741 | ||
698dcdb6 VZ |
8742 | main(){return(0);} |
8743 | EOF | |
d8356fa3 | 8744 | if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8745 | ac_cv_prog_cc_works=yes |
8746 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8747 | if (./conftest; exit) 2>/dev/null; then | |
8748 | ac_cv_prog_cc_cross=no | |
8749 | else | |
8750 | ac_cv_prog_cc_cross=yes | |
8751 | fi | |
8752 | else | |
8753 | echo "configure: failed program was:" >&5 | |
8754 | cat conftest.$ac_ext >&5 | |
8755 | ac_cv_prog_cc_works=no | |
8756 | fi | |
8757 | rm -fr conftest* | |
8758 | ac_ext=c | |
8759 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8760 | ac_cpp='$CPP $CPPFLAGS' | |
8761 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8762 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8763 | cross_compiling=$ac_cv_prog_cc_cross | |
8764 | ||
8765 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8766 | if test $ac_cv_prog_cc_works = no; then | |
8767 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8768 | fi | |
8769 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d8356fa3 | 8770 | echo "configure:8771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8771 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8772 | cross_compiling=$ac_cv_prog_cc_cross | |
8773 | ||
8774 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d8356fa3 | 8775 | echo "configure:8776: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8776 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8778 | else | |
8779 | cat > conftest.c <<EOF | |
8780 | #ifdef __GNUC__ | |
8781 | yes; | |
1e487827 | 8782 | #endif |
698dcdb6 | 8783 | EOF |
d8356fa3 | 8784 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8785 | ac_cv_prog_gcc=yes |
8786 | else | |
8787 | ac_cv_prog_gcc=no | |
8788 | fi | |
8789 | fi | |
1e487827 | 8790 | |
698dcdb6 | 8791 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8792 | |
698dcdb6 VZ |
8793 | if test $ac_cv_prog_gcc = yes; then |
8794 | GCC=yes | |
8795 | else | |
8796 | GCC= | |
8797 | fi | |
1e487827 | 8798 | |
698dcdb6 VZ |
8799 | ac_test_CFLAGS="${CFLAGS+set}" |
8800 | ac_save_CFLAGS="$CFLAGS" | |
8801 | CFLAGS= | |
8802 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d8356fa3 | 8803 | echo "configure:8804: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8804 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8806 | else | |
8807 | echo 'void f(){}' > conftest.c | |
8808 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8809 | ac_cv_prog_cc_g=yes |
8810 | else | |
698dcdb6 | 8811 | ac_cv_prog_cc_g=no |
10f2d63a | 8812 | fi |
698dcdb6 VZ |
8813 | rm -f conftest* |
8814 | ||
10f2d63a | 8815 | fi |
698dcdb6 VZ |
8816 | |
8817 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8818 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8819 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8820 | elif test $ac_cv_prog_cc_g = yes; then |
8821 | if test "$GCC" = yes; then | |
8822 | CFLAGS="-g -O2" | |
8823 | else | |
8824 | CFLAGS="-g" | |
8825 | fi | |
8826 | else | |
8827 | if test "$GCC" = yes; then | |
8828 | CFLAGS="-O2" | |
8829 | else | |
8830 | CFLAGS= | |
8831 | fi | |
8832 | fi | |
8833 | ||
8834 | ||
8835 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8836 | ||
698dcdb6 | 8837 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
d8356fa3 | 8838 | echo "configure:8839: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8839 | # On Suns, sometimes $CPP names a directory. |
8840 | if test -n "$CPP" && test -d "$CPP"; then | |
8841 | CPP= | |
8842 | fi | |
8843 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8844 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8845 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8846 | else | |
8847 | # This must be in double quotes, not single quotes, because CPP may get | |
8848 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8849 | CPP="${CC-cc} -E" | |
10f2d63a | 8850 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8851 | # not just through cpp. |
8852 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 8853 | #line 8854 "configure" |
10f2d63a VZ |
8854 | #include "confdefs.h" |
8855 | #include <assert.h> | |
698dcdb6 VZ |
8856 | Syntax Error |
8857 | EOF | |
8858 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 8859 | { (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8860 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8861 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8862 | : |
8863 | else | |
698dcdb6 VZ |
8864 | echo "$ac_err" >&5 |
8865 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8866 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8867 | rm -rf conftest* |
8868 | CPP="${CC-cc} -E -traditional-cpp" | |
8869 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 8870 | #line 8871 "configure" |
10f2d63a | 8871 | #include "confdefs.h" |
698dcdb6 VZ |
8872 | #include <assert.h> |
8873 | Syntax Error | |
8874 | EOF | |
8875 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 8876 | { (eval echo configure:8877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8877 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8878 | if test -z "$ac_err"; then | |
8879 | : | |
10f2d63a | 8880 | else |
698dcdb6 VZ |
8881 | echo "$ac_err" >&5 |
8882 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8883 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8884 | rm -rf conftest* |
8885 | CPP="${CC-cc} -nologo -E" | |
8886 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 8887 | #line 8888 "configure" |
10f2d63a VZ |
8888 | #include "confdefs.h" |
8889 | #include <assert.h> | |
698dcdb6 VZ |
8890 | Syntax Error |
8891 | EOF | |
8892 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 8893 | { (eval echo configure:8894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8894 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8895 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8896 | : |
8897 | else | |
698dcdb6 VZ |
8898 | echo "$ac_err" >&5 |
8899 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8900 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8901 | rm -rf conftest* |
8902 | CPP=/lib/cpp | |
10f2d63a | 8903 | fi |
698dcdb6 | 8904 | rm -f conftest* |
10f2d63a | 8905 | fi |
698dcdb6 | 8906 | rm -f conftest* |
703e0a69 | 8907 | fi |
698dcdb6 VZ |
8908 | rm -f conftest* |
8909 | ac_cv_prog_CPP="$CPP" | |
8910 | fi | |
8911 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8912 | else |
698dcdb6 | 8913 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8914 | fi |
698dcdb6 | 8915 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8916 | |
698dcdb6 VZ |
8917 | if test $ac_cv_prog_gcc = yes; then |
8918 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d8356fa3 | 8919 | echo "configure:8920: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8920 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8922 | else |
8923 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8924 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 8925 | #line 8926 "configure" |
10f2d63a VZ |
8926 | #include "confdefs.h" |
8927 | #include <sgtty.h> | |
8928 | Autoconf TIOCGETP | |
698dcdb6 | 8929 | EOF |
10f2d63a VZ |
8930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8931 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8932 | rm -rf conftest* |
10f2d63a VZ |
8933 | ac_cv_prog_gcc_traditional=yes |
8934 | else | |
698dcdb6 | 8935 | rm -rf conftest* |
10f2d63a VZ |
8936 | ac_cv_prog_gcc_traditional=no |
8937 | fi | |
8938 | rm -f conftest* | |
8939 | ||
698dcdb6 | 8940 | |
10f2d63a | 8941 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8942 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 8943 | #line 8944 "configure" |
10f2d63a VZ |
8944 | #include "confdefs.h" |
8945 | #include <termio.h> | |
8946 | Autoconf TCGETA | |
698dcdb6 | 8947 | EOF |
10f2d63a VZ |
8948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8949 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8950 | rm -rf conftest* |
10f2d63a VZ |
8951 | ac_cv_prog_gcc_traditional=yes |
8952 | fi | |
8953 | rm -f conftest* | |
8954 | ||
8955 | fi | |
8956 | fi | |
698dcdb6 VZ |
8957 | |
8958 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8959 | if test $ac_cv_prog_gcc_traditional = yes; then |
8960 | CC="$CC -traditional" | |
8961 | fi | |
8962 | fi | |
8963 | ||
703e0a69 | 8964 | |
698dcdb6 VZ |
8965 | |
8966 | ac_ext=C | |
8967 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8968 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8969 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8970 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8971 | cross_compiling=$ac_cv_prog_cxx_cross | |
8972 | ||
8973 | ||
8974 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8975 | do | |
8976 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8977 | set dummy $ac_prog; ac_word=$2 | |
8978 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d8356fa3 | 8979 | echo "configure:8980: checking for $ac_word" >&5 |
698dcdb6 VZ |
8980 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8982 | else |
8983 | if test -n "$CXX"; then | |
8984 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8985 | else | |
698dcdb6 VZ |
8986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8987 | ac_dummy="$PATH" | |
8988 | for ac_dir in $ac_dummy; do | |
8989 | test -z "$ac_dir" && ac_dir=. | |
8990 | if test -f $ac_dir/$ac_word; then | |
8991 | ac_cv_prog_CXX="$ac_prog" | |
8992 | break | |
8993 | fi | |
8994 | done | |
8995 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8996 | fi |
8997 | fi | |
698dcdb6 | 8998 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8999 | if test -n "$CXX"; then |
698dcdb6 | 9000 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9001 | else |
698dcdb6 | 9002 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9003 | fi |
9004 | ||
698dcdb6 | 9005 | test -n "$CXX" && break |
10f2d63a | 9006 | done |
698dcdb6 | 9007 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9008 | |
9009 | ||
698dcdb6 | 9010 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d8356fa3 | 9011 | echo "configure:9012: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9012 | |
698dcdb6 VZ |
9013 | ac_ext=C |
9014 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9015 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9016 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9017 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9018 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9019 | |
698dcdb6 VZ |
9020 | cat > conftest.$ac_ext << EOF |
9021 | ||
d8356fa3 | 9022 | #line 9023 "configure" |
10f2d63a VZ |
9023 | #include "confdefs.h" |
9024 | ||
698dcdb6 VZ |
9025 | int main(){return(0);} |
9026 | EOF | |
d8356fa3 | 9027 | if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9028 | ac_cv_prog_cxx_works=yes |
9029 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9030 | if (./conftest; exit) 2>/dev/null; then | |
9031 | ac_cv_prog_cxx_cross=no | |
9032 | else | |
9033 | ac_cv_prog_cxx_cross=yes | |
9034 | fi | |
9035 | else | |
9036 | echo "configure: failed program was:" >&5 | |
9037 | cat conftest.$ac_ext >&5 | |
9038 | ac_cv_prog_cxx_works=no | |
9039 | fi | |
9040 | rm -fr conftest* | |
9041 | ac_ext=C | |
9042 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9044 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9045 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9046 | cross_compiling=$ac_cv_prog_cxx_cross | |
9047 | ||
9048 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9049 | if test $ac_cv_prog_cxx_works = no; then | |
9050 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9051 | fi | |
9052 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d8356fa3 | 9053 | echo "configure:9054: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9054 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9055 | cross_compiling=$ac_cv_prog_cxx_cross | |
9056 | ||
9057 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d8356fa3 | 9058 | echo "configure:9059: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9059 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9061 | else | |
9062 | cat > conftest.C <<EOF | |
9063 | #ifdef __GNUC__ | |
9064 | yes; | |
10f2d63a | 9065 | #endif |
698dcdb6 | 9066 | EOF |
d8356fa3 | 9067 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9068 | ac_cv_prog_gxx=yes |
9069 | else | |
9070 | ac_cv_prog_gxx=no | |
9071 | fi | |
9072 | fi | |
10f2d63a | 9073 | |
698dcdb6 | 9074 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9075 | |
698dcdb6 VZ |
9076 | if test $ac_cv_prog_gxx = yes; then |
9077 | GXX=yes | |
9078 | else | |
9079 | GXX= | |
9080 | fi | |
10f2d63a | 9081 | |
698dcdb6 VZ |
9082 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9083 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9084 | CXXFLAGS= | |
9085 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
d8356fa3 | 9086 | echo "configure:9087: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9087 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9089 | else | |
9090 | echo 'void f(){}' > conftest.cc | |
9091 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9092 | ac_cv_prog_cxx_g=yes |
9093 | else | |
698dcdb6 | 9094 | ac_cv_prog_cxx_g=no |
10f2d63a | 9095 | fi |
698dcdb6 VZ |
9096 | rm -f conftest* |
9097 | ||
10f2d63a | 9098 | fi |
698dcdb6 VZ |
9099 | |
9100 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9101 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9102 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9103 | elif test $ac_cv_prog_cxx_g = yes; then |
9104 | if test "$GXX" = yes; then | |
9105 | CXXFLAGS="-g -O2" | |
9106 | else | |
9107 | CXXFLAGS="-g" | |
9108 | fi | |
9109 | else | |
9110 | if test "$GXX" = yes; then | |
9111 | CXXFLAGS="-O2" | |
9112 | else | |
9113 | CXXFLAGS= | |
9114 | fi | |
9115 | fi | |
9116 | ||
9117 | ||
10f2d63a VZ |
9118 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
9119 | ||
9120 | ac_ext=c | |
698dcdb6 | 9121 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9122 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9123 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9124 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9125 | cross_compiling=$ac_cv_prog_cc_cross | |
9126 | ||
9127 | ||
9128 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9129 | set dummy ranlib; ac_word=$2 | |
9130 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d8356fa3 | 9131 | echo "configure:9132: checking for $ac_word" >&5 |
698dcdb6 VZ |
9132 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9134 | else |
9135 | if test -n "$RANLIB"; then | |
9136 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9137 | else | |
698dcdb6 VZ |
9138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9139 | ac_dummy="$PATH" | |
9140 | for ac_dir in $ac_dummy; do | |
9141 | test -z "$ac_dir" && ac_dir=. | |
9142 | if test -f $ac_dir/$ac_word; then | |
9143 | ac_cv_prog_RANLIB="ranlib" | |
9144 | break | |
9145 | fi | |
9146 | done | |
9147 | IFS="$ac_save_ifs" | |
9148 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9149 | fi |
9150 | fi | |
698dcdb6 | 9151 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9152 | if test -n "$RANLIB"; then |
698dcdb6 | 9153 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9154 | else |
698dcdb6 | 9155 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9156 | fi |
9157 | ||
9158 | ||
9159 | # Extract the first word of "ar", so it can be a program name with args. | |
9160 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9161 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 9162 | echo "configure:9163: checking for $ac_word" >&5 |
698dcdb6 VZ |
9163 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9165 | else |
9166 | if test -n "$AR"; then | |
9167 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9168 | else | |
698dcdb6 VZ |
9169 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9170 | ac_dummy="$PATH" | |
9171 | for ac_dir in $ac_dummy; do | |
9172 | test -z "$ac_dir" && ac_dir=. | |
9173 | if test -f $ac_dir/$ac_word; then | |
9174 | ac_cv_prog_AR="ar" | |
9175 | break | |
9176 | fi | |
9177 | done | |
9178 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9179 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9180 | fi | |
9181 | fi | |
698dcdb6 | 9182 | AR="$ac_cv_prog_AR" |
10f2d63a | 9183 | if test -n "$AR"; then |
698dcdb6 | 9184 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9185 | else |
698dcdb6 | 9186 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9187 | fi |
9188 | ||
698dcdb6 | 9189 | |
6054113a | 9190 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9191 | # so one script is as good as another. But avoid the broken or |
9192 | # incompatible versions: | |
9193 | # SysV /etc/install, /usr/sbin/install | |
9194 | # SunOS /usr/etc/install | |
9195 | # IRIX /sbin/install | |
9196 | # AIX /bin/install | |
9197 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9198 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9199 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9200 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9201 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
d8356fa3 | 9202 | echo "configure:9203: checking for a BSD compatible install" >&5 |
10f2d63a | 9203 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9204 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9206 | else |
698dcdb6 | 9207 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9208 | for ac_dir in $PATH; do |
9209 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9210 | case "$ac_dir/" in |
9211 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9212 | *) |
9213 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9214 | # Don't use installbsd from OSF since it installs stuff as root | |
9215 | # by default. | |
9216 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9217 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9218 | if test $ac_prog = install && |
698dcdb6 | 9219 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9220 | # AIX install. It has an incompatible calling convention. |
9221 | : | |
9222 | else | |
9223 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9224 | break 2 | |
9225 | fi | |
9226 | fi | |
9227 | done | |
9228 | ;; | |
9229 | esac | |
9230 | done | |
698dcdb6 | 9231 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9232 | |
9233 | fi | |
9234 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9235 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9236 | else |
9237 | # As a last resort, use the slow shell script. We don't cache a | |
9238 | # path for INSTALL within a source directory, because that will | |
9239 | # break other packages using the cache if that directory is | |
9240 | # removed, or if the path is relative. | |
698dcdb6 | 9241 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9242 | fi |
9243 | fi | |
698dcdb6 | 9244 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9245 | |
9246 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9247 | # It thinks the first close brace ends the variable substitution. | |
9248 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9249 | ||
698dcdb6 | 9250 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9251 | |
9252 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9253 | ||
6054113a GD |
9254 | case "${host}" in |
9255 | ||
b5853384 | 9256 | powerpc-*-darwin* ) |
eb99ae0b GD |
9257 | INSTALL_PROGRAM="cp -fp" |
9258 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9259 | ;; |
9260 | *) | |
9261 | ;; | |
d6853540 | 9262 | esac |
698dcdb6 | 9263 | |
10f2d63a VZ |
9264 | # Extract the first word of "strip", so it can be a program name with args. |
9265 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9266 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 9267 | echo "configure:9268: checking for $ac_word" >&5 |
698dcdb6 VZ |
9268 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9270 | else |
9271 | if test -n "$STRIP"; then | |
9272 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9273 | else | |
698dcdb6 VZ |
9274 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9275 | ac_dummy="$PATH" | |
9276 | for ac_dir in $ac_dummy; do | |
9277 | test -z "$ac_dir" && ac_dir=. | |
9278 | if test -f $ac_dir/$ac_word; then | |
9279 | ac_cv_prog_STRIP="strip" | |
9280 | break | |
9281 | fi | |
9282 | done | |
9283 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9284 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9285 | fi | |
9286 | fi | |
698dcdb6 | 9287 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9288 | if test -n "$STRIP"; then |
698dcdb6 | 9289 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9290 | else |
698dcdb6 | 9291 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9292 | fi |
9293 | ||
698dcdb6 | 9294 | |
414eab6d | 9295 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
d8356fa3 | 9296 | echo "configure:9297: checking if make is GNU make" >&5 |
414eab6d VZ |
9297 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9299 | else | |
9300 | ||
9301 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
59c962bf | 9302 | egrep qs GNU > /dev/null); then |
414eab6d VZ |
9303 | wx_cv_prog_makeisgnu="yes" |
9304 | else | |
9305 | wx_cv_prog_makeisgnu="no" | |
9306 | fi | |
9307 | ||
9308 | fi | |
9309 | ||
9310 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9311 | ||
9312 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9313 | IF_GNU_MAKE="" | |
9314 | else | |
9315 | IF_GNU_MAKE="#" | |
9316 | fi | |
9317 | ||
9318 | ||
9319 | ||
9320 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9321 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
d8356fa3 | 9322 | echo "configure:9323: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9323 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9325 | else | |
9326 | ||
10f2d63a VZ |
9327 | cat - << EOF > confMake |
9328 | check : file | |
9329 | cp \$? \$@ | |
9330 | cp \$? final_file | |
9331 | EOF | |
9332 | ||
9333 | if test ! -d sub ; then | |
9334 | mkdir sub | |
9335 | fi | |
9336 | echo dummy > sub/file | |
f6bcfd97 | 9337 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9338 | RESULT=$? |
9339 | rm -f sub/file check final_file confMake | |
9340 | rmdir sub | |
9341 | if test "$RESULT" = 0; then | |
04e7a216 | 9342 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9343 | else |
04e7a216 VZ |
9344 | wx_cv_prog_makevpath="no" |
9345 | fi | |
9346 | ||
9347 | fi | |
9348 | ||
9349 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9350 | ||
9351 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9352 | { echo "configure: error: | |
1e487827 VS |
9353 | You need a make-utility that is able to use the variable |
9354 | VPATH correctly. | |
9355 | If your version of make does not support VPATH correctly, | |
9356 | please install GNU-make (possibly as gmake), and start | |
9357 | configure with the following command: | |
9358 | export MAKE=gmake; ./configure for sh-type shells | |
9359 | setenv MAKE gmake; ./configure for csh-type shells | |
9360 | Also please do remember to use gmake in this case every time | |
9361 | you are trying to compile. | |
698dcdb6 | 9362 | " 1>&2; exit 1; } |
414eab6d | 9363 | fi fi |
10f2d63a VZ |
9364 | for ac_prog in 'bison -y' byacc |
9365 | do | |
698dcdb6 | 9366 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9367 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9368 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 9369 | echo "configure:9370: checking for $ac_word" >&5 |
698dcdb6 VZ |
9370 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9372 | else |
9373 | if test -n "$YACC"; then | |
9374 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9375 | else | |
698dcdb6 VZ |
9376 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9377 | ac_dummy="$PATH" | |
9378 | for ac_dir in $ac_dummy; do | |
9379 | test -z "$ac_dir" && ac_dir=. | |
9380 | if test -f $ac_dir/$ac_word; then | |
9381 | ac_cv_prog_YACC="$ac_prog" | |
9382 | break | |
9383 | fi | |
9384 | done | |
9385 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9386 | fi |
9387 | fi | |
698dcdb6 | 9388 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9389 | if test -n "$YACC"; then |
698dcdb6 | 9390 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9391 | else |
698dcdb6 | 9392 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9393 | fi |
9394 | ||
698dcdb6 | 9395 | test -n "$YACC" && break |
10f2d63a VZ |
9396 | done |
9397 | test -n "$YACC" || YACC="yacc" | |
9398 | ||
698dcdb6 VZ |
9399 | |
9400 | # Extract the first word of "flex", so it can be a program name with args. | |
9401 | set dummy flex; ac_word=$2 | |
9402 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d8356fa3 | 9403 | echo "configure:9404: checking for $ac_word" >&5 |
698dcdb6 VZ |
9404 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9406 | else |
9407 | if test -n "$LEX"; then | |
9408 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9409 | else | |
698dcdb6 VZ |
9410 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9411 | ac_dummy="$PATH" | |
9412 | for ac_dir in $ac_dummy; do | |
9413 | test -z "$ac_dir" && ac_dir=. | |
9414 | if test -f $ac_dir/$ac_word; then | |
9415 | ac_cv_prog_LEX="flex" | |
9416 | break | |
9417 | fi | |
9418 | done | |
9419 | IFS="$ac_save_ifs" | |
9420 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9421 | fi |
9422 | fi | |
698dcdb6 | 9423 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9424 | if test -n "$LEX"; then |
698dcdb6 | 9425 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9426 | else |
698dcdb6 | 9427 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9428 | fi |
9429 | ||
9430 | if test -z "$LEXLIB" | |
9431 | then | |
698dcdb6 VZ |
9432 | case "$LEX" in |
9433 | flex*) ac_lib=fl ;; | |
9434 | *) ac_lib=l ;; | |
9435 | esac | |
9436 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d8356fa3 | 9437 | echo "configure:9438: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9438 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9439 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9441 | else | |
9442 | ac_save_LIBS="$LIBS" | |
9443 | LIBS="-l$ac_lib $LIBS" | |
9444 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9445 | #line 9446 "configure" |
10f2d63a VZ |
9446 | #include "confdefs.h" |
9447 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9448 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9449 | builtin and then its argument prototype would still apply. */ |
9450 | char yywrap(); | |
10f2d63a | 9451 | |
698dcdb6 VZ |
9452 | int main() { |
9453 | yywrap() | |
9454 | ; return 0; } | |
9455 | EOF | |
d8356fa3 | 9456 | if { (eval echo configure:9457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9457 | rm -rf conftest* |
9458 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9459 | else |
698dcdb6 VZ |
9460 | echo "configure: failed program was:" >&5 |
9461 | cat conftest.$ac_ext >&5 | |
9462 | rm -rf conftest* | |
9463 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9464 | fi |
698dcdb6 VZ |
9465 | rm -f conftest* |
9466 | LIBS="$ac_save_LIBS" | |
9467 | ||
10f2d63a | 9468 | fi |
698dcdb6 VZ |
9469 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9470 | echo "$ac_t""yes" 1>&6 | |
9471 | LEXLIB="-l$ac_lib" | |
9472 | else | |
9473 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9474 | fi |
9475 | ||
9476 | fi | |
9477 | ||
9478 | ||
698dcdb6 | 9479 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
d8356fa3 | 9480 | echo "configure:9481: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9481 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9483 | else |
698dcdb6 VZ |
9484 | rm -f conftestdata |
9485 | if ln -s X conftestdata 2>/dev/null | |
9486 | then | |
9487 | rm -f conftestdata | |
9488 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9489 | else |
698dcdb6 | 9490 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9491 | fi |
9492 | fi | |
698dcdb6 VZ |
9493 | LN_S="$ac_cv_prog_LN_S" |
9494 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9495 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9496 | else |
698dcdb6 | 9497 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9498 | fi |
9499 | ||
9500 | ||
9501 | ||
9502 | SEARCH_INCLUDE="\ | |
9503 | /usr/local/include \ | |
9504 | \ | |
9505 | /usr/Motif-1.2/include \ | |
9506 | /usr/Motif-2.1/include \ | |
9507 | \ | |
9508 | /usr/include/Motif1.2 \ | |
9509 | /opt/xpm/include/X11 \ | |
9510 | /opt/GBxpm/include/ \ | |
9511 | /opt/GBxpm/X11/include/ \ | |
9512 | \ | |
9513 | /usr/Motif1.2/include \ | |
9514 | /usr/dt/include \ | |
afc31813 VZ |
9515 | /usr/openwin/include \ |
9516 | \ | |
10f2d63a VZ |
9517 | /usr/include/Xm \ |
9518 | \ | |
9519 | /usr/X11R6/include \ | |
afc31813 | 9520 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9521 | /usr/X11R5/include \ |
9522 | /usr/X11R4/include \ | |
9523 | \ | |
10f2d63a VZ |
9524 | /usr/include/X11R6 \ |
9525 | /usr/include/X11R5 \ | |
9526 | /usr/include/X11R4 \ | |
9527 | \ | |
9528 | /usr/local/X11R6/include \ | |
9529 | /usr/local/X11R5/include \ | |
9530 | /usr/local/X11R4/include \ | |
9531 | \ | |
9532 | /usr/local/include/X11R6 \ | |
9533 | /usr/local/include/X11R5 \ | |
9534 | /usr/local/include/X11R4 \ | |
9535 | \ | |
9536 | /usr/X11/include \ | |
9537 | /usr/include/X11 \ | |
9538 | /usr/local/X11/include \ | |
9539 | /usr/local/include/X11 \ | |
9540 | \ | |
9541 | /usr/X386/include \ | |
9542 | /usr/x386/include \ | |
9543 | /usr/XFree86/include/X11 \ | |
9544 | \ | |
cf27ef00 | 9545 | X:/XFree86/include \ |
ec14dd32 VZ |
9546 | X:/XFree86/include/X11 \ |
9547 | \ | |
10f2d63a VZ |
9548 | /usr/include/gtk \ |
9549 | /usr/local/include/gtk \ | |
9550 | /usr/include/glib \ | |
9551 | /usr/local/include/glib \ | |
9552 | \ | |
9553 | /usr/include/qt \ | |
9554 | /usr/local/include/qt \ | |
9555 | \ | |
9556 | /usr/include/windows \ | |
9557 | /usr/include/wine \ | |
9558 | /usr/local/include/wine \ | |
9559 | \ | |
9560 | /usr/unsupported/include \ | |
9561 | /usr/athena/include \ | |
9562 | /usr/local/x11r5/include \ | |
9563 | /usr/lpp/Xamples/include \ | |
9564 | \ | |
10f2d63a | 9565 | /usr/openwin/share/include \ |
928b5c08 VZ |
9566 | \ |
9567 | /usr/include" | |
10f2d63a VZ |
9568 | |
9569 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9570 | ||
698dcdb6 VZ |
9571 | |
9572 | cat > confcache <<\EOF | |
10f2d63a VZ |
9573 | # This file is a shell script that caches the results of configure |
9574 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9575 | # scripts and configure runs. It is not useful on other systems. |
9576 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9577 | # |
698dcdb6 VZ |
9578 | # By default, configure uses ./config.cache as the cache file, |
9579 | # creating it if it does not exist already. You can give configure | |
9580 | # the --cache-file=FILE option to use a different cache file; that is | |
9581 | # what configure does when it calls configure scripts in | |
9582 | # subdirectories, so they share the cache. | |
9583 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9584 | # config.status only pays attention to the cache file if you give it the | |
9585 | # --recheck option to rerun configure. | |
10f2d63a | 9586 | # |
698dcdb6 | 9587 | EOF |
10f2d63a VZ |
9588 | # The following way of writing the cache mishandles newlines in values, |
9589 | # but we know of no workaround that is simple, portable, and efficient. | |
9590 | # So, don't put newlines in cache variables' values. | |
9591 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9592 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9593 | (set) 2>&1 | |
9594 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9595 | *ac_space=\ *) | |
9596 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9597 | # turns \\\\ into \\, and sed turns \\ into \). | |
9598 | sed -n \ | |
9599 | -e "s/'/'\\\\''/g" \ | |
9600 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9601 | ;; | |
9602 | *) | |
9603 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9604 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9605 | ;; | |
9606 | esac >> confcache | |
9607 | if cmp -s $cache_file confcache; then | |
9608 | : | |
9609 | else | |
10f2d63a | 9610 | if test -w $cache_file; then |
698dcdb6 VZ |
9611 | echo "updating cache $cache_file" |
9612 | cat confcache > $cache_file | |
10f2d63a VZ |
9613 | else |
9614 | echo "not updating unwritable cache $cache_file" | |
9615 | fi | |
9616 | fi | |
9617 | rm -f confcache | |
9618 | ||
698dcdb6 VZ |
9619 | |
9620 | ||
4f14bcd8 | 9621 | |
18dbb1f6 VZ |
9622 | REGEX_INCLUDE= |
9623 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9624 | cat >> confdefs.h <<\EOF |
9625 | #define wxUSE_REGEX 1 | |
9626 | EOF | |
9627 | ||
9628 | ||
9629 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9630 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9631 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
d8356fa3 | 9632 | echo "configure:9633: checking for regex.h" >&5 |
18dbb1f6 VZ |
9633 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9635 | else | |
9636 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9637 | #line 9638 "configure" |
18dbb1f6 VZ |
9638 | #include "confdefs.h" |
9639 | #include <regex.h> | |
9640 | EOF | |
9641 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 9642 | { (eval echo configure:9643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9643 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9644 | if test -z "$ac_err"; then | |
9645 | rm -rf conftest* | |
9646 | eval "ac_cv_header_$ac_safe=yes" | |
9647 | else | |
9648 | echo "$ac_err" >&5 | |
9649 | echo "configure: failed program was:" >&5 | |
9650 | cat conftest.$ac_ext >&5 | |
9651 | rm -rf conftest* | |
9652 | eval "ac_cv_header_$ac_safe=no" | |
9653 | fi | |
9654 | rm -f conftest* | |
9655 | fi | |
9656 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9657 | echo "$ac_t""yes" 1>&6 | |
9658 | for ac_func in regcomp | |
9659 | do | |
9660 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d8356fa3 | 9661 | echo "configure:9662: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9662 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9664 | else | |
9665 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9666 | #line 9667 "configure" |
18dbb1f6 VZ |
9667 | #include "confdefs.h" |
9668 | /* System header to define __stub macros and hopefully few prototypes, | |
9669 | which can conflict with char $ac_func(); below. */ | |
9670 | #include <assert.h> | |
9671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9672 | /* We use char because int might match the return type of a gcc2 | |
9673 | builtin and then its argument prototype would still apply. */ | |
9674 | char $ac_func(); | |
9675 | ||
9676 | int main() { | |
9677 | ||
9678 | /* The GNU C library defines this for functions which it implements | |
9679 | to always fail with ENOSYS. Some functions are actually named | |
9680 | something starting with __ and the normal name is an alias. */ | |
9681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9682 | choke me | |
9683 | #else | |
9684 | $ac_func(); | |
9685 | #endif | |
9686 | ||
9687 | ; return 0; } | |
9688 | EOF | |
d8356fa3 | 9689 | if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9690 | rm -rf conftest* |
9691 | eval "ac_cv_func_$ac_func=yes" | |
9692 | else | |
9693 | echo "configure: failed program was:" >&5 | |
9694 | cat conftest.$ac_ext >&5 | |
9695 | rm -rf conftest* | |
9696 | eval "ac_cv_func_$ac_func=no" | |
9697 | fi | |
9698 | rm -f conftest* | |
9699 | fi | |
9700 | ||
9701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9702 | echo "$ac_t""yes" 1>&6 | |
9703 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9704 | cat >> confdefs.h <<EOF | |
9705 | #define $ac_tr_func 1 | |
9706 | EOF | |
9707 | ||
9708 | else | |
9709 | echo "$ac_t""no" 1>&6 | |
9710 | fi | |
9711 | done | |
9712 | ||
9713 | else | |
9714 | echo "$ac_t""no" 1>&6 | |
9715 | fi | |
9716 | ||
9717 | ||
4f14bcd8 GD |
9718 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9719 | if test "$wxUSE_REGEX" = "sys" ; then | |
9720 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9721 | else | |
a3df447d | 9722 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9723 | wxUSE_REGEX=builtin |
9724 | fi | |
9725 | else | |
9726 | wxUSE_REGEX=sys | |
18dbb1f6 | 9727 | fi |
18dbb1f6 VZ |
9728 | fi |
9729 | ||
4f14bcd8 GD |
9730 | if test "$wxUSE_REGEX" = "builtin" ; then |
9731 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9732 | fi | |
18dbb1f6 VZ |
9733 | fi |
9734 | ||
9735 | ||
4f14bcd8 GD |
9736 | ZLIB_INCLUDE= |
9737 | ZLIB_LINK= | |
9738 | if test "$wxUSE_ZLIB" != "no" ; then | |
9739 | cat >> confdefs.h <<\EOF | |
9740 | #define wxUSE_ZLIB 1 | |
9741 | EOF | |
dad6c0ea | 9742 | |
10f2d63a | 9743 | |
4f14bcd8 GD |
9744 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9745 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9746 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d8356fa3 | 9747 | echo "configure:9748: checking for zlib.h" >&5 |
3a922bb4 RL |
9748 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9750 | else | |
9751 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9752 | #line 9753 "configure" |
3a922bb4 | 9753 | #include "confdefs.h" |
4f14bcd8 | 9754 | #include <zlib.h> |
3a922bb4 RL |
9755 | EOF |
9756 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 9757 | { (eval echo configure:9758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9758 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9759 | if test -z "$ac_err"; then | |
9760 | rm -rf conftest* | |
9761 | eval "ac_cv_header_$ac_safe=yes" | |
9762 | else | |
9763 | echo "$ac_err" >&5 | |
9764 | echo "configure: failed program was:" >&5 | |
9765 | cat conftest.$ac_ext >&5 | |
9766 | rm -rf conftest* | |
9767 | eval "ac_cv_header_$ac_safe=no" | |
9768 | fi | |
9769 | rm -f conftest* | |
9770 | fi | |
9771 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9772 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9773 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
d8356fa3 | 9774 | echo "configure:9775: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9775 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9776 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9778 | else | |
9779 | ac_save_LIBS="$LIBS" | |
9780 | LIBS="-lz $LIBS" | |
9781 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9782 | #line 9783 "configure" |
4f14bcd8 GD |
9783 | #include "confdefs.h" |
9784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9785 | /* We use char because int might match the return type of a gcc2 | |
9786 | builtin and then its argument prototype would still apply. */ | |
9787 | char deflate(); | |
9788 | ||
9789 | int main() { | |
9790 | deflate() | |
9791 | ; return 0; } | |
3a922bb4 | 9792 | EOF |
d8356fa3 | 9793 | if { (eval echo configure:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9794 | rm -rf conftest* |
9795 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9796 | else | |
9797 | echo "configure: failed program was:" >&5 | |
9798 | cat conftest.$ac_ext >&5 | |
9799 | rm -rf conftest* | |
9800 | eval "ac_cv_lib_$ac_lib_var=no" | |
9801 | fi | |
9802 | rm -f conftest* | |
9803 | LIBS="$ac_save_LIBS" | |
9804 | ||
9805 | fi | |
9806 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9807 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9808 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9809 | else |
9810 | echo "$ac_t""no" 1>&6 | |
9811 | fi | |
10f2d63a | 9812 | |
4f14bcd8 GD |
9813 | else |
9814 | echo "$ac_t""no" 1>&6 | |
9815 | fi | |
9816 | ||
9817 | ||
9818 | if test "x$ZLIB_LINK" = "x" ; then | |
9819 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9820 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9821 | else | |
a3df447d | 9822 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9823 | wxUSE_ZLIB=builtin |
9824 | fi | |
9825 | else | |
9826 | wxUSE_ZLIB=sys | |
9827 | fi | |
9828 | fi | |
9829 | ||
9830 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9831 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9832 | fi | |
9833 | fi | |
9834 | ||
9835 | ||
9836 | PNG_INCLUDE= | |
9837 | PNG_LINK= | |
9838 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9839 | cat >> confdefs.h <<\EOF | |
9840 | #define wxUSE_LIBPNG 1 | |
9841 | EOF | |
9842 | ||
81809c07 VS |
9843 | |
9844 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9845 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9846 | wxUSE_LIBPNG=sys | |
9847 | fi | |
4f14bcd8 | 9848 | |
81809c07 | 9849 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9850 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9851 | wxUSE_LIBPNG=builtin |
9852 | fi | |
9853 | ||
81809c07 VS |
9854 | if test "$wxUSE_MGL" != 1 ; then |
9855 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9856 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9857 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
d8356fa3 | 9858 | echo "configure:9859: checking for png.h" >&5 |
d4158b5d VS |
9859 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9861 | else | |
9862 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9863 | #line 9864 "configure" |
d4158b5d | 9864 | #include "confdefs.h" |
4f14bcd8 | 9865 | #include <png.h> |
d4158b5d VS |
9866 | EOF |
9867 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 9868 | { (eval echo configure:9869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9869 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9870 | if test -z "$ac_err"; then | |
9871 | rm -rf conftest* | |
9872 | eval "ac_cv_header_$ac_safe=yes" | |
9873 | else | |
9874 | echo "$ac_err" >&5 | |
9875 | echo "configure: failed program was:" >&5 | |
9876 | cat conftest.$ac_ext >&5 | |
9877 | rm -rf conftest* | |
9878 | eval "ac_cv_header_$ac_safe=no" | |
9879 | fi | |
9880 | rm -f conftest* | |
9881 | fi | |
9882 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9883 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9884 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
d8356fa3 | 9885 | echo "configure:9886: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9886 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9887 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9888 | echo $ac_n "(cached) $ac_c" 1>&6 |
9889 | else | |
4f14bcd8 GD |
9890 | ac_save_LIBS="$LIBS" |
9891 | LIBS="-lpng -lz -lm $LIBS" | |
9892 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 9893 | #line 9894 "configure" |
3a922bb4 | 9894 | #include "confdefs.h" |
4f14bcd8 GD |
9895 | /* Override any gcc2 internal prototype to avoid an error. */ |
9896 | /* We use char because int might match the return type of a gcc2 | |
9897 | builtin and then its argument prototype would still apply. */ | |
9898 | char png_check_sig(); | |
f6bcfd97 | 9899 | |
4f14bcd8 GD |
9900 | int main() { |
9901 | png_check_sig() | |
3a922bb4 RL |
9902 | ; return 0; } |
9903 | EOF | |
d8356fa3 | 9904 | if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9905 | rm -rf conftest* |
4f14bcd8 | 9906 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9907 | else |
9908 | echo "configure: failed program was:" >&5 | |
9909 | cat conftest.$ac_ext >&5 | |
9910 | rm -rf conftest* | |
4f14bcd8 | 9911 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9912 | fi |
9913 | rm -f conftest* | |
4f14bcd8 | 9914 | LIBS="$ac_save_LIBS" |
10f2d63a | 9915 | |
4f14bcd8 GD |
9916 | fi |
9917 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9918 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9919 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9920 | else |
9921 | echo "$ac_t""no" 1>&6 | |
9922 | fi | |
32832908 | 9923 | |
81809c07 | 9924 | |
4f14bcd8 GD |
9925 | else |
9926 | echo "$ac_t""no" 1>&6 | |
9927 | fi | |
3a922bb4 | 9928 | |
7b7a7637 | 9929 | |
81809c07 VS |
9930 | if test "x$PNG_LINK" = "x" ; then |
9931 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9932 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9933 | else | |
9934 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9935 | wxUSE_LIBPNG=builtin | |
9936 | fi | |
4f14bcd8 | 9937 | else |
81809c07 | 9938 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9939 | fi |
4f14bcd8 | 9940 | fi |
3a922bb4 RL |
9941 | fi |
9942 | ||
4f14bcd8 GD |
9943 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9944 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9945 | fi |
9946 | ||
4f14bcd8 | 9947 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9948 | fi |
9949 | ||
32832908 | 9950 | |
4f14bcd8 GD |
9951 | JPEG_INCLUDE= |
9952 | JPEG_LINK= | |
9953 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9954 | cat >> confdefs.h <<\EOF | |
9955 | #define wxUSE_LIBJPEG 1 | |
9956 | EOF | |
10f2d63a | 9957 | |
8168de4c | 9958 | |
81809c07 VS |
9959 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9960 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9961 | wxUSE_LIBJPEG=sys | |
9962 | fi | |
9963 | ||
9964 | if test "$wxUSE_MGL" != 1 ; then | |
9965 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9966 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
d8356fa3 | 9967 | echo "configure:9968: checking for jpeglib.h" >&5 |
81809c07 | 9968 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9969 | echo $ac_n "(cached) $ac_c" 1>&6 |
9970 | else | |
4f14bcd8 | 9971 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 9972 | #line 9973 "configure" |
4f14bcd8 | 9973 | #include "confdefs.h" |
8168de4c | 9974 | |
81809c07 VS |
9975 | #undef HAVE_STDLIB_H |
9976 | #include <stdio.h> | |
9977 | #include <jpeglib.h> | |
9978 | ||
4f14bcd8 GD |
9979 | int main() { |
9980 | ||
81809c07 | 9981 | |
4f14bcd8 GD |
9982 | ; return 0; } |
9983 | EOF | |
d8356fa3 | 9984 | if { (eval echo configure:9985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9985 | rm -rf conftest* |
9986 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9987 | else |
4f14bcd8 GD |
9988 | echo "configure: failed program was:" >&5 |
9989 | cat conftest.$ac_ext >&5 | |
9990 | rm -rf conftest* | |
9991 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9992 | |
4f14bcd8 GD |
9993 | fi |
9994 | rm -f conftest* | |
81809c07 | 9995 | |
698dcdb6 | 9996 | fi |
6f72b082 | 9997 | |
81809c07 | 9998 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 9999 | |
81809c07 VS |
10000 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
10001 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d8356fa3 | 10002 | echo "configure:10003: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
10003 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
10004 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10006 | else |
4f14bcd8 GD |
10007 | ac_save_LIBS="$LIBS" |
10008 | LIBS="-ljpeg $LIBS" | |
10009 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10010 | #line 10011 "configure" |
4f14bcd8 GD |
10011 | #include "confdefs.h" |
10012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10013 | /* We use char because int might match the return type of a gcc2 | |
10014 | builtin and then its argument prototype would still apply. */ | |
10015 | char jpeg_read_header(); | |
698dcdb6 | 10016 | |
4f14bcd8 GD |
10017 | int main() { |
10018 | jpeg_read_header() | |
10019 | ; return 0; } | |
10020 | EOF | |
d8356fa3 | 10021 | if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10022 | rm -rf conftest* |
10023 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 10024 | else |
4f14bcd8 GD |
10025 | echo "configure: failed program was:" >&5 |
10026 | cat conftest.$ac_ext >&5 | |
10027 | rm -rf conftest* | |
10028 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 10029 | fi |
4f14bcd8 GD |
10030 | rm -f conftest* |
10031 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 10032 | |
4f14bcd8 GD |
10033 | fi |
10034 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10035 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10036 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
10037 | else |
10038 | echo "$ac_t""no" 1>&6 | |
10039 | fi | |
10040 | ||
81809c07 | 10041 | fi |
4f14bcd8 | 10042 | |
81809c07 VS |
10043 | if test "x$JPEG_LINK" = "x" ; then |
10044 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10045 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10046 | else | |
10047 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10048 | wxUSE_LIBJPEG=builtin | |
10049 | fi | |
4f14bcd8 | 10050 | else |
81809c07 | 10051 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10052 | fi |
4f14bcd8 GD |
10053 | fi |
10054 | fi | |
10055 | ||
10056 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10057 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10058 | fi | |
10059 | fi | |
10060 | ||
10061 | ||
10062 | TIFF_INCLUDE= | |
10063 | TIFF_LINK= | |
10064 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10065 | cat >> confdefs.h <<\EOF | |
10066 | #define wxUSE_LIBTIFF 1 | |
10067 | EOF | |
10068 | ||
10069 | ||
10070 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10071 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10072 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d8356fa3 | 10073 | echo "configure:10074: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10074 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10076 | else | |
10077 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10078 | #line 10079 "configure" |
4f14bcd8 GD |
10079 | #include "confdefs.h" |
10080 | #include <tiffio.h> | |
10081 | EOF | |
10082 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 10083 | { (eval echo configure:10084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10084 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10085 | if test -z "$ac_err"; then | |
10086 | rm -rf conftest* | |
10087 | eval "ac_cv_header_$ac_safe=yes" | |
10088 | else | |
10089 | echo "$ac_err" >&5 | |
10090 | echo "configure: failed program was:" >&5 | |
10091 | cat conftest.$ac_ext >&5 | |
10092 | rm -rf conftest* | |
10093 | eval "ac_cv_header_$ac_safe=no" | |
10094 | fi | |
10095 | rm -f conftest* | |
10096 | fi | |
10097 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10098 | echo "$ac_t""yes" 1>&6 | |
10099 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
d8356fa3 | 10100 | echo "configure:10101: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10101 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10102 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10104 | else | |
10105 | ac_save_LIBS="$LIBS" | |
10106 | LIBS="-ltiff -lm $LIBS" | |
10107 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10108 | #line 10109 "configure" |
4f14bcd8 GD |
10109 | #include "confdefs.h" |
10110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10111 | /* We use char because int might match the return type of a gcc2 | |
10112 | builtin and then its argument prototype would still apply. */ | |
10113 | char TIFFError(); | |
10114 | ||
10115 | int main() { | |
10116 | TIFFError() | |
10117 | ; return 0; } | |
10118 | EOF | |
d8356fa3 | 10119 | if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10120 | rm -rf conftest* |
10121 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10122 | else | |
10123 | echo "configure: failed program was:" >&5 | |
10124 | cat conftest.$ac_ext >&5 | |
10125 | rm -rf conftest* | |
10126 | eval "ac_cv_lib_$ac_lib_var=no" | |
10127 | fi | |
10128 | rm -f conftest* | |
10129 | LIBS="$ac_save_LIBS" | |
10130 | ||
10131 | fi | |
10132 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10133 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10134 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10135 | else |
10136 | echo "$ac_t""no" 1>&6 | |
10137 | fi | |
10138 | ||
10139 | ||
10140 | else | |
10141 | echo "$ac_t""no" 1>&6 | |
10142 | fi | |
10143 | ||
10144 | ||
10145 | if test "x$TIFF_LINK" = "x" ; then | |
10146 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10147 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10148 | else | |
a3df447d | 10149 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10150 | wxUSE_LIBTIFF=builtin |
10151 | fi | |
10152 | else | |
10153 | wxUSE_LIBTIFF=sys | |
10154 | fi | |
10155 | fi | |
10156 | ||
10157 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10158 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10159 | fi | |
10160 | fi | |
10161 | ||
10162 | ||
4f14bcd8 GD |
10163 | AFMINSTALL= |
10164 | ||
10165 | TOOLKIT= | |
10166 | TOOLKIT_INCLUDE= | |
10167 | WIDGET_SET= | |
10168 | ||
10169 | if test "$USE_WIN32" = 1 ; then | |
10170 | for ac_hdr in w32api.h | |
10171 | do | |
10172 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10173 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d8356fa3 | 10174 | echo "configure:10175: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10175 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10177 | else | |
10178 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10179 | #line 10180 "configure" |
4f14bcd8 GD |
10180 | #include "confdefs.h" |
10181 | #include <$ac_hdr> | |
10182 | EOF | |
10183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 10184 | { (eval echo configure:10185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10186 | if test -z "$ac_err"; then | |
10187 | rm -rf conftest* | |
10188 | eval "ac_cv_header_$ac_safe=yes" | |
10189 | else | |
10190 | echo "$ac_err" >&5 | |
10191 | echo "configure: failed program was:" >&5 | |
10192 | cat conftest.$ac_ext >&5 | |
10193 | rm -rf conftest* | |
10194 | eval "ac_cv_header_$ac_safe=no" | |
10195 | fi | |
10196 | rm -f conftest* | |
10197 | fi | |
10198 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10199 | echo "$ac_t""yes" 1>&6 | |
10200 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10201 | cat >> confdefs.h <<EOF | |
10202 | #define $ac_tr_hdr 1 | |
10203 | EOF | |
10204 | ||
10205 | else | |
10206 | echo "$ac_t""no" 1>&6 | |
10207 | fi | |
10208 | done | |
10209 | ||
10210 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10211 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
d8356fa3 | 10212 | echo "configure:10213: checking for windows.h" >&5 |
4f14bcd8 GD |
10213 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10215 | else | |
10216 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10217 | #line 10218 "configure" |
4f14bcd8 GD |
10218 | #include "confdefs.h" |
10219 | #include <windows.h> | |
10220 | EOF | |
10221 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 10222 | { (eval echo configure:10223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10223 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10224 | if test -z "$ac_err"; then | |
10225 | rm -rf conftest* | |
10226 | eval "ac_cv_header_$ac_safe=yes" | |
10227 | else | |
10228 | echo "$ac_err" >&5 | |
10229 | echo "configure: failed program was:" >&5 | |
10230 | cat conftest.$ac_ext >&5 | |
10231 | rm -rf conftest* | |
10232 | eval "ac_cv_header_$ac_safe=no" | |
10233 | fi | |
10234 | rm -f conftest* | |
10235 | fi | |
10236 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10237 | echo "$ac_t""yes" 1>&6 | |
10238 | : | |
10239 | else | |
10240 | echo "$ac_t""no" 1>&6 | |
10241 | ||
10242 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10243 | ||
10244 | fi | |
10245 | ||
10246 | ||
10247 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
d8356fa3 | 10248 | echo "configure:10249: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10249 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10250 | echo $ac_n "(cached) $ac_c" 1>&6 |
10251 | else | |
10252 | ||
10253 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10254 | #line 10255 "configure" |
4f14bcd8 GD |
10255 | #include "confdefs.h" |
10256 | #include <w32api.h> | |
10257 | int main() { | |
10258 | ||
10259 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10260 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10261 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10262 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10263 | ||
10264 | #if !wxCHECK_W32API_VERSION(1,1) | |
10265 | #error You need w32api 1.1 or newer | |
10266 | #endif | |
10267 | ||
10268 | ; return 0; } | |
10269 | EOF | |
d8356fa3 | 10270 | if { (eval echo configure:10271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10271 | rm -rf conftest* |
10272 | ||
ea7682f0 | 10273 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10274 | |
10275 | else | |
10276 | echo "configure: failed program was:" >&5 | |
10277 | cat conftest.$ac_ext >&5 | |
10278 | rm -rf conftest* | |
10279 | ||
ea7682f0 | 10280 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10281 | |
10282 | fi | |
10283 | rm -f conftest* | |
10284 | ||
10285 | fi | |
10286 | ||
ea7682f0 VS |
10287 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10288 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10289 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10290 | fi | |
4f14bcd8 GD |
10291 | |
10292 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10293 | ||
77e13408 RL |
10294 | case "${host}" in |
10295 | *-*-cygwin* ) | |
10296 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10297 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10298 | esac | |
4f14bcd8 GD |
10299 | |
10300 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10301 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10302 | fi |
10303 | ||
4f14bcd8 GD |
10304 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10305 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10306 | fi | |
10307 | ||
10308 | if test "$wxUSE_GUI" = "yes"; then | |
10309 | USE_GUI=1 | |
10310 | ||
10311 | GUI_TK_LIBRARY= | |
10312 | ||
10313 | WXGTK12= | |
10314 | WXGTK127= | |
10315 | WXGTK20= | |
10316 | ||
77e13408 | 10317 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10318 | TOOLKIT=MSW |
10319 | GUIDIST=MSW_DIST | |
77e13408 RL |
10320 | |
10321 | case "${host}" in | |
10322 | *-*-mingw32* ) | |
3d63bc3a | 10323 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10324 | esac |
4f14bcd8 GD |
10325 | fi |
10326 | ||
10327 | if test "$wxUSE_GTK" = 1; then | |
10328 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
d8356fa3 | 10329 | echo "configure:10330: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10330 | |
10331 | gtk_version_cached=1 | |
10332 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10334 | else | |
10335 | ||
10336 | gtk_version_cached=0 | |
d48ad9bd | 10337 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10338 | |
3f345b47 VZ |
10339 | GTK_MODULES= |
10340 | if test "$wxUSE_THREADS" = "yes"; then | |
10341 | GTK_MODULES=gthread | |
10342 | fi | |
10343 | ||
4f14bcd8 GD |
10344 | wx_cv_lib_gtk= |
10345 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10346 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10347 | if test "${with_gtk_prefix+set}" = set; then | |
10348 | withval="$with_gtk_prefix" | |
10349 | gtk_config_prefix="$withval" | |
10350 | else | |
10351 | gtk_config_prefix="" | |
10352 | fi | |
10353 | ||
10354 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10355 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10356 | withval="$with_gtk_exec_prefix" | |
10357 | gtk_config_exec_prefix="$withval" | |
10358 | else | |
10359 | gtk_config_exec_prefix="" | |
10360 | fi | |
10361 | ||
10362 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10363 | if test "${enable_gtktest+set}" = set; then | |
10364 | enableval="$enable_gtktest" | |
10365 | : | |
10366 | else | |
10367 | enable_gtktest=yes | |
10368 | fi | |
10369 | ||
10370 | ||
3f345b47 | 10371 | for module in . $GTK_MODULES |
4f14bcd8 | 10372 | do |
6f72b082 | 10373 | case "$module" in |
8168de4c | 10374 | gthread) |
6f72b082 OK |
10375 | gtk_config_args="$gtk_config_args gthread" |
10376 | ;; | |
10377 | esac | |
10378 | done | |
10379 | ||
10380 | if test x$gtk_config_exec_prefix != x ; then | |
10381 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10382 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10383 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10384 | fi | |
10385 | fi | |
10386 | if test x$gtk_config_prefix != x ; then | |
10387 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10388 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10389 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10390 | fi | |
10391 | fi | |
10392 | ||
10393 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10394 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10395 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 10396 | echo "configure:10397: checking for $ac_word" >&5 |
698dcdb6 VZ |
10397 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10399 | else |
698dcdb6 VZ |
10400 | case "$GTK_CONFIG_2_0" in |
10401 | /*) | |
6f72b082 OK |
10402 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10403 | ;; | |
698dcdb6 VZ |
10404 | ?:/*) |
10405 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10406 | ;; | |
6f72b082 | 10407 | *) |
698dcdb6 VZ |
10408 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10409 | ac_dummy="$PATH" | |
10410 | for ac_dir in $ac_dummy; do | |
10411 | test -z "$ac_dir" && ac_dir=. | |
10412 | if test -f $ac_dir/$ac_word; then | |
10413 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10414 | break | |
10415 | fi | |
10416 | done | |
10417 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10418 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10419 | ;; | |
10420 | esac | |
10421 | fi | |
698dcdb6 | 10422 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10423 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10424 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10425 | else |
698dcdb6 | 10426 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10427 | fi |
10428 | ||
10429 | min_gtk_version=1.3.1 | |
698dcdb6 | 10430 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d8356fa3 | 10431 | echo "configure:10432: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10432 | no_gtk="" |
10433 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10434 | no_gtk=yes | |
10435 | else | |
10436 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10437 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10438 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10439 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10440 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10441 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10442 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10443 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10444 | if test "x$enable_gtktest" = "xyes" ; then | |
10445 | ac_save_CFLAGS="$CFLAGS" | |
10446 | ac_save_LIBS="$LIBS" | |
10447 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10448 | LIBS="$GTK_LIBS $LIBS" | |
10449 | rm -f conf.gtktest | |
10450 | if test "$cross_compiling" = yes; then | |
10451 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10452 | else | |
698dcdb6 | 10453 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 10454 | #line 10455 "configure" |
6f72b082 OK |
10455 | #include "confdefs.h" |
10456 | ||
10457 | #include <gtk/gtk.h> | |
10458 | #include <stdio.h> | |
10459 | #include <stdlib.h> | |
10460 | ||
8168de4c | 10461 | int |
6f72b082 OK |
10462 | main () |
10463 | { | |
10464 | int major, minor, micro; | |
10465 | char *tmp_version; | |
10466 | ||
10467 | system ("touch conf.gtktest"); | |
10468 | ||
10469 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10470 | tmp_version = g_strdup("$min_gtk_version"); | |
10471 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10472 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10473 | exit(1); | |
10474 | } | |
10475 | ||
10476 | if ((gtk_major_version != $gtk_config_major_version) || | |
10477 | (gtk_minor_version != $gtk_config_minor_version) || | |
10478 | (gtk_micro_version != $gtk_config_micro_version)) | |
10479 | { | |
8168de4c | 10480 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10481 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10482 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10483 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10484 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10485 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10486 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10487 | printf("*** required on your system.\n"); | |
10488 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10489 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10490 | printf("*** before re-running configure\n"); | |
8168de4c | 10491 | } |
6f72b082 OK |
10492 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10493 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10494 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10495 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10496 | { | |
10497 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10498 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10499 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10500 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10501 | } |
10502 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10503 | else | |
10504 | { | |
10505 | if ((gtk_major_version > major) || | |
10506 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10507 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10508 | { | |
10509 | return 0; | |
10510 | } | |
10511 | else | |
10512 | { | |
10513 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10514 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10515 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10516 | major, minor, micro); |
6f72b082 OK |
10517 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10518 | printf("***\n"); | |
10519 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10520 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10521 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10522 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10523 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10524 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10525 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10526 | } | |
10527 | } | |
10528 | return 1; | |
10529 | } | |
10530 | ||
698dcdb6 | 10531 | EOF |
d8356fa3 | 10532 | if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10533 | then |
6f72b082 OK |
10534 | : |
10535 | else | |
698dcdb6 VZ |
10536 | echo "configure: failed program was:" >&5 |
10537 | cat conftest.$ac_ext >&5 | |
10538 | rm -fr conftest* | |
10539 | no_gtk=yes | |
6f72b082 | 10540 | fi |
698dcdb6 | 10541 | rm -fr conftest* |
6f72b082 | 10542 | fi |
698dcdb6 | 10543 | |
6f72b082 OK |
10544 | CFLAGS="$ac_save_CFLAGS" |
10545 | LIBS="$ac_save_LIBS" | |
10546 | fi | |
10547 | fi | |
10548 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10549 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10550 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10551 | else |
698dcdb6 | 10552 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10553 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10554 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10555 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10556 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10557 | echo "*** full path to gtk-config-2.0." | |
10558 | else | |
10559 | if test -f conf.gtktest ; then | |
10560 | : | |
10561 | else | |
10562 | echo "*** Could not run GTK test program, checking why..." | |
10563 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10564 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10565 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 10566 | #line 10567 "configure" |
6f72b082 OK |
10567 | #include "confdefs.h" |
10568 | ||
10569 | #include <gtk/gtk.h> | |
10570 | #include <stdio.h> | |
10571 | ||
698dcdb6 VZ |
10572 | int main() { |
10573 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10574 | ; return 0; } | |
10575 | EOF | |
d8356fa3 | 10576 | if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10577 | rm -rf conftest* |
6f72b082 OK |
10578 | echo "*** The test program compiled, but did not run. This usually means" |
10579 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10580 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10581 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10582 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10583 | echo "*** is required on your system" | |
8168de4c | 10584 | echo "***" |
6f72b082 OK |
10585 | echo "*** If you have an old version installed, it is best to remove it, although" |
10586 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10587 | echo "***" | |
10588 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10589 | echo "*** came with the system with the command" | |
10590 | echo "***" | |
698dcdb6 | 10591 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10592 | else |
698dcdb6 VZ |
10593 | echo "configure: failed program was:" >&5 |
10594 | cat conftest.$ac_ext >&5 | |
10595 | rm -rf conftest* | |
10596 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10597 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10598 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10599 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10600 | fi |
698dcdb6 | 10601 | rm -f conftest* |
6f72b082 OK |
10602 | CFLAGS="$ac_save_CFLAGS" |
10603 | LIBS="$ac_save_LIBS" | |
10604 | fi | |
10605 | fi | |
10606 | GTK_CFLAGS="" | |
10607 | GTK_LIBS="" | |
3f345b47 | 10608 | : |
8168de4c VZ |
10609 | fi |
10610 | ||
10611 | ||
10612 | rm -f conf.gtktest | |
10613 | ||
10614 | fi | |
10615 | ||
10616 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10617 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10618 | if test "${with_gtk_prefix+set}" = set; then | |
10619 | withval="$with_gtk_prefix" | |
10620 | gtk_config_prefix="$withval" | |
10621 | else | |
10622 | gtk_config_prefix="" | |
10623 | fi | |
10624 | ||
10625 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10626 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10627 | withval="$with_gtk_exec_prefix" | |
10628 | gtk_config_exec_prefix="$withval" | |
10629 | else | |
10630 | gtk_config_exec_prefix="" | |
10631 | fi | |
10632 | ||
10633 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10634 | if test "${enable_gtktest+set}" = set; then | |
10635 | enableval="$enable_gtktest" | |
10636 | : | |
10637 | else | |
10638 | enable_gtktest=yes | |
10639 | fi | |
10640 | ||
10641 | ||
10642 | for module in . $GTK_MODULES | |
10643 | do | |
10644 | case "$module" in | |
10645 | gthread) | |
10646 | gtk_config_args="$gtk_config_args gthread" | |
10647 | ;; | |
10648 | esac | |
10649 | done | |
10650 | ||
10f2d63a VZ |
10651 | if test x$gtk_config_exec_prefix != x ; then |
10652 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10653 | if test x${GTK_CONFIG+set} != xset ; then | |
10654 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10655 | fi | |
10656 | fi | |
10657 | if test x$gtk_config_prefix != x ; then | |
10658 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10659 | if test x${GTK_CONFIG+set} != xset ; then | |
10660 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10661 | fi | |
10662 | fi | |
10663 | ||
10664 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10665 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10666 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 10667 | echo "configure:10668: checking for $ac_word" >&5 |
698dcdb6 VZ |
10668 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10670 | else |
698dcdb6 VZ |
10671 | case "$GTK_CONFIG" in |
10672 | /*) | |
f6bcfd97 BP |
10673 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10674 | ;; | |
698dcdb6 VZ |
10675 | ?:/*) |
10676 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10677 | ;; | |
f6bcfd97 | 10678 | *) |
698dcdb6 VZ |
10679 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10680 | ac_dummy="$PATH" | |
10681 | for ac_dir in $ac_dummy; do | |
10682 | test -z "$ac_dir" && ac_dir=. | |
10683 | if test -f $ac_dir/$ac_word; then | |
10684 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10685 | break | |
10686 | fi | |
10687 | done | |
10688 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10689 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10690 | ;; | |
10691 | esac | |
10692 | fi | |
698dcdb6 | 10693 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10694 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10695 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10696 | else |
698dcdb6 | 10697 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10698 | fi |
10699 | ||
10700 | min_gtk_version=1.2.7 | |
698dcdb6 | 10701 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d8356fa3 | 10702 | echo "configure:10703: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10703 | no_gtk="" |
3f345b47 VZ |
10704 | if test "$GTK_CONFIG" = "no" ; then |
10705 | no_gtk=yes | |
10706 | else | |
10707 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10708 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10709 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10710 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10711 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10712 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10713 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10714 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10715 | if test "x$enable_gtktest" = "xyes" ; then | |
10716 | ac_save_CFLAGS="$CFLAGS" | |
10717 | ac_save_LIBS="$LIBS" | |
10718 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10719 | LIBS="$GTK_LIBS $LIBS" | |
10720 | rm -f conf.gtktest | |
10721 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10722 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10723 | else | |
698dcdb6 | 10724 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 10725 | #line 10726 "configure" |
f6bcfd97 BP |
10726 | #include "confdefs.h" |
10727 | ||
10728 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10729 | #include <stdio.h> |
10730 | #include <stdlib.h> | |
10731 | ||
3f345b47 | 10732 | int |
f6bcfd97 BP |
10733 | main () |
10734 | { | |
10735 | int major, minor, micro; | |
3f345b47 | 10736 | char *tmp_version; |
f6bcfd97 | 10737 | |
3f345b47 | 10738 | system ("touch conf.gtktest"); |
f6bcfd97 | 10739 | |
3f345b47 VZ |
10740 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10741 | tmp_version = g_strdup("$min_gtk_version"); | |
10742 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10743 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10744 | exit(1); |
10745 | } | |
10746 | ||
3f345b47 VZ |
10747 | if ((gtk_major_version != $gtk_config_major_version) || |
10748 | (gtk_minor_version != $gtk_config_minor_version) || | |
10749 | (gtk_micro_version != $gtk_config_micro_version)) | |
10750 | { | |
10751 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10752 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10753 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10754 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10755 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10756 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10757 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10758 | printf("*** required on your system.\n"); | |
10759 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10760 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10761 | printf("*** before re-running configure\n"); | |
10762 | } | |
10763 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10764 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10765 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10766 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10767 | { | |
10768 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10769 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10770 | printf("*** library (version %d.%d.%d)\n", | |
10771 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10772 | } | |
10773 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10774 | else | |
10775 | { | |
10776 | if ((gtk_major_version > major) || | |
10777 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10778 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10779 | { | |
10780 | return 0; | |
10781 | } | |
10782 | else | |
10783 | { | |
10784 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10785 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10786 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10787 | major, minor, micro); | |
10788 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10789 | printf("***\n"); | |
10790 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10791 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10792 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10793 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10794 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10795 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10796 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10797 | } | |
10798 | } | |
10799 | return 1; | |
f6bcfd97 BP |
10800 | } |
10801 | ||
698dcdb6 | 10802 | EOF |
d8356fa3 | 10803 | if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10804 | then |
f6bcfd97 BP |
10805 | : |
10806 | else | |
698dcdb6 VZ |
10807 | echo "configure: failed program was:" >&5 |
10808 | cat conftest.$ac_ext >&5 | |
10809 | rm -fr conftest* | |
10810 | no_gtk=yes | |
f6bcfd97 | 10811 | fi |
698dcdb6 | 10812 | rm -fr conftest* |
f6bcfd97 | 10813 | fi |
698dcdb6 | 10814 | |
3f345b47 VZ |
10815 | CFLAGS="$ac_save_CFLAGS" |
10816 | LIBS="$ac_save_LIBS" | |
10817 | fi | |
f6bcfd97 BP |
10818 | fi |
10819 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10820 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10821 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10822 | else |
698dcdb6 | 10823 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10824 | if test "$GTK_CONFIG" = "no" ; then |
10825 | echo "*** The gtk-config script installed by GTK could not be found" | |
10826 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10827 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10828 | echo "*** full path to gtk-config." | |
10829 | else | |
10830 | if test -f conf.gtktest ; then | |
10831 | : | |
10832 | else | |
10833 | echo "*** Could not run GTK test program, checking why..." | |
10834 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10835 | LIBS="$LIBS $GTK_LIBS" | |
10836 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 10837 | #line 10838 "configure" |
3f345b47 VZ |
10838 | #include "confdefs.h" |
10839 | ||
10840 | #include <gtk/gtk.h> | |
10841 | #include <stdio.h> | |
10842 | ||
10843 | int main() { | |
10844 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10845 | ; return 0; } | |
10846 | EOF | |
d8356fa3 | 10847 | if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10848 | rm -rf conftest* |
10849 | echo "*** The test program compiled, but did not run. This usually means" | |
10850 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10851 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10852 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10853 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10854 | echo "*** is required on your system" | |
10855 | echo "***" | |
10856 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10857 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10858 | echo "***" | |
10859 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10860 | echo "*** came with the system with the command" | |
10861 | echo "***" | |
10862 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10863 | else | |
10864 | echo "configure: failed program was:" >&5 | |
10865 | cat conftest.$ac_ext >&5 | |
10866 | rm -rf conftest* | |
10867 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10868 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10869 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10870 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10871 | fi | |
10872 | rm -f conftest* | |
10873 | CFLAGS="$ac_save_CFLAGS" | |
10874 | LIBS="$ac_save_LIBS" | |
10875 | fi | |
10876 | fi | |
f6bcfd97 BP |
10877 | GTK_CFLAGS="" |
10878 | GTK_LIBS="" | |
10879 | : | |
10880 | fi | |
698dcdb6 VZ |
10881 | |
10882 | ||
3f345b47 | 10883 | rm -f conf.gtktest |
f6bcfd97 | 10884 | |
8168de4c VZ |
10885 | fi |
10886 | ||
10887 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10888 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10889 | if test "${with_gtk_prefix+set}" = set; then | |
10890 | withval="$with_gtk_prefix" | |
10891 | gtk_config_prefix="$withval" | |
10892 | else | |
10893 | gtk_config_prefix="" | |
10894 | fi | |
10895 | ||
10896 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10897 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10898 | withval="$with_gtk_exec_prefix" | |
10899 | gtk_config_exec_prefix="$withval" | |
10900 | else | |
10901 | gtk_config_exec_prefix="" | |
10902 | fi | |
10903 | ||
10904 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10905 | if test "${enable_gtktest+set}" = set; then | |
10906 | enableval="$enable_gtktest" | |
10907 | : | |
10908 | else | |
10909 | enable_gtktest=yes | |
10910 | fi | |
10911 | ||
10912 | ||
10913 | for module in . $GTK_MODULES | |
10914 | do | |
10915 | case "$module" in | |
10916 | gthread) | |
10917 | gtk_config_args="$gtk_config_args gthread" | |
10918 | ;; | |
10919 | esac | |
10920 | done | |
10921 | ||
f6bcfd97 BP |
10922 | if test x$gtk_config_exec_prefix != x ; then |
10923 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10924 | if test x${GTK_CONFIG+set} != xset ; then | |
10925 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10926 | fi | |
10927 | fi | |
10928 | if test x$gtk_config_prefix != x ; then | |
10929 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10930 | if test x${GTK_CONFIG+set} != xset ; then | |
10931 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10932 | fi | |
10933 | fi | |
10934 | ||
10935 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10936 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10937 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d8356fa3 | 10938 | echo "configure:10939: checking for $ac_word" >&5 |
698dcdb6 VZ |
10939 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10941 | else |
698dcdb6 VZ |
10942 | case "$GTK_CONFIG" in |
10943 | /*) | |
10f2d63a VZ |
10944 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10945 | ;; | |
698dcdb6 VZ |
10946 | ?:/*) |
10947 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10948 | ;; | |
10f2d63a | 10949 | *) |
698dcdb6 VZ |
10950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10951 | ac_dummy="$PATH" | |
10952 | for ac_dir in $ac_dummy; do | |
10953 | test -z "$ac_dir" && ac_dir=. | |
10954 | if test -f $ac_dir/$ac_word; then | |
10955 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10956 | break | |
10957 | fi | |
10958 | done | |
10959 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10960 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10961 | ;; | |
10962 | esac | |
10963 | fi | |
698dcdb6 | 10964 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10965 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10966 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10967 | else |
698dcdb6 | 10968 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10969 | fi |
10970 | ||
04165bec | 10971 | min_gtk_version=1.2.3 |
698dcdb6 | 10972 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d8356fa3 | 10973 | echo "configure:10974: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10974 | no_gtk="" |
3f345b47 VZ |
10975 | if test "$GTK_CONFIG" = "no" ; then |
10976 | no_gtk=yes | |
10977 | else | |
10978 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10979 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10980 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10981 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10982 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10983 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10984 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10985 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10986 | if test "x$enable_gtktest" = "xyes" ; then | |
10987 | ac_save_CFLAGS="$CFLAGS" | |
10988 | ac_save_LIBS="$LIBS" | |
10989 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10990 | LIBS="$GTK_LIBS $LIBS" | |
10991 | rm -f conf.gtktest | |
10992 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10993 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10994 | else | |
698dcdb6 | 10995 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 10996 | #line 10997 "configure" |
10f2d63a VZ |
10997 | #include "confdefs.h" |
10998 | ||
10999 | #include <gtk/gtk.h> | |
11000 | #include <stdio.h> | |
32832908 | 11001 | #include <stdlib.h> |
10f2d63a | 11002 | |
3f345b47 | 11003 | int |
10f2d63a VZ |
11004 | main () |
11005 | { | |
11006 | int major, minor, micro; | |
3f345b47 | 11007 | char *tmp_version; |
10f2d63a | 11008 | |
3f345b47 | 11009 | system ("touch conf.gtktest"); |
10f2d63a | 11010 | |
3f345b47 VZ |
11011 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11012 | tmp_version = g_strdup("$min_gtk_version"); | |
11013 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11014 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
11015 | exit(1); |
11016 | } | |
11017 | ||
3f345b47 VZ |
11018 | if ((gtk_major_version != $gtk_config_major_version) || |
11019 | (gtk_minor_version != $gtk_config_minor_version) || | |
11020 | (gtk_micro_version != $gtk_config_micro_version)) | |
11021 | { | |
11022 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11023 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11024 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11025 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11026 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11027 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11028 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11029 | printf("*** required on your system.\n"); | |
11030 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11031 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11032 | printf("*** before re-running configure\n"); | |
11033 | } | |
11034 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11035 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11036 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11037 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11038 | { | |
11039 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11040 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11041 | printf("*** library (version %d.%d.%d)\n", | |
11042 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11043 | } | |
11044 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11045 | else | |
11046 | { | |
11047 | if ((gtk_major_version > major) || | |
11048 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11049 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11050 | { | |
11051 | return 0; | |
11052 | } | |
11053 | else | |
11054 | { | |
11055 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11056 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11057 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11058 | major, minor, micro); | |
11059 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11060 | printf("***\n"); | |
11061 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11062 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11063 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11064 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11065 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11066 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11067 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11068 | } | |
11069 | } | |
11070 | return 1; | |
10f2d63a VZ |
11071 | } |
11072 | ||
698dcdb6 | 11073 | EOF |
d8356fa3 | 11074 | if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11075 | then |
10f2d63a VZ |
11076 | : |
11077 | else | |
698dcdb6 VZ |
11078 | echo "configure: failed program was:" >&5 |
11079 | cat conftest.$ac_ext >&5 | |
11080 | rm -fr conftest* | |
11081 | no_gtk=yes | |
10f2d63a | 11082 | fi |
698dcdb6 | 11083 | rm -fr conftest* |
10f2d63a | 11084 | fi |
698dcdb6 | 11085 | |
3f345b47 VZ |
11086 | CFLAGS="$ac_save_CFLAGS" |
11087 | LIBS="$ac_save_LIBS" | |
11088 | fi | |
10f2d63a VZ |
11089 | fi |
11090 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11091 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11092 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11093 | else |
698dcdb6 | 11094 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11095 | if test "$GTK_CONFIG" = "no" ; then |
11096 | echo "*** The gtk-config script installed by GTK could not be found" | |
11097 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11098 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11099 | echo "*** full path to gtk-config." | |
11100 | else | |
11101 | if test -f conf.gtktest ; then | |
11102 | : | |
11103 | else | |
11104 | echo "*** Could not run GTK test program, checking why..." | |
11105 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11106 | LIBS="$LIBS $GTK_LIBS" | |
11107 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 11108 | #line 11109 "configure" |
3f345b47 VZ |
11109 | #include "confdefs.h" |
11110 | ||
11111 | #include <gtk/gtk.h> | |
11112 | #include <stdio.h> | |
11113 | ||
11114 | int main() { | |
11115 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11116 | ; return 0; } | |
11117 | EOF | |
d8356fa3 | 11118 | if { (eval echo configure:11119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11119 | rm -rf conftest* |
11120 | echo "*** The test program compiled, but did not run. This usually means" | |
11121 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11122 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11123 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11124 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11125 | echo "*** is required on your system" | |
11126 | echo "***" | |
11127 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11128 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11129 | echo "***" | |
11130 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11131 | echo "*** came with the system with the command" | |
11132 | echo "***" | |
11133 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11134 | else | |
11135 | echo "configure: failed program was:" >&5 | |
11136 | cat conftest.$ac_ext >&5 | |
11137 | rm -rf conftest* | |
11138 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11139 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11140 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11141 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11142 | fi | |
11143 | rm -f conftest* | |
11144 | CFLAGS="$ac_save_CFLAGS" | |
11145 | LIBS="$ac_save_LIBS" | |
11146 | fi | |
11147 | fi | |
10f2d63a VZ |
11148 | GTK_CFLAGS="" |
11149 | GTK_LIBS="" | |
7e99ad86 | 11150 | : |
10f2d63a | 11151 | fi |
698dcdb6 VZ |
11152 | |
11153 | ||
3f345b47 | 11154 | rm -f conf.gtktest |
10f2d63a | 11155 | |
8168de4c VZ |
11156 | fi |
11157 | ||
11158 | if test -z "$wx_cv_lib_gtk"; then | |
11159 | wx_cv_lib_gtk=none | |
138be253 VZ |
11160 | else |
11161 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11162 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11163 | fi |
11164 | ||
1e6feb95 | 11165 | |
8168de4c | 11166 | fi |
703e0a69 | 11167 | |
698dcdb6 | 11168 | |
8168de4c VZ |
11169 | if test "$gtk_version_cached" = 1; then |
11170 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11171 | fi |
698dcdb6 | 11172 | |
8168de4c VZ |
11173 | case "$wx_cv_lib_gtk" in |
11174 | 2.0) WXGTK20=1 | |
11175 | ;; | |
11176 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11177 | WXGTK12=1 |
8168de4c VZ |
11178 | ;; |
11179 | 1.2.3) WXGTK12=1 | |
11180 | ;; | |
11181 | *) { echo "configure: error: | |
11182 | Please check that gtk-config is in path, the directory | |
11183 | where GTK+ libraries are installed (returned by | |
11184 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11185 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11186 | " 1>&2; exit 1; } | |
11187 | ;; | |
11188 | esac | |
2224580a | 11189 | |
138be253 | 11190 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11191 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11192 | |
1e6feb95 VZ |
11193 | AFMINSTALL=afminstall |
11194 | TOOLKIT=GTK | |
11195 | GUIDIST=GTK_DIST | |
7ec2881a | 11196 | |
1e6feb95 | 11197 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d8356fa3 | 11198 | echo "configure:11199: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11199 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11200 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11202 | else |
698dcdb6 | 11203 | ac_save_LIBS="$LIBS" |
7ec2881a | 11204 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11205 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11206 | #line 11207 "configure" |
7ec2881a RR |
11207 | #include "confdefs.h" |
11208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11209 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11210 | builtin and then its argument prototype would still apply. */ |
11211 | char gdk_im_open(); | |
11212 | ||
11213 | int main() { | |
11214 | gdk_im_open() | |
11215 | ; return 0; } | |
11216 | EOF | |
d8356fa3 | 11217 | if { (eval echo configure:11218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11218 | rm -rf conftest* |
11219 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11220 | else | |
11221 | echo "configure: failed program was:" >&5 | |
11222 | cat conftest.$ac_ext >&5 | |
11223 | rm -rf conftest* | |
11224 | eval "ac_cv_lib_$ac_lib_var=no" | |
11225 | fi | |
11226 | rm -f conftest* | |
11227 | LIBS="$ac_save_LIBS" | |
11228 | ||
11229 | fi | |
11230 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11231 | echo "$ac_t""yes" 1>&6 | |
11232 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11233 | #define HAVE_XIM 1 |
11234 | EOF | |
11235 | ||
698dcdb6 VZ |
11236 | else |
11237 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11238 | fi |
11239 | ||
1e6feb95 | 11240 | fi |
10f2d63a | 11241 | |
1e6feb95 | 11242 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11243 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
d8356fa3 | 11244 | echo "configure:11245: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11245 | if test "x$MGL_ROOT" = x ; then |
11246 | echo "$ac_t""not found" 1>&6 | |
11247 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11248 | else | |
11249 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11250 | fi | |
11251 | ||
f9bc1684 VS |
11252 | case "${host}" in |
11253 | *-*-linux* ) | |
11254 | mgl_os=linux/gcc/glibc | |
11255 | ;; | |
11256 | *-pc-msdosdjgpp ) | |
11257 | mgl_os=dos32/dj2 | |
11258 | ;; | |
11259 | *) | |
11260 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11261 | esac | |
11262 | ||
3a922bb4 | 11263 | mgl_lib_type="" |
1e6feb95 VZ |
11264 | |
11265 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11266 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11267 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11268 | mgl_lib_type=debug |
1e6feb95 VZ |
11269 | fi |
11270 | fi | |
3a922bb4 | 11271 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11272 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11273 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11274 | mgl_lib_type=release |
1e6feb95 VZ |
11275 | else |
11276 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11277 | fi | |
11278 | fi | |
11279 | ||
11280 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11281 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11282 | |
11283 | AFMINSTALL=afminstall | |
11284 | TOOLKIT=MGL | |
11285 | GUIDIST=MGL_DIST | |
11286 | fi | |
11287 | ||
1725144d RR |
11288 | if test "$wxUSE_MICROWIN" = 1; then |
11289 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
d8356fa3 | 11290 | echo "configure:11291: checking for MicroWindows" >&5 |
1725144d RR |
11291 | if test "x$MICROWINDOWS" = x ; then |
11292 | echo "$ac_t""not found" 1>&6 | |
11293 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11294 | else | |
11295 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11296 | fi | |
11297 | ||
11298 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11299 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11300 | else | |
11301 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11302 | fi | |
11303 | ||
11304 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11305 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11306 | ||
11307 | AFMINSTALL=afminstall | |
11308 | TOOLKIT=MICROWIN | |
11309 | GUIDIST=MICROWIN_DIST | |
11310 | ||
11311 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11312 | fi | |
11313 | ||
f79bd02d | 11314 | if test "$wxUSE_X11" = 1; then |
d714471b | 11315 | # If we find X, set shell vars x_includes and x_libraries to the |
698dcdb6 VZ |
11316 | # paths, otherwise set no_x=yes. |
11317 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11318 | # --without-x overrides everything else, but does not touch the cache. | |
11319 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d8356fa3 | 11320 | echo "configure:11321: checking for X" >&5 |
ab9b9eab VZ |
11321 | |
11322 | # Check whether --with-x or --without-x was given. | |
11323 | if test "${with_x+set}" = set; then | |
11324 | withval="$with_x" | |
698dcdb6 VZ |
11325 | : |
11326 | fi | |
ba337fe7 | 11327 | |
ab9b9eab VZ |
11328 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11329 | if test "x$with_x" = xno; then | |
11330 | # The user explicitly disabled X. | |
11331 | have_x=disabled | |
11332 | else | |
11333 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11334 | # Both variables are already set. | |
11335 | have_x=yes | |
11336 | else | |
698dcdb6 VZ |
11337 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11339 | else |
11340 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11341 | ac_x_includes=NO ac_x_libraries=NO |
11342 | rm -fr conftestdir | |
11343 | if mkdir conftestdir; then | |
11344 | cd conftestdir | |
ab9b9eab | 11345 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11346 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11347 | acfindx: |
11348 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11349 | EOF | |
11350 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11351 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11352 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11353 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11354 | for ac_extension in a so sl; do |
ab9b9eab | 11355 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11356 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11357 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11358 | fi |
11359 | done | |
ab9b9eab VZ |
11360 | # Screen out bogus values from the imake configuration. They are |
11361 | # bogus both because they are the default anyway, and because | |
11362 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11363 | case "$ac_im_incroot" in |
ab9b9eab | 11364 | /usr/include) ;; |
698dcdb6 | 11365 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11366 | esac |
698dcdb6 | 11367 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11368 | /usr/lib | /lib) ;; |
698dcdb6 | 11369 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11370 | esac |
ba337fe7 | 11371 | fi |
ab9b9eab | 11372 | cd .. |
698dcdb6 | 11373 | rm -fr conftestdir |
ab9b9eab | 11374 | fi |
10f2d63a | 11375 | |
698dcdb6 VZ |
11376 | if test "$ac_x_includes" = NO; then |
11377 | # Guess where to find include files, by looking for this one X11 .h file. | |
11378 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11379 | ||
ab9b9eab | 11380 | # First, try using that file with no special directory specified. |
698dcdb6 | 11381 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11382 | #line 11383 "configure" |
ab9b9eab | 11383 | #include "confdefs.h" |
698dcdb6 VZ |
11384 | #include <$x_direct_test_include> |
11385 | EOF | |
11386 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d8356fa3 | 11387 | { (eval echo configure:11388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11388 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11389 | if test -z "$ac_err"; then | |
11390 | rm -rf conftest* | |
ab9b9eab VZ |
11391 | # We can compile using X headers with no special include directory. |
11392 | ac_x_includes= | |
11393 | else | |
698dcdb6 VZ |
11394 | echo "$ac_err" >&5 |
11395 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11396 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11397 | rm -rf conftest* |
11398 | # Look for the header file in a standard set of common directories. | |
11399 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11400 | for ac_dir in \ | |
11401 | /usr/X11/include \ | |
11402 | /usr/X11R6/include \ | |
11403 | /usr/X11R5/include \ | |
11404 | /usr/X11R4/include \ | |
11405 | \ | |
11406 | /usr/include/X11 \ | |
11407 | /usr/include/X11R6 \ | |
11408 | /usr/include/X11R5 \ | |
11409 | /usr/include/X11R4 \ | |
11410 | \ | |
11411 | /usr/local/X11/include \ | |
11412 | /usr/local/X11R6/include \ | |
11413 | /usr/local/X11R5/include \ | |
11414 | /usr/local/X11R4/include \ | |
11415 | \ | |
11416 | /usr/local/include/X11 \ | |
11417 | /usr/local/include/X11R6 \ | |
11418 | /usr/local/include/X11R5 \ | |
11419 | /usr/local/include/X11R4 \ | |
11420 | \ | |
11421 | /usr/X386/include \ | |
11422 | /usr/x386/include \ | |
11423 | /usr/XFree86/include/X11 \ | |
11424 | \ | |
11425 | /usr/include \ | |
11426 | /usr/local/include \ | |
11427 | /usr/unsupported/include \ | |
11428 | /usr/athena/include \ | |
11429 | /usr/local/x11r5/include \ | |
11430 | /usr/lpp/Xamples/include \ | |
11431 | \ | |
11432 | /usr/openwin/include \ | |
11433 | /usr/openwin/share/include \ | |
11434 | ; \ | |
11435 | do | |
11436 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11437 | ac_x_includes=$ac_dir | |
11438 | break | |
11439 | fi | |
11440 | done | |
ab9b9eab | 11441 | fi |
698dcdb6 VZ |
11442 | rm -f conftest* |
11443 | fi # $ac_x_includes = NO | |
10f2d63a | 11444 | |
698dcdb6 | 11445 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11446 | # Check for the libraries. |
698dcdb6 VZ |
11447 | |
11448 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11449 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11450 | ||
ab9b9eab VZ |
11451 | # See if we find them without any special options. |
11452 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11453 | ac_save_LIBS="$LIBS" |
11454 | LIBS="-l$x_direct_test_library $LIBS" | |
11455 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 11456 | #line 11457 "configure" |
ab9b9eab | 11457 | #include "confdefs.h" |
698dcdb6 VZ |
11458 | |
11459 | int main() { | |
11460 | ${x_direct_test_function}() | |
11461 | ; return 0; } | |
11462 | EOF | |
d8356fa3 | 11463 | if { (eval echo configure:11464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11464 | rm -rf conftest* |
11465 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11466 | # We can link X programs with no special library path. |
11467 | ac_x_libraries= | |
11468 | else | |
698dcdb6 VZ |
11469 | echo "configure: failed program was:" >&5 |
11470 | cat conftest.$ac_ext >&5 | |
11471 | rm -rf conftest* | |
11472 | LIBS="$ac_save_LIBS" | |
11473 | # First see if replacing the include by lib works. | |
11474 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11475 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11476 | /usr/X11/lib \ | |
11477 | /usr/X11R6/lib \ | |
11478 | /usr/X11R5/lib \ | |
11479 | /usr/X11R4/lib \ | |
11480 | \ | |
11481 | /usr/lib/X11 \ | |
11482 | /usr/lib/X11R6 \ | |
11483 | /usr/lib/X11R5 \ | |
11484 | /usr/lib/X11R4 \ | |
11485 | \ | |
11486 | /usr/local/X11/lib \ | |
11487 | /usr/local/X11R6/lib \ | |
11488 | /usr/local/X11R5/lib \ | |
11489 | /usr/local/X11R4/lib \ | |
11490 | \ | |
11491 | /usr/local/lib/X11 \ | |
11492 | /usr/local/lib/X11R6 \ | |
11493 | /usr/local/lib/X11R5 \ | |
11494 | /usr/local/lib/X11R4 \ | |
11495 | \ | |
11496 | /usr/X386/lib \ | |
11497 | /usr/x386/lib \ | |
11498 | /usr/XFree86/lib/X11 \ | |
11499 | \ | |
11500 | /usr/lib \ | |
11501 | /usr/local/lib \ | |
11502 | /usr/unsupported/lib \ | |
11503 | /usr/athena/lib \ | |
11504 | /usr/local/x11r5/lib \ | |
11505 | /usr/lpp/Xamples/lib \ | |
11506 | /lib/usr/lib/X11 \ | |
11507 | \ | |
11508 | /usr/openwin/lib \ | |
11509 | /usr/openwin/share/lib \ | |
11510 | ; \ | |
ab9b9eab VZ |
11511 | do |
11512 | for ac_extension in a so sl; do | |
698dcdb6 | 11513 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11514 | ac_x_libraries=$ac_dir |
11515 | break 2 | |
10f2d63a | 11516 | fi |
10f2d63a | 11517 | done |
ab9b9eab VZ |
11518 | done |
11519 | fi | |
698dcdb6 VZ |
11520 | rm -f conftest* |
11521 | fi # $ac_x_libraries = NO | |
10f2d63a | 11522 | |
698dcdb6 | 11523 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11524 | # Didn't find X anywhere. Cache the known absence of X. |
11525 | ac_cv_have_x="have_x=no" | |
11526 | else | |
11527 | # Record where we found X for the cache. | |
11528 | ac_cv_have_x="have_x=yes \ | |
11529 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11530 | fi | |
11531 | fi | |
10f2d63a | 11532 | fi |
ab9b9eab VZ |
11533 | eval "$ac_cv_have_x" |
11534 | fi # $with_x != no | |
10f2d63a | 11535 | |
ab9b9eab | 11536 | if test "$have_x" != yes; then |
698dcdb6 | 11537 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11538 | no_x=yes |
11539 | else | |
11540 | # If each of the values was on the command line, it overrides each guess. | |
11541 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11542 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11543 | # Update the cache value to reflect the command line values. | |
11544 | ac_cv_have_x="have_x=yes \ | |
11545 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11546 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11547 | fi |
10f2d63a | 11548 | |
ab9b9eab VZ |
11549 | if test "$no_x" = yes; then |
11550 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11551 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11552 | #define X_DISPLAY_MISSING 1 |
11553 | EOF | |
10f2d63a | 11554 | |
ab9b9eab VZ |
11555 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11556 | else | |
11557 | if test -n "$x_includes"; then | |
11558 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11559 | fi |
11560 | ||
ab9b9eab VZ |
11561 | # It would also be nice to do this for all -L options, not just this one. |
11562 | if test -n "$x_libraries"; then | |
11563 | X_LIBS="$X_LIBS -L$x_libraries" | |
11564 | # For Solaris; some versions of Sun CC require a space after -R and | |
11565 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11566 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11567 | "SunOS 5"*) |
698dcdb6 | 11568 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d8356fa3 | 11569 | echo "configure:11570: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11570 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11571 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 11572 | #line 11573 "configure" |
ab9b9eab | 11573 | #include "confdefs.h" |
10f2d63a | 11574 | |
698dcdb6 | 11575 | int main() { |
788deba1 | 11576 | |
698dcdb6 VZ |
11577 | ; return 0; } |
11578 | EOF | |
d8356fa3 | 11579 | if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11580 | rm -rf conftest* |
ab9b9eab VZ |
11581 | ac_R_nospace=yes |
11582 | else | |
698dcdb6 VZ |
11583 | echo "configure: failed program was:" >&5 |
11584 | cat conftest.$ac_ext >&5 | |
11585 | rm -rf conftest* | |
11586 | ac_R_nospace=no | |
ab9b9eab | 11587 | fi |
698dcdb6 | 11588 | rm -f conftest* |
ab9b9eab | 11589 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11590 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11591 | X_LIBS="$X_LIBS -R$x_libraries" |
11592 | else | |
11593 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11594 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11595 | #line 11596 "configure" |
ab9b9eab | 11596 | #include "confdefs.h" |
788deba1 | 11597 | |
698dcdb6 | 11598 | int main() { |
ab9b9eab | 11599 | |
698dcdb6 VZ |
11600 | ; return 0; } |
11601 | EOF | |
d8356fa3 | 11602 | if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11603 | rm -rf conftest* |
ab9b9eab VZ |
11604 | ac_R_space=yes |
11605 | else | |
698dcdb6 VZ |
11606 | echo "configure: failed program was:" >&5 |
11607 | cat conftest.$ac_ext >&5 | |
11608 | rm -rf conftest* | |
11609 | ac_R_space=no | |
ab9b9eab | 11610 | fi |
698dcdb6 | 11611 | rm -f conftest* |
ab9b9eab | 11612 | if test $ac_R_space = yes; then |
698dcdb6 | 11613 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11614 | X_LIBS="$X_LIBS -R $x_libraries" |
11615 | else | |
698dcdb6 | 11616 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11617 | fi |
11618 | fi | |
698dcdb6 | 11619 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11620 | esac |
11621 | fi | |
11622 | ||
11623 | # Check for system-dependent libraries X programs must link with. | |
11624 | # Do this before checking for the system-independent R6 libraries | |
11625 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11626 | ||
11627 | if test "$ISC" = yes; then | |
11628 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11629 | else | |
698dcdb6 VZ |
11630 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11631 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11632 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11633 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d8356fa3 | 11634 | echo "configure:11635: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11635 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11636 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11638 | else |
698dcdb6 | 11639 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11640 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11641 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11642 | #line 11643 "configure" |
ab9b9eab VZ |
11643 | #include "confdefs.h" |
11644 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11645 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11646 | builtin and then its argument prototype would still apply. */ |
11647 | char dnet_ntoa(); | |
11648 | ||
11649 | int main() { | |
11650 | dnet_ntoa() | |
11651 | ; return 0; } | |
11652 | EOF | |
d8356fa3 | 11653 | if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11654 | rm -rf conftest* |
11655 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11656 | else | |
11657 | echo "configure: failed program was:" >&5 | |
11658 | cat conftest.$ac_ext >&5 | |
11659 | rm -rf conftest* | |
11660 | eval "ac_cv_lib_$ac_lib_var=no" | |
11661 | fi | |
11662 | rm -f conftest* | |
11663 | LIBS="$ac_save_LIBS" | |
11664 | ||
11665 | fi | |
11666 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11667 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11668 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11669 | else |
11670 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11671 | fi |
11672 | ||
11673 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11674 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d8356fa3 | 11675 | echo "configure:11676: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11676 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11677 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11679 | else |
698dcdb6 | 11680 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11681 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11682 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11683 | #line 11684 "configure" |
ab9b9eab VZ |
11684 | #include "confdefs.h" |
11685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11686 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11687 | builtin and then its argument prototype would still apply. */ |
11688 | char dnet_ntoa(); | |
11689 | ||
11690 | int main() { | |
11691 | dnet_ntoa() | |
11692 | ; return 0; } | |
11693 | EOF | |
d8356fa3 | 11694 | if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11695 | rm -rf conftest* |
11696 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11697 | else | |
11698 | echo "configure: failed program was:" >&5 | |
11699 | cat conftest.$ac_ext >&5 | |
11700 | rm -rf conftest* | |
11701 | eval "ac_cv_lib_$ac_lib_var=no" | |
11702 | fi | |
11703 | rm -f conftest* | |
11704 | LIBS="$ac_save_LIBS" | |
11705 | ||
11706 | fi | |
11707 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11708 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11709 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11710 | else |
11711 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11712 | fi |
11713 | ||
11714 | fi | |
11715 | ||
11716 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11717 | # to get the SysV transport functions. | |
698dcdb6 | 11718 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11719 | # needs -lnsl. |
11720 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11721 | # on Irix 5.2, according to dickey@clark.net. |
11722 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d8356fa3 | 11723 | echo "configure:11724: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11724 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11726 | else | |
11727 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 11728 | #line 11729 "configure" |
ab9b9eab VZ |
11729 | #include "confdefs.h" |
11730 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11731 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11732 | #include <assert.h> |
11733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11734 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11735 | builtin and then its argument prototype would still apply. */ |
11736 | char gethostbyname(); | |
11737 | ||
11738 | int main() { | |
ab9b9eab VZ |
11739 | |
11740 | /* The GNU C library defines this for functions which it implements | |
11741 | to always fail with ENOSYS. Some functions are actually named | |
11742 | something starting with __ and the normal name is an alias. */ | |
11743 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11744 | choke me | |
11745 | #else | |
698dcdb6 | 11746 | gethostbyname(); |
ab9b9eab VZ |
11747 | #endif |
11748 | ||
698dcdb6 VZ |
11749 | ; return 0; } |
11750 | EOF | |
d8356fa3 | 11751 | if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11752 | rm -rf conftest* |
11753 | eval "ac_cv_func_gethostbyname=yes" | |
11754 | else | |
11755 | echo "configure: failed program was:" >&5 | |
11756 | cat conftest.$ac_ext >&5 | |
11757 | rm -rf conftest* | |
11758 | eval "ac_cv_func_gethostbyname=no" | |
11759 | fi | |
11760 | rm -f conftest* | |
11761 | fi | |
11762 | ||
11763 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11764 | echo "$ac_t""yes" 1>&6 | |
11765 | : | |
11766 | else | |
11767 | echo "$ac_t""no" 1>&6 | |
11768 | fi | |
ab9b9eab VZ |
11769 | |
11770 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11771 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d8356fa3 | 11772 | echo "configure:11773: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11773 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11776 | else |
698dcdb6 | 11777 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11778 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11779 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11780 | #line 11781 "configure" |
ab9b9eab VZ |
11781 | #include "confdefs.h" |
11782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11783 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11784 | builtin and then its argument prototype would still apply. */ |
11785 | char gethostbyname(); | |
6232543b | 11786 | |
698dcdb6 VZ |
11787 | int main() { |
11788 | gethostbyname() | |
11789 | ; return 0; } | |
11790 | EOF | |
d8356fa3 | 11791 | if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11792 | rm -rf conftest* |
11793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11794 | else |
698dcdb6 VZ |
11795 | echo "configure: failed program was:" >&5 |
11796 | cat conftest.$ac_ext >&5 | |
11797 | rm -rf conftest* | |
11798 | eval "ac_cv_lib_$ac_lib_var=no" | |
11799 | fi | |
11800 | rm -f conftest* | |
11801 | LIBS="$ac_save_LIBS" | |
1e487827 | 11802 | |
698dcdb6 VZ |
11803 | fi |
11804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11805 | echo "$ac_t""yes" 1>&6 | |
11806 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11807 | else | |
11808 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11809 | fi |
11810 | ||
11811 | fi | |
11812 | ||
11813 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11814 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11815 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11816 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11817 | # gethostby* variants that don't use the nameserver (or something). | |
11818 | # -lsocket must be given before -lnsl if both are needed. | |
11819 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11820 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d8356fa3 | 11821 | echo "configure:11822: checking for connect" >&5 |
698dcdb6 VZ |
11822 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11824 | else | |
11825 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 11826 | #line 11827 "configure" |
ab9b9eab VZ |
11827 | #include "confdefs.h" |
11828 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11829 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11830 | #include <assert.h> |
11831 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11832 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11833 | builtin and then its argument prototype would still apply. */ |
11834 | char connect(); | |
11835 | ||
11836 | int main() { | |
ab9b9eab VZ |
11837 | |
11838 | /* The GNU C library defines this for functions which it implements | |
11839 | to always fail with ENOSYS. Some functions are actually named | |
11840 | something starting with __ and the normal name is an alias. */ | |
11841 | #if defined (__stub_connect) || defined (__stub___connect) | |
11842 | choke me | |
11843 | #else | |
698dcdb6 | 11844 | connect(); |
ab9b9eab VZ |
11845 | #endif |
11846 | ||
698dcdb6 VZ |
11847 | ; return 0; } |
11848 | EOF | |
d8356fa3 | 11849 | if { (eval echo configure:11850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11850 | rm -rf conftest* |
11851 | eval "ac_cv_func_connect=yes" | |
11852 | else | |
11853 | echo "configure: failed program was:" >&5 | |
11854 | cat conftest.$ac_ext >&5 | |
11855 | rm -rf conftest* | |
11856 | eval "ac_cv_func_connect=no" | |
11857 | fi | |
11858 | rm -f conftest* | |
11859 | fi | |
11860 | ||
11861 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11862 | echo "$ac_t""yes" 1>&6 | |
11863 | : | |
11864 | else | |
11865 | echo "$ac_t""no" 1>&6 | |
11866 | fi | |
ab9b9eab VZ |
11867 | |
11868 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11869 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d8356fa3 | 11870 | echo "configure:11871: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11871 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11872 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11874 | else |
698dcdb6 | 11875 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11876 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11877 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11878 | #line 11879 "configure" |
ab9b9eab VZ |
11879 | #include "confdefs.h" |
11880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11881 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11882 | builtin and then its argument prototype would still apply. */ |
11883 | char connect(); | |
11884 | ||
11885 | int main() { | |
11886 | connect() | |
11887 | ; return 0; } | |
11888 | EOF | |
d8356fa3 | 11889 | if { (eval echo configure:11890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11890 | rm -rf conftest* |
11891 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11892 | else | |
11893 | echo "configure: failed program was:" >&5 | |
11894 | cat conftest.$ac_ext >&5 | |
11895 | rm -rf conftest* | |
11896 | eval "ac_cv_lib_$ac_lib_var=no" | |
11897 | fi | |
11898 | rm -f conftest* | |
11899 | LIBS="$ac_save_LIBS" | |
11900 | ||
11901 | fi | |
11902 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11903 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11904 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11905 | else |
11906 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11907 | fi |
11908 | ||
11909 | fi | |
11910 | ||
698dcdb6 VZ |
11911 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11912 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d8356fa3 | 11913 | echo "configure:11914: checking for remove" >&5 |
698dcdb6 VZ |
11914 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11916 | else |
698dcdb6 | 11917 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11918 | #line 11919 "configure" |
ab9b9eab VZ |
11919 | #include "confdefs.h" |
11920 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11921 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11922 | #include <assert.h> |
11923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11924 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11925 | builtin and then its argument prototype would still apply. */ |
11926 | char remove(); | |
11927 | ||
11928 | int main() { | |
ab9b9eab VZ |
11929 | |
11930 | /* The GNU C library defines this for functions which it implements | |
11931 | to always fail with ENOSYS. Some functions are actually named | |
11932 | something starting with __ and the normal name is an alias. */ | |
11933 | #if defined (__stub_remove) || defined (__stub___remove) | |
11934 | choke me | |
11935 | #else | |
698dcdb6 | 11936 | remove(); |
ab9b9eab VZ |
11937 | #endif |
11938 | ||
698dcdb6 VZ |
11939 | ; return 0; } |
11940 | EOF | |
d8356fa3 | 11941 | if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11942 | rm -rf conftest* |
11943 | eval "ac_cv_func_remove=yes" | |
11944 | else | |
11945 | echo "configure: failed program was:" >&5 | |
11946 | cat conftest.$ac_ext >&5 | |
11947 | rm -rf conftest* | |
11948 | eval "ac_cv_func_remove=no" | |
11949 | fi | |
11950 | rm -f conftest* | |
11951 | fi | |
11952 | ||
11953 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11954 | echo "$ac_t""yes" 1>&6 | |
11955 | : | |
11956 | else | |
11957 | echo "$ac_t""no" 1>&6 | |
11958 | fi | |
ab9b9eab VZ |
11959 | |
11960 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11961 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d8356fa3 | 11962 | echo "configure:11963: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11963 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11964 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11966 | else |
698dcdb6 | 11967 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11968 | LIBS="-lposix $LIBS" |
698dcdb6 | 11969 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 11970 | #line 11971 "configure" |
ab9b9eab VZ |
11971 | #include "confdefs.h" |
11972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11973 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11974 | builtin and then its argument prototype would still apply. */ |
11975 | char remove(); | |
11976 | ||
11977 | int main() { | |
11978 | remove() | |
11979 | ; return 0; } | |
11980 | EOF | |
d8356fa3 | 11981 | if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11982 | rm -rf conftest* |
11983 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11984 | else | |
11985 | echo "configure: failed program was:" >&5 | |
11986 | cat conftest.$ac_ext >&5 | |
11987 | rm -rf conftest* | |
11988 | eval "ac_cv_lib_$ac_lib_var=no" | |
11989 | fi | |
11990 | rm -f conftest* | |
11991 | LIBS="$ac_save_LIBS" | |
11992 | ||
11993 | fi | |
11994 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11995 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11996 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11997 | else |
11998 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11999 | fi |
12000 | ||
12001 | fi | |
12002 | ||
12003 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 12004 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d8356fa3 | 12005 | echo "configure:12006: checking for shmat" >&5 |
698dcdb6 VZ |
12006 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12008 | else |
698dcdb6 | 12009 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 12010 | #line 12011 "configure" |
ab9b9eab VZ |
12011 | #include "confdefs.h" |
12012 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12013 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
12014 | #include <assert.h> |
12015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12016 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12017 | builtin and then its argument prototype would still apply. */ |
12018 | char shmat(); | |
12019 | ||
12020 | int main() { | |
ab9b9eab VZ |
12021 | |
12022 | /* The GNU C library defines this for functions which it implements | |
12023 | to always fail with ENOSYS. Some functions are actually named | |
12024 | something starting with __ and the normal name is an alias. */ | |
12025 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12026 | choke me | |
12027 | #else | |
698dcdb6 | 12028 | shmat(); |
ab9b9eab VZ |
12029 | #endif |
12030 | ||
698dcdb6 VZ |
12031 | ; return 0; } |
12032 | EOF | |
d8356fa3 | 12033 | if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12034 | rm -rf conftest* |
12035 | eval "ac_cv_func_shmat=yes" | |
12036 | else | |
12037 | echo "configure: failed program was:" >&5 | |
12038 | cat conftest.$ac_ext >&5 | |
12039 | rm -rf conftest* | |
12040 | eval "ac_cv_func_shmat=no" | |
12041 | fi | |
12042 | rm -f conftest* | |
12043 | fi | |
12044 | ||
12045 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12046 | echo "$ac_t""yes" 1>&6 | |
12047 | : | |
12048 | else | |
12049 | echo "$ac_t""no" 1>&6 | |
12050 | fi | |
ab9b9eab VZ |
12051 | |
12052 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12053 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d8356fa3 | 12054 | echo "configure:12055: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12055 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12058 | else |
698dcdb6 | 12059 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12060 | LIBS="-lipc $LIBS" |
698dcdb6 | 12061 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 12062 | #line 12063 "configure" |
ab9b9eab VZ |
12063 | #include "confdefs.h" |
12064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12065 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12066 | builtin and then its argument prototype would still apply. */ |
12067 | char shmat(); | |
12068 | ||
12069 | int main() { | |
12070 | shmat() | |
12071 | ; return 0; } | |
12072 | EOF | |
d8356fa3 | 12073 | if { (eval echo configure:12074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12074 | rm -rf conftest* |
12075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12076 | else | |
12077 | echo "configure: failed program was:" >&5 | |
12078 | cat conftest.$ac_ext >&5 | |
12079 | rm -rf conftest* | |
12080 | eval "ac_cv_lib_$ac_lib_var=no" | |
12081 | fi | |
12082 | rm -f conftest* | |
12083 | LIBS="$ac_save_LIBS" | |
12084 | ||
12085 | fi | |
12086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12087 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12088 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12089 | else |
12090 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12091 | fi |
12092 | ||
12093 | fi | |
12094 | fi | |
12095 | ||
12096 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12097 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12098 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12099 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12100 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12101 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12102 | # These have to be linked with before -lX11, unlike the other | |
12103 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12104 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12105 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d8356fa3 | 12106 | echo "configure:12107: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12107 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12108 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12110 | else | |
12111 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12112 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12113 | cat > conftest.$ac_ext <<EOF |
d8356fa3 | 12114 | #line 12115 "configure" |
ab9b9eab VZ |
12115 | #include "confdefs.h" |
12116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12117 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12118 | builtin and then its argument prototype would still apply. */ |
12119 | char IceConnectionNumber(); | |
12120 | ||
12121 | int main() { | |
12122 | IceConnectionNumber() | |
12123 | ; return 0; } | |
12124 | EOF | |
d8356fa3 | 12125 | if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12126 | rm -rf conftest* |
12127 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12128 | else | |
12129 | echo "configure: failed program was:" >&5 | |
12130 | cat conftest.$ac_ext >&5 | |
12131 | rm -rf conftest* | |
12132 | eval "ac_cv_lib_$ac_lib_var=no" | |
12133 | fi | |
12134 | rm -f conftest* | |
12135 | LIBS="$ac_save_LIBS" | |
12136 | ||
12137 | fi | |
12138 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12139 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12140 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12141 | else |
12142 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12143 | fi |
12144 | ||
698dcdb6 | 12145 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12146 | |
12147 | fi | |
12148 | ||
12149 | ||
1e6feb95 VZ |
12150 | if test "$no_x" = "yes"; then |
12151 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12152 | fi | |
ab9b9eab | 12153 | |
1e6feb95 VZ |
12154 | GUI_TK_LIBRARY="$X_LIBS" |
12155 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12156 | AFMINSTALL=afminstall |
1e6feb95 | 12157 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12158 | |
d8356fa3 VZ |
12159 | if test "$wxUSE_NANOX" = 1; then |
12160 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
12161 | echo "configure:12162: checking for MicroWindows/NanoX distribution" >&5 | |
12162 | if test "x$MICROWIN" = x ; then | |
12163 | echo "$ac_t""not found" 1>&6 | |
12164 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
12165 | else | |
12166 | echo "$ac_t""$MICROWIN" 1>&6 | |
12167 | fi | |
12168 | fi | |
12169 | ||
3d63bc3a | 12170 | xpm_link= |
1e6feb95 | 12171 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
d8356fa3 | 12172 | echo "configure:12173: checking for Xpm library" >&5 |
1e6feb95 | 12173 | |
ab9b9eab VZ |
12174 | ac_find_libraries= |
12175 | for ac_dir in $SEARCH_LIB; | |
12176 | do | |
f11bdd03 | 12177 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12178 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12179 | ac_find_libraries=$ac_dir | |
12180 | break 2 | |
12181 | fi | |
12182 | done | |
12183 | done | |
12184 | ||
1e6feb95 VZ |
12185 | if test "$ac_find_libraries" != "" ; then |
12186 | ||
ab9b9eab VZ |
12187 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12188 | result=$? | |
12189 | if test $result = 0; then | |
12190 | ac_path_to_link="" | |
12191 | else | |
62d0491b | 12192 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12193 | fi |
12194 | ||
62d0491b | 12195 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12196 | xpm_link=" -lXpm" |
1e6feb95 | 12197 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12198 | #define wxHAVE_LIB_XPM 1 |
12199 | EOF | |
12200 | ||
1e6feb95 VZ |
12201 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12202 | else | |
12203 | cat > conftest.$ac_ext <<EOF | |
d8356fa3 | 12204 | #line 12205 "configure" |
cd6d6d5b VZ |
12205 | #include "confdefs.h" |
12206 | ||
1e6feb95 VZ |
12207 | #include <X11/xpm.h> |
12208 | ||
698dcdb6 | 12209 | int main() { |
cd6d6d5b | 12210 | |
1e6feb95 | 12211 | int version; |
1e6feb95 VZ |
12212 | version = XpmLibraryVersion(); |
12213 | ||
698dcdb6 VZ |
12214 | ; return 0; } |
12215 | EOF | |
d8356fa3 | 12216 | if { (eval echo configure:12217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12217 | rm -rf conftest* |
12218 | ||
3d63bc3a | 12219 | xpm_link=" -lXpm" |
3a922bb4 | 12220 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12221 | #define wxHAVE_LIB_XPM 1 |
12222 | EOF | |
12223 | ||
1e6feb95 VZ |
12224 | echo "$ac_t""found in default search path" 1>&6 |
12225 | COMPILED_X_PROGRAM=0 | |
12226 | ||
cd6d6d5b | 12227 | else |
698dcdb6 VZ |
12228 | echo "configure: failed program was:" >&5 |
12229 | cat conftest.$ac_ext >&5 | |
12230 | rm -rf conftest* | |
12231 | ||
1e6feb95 VZ |
12232 | echo "$ac_t""no" 1>&6 |
12233 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12234 | ||
698dcdb6 | 12235 | |
cd6d6d5b | 12236 | fi |
698dcdb6 | 12237 | rm -f conftest* |
1e6feb95 VZ |
12238 | fi |
12239 | ||
d8356fa3 VZ |
12240 | if test "$wxUSE_NANOX" = 1; then |
12241 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
3c011993 | 12242 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__" |
d8356fa3 VZ |
12243 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$MICROWIN/src/lib/libnano-X.a \$MICROWIN/src/lib/libmwengine.a \$MICROWIN/src/lib/libmwfonts.a \$MICROWIN/src/lib/libmwdrivers.a \$MICROWIN/src/lib/libmwobjects.a" |
12244 | else | |
0feee163 | 12245 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" |
d8356fa3 VZ |
12246 | fi |
12247 | ||
3c011993 | 12248 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
f79bd02d JS |
12249 | TOOLKIT=X11 |
12250 | GUIDIST=X11_DIST | |
1e6feb95 | 12251 | fi |
10f2d63a | 12252 | |
f79bd02d JS |
12253 | if test "$wxUSE_WINE" = 1; then |
12254 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12255 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
3c011993 | 12256 | echo "configure:12257: checking for windows.h" >&5 |
f79bd02d JS |
12257 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12259 | else | |
12260 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12261 | #line 12262 "configure" |
f79bd02d JS |
12262 | #include "confdefs.h" |
12263 | #include <windows.h> | |
12264 | EOF | |
12265 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 12266 | { (eval echo configure:12267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12267 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12268 | if test -z "$ac_err"; then | |
12269 | rm -rf conftest* | |
12270 | eval "ac_cv_header_$ac_safe=yes" | |
12271 | else | |
12272 | echo "$ac_err" >&5 | |
12273 | echo "configure: failed program was:" >&5 | |
12274 | cat conftest.$ac_ext >&5 | |
12275 | rm -rf conftest* | |
12276 | eval "ac_cv_header_$ac_safe=no" | |
12277 | fi | |
12278 | rm -f conftest* | |
12279 | fi | |
12280 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12281 | echo "$ac_t""yes" 1>&6 | |
12282 | : | |
12283 | else | |
12284 | echo "$ac_t""no" 1>&6 | |
12285 | ||
12286 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12287 | ||
12288 | fi | |
12289 | ||
12290 | ||
12291 | xpm_link= | |
12292 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
3c011993 | 12293 | echo "configure:12294: checking for Xpm library" >&5 |
f79bd02d JS |
12294 | |
12295 | ac_find_libraries= | |
12296 | for ac_dir in $SEARCH_LIB; | |
12297 | do | |
12298 | for ac_extension in a so sl dylib; do | |
12299 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12300 | ac_find_libraries=$ac_dir | |
12301 | break 2 | |
12302 | fi | |
12303 | done | |
12304 | done | |
12305 | ||
12306 | if test "$ac_find_libraries" != "" ; then | |
12307 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12308 | xpm_link=" -lXpm" | |
12309 | cat >> confdefs.h <<\EOF | |
12310 | #define wxHAVE_LIB_XPM 1 | |
12311 | EOF | |
12312 | ||
12313 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12314 | else | |
12315 | echo "$ac_t""no" 1>&6 | |
12316 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12317 | fi | |
12318 | ||
12319 | mesa_link= | |
12320 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
3c011993 | 12321 | echo "configure:12322: checking for Mesa library" >&5 |
f79bd02d JS |
12322 | |
12323 | ac_find_libraries= | |
12324 | for ac_dir in $SEARCH_LIB; | |
12325 | do | |
12326 | for ac_extension in a so sl dylib; do | |
12327 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12328 | ac_find_libraries=$ac_dir | |
12329 | break 2 | |
12330 | fi | |
12331 | done | |
12332 | done | |
12333 | ||
12334 | if test "$ac_find_libraries" != "" ; then | |
12335 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12336 | mesa_link=" -lMesaGL" | |
12337 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12338 | else | |
12339 | { echo "configure: error: no" 1>&2; exit 1; } | |
12340 | fi | |
12341 | ||
12342 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12343 | TOOLKIT=MSW | |
12344 | GUIDIST=MSW_DIST | |
12345 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12346 | fi | |
12347 | ||
12348 | if test "$wxUSE_MOTIF" = 1; then | |
12349 | if test "$no_x" = yes; then | |
12350 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12351 | cat >> confdefs.h <<\EOF | |
12352 | #define X_DISPLAY_MISSING 1 | |
12353 | EOF | |
12354 | ||
12355 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12356 | else | |
12357 | if test -n "$x_includes"; then | |
12358 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12359 | fi | |
12360 | ||
12361 | # It would also be nice to do this for all -L options, not just this one. | |
12362 | if test -n "$x_libraries"; then | |
12363 | X_LIBS="$X_LIBS -L$x_libraries" | |
12364 | # For Solaris; some versions of Sun CC require a space after -R and | |
12365 | # others require no space. Words are not sufficient . . . . | |
12366 | case "`(uname -sr) 2>/dev/null`" in | |
12367 | "SunOS 5"*) | |
12368 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
3c011993 | 12369 | echo "configure:12370: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12370 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12371 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12372 | #line 12373 "configure" |
f79bd02d JS |
12373 | #include "confdefs.h" |
12374 | ||
12375 | int main() { | |
12376 | ||
12377 | ; return 0; } | |
12378 | EOF | |
3c011993 | 12379 | if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12380 | rm -rf conftest* |
12381 | ac_R_nospace=yes | |
12382 | else | |
12383 | echo "configure: failed program was:" >&5 | |
12384 | cat conftest.$ac_ext >&5 | |
12385 | rm -rf conftest* | |
12386 | ac_R_nospace=no | |
12387 | fi | |
12388 | rm -f conftest* | |
12389 | if test $ac_R_nospace = yes; then | |
12390 | echo "$ac_t""no" 1>&6 | |
12391 | X_LIBS="$X_LIBS -R$x_libraries" | |
12392 | else | |
12393 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12394 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12395 | #line 12396 "configure" |
f79bd02d JS |
12396 | #include "confdefs.h" |
12397 | ||
12398 | int main() { | |
12399 | ||
12400 | ; return 0; } | |
12401 | EOF | |
3c011993 | 12402 | if { (eval echo configure:12403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12403 | rm -rf conftest* |
12404 | ac_R_space=yes | |
12405 | else | |
12406 | echo "configure: failed program was:" >&5 | |
12407 | cat conftest.$ac_ext >&5 | |
12408 | rm -rf conftest* | |
12409 | ac_R_space=no | |
12410 | fi | |
12411 | rm -f conftest* | |
12412 | if test $ac_R_space = yes; then | |
12413 | echo "$ac_t""yes" 1>&6 | |
12414 | X_LIBS="$X_LIBS -R $x_libraries" | |
12415 | else | |
12416 | echo "$ac_t""neither works" 1>&6 | |
12417 | fi | |
12418 | fi | |
12419 | LIBS="$ac_xsave_LIBS" | |
12420 | esac | |
12421 | fi | |
12422 | ||
12423 | # Check for system-dependent libraries X programs must link with. | |
12424 | # Do this before checking for the system-independent R6 libraries | |
12425 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12426 | ||
12427 | if test "$ISC" = yes; then | |
12428 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12429 | else | |
12430 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12431 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12432 | # the Alpha needs dnet_stub (dnet does not exist). | |
12433 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
3c011993 | 12434 | echo "configure:12435: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12435 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12436 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12438 | else | |
12439 | ac_save_LIBS="$LIBS" | |
12440 | LIBS="-ldnet $LIBS" | |
12441 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12442 | #line 12443 "configure" |
f79bd02d JS |
12443 | #include "confdefs.h" |
12444 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12445 | /* We use char because int might match the return type of a gcc2 | |
12446 | builtin and then its argument prototype would still apply. */ | |
12447 | char dnet_ntoa(); | |
12448 | ||
12449 | int main() { | |
12450 | dnet_ntoa() | |
12451 | ; return 0; } | |
12452 | EOF | |
3c011993 | 12453 | if { (eval echo configure:12454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12454 | rm -rf conftest* |
12455 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12456 | else | |
12457 | echo "configure: failed program was:" >&5 | |
12458 | cat conftest.$ac_ext >&5 | |
12459 | rm -rf conftest* | |
12460 | eval "ac_cv_lib_$ac_lib_var=no" | |
12461 | fi | |
12462 | rm -f conftest* | |
12463 | LIBS="$ac_save_LIBS" | |
12464 | ||
12465 | fi | |
12466 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12467 | echo "$ac_t""yes" 1>&6 | |
12468 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12469 | else | |
12470 | echo "$ac_t""no" 1>&6 | |
12471 | fi | |
12472 | ||
12473 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12474 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
3c011993 | 12475 | echo "configure:12476: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12476 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12477 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12479 | else | |
12480 | ac_save_LIBS="$LIBS" | |
12481 | LIBS="-ldnet_stub $LIBS" | |
12482 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12483 | #line 12484 "configure" |
f79bd02d JS |
12484 | #include "confdefs.h" |
12485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12486 | /* We use char because int might match the return type of a gcc2 | |
12487 | builtin and then its argument prototype would still apply. */ | |
12488 | char dnet_ntoa(); | |
12489 | ||
12490 | int main() { | |
12491 | dnet_ntoa() | |
12492 | ; return 0; } | |
12493 | EOF | |
3c011993 | 12494 | if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12495 | rm -rf conftest* |
12496 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12497 | else | |
12498 | echo "configure: failed program was:" >&5 | |
12499 | cat conftest.$ac_ext >&5 | |
12500 | rm -rf conftest* | |
12501 | eval "ac_cv_lib_$ac_lib_var=no" | |
12502 | fi | |
12503 | rm -f conftest* | |
12504 | LIBS="$ac_save_LIBS" | |
12505 | ||
12506 | fi | |
12507 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12508 | echo "$ac_t""yes" 1>&6 | |
12509 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12510 | else | |
12511 | echo "$ac_t""no" 1>&6 | |
12512 | fi | |
12513 | ||
12514 | fi | |
12515 | ||
12516 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12517 | # to get the SysV transport functions. | |
12518 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12519 | # needs -lnsl. | |
12520 | # The nsl library prevents programs from opening the X display | |
12521 | # on Irix 5.2, according to dickey@clark.net. | |
12522 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
3c011993 | 12523 | echo "configure:12524: checking for gethostbyname" >&5 |
f79bd02d JS |
12524 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12526 | else | |
12527 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12528 | #line 12529 "configure" |
f79bd02d JS |
12529 | #include "confdefs.h" |
12530 | /* System header to define __stub macros and hopefully few prototypes, | |
12531 | which can conflict with char gethostbyname(); below. */ | |
12532 | #include <assert.h> | |
12533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12534 | /* We use char because int might match the return type of a gcc2 | |
12535 | builtin and then its argument prototype would still apply. */ | |
12536 | char gethostbyname(); | |
12537 | ||
12538 | int main() { | |
12539 | ||
12540 | /* The GNU C library defines this for functions which it implements | |
12541 | to always fail with ENOSYS. Some functions are actually named | |
12542 | something starting with __ and the normal name is an alias. */ | |
12543 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12544 | choke me | |
12545 | #else | |
12546 | gethostbyname(); | |
12547 | #endif | |
12548 | ||
12549 | ; return 0; } | |
12550 | EOF | |
3c011993 | 12551 | if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12552 | rm -rf conftest* |
12553 | eval "ac_cv_func_gethostbyname=yes" | |
12554 | else | |
12555 | echo "configure: failed program was:" >&5 | |
12556 | cat conftest.$ac_ext >&5 | |
12557 | rm -rf conftest* | |
12558 | eval "ac_cv_func_gethostbyname=no" | |
12559 | fi | |
12560 | rm -f conftest* | |
12561 | fi | |
12562 | ||
12563 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12564 | echo "$ac_t""yes" 1>&6 | |
12565 | : | |
12566 | else | |
12567 | echo "$ac_t""no" 1>&6 | |
12568 | fi | |
12569 | ||
12570 | if test $ac_cv_func_gethostbyname = no; then | |
12571 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
3c011993 | 12572 | echo "configure:12573: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12573 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12574 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12576 | else | |
12577 | ac_save_LIBS="$LIBS" | |
12578 | LIBS="-lnsl $LIBS" | |
12579 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12580 | #line 12581 "configure" |
f79bd02d JS |
12581 | #include "confdefs.h" |
12582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12583 | /* We use char because int might match the return type of a gcc2 | |
12584 | builtin and then its argument prototype would still apply. */ | |
12585 | char gethostbyname(); | |
12586 | ||
12587 | int main() { | |
12588 | gethostbyname() | |
12589 | ; return 0; } | |
12590 | EOF | |
3c011993 | 12591 | if { (eval echo configure:12592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12592 | rm -rf conftest* |
12593 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12594 | else | |
12595 | echo "configure: failed program was:" >&5 | |
12596 | cat conftest.$ac_ext >&5 | |
12597 | rm -rf conftest* | |
12598 | eval "ac_cv_lib_$ac_lib_var=no" | |
12599 | fi | |
12600 | rm -f conftest* | |
12601 | LIBS="$ac_save_LIBS" | |
12602 | ||
12603 | fi | |
12604 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12605 | echo "$ac_t""yes" 1>&6 | |
12606 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12607 | else | |
12608 | echo "$ac_t""no" 1>&6 | |
12609 | fi | |
12610 | ||
12611 | fi | |
12612 | ||
12613 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12614 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12615 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12616 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12617 | # gethostby* variants that don't use the nameserver (or something). | |
12618 | # -lsocket must be given before -lnsl if both are needed. | |
12619 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12620 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
3c011993 | 12621 | echo "configure:12622: checking for connect" >&5 |
f79bd02d JS |
12622 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12624 | else | |
12625 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12626 | #line 12627 "configure" |
f79bd02d JS |
12627 | #include "confdefs.h" |
12628 | /* System header to define __stub macros and hopefully few prototypes, | |
12629 | which can conflict with char connect(); below. */ | |
12630 | #include <assert.h> | |
12631 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12632 | /* We use char because int might match the return type of a gcc2 | |
12633 | builtin and then its argument prototype would still apply. */ | |
12634 | char connect(); | |
12635 | ||
12636 | int main() { | |
12637 | ||
12638 | /* The GNU C library defines this for functions which it implements | |
12639 | to always fail with ENOSYS. Some functions are actually named | |
12640 | something starting with __ and the normal name is an alias. */ | |
12641 | #if defined (__stub_connect) || defined (__stub___connect) | |
12642 | choke me | |
12643 | #else | |
12644 | connect(); | |
12645 | #endif | |
12646 | ||
12647 | ; return 0; } | |
12648 | EOF | |
3c011993 | 12649 | if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12650 | rm -rf conftest* |
12651 | eval "ac_cv_func_connect=yes" | |
12652 | else | |
12653 | echo "configure: failed program was:" >&5 | |
12654 | cat conftest.$ac_ext >&5 | |
12655 | rm -rf conftest* | |
12656 | eval "ac_cv_func_connect=no" | |
12657 | fi | |
12658 | rm -f conftest* | |
12659 | fi | |
12660 | ||
12661 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12662 | echo "$ac_t""yes" 1>&6 | |
12663 | : | |
12664 | else | |
12665 | echo "$ac_t""no" 1>&6 | |
12666 | fi | |
12667 | ||
12668 | if test $ac_cv_func_connect = no; then | |
12669 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
3c011993 | 12670 | echo "configure:12671: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12671 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12672 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12674 | else | |
12675 | ac_save_LIBS="$LIBS" | |
12676 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12677 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12678 | #line 12679 "configure" |
f79bd02d JS |
12679 | #include "confdefs.h" |
12680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12681 | /* We use char because int might match the return type of a gcc2 | |
12682 | builtin and then its argument prototype would still apply. */ | |
12683 | char connect(); | |
12684 | ||
12685 | int main() { | |
12686 | connect() | |
12687 | ; return 0; } | |
12688 | EOF | |
3c011993 | 12689 | if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12690 | rm -rf conftest* |
12691 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12692 | else | |
12693 | echo "configure: failed program was:" >&5 | |
12694 | cat conftest.$ac_ext >&5 | |
12695 | rm -rf conftest* | |
12696 | eval "ac_cv_lib_$ac_lib_var=no" | |
12697 | fi | |
12698 | rm -f conftest* | |
12699 | LIBS="$ac_save_LIBS" | |
12700 | ||
12701 | fi | |
12702 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12703 | echo "$ac_t""yes" 1>&6 | |
12704 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12705 | else | |
12706 | echo "$ac_t""no" 1>&6 | |
12707 | fi | |
12708 | ||
12709 | fi | |
12710 | ||
12711 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12712 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
3c011993 | 12713 | echo "configure:12714: checking for remove" >&5 |
f79bd02d JS |
12714 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12716 | else | |
12717 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12718 | #line 12719 "configure" |
f79bd02d JS |
12719 | #include "confdefs.h" |
12720 | /* System header to define __stub macros and hopefully few prototypes, | |
12721 | which can conflict with char remove(); below. */ | |
12722 | #include <assert.h> | |
12723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12724 | /* We use char because int might match the return type of a gcc2 | |
12725 | builtin and then its argument prototype would still apply. */ | |
12726 | char remove(); | |
12727 | ||
12728 | int main() { | |
12729 | ||
12730 | /* The GNU C library defines this for functions which it implements | |
12731 | to always fail with ENOSYS. Some functions are actually named | |
12732 | something starting with __ and the normal name is an alias. */ | |
12733 | #if defined (__stub_remove) || defined (__stub___remove) | |
12734 | choke me | |
12735 | #else | |
12736 | remove(); | |
12737 | #endif | |
12738 | ||
12739 | ; return 0; } | |
12740 | EOF | |
3c011993 | 12741 | if { (eval echo configure:12742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12742 | rm -rf conftest* |
12743 | eval "ac_cv_func_remove=yes" | |
12744 | else | |
12745 | echo "configure: failed program was:" >&5 | |
12746 | cat conftest.$ac_ext >&5 | |
12747 | rm -rf conftest* | |
12748 | eval "ac_cv_func_remove=no" | |
12749 | fi | |
12750 | rm -f conftest* | |
12751 | fi | |
12752 | ||
12753 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12754 | echo "$ac_t""yes" 1>&6 | |
12755 | : | |
12756 | else | |
12757 | echo "$ac_t""no" 1>&6 | |
12758 | fi | |
12759 | ||
12760 | if test $ac_cv_func_remove = no; then | |
12761 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
3c011993 | 12762 | echo "configure:12763: checking for remove in -lposix" >&5 |
f79bd02d JS |
12763 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12764 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12766 | else | |
12767 | ac_save_LIBS="$LIBS" | |
12768 | LIBS="-lposix $LIBS" | |
12769 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12770 | #line 12771 "configure" |
f79bd02d JS |
12771 | #include "confdefs.h" |
12772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12773 | /* We use char because int might match the return type of a gcc2 | |
12774 | builtin and then its argument prototype would still apply. */ | |
12775 | char remove(); | |
12776 | ||
12777 | int main() { | |
12778 | remove() | |
12779 | ; return 0; } | |
12780 | EOF | |
3c011993 | 12781 | if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12782 | rm -rf conftest* |
12783 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12784 | else | |
12785 | echo "configure: failed program was:" >&5 | |
12786 | cat conftest.$ac_ext >&5 | |
12787 | rm -rf conftest* | |
12788 | eval "ac_cv_lib_$ac_lib_var=no" | |
12789 | fi | |
12790 | rm -f conftest* | |
12791 | LIBS="$ac_save_LIBS" | |
12792 | ||
12793 | fi | |
12794 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12795 | echo "$ac_t""yes" 1>&6 | |
12796 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12797 | else | |
12798 | echo "$ac_t""no" 1>&6 | |
12799 | fi | |
12800 | ||
12801 | fi | |
12802 | ||
12803 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12804 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
3c011993 | 12805 | echo "configure:12806: checking for shmat" >&5 |
f79bd02d JS |
12806 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12808 | else | |
12809 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12810 | #line 12811 "configure" |
f79bd02d JS |
12811 | #include "confdefs.h" |
12812 | /* System header to define __stub macros and hopefully few prototypes, | |
12813 | which can conflict with char shmat(); below. */ | |
12814 | #include <assert.h> | |
12815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12816 | /* We use char because int might match the return type of a gcc2 | |
12817 | builtin and then its argument prototype would still apply. */ | |
12818 | char shmat(); | |
12819 | ||
12820 | int main() { | |
12821 | ||
12822 | /* The GNU C library defines this for functions which it implements | |
12823 | to always fail with ENOSYS. Some functions are actually named | |
12824 | something starting with __ and the normal name is an alias. */ | |
12825 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12826 | choke me | |
12827 | #else | |
12828 | shmat(); | |
12829 | #endif | |
12830 | ||
12831 | ; return 0; } | |
12832 | EOF | |
3c011993 | 12833 | if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12834 | rm -rf conftest* |
12835 | eval "ac_cv_func_shmat=yes" | |
12836 | else | |
12837 | echo "configure: failed program was:" >&5 | |
12838 | cat conftest.$ac_ext >&5 | |
12839 | rm -rf conftest* | |
12840 | eval "ac_cv_func_shmat=no" | |
12841 | fi | |
12842 | rm -f conftest* | |
12843 | fi | |
12844 | ||
12845 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12846 | echo "$ac_t""yes" 1>&6 | |
12847 | : | |
12848 | else | |
12849 | echo "$ac_t""no" 1>&6 | |
12850 | fi | |
12851 | ||
12852 | if test $ac_cv_func_shmat = no; then | |
12853 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
3c011993 | 12854 | echo "configure:12855: checking for shmat in -lipc" >&5 |
f79bd02d JS |
12855 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12856 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12858 | else | |
12859 | ac_save_LIBS="$LIBS" | |
12860 | LIBS="-lipc $LIBS" | |
12861 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12862 | #line 12863 "configure" |
f79bd02d JS |
12863 | #include "confdefs.h" |
12864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12865 | /* We use char because int might match the return type of a gcc2 | |
12866 | builtin and then its argument prototype would still apply. */ | |
12867 | char shmat(); | |
12868 | ||
12869 | int main() { | |
12870 | shmat() | |
12871 | ; return 0; } | |
12872 | EOF | |
3c011993 | 12873 | if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12874 | rm -rf conftest* |
12875 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12876 | else | |
12877 | echo "configure: failed program was:" >&5 | |
12878 | cat conftest.$ac_ext >&5 | |
12879 | rm -rf conftest* | |
12880 | eval "ac_cv_lib_$ac_lib_var=no" | |
12881 | fi | |
12882 | rm -f conftest* | |
12883 | LIBS="$ac_save_LIBS" | |
12884 | ||
12885 | fi | |
12886 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12887 | echo "$ac_t""yes" 1>&6 | |
12888 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12889 | else | |
12890 | echo "$ac_t""no" 1>&6 | |
12891 | fi | |
12892 | ||
12893 | fi | |
12894 | fi | |
12895 | ||
12896 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12897 | ac_save_LDFLAGS="$LDFLAGS" | |
12898 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12899 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12900 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12901 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12902 | # These have to be linked with before -lX11, unlike the other | |
12903 | # libraries we check for below, so use a different variable. | |
12904 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12905 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
3c011993 | 12906 | echo "configure:12907: checking for IceConnectionNumber in -lICE" >&5 |
f79bd02d JS |
12907 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12908 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12910 | else | |
12911 | ac_save_LIBS="$LIBS" | |
12912 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12913 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12914 | #line 12915 "configure" |
f79bd02d JS |
12915 | #include "confdefs.h" |
12916 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12917 | /* We use char because int might match the return type of a gcc2 | |
12918 | builtin and then its argument prototype would still apply. */ | |
12919 | char IceConnectionNumber(); | |
12920 | ||
12921 | int main() { | |
12922 | IceConnectionNumber() | |
12923 | ; return 0; } | |
12924 | EOF | |
3c011993 | 12925 | if { (eval echo configure:12926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12926 | rm -rf conftest* |
12927 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12928 | else | |
12929 | echo "configure: failed program was:" >&5 | |
12930 | cat conftest.$ac_ext >&5 | |
12931 | rm -rf conftest* | |
12932 | eval "ac_cv_lib_$ac_lib_var=no" | |
12933 | fi | |
12934 | rm -f conftest* | |
12935 | LIBS="$ac_save_LIBS" | |
12936 | ||
12937 | fi | |
12938 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12939 | echo "$ac_t""yes" 1>&6 | |
12940 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12941 | else | |
12942 | echo "$ac_t""no" 1>&6 | |
12943 | fi | |
12944 | ||
12945 | LDFLAGS="$ac_save_LDFLAGS" | |
12946 | ||
12947 | fi | |
12948 | ||
12949 | ||
12950 | if test "$no_x" = "yes"; then | |
12951 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12952 | fi | |
12953 | ||
12954 | GUI_TK_LIBRARY="$X_LIBS" | |
12955 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12956 | AFMINSTALL=afminstall | |
12957 | COMPILED_X_PROGRAM=0 | |
12958 | ||
12959 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
3c011993 | 12960 | echo "configure:12961: checking for Motif/Lesstif headers" >&5 |
f79bd02d JS |
12961 | |
12962 | ac_find_includes= | |
12963 | for ac_dir in $SEARCH_INCLUDE; | |
12964 | do | |
12965 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12966 | ac_find_includes=$ac_dir | |
12967 | break | |
12968 | fi | |
12969 | done | |
12970 | ||
12971 | if test "$ac_find_includes" != "" ; then | |
12972 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12973 | else | |
12974 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 12975 | #line 12976 "configure" |
f79bd02d JS |
12976 | #include "confdefs.h" |
12977 | ||
12978 | #include <Xm/Xm.h> | |
12979 | ||
12980 | int main() { | |
12981 | ||
12982 | int version; | |
12983 | version = xmUseVersion; | |
12984 | ||
12985 | ; return 0; } | |
12986 | EOF | |
3c011993 | 12987 | if { (eval echo configure:12988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12988 | rm -rf conftest* |
12989 | ||
12990 | echo "$ac_t""found in default search path" 1>&6 | |
12991 | COMPILED_X_PROGRAM=1 | |
12992 | ||
12993 | else | |
12994 | echo "configure: failed program was:" >&5 | |
12995 | cat conftest.$ac_ext >&5 | |
12996 | rm -rf conftest* | |
12997 | ||
12998 | echo "$ac_t""no" 1>&6 | |
12999 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
13000 | ||
13001 | ||
13002 | fi | |
13003 | rm -f conftest* | |
13004 | fi | |
13005 | ||
13006 | if test "$COMPILED_X_PROGRAM" = 0; then | |
13007 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
3c011993 | 13008 | echo "configure:13009: checking for Motif/Lesstif library" >&5 |
f79bd02d JS |
13009 | |
13010 | ac_find_libraries= | |
13011 | for ac_dir in $SEARCH_LIB; | |
13012 | do | |
13013 | for ac_extension in a so sl dylib; do | |
13014 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
13015 | ac_find_libraries=$ac_dir | |
13016 | break 2 | |
13017 | fi | |
13018 | done | |
13019 | done | |
13020 | ||
13021 | if test "$ac_find_libraries" != "" ; then | |
13022 | ||
13023 | ac_path_to_include=$ac_find_includes | |
13024 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
13025 | result=$? | |
13026 | if test $result = 0; then | |
13027 | ac_path_to_include="" | |
13028 | else | |
13029 | ac_path_to_include=" -I$ac_find_includes" | |
13030 | fi | |
13031 | ||
13032 | ||
13033 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13034 | result=$? | |
13035 | if test $result = 0; then | |
13036 | ac_path_to_link="" | |
13037 | else | |
13038 | ac_path_to_link=" -L$ac_find_libraries" | |
13039 | fi | |
13040 | ||
13041 | ||
13042 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13043 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
13044 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13045 | else | |
13046 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13047 | #line 13048 "configure" |
f79bd02d JS |
13048 | #include "confdefs.h" |
13049 | ||
13050 | #include <Xm/Xm.h> | |
13051 | ||
13052 | int main() { | |
13053 | ||
13054 | int version; | |
13055 | version = xmUseVersion; | |
13056 | ||
13057 | ; return 0; } | |
13058 | EOF | |
3c011993 | 13059 | if { (eval echo configure:13060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13060 | rm -rf conftest* |
13061 | ||
13062 | echo "$ac_t""found in default search path" 1>&6 | |
13063 | COMPILED_X_PROGRAM=1 | |
13064 | ||
13065 | else | |
13066 | echo "configure: failed program was:" >&5 | |
13067 | cat conftest.$ac_ext >&5 | |
13068 | rm -rf conftest* | |
13069 | ||
13070 | echo "$ac_t""no" 1>&6 | |
13071 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13072 | ||
13073 | ||
13074 | fi | |
13075 | rm -f conftest* | |
13076 | fi | |
13077 | fi | |
13078 | ||
13079 | xpm_link= | |
13080 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
3c011993 | 13081 | echo "configure:13082: checking for Xpm library" >&5 |
f79bd02d JS |
13082 | |
13083 | ac_find_libraries= | |
13084 | for ac_dir in $SEARCH_LIB; | |
13085 | do | |
13086 | for ac_extension in a so sl dylib; do | |
13087 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13088 | ac_find_libraries=$ac_dir | |
13089 | break 2 | |
13090 | fi | |
13091 | done | |
13092 | done | |
13093 | ||
13094 | if test "$ac_find_libraries" != "" ; then | |
13095 | ||
13096 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13097 | result=$? | |
13098 | if test $result = 0; then | |
13099 | ac_path_to_link="" | |
13100 | else | |
13101 | ac_path_to_link=" -L$ac_find_libraries" | |
13102 | fi | |
13103 | ||
13104 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13105 | xpm_link=" -lXpm" | |
13106 | cat >> confdefs.h <<\EOF | |
13107 | #define wxHAVE_LIB_XPM 1 | |
13108 | EOF | |
13109 | ||
13110 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13111 | else | |
13112 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13113 | #line 13114 "configure" |
f79bd02d JS |
13114 | #include "confdefs.h" |
13115 | ||
13116 | #include <X11/xpm.h> | |
13117 | ||
13118 | int main() { | |
13119 | ||
13120 | int version; | |
13121 | version = XpmLibraryVersion(); | |
13122 | ||
13123 | ; return 0; } | |
13124 | EOF | |
3c011993 | 13125 | if { (eval echo configure:13126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13126 | rm -rf conftest* |
13127 | ||
13128 | xpm_link=" -lXpm" | |
13129 | cat >> confdefs.h <<\EOF | |
13130 | #define wxHAVE_LIB_XPM 1 | |
13131 | EOF | |
13132 | ||
13133 | echo "$ac_t""found in default search path" 1>&6 | |
13134 | COMPILED_X_PROGRAM=0 | |
13135 | ||
13136 | else | |
13137 | echo "configure: failed program was:" >&5 | |
13138 | cat conftest.$ac_ext >&5 | |
13139 | rm -rf conftest* | |
13140 | ||
13141 | echo "$ac_t""no" 1>&6 | |
13142 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13143 | ||
13144 | ||
13145 | fi | |
13146 | rm -f conftest* | |
13147 | fi | |
13148 | ||
13149 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13150 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13151 | TOOLKIT=MOTIF | |
13152 | GUIDIST=MOTIF_DIST | |
13153 | fi | |
13154 | ||
13155 | if test "$wxUSE_MAC" = 1; then | |
13156 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13157 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13158 | fi | |
13159 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13160 | CFLAGS="$CFLAGS -fpascal-strings" | |
13161 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13162 | ||
13163 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13164 | TOOLKIT=MAC | |
13165 | GUIDIST=MACX_DIST | |
13166 | fi | |
13167 | ||
13168 | if test "$wxUSE_PM" = 1; then | |
13169 | TOOLKIT=PM | |
1e6feb95 VZ |
13170 | GUIDIST=GTK_DIST |
13171 | fi | |
b4085ce6 | 13172 | |
3a922bb4 | 13173 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 13174 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
13175 | else |
13176 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 13177 | fi |
e07802fc | 13178 | |
3a922bb4 | 13179 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 13180 | |
3a922bb4 RL |
13181 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
13182 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
13183 | |
13184 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13185 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13186 | ||
3a922bb4 RL |
13187 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
13188 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13189 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
13190 | WIDGET_SET=univ | |
f6bcfd97 | 13191 | else |
3a922bb4 | 13192 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
13193 | ALL_SOURCES="\$(ALL_SOURCES)" |
13194 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
13195 | fi |
13196 | ||
ba0e650c | 13197 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 13198 | |
f9bc1684 | 13199 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
13200 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
13201 | fi | |
13202 | ||
13203 | if test "$wxUSE_HTML" = "yes"; then | |
13204 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13205 | fi | |
3fcdd07b | 13206 | |
4f14bcd8 | 13207 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 13208 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 13209 | fi |
4f14bcd8 | 13210 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
13211 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
13212 | fi | |
4f14bcd8 | 13213 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
13214 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
13215 | fi | |
2224580a | 13216 | |
2224580a VZ |
13217 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
13218 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 13219 | else |
dad6c0ea VZ |
13220 | USE_GUI=0 |
13221 | ||
3a922bb4 | 13222 | TOOLKIT_DIR="base" |
f6bcfd97 | 13223 | |
3a922bb4 RL |
13224 | if test "$USE_WIN32" = 1 ; then |
13225 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13226 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 13227 | |
3a922bb4 | 13228 | TOOLKIT="MSW" |
f6bcfd97 | 13229 | else |
3a922bb4 RL |
13230 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
13231 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
13232 | fi |
13233 | ||
d8356fa3 VZ |
13234 | ALL_SOURCES="\$(ALL_SOURCES)" |
13235 | ALL_HEADERS="\$(ALL_HEADERS)" | |
13236 | ||
831b3152 | 13237 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
13238 | |
13239 | GUIDIST="BASE_DIST" | |
13240 | DISTDIR="wxBase" | |
10f2d63a VZ |
13241 | fi |
13242 | ||
e45387bf VZ |
13243 | |
13244 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13245 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13246 | fi | |
13247 | ||
4f14bcd8 | 13248 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
13249 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
13250 | fi | |
4f14bcd8 | 13251 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
13252 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
13253 | fi | |
10f2d63a | 13254 | |
3a922bb4 | 13255 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
13256 | if test "$wxUSE_MAC" = 1; then |
13257 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13258 | else | |
570cb8cb | 13259 | |
62d0491b | 13260 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 13261 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
3c011993 | 13262 | echo "configure:13263: checking for GL/gl.h" >&5 |
3a922bb4 RL |
13263 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13265 | else | |
13266 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13267 | #line 13268 "configure" |
3a922bb4 RL |
13268 | #include "confdefs.h" |
13269 | #include <GL/gl.h> | |
13270 | EOF | |
13271 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13272 | { (eval echo configure:13273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13273 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13274 | if test -z "$ac_err"; then | |
13275 | rm -rf conftest* | |
13276 | eval "ac_cv_header_$ac_safe=yes" | |
13277 | else | |
13278 | echo "$ac_err" >&5 | |
13279 | echo "configure: failed program was:" >&5 | |
13280 | cat conftest.$ac_ext >&5 | |
13281 | rm -rf conftest* | |
13282 | eval "ac_cv_header_$ac_safe=no" | |
13283 | fi | |
13284 | rm -f conftest* | |
13285 | fi | |
13286 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13287 | echo "$ac_t""yes" 1>&6 | |
13288 | ||
1352efdf | 13289 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
3c011993 | 13290 | echo "configure:13291: checking for -lGL" >&5 |
57964555 | 13291 | |
62d0491b RL |
13292 | ac_find_libraries= |
13293 | for ac_dir in $SEARCH_LIB; | |
13294 | do | |
13295 | for ac_extension in a so sl dylib; do | |
13296 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13297 | ac_find_libraries=$ac_dir | |
13298 | break 2 | |
13299 | fi | |
13300 | done | |
13301 | done | |
3a922bb4 | 13302 | |
62d0491b RL |
13303 | if test "$ac_find_libraries" != "" ; then |
13304 | ||
13305 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13306 | result=$? | |
13307 | if test $result = 0; then | |
13308 | ac_path_to_link="" | |
13309 | else | |
13310 | ac_path_to_link=" -L$ac_find_libraries" | |
13311 | fi | |
3a922bb4 | 13312 | |
4b6b4dfc RR |
13313 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
13314 | LDFLAGS_GL="$LDFLAGS" | |
13315 | else | |
13316 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13317 | fi | |
62d0491b | 13318 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 13319 | echo "$ac_t""yes" 1>&6 |
62d0491b | 13320 | else |
1352efdf RL |
13321 | echo "$ac_t""no" 1>&6 |
13322 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
3c011993 | 13323 | echo "configure:13324: checking for -lMesaGL" >&5 |
62d0491b RL |
13324 | |
13325 | ac_find_libraries= | |
13326 | for ac_dir in $SEARCH_LIB; | |
13327 | do | |
13328 | for ac_extension in a so sl dylib; do | |
13329 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13330 | ac_find_libraries=$ac_dir | |
13331 | break 2 | |
13332 | fi | |
13333 | done | |
13334 | done | |
3a922bb4 | 13335 | |
62d0491b | 13336 | if test "$ac_find_libraries" != "" ; then |
57964555 | 13337 | |
62d0491b RL |
13338 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
13339 | result=$? | |
13340 | if test $result = 0; then | |
13341 | ac_path_to_link="" | |
13342 | else | |
13343 | ac_path_to_link=" -L$ac_find_libraries" | |
13344 | fi | |
3a922bb4 | 13345 | |
62d0491b RL |
13346 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
13347 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
13348 | echo "$ac_t""yes" 1>&6 |
13349 | else | |
13350 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
13351 | fi |
13352 | fi | |
13353 | ||
3a922bb4 RL |
13354 | else |
13355 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13356 | fi |
13357 | ||
6f754473 | 13358 | |
62d0491b RL |
13359 | |
13360 | # AC_CHECK_HEADER(GL/gl.h, | |
13361 | # [ | |
13362 | # AC_CHECK_LIB(GL, glFlush, | |
13363 | # [ | |
13364 | # OPENGL_LIBS="-lGL -lGLU" | |
13365 | # ], | |
13366 | # [ | |
13367 | # AC_CHECK_LIB(MesaGL, glFlush, | |
13368 | # [ | |
13369 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13370 | # ], | |
13371 | # [], | |
13372 | # [-lm]) | |
13373 | # ], | |
13374 | # [-lm]) | |
13375 | # ]) | |
13376 | ||
13377 | if test "x$OPENGL_LIBS" = "x"; then | |
13378 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13379 | fi | |
6f754473 | 13380 | fi |
6f754473 | 13381 | |
62d0491b RL |
13382 | if test "$wxUSE_OPENGL" = "yes"; then |
13383 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
13384 | #define wxUSE_OPENGL 1 |
13385 | EOF | |
13386 | ||
62d0491b | 13387 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
13388 | #define wxUSE_GLCANVAS 1 |
13389 | EOF | |
13390 | ||
62d0491b RL |
13391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
13392 | fi | |
3a922bb4 RL |
13393 | fi |
13394 | ||
13395 | if test -z "$TOOLKIT_VPATH" ; then | |
13396 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13397 | fi | |
13398 | ||
13399 | if test -n "$TOOLKIT" ; then | |
13400 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13401 | fi | |
13402 | ||
f676c7ff MB |
13403 | lib_unicode_suffix= |
13404 | if test "$wxUSE_UNICODE" = "yes"; then | |
13405 | lib_unicode_suffix=u | |
13406 | fi | |
13407 | ||
3a922bb4 RL |
13408 | lib_debug_suffix= |
13409 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13410 | lib_debug_suffix=d | |
3a922bb4 RL |
13411 | fi |
13412 | ||
f676c7ff MB |
13413 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
13414 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
13415 | |
13416 | if test "$cross_compiling" = "yes"; then | |
13417 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13418 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13419 | fi | |
13420 | ||
13421 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13422 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13423 | ||
3a922bb4 RL |
13424 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
13425 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13426 | ||
13427 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13428 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13429 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13430 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13431 | ||
d08b457b | 13432 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 13433 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 13434 | |
978f1259 RL |
13435 | case "${host}" in |
13436 | *-*-cygwin* | *-*-mingw32* ) | |
13437 | ||
2da4f892 | 13438 | |
978f1259 RL |
13439 | |
13440 | if test "$cross_compiling" != "yes"; then | |
13441 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13442 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13443 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13444 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
13445 | else |
13446 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13447 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
13448 | fi |
13449 | ||
13450 | esac | |
13451 | ||
13452 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13453 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13454 | ||
13455 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 13456 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
13457 | |
13458 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
13459 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
13460 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
13461 | fi |
13462 | ||
13463 | ||
3a922bb4 | 13464 | |
4222829b VS |
13465 | if test "$wxUSE_SHARED" = "yes"; then |
13466 | case "${host}" in | |
13467 | *-pc-os2_emx | *-pc-os2-emx | \ | |
13468 | *-pc-msdosdjgpp ) | |
13469 | wxUSE_SHARED=no | |
13470 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
13471 | ;; | |
13472 | esac | |
13473 | fi | |
13474 | ||
3a922bb4 | 13475 | if test "$wxUSE_SHARED" = "yes"; then |
55e80573 VZ |
13476 | |
13477 | if test "$wxUSE_OPENGL" = "yes"; then | |
13478 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 13479 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
13480 | else |
13481 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 13482 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
13483 | fi |
13484 | ||
dd4f7467 | 13485 | if test "$GCC" = "yes"; then |
55e80573 | 13486 | PIC_FLAG="-fPIC" |
dd4f7467 | 13487 | fi |
55e80573 VZ |
13488 | |
13489 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 13490 | |
10f2d63a VZ |
13491 | case "${host}" in |
13492 | *-hp-hpux* ) | |
d569ea8d GD |
13493 | if test "$GCC" == "yes"; then |
13494 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13495 | else | |
3d63bc3a | 13496 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 13497 | |
10f2d63a VZ |
13498 | SHARED_LD="${CXX} -b -o" |
13499 | PIC_FLAG="+Z" | |
13500 | fi | |
55e80573 | 13501 | |
7b7a7637 RL |
13502 | if test "$wxUSE_OPENGL" = "yes"; then |
13503 | WX_ALL_INSTALLED="preinstall_gl" | |
13504 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13505 | else | |
13506 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13507 | fi | |
10f2d63a | 13508 | ;; |
b12915c1 | 13509 | |
55e80573 VZ |
13510 | *-*-linux* ) |
13511 | if test "$GCC" != "yes"; then | |
13512 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
3c011993 | 13513 | echo "configure:13514: checking for Intel compiler" >&5 |
55e80573 VZ |
13514 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
13515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13516 | else | |
13517 | ||
13518 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13519 | #line 13520 "configure" |
55e80573 VZ |
13520 | #include "confdefs.h" |
13521 | ||
13522 | int main() { | |
13523 | ||
13524 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 13525 | #error Not icc |
55e80573 VZ |
13526 | #endif |
13527 | ||
13528 | ; return 0; } | |
13529 | EOF | |
3c011993 | 13530 | if { (eval echo configure:13531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
13531 | rm -rf conftest* |
13532 | wx_cv_prog_icc=yes | |
13533 | else | |
13534 | echo "configure: failed program was:" >&5 | |
13535 | cat conftest.$ac_ext >&5 | |
13536 | rm -rf conftest* | |
13537 | wx_cv_prog_icc=no | |
13538 | ||
13539 | fi | |
13540 | rm -f conftest* | |
13541 | ||
13542 | fi | |
13543 | ||
13544 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
13545 | if test "$wx_cv_prog_icc" = "yes"; then |
13546 | PIC_FLAG="-KPIC" | |
13547 | fi | |
13548 | fi | |
13549 | ||
3a922bb4 RL |
13550 | if test "$wxUSE_SONAME" = "yes" ; then |
13551 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13552 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 13553 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 13554 | fi |
10f2d63a | 13555 | ;; |
55e80573 | 13556 | |
10f2d63a VZ |
13557 | *-*-solaris2* ) |
13558 | if test "$GCC" = yes ; then | |
f6bcfd97 | 13559 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
13560 | else |
13561 | SHARED_LD="${CXX} -G -o" | |
13562 | PIC_FLAG="-KPIC" | |
7b7a7637 | 13563 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 13564 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13565 | fi |
10f2d63a | 13566 | ;; |
55e80573 | 13567 | |
b4085ce6 | 13568 | *-*-darwin* ) |
156b2523 GD |
13569 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
13570 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
13571 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 13572 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 13573 | ;; |
55e80573 | 13574 | |
10f2d63a VZ |
13575 | *-*-aix* ) |
13576 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 13577 | ;; |
55e80573 | 13578 | |
7b7a7637 | 13579 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 13580 | |
2da4f892 | 13581 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 13582 | |
77e13408 | 13583 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 13584 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
13585 | |
13586 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
13587 | |
13588 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 13589 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 13590 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 13591 | else |
978f1259 | 13592 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 13593 | fi |
10f2d63a | 13594 | ;; |
55e80573 | 13595 | |
b12915c1 | 13596 | *-*-beos* ) |
e2b8b066 | 13597 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 13598 | ;; |
55e80573 VZ |
13599 | |
13600 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13601 | *-*-sunos4* | \ | |
13602 | *-*-irix5* | *-*-irix6* | \ | |
13603 | *-*-osf* | \ | |
13604 | *-*-dgux5* | \ | |
13605 | *-*-sysv5* ) | |
13606 | ;; | |
13607 | ||
10f2d63a | 13608 | *) |
7b7a7637 | 13609 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13610 | esac |
13611 | ||
13612 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13613 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13614 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13615 | fi |
55e80573 | 13616 | |
3711412e | 13617 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13618 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13619 | fi |
f6bcfd97 | 13620 | |
3a922bb4 | 13621 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13622 | |
3a922bb4 | 13623 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13624 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13625 | fi | |
13626 | ||
6fa882bd RR |
13627 | if test "$wxUSE_MAC" = 1; then |
13628 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13629 | fi | |
13630 | ||
3a922bb4 RL |
13631 | if test "$wxUSE_OPENGL" = "yes"; then |
13632 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13633 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13634 | else | |
13635 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13636 | fi | |
698dcdb6 | 13637 | |
3a922bb4 RL |
13638 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13639 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13640 | ||
13641 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13642 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13643 | fi |
10f2d63a | 13644 | |
d08b457b GD |
13645 | if test "$wxUSE_MAC" = 1; then |
13646 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13647 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13648 | # Extract the first word of "Rez", so it can be a program name with args. |
13649 | set dummy Rez; ac_word=$2 | |
13650 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3c011993 | 13651 | echo "configure:13652: checking for $ac_word" >&5 |
d08b457b GD |
13652 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13654 | else | |
13655 | if test -n "$RESCOMP"; then | |
13656 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13657 | else | |
13658 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13659 | ac_dummy="$PATH" | |
13660 | for ac_dir in $ac_dummy; do | |
13661 | test -z "$ac_dir" && ac_dir=. | |
13662 | if test -f $ac_dir/$ac_word; then | |
13663 | ac_cv_prog_RESCOMP="Rez" | |
13664 | break | |
13665 | fi | |
13666 | done | |
13667 | IFS="$ac_save_ifs" | |
13668 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13669 | fi | |
13670 | fi | |
13671 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13672 | if test -n "$RESCOMP"; then | |
13673 | echo "$ac_t""$RESCOMP" 1>&6 | |
13674 | else | |
13675 | echo "$ac_t""no" 1>&6 | |
13676 | fi | |
13677 | ||
9f8148b1 GD |
13678 | # Extract the first word of "DeRez", so it can be a program name with args. |
13679 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13680 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3c011993 | 13681 | echo "configure:13682: checking for $ac_word" >&5 |
d08b457b GD |
13682 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13684 | else | |
13685 | if test -n "$DEREZ"; then | |
13686 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13687 | else | |
13688 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13689 | ac_dummy="$PATH" | |
13690 | for ac_dir in $ac_dummy; do | |
13691 | test -z "$ac_dir" && ac_dir=. | |
13692 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13693 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13694 | break |
13695 | fi | |
13696 | done | |
13697 | IFS="$ac_save_ifs" | |
9f8148b1 | 13698 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13699 | fi |
13700 | fi | |
13701 | DEREZ="$ac_cv_prog_DEREZ" | |
13702 | if test -n "$DEREZ"; then | |
13703 | echo "$ac_t""$DEREZ" 1>&6 | |
13704 | else | |
13705 | echo "$ac_t""no" 1>&6 | |
13706 | fi | |
13707 | ||
13708 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
13709 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13710 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
13711 | fi |
13712 | ||
3a922bb4 | 13713 | |
13c0541d GD |
13714 | if test "$wxUSE_MAC" != 1; then |
13715 | for ac_hdr in strings.h | |
9cfadba2 | 13716 | do |
698dcdb6 VZ |
13717 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13718 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13719 | echo "configure:13720: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13720 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13722 | else | |
13723 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13724 | #line 13725 "configure" |
9cfadba2 | 13725 | #include "confdefs.h" |
698dcdb6 VZ |
13726 | #include <$ac_hdr> |
13727 | EOF | |
13728 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13729 | { (eval echo configure:13730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13730 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13731 | if test -z "$ac_err"; then | |
13732 | rm -rf conftest* | |
13733 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13734 | else |
698dcdb6 VZ |
13735 | echo "$ac_err" >&5 |
13736 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13737 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13738 | rm -rf conftest* |
13739 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13740 | fi |
698dcdb6 | 13741 | rm -f conftest* |
9cfadba2 | 13742 | fi |
698dcdb6 VZ |
13743 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13744 | echo "$ac_t""yes" 1>&6 | |
13745 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13746 | cat >> confdefs.h <<EOF | |
13747 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13748 | EOF |
698dcdb6 VZ |
13749 | |
13750 | else | |
13751 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13752 | fi |
13753 | done | |
10f2d63a | 13754 | |
13c0541d GD |
13755 | fi |
13756 | ||
3a922bb4 | 13757 | for ac_hdr in stdlib.h |
10f2d63a | 13758 | do |
698dcdb6 VZ |
13759 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13760 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13761 | echo "configure:13762: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13762 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13764 | else | |
13765 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13766 | #line 13767 "configure" |
10f2d63a | 13767 | #include "confdefs.h" |
698dcdb6 VZ |
13768 | #include <$ac_hdr> |
13769 | EOF | |
13770 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13771 | { (eval echo configure:13772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13772 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13773 | if test -z "$ac_err"; then | |
13774 | rm -rf conftest* | |
13775 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13776 | else |
698dcdb6 VZ |
13777 | echo "$ac_err" >&5 |
13778 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13779 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13780 | rm -rf conftest* |
13781 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13782 | fi |
698dcdb6 | 13783 | rm -f conftest* |
10f2d63a | 13784 | fi |
698dcdb6 VZ |
13785 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13786 | echo "$ac_t""yes" 1>&6 | |
13787 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13788 | cat >> confdefs.h <<EOF | |
13789 | #define $ac_tr_hdr 1 | |
10f2d63a | 13790 | EOF |
698dcdb6 VZ |
13791 | |
13792 | else | |
13793 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13794 | fi |
13795 | done | |
13796 | ||
9f8148b1 | 13797 | for ac_hdr in malloc.h |
10f2d63a | 13798 | do |
698dcdb6 VZ |
13799 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13800 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13801 | echo "configure:13802: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13802 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13804 | else | |
13805 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13806 | #line 13807 "configure" |
10f2d63a | 13807 | #include "confdefs.h" |
698dcdb6 VZ |
13808 | #include <$ac_hdr> |
13809 | EOF | |
13810 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13811 | { (eval echo configure:13812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13812 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13813 | if test -z "$ac_err"; then | |
13814 | rm -rf conftest* | |
13815 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13816 | else |
698dcdb6 VZ |
13817 | echo "$ac_err" >&5 |
13818 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13819 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13820 | rm -rf conftest* |
13821 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13822 | fi |
698dcdb6 | 13823 | rm -f conftest* |
6f72b082 | 13824 | fi |
698dcdb6 VZ |
13825 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13826 | echo "$ac_t""yes" 1>&6 | |
13827 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13828 | cat >> confdefs.h <<EOF | |
13829 | #define $ac_tr_hdr 1 | |
6f72b082 | 13830 | EOF |
698dcdb6 VZ |
13831 | |
13832 | else | |
13833 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13834 | fi |
13835 | done | |
13836 | ||
9f8148b1 | 13837 | for ac_hdr in unistd.h |
6f72b082 | 13838 | do |
698dcdb6 VZ |
13839 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13840 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13841 | echo "configure:13842: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13842 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13844 | else | |
13845 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13846 | #line 13847 "configure" |
6f72b082 | 13847 | #include "confdefs.h" |
698dcdb6 VZ |
13848 | #include <$ac_hdr> |
13849 | EOF | |
13850 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13851 | { (eval echo configure:13852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13852 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13853 | if test -z "$ac_err"; then | |
13854 | rm -rf conftest* | |
13855 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13856 | else |
698dcdb6 VZ |
13857 | echo "$ac_err" >&5 |
13858 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13859 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13860 | rm -rf conftest* |
13861 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13862 | fi |
698dcdb6 | 13863 | rm -f conftest* |
6f72b082 | 13864 | fi |
698dcdb6 VZ |
13865 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13866 | echo "$ac_t""yes" 1>&6 | |
13867 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13868 | cat >> confdefs.h <<EOF | |
13869 | #define $ac_tr_hdr 1 | |
6f72b082 | 13870 | EOF |
698dcdb6 VZ |
13871 | |
13872 | else | |
13873 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13874 | fi |
13875 | done | |
13876 | ||
9f8148b1 | 13877 | for ac_hdr in wchar.h |
6f72b082 | 13878 | do |
698dcdb6 VZ |
13879 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13880 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13881 | echo "configure:13882: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13882 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13884 | else | |
13885 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13886 | #line 13887 "configure" |
6f72b082 | 13887 | #include "confdefs.h" |
698dcdb6 VZ |
13888 | #include <$ac_hdr> |
13889 | EOF | |
13890 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13891 | { (eval echo configure:13892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13892 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13893 | if test -z "$ac_err"; then | |
13894 | rm -rf conftest* | |
13895 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13896 | else |
698dcdb6 VZ |
13897 | echo "$ac_err" >&5 |
13898 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13899 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13900 | rm -rf conftest* |
13901 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13902 | fi |
698dcdb6 | 13903 | rm -f conftest* |
10f2d63a | 13904 | fi |
698dcdb6 VZ |
13905 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13906 | echo "$ac_t""yes" 1>&6 | |
13907 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13908 | cat >> confdefs.h <<EOF | |
13909 | #define $ac_tr_hdr 1 | |
10f2d63a | 13910 | EOF |
698dcdb6 VZ |
13911 | |
13912 | else | |
13913 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13914 | fi |
13915 | done | |
13916 | ||
9f8148b1 | 13917 | for ac_hdr in wcstr.h |
0fb0dd83 | 13918 | do |
698dcdb6 VZ |
13919 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13920 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13921 | echo "configure:13922: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13922 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13924 | else | |
13925 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13926 | #line 13927 "configure" |
0fb0dd83 | 13927 | #include "confdefs.h" |
698dcdb6 VZ |
13928 | #include <$ac_hdr> |
13929 | EOF | |
13930 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13931 | { (eval echo configure:13932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13932 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13933 | if test -z "$ac_err"; then | |
13934 | rm -rf conftest* | |
13935 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13936 | else |
698dcdb6 VZ |
13937 | echo "$ac_err" >&5 |
13938 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13939 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13940 | rm -rf conftest* |
13941 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13942 | fi |
698dcdb6 | 13943 | rm -f conftest* |
0fb0dd83 | 13944 | fi |
698dcdb6 VZ |
13945 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13946 | echo "$ac_t""yes" 1>&6 | |
13947 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13948 | cat >> confdefs.h <<EOF | |
13949 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13950 | EOF |
698dcdb6 VZ |
13951 | |
13952 | else | |
13953 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13954 | fi |
13955 | done | |
13956 | ||
9f8148b1 | 13957 | for ac_hdr in wctype.h |
1f8ae82f | 13958 | do |
698dcdb6 VZ |
13959 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13960 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 13961 | echo "configure:13962: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13962 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13964 | else | |
13965 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 13966 | #line 13967 "configure" |
1f8ae82f | 13967 | #include "confdefs.h" |
698dcdb6 VZ |
13968 | #include <$ac_hdr> |
13969 | EOF | |
13970 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 13971 | { (eval echo configure:13972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13972 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13973 | if test -z "$ac_err"; then | |
13974 | rm -rf conftest* | |
13975 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 13976 | else |
698dcdb6 VZ |
13977 | echo "$ac_err" >&5 |
13978 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 13979 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13980 | rm -rf conftest* |
13981 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 13982 | fi |
698dcdb6 | 13983 | rm -f conftest* |
1f8ae82f | 13984 | fi |
698dcdb6 VZ |
13985 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13986 | echo "$ac_t""yes" 1>&6 | |
13987 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13988 | cat >> confdefs.h <<EOF | |
13989 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13990 | EOF |
698dcdb6 VZ |
13991 | |
13992 | else | |
13993 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
13994 | fi |
13995 | done | |
13996 | ||
9f8148b1 | 13997 | for ac_hdr in fnmatch.h |
10f2d63a | 13998 | do |
698dcdb6 VZ |
13999 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14000 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 14001 | echo "configure:14002: checking for $ac_hdr" >&5 |
0fbb762e MB |
14002 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14004 | else | |
14005 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14006 | #line 14007 "configure" |
0fbb762e MB |
14007 | #include "confdefs.h" |
14008 | #include <$ac_hdr> | |
14009 | EOF | |
14010 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 14011 | { (eval echo configure:14012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
14012 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14013 | if test -z "$ac_err"; then | |
14014 | rm -rf conftest* | |
14015 | eval "ac_cv_header_$ac_safe=yes" | |
14016 | else | |
14017 | echo "$ac_err" >&5 | |
14018 | echo "configure: failed program was:" >&5 | |
14019 | cat conftest.$ac_ext >&5 | |
14020 | rm -rf conftest* | |
14021 | eval "ac_cv_header_$ac_safe=no" | |
14022 | fi | |
14023 | rm -f conftest* | |
14024 | fi | |
14025 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14026 | echo "$ac_t""yes" 1>&6 | |
14027 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14028 | cat >> confdefs.h <<EOF | |
14029 | #define $ac_tr_hdr 1 | |
14030 | EOF | |
14031 | ||
14032 | else | |
14033 | echo "$ac_t""no" 1>&6 | |
14034 | fi | |
14035 | done | |
14036 | ||
9f8148b1 GD |
14037 | for ac_hdr in langinfo.h |
14038 | do | |
14039 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14040 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 14041 | echo "configure:14042: checking for $ac_hdr" >&5 |
9f8148b1 GD |
14042 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14044 | else | |
14045 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14046 | #line 14047 "configure" |
9f8148b1 GD |
14047 | #include "confdefs.h" |
14048 | #include <$ac_hdr> | |
14049 | EOF | |
14050 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 14051 | { (eval echo configure:14052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
14052 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14053 | if test -z "$ac_err"; then | |
14054 | rm -rf conftest* | |
14055 | eval "ac_cv_header_$ac_safe=yes" | |
14056 | else | |
14057 | echo "$ac_err" >&5 | |
14058 | echo "configure: failed program was:" >&5 | |
14059 | cat conftest.$ac_ext >&5 | |
14060 | rm -rf conftest* | |
14061 | eval "ac_cv_header_$ac_safe=no" | |
14062 | fi | |
14063 | rm -f conftest* | |
14064 | fi | |
14065 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14066 | echo "$ac_t""yes" 1>&6 | |
14067 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14068 | cat >> confdefs.h <<EOF | |
14069 | #define $ac_tr_hdr 1 | |
14070 | EOF | |
14071 | ||
14072 | else | |
14073 | echo "$ac_t""no" 1>&6 | |
14074 | fi | |
14075 | done | |
14076 | ||
10f2d63a | 14077 | |
3a922bb4 RL |
14078 | if test "$wxUSE_GUI" = "yes"; then |
14079 | if test "$wxUSE_UNIX" = "yes"; then | |
14080 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
14081 | do |
14082 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14083 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 14084 | echo "configure:14085: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14085 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14087 | else | |
14088 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14089 | #line 14090 "configure" |
29fd3c0c VS |
14090 | #include "confdefs.h" |
14091 | #include <$ac_hdr> | |
14092 | EOF | |
14093 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 14094 | { (eval echo configure:14095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14095 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14096 | if test -z "$ac_err"; then | |
14097 | rm -rf conftest* | |
14098 | eval "ac_cv_header_$ac_safe=yes" | |
14099 | else | |
14100 | echo "$ac_err" >&5 | |
14101 | echo "configure: failed program was:" >&5 | |
14102 | cat conftest.$ac_ext >&5 | |
14103 | rm -rf conftest* | |
14104 | eval "ac_cv_header_$ac_safe=no" | |
14105 | fi | |
14106 | rm -f conftest* | |
14107 | fi | |
14108 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14109 | echo "$ac_t""yes" 1>&6 | |
14110 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14111 | cat >> confdefs.h <<EOF | |
14112 | #define $ac_tr_hdr 1 | |
14113 | EOF | |
14114 | ||
14115 | else | |
14116 | echo "$ac_t""no" 1>&6 | |
14117 | fi | |
14118 | done | |
14119 | ||
3a922bb4 | 14120 | fi |
29fd3c0c VS |
14121 | fi |
14122 | ||
698dcdb6 VZ |
14123 | |
14124 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
3c011993 | 14125 | echo "configure:14126: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
14126 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
14127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14128 | else |
698dcdb6 | 14129 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14130 | #line 14131 "configure" |
10f2d63a VZ |
14131 | #include "confdefs.h" |
14132 | #include <stdlib.h> | |
14133 | #include <stdarg.h> | |
14134 | #include <string.h> | |
14135 | #include <float.h> | |
698dcdb6 VZ |
14136 | EOF |
14137 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3c011993 | 14138 | { (eval echo configure:14139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14139 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14140 | if test -z "$ac_err"; then | |
14141 | rm -rf conftest* | |
10f2d63a VZ |
14142 | ac_cv_header_stdc=yes |
14143 | else | |
698dcdb6 VZ |
14144 | echo "$ac_err" >&5 |
14145 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14146 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14147 | rm -rf conftest* |
10f2d63a VZ |
14148 | ac_cv_header_stdc=no |
14149 | fi | |
698dcdb6 | 14150 | rm -f conftest* |
10f2d63a VZ |
14151 | |
14152 | if test $ac_cv_header_stdc = yes; then | |
14153 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 14154 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14155 | #line 14156 "configure" |
10f2d63a VZ |
14156 | #include "confdefs.h" |
14157 | #include <string.h> | |
698dcdb6 | 14158 | EOF |
10f2d63a VZ |
14159 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14160 | egrep "memchr" >/dev/null 2>&1; then | |
14161 | : | |
14162 | else | |
698dcdb6 | 14163 | rm -rf conftest* |
10f2d63a VZ |
14164 | ac_cv_header_stdc=no |
14165 | fi | |
14166 | rm -f conftest* | |
14167 | ||
14168 | fi | |
14169 | ||
14170 | if test $ac_cv_header_stdc = yes; then | |
14171 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 14172 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14173 | #line 14174 "configure" |
10f2d63a VZ |
14174 | #include "confdefs.h" |
14175 | #include <stdlib.h> | |
698dcdb6 | 14176 | EOF |
10f2d63a VZ |
14177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14178 | egrep "free" >/dev/null 2>&1; then | |
14179 | : | |
14180 | else | |
698dcdb6 | 14181 | rm -rf conftest* |
10f2d63a VZ |
14182 | ac_cv_header_stdc=no |
14183 | fi | |
14184 | rm -f conftest* | |
14185 | ||
14186 | fi | |
14187 | ||
14188 | if test $ac_cv_header_stdc = yes; then | |
14189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 14190 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
14191 | : |
14192 | else | |
698dcdb6 | 14193 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14194 | #line 14195 "configure" |
10f2d63a VZ |
14195 | #include "confdefs.h" |
14196 | #include <ctype.h> | |
698dcdb6 VZ |
14197 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
14198 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 14199 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
14200 | int main () { int i; for (i = 0; i < 256; i++) |
14201 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14202 | exit (0); } | |
14203 | ||
14204 | EOF | |
3c011993 | 14205 | if { (eval echo configure:14206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14206 | then |
10f2d63a VZ |
14207 | : |
14208 | else | |
698dcdb6 VZ |
14209 | echo "configure: failed program was:" >&5 |
14210 | cat conftest.$ac_ext >&5 | |
14211 | rm -fr conftest* | |
14212 | ac_cv_header_stdc=no | |
10f2d63a | 14213 | fi |
698dcdb6 | 14214 | rm -fr conftest* |
10f2d63a | 14215 | fi |
698dcdb6 | 14216 | |
10f2d63a VZ |
14217 | fi |
14218 | fi | |
1e487827 | 14219 | |
698dcdb6 VZ |
14220 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
14221 | if test $ac_cv_header_stdc = yes; then | |
14222 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14223 | #define STDC_HEADERS 1 |
14224 | EOF | |
14225 | ||
14226 | fi | |
14227 | ||
698dcdb6 | 14228 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
3c011993 | 14229 | echo "configure:14230: checking for mode_t" >&5 |
698dcdb6 VZ |
14230 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
14231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14232 | else |
698dcdb6 | 14233 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14234 | #line 14235 "configure" |
1e487827 | 14235 | #include "confdefs.h" |
698dcdb6 VZ |
14236 | #include <sys/types.h> |
14237 | #if STDC_HEADERS | |
14238 | #include <stdlib.h> | |
14239 | #include <stddef.h> | |
14240 | #endif | |
14241 | EOF | |
14242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14243 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14244 | rm -rf conftest* | |
10f2d63a VZ |
14245 | ac_cv_type_mode_t=yes |
14246 | else | |
698dcdb6 VZ |
14247 | rm -rf conftest* |
14248 | ac_cv_type_mode_t=no | |
703e0a69 | 14249 | fi |
698dcdb6 | 14250 | rm -f conftest* |
1e487827 | 14251 | |
698dcdb6 VZ |
14252 | fi |
14253 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14254 | if test $ac_cv_type_mode_t = no; then | |
14255 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14256 | #define mode_t int |
14257 | EOF | |
14258 | ||
14259 | fi | |
14260 | ||
698dcdb6 | 14261 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3c011993 | 14262 | echo "configure:14263: checking for off_t" >&5 |
698dcdb6 VZ |
14263 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
14264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14265 | else |
698dcdb6 | 14266 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14267 | #line 14268 "configure" |
10f2d63a | 14268 | #include "confdefs.h" |
698dcdb6 VZ |
14269 | #include <sys/types.h> |
14270 | #if STDC_HEADERS | |
14271 | #include <stdlib.h> | |
14272 | #include <stddef.h> | |
14273 | #endif | |
14274 | EOF | |
14275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14276 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14277 | rm -rf conftest* | |
10f2d63a VZ |
14278 | ac_cv_type_off_t=yes |
14279 | else | |
698dcdb6 VZ |
14280 | rm -rf conftest* |
14281 | ac_cv_type_off_t=no | |
703e0a69 | 14282 | fi |
698dcdb6 | 14283 | rm -f conftest* |
1e487827 | 14284 | |
698dcdb6 VZ |
14285 | fi |
14286 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14287 | if test $ac_cv_type_off_t = no; then | |
14288 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14289 | #define off_t long |
14290 | EOF | |
14291 | ||
14292 | fi | |
14293 | ||
698dcdb6 | 14294 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3c011993 | 14295 | echo "configure:14296: checking for pid_t" >&5 |
698dcdb6 VZ |
14296 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
14297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14298 | else |
698dcdb6 | 14299 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14300 | #line 14301 "configure" |
10f2d63a | 14301 | #include "confdefs.h" |
698dcdb6 VZ |
14302 | #include <sys/types.h> |
14303 | #if STDC_HEADERS | |
14304 | #include <stdlib.h> | |
14305 | #include <stddef.h> | |
14306 | #endif | |
14307 | EOF | |
14308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14309 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14310 | rm -rf conftest* | |
10f2d63a VZ |
14311 | ac_cv_type_pid_t=yes |
14312 | else | |
698dcdb6 VZ |
14313 | rm -rf conftest* |
14314 | ac_cv_type_pid_t=no | |
703e0a69 | 14315 | fi |
698dcdb6 | 14316 | rm -f conftest* |
1e487827 | 14317 | |
698dcdb6 VZ |
14318 | fi |
14319 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14320 | if test $ac_cv_type_pid_t = no; then | |
14321 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14322 | #define pid_t int |
14323 | EOF | |
14324 | ||
14325 | fi | |
14326 | ||
698dcdb6 | 14327 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3c011993 | 14328 | echo "configure:14329: checking for size_t" >&5 |
698dcdb6 VZ |
14329 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
14330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14331 | else |
698dcdb6 | 14332 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14333 | #line 14334 "configure" |
10f2d63a | 14334 | #include "confdefs.h" |
698dcdb6 VZ |
14335 | #include <sys/types.h> |
14336 | #if STDC_HEADERS | |
14337 | #include <stdlib.h> | |
14338 | #include <stddef.h> | |
14339 | #endif | |
14340 | EOF | |
14341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14342 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14343 | rm -rf conftest* | |
10f2d63a VZ |
14344 | ac_cv_type_size_t=yes |
14345 | else | |
698dcdb6 VZ |
14346 | rm -rf conftest* |
14347 | ac_cv_type_size_t=no | |
703e0a69 | 14348 | fi |
698dcdb6 | 14349 | rm -f conftest* |
1e487827 | 14350 | |
698dcdb6 VZ |
14351 | fi |
14352 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14353 | if test $ac_cv_type_size_t = no; then | |
14354 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14355 | #define size_t unsigned |
14356 | EOF | |
14357 | ||
14358 | fi | |
14359 | ||
698dcdb6 | 14360 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
3c011993 | 14361 | echo "configure:14362: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
14362 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
14363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14364 | else |
698dcdb6 | 14365 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14366 | #line 14367 "configure" |
10f2d63a VZ |
14367 | #include "confdefs.h" |
14368 | #include <sys/types.h> | |
698dcdb6 | 14369 | EOF |
10f2d63a VZ |
14370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14371 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 14372 | rm -rf conftest* |
10f2d63a VZ |
14373 | ac_cv_type_uid_t=yes |
14374 | else | |
698dcdb6 | 14375 | rm -rf conftest* |
10f2d63a VZ |
14376 | ac_cv_type_uid_t=no |
14377 | fi | |
14378 | rm -f conftest* | |
14379 | ||
14380 | fi | |
1e487827 | 14381 | |
698dcdb6 VZ |
14382 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
14383 | if test $ac_cv_type_uid_t = no; then | |
14384 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14385 | #define uid_t int |
14386 | EOF | |
14387 | ||
698dcdb6 | 14388 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14389 | #define gid_t int |
14390 | EOF | |
14391 | ||
14392 | fi | |
14393 | ||
1e487827 | 14394 | |
698dcdb6 | 14395 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
3c011993 | 14396 | echo "configure:14397: checking for wchar_t" >&5 |
698dcdb6 VZ |
14397 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
14398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14399 | else | |
14400 | ||
14401 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14402 | #line 14403 "configure" |
0046ff7c | 14403 | #include "confdefs.h" |
4b42290e GD |
14404 | |
14405 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
14406 | # ifdef __CYGWIN__ |
14407 | # include <stddef.h> | |
14408 | # endif | |
4b42290e GD |
14409 | # include <wchar.h> |
14410 | #endif | |
14411 | #ifdef HAVE_STDLIB_H | |
14412 | # include <stdlib.h> | |
14413 | #endif | |
14414 | ||
698dcdb6 | 14415 | int main() { |
0046ff7c | 14416 | |
d836ee96 VZ |
14417 | wchar_t wc, *ws; |
14418 | wc = L'a'; | |
14419 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
14420 | |
14421 | ; return 0; } | |
14422 | EOF | |
3c011993 | 14423 | if { (eval echo configure:14424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14424 | rm -rf conftest* |
1f8ae82f | 14425 | wx_cv_type_wchar_t=yes |
0046ff7c | 14426 | else |
698dcdb6 VZ |
14427 | echo "configure: failed program was:" >&5 |
14428 | cat conftest.$ac_ext >&5 | |
14429 | rm -rf conftest* | |
14430 | wx_cv_type_wchar_t=no | |
d836ee96 | 14431 | |
6232543b | 14432 | fi |
698dcdb6 | 14433 | rm -f conftest* |
703e0a69 | 14434 | |
1e487827 | 14435 | fi |
698dcdb6 VZ |
14436 | |
14437 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
14438 | |
14439 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 14440 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
14441 | #define wxUSE_WCHAR_T 1 |
14442 | EOF | |
14443 | ||
14444 | fi | |
14445 | ||
19af3b06 VZ |
14446 | |
14447 | ac_ext=C | |
14448 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14449 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14450 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14451 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14452 | cross_compiling=$ac_cv_prog_cxx_cross | |
14453 | ||
d836ee96 | 14454 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
3c011993 | 14455 | echo "configure:14456: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
14456 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
14457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14458 | else | |
dd2c8b7c | 14459 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14460 | #line 14461 "configure" |
d836ee96 VZ |
14461 | #include "confdefs.h" |
14462 | #include <stddef.h> | |
14463 | int main() { | |
14464 | ||
dd2c8b7c VZ |
14465 | return 0; } |
14466 | ||
d836ee96 | 14467 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
14468 | |
14469 | int bar() { | |
d836ee96 VZ |
14470 | |
14471 | ; return 0; } | |
14472 | EOF | |
3c011993 | 14473 | if { (eval echo configure:14474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14474 | rm -rf conftest* |
14475 | wx_cv_size_t_is_uint=no | |
14476 | else | |
14477 | echo "configure: failed program was:" >&5 | |
14478 | cat conftest.$ac_ext >&5 | |
14479 | rm -rf conftest* | |
14480 | wx_cv_size_t_is_uint=yes | |
14481 | ||
14482 | fi | |
14483 | rm -f conftest* | |
14484 | ||
14485 | fi | |
14486 | ||
14487 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14488 | ||
14489 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14490 | cat >> confdefs.h <<\EOF | |
14491 | #define wxSIZE_T_IS_UINT 1 | |
14492 | EOF | |
14493 | ||
14494 | else | |
14495 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
3c011993 | 14496 | echo "configure:14497: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
14497 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
14498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14499 | else | |
14500 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14501 | #line 14502 "configure" |
d836ee96 VZ |
14502 | #include "confdefs.h" |
14503 | #include <stddef.h> | |
14504 | int main() { | |
14505 | ||
dd2c8b7c VZ |
14506 | return 0; } |
14507 | ||
d836ee96 | 14508 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
14509 | |
14510 | int bar() { | |
d836ee96 VZ |
14511 | |
14512 | ; return 0; } | |
14513 | EOF | |
3c011993 | 14514 | if { (eval echo configure:14515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14515 | rm -rf conftest* |
14516 | wx_cv_size_t_is_ulong=no | |
14517 | else | |
14518 | echo "configure: failed program was:" >&5 | |
14519 | cat conftest.$ac_ext >&5 | |
14520 | rm -rf conftest* | |
14521 | wx_cv_size_t_is_ulong=yes | |
14522 | ||
14523 | fi | |
14524 | rm -f conftest* | |
14525 | ||
14526 | fi | |
14527 | ||
14528 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14529 | ||
14530 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14531 | cat >> confdefs.h <<\EOF | |
14532 | #define wxSIZE_T_IS_ULONG 1 | |
14533 | EOF | |
14534 | ||
14535 | fi | |
14536 | fi | |
14537 | ||
19af3b06 VZ |
14538 | ac_ext=c |
14539 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14540 | ac_cpp='$CPP $CPPFLAGS' | |
14541 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14542 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14543 | cross_compiling=$ac_cv_prog_cc_cross | |
14544 | ||
14545 | ||
1e487827 | 14546 | |
698dcdb6 | 14547 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
3c011993 | 14548 | echo "configure:14549: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
14549 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
14550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14551 | else | |
14552 | ||
14553 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14554 | #line 14555 "configure" |
b12915c1 VZ |
14555 | #include "confdefs.h" |
14556 | #include <pwd.h> | |
698dcdb6 | 14557 | int main() { |
b12915c1 VZ |
14558 | |
14559 | char *p; | |
14560 | struct passwd *pw; | |
14561 | p = pw->pw_gecos; | |
698dcdb6 VZ |
14562 | |
14563 | ; return 0; } | |
14564 | EOF | |
3c011993 | 14565 | if { (eval echo configure:14566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14566 | rm -rf conftest* |
14567 | ||
b12915c1 | 14568 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 14569 | |
b12915c1 | 14570 | else |
698dcdb6 VZ |
14571 | echo "configure: failed program was:" >&5 |
14572 | cat conftest.$ac_ext >&5 | |
14573 | rm -rf conftest* | |
14574 | ||
b12915c1 | 14575 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
14576 | |
14577 | ||
6232543b | 14578 | fi |
698dcdb6 VZ |
14579 | rm -f conftest* |
14580 | ||
703e0a69 | 14581 | |
1e487827 | 14582 | fi |
698dcdb6 VZ |
14583 | |
14584 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 14585 | |
bd3277fe | 14586 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 14587 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
14588 | #define HAVE_PW_GECOS 1 |
14589 | EOF | |
14590 | ||
14591 | fi | |
14592 | ||
698dcdb6 VZ |
14593 | |
14594 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
3c011993 | 14595 | echo "configure:14596: checking for working const" >&5 |
698dcdb6 VZ |
14596 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
14597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14598 | else |
698dcdb6 | 14599 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14600 | #line 14601 "configure" |
10f2d63a | 14601 | #include "confdefs.h" |
698dcdb6 VZ |
14602 | |
14603 | int main() { | |
14604 | ||
14605 | /* Ultrix mips cc rejects this. */ | |
4cdb0ab0 | 14606 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
14607 | /* SunOS 4.1.1 cc rejects this. */ |
14608 | char const *const *ccp; | |
14609 | char **p; | |
14610 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14611 | struct point {int x, y;}; | |
14612 | static struct point const zero = {0,0}; | |
14613 | /* AIX XL C 1.02.0.0 rejects this. | |
14614 | It does not let you subtract one const X* pointer from another in an arm | |
14615 | of an if-expression whose if-part is not a constant expression */ | |
14616 | const char *g = "string"; | |
14617 | ccp = &g + (g ? g-g : 0); | |
14618 | /* HPUX 7.0 cc rejects these. */ | |
14619 | ++ccp; | |
14620 | p = (char**) ccp; | |
14621 | ccp = (char const *const *) p; | |
14622 | { /* SCO 3.2v4 cc rejects this. */ | |
14623 | char *t; | |
14624 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14625 | ||
14626 | *t++ = 0; | |
10f2d63a | 14627 | } |
698dcdb6 VZ |
14628 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14629 | int x[] = {25, 17}; | |
14630 | const int *foo = &x[0]; | |
14631 | ++foo; | |
703e0a69 | 14632 | } |
698dcdb6 VZ |
14633 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14634 | typedef const int *iptr; | |
14635 | iptr p = 0; | |
14636 | ++p; | |
6232543b | 14637 | } |
698dcdb6 VZ |
14638 | { /* AIX XL C 1.02.0.0 rejects this saying |
14639 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14640 | struct s { int j; const int *ap[3]; }; | |
14641 | struct s *b; b->j = 5; | |
1e487827 | 14642 | } |
698dcdb6 VZ |
14643 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14644 | const int foo = 10; | |
14645 | } | |
4f14bcd8 GD |
14646 | |
14647 | ; return 0; } | |
698dcdb6 | 14648 | EOF |
3c011993 | 14649 | if { (eval echo configure:14650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14650 | rm -rf conftest* |
14651 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14652 | else |
14653 | echo "configure: failed program was:" >&5 | |
14654 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14655 | rm -rf conftest* |
14656 | ac_cv_c_const=no | |
703e0a69 | 14657 | fi |
4f14bcd8 | 14658 | rm -f conftest* |
698dcdb6 VZ |
14659 | fi |
14660 | ||
4f14bcd8 GD |
14661 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14662 | if test $ac_cv_c_const = no; then | |
14663 | cat >> confdefs.h <<\EOF | |
14664 | #define const | |
698dcdb6 VZ |
14665 | EOF |
14666 | ||
4f14bcd8 | 14667 | fi |
698dcdb6 | 14668 | |
4f14bcd8 | 14669 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3c011993 | 14670 | echo "configure:14671: checking for inline" >&5 |
4f14bcd8 | 14671 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14672 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14673 | else |
4f14bcd8 GD |
14674 | ac_cv_c_inline=no |
14675 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14676 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14677 | #line 14678 "configure" |
10f2d63a | 14678 | #include "confdefs.h" |
4f14bcd8 GD |
14679 | |
14680 | int main() { | |
4cdb0ab0 | 14681 | } $ac_kw foo() { |
4f14bcd8 | 14682 | ; return 0; } |
698dcdb6 | 14683 | EOF |
3c011993 | 14684 | if { (eval echo configure:14685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14685 | rm -rf conftest* |
14686 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14687 | else |
698dcdb6 VZ |
14688 | echo "configure: failed program was:" >&5 |
14689 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14690 | fi |
4f14bcd8 GD |
14691 | rm -f conftest* |
14692 | done | |
698dcdb6 | 14693 | |
10f2d63a | 14694 | fi |
4f14bcd8 GD |
14695 | |
14696 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14697 | case "$ac_cv_c_inline" in | |
14698 | inline | yes) ;; | |
14699 | no) cat >> confdefs.h <<\EOF | |
14700 | #define inline | |
14701 | EOF | |
14702 | ;; | |
14703 | *) cat >> confdefs.h <<EOF | |
14704 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14705 | EOF |
4f14bcd8 GD |
14706 | ;; |
14707 | esac | |
698dcdb6 VZ |
14708 | |
14709 | ||
4f14bcd8 | 14710 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
3c011993 | 14711 | echo "configure:14712: checking size of char" >&5 |
4f14bcd8 | 14712 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14713 | echo $ac_n "(cached) $ac_c" 1>&6 |
14714 | else | |
14715 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14716 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14717 | else |
14718 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14719 | #line 14720 "configure" |
698dcdb6 VZ |
14720 | #include "confdefs.h" |
14721 | #include <stdio.h> | |
cb61c62d | 14722 | main() |
698dcdb6 VZ |
14723 | { |
14724 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14725 | if (!f) exit(1); |
4f14bcd8 | 14726 | fprintf(f, "%d\n", sizeof(char)); |
cb61c62d | 14727 | exit(0); |
698dcdb6 VZ |
14728 | } |
14729 | EOF | |
3c011993 | 14730 | if { (eval echo configure:14731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14731 | then |
4f14bcd8 | 14732 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14733 | else |
698dcdb6 VZ |
14734 | echo "configure: failed program was:" >&5 |
14735 | cat conftest.$ac_ext >&5 | |
14736 | rm -fr conftest* | |
4f14bcd8 | 14737 | ac_cv_sizeof_char=0 |
6232543b | 14738 | fi |
698dcdb6 VZ |
14739 | rm -fr conftest* |
14740 | fi | |
14741 | ||
703e0a69 | 14742 | fi |
4f14bcd8 | 14743 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14744 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14745 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14746 | EOF |
14747 | ||
1e487827 | 14748 | |
4f14bcd8 | 14749 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3c011993 | 14750 | echo "configure:14751: checking size of short" >&5 |
4f14bcd8 | 14751 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14752 | echo $ac_n "(cached) $ac_c" 1>&6 |
14753 | else | |
4f14bcd8 GD |
14754 | if test "$cross_compiling" = yes; then |
14755 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14756 | else |
698dcdb6 | 14757 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14758 | #line 14759 "configure" |
b93d0d08 | 14759 | #include "confdefs.h" |
4f14bcd8 | 14760 | #include <stdio.h> |
cb61c62d | 14761 | main() |
4f14bcd8 GD |
14762 | { |
14763 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14764 | if (!f) exit(1); |
4f14bcd8 | 14765 | fprintf(f, "%d\n", sizeof(short)); |
cb61c62d | 14766 | exit(0); |
4f14bcd8 | 14767 | } |
698dcdb6 | 14768 | EOF |
3c011993 | 14769 | if { (eval echo configure:14770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14770 | then |
4f14bcd8 | 14771 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14772 | else |
698dcdb6 VZ |
14773 | echo "configure: failed program was:" >&5 |
14774 | cat conftest.$ac_ext >&5 | |
14775 | rm -fr conftest* | |
4f14bcd8 | 14776 | ac_cv_sizeof_short=0 |
b93d0d08 | 14777 | fi |
698dcdb6 | 14778 | rm -fr conftest* |
b93d0d08 VS |
14779 | fi |
14780 | ||
b93d0d08 | 14781 | fi |
4f14bcd8 | 14782 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14783 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14784 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14785 | EOF |
14786 | ||
698dcdb6 | 14787 | |
4f14bcd8 | 14788 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
3c011993 | 14789 | echo "configure:14790: checking size of int *" >&5 |
4f14bcd8 | 14790 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 14791 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14792 | else |
4f14bcd8 GD |
14793 | if test "$cross_compiling" = yes; then |
14794 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 14795 | else |
3a922bb4 | 14796 | cat > conftest.$ac_ext <<EOF |
3c011993 | 14797 | #line 14798 "configure" |
3a922bb4 | 14798 | #include "confdefs.h" |
4f14bcd8 | 14799 | #include <stdio.h> |
cb61c62d | 14800 | main() |
4f14bcd8 GD |
14801 | { |
14802 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14803 | if (!f) exit(1); |
4f14bcd8 | 14804 | fprintf(f, "%d\n", sizeof(int *)); |
cb61c62d | 14805 | exit(0); |
4f14bcd8 GD |
14806 | } |
14807 | EOF | |
3c011993 | 14808 | if { (eval echo configure:14809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14809 | then |
14810 | ac_cv_sizeof_int_p=`cat conftestval` | |
14811 | else | |
14812 | echo "configure: failed program was:" >&5 | |
14813 | cat conftest.$ac_ext >&5 | |
14814 | rm -fr conftest* | |
14815 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 14816 | fi |
4f14bcd8 | 14817 | rm -fr conftest* |
3a922bb4 | 14818 | fi |
698dcdb6 | 14819 | |
4f14bcd8 GD |
14820 | fi |
14821 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
14822 | cat >> confdefs.h <<EOF | |
14823 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
14824 | EOF |
14825 | ||
703e0a69 | 14826 | |
4f14bcd8 | 14827 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3c011993 | 14828 | echo "configure:14829: checking size of int" >&5 |
4f14bcd8 | 14829 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14830 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14831 | else |
14832 | if test "$cross_compiling" = yes; then | |
14833 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14834 | else |
14835 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14836 | #line 14837 "configure" |
10f2d63a | 14837 | #include "confdefs.h" |
4f14bcd8 | 14838 | #include <stdio.h> |
cb61c62d | 14839 | main() |
4f14bcd8 GD |
14840 | { |
14841 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14842 | if (!f) exit(1); |
4f14bcd8 | 14843 | fprintf(f, "%d\n", sizeof(int)); |
cb61c62d | 14844 | exit(0); |
4f14bcd8 | 14845 | } |
698dcdb6 | 14846 | EOF |
3c011993 | 14847 | if { (eval echo configure:14848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14848 | then |
14849 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14850 | else |
698dcdb6 | 14851 | echo "configure: failed program was:" >&5 |
10f2d63a | 14852 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14853 | rm -fr conftest* |
14854 | ac_cv_sizeof_int=0 | |
10f2d63a | 14855 | fi |
4f14bcd8 | 14856 | rm -fr conftest* |
10f2d63a | 14857 | fi |
10f2d63a | 14858 | |
4f14bcd8 GD |
14859 | fi |
14860 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14861 | cat >> confdefs.h <<EOF | |
14862 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14863 | EOF |
14864 | ||
698dcdb6 | 14865 | |
4f14bcd8 | 14866 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3c011993 | 14867 | echo "configure:14868: checking size of long" >&5 |
4f14bcd8 | 14868 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14869 | echo $ac_n "(cached) $ac_c" 1>&6 |
14870 | else | |
4f14bcd8 GD |
14871 | if test "$cross_compiling" = yes; then |
14872 | ac_cv_sizeof_long=4 | |
14873 | else | |
14874 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14875 | #line 14876 "configure" |
10f2d63a | 14876 | #include "confdefs.h" |
4f14bcd8 | 14877 | #include <stdio.h> |
cb61c62d | 14878 | main() |
4f14bcd8 GD |
14879 | { |
14880 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14881 | if (!f) exit(1); |
4f14bcd8 | 14882 | fprintf(f, "%d\n", sizeof(long)); |
cb61c62d | 14883 | exit(0); |
4f14bcd8 | 14884 | } |
698dcdb6 | 14885 | EOF |
3c011993 | 14886 | if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14887 | then |
14888 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14889 | else |
698dcdb6 VZ |
14890 | echo "configure: failed program was:" >&5 |
14891 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14892 | rm -fr conftest* |
14893 | ac_cv_sizeof_long=0 | |
10f2d63a | 14894 | fi |
4f14bcd8 | 14895 | rm -fr conftest* |
10f2d63a | 14896 | fi |
698dcdb6 | 14897 | |
4f14bcd8 GD |
14898 | fi |
14899 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14900 | cat >> confdefs.h <<EOF | |
14901 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14902 | EOF |
14903 | ||
698dcdb6 | 14904 | |
4f14bcd8 | 14905 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
3c011993 | 14906 | echo "configure:14907: checking size of long long" >&5 |
4f14bcd8 | 14907 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14908 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14909 | else |
4f14bcd8 GD |
14910 | if test "$cross_compiling" = yes; then |
14911 | ac_cv_sizeof_long_long=0 | |
14912 | else | |
14913 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14914 | #line 14915 "configure" |
10f2d63a | 14915 | #include "confdefs.h" |
4f14bcd8 | 14916 | #include <stdio.h> |
cb61c62d | 14917 | main() |
4f14bcd8 GD |
14918 | { |
14919 | FILE *f=fopen("conftestval", "w"); | |
cb61c62d | 14920 | if (!f) exit(1); |
4f14bcd8 | 14921 | fprintf(f, "%d\n", sizeof(long long)); |
cb61c62d | 14922 | exit(0); |
4f14bcd8 | 14923 | } |
698dcdb6 | 14924 | EOF |
3c011993 | 14925 | if { (eval echo configure:14926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14926 | then |
14927 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14928 | else |
14929 | echo "configure: failed program was:" >&5 | |
14930 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14931 | rm -fr conftest* |
14932 | ac_cv_sizeof_long_long=0 | |
14933 | fi | |
14934 | rm -fr conftest* | |
698dcdb6 | 14935 | fi |
698dcdb6 VZ |
14936 | |
14937 | fi | |
4f14bcd8 GD |
14938 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14939 | cat >> confdefs.h <<EOF | |
14940 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14941 | EOF |
14942 | ||
10f2d63a | 14943 | |
4f14bcd8 GD |
14944 | |
14945 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
3c011993 | 14946 | echo "configure:14947: checking size of wchar_t" >&5 |
4f14bcd8 | 14947 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14948 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14949 | else |
4f14bcd8 GD |
14950 | |
14951 | if test "$cross_compiling" = yes; then | |
14952 | wx_cv_sizeof_wchar_t=4 | |
14953 | ||
14954 | else | |
14955 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 14956 | #line 14957 "configure" |
10f2d63a | 14957 | #include "confdefs.h" |
698dcdb6 | 14958 | |
4f14bcd8 | 14959 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14960 | # ifdef __CYGWIN__ |
14961 | # include <stddef.h> | |
14962 | # endif | |
4f14bcd8 GD |
14963 | # include <wchar.h> |
14964 | #endif | |
14965 | #ifdef HAVE_STDLIB_H | |
14966 | # include <stdlib.h> | |
14967 | #endif | |
14968 | #include <stdio.h> | |
14969 | int main() | |
14970 | { | |
14971 | FILE *f=fopen("conftestval", "w"); | |
14972 | if (!f) exit(1); | |
14973 | fprintf(f, "%i", sizeof(wchar_t)); | |
14974 | exit(0); | |
14975 | } | |
14976 | ||
698dcdb6 | 14977 | EOF |
3c011993 | 14978 | if { (eval echo configure:14979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14979 | then |
14980 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14981 | else |
14982 | echo "configure: failed program was:" >&5 | |
14983 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14984 | rm -fr conftest* |
14985 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14986 | fi |
4f14bcd8 GD |
14987 | rm -fr conftest* |
14988 | fi | |
14989 | ||
698dcdb6 VZ |
14990 | |
14991 | fi | |
4f14bcd8 GD |
14992 | |
14993 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
14994 | ||
14995 | cat >> confdefs.h <<EOF | |
14996 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
14997 | EOF |
14998 | ||
18dbb1f6 | 14999 | |
4f14bcd8 | 15000 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3c011993 | 15001 | echo "configure:15002: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 15002 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
15003 | echo $ac_n "(cached) $ac_c" 1>&6 |
15004 | else | |
4f14bcd8 GD |
15005 | ac_cv_c_bigendian=unknown |
15006 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 15007 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15008 | #line 15009 "configure" |
18dbb1f6 | 15009 | #include "confdefs.h" |
4f14bcd8 GD |
15010 | #include <sys/types.h> |
15011 | #include <sys/param.h> | |
15012 | int main() { | |
18dbb1f6 | 15013 | |
4f14bcd8 GD |
15014 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
15015 | bogus endian macros | |
15016 | #endif | |
15017 | ; return 0; } | |
15018 | EOF | |
3c011993 | 15019 | if { (eval echo configure:15020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15020 | rm -rf conftest* |
15021 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15022 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15023 | #line 15024 "configure" |
4f14bcd8 GD |
15024 | #include "confdefs.h" |
15025 | #include <sys/types.h> | |
15026 | #include <sys/param.h> | |
18dbb1f6 | 15027 | int main() { |
4f14bcd8 GD |
15028 | |
15029 | #if BYTE_ORDER != BIG_ENDIAN | |
15030 | not big endian | |
15031 | #endif | |
18dbb1f6 VZ |
15032 | ; return 0; } |
15033 | EOF | |
3c011993 | 15034 | if { (eval echo configure:15035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 15035 | rm -rf conftest* |
4f14bcd8 | 15036 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
15037 | else |
15038 | echo "configure: failed program was:" >&5 | |
15039 | cat conftest.$ac_ext >&5 | |
15040 | rm -rf conftest* | |
4f14bcd8 | 15041 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
15042 | fi |
15043 | rm -f conftest* | |
698dcdb6 | 15044 | else |
4f14bcd8 GD |
15045 | echo "configure: failed program was:" >&5 |
15046 | cat conftest.$ac_ext >&5 | |
1e487827 | 15047 | fi |
4f14bcd8 GD |
15048 | rm -f conftest* |
15049 | if test $ac_cv_c_bigendian = unknown; then | |
15050 | if test "$cross_compiling" = yes; then | |
15051 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
15052 | else |
15053 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15054 | #line 15055 "configure" |
b3e8d00a | 15055 | #include "confdefs.h" |
4f14bcd8 GD |
15056 | main () { |
15057 | /* Are we little or big endian? From Harbison&Steele. */ | |
15058 | union | |
15059 | { | |
15060 | long l; | |
15061 | char c[sizeof (long)]; | |
15062 | } u; | |
15063 | u.l = 1; | |
15064 | exit (u.c[sizeof (long) - 1] == 1); | |
15065 | } | |
b3e8d00a | 15066 | EOF |
3c011993 | 15067 | if { (eval echo configure:15068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
15068 | then |
15069 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
15070 | else |
15071 | echo "configure: failed program was:" >&5 | |
15072 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15073 | rm -fr conftest* |
15074 | ac_cv_c_bigendian=yes | |
b3e8d00a | 15075 | fi |
4f14bcd8 | 15076 | rm -fr conftest* |
b3e8d00a VZ |
15077 | fi |
15078 | ||
4f14bcd8 GD |
15079 | fi |
15080 | fi | |
15081 | ||
15082 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15083 | if test $ac_cv_c_bigendian = unknown; then | |
15084 | 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 | |
15085 | fi | |
15086 | if test $ac_cv_c_bigendian = yes; then | |
15087 | cat >> confdefs.h <<\EOF | |
15088 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 15089 | EOF |
4f14bcd8 | 15090 | |
b3e8d00a | 15091 | fi |
b3e8d00a VZ |
15092 | |
15093 | ||
4f14bcd8 | 15094 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
3c011993 | 15095 | echo "configure:15096: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
15096 | if test -z "$CXXCPP"; then |
15097 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
15098 | echo $ac_n "(cached) $ac_c" 1>&6 |
15099 | else | |
4f14bcd8 GD |
15100 | ac_ext=C |
15101 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15102 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15103 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15104 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15105 | cross_compiling=$ac_cv_prog_cxx_cross | |
15106 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 15107 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15108 | #line 15109 "configure" |
10f2d63a | 15109 | #include "confdefs.h" |
4f14bcd8 | 15110 | #include <stdlib.h> |
698dcdb6 | 15111 | EOF |
4f14bcd8 | 15112 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3c011993 | 15113 | { (eval echo configure:15114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15114 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15115 | if test -z "$ac_err"; then | |
15116 | : | |
698dcdb6 | 15117 | else |
4f14bcd8 | 15118 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15119 | echo "configure: failed program was:" >&5 |
15120 | cat conftest.$ac_ext >&5 | |
15121 | rm -rf conftest* | |
4f14bcd8 | 15122 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
15123 | fi |
15124 | rm -f conftest* | |
4f14bcd8 GD |
15125 | ac_cv_prog_CXXCPP="$CXXCPP" |
15126 | ac_ext=C | |
15127 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15128 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15129 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15130 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15131 | cross_compiling=$ac_cv_prog_cxx_cross | |
15132 | fi | |
698dcdb6 | 15133 | fi |
4f14bcd8 GD |
15134 | CXXCPP="$ac_cv_prog_CXXCPP" |
15135 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 15136 | |
4f14bcd8 GD |
15137 | |
15138 | if test "$cross_compiling" = "yes"; then | |
15139 | cat >> confdefs.h <<\EOF | |
15140 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
15141 | EOF |
15142 | ||
4f14bcd8 GD |
15143 | else |
15144 | ||
15145 | ac_ext=C | |
15146 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15147 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15148 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15149 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15150 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 15151 | |
4f14bcd8 GD |
15152 | |
15153 | for ac_hdr in iostream | |
15154 | do | |
15155 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15156 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 15157 | echo "configure:15158: checking for $ac_hdr" >&5 |
4f14bcd8 | 15158 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
15159 | echo $ac_n "(cached) $ac_c" 1>&6 |
15160 | else | |
15161 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15162 | #line 15163 "configure" |
10f2d63a | 15163 | #include "confdefs.h" |
4f14bcd8 | 15164 | #include <$ac_hdr> |
698dcdb6 | 15165 | EOF |
4f14bcd8 | 15166 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3c011993 | 15167 | { (eval echo configure:15168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15168 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15169 | if test -z "$ac_err"; then | |
698dcdb6 | 15170 | rm -rf conftest* |
4f14bcd8 | 15171 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 15172 | else |
4f14bcd8 | 15173 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15174 | echo "configure: failed program was:" >&5 |
15175 | cat conftest.$ac_ext >&5 | |
15176 | rm -rf conftest* | |
4f14bcd8 | 15177 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
15178 | fi |
15179 | rm -f conftest* | |
15180 | fi | |
4f14bcd8 | 15181 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 15182 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15183 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15184 | cat >> confdefs.h <<EOF | |
15185 | #define $ac_tr_hdr 1 | |
10f2d63a | 15186 | EOF |
4f14bcd8 | 15187 | |
698dcdb6 VZ |
15188 | else |
15189 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15190 | fi |
4f14bcd8 | 15191 | done |
10f2d63a | 15192 | |
10f2d63a | 15193 | |
4f14bcd8 GD |
15194 | if test "$ac_cv_header_iostream" = "yes" ; then |
15195 | : | |
15196 | else | |
15197 | cat >> confdefs.h <<\EOF | |
15198 | #define wxUSE_IOSTREAMH 1 | |
15199 | EOF | |
15200 | ||
15201 | fi | |
1e487827 | 15202 | |
4f14bcd8 GD |
15203 | ac_ext=c |
15204 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15205 | ac_cpp='$CPP $CPPFLAGS' | |
15206 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15207 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15208 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15209 | |
4f14bcd8 | 15210 | fi |
698dcdb6 VZ |
15211 | |
15212 | ||
15213 | ||
4f14bcd8 | 15214 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
3c011993 | 15215 | echo "configure:15216: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 15216 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
15217 | echo $ac_n "(cached) $ac_c" 1>&6 |
15218 | else | |
15219 | ||
4f14bcd8 GD |
15220 | |
15221 | ac_ext=C | |
15222 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15223 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15224 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15225 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15226 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 15227 | |
10f2d63a | 15228 | |
4f14bcd8 | 15229 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15230 | #line 15231 "configure" |
4f14bcd8 | 15231 | #include "confdefs.h" |
10f2d63a | 15232 | |
4f14bcd8 GD |
15233 | |
15234 | int main() { | |
f6bcfd97 | 15235 | |
4f14bcd8 | 15236 | bool b = true; |
f6bcfd97 | 15237 | |
4f14bcd8 GD |
15238 | return 0; |
15239 | ||
698dcdb6 VZ |
15240 | ; return 0; } |
15241 | EOF | |
3c011993 | 15242 | if { (eval echo configure:15243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15243 | rm -rf conftest* |
15244 | ||
4f14bcd8 GD |
15245 | wx_cv_cpp_bool=yes |
15246 | ||
10f2d63a | 15247 | else |
698dcdb6 VZ |
15248 | echo "configure: failed program was:" >&5 |
15249 | cat conftest.$ac_ext >&5 | |
15250 | rm -rf conftest* | |
15251 | ||
4f14bcd8 GD |
15252 | wx_cv_cpp_bool=no |
15253 | ||
15254 | ||
15255 | fi | |
15256 | rm -f conftest* | |
c521c494 | 15257 | |
4f14bcd8 GD |
15258 | ac_ext=c |
15259 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15260 | ac_cpp='$CPP $CPPFLAGS' | |
15261 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15262 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15263 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 15264 | |
4f14bcd8 GD |
15265 | |
15266 | fi | |
c521c494 | 15267 | |
4f14bcd8 | 15268 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 15269 | |
4f14bcd8 GD |
15270 | if test "$wx_cv_cpp_bool" = "yes"; then |
15271 | cat >> confdefs.h <<\EOF | |
15272 | #define HAVE_BOOL 1 | |
15273 | EOF | |
c521c494 | 15274 | |
4f14bcd8 GD |
15275 | fi |
15276 | ||
15277 | ||
15278 | ||
15279 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
3c011993 | 15280 | echo "configure:15281: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
15281 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
15282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15284 | else | |
15285 | ac_save_LIBS="$LIBS" | |
15286 | LIBS="-lc $LIBS" | |
15287 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15288 | #line 15289 "configure" |
4f14bcd8 GD |
15289 | #include "confdefs.h" |
15290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15291 | /* We use char because int might match the return type of a gcc2 | |
15292 | builtin and then its argument prototype would still apply. */ | |
15293 | char wcslen(); | |
15294 | ||
15295 | int main() { | |
15296 | wcslen() | |
698dcdb6 VZ |
15297 | ; return 0; } |
15298 | EOF | |
3c011993 | 15299 | if { (eval echo configure:15300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15300 | rm -rf conftest* |
4f14bcd8 | 15301 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 15302 | else |
698dcdb6 VZ |
15303 | echo "configure: failed program was:" >&5 |
15304 | cat conftest.$ac_ext >&5 | |
15305 | rm -rf conftest* | |
4f14bcd8 | 15306 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15307 | fi |
698dcdb6 | 15308 | rm -f conftest* |
4f14bcd8 | 15309 | LIBS="$ac_save_LIBS" |
703e0a69 | 15310 | |
1e487827 | 15311 | fi |
4f14bcd8 GD |
15312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15313 | echo "$ac_t""yes" 1>&6 | |
15314 | ||
15315 | cat >> confdefs.h <<\EOF | |
15316 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15317 | EOF |
15318 | ||
3d63bc3a | 15319 | WCHAR_LINK= |
4f14bcd8 | 15320 | |
9d8deca0 | 15321 | else |
4f14bcd8 | 15322 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 15323 | |
4f14bcd8 | 15324 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
3c011993 | 15325 | echo "configure:15326: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
15326 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15327 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 15328 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15329 | else |
4f14bcd8 GD |
15330 | ac_save_LIBS="$LIBS" |
15331 | LIBS="-lw $LIBS" | |
15332 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15333 | #line 15334 "configure" |
10f2d63a | 15334 | #include "confdefs.h" |
4f14bcd8 GD |
15335 | /* Override any gcc2 internal prototype to avoid an error. */ |
15336 | /* We use char because int might match the return type of a gcc2 | |
15337 | builtin and then its argument prototype would still apply. */ | |
15338 | char wcslen(); | |
10f2d63a | 15339 | |
698dcdb6 | 15340 | int main() { |
4f14bcd8 | 15341 | wcslen() |
698dcdb6 VZ |
15342 | ; return 0; } |
15343 | EOF | |
3c011993 | 15344 | if { (eval echo configure:15345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15345 | rm -rf conftest* |
4f14bcd8 | 15346 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15347 | else |
698dcdb6 VZ |
15348 | echo "configure: failed program was:" >&5 |
15349 | cat conftest.$ac_ext >&5 | |
15350 | rm -rf conftest* | |
4f14bcd8 | 15351 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15352 | fi |
698dcdb6 | 15353 | rm -f conftest* |
4f14bcd8 | 15354 | LIBS="$ac_save_LIBS" |
703e0a69 | 15355 | |
1e487827 | 15356 | fi |
4f14bcd8 GD |
15357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15358 | echo "$ac_t""yes" 1>&6 | |
15359 | ||
15360 | cat >> confdefs.h <<\EOF | |
15361 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15362 | EOF |
15363 | ||
3d63bc3a | 15364 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
15365 | |
15366 | else | |
15367 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 15368 | |
4f14bcd8 | 15369 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
3c011993 | 15370 | echo "configure:15371: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
15371 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15372 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15373 | echo $ac_n "(cached) $ac_c" 1>&6 |
15374 | else | |
4f14bcd8 GD |
15375 | ac_save_LIBS="$LIBS" |
15376 | LIBS="-lmsvcrt $LIBS" | |
15377 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15378 | #line 15379 "configure" |
95c8801c | 15379 | #include "confdefs.h" |
4f14bcd8 GD |
15380 | /* Override any gcc2 internal prototype to avoid an error. */ |
15381 | /* We use char because int might match the return type of a gcc2 | |
15382 | builtin and then its argument prototype would still apply. */ | |
15383 | char wcslen(); | |
95c8801c | 15384 | |
4f14bcd8 GD |
15385 | int main() { |
15386 | wcslen() | |
698dcdb6 VZ |
15387 | ; return 0; } |
15388 | EOF | |
3c011993 | 15389 | if { (eval echo configure:15390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15390 | rm -rf conftest* |
4f14bcd8 | 15391 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15392 | else |
698dcdb6 VZ |
15393 | echo "configure: failed program was:" >&5 |
15394 | cat conftest.$ac_ext >&5 | |
15395 | rm -rf conftest* | |
4f14bcd8 | 15396 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15397 | fi |
698dcdb6 | 15398 | rm -f conftest* |
4f14bcd8 | 15399 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15400 | |
15401 | fi | |
4f14bcd8 GD |
15402 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15403 | echo "$ac_t""yes" 1>&6 | |
15404 | ||
15405 | cat >> confdefs.h <<\EOF | |
15406 | #define HAVE_WCSLEN 1 | |
15407 | EOF | |
698dcdb6 | 15408 | |
3d63bc3a | 15409 | WCHAR_LINK= |
4f14bcd8 GD |
15410 | |
15411 | else | |
15412 | echo "$ac_t""no" 1>&6 | |
15413 | fi | |
10f2d63a | 15414 | |
4f14bcd8 GD |
15415 | |
15416 | fi | |
95c8801c | 15417 | |
4f14bcd8 | 15418 | |
95c8801c | 15419 | fi |
10f2d63a | 15420 | |
1e487827 | 15421 | |
4f14bcd8 | 15422 | for ac_func in wcsrtombs |
eb4efbdc | 15423 | do |
698dcdb6 | 15424 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 15425 | echo "configure:15426: checking for $ac_func" >&5 |
698dcdb6 VZ |
15426 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15428 | else | |
15429 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15430 | #line 15431 "configure" |
eb4efbdc VZ |
15431 | #include "confdefs.h" |
15432 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15433 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15434 | #include <assert.h> |
15435 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15436 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15437 | builtin and then its argument prototype would still apply. */ |
15438 | char $ac_func(); | |
15439 | ||
15440 | int main() { | |
eb4efbdc VZ |
15441 | |
15442 | /* The GNU C library defines this for functions which it implements | |
15443 | to always fail with ENOSYS. Some functions are actually named | |
15444 | something starting with __ and the normal name is an alias. */ | |
15445 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15446 | choke me | |
15447 | #else | |
698dcdb6 | 15448 | $ac_func(); |
eb4efbdc VZ |
15449 | #endif |
15450 | ||
698dcdb6 | 15451 | ; return 0; } |
eb4efbdc | 15452 | EOF |
3c011993 | 15453 | if { (eval echo configure:15454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15454 | rm -rf conftest* |
15455 | eval "ac_cv_func_$ac_func=yes" | |
15456 | else | |
15457 | echo "configure: failed program was:" >&5 | |
15458 | cat conftest.$ac_ext >&5 | |
15459 | rm -rf conftest* | |
15460 | eval "ac_cv_func_$ac_func=no" | |
15461 | fi | |
15462 | rm -f conftest* | |
15463 | fi | |
eb4efbdc | 15464 | |
698dcdb6 VZ |
15465 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15466 | echo "$ac_t""yes" 1>&6 | |
15467 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15468 | cat >> confdefs.h <<EOF | |
15469 | #define $ac_tr_func 1 | |
15470 | EOF | |
15471 | ||
15472 | else | |
15473 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15474 | fi |
15475 | done | |
15476 | ||
698dcdb6 | 15477 | |
4f14bcd8 | 15478 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
3c011993 | 15479 | echo "configure:15480: checking for vprintf" >&5 |
4f14bcd8 | 15480 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15481 | echo $ac_n "(cached) $ac_c" 1>&6 |
15482 | else | |
4f14bcd8 | 15483 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15484 | #line 15485 "configure" |
f6bcfd97 | 15485 | #include "confdefs.h" |
4f14bcd8 GD |
15486 | /* System header to define __stub macros and hopefully few prototypes, |
15487 | which can conflict with char vprintf(); below. */ | |
15488 | #include <assert.h> | |
15489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15490 | /* We use char because int might match the return type of a gcc2 | |
15491 | builtin and then its argument prototype would still apply. */ | |
15492 | char vprintf(); | |
15493 | ||
698dcdb6 | 15494 | int main() { |
f6bcfd97 | 15495 | |
4f14bcd8 GD |
15496 | /* The GNU C library defines this for functions which it implements |
15497 | to always fail with ENOSYS. Some functions are actually named | |
15498 | something starting with __ and the normal name is an alias. */ | |
15499 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15500 | choke me | |
15501 | #else | |
15502 | vprintf(); | |
15503 | #endif | |
f6bcfd97 | 15504 | |
698dcdb6 VZ |
15505 | ; return 0; } |
15506 | EOF | |
3c011993 | 15507 | if { (eval echo configure:15508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15508 | rm -rf conftest* |
4f14bcd8 | 15509 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15510 | else |
698dcdb6 VZ |
15511 | echo "configure: failed program was:" >&5 |
15512 | cat conftest.$ac_ext >&5 | |
15513 | rm -rf conftest* | |
4f14bcd8 | 15514 | eval "ac_cv_func_vprintf=no" |
6232543b | 15515 | fi |
698dcdb6 | 15516 | rm -f conftest* |
1e487827 | 15517 | fi |
698dcdb6 | 15518 | |
4f14bcd8 GD |
15519 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15520 | echo "$ac_t""yes" 1>&6 | |
15521 | cat >> confdefs.h <<\EOF | |
15522 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15523 | EOF |
15524 | ||
4f14bcd8 GD |
15525 | else |
15526 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15527 | fi |
15528 | ||
4f14bcd8 GD |
15529 | if test "$ac_cv_func_vprintf" != yes; then |
15530 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
3c011993 | 15531 | echo "configure:15532: checking for _doprnt" >&5 |
4f14bcd8 | 15532 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15533 | echo $ac_n "(cached) $ac_c" 1>&6 |
15534 | else | |
15535 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15536 | #line 15537 "configure" |
10f2d63a VZ |
15537 | #include "confdefs.h" |
15538 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15539 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15540 | #include <assert.h> |
15541 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15542 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15543 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15544 | char _doprnt(); |
698dcdb6 VZ |
15545 | |
15546 | int main() { | |
10f2d63a VZ |
15547 | |
15548 | /* The GNU C library defines this for functions which it implements | |
15549 | to always fail with ENOSYS. Some functions are actually named | |
15550 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15551 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15552 | choke me |
15553 | #else | |
4f14bcd8 | 15554 | _doprnt(); |
10f2d63a VZ |
15555 | #endif |
15556 | ||
698dcdb6 | 15557 | ; return 0; } |
10f2d63a | 15558 | EOF |
3c011993 | 15559 | if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15560 | rm -rf conftest* |
4f14bcd8 | 15561 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15562 | else |
15563 | echo "configure: failed program was:" >&5 | |
15564 | cat conftest.$ac_ext >&5 | |
15565 | rm -rf conftest* | |
4f14bcd8 | 15566 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15567 | fi |
15568 | rm -f conftest* | |
15569 | fi | |
270a909e | 15570 | |
4f14bcd8 | 15571 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15572 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15573 | cat >> confdefs.h <<\EOF |
15574 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15575 | EOF |
4f14bcd8 | 15576 | |
698dcdb6 VZ |
15577 | else |
15578 | echo "$ac_t""no" 1>&6 | |
270a909e | 15579 | fi |
270a909e | 15580 | |
4f14bcd8 | 15581 | fi |
1e487827 | 15582 | |
52e8b690 | 15583 | |
52e8b690 | 15584 | |
52e8b690 | 15585 | |
52e8b690 | 15586 | |
52e8b690 | 15587 | |
4f14bcd8 | 15588 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
3c011993 | 15589 | echo "configure:15590: checking for vsnprintf" >&5 |
4f14bcd8 | 15590 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15591 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15592 | else |
4f14bcd8 | 15593 | |
af15babd | 15594 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15595 | #line 15596 "configure" |
c63c7106 | 15596 | #include "confdefs.h" |
698dcdb6 | 15597 | |
4f14bcd8 GD |
15598 | #include <stdio.h> |
15599 | #include <stdarg.h> | |
15600 | ||
af15babd VZ |
15601 | int main() { |
15602 | ||
4f14bcd8 GD |
15603 | int wx_test_vsnprintf(const char *, ...); |
15604 | ||
15605 | wx_test_vsnprintf("%s"); | |
15606 | return 0; | |
15607 | } | |
15608 | ||
15609 | int wx_test_vsnprintf(const char *fmt, ...) | |
15610 | { | |
15611 | char *s; | |
15612 | ||
15613 | va_list argp; | |
15614 | va_start(argp, fmt); | |
15615 | vsnprintf(s, 42, fmt, argp); | |
15616 | va_end(argp); | |
15617 | ||
af15babd VZ |
15618 | ; return 0; } |
15619 | EOF | |
3c011993 | 15620 | if { (eval echo configure:15621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15621 | rm -rf conftest* |
15622 | ||
4f14bcd8 GD |
15623 | wx_cv_func_vsnprintf=yes |
15624 | ||
af15babd VZ |
15625 | else |
15626 | echo "configure: failed program was:" >&5 | |
15627 | cat conftest.$ac_ext >&5 | |
15628 | rm -rf conftest* | |
15629 | ||
4f14bcd8 | 15630 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15631 | #line 15632 "configure" |
af15babd | 15632 | #include "confdefs.h" |
af15babd | 15633 | |
4f14bcd8 GD |
15634 | #include <stdio.h> |
15635 | #include <stdarg.h> | |
15636 | ||
af15babd VZ |
15637 | int main() { |
15638 | ||
4f14bcd8 GD |
15639 | int wx_test_vsnprintf(const char *, ...); |
15640 | ||
15641 | wx_test_vsnprintf("%s"); | |
15642 | return 0; | |
15643 | } | |
15644 | ||
15645 | int wx_test_vsnprintf(const char *fmt, ...) | |
15646 | { | |
15647 | char *s; | |
af15babd | 15648 | |
4f14bcd8 GD |
15649 | va_list argp; |
15650 | va_start(argp, fmt); | |
15651 | _vsnprintf(s, 42, fmt, argp); | |
15652 | va_end(argp); | |
15653 | ||
af15babd VZ |
15654 | ; return 0; } |
15655 | EOF | |
3c011993 | 15656 | if { (eval echo configure:15657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15657 | rm -rf conftest* |
4f14bcd8 GD |
15658 | |
15659 | wx_cv_func_vsnprintf=yes | |
15660 | ||
af15babd VZ |
15661 | else |
15662 | echo "configure: failed program was:" >&5 | |
15663 | cat conftest.$ac_ext >&5 | |
15664 | rm -rf conftest* | |
4f14bcd8 GD |
15665 | |
15666 | wx_cv_func_vsnprintf=no | |
15667 | ||
af15babd VZ |
15668 | fi |
15669 | rm -f conftest* | |
4f14bcd8 | 15670 | |
af15babd | 15671 | fi |
4f14bcd8 | 15672 | rm -f conftest* |
af15babd | 15673 | |
af15babd | 15674 | fi |
af15babd | 15675 | |
4f14bcd8 | 15676 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15677 | |
4f14bcd8 GD |
15678 | if test "$wx_cv_func_vsnprintf" = yes; then |
15679 | cat >> confdefs.h <<\EOF | |
15680 | #define HAVE_VSNPRINTF 1 | |
15681 | EOF | |
15682 | ||
15683 | else | |
f9bc1684 | 15684 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15685 | fi |
15686 | ||
4f14bcd8 | 15687 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
3c011993 | 15688 | echo "configure:15689: checking for vsscanf" >&5 |
4f14bcd8 | 15689 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15690 | echo $ac_n "(cached) $ac_c" 1>&6 |
15691 | else | |
4f14bcd8 | 15692 | |
af15babd | 15693 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15694 | #line 15695 "configure" |
af15babd | 15695 | #include "confdefs.h" |
af15babd | 15696 | |
4f14bcd8 GD |
15697 | #include <stdio.h> |
15698 | #include <stdarg.h> | |
15699 | ||
af15babd VZ |
15700 | int main() { |
15701 | ||
4f14bcd8 GD |
15702 | int wx_test_vsscanf(const char *, ...); |
15703 | ||
15704 | wx_test_vsscanf("%d"); | |
15705 | return 0; | |
15706 | } | |
af15babd | 15707 | |
4f14bcd8 GD |
15708 | int wx_test_vsscanf(const char *fmt, ...) |
15709 | { | |
15710 | va_list argp; | |
15711 | va_start(argp, fmt); | |
15712 | vsscanf("42", fmt, argp); | |
15713 | va_end(argp); | |
15714 | ||
af15babd VZ |
15715 | ; return 0; } |
15716 | EOF | |
3c011993 | 15717 | if { (eval echo configure:15718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15718 | rm -rf conftest* |
4f14bcd8 GD |
15719 | |
15720 | wx_cv_func_vsscanf=yes | |
15721 | ||
af15babd VZ |
15722 | else |
15723 | echo "configure: failed program was:" >&5 | |
15724 | cat conftest.$ac_ext >&5 | |
15725 | rm -rf conftest* | |
4f14bcd8 GD |
15726 | |
15727 | wx_cv_func_vsscanf=no | |
15728 | ||
af15babd VZ |
15729 | fi |
15730 | rm -f conftest* | |
4f14bcd8 | 15731 | |
af15babd VZ |
15732 | fi |
15733 | ||
4f14bcd8 GD |
15734 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15735 | ||
15736 | if test "$wx_cv_func_vsscanf" = yes; then | |
15737 | cat >> confdefs.h <<\EOF | |
15738 | #define HAVE_VSSCANF 1 | |
af15babd | 15739 | EOF |
4f14bcd8 | 15740 | |
af15babd | 15741 | fi |
af15babd | 15742 | |
4f14bcd8 | 15743 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15744 | |
4f14bcd8 GD |
15745 | |
15746 | ||
15747 | ac_ext=C | |
15748 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15749 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15750 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15751 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15752 | cross_compiling=$ac_cv_prog_cxx_cross | |
15753 | ||
b040e242 VS |
15754 | |
15755 | ||
15756 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15757 | if test "${with_libiconv_prefix+set}" = set; then | |
15758 | withval="$with_libiconv_prefix" | |
15759 | ||
15760 | for dir in `echo "$withval" | tr : ' '`; do | |
15761 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15762 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15763 | done | |
15764 | ||
15765 | fi | |
15766 | ||
15767 | ||
15768 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
3c011993 | 15769 | echo "configure:15770: checking for iconv" >&5 |
b040e242 | 15770 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15771 | echo $ac_n "(cached) $ac_c" 1>&6 |
15772 | else | |
4f14bcd8 | 15773 | |
b040e242 VS |
15774 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15775 | am_cv_lib_iconv=no | |
4f14bcd8 | 15776 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15777 | #line 15778 "configure" |
af15babd | 15778 | #include "confdefs.h" |
b040e242 | 15779 | #include <stdlib.h> |
4f14bcd8 | 15780 | #include <iconv.h> |
af15babd | 15781 | int main() { |
b040e242 VS |
15782 | iconv_t cd = iconv_open("",""); |
15783 | iconv(cd,NULL,NULL,NULL,NULL); | |
15784 | iconv_close(cd); | |
af15babd VZ |
15785 | ; return 0; } |
15786 | EOF | |
3c011993 | 15787 | if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15788 | rm -rf conftest* |
b040e242 | 15789 | am_cv_func_iconv=yes |
af15babd VZ |
15790 | else |
15791 | echo "configure: failed program was:" >&5 | |
15792 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15793 | fi |
15794 | rm -f conftest* | |
15795 | if test "$am_cv_func_iconv" != yes; then | |
15796 | am_save_LIBS="$LIBS" | |
15797 | LIBS="$LIBS -liconv" | |
15798 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15799 | #line 15800 "configure" |
b040e242 VS |
15800 | #include "confdefs.h" |
15801 | #include <stdlib.h> | |
15802 | #include <iconv.h> | |
15803 | int main() { | |
15804 | iconv_t cd = iconv_open("",""); | |
15805 | iconv(cd,NULL,NULL,NULL,NULL); | |
15806 | iconv_close(cd); | |
15807 | ; return 0; } | |
15808 | EOF | |
3c011993 | 15809 | if { (eval echo configure:15810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15810 | rm -rf conftest* |
b040e242 VS |
15811 | am_cv_lib_iconv=yes |
15812 | am_cv_func_iconv=yes | |
15813 | else | |
15814 | echo "configure: failed program was:" >&5 | |
15815 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15816 | fi |
15817 | rm -f conftest* | |
b040e242 VS |
15818 | LIBS="$am_save_LIBS" |
15819 | fi | |
15820 | ||
15821 | fi | |
15822 | ||
15823 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15824 | if test "$am_cv_func_iconv" = yes; then | |
15825 | cat >> confdefs.h <<\EOF | |
15826 | #define HAVE_ICONV 1 | |
15827 | EOF | |
15828 | ||
b7043674 | 15829 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
3c011993 | 15830 | echo "configure:15831: checking if iconv needs const" >&5 |
b7043674 | 15831 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15832 | echo $ac_n "(cached) $ac_c" 1>&6 |
15833 | else | |
b7043674 | 15834 | cat > conftest.$ac_ext <<EOF |
3c011993 | 15835 | #line 15836 "configure" |
b040e242 VS |
15836 | #include "confdefs.h" |
15837 | ||
15838 | #include <stdlib.h> | |
15839 | #include <iconv.h> | |
15840 | extern | |
15841 | #ifdef __cplusplus | |
15842 | "C" | |
15843 | #endif | |
15844 | #if defined(__STDC__) || defined(__cplusplus) | |
15845 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15846 | #else | |
15847 | size_t iconv(); | |
15848 | #endif | |
b7043674 | 15849 | |
b040e242 | 15850 | int main() { |
af15babd | 15851 | |
b040e242 VS |
15852 | ; return 0; } |
15853 | EOF | |
3c011993 | 15854 | if { (eval echo configure:15855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15855 | rm -rf conftest* |
b7043674 | 15856 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15857 | else |
15858 | echo "configure: failed program was:" >&5 | |
15859 | cat conftest.$ac_ext >&5 | |
15860 | rm -rf conftest* | |
b7043674 VZ |
15861 | wx_cv_func_iconv_const="yes" |
15862 | ||
b040e242 VS |
15863 | fi |
15864 | rm -f conftest* | |
b7043674 | 15865 | |
af15babd | 15866 | fi |
af15babd | 15867 | |
b7043674 VZ |
15868 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15869 | ||
15870 | iconv_const= | |
1c405bb5 | 15871 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15872 | iconv_const="const" |
15873 | fi | |
15874 | ||
b040e242 | 15875 | cat >> confdefs.h <<EOF |
b7043674 | 15876 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15877 | EOF |
15878 | ||
15879 | fi | |
15880 | LIBICONV= | |
15881 | if test "$am_cv_lib_iconv" = yes; then | |
15882 | LIBICONV="-liconv" | |
15883 | fi | |
15884 | ||
15885 | ||
15886 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15887 | ac_ext=c |
15888 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15889 | ac_cpp='$CPP $CPPFLAGS' | |
15890 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15891 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15892 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15893 | |
af15babd | 15894 | |
4f14bcd8 GD |
15895 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15896 | for ac_func in sigaction | |
af15babd VZ |
15897 | do |
15898 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 15899 | echo "configure:15900: checking for $ac_func" >&5 |
af15babd VZ |
15900 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15902 | else | |
15903 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15904 | #line 15905 "configure" |
af15babd VZ |
15905 | #include "confdefs.h" |
15906 | /* System header to define __stub macros and hopefully few prototypes, | |
15907 | which can conflict with char $ac_func(); below. */ | |
15908 | #include <assert.h> | |
15909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15910 | /* We use char because int might match the return type of a gcc2 | |
15911 | builtin and then its argument prototype would still apply. */ | |
15912 | char $ac_func(); | |
15913 | ||
15914 | int main() { | |
15915 | ||
15916 | /* The GNU C library defines this for functions which it implements | |
15917 | to always fail with ENOSYS. Some functions are actually named | |
15918 | something starting with __ and the normal name is an alias. */ | |
15919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15920 | choke me | |
15921 | #else | |
15922 | $ac_func(); | |
15923 | #endif | |
15924 | ||
15925 | ; return 0; } | |
15926 | EOF | |
3c011993 | 15927 | if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15928 | rm -rf conftest* |
15929 | eval "ac_cv_func_$ac_func=yes" | |
15930 | else | |
15931 | echo "configure: failed program was:" >&5 | |
15932 | cat conftest.$ac_ext >&5 | |
15933 | rm -rf conftest* | |
15934 | eval "ac_cv_func_$ac_func=no" | |
15935 | fi | |
15936 | rm -f conftest* | |
15937 | fi | |
15938 | ||
15939 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15940 | echo "$ac_t""yes" 1>&6 | |
15941 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15942 | cat >> confdefs.h <<EOF | |
15943 | #define $ac_tr_func 1 | |
15944 | EOF | |
4f14bcd8 | 15945 | |
af15babd VZ |
15946 | else |
15947 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15948 | fi |
15949 | done | |
15950 | ||
15951 | ||
15952 | if test "$ac_cv_func_sigaction" = "no"; then | |
15953 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15954 | wxUSE_ON_FATAL_EXCEPTION=no | |
15955 | fi | |
15956 | ||
15957 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15958 | ||
15959 | ac_ext=C | |
15960 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15961 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15962 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15963 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15964 | cross_compiling=$ac_cv_prog_cxx_cross | |
15965 | ||
15966 | ||
15967 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
3c011993 | 15968 | echo "configure:15969: checking for sa_handler type" >&5 |
4f14bcd8 | 15969 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15970 | echo $ac_n "(cached) $ac_c" 1>&6 |
15971 | else | |
4f14bcd8 GD |
15972 | |
15973 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 15974 | #line 15975 "configure" |
af15babd | 15975 | #include "confdefs.h" |
4f14bcd8 | 15976 | #include <signal.h> |
af15babd | 15977 | int main() { |
4f14bcd8 GD |
15978 | |
15979 | extern void testSigHandler(int); | |
15980 | ||
15981 | struct sigaction sa; | |
15982 | sa.sa_handler = testSigHandler; | |
15983 | ||
af15babd VZ |
15984 | ; return 0; } |
15985 | EOF | |
3c011993 | 15986 | if { (eval echo configure:15987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15987 | rm -rf conftest* |
4f14bcd8 GD |
15988 | |
15989 | wx_cv_type_sa_handler=int | |
15990 | ||
af15babd VZ |
15991 | else |
15992 | echo "configure: failed program was:" >&5 | |
15993 | cat conftest.$ac_ext >&5 | |
15994 | rm -rf conftest* | |
4f14bcd8 GD |
15995 | |
15996 | wx_cv_type_sa_handler=void | |
15997 | ||
af15babd VZ |
15998 | fi |
15999 | rm -f conftest* | |
4f14bcd8 GD |
16000 | |
16001 | fi | |
16002 | ||
16003 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16004 | ||
16005 | ac_ext=c | |
16006 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16007 | ac_cpp='$CPP $CPPFLAGS' | |
16008 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16009 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16010 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16011 | |
4f14bcd8 GD |
16012 | |
16013 | cat >> confdefs.h <<EOF | |
16014 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16015 | EOF |
16016 | ||
4f14bcd8 GD |
16017 | fi |
16018 | fi | |
af15babd | 16019 | |
4f14bcd8 | 16020 | for ac_func in vfork |
af15babd VZ |
16021 | do |
16022 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16023 | echo "configure:16024: checking for $ac_func" >&5 |
af15babd VZ |
16024 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16026 | else | |
16027 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16028 | #line 16029 "configure" |
af15babd VZ |
16029 | #include "confdefs.h" |
16030 | /* System header to define __stub macros and hopefully few prototypes, | |
16031 | which can conflict with char $ac_func(); below. */ | |
16032 | #include <assert.h> | |
16033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16034 | /* We use char because int might match the return type of a gcc2 | |
16035 | builtin and then its argument prototype would still apply. */ | |
16036 | char $ac_func(); | |
16037 | ||
16038 | int main() { | |
16039 | ||
16040 | /* The GNU C library defines this for functions which it implements | |
16041 | to always fail with ENOSYS. Some functions are actually named | |
16042 | something starting with __ and the normal name is an alias. */ | |
16043 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16044 | choke me | |
16045 | #else | |
16046 | $ac_func(); | |
16047 | #endif | |
16048 | ||
16049 | ; return 0; } | |
16050 | EOF | |
3c011993 | 16051 | if { (eval echo configure:16052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16052 | rm -rf conftest* |
16053 | eval "ac_cv_func_$ac_func=yes" | |
16054 | else | |
16055 | echo "configure: failed program was:" >&5 | |
16056 | cat conftest.$ac_ext >&5 | |
16057 | rm -rf conftest* | |
16058 | eval "ac_cv_func_$ac_func=no" | |
16059 | fi | |
16060 | rm -f conftest* | |
16061 | fi | |
16062 | ||
16063 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16064 | echo "$ac_t""yes" 1>&6 | |
16065 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16066 | cat >> confdefs.h <<EOF | |
16067 | #define $ac_tr_func 1 | |
16068 | EOF | |
4f14bcd8 | 16069 | |
af15babd VZ |
16070 | else |
16071 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16072 | fi |
16073 | done | |
16074 | ||
af15babd | 16075 | |
ade35f11 VZ |
16076 | for ac_func in mkstemp mktemp |
16077 | do | |
16078 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16079 | echo "configure:16080: checking for $ac_func" >&5 |
ade35f11 VZ |
16080 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16082 | else | |
16083 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16084 | #line 16085 "configure" |
ade35f11 VZ |
16085 | #include "confdefs.h" |
16086 | /* System header to define __stub macros and hopefully few prototypes, | |
16087 | which can conflict with char $ac_func(); below. */ | |
16088 | #include <assert.h> | |
16089 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16090 | /* We use char because int might match the return type of a gcc2 | |
16091 | builtin and then its argument prototype would still apply. */ | |
16092 | char $ac_func(); | |
16093 | ||
16094 | int main() { | |
16095 | ||
16096 | /* The GNU C library defines this for functions which it implements | |
16097 | to always fail with ENOSYS. Some functions are actually named | |
16098 | something starting with __ and the normal name is an alias. */ | |
16099 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16100 | choke me | |
16101 | #else | |
16102 | $ac_func(); | |
16103 | #endif | |
16104 | ||
16105 | ; return 0; } | |
16106 | EOF | |
3c011993 | 16107 | if { (eval echo configure:16108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16108 | rm -rf conftest* |
16109 | eval "ac_cv_func_$ac_func=yes" | |
16110 | else | |
16111 | echo "configure: failed program was:" >&5 | |
16112 | cat conftest.$ac_ext >&5 | |
16113 | rm -rf conftest* | |
16114 | eval "ac_cv_func_$ac_func=no" | |
16115 | fi | |
16116 | rm -f conftest* | |
16117 | fi | |
16118 | ||
16119 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16120 | echo "$ac_t""yes" 1>&6 | |
16121 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16122 | cat >> confdefs.h <<EOF | |
16123 | #define $ac_tr_func 1 | |
16124 | EOF | |
16125 | break | |
16126 | else | |
16127 | echo "$ac_t""no" 1>&6 | |
16128 | fi | |
16129 | done | |
16130 | ||
16131 | ||
4f14bcd8 | 16132 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
3c011993 | 16133 | echo "configure:16134: checking for statfs" >&5 |
4f14bcd8 GD |
16134 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16136 | else | |
16137 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16138 | #line 16139 "configure" |
4f14bcd8 GD |
16139 | #include "confdefs.h" |
16140 | ||
16141 | #if defined(__BSD__) | |
16142 | #include <sys/param.h> | |
16143 | #include <sys/mount.h> | |
16144 | #else | |
16145 | #include <sys/vfs.h> | |
16146 | #endif | |
16147 | ||
16148 | int main() { | |
16149 | ||
16150 | long l; | |
16151 | struct statfs fs; | |
16152 | statfs("/", &fs); | |
16153 | l = fs.f_bsize; | |
16154 | l += fs.f_blocks; | |
16155 | l += fs.f_bavail; | |
16156 | ||
16157 | ; return 0; } | |
16158 | EOF | |
3c011993 | 16159 | if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16160 | rm -rf conftest* |
16161 | ||
16162 | wx_cv_func_statfs=yes | |
16163 | ||
16164 | else | |
16165 | echo "configure: failed program was:" >&5 | |
16166 | cat conftest.$ac_ext >&5 | |
16167 | rm -rf conftest* | |
16168 | ||
16169 | wx_cv_func_statfs=no | |
af15babd VZ |
16170 | |
16171 | ||
16172 | fi | |
4f14bcd8 | 16173 | rm -f conftest* |
af15babd VZ |
16174 | |
16175 | fi | |
16176 | ||
4f14bcd8 GD |
16177 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16178 | ||
16179 | if test "$wx_cv_func_statfs" = "yes"; then | |
16180 | cat >> confdefs.h <<\EOF | |
16181 | #define HAVE_STATFS 1 | |
16182 | EOF | |
16183 | ||
16184 | else | |
16185 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
3c011993 | 16186 | echo "configure:16187: checking for statvfs" >&5 |
4f14bcd8 | 16187 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16188 | echo $ac_n "(cached) $ac_c" 1>&6 |
16189 | else | |
16190 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16191 | #line 16192 "configure" |
af15babd | 16192 | #include "confdefs.h" |
af15babd | 16193 | |
4f14bcd8 GD |
16194 | #include <sys/statvfs.h> |
16195 | ||
af15babd VZ |
16196 | int main() { |
16197 | ||
4f14bcd8 GD |
16198 | long l; |
16199 | struct statvfs fs; | |
16200 | statvfs("/", &fs); | |
16201 | l = fs.f_bsize; | |
16202 | l += fs.f_blocks; | |
16203 | l += fs.f_bavail; | |
16204 | ||
af15babd VZ |
16205 | ; return 0; } |
16206 | EOF | |
3c011993 | 16207 | if { (eval echo configure:16208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16208 | rm -rf conftest* |
4f14bcd8 GD |
16209 | |
16210 | wx_cv_func_statvfs=yes | |
16211 | ||
af15babd VZ |
16212 | else |
16213 | echo "configure: failed program was:" >&5 | |
16214 | cat conftest.$ac_ext >&5 | |
16215 | rm -rf conftest* | |
4f14bcd8 GD |
16216 | |
16217 | wx_cv_func_statvfs=no | |
16218 | ||
16219 | ||
af15babd VZ |
16220 | fi |
16221 | rm -f conftest* | |
4f14bcd8 | 16222 | |
af15babd VZ |
16223 | fi |
16224 | ||
4f14bcd8 | 16225 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16226 | |
4f14bcd8 GD |
16227 | if test "$wx_cv_func_statvfs" = "yes"; then |
16228 | cat >> confdefs.h <<\EOF | |
16229 | #define HAVE_STATVFS 1 | |
16230 | EOF | |
af15babd | 16231 | |
4f14bcd8 GD |
16232 | else |
16233 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16234 | fi | |
16235 | fi | |
af15babd | 16236 | |
4f14bcd8 GD |
16237 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16238 | for ac_func in fcntl flock | |
af15babd VZ |
16239 | do |
16240 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16241 | echo "configure:16242: checking for $ac_func" >&5 |
af15babd VZ |
16242 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16244 | else | |
16245 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16246 | #line 16247 "configure" |
af15babd VZ |
16247 | #include "confdefs.h" |
16248 | /* System header to define __stub macros and hopefully few prototypes, | |
16249 | which can conflict with char $ac_func(); below. */ | |
16250 | #include <assert.h> | |
16251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16252 | /* We use char because int might match the return type of a gcc2 |
16253 | builtin and then its argument prototype would still apply. */ | |
16254 | char $ac_func(); | |
16255 | ||
16256 | int main() { | |
16257 | ||
16258 | /* The GNU C library defines this for functions which it implements | |
16259 | to always fail with ENOSYS. Some functions are actually named | |
16260 | something starting with __ and the normal name is an alias. */ | |
16261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16262 | choke me | |
16263 | #else | |
16264 | $ac_func(); | |
16265 | #endif | |
16266 | ||
16267 | ; return 0; } | |
16268 | EOF | |
3c011993 | 16269 | if { (eval echo configure:16270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16270 | rm -rf conftest* |
16271 | eval "ac_cv_func_$ac_func=yes" | |
16272 | else | |
16273 | echo "configure: failed program was:" >&5 | |
16274 | cat conftest.$ac_ext >&5 | |
16275 | rm -rf conftest* | |
16276 | eval "ac_cv_func_$ac_func=no" | |
16277 | fi | |
16278 | rm -f conftest* | |
16279 | fi | |
16280 | ||
16281 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16282 | echo "$ac_t""yes" 1>&6 | |
16283 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16284 | cat >> confdefs.h <<EOF | |
16285 | #define $ac_tr_func 1 | |
16286 | EOF | |
4f14bcd8 | 16287 | break |
af15babd VZ |
16288 | else |
16289 | echo "$ac_t""no" 1>&6 | |
16290 | fi | |
16291 | done | |
16292 | ||
16293 | ||
4f14bcd8 GD |
16294 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16295 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16296 | wxUSE_SNGLINST_CHECKER=no | |
16297 | fi | |
16298 | fi | |
af15babd | 16299 | |
4f14bcd8 | 16300 | for ac_func in timegm |
af15babd VZ |
16301 | do |
16302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16303 | echo "configure:16304: checking for $ac_func" >&5 |
af15babd VZ |
16304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16306 | else | |
16307 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16308 | #line 16309 "configure" |
af15babd VZ |
16309 | #include "confdefs.h" |
16310 | /* System header to define __stub macros and hopefully few prototypes, | |
16311 | which can conflict with char $ac_func(); below. */ | |
16312 | #include <assert.h> | |
16313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16314 | /* We use char because int might match the return type of a gcc2 | |
16315 | builtin and then its argument prototype would still apply. */ | |
16316 | char $ac_func(); | |
16317 | ||
698dcdb6 | 16318 | int main() { |
698dcdb6 | 16319 | |
af15babd VZ |
16320 | /* The GNU C library defines this for functions which it implements |
16321 | to always fail with ENOSYS. Some functions are actually named | |
16322 | something starting with __ and the normal name is an alias. */ | |
16323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16324 | choke me | |
16325 | #else | |
16326 | $ac_func(); | |
16327 | #endif | |
16328 | ||
698dcdb6 VZ |
16329 | ; return 0; } |
16330 | EOF | |
3c011993 | 16331 | if { (eval echo configure:16332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16332 | rm -rf conftest* |
af15babd | 16333 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16334 | else |
16335 | echo "configure: failed program was:" >&5 | |
16336 | cat conftest.$ac_ext >&5 | |
16337 | rm -rf conftest* | |
af15babd | 16338 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16339 | fi |
9952adac | 16340 | rm -f conftest* |
af15babd | 16341 | fi |
703e0a69 | 16342 | |
af15babd VZ |
16343 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16344 | echo "$ac_t""yes" 1>&6 | |
16345 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16346 | cat >> confdefs.h <<EOF |
16347 | #define $ac_tr_func 1 | |
16348 | EOF | |
16349 | ||
16350 | else | |
16351 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16352 | fi |
16353 | done | |
16354 | ||
16355 | ||
4f14bcd8 | 16356 | for ac_func in putenv setenv |
10f2d63a | 16357 | do |
698dcdb6 | 16358 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 16359 | echo "configure:16360: checking for $ac_func" >&5 |
698dcdb6 VZ |
16360 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16362 | else | |
16363 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16364 | #line 16365 "configure" |
af15babd VZ |
16365 | #include "confdefs.h" |
16366 | /* System header to define __stub macros and hopefully few prototypes, | |
16367 | which can conflict with char $ac_func(); below. */ | |
16368 | #include <assert.h> | |
16369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16370 | /* We use char because int might match the return type of a gcc2 | |
16371 | builtin and then its argument prototype would still apply. */ | |
16372 | char $ac_func(); | |
16373 | ||
16374 | int main() { | |
16375 | ||
16376 | /* The GNU C library defines this for functions which it implements | |
16377 | to always fail with ENOSYS. Some functions are actually named | |
16378 | something starting with __ and the normal name is an alias. */ | |
16379 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16380 | choke me | |
16381 | #else | |
16382 | $ac_func(); | |
16383 | #endif | |
16384 | ||
16385 | ; return 0; } | |
16386 | EOF | |
3c011993 | 16387 | if { (eval echo configure:16388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16388 | rm -rf conftest* |
16389 | eval "ac_cv_func_$ac_func=yes" | |
16390 | else | |
16391 | echo "configure: failed program was:" >&5 | |
16392 | cat conftest.$ac_ext >&5 | |
16393 | rm -rf conftest* | |
16394 | eval "ac_cv_func_$ac_func=no" | |
16395 | fi | |
16396 | rm -f conftest* | |
16397 | fi | |
16398 | ||
16399 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16400 | echo "$ac_t""yes" 1>&6 | |
16401 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16402 | cat >> confdefs.h <<EOF | |
16403 | #define $ac_tr_func 1 | |
16404 | EOF | |
4f14bcd8 | 16405 | break |
af15babd VZ |
16406 | else |
16407 | echo "$ac_t""no" 1>&6 | |
16408 | fi | |
af15babd VZ |
16409 | done |
16410 | ||
16411 | ||
4f14bcd8 GD |
16412 | HAVE_SOME_SLEEP_FUNC=0 |
16413 | if test "$USE_BEOS" = 1; then | |
16414 | cat >> confdefs.h <<\EOF | |
16415 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16416 | EOF |
16417 | ||
4f14bcd8 | 16418 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16419 | fi |
16420 | ||
4f14bcd8 GD |
16421 | if test "$USE_DARWIN" = 1; then |
16422 | cat >> confdefs.h <<\EOF | |
16423 | #define HAVE_USLEEP 1 | |
af15babd | 16424 | EOF |
10f2d63a | 16425 | |
4f14bcd8 | 16426 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16427 | fi |
16428 | ||
4f14bcd8 GD |
16429 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16430 | POSIX4_LINK= | |
16431 | for ac_func in nanosleep | |
16432 | do | |
16433 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16434 | echo "configure:16435: checking for $ac_func" >&5 |
4f14bcd8 | 16435 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16436 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16437 | else |
4f14bcd8 | 16438 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16439 | #line 16440 "configure" |
10f2d63a | 16440 | #include "confdefs.h" |
4f14bcd8 GD |
16441 | /* System header to define __stub macros and hopefully few prototypes, |
16442 | which can conflict with char $ac_func(); below. */ | |
16443 | #include <assert.h> | |
10f2d63a VZ |
16444 | /* Override any gcc2 internal prototype to avoid an error. */ |
16445 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16446 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16447 | char $ac_func(); |
698dcdb6 VZ |
16448 | |
16449 | int main() { | |
4f14bcd8 GD |
16450 | |
16451 | /* The GNU C library defines this for functions which it implements | |
16452 | to always fail with ENOSYS. Some functions are actually named | |
16453 | something starting with __ and the normal name is an alias. */ | |
16454 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16455 | choke me | |
16456 | #else | |
16457 | $ac_func(); | |
16458 | #endif | |
16459 | ||
698dcdb6 VZ |
16460 | ; return 0; } |
16461 | EOF | |
3c011993 | 16462 | if { (eval echo configure:16463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16463 | rm -rf conftest* |
4f14bcd8 | 16464 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16465 | else |
16466 | echo "configure: failed program was:" >&5 | |
16467 | cat conftest.$ac_ext >&5 | |
16468 | rm -rf conftest* | |
4f14bcd8 | 16469 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16470 | fi |
16471 | rm -f conftest* | |
698dcdb6 | 16472 | fi |
4f14bcd8 GD |
16473 | |
16474 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16475 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16476 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16477 | cat >> confdefs.h <<EOF | |
16478 | #define $ac_tr_func 1 | |
16479 | EOF | |
16480 | cat >> confdefs.h <<\EOF | |
16481 | #define HAVE_NANOSLEEP 1 | |
16482 | EOF | |
16483 | ||
10f2d63a | 16484 | else |
698dcdb6 | 16485 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16486 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
3c011993 | 16487 | echo "configure:16488: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16488 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16489 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16491 | else |
698dcdb6 | 16492 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16493 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16494 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16495 | #line 16496 "configure" |
10f2d63a VZ |
16496 | #include "confdefs.h" |
16497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16498 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16499 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16500 | char nanosleep(); |
698dcdb6 VZ |
16501 | |
16502 | int main() { | |
4f14bcd8 | 16503 | nanosleep() |
698dcdb6 VZ |
16504 | ; return 0; } |
16505 | EOF | |
3c011993 | 16506 | if { (eval echo configure:16507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16507 | rm -rf conftest* |
16508 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16509 | else | |
16510 | echo "configure: failed program was:" >&5 | |
16511 | cat conftest.$ac_ext >&5 | |
16512 | rm -rf conftest* | |
16513 | eval "ac_cv_lib_$ac_lib_var=no" | |
16514 | fi | |
16515 | rm -f conftest* | |
16516 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16517 | |
698dcdb6 VZ |
16518 | fi |
16519 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16520 | echo "$ac_t""yes" 1>&6 | |
16521 | ||
4f14bcd8 GD |
16522 | cat >> confdefs.h <<\EOF |
16523 | #define HAVE_NANOSLEEP 1 | |
16524 | EOF | |
16525 | ||
3d63bc3a | 16526 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16527 | |
10f2d63a | 16528 | else |
698dcdb6 | 16529 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16530 | |
4f14bcd8 GD |
16531 | for ac_func in usleep |
16532 | do | |
16533 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16534 | echo "configure:16535: checking for $ac_func" >&5 |
4f14bcd8 | 16535 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16536 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16537 | else |
698dcdb6 | 16538 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16539 | #line 16540 "configure" |
10f2d63a | 16540 | #include "confdefs.h" |
4f14bcd8 GD |
16541 | /* System header to define __stub macros and hopefully few prototypes, |
16542 | which can conflict with char $ac_func(); below. */ | |
16543 | #include <assert.h> | |
16544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16545 | /* We use char because int might match the return type of a gcc2 | |
16546 | builtin and then its argument prototype would still apply. */ | |
16547 | char $ac_func(); | |
16548 | ||
16549 | int main() { | |
16550 | ||
16551 | /* The GNU C library defines this for functions which it implements | |
16552 | to always fail with ENOSYS. Some functions are actually named | |
16553 | something starting with __ and the normal name is an alias. */ | |
16554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16555 | choke me | |
16556 | #else | |
16557 | $ac_func(); | |
16558 | #endif | |
16559 | ||
16560 | ; return 0; } | |
698dcdb6 | 16561 | EOF |
3c011993 | 16562 | if { (eval echo configure:16563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16563 | rm -rf conftest* |
4f14bcd8 | 16564 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16565 | else |
698dcdb6 | 16566 | echo "configure: failed program was:" >&5 |
10f2d63a | 16567 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16568 | rm -rf conftest* |
4f14bcd8 | 16569 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16570 | fi |
698dcdb6 | 16571 | rm -f conftest* |
10f2d63a | 16572 | fi |
4f14bcd8 GD |
16573 | |
16574 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16575 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16576 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16577 | cat >> confdefs.h <<EOF | |
16578 | #define $ac_tr_func 1 | |
16579 | EOF | |
16580 | cat >> confdefs.h <<\EOF | |
16581 | #define HAVE_USLEEP 1 | |
16582 | EOF | |
16583 | ||
698dcdb6 VZ |
16584 | else |
16585 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16586 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16587 | ||
10f2d63a | 16588 | fi |
4f14bcd8 | 16589 | done |
10f2d63a | 16590 | |
4f14bcd8 | 16591 | |
698dcdb6 | 16592 | |
6232543b | 16593 | fi |
10f2d63a | 16594 | |
698dcdb6 | 16595 | |
4f14bcd8 | 16596 | |
1e487827 | 16597 | fi |
4f14bcd8 | 16598 | done |
703e0a69 | 16599 | |
10f2d63a VZ |
16600 | fi |
16601 | ||
4f14bcd8 | 16602 | for ac_func in uname gethostname |
70846f0a | 16603 | do |
698dcdb6 | 16604 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 16605 | echo "configure:16606: checking for $ac_func" >&5 |
698dcdb6 VZ |
16606 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16608 | else | |
16609 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16610 | #line 16611 "configure" |
70846f0a VZ |
16611 | #include "confdefs.h" |
16612 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16613 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16614 | #include <assert.h> |
16615 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16616 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16617 | builtin and then its argument prototype would still apply. */ |
16618 | char $ac_func(); | |
16619 | ||
16620 | int main() { | |
70846f0a VZ |
16621 | |
16622 | /* The GNU C library defines this for functions which it implements | |
16623 | to always fail with ENOSYS. Some functions are actually named | |
16624 | something starting with __ and the normal name is an alias. */ | |
16625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16626 | choke me | |
16627 | #else | |
698dcdb6 | 16628 | $ac_func(); |
70846f0a VZ |
16629 | #endif |
16630 | ||
698dcdb6 | 16631 | ; return 0; } |
70846f0a | 16632 | EOF |
3c011993 | 16633 | if { (eval echo configure:16634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16634 | rm -rf conftest* |
16635 | eval "ac_cv_func_$ac_func=yes" | |
16636 | else | |
16637 | echo "configure: failed program was:" >&5 | |
16638 | cat conftest.$ac_ext >&5 | |
16639 | rm -rf conftest* | |
16640 | eval "ac_cv_func_$ac_func=no" | |
16641 | fi | |
16642 | rm -f conftest* | |
16643 | fi | |
70846f0a | 16644 | |
698dcdb6 VZ |
16645 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16646 | echo "$ac_t""yes" 1>&6 | |
16647 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16648 | cat >> confdefs.h <<EOF | |
16649 | #define $ac_tr_func 1 | |
16650 | EOF | |
4f14bcd8 | 16651 | break |
698dcdb6 VZ |
16652 | else |
16653 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16654 | fi |
16655 | done | |
16656 | ||
698dcdb6 | 16657 | |
4f14bcd8 GD |
16658 | |
16659 | ac_ext=C | |
16660 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16661 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16662 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16663 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16664 | cross_compiling=$ac_cv_prog_cxx_cross | |
16665 | ||
16666 | ||
16667 | for ac_func in strtok_r | |
10f2d63a | 16668 | do |
4f14bcd8 | 16669 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 16670 | echo "configure:16671: checking for $ac_func" >&5 |
4f14bcd8 | 16671 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16672 | echo $ac_n "(cached) $ac_c" 1>&6 |
16673 | else | |
16674 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 16675 | #line 16676 "configure" |
10f2d63a | 16676 | #include "confdefs.h" |
4f14bcd8 GD |
16677 | /* System header to define __stub macros and hopefully few prototypes, |
16678 | which can conflict with char $ac_func(); below. */ | |
16679 | #include <assert.h> | |
16680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16681 | #ifdef __cplusplus | |
16682 | extern "C" | |
16683 | #endif | |
16684 | /* We use char because int might match the return type of a gcc2 | |
16685 | builtin and then its argument prototype would still apply. */ | |
16686 | char $ac_func(); | |
16687 | ||
16688 | int main() { | |
16689 | ||
16690 | /* The GNU C library defines this for functions which it implements | |
16691 | to always fail with ENOSYS. Some functions are actually named | |
16692 | something starting with __ and the normal name is an alias. */ | |
16693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16694 | choke me | |
16695 | #else | |
16696 | $ac_func(); | |
16697 | #endif | |
16698 | ||
16699 | ; return 0; } | |
698dcdb6 | 16700 | EOF |
3c011993 | 16701 | if { (eval echo configure:16702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16702 | rm -rf conftest* |
4f14bcd8 | 16703 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16704 | else |
698dcdb6 | 16705 | echo "configure: failed program was:" >&5 |
10f2d63a | 16706 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16707 | rm -rf conftest* |
4f14bcd8 | 16708 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16709 | fi |
698dcdb6 | 16710 | rm -f conftest* |
10f2d63a | 16711 | fi |
4f14bcd8 GD |
16712 | |
16713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16714 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16716 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16717 | #define $ac_tr_func 1 |
10f2d63a | 16718 | EOF |
698dcdb6 VZ |
16719 | |
16720 | else | |
16721 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16722 | fi |
16723 | done | |
16724 | ||
698dcdb6 | 16725 | |
4f14bcd8 GD |
16726 | ac_ext=c |
16727 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16728 | ac_cpp='$CPP $CPPFLAGS' | |
16729 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16730 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16731 | cross_compiling=$ac_cv_prog_cc_cross | |
16732 | ||
16733 | ||
16734 | INET_LINK= | |
16735 | for ac_func in inet_addr | |
16736 | do | |
16737 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16738 | echo "configure:16739: checking for $ac_func" >&5 |
4f14bcd8 | 16739 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16740 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16741 | else |
4f14bcd8 | 16742 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16743 | #line 16744 "configure" |
10f2d63a | 16744 | #include "confdefs.h" |
4f14bcd8 GD |
16745 | /* System header to define __stub macros and hopefully few prototypes, |
16746 | which can conflict with char $ac_func(); below. */ | |
16747 | #include <assert.h> | |
10f2d63a VZ |
16748 | /* Override any gcc2 internal prototype to avoid an error. */ |
16749 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16750 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16751 | char $ac_func(); |
698dcdb6 VZ |
16752 | |
16753 | int main() { | |
4f14bcd8 GD |
16754 | |
16755 | /* The GNU C library defines this for functions which it implements | |
16756 | to always fail with ENOSYS. Some functions are actually named | |
16757 | something starting with __ and the normal name is an alias. */ | |
16758 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16759 | choke me | |
16760 | #else | |
16761 | $ac_func(); | |
16762 | #endif | |
16763 | ||
698dcdb6 VZ |
16764 | ; return 0; } |
16765 | EOF | |
3c011993 | 16766 | if { (eval echo configure:16767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16767 | rm -rf conftest* |
4f14bcd8 | 16768 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16769 | else |
16770 | echo "configure: failed program was:" >&5 | |
16771 | cat conftest.$ac_ext >&5 | |
16772 | rm -rf conftest* | |
4f14bcd8 | 16773 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16774 | fi |
16775 | rm -f conftest* | |
698dcdb6 | 16776 | fi |
4f14bcd8 GD |
16777 | |
16778 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16779 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16780 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16781 | cat >> confdefs.h <<EOF | |
16782 | #define $ac_tr_func 1 | |
16783 | EOF | |
16784 | cat >> confdefs.h <<\EOF | |
16785 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16786 | EOF |
16787 | ||
16788 | else | |
698dcdb6 | 16789 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16790 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
3c011993 | 16791 | echo "configure:16792: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16792 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16793 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16795 | else |
698dcdb6 | 16796 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16797 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16798 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16799 | #line 16800 "configure" |
10f2d63a VZ |
16800 | #include "confdefs.h" |
16801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16802 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16803 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16804 | char inet_addr(); |
698dcdb6 VZ |
16805 | |
16806 | int main() { | |
4f14bcd8 | 16807 | inet_addr() |
698dcdb6 VZ |
16808 | ; return 0; } |
16809 | EOF | |
3c011993 | 16810 | if { (eval echo configure:16811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16811 | rm -rf conftest* |
16812 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16813 | else | |
16814 | echo "configure: failed program was:" >&5 | |
16815 | cat conftest.$ac_ext >&5 | |
16816 | rm -rf conftest* | |
16817 | eval "ac_cv_lib_$ac_lib_var=no" | |
16818 | fi | |
16819 | rm -f conftest* | |
16820 | LIBS="$ac_save_LIBS" | |
16821 | ||
16822 | fi | |
16823 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16824 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16825 | INET_LINK="nsl" |
10f2d63a | 16826 | else |
698dcdb6 | 16827 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16828 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
3c011993 | 16829 | echo "configure:16830: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16830 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16831 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16833 | else |
698dcdb6 | 16834 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16835 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16836 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16837 | #line 16838 "configure" |
10f2d63a VZ |
16838 | #include "confdefs.h" |
16839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16840 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16841 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16842 | char inet_addr(); |
698dcdb6 VZ |
16843 | |
16844 | int main() { | |
4f14bcd8 | 16845 | inet_addr() |
698dcdb6 VZ |
16846 | ; return 0; } |
16847 | EOF | |
3c011993 | 16848 | if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16849 | rm -rf conftest* |
16850 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16851 | else | |
16852 | echo "configure: failed program was:" >&5 | |
16853 | cat conftest.$ac_ext >&5 | |
16854 | rm -rf conftest* | |
16855 | eval "ac_cv_lib_$ac_lib_var=no" | |
16856 | fi | |
16857 | rm -f conftest* | |
16858 | LIBS="$ac_save_LIBS" | |
16859 | ||
16860 | fi | |
16861 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16862 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16863 | INET_LINK="resolv" |
698dcdb6 | 16864 | else |
4f14bcd8 | 16865 | echo "$ac_t""no" 1>&6 |
3c011993 VZ |
16866 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
16867 | echo "configure:16868: checking for inet_addr in -lsocket" >&5 | |
16868 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` | |
16869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16871 | else | |
16872 | ac_save_LIBS="$LIBS" | |
16873 | LIBS="-lsocket $LIBS" | |
16874 | cat > conftest.$ac_ext <<EOF | |
16875 | #line 16876 "configure" | |
16876 | #include "confdefs.h" | |
16877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16878 | /* We use char because int might match the return type of a gcc2 | |
16879 | builtin and then its argument prototype would still apply. */ | |
16880 | char inet_addr(); | |
16881 | ||
16882 | int main() { | |
16883 | inet_addr() | |
16884 | ; return 0; } | |
16885 | EOF | |
16886 | if { (eval echo configure:16887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16887 | rm -rf conftest* | |
16888 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16889 | else | |
16890 | echo "configure: failed program was:" >&5 | |
16891 | cat conftest.$ac_ext >&5 | |
16892 | rm -rf conftest* | |
16893 | eval "ac_cv_lib_$ac_lib_var=no" | |
16894 | fi | |
16895 | rm -f conftest* | |
16896 | LIBS="$ac_save_LIBS" | |
16897 | ||
16898 | fi | |
16899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16900 | echo "$ac_t""yes" 1>&6 | |
16901 | INET_LINK="socket" | |
16902 | ||
16903 | else | |
16904 | echo "$ac_t""no" 1>&6 | |
16905 | fi | |
16906 | ||
16907 | ||
4f14bcd8 | 16908 | fi |
698dcdb6 | 16909 | |
4f14bcd8 | 16910 | |
698dcdb6 | 16911 | fi |
4f14bcd8 GD |
16912 | |
16913 | ||
698dcdb6 VZ |
16914 | |
16915 | fi | |
4f14bcd8 GD |
16916 | done |
16917 | ||
16918 | ||
16919 | for ac_func in inet_aton | |
16920 | do | |
16921 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 16922 | echo "configure:16923: checking for $ac_func" >&5 |
4f14bcd8 | 16923 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16924 | echo $ac_n "(cached) $ac_c" 1>&6 |
16925 | else | |
4f14bcd8 | 16926 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16927 | #line 16928 "configure" |
f6bcfd97 | 16928 | #include "confdefs.h" |
4f14bcd8 GD |
16929 | /* System header to define __stub macros and hopefully few prototypes, |
16930 | which can conflict with char $ac_func(); below. */ | |
16931 | #include <assert.h> | |
f6bcfd97 BP |
16932 | /* Override any gcc2 internal prototype to avoid an error. */ |
16933 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16934 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16935 | char $ac_func(); |
698dcdb6 VZ |
16936 | |
16937 | int main() { | |
4f14bcd8 GD |
16938 | |
16939 | /* The GNU C library defines this for functions which it implements | |
16940 | to always fail with ENOSYS. Some functions are actually named | |
16941 | something starting with __ and the normal name is an alias. */ | |
16942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16943 | choke me | |
16944 | #else | |
16945 | $ac_func(); | |
16946 | #endif | |
16947 | ||
698dcdb6 VZ |
16948 | ; return 0; } |
16949 | EOF | |
3c011993 | 16950 | if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16951 | rm -rf conftest* |
4f14bcd8 | 16952 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16953 | else |
16954 | echo "configure: failed program was:" >&5 | |
16955 | cat conftest.$ac_ext >&5 | |
16956 | rm -rf conftest* | |
4f14bcd8 | 16957 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16958 | fi |
16959 | rm -f conftest* | |
698dcdb6 | 16960 | fi |
4f14bcd8 GD |
16961 | |
16962 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16963 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16964 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16965 | cat >> confdefs.h <<EOF | |
16966 | #define $ac_tr_func 1 | |
16967 | EOF | |
16968 | cat >> confdefs.h <<\EOF | |
16969 | #define HAVE_INET_ATON 1 | |
16970 | EOF | |
16971 | ||
10f2d63a | 16972 | else |
698dcdb6 | 16973 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16974 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
3c011993 | 16975 | echo "configure:16976: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16976 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16977 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16979 | else |
698dcdb6 | 16980 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16981 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 16982 | cat > conftest.$ac_ext <<EOF |
3c011993 | 16983 | #line 16984 "configure" |
10f2d63a | 16984 | #include "confdefs.h" |
6232543b | 16985 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 16986 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 16987 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16988 | char inet_aton(); |
698dcdb6 VZ |
16989 | |
16990 | int main() { | |
4f14bcd8 | 16991 | inet_aton() |
698dcdb6 VZ |
16992 | ; return 0; } |
16993 | EOF | |
3c011993 | 16994 | if { (eval echo configure:16995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16995 | rm -rf conftest* |
16996 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16997 | else | |
16998 | echo "configure: failed program was:" >&5 | |
16999 | cat conftest.$ac_ext >&5 | |
17000 | rm -rf conftest* | |
17001 | eval "ac_cv_lib_$ac_lib_var=no" | |
17002 | fi | |
17003 | rm -f conftest* | |
17004 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17005 | |
698dcdb6 VZ |
17006 | fi |
17007 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17008 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17009 | cat >> confdefs.h <<\EOF |
17010 | #define HAVE_INET_ATON 1 | |
17011 | EOF | |
17012 | ||
698dcdb6 VZ |
17013 | else |
17014 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17015 | fi |
17016 | ||
4f14bcd8 | 17017 | |
10f2d63a | 17018 | fi |
4f14bcd8 | 17019 | done |
10f2d63a | 17020 | |
4f14bcd8 GD |
17021 | |
17022 | if test "x$INET_LINK" != "x"; then | |
17023 | cat >> confdefs.h <<\EOF | |
17024 | #define HAVE_INET_ADDR 1 | |
17025 | EOF | |
17026 | ||
3d63bc3a | 17027 | INET_LINK=" -l$INET_LINK" |
6232543b | 17028 | fi |
10f2d63a | 17029 | |
1e487827 | 17030 | fi |
703e0a69 | 17031 | |
698dcdb6 | 17032 | |
4f14bcd8 GD |
17033 | cat > confcache <<\EOF |
17034 | # This file is a shell script that caches the results of configure | |
17035 | # tests run on this system so they can be shared between configure | |
17036 | # scripts and configure runs. It is not useful on other systems. | |
17037 | # If it contains results you don't want to keep, you may remove or edit it. | |
17038 | # | |
17039 | # By default, configure uses ./config.cache as the cache file, | |
17040 | # creating it if it does not exist already. You can give configure | |
17041 | # the --cache-file=FILE option to use a different cache file; that is | |
17042 | # what configure does when it calls configure scripts in | |
17043 | # subdirectories, so they share the cache. | |
17044 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17045 | # config.status only pays attention to the cache file if you give it the | |
17046 | # --recheck option to rerun configure. | |
17047 | # | |
f6bcfd97 | 17048 | EOF |
4f14bcd8 GD |
17049 | # The following way of writing the cache mishandles newlines in values, |
17050 | # but we know of no workaround that is simple, portable, and efficient. | |
17051 | # So, don't put newlines in cache variables' values. | |
17052 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17053 | # and sets the high bit in the cache file unless we assign to the vars. | |
17054 | (set) 2>&1 | | |
17055 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17056 | *ac_space=\ *) | |
17057 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17058 | # turns \\\\ into \\, and sed turns \\ into \). | |
17059 | sed -n \ | |
17060 | -e "s/'/'\\\\''/g" \ | |
17061 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17062 | ;; | |
17063 | *) | |
17064 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17065 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17066 | ;; | |
17067 | esac >> confcache | |
17068 | if cmp -s $cache_file confcache; then | |
17069 | : | |
17070 | else | |
17071 | if test -w $cache_file; then | |
17072 | echo "updating cache $cache_file" | |
17073 | cat confcache > $cache_file | |
f6bcfd97 | 17074 | else |
4f14bcd8 | 17075 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17076 | fi |
4f14bcd8 GD |
17077 | fi |
17078 | rm -f confcache | |
f6bcfd97 | 17079 | |
4f14bcd8 GD |
17080 | |
17081 | ||
17082 | if test "$TOOLKIT" != "MSW"; then | |
17083 | ||
7274f1c7 RL |
17084 | |
17085 | THREADS_LINK= | |
17086 | THREADS_OBJ= | |
17087 | CODE_GEN_FLAGS= | |
17088 | CODE_GEN_FLAGS_CXX= | |
17089 | ||
17090 | if test "$wxUSE_THREADS" = "yes" ; then | |
17091 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17092 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17093 | wxUSE_THREADS="no" |
17094 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17095 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17096 | wxUSE_THREADS="no" |
17097 | fi | |
4f14bcd8 | 17098 | fi |
4f14bcd8 | 17099 | |
7274f1c7 RL |
17100 | if test "$wxUSE_THREADS" = "yes" ; then |
17101 | ||
17102 | if test "$USE_AIX" = 1; then | |
17103 | THREADS_LIB=pthreads | |
17104 | else | |
17105 | THREADS_LIB=pthread | |
17106 | fi | |
4f14bcd8 | 17107 | |
7274f1c7 | 17108 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
3c011993 | 17109 | echo "configure:17110: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 17110 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17113 | else |
698dcdb6 | 17114 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17115 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 17116 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17117 | #line 17118 "configure" |
10f2d63a VZ |
17118 | #include "confdefs.h" |
17119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17120 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17121 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17122 | char pthread_create(); |
698dcdb6 VZ |
17123 | |
17124 | int main() { | |
4f14bcd8 | 17125 | pthread_create() |
698dcdb6 VZ |
17126 | ; return 0; } |
17127 | EOF | |
3c011993 | 17128 | if { (eval echo configure:17129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17129 | rm -rf conftest* |
17130 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17131 | else | |
17132 | echo "configure: failed program was:" >&5 | |
17133 | cat conftest.$ac_ext >&5 | |
17134 | rm -rf conftest* | |
17135 | eval "ac_cv_lib_$ac_lib_var=no" | |
17136 | fi | |
17137 | rm -f conftest* | |
17138 | LIBS="$ac_save_LIBS" | |
17139 | ||
17140 | fi | |
17141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17142 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17143 | |
7274f1c7 RL |
17144 | THREADS_OBJ="threadpsx.lo" |
17145 | THREADS_LINK=$THREADS_LIB | |
17146 | ||
10f2d63a | 17147 | else |
698dcdb6 | 17148 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17149 | |
7274f1c7 | 17150 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
3c011993 | 17151 | echo "configure:17152: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
17152 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
17153 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17154 | echo $ac_n "(cached) $ac_c" 1>&6 |
17155 | else | |
4f14bcd8 GD |
17156 | ac_save_LIBS="$LIBS" |
17157 | LIBS="-lc_r $LIBS" | |
17158 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 17159 | #line 17160 "configure" |
10f2d63a | 17160 | #include "confdefs.h" |
4f14bcd8 GD |
17161 | /* Override any gcc2 internal prototype to avoid an error. */ |
17162 | /* We use char because int might match the return type of a gcc2 | |
17163 | builtin and then its argument prototype would still apply. */ | |
17164 | char pthread_create(); | |
10f2d63a | 17165 | |
4f14bcd8 GD |
17166 | int main() { |
17167 | pthread_create() | |
698dcdb6 VZ |
17168 | ; return 0; } |
17169 | EOF | |
3c011993 | 17170 | if { (eval echo configure:17171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17171 | rm -rf conftest* |
4f14bcd8 | 17172 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 17173 | else |
698dcdb6 VZ |
17174 | echo "configure: failed program was:" >&5 |
17175 | cat conftest.$ac_ext >&5 | |
17176 | rm -rf conftest* | |
4f14bcd8 | 17177 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 17178 | fi |
698dcdb6 | 17179 | rm -f conftest* |
4f14bcd8 | 17180 | LIBS="$ac_save_LIBS" |
d9b9876f | 17181 | |
4f14bcd8 GD |
17182 | fi |
17183 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17184 | echo "$ac_t""yes" 1>&6 | |
17185 | ||
7274f1c7 RL |
17186 | THREADS_OBJ="threadpsx.lo" |
17187 | THREADS_LINK="c_r" | |
17188 | ||
4f14bcd8 GD |
17189 | else |
17190 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 17191 | |
7274f1c7 | 17192 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 17193 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
3c011993 | 17194 | echo "configure:17195: checking for sys/prctl.h" >&5 |
4f14bcd8 | 17195 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 17196 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 17197 | else |
4f14bcd8 | 17198 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17199 | #line 17200 "configure" |
d9b9876f | 17200 | #include "confdefs.h" |
4f14bcd8 | 17201 | #include <sys/prctl.h> |
698dcdb6 | 17202 | EOF |
4f14bcd8 | 17203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3c011993 | 17204 | { (eval echo configure:17205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17206 | if test -z "$ac_err"; then | |
698dcdb6 | 17207 | rm -rf conftest* |
4f14bcd8 | 17208 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 17209 | else |
4f14bcd8 | 17210 | echo "$ac_err" >&5 |
698dcdb6 VZ |
17211 | echo "configure: failed program was:" >&5 |
17212 | cat conftest.$ac_ext >&5 | |
17213 | rm -rf conftest* | |
4f14bcd8 | 17214 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 17215 | fi |
698dcdb6 | 17216 | rm -f conftest* |
4f14bcd8 GD |
17217 | fi |
17218 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17219 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 17220 | |
7274f1c7 RL |
17221 | THREADS_OBJ="threadsgi.lo" |
17222 | ||
4f14bcd8 GD |
17223 | else |
17224 | echo "$ac_t""no" 1>&6 | |
1e487827 | 17225 | fi |
698dcdb6 | 17226 | |
7274f1c7 | 17227 | |
4f14bcd8 | 17228 | fi |
d9b9876f | 17229 | |
7274f1c7 | 17230 | |
4f14bcd8 | 17231 | fi |
d9b9876f | 17232 | |
4f14bcd8 | 17233 | |
7274f1c7 RL |
17234 | if test -z "$THREADS_OBJ" ; then |
17235 | wxUSE_THREADS=no | |
156b2523 | 17236 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 17237 | fi |
4f14bcd8 | 17238 | fi |
4f14bcd8 | 17239 | |
7274f1c7 RL |
17240 | if test "$wxUSE_THREADS" = "yes" ; then |
17241 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17242 | do |
17243 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3c011993 | 17244 | echo "configure:17245: checking for $ac_func" >&5 |
4f14bcd8 | 17245 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17246 | echo $ac_n "(cached) $ac_c" 1>&6 |
17247 | else | |
4f14bcd8 | 17248 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17249 | #line 17250 "configure" |
d9b9876f | 17250 | #include "confdefs.h" |
4f14bcd8 GD |
17251 | /* System header to define __stub macros and hopefully few prototypes, |
17252 | which can conflict with char $ac_func(); below. */ | |
17253 | #include <assert.h> | |
17254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17255 | /* We use char because int might match the return type of a gcc2 | |
17256 | builtin and then its argument prototype would still apply. */ | |
17257 | char $ac_func(); | |
17258 | ||
698dcdb6 | 17259 | int main() { |
d9b9876f | 17260 | |
4f14bcd8 GD |
17261 | /* The GNU C library defines this for functions which it implements |
17262 | to always fail with ENOSYS. Some functions are actually named | |
17263 | something starting with __ and the normal name is an alias. */ | |
17264 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17265 | choke me | |
17266 | #else | |
17267 | $ac_func(); | |
17268 | #endif | |
17269 | ||
698dcdb6 VZ |
17270 | ; return 0; } |
17271 | EOF | |
3c011993 | 17272 | if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17273 | rm -rf conftest* |
4f14bcd8 | 17274 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17275 | else |
698dcdb6 VZ |
17276 | echo "configure: failed program was:" >&5 |
17277 | cat conftest.$ac_ext >&5 | |
17278 | rm -rf conftest* | |
4f14bcd8 | 17279 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17280 | fi |
698dcdb6 | 17281 | rm -f conftest* |
1e487827 | 17282 | fi |
698dcdb6 | 17283 | |
4f14bcd8 GD |
17284 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17285 | echo "$ac_t""yes" 1>&6 | |
17286 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17287 | cat >> confdefs.h <<EOF | |
17288 | #define $ac_tr_func 1 | |
d9b9876f | 17289 | EOF |
4f14bcd8 GD |
17290 | |
17291 | else | |
17292 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17293 | fi |
4f14bcd8 | 17294 | done |
10f2d63a | 17295 | |
10f2d63a | 17296 | |
7274f1c7 RL |
17297 | |
17298 | for ac_hdr in sched.h | |
4f14bcd8 GD |
17299 | do |
17300 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17301 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3c011993 | 17302 | echo "configure:17303: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17303 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17305 | else |
4f14bcd8 | 17306 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17307 | #line 17308 "configure" |
4f14bcd8 GD |
17308 | #include "confdefs.h" |
17309 | #include <$ac_hdr> | |
13111b2a | 17310 | EOF |
4f14bcd8 | 17311 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3c011993 | 17312 | { (eval echo configure:17313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17313 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17314 | if test -z "$ac_err"; then | |
17315 | rm -rf conftest* | |
17316 | eval "ac_cv_header_$ac_safe=yes" | |
17317 | else | |
17318 | echo "$ac_err" >&5 | |
17319 | echo "configure: failed program was:" >&5 | |
17320 | cat conftest.$ac_ext >&5 | |
17321 | rm -rf conftest* | |
17322 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17323 | fi |
4f14bcd8 | 17324 | rm -f conftest* |
10f2d63a | 17325 | fi |
4f14bcd8 GD |
17326 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17327 | echo "$ac_t""yes" 1>&6 | |
17328 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17329 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17330 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17331 | EOF |
4f14bcd8 GD |
17332 | |
17333 | else | |
17334 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17335 | fi |
4f14bcd8 | 17336 | done |
f6bcfd97 | 17337 | |
10f2d63a | 17338 | |
7274f1c7 | 17339 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
3c011993 | 17340 | echo "configure:17341: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17341 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
17342 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17344 | else | |
17345 | ac_save_LIBS="$LIBS" | |
17346 | LIBS="-l$THREADS_LINK $LIBS" | |
17347 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 17348 | #line 17349 "configure" |
4f14bcd8 GD |
17349 | #include "confdefs.h" |
17350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17351 | /* We use char because int might match the return type of a gcc2 | |
17352 | builtin and then its argument prototype would still apply. */ | |
17353 | char sched_yield(); | |
10f2d63a | 17354 | |
4f14bcd8 GD |
17355 | int main() { |
17356 | sched_yield() | |
17357 | ; return 0; } | |
10f2d63a | 17358 | EOF |
3c011993 | 17359 | if { (eval echo configure:17360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17360 | rm -rf conftest* |
17361 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17362 | else |
4f14bcd8 GD |
17363 | echo "configure: failed program was:" >&5 |
17364 | cat conftest.$ac_ext >&5 | |
17365 | rm -rf conftest* | |
17366 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17367 | fi |
4f14bcd8 GD |
17368 | rm -f conftest* |
17369 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17370 | |
4f14bcd8 GD |
17371 | fi |
17372 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17373 | echo "$ac_t""yes" 1>&6 | |
17374 | cat >> confdefs.h <<\EOF | |
17375 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17376 | EOF |
17377 | ||
4f14bcd8 GD |
17378 | else |
17379 | echo "$ac_t""no" 1>&6 | |
17380 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
3c011993 | 17381 | echo "configure:17382: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17382 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17383 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17385 | else | |
17386 | ac_save_LIBS="$LIBS" | |
17387 | LIBS="-lposix4 $LIBS" | |
17388 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 17389 | #line 17390 "configure" |
4f14bcd8 GD |
17390 | #include "confdefs.h" |
17391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17392 | /* We use char because int might match the return type of a gcc2 | |
17393 | builtin and then its argument prototype would still apply. */ | |
17394 | char sched_yield(); | |
47c13eb7 | 17395 | |
4f14bcd8 GD |
17396 | int main() { |
17397 | sched_yield() | |
17398 | ; return 0; } | |
10f2d63a | 17399 | EOF |
3c011993 | 17400 | if { (eval echo configure:17401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17401 | rm -rf conftest* |
17402 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17403 | else |
4f14bcd8 GD |
17404 | echo "configure: failed program was:" >&5 |
17405 | cat conftest.$ac_ext >&5 | |
17406 | rm -rf conftest* | |
17407 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17408 | fi |
4f14bcd8 GD |
17409 | rm -f conftest* |
17410 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17411 | |
54276ccf | 17412 | fi |
4f14bcd8 GD |
17413 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17414 | echo "$ac_t""yes" 1>&6 | |
17415 | cat >> confdefs.h <<\EOF | |
17416 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17417 | EOF |
3d63bc3a | 17418 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17419 | else |
17420 | echo "$ac_t""no" 1>&6 | |
17421 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 17422 | |
54276ccf VZ |
17423 | fi |
17424 | ||
7274f1c7 | 17425 | |
4f14bcd8 | 17426 | fi |
698dcdb6 | 17427 | |
10f2d63a | 17428 | |
7274f1c7 RL |
17429 | HAVE_PRIOR_FUNCS=0 |
17430 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3c011993 | 17431 | echo "configure:17432: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17432 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
17433 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17434 | echo $ac_n "(cached) $ac_c" 1>&6 |
17435 | else | |
4f14bcd8 GD |
17436 | ac_save_LIBS="$LIBS" |
17437 | LIBS="-l$THREADS_LINK $LIBS" | |
17438 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 17439 | #line 17440 "configure" |
422107f9 | 17440 | #include "confdefs.h" |
4f14bcd8 GD |
17441 | /* Override any gcc2 internal prototype to avoid an error. */ |
17442 | /* We use char because int might match the return type of a gcc2 | |
17443 | builtin and then its argument prototype would still apply. */ | |
17444 | char pthread_attr_getschedpolicy(); | |
17445 | ||
17446 | int main() { | |
17447 | pthread_attr_getschedpolicy() | |
17448 | ; return 0; } | |
698dcdb6 | 17449 | EOF |
3c011993 | 17450 | if { (eval echo configure:17451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17451 | rm -rf conftest* |
4f14bcd8 | 17452 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17453 | else |
698dcdb6 | 17454 | echo "configure: failed program was:" >&5 |
422107f9 | 17455 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17456 | rm -rf conftest* |
4f14bcd8 | 17457 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17458 | fi |
698dcdb6 | 17459 | rm -f conftest* |
4f14bcd8 GD |
17460 | LIBS="$ac_save_LIBS" |
17461 | ||
422107f9 | 17462 | fi |
4f14bcd8 | 17463 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17464 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17465 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
3c011993 | 17466 | echo "configure:17467: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17467 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17470 | else |
698dcdb6 | 17471 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17472 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17473 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17474 | #line 17475 "configure" |
422107f9 VZ |
17475 | #include "confdefs.h" |
17476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17477 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17478 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17479 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17480 | |
17481 | int main() { | |
4f14bcd8 | 17482 | pthread_attr_setschedparam() |
698dcdb6 VZ |
17483 | ; return 0; } |
17484 | EOF | |
3c011993 | 17485 | if { (eval echo configure:17486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17486 | rm -rf conftest* |
17487 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17488 | else | |
17489 | echo "configure: failed program was:" >&5 | |
17490 | cat conftest.$ac_ext >&5 | |
17491 | rm -rf conftest* | |
17492 | eval "ac_cv_lib_$ac_lib_var=no" | |
17493 | fi | |
17494 | rm -f conftest* | |
17495 | LIBS="$ac_save_LIBS" | |
17496 | ||
17497 | fi | |
17498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17499 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17500 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
3c011993 | 17501 | echo "configure:17502: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17502 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
17503 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17504 | echo $ac_n "(cached) $ac_c" 1>&6 |
17505 | else | |
4f14bcd8 GD |
17506 | ac_save_LIBS="$LIBS" |
17507 | LIBS="-l$THREADS_LINK $LIBS" | |
17508 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 17509 | #line 17510 "configure" |
422107f9 | 17510 | #include "confdefs.h" |
4f14bcd8 GD |
17511 | /* Override any gcc2 internal prototype to avoid an error. */ |
17512 | /* We use char because int might match the return type of a gcc2 | |
17513 | builtin and then its argument prototype would still apply. */ | |
17514 | char sched_get_priority_max(); | |
17515 | ||
17516 | int main() { | |
17517 | sched_get_priority_max() | |
17518 | ; return 0; } | |
698dcdb6 | 17519 | EOF |
3c011993 | 17520 | if { (eval echo configure:17521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17521 | rm -rf conftest* |
4f14bcd8 | 17522 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17523 | else |
698dcdb6 | 17524 | echo "configure: failed program was:" >&5 |
422107f9 | 17525 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17526 | rm -rf conftest* |
4f14bcd8 | 17527 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17528 | fi |
698dcdb6 | 17529 | rm -f conftest* |
4f14bcd8 GD |
17530 | LIBS="$ac_save_LIBS" |
17531 | ||
422107f9 | 17532 | fi |
4f14bcd8 | 17533 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17534 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17535 | HAVE_PRIOR_FUNCS=1 |
17536 | else | |
17537 | echo "$ac_t""no" 1>&6 | |
17538 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
3c011993 | 17539 | echo "configure:17540: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17540 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17541 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17543 | else |
698dcdb6 | 17544 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17545 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17546 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17547 | #line 17548 "configure" |
422107f9 VZ |
17548 | #include "confdefs.h" |
17549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17550 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17551 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17552 | char sched_get_priority_max(); |
698dcdb6 VZ |
17553 | |
17554 | int main() { | |
4f14bcd8 | 17555 | sched_get_priority_max() |
698dcdb6 VZ |
17556 | ; return 0; } |
17557 | EOF | |
3c011993 | 17558 | if { (eval echo configure:17559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17559 | rm -rf conftest* |
17560 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17561 | else | |
17562 | echo "configure: failed program was:" >&5 | |
17563 | cat conftest.$ac_ext >&5 | |
17564 | rm -rf conftest* | |
17565 | eval "ac_cv_lib_$ac_lib_var=no" | |
17566 | fi | |
17567 | rm -f conftest* | |
17568 | LIBS="$ac_save_LIBS" | |
17569 | ||
17570 | fi | |
17571 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17572 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17573 | |
7274f1c7 RL |
17574 | HAVE_PRIOR_FUNCS=1 |
17575 | POSIX4_LINK=" -lposix4" | |
17576 | ||
698dcdb6 VZ |
17577 | else |
17578 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17579 | fi |
17580 | ||
7274f1c7 | 17581 | |
422107f9 VZ |
17582 | fi |
17583 | ||
7274f1c7 | 17584 | |
4f14bcd8 GD |
17585 | else |
17586 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17587 | fi |
17588 | ||
7274f1c7 | 17589 | |
698dcdb6 | 17590 | else |
4f14bcd8 GD |
17591 | echo "$ac_t""no" 1>&6 |
17592 | fi | |
463abc64 | 17593 | |
463abc64 | 17594 | |
7274f1c7 RL |
17595 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17596 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17597 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17598 | EOF |
463abc64 | 17599 | |
7274f1c7 RL |
17600 | else |
17601 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17602 | fi | |
463abc64 | 17603 | |
7274f1c7 | 17604 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
3c011993 | 17605 | echo "configure:17606: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17606 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17607 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17609 | else |
698dcdb6 | 17610 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17611 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17612 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17613 | #line 17614 "configure" |
422107f9 VZ |
17614 | #include "confdefs.h" |
17615 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17616 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17617 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17618 | char pthread_cancel(); |
698dcdb6 VZ |
17619 | |
17620 | int main() { | |
4f14bcd8 | 17621 | pthread_cancel() |
698dcdb6 VZ |
17622 | ; return 0; } |
17623 | EOF | |
3c011993 | 17624 | if { (eval echo configure:17625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17625 | rm -rf conftest* |
17626 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17627 | else | |
17628 | echo "configure: failed program was:" >&5 | |
17629 | cat conftest.$ac_ext >&5 | |
17630 | rm -rf conftest* | |
17631 | eval "ac_cv_lib_$ac_lib_var=no" | |
17632 | fi | |
17633 | rm -f conftest* | |
17634 | LIBS="$ac_save_LIBS" | |
17635 | ||
17636 | fi | |
17637 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17638 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17639 | cat >> confdefs.h <<\EOF |
17640 | #define HAVE_PTHREAD_CANCEL 1 | |
17641 | EOF | |
17642 | ||
698dcdb6 VZ |
17643 | else |
17644 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17645 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17646 | fi |
17647 | ||
422107f9 | 17648 | |
7274f1c7 | 17649 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
3c011993 | 17650 | echo "configure:17651: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17651 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17653 | else | |
17654 | ||
7274f1c7 | 17655 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17656 | #line 17657 "configure" |
4f14bcd8 GD |
17657 | #include "confdefs.h" |
17658 | #include <pthread.h> | |
17659 | int main() { | |
17660 | ||
7274f1c7 RL |
17661 | pthread_cleanup_push(NULL, NULL); |
17662 | pthread_cleanup_pop(0); | |
17663 | ||
4f14bcd8 GD |
17664 | ; return 0; } |
17665 | EOF | |
3c011993 | 17666 | if { (eval echo configure:17667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17667 | rm -rf conftest* |
17668 | ||
7274f1c7 RL |
17669 | wx_cv_func_pthread_cleanup_push=yes |
17670 | ||
4f14bcd8 GD |
17671 | else |
17672 | echo "configure: failed program was:" >&5 | |
17673 | cat conftest.$ac_ext >&5 | |
17674 | rm -rf conftest* | |
17675 | ||
7274f1c7 RL |
17676 | wx_cv_func_pthread_cleanup_push=no |
17677 | ||
4f14bcd8 GD |
17678 | fi |
17679 | rm -f conftest* | |
7274f1c7 | 17680 | |
10f2d63a VZ |
17681 | fi |
17682 | ||
4f14bcd8 GD |
17683 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17684 | ||
7274f1c7 RL |
17685 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17686 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17687 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17688 | EOF |
17689 | ||
7274f1c7 | 17690 | fi |
4f14bcd8 | 17691 | |
7274f1c7 RL |
17692 | |
17693 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17694 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17695 | fi | |
4f14bcd8 | 17696 | |
7274f1c7 | 17697 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
3c011993 | 17698 | echo "configure:17699: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17699 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17700 | echo $ac_n "(cached) $ac_c" 1>&6 |
17701 | else | |
4f14bcd8 | 17702 | |
7274f1c7 | 17703 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17704 | #line 17705 "configure" |
0dcf9893 | 17705 | #include "confdefs.h" |
4f14bcd8 GD |
17706 | #include <pthread.h> |
17707 | int main() { | |
17708 | ||
7274f1c7 RL |
17709 | pthread_mutexattr_t attr; |
17710 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17711 | ||
4f14bcd8 | 17712 | ; return 0; } |
698dcdb6 | 17713 | EOF |
3c011993 | 17714 | if { (eval echo configure:17715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17715 | rm -rf conftest* |
4f14bcd8 | 17716 | |
7274f1c7 RL |
17717 | wx_cv_type_pthread_mutexattr_t=yes |
17718 | ||
3fed1840 | 17719 | else |
698dcdb6 | 17720 | echo "configure: failed program was:" >&5 |
3fed1840 | 17721 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17722 | rm -rf conftest* |
4f14bcd8 | 17723 | |
7274f1c7 RL |
17724 | wx_cv_type_pthread_mutexattr_t=no |
17725 | ||
4f14bcd8 | 17726 | |
3fed1840 | 17727 | fi |
698dcdb6 | 17728 | rm -f conftest* |
7274f1c7 | 17729 | |
3fed1840 | 17730 | fi |
4f14bcd8 GD |
17731 | |
17732 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17733 | ||
7274f1c7 RL |
17734 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17735 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17736 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17737 | EOF | |
17738 | ||
7274f1c7 RL |
17739 | else |
17740 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
3c011993 | 17741 | echo "configure:17742: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17742 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17743 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17744 | else |
4f14bcd8 | 17745 | |
7274f1c7 | 17746 | cat > conftest.$ac_ext <<EOF |
3c011993 | 17747 | #line 17748 "configure" |
3fed1840 | 17748 | #include "confdefs.h" |
4f14bcd8 | 17749 | #include <pthread.h> |
698dcdb6 | 17750 | int main() { |
4f14bcd8 | 17751 | |
7274f1c7 RL |
17752 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17753 | ||
698dcdb6 VZ |
17754 | ; return 0; } |
17755 | EOF | |
3c011993 | 17756 | if { (eval echo configure:17757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17757 | rm -rf conftest* |
4f14bcd8 | 17758 | |
7274f1c7 RL |
17759 | wx_cv_type_pthread_rec_mutex_init=yes |
17760 | ||
698dcdb6 VZ |
17761 | else |
17762 | echo "configure: failed program was:" >&5 | |
17763 | cat conftest.$ac_ext >&5 | |
17764 | rm -rf conftest* | |
4f14bcd8 | 17765 | |
7274f1c7 RL |
17766 | wx_cv_type_pthread_rec_mutex_init=no |
17767 | ||
4f14bcd8 | 17768 | |
698dcdb6 VZ |
17769 | fi |
17770 | rm -f conftest* | |
7274f1c7 | 17771 | |
3fed1840 RR |
17772 | fi |
17773 | ||
4f14bcd8 | 17774 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17775 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17776 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17777 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17778 | EOF | |
3fed1840 | 17779 | |
7274f1c7 RL |
17780 | else |
17781 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17782 | fi | |
17783 | fi | |
4f14bcd8 | 17784 | |
7274f1c7 | 17785 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17786 | |
7274f1c7 RL |
17787 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17788 | CPPFLAGS="$CFLAGS -mt" | |
17789 | CXXFLAGS="$CXXFLAGS -mt" | |
17790 | LDFLAGS="$LDFLAGS -mt" | |
17791 | fi | |
17792 | fi | |
3fed1840 | 17793 | |
4f14bcd8 GD |
17794 | fi |
17795 | ||
17796 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17797 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17798 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17799 | EOF |
17800 | ||
4f14bcd8 | 17801 | |
3f345b47 | 17802 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17803 | |
17804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17805 | else |
4f14bcd8 GD |
17806 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17807 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
3c011993 | 17808 | echo "configure:17809: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17809 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17810 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17811 | echo "$ac_t""yes" 1>&6 | |
17812 | else | |
17813 | echo "$ac_t""no" 1>&6 | |
17814 | fi | |
17815 | fi | |
17816 | fi | |
17817 | ||
17818 | if test "$WXGTK20" = 1 ; then | |
17819 | cat >> confdefs.h <<EOF | |
17820 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17821 | EOF |
4f14bcd8 GD |
17822 | |
17823 | WXGTK12=1 | |
10f2d63a | 17824 | fi |
4f14bcd8 GD |
17825 | |
17826 | if test "$WXGTK12" = 1 ; then | |
17827 | cat >> confdefs.h <<EOF | |
17828 | #define __WXGTK12__ $WXGTK12 | |
17829 | EOF | |
17830 | ||
10f2d63a | 17831 | fi |
698dcdb6 | 17832 | |
4f14bcd8 GD |
17833 | if test "$WXGTK127" = 1 ; then |
17834 | cat >> confdefs.h <<EOF | |
17835 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17836 | EOF |
4f14bcd8 | 17837 | |
698dcdb6 | 17838 | fi |
10f2d63a | 17839 | |
4f14bcd8 GD |
17840 | WXDEBUG= |
17841 | ||
17842 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17843 | WXDEBUG="-g" | |
17844 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17845 | fi |
4f14bcd8 GD |
17846 | |
17847 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17848 | wxUSE_DEBUG_INFO=yes | |
17849 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17850 | fi |
17851 | ||
4f14bcd8 GD |
17852 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17853 | cat >> confdefs.h <<\EOF | |
17854 | #define WXDEBUG 1 | |
17855 | EOF | |
17856 | ||
17857 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17858 | else |
4f14bcd8 GD |
17859 | if test "$wxUSE_GTK" = 1 ; then |
17860 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17861 | fi | |
17862 | fi | |
17863 | ||
17864 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17865 | cat >> confdefs.h <<\EOF | |
17866 | #define wxUSE_MEMORY_TRACING 1 | |
17867 | EOF | |
17868 | ||
17869 | cat >> confdefs.h <<\EOF | |
17870 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17871 | EOF | |
17872 | ||
17873 | cat >> confdefs.h <<\EOF | |
17874 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17875 | EOF | |
17876 | ||
17877 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17878 | fi | |
17879 | ||
17880 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17881 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17882 | fi |
17883 | ||
17884 | PROFILE= | |
17885 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17886 | PROFILE=" -pg" |
10f2d63a VZ |
17887 | fi |
17888 | ||
88e30f2b | 17889 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17890 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17891 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17892 | fi |
4f14bcd8 GD |
17893 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17894 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17895 | fi | |
17896 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17897 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17898 | fi | |
4f14bcd8 GD |
17899 | if test "$USE_WIN32" = 1 ; then |
17900 | # I'm not even really sure what this was ever added to solve, | |
17901 | # but someone added it for mingw native builds, so I guess | |
17902 | # they had a reason, right?? | |
17903 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17904 | fi | |
17905 | fi | |
17906 | ||
17907 | ||
17908 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17909 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17910 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17911 | OPTIMISE= | |
17912 | else | |
17913 | if test "$GCC" = yes ; then | |
17914 | OPTIMISE="-O2" | |
17915 | case "${host}" in | |
17916 | i586-*-*|i686-*-* ) | |
17917 | OPTIMISE="${OPTIMISE} " | |
17918 | ;; | |
17919 | esac | |
17920 | else | |
17921 | OPTIMISE="-O" | |
17922 | fi | |
17923 | fi | |
17924 | ||
17925 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17926 | cat >> confdefs.h <<\EOF | |
17927 | #define WXWIN_COMPATIBILITY_2 1 | |
17928 | EOF | |
17929 | ||
17930 | ||
17931 | WXWIN_COMPATIBILITY_2_2="yes" | |
17932 | fi | |
17933 | ||
17934 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
17935 | cat >> confdefs.h <<\EOF | |
17936 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17937 | EOF | |
17938 | ||
10f2d63a VZ |
17939 | fi |
17940 | ||
698dcdb6 | 17941 | |
10f2d63a | 17942 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17943 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17944 | #define wxUSE_GUI 1 |
17945 | EOF | |
17946 | ||
698dcdb6 | 17947 | |
10f2d63a | 17948 | else |
698dcdb6 | 17949 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17950 | #define wxUSE_NOGUI 1 |
17951 | EOF | |
17952 | ||
17953 | fi | |
17954 | ||
698dcdb6 | 17955 | |
10f2d63a | 17956 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17957 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17958 | #define wxUSE_UNIX 1 |
17959 | EOF | |
17960 | ||
17961 | fi | |
17962 | ||
698dcdb6 | 17963 | |
10f2d63a | 17964 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17966 | #define wxUSE_APPLE_IEEE 1 |
17967 | EOF | |
17968 | ||
17969 | fi | |
17970 | ||
1e6feb95 VZ |
17971 | if test "$wxUSE_TIMER" = "yes"; then |
17972 | cat >> confdefs.h <<\EOF | |
17973 | #define wxUSE_TIMER 1 | |
17974 | EOF | |
17975 | ||
17976 | fi | |
17977 | ||
10f2d63a | 17978 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 17979 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17980 | #define wxUSE_WAVE 1 |
17981 | EOF | |
17982 | ||
17983 | fi | |
17984 | ||
1e6feb95 VZ |
17985 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
17986 | cat >> confdefs.h <<\EOF | |
17987 | #define wxUSE_CMDLINE_PARSER 1 | |
17988 | EOF | |
17989 | ||
17990 | fi | |
17991 | ||
17992 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
17993 | cat >> confdefs.h <<\EOF | |
17994 | #define wxUSE_STOPWATCH 1 | |
17995 | EOF | |
17996 | ||
17997 | fi | |
17998 | ||
17999 | if test "$wxUSE_DATETIME" = "yes"; then | |
18000 | cat >> confdefs.h <<\EOF | |
18001 | #define wxUSE_DATETIME 1 | |
18002 | EOF | |
18003 | ||
18004 | fi | |
18005 | ||
18006 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18007 | cat >> confdefs.h <<\EOF | |
18008 | #define wxUSE_TIMEDATE 1 | |
18009 | EOF | |
18010 | ||
18011 | fi | |
18012 | ||
10f2d63a | 18013 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18014 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18015 | #define wxUSE_FILE 1 |
18016 | EOF | |
18017 | ||
18018 | fi | |
18019 | ||
1e6feb95 VZ |
18020 | if test "$wxUSE_FFILE" = "yes"; then |
18021 | cat >> confdefs.h <<\EOF | |
18022 | #define wxUSE_FFILE 1 | |
18023 | EOF | |
18024 | ||
18025 | fi | |
18026 | ||
24528b0c | 18027 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18028 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18029 | #define wxUSE_FILESYSTEM 1 |
18030 | EOF | |
18031 | ||
18032 | fi | |
18033 | ||
10f2d63a | 18034 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18035 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18036 | #define wxUSE_FS_INET 1 |
18037 | EOF | |
18038 | ||
18039 | fi | |
18040 | ||
18041 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18042 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18043 | #define wxUSE_FS_ZIP 1 |
18044 | EOF | |
18045 | ||
18046 | fi | |
18047 | ||
18048 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18049 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18050 | #define wxUSE_ZIPSTREAM 1 |
18051 | EOF | |
18052 | ||
18053 | fi | |
18054 | ||
eb4efbdc | 18055 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18056 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18057 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18058 | EOF | |
18059 | ||
18060 | fi | |
18061 | ||
4f3c5f06 | 18062 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18063 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18064 | #define wxUSE_SNGLINST_CHECKER 1 |
18065 | EOF | |
18066 | ||
18067 | fi | |
18068 | ||
10f2d63a | 18069 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18071 | #define wxUSE_BUSYINFO 1 |
18072 | EOF | |
18073 | ||
18074 | fi | |
18075 | ||
18076 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18078 | #define wxUSE_STD_IOSTREAM 1 |
18079 | EOF | |
18080 | ||
18081 | fi | |
18082 | ||
a3a584a7 VZ |
18083 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18084 | cat >> confdefs.h <<\EOF | |
18085 | #define wxUSE_TEXTBUFFER 1 | |
18086 | EOF | |
18087 | ||
18088 | fi | |
18089 | ||
10f2d63a | 18090 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18091 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18092 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18093 | else |
698dcdb6 | 18094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18095 | #define wxUSE_TEXTFILE 1 |
18096 | EOF | |
18097 | ||
18098 | fi | |
18099 | fi | |
18100 | ||
18101 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18102 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18103 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18104 | else |
698dcdb6 | 18105 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18106 | #define wxUSE_CONFIG 1 |
18107 | EOF | |
18108 | ||
18109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18110 | fi | |
18111 | fi | |
18112 | ||
18113 | if test "$wxUSE_INTL" = "yes" ; then | |
18114 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18115 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18116 | else |
698dcdb6 | 18117 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18118 | #define wxUSE_INTL 1 |
18119 | EOF | |
18120 | ||
18121 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18122 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18123 | fi |
18124 | fi | |
18125 | ||
18126 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18128 | #define wxUSE_LOG 1 |
18129 | EOF | |
18130 | ||
d73be714 VZ |
18131 | |
18132 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18133 | cat >> confdefs.h <<\EOF | |
18134 | #define wxUSE_LOGGUI 1 | |
18135 | EOF | |
18136 | ||
18137 | fi | |
18138 | ||
18139 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18140 | cat >> confdefs.h <<\EOF | |
18141 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18142 | EOF |
18143 | ||
18144 | fi | |
18145 | ||
18146 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18147 | cat >> confdefs.h <<\EOF | |
18148 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18149 | EOF |
18150 | ||
18151 | fi | |
10f2d63a VZ |
18152 | fi |
18153 | ||
18154 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18155 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18156 | #define wxUSE_LONGLONG 1 |
18157 | EOF | |
18158 | ||
18159 | fi | |
18160 | ||
e8f65ba6 | 18161 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18162 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18163 | #define wxUSE_GEOMETRY 1 |
18164 | EOF | |
18165 | ||
18166 | fi | |
18167 | ||
10f2d63a | 18168 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18169 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18170 | #define wxUSE_DIALUP_MANAGER 1 |
18171 | EOF | |
18172 | ||
70f7a477 | 18173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18174 | fi |
18175 | ||
18176 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18178 | #define wxUSE_STREAMS 1 |
18179 | EOF | |
18180 | ||
18181 | fi | |
18182 | ||
1e487827 | 18183 | |
1e6feb95 | 18184 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18185 | for ac_func in strptime |
83307f33 | 18186 | do |
698dcdb6 | 18187 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 18188 | echo "configure:18189: checking for $ac_func" >&5 |
698dcdb6 VZ |
18189 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18191 | else | |
18192 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18193 | #line 18194 "configure" |
83307f33 VZ |
18194 | #include "confdefs.h" |
18195 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18196 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18197 | #include <assert.h> |
18198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18199 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18200 | builtin and then its argument prototype would still apply. */ |
18201 | char $ac_func(); | |
18202 | ||
18203 | int main() { | |
83307f33 VZ |
18204 | |
18205 | /* The GNU C library defines this for functions which it implements | |
18206 | to always fail with ENOSYS. Some functions are actually named | |
18207 | something starting with __ and the normal name is an alias. */ | |
18208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18209 | choke me | |
18210 | #else | |
698dcdb6 | 18211 | $ac_func(); |
83307f33 VZ |
18212 | #endif |
18213 | ||
698dcdb6 | 18214 | ; return 0; } |
83307f33 | 18215 | EOF |
3c011993 | 18216 | if { (eval echo configure:18217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18217 | rm -rf conftest* |
18218 | eval "ac_cv_func_$ac_func=yes" | |
18219 | else | |
18220 | echo "configure: failed program was:" >&5 | |
18221 | cat conftest.$ac_ext >&5 | |
18222 | rm -rf conftest* | |
18223 | eval "ac_cv_func_$ac_func=no" | |
18224 | fi | |
18225 | rm -f conftest* | |
18226 | fi | |
83307f33 | 18227 | |
698dcdb6 VZ |
18228 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18229 | echo "$ac_t""yes" 1>&6 | |
18230 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18231 | cat >> confdefs.h <<EOF | |
18232 | #define $ac_tr_func 1 | |
18233 | EOF | |
18234 | ||
18235 | else | |
18236 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18237 | fi |
18238 | done | |
18239 | ||
1e487827 | 18240 | |
698dcdb6 | 18241 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
3c011993 | 18242 | echo "configure:18243: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18243 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18245 | else | |
18246 | ||
18247 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18248 | #line 18249 "configure" |
360d6699 VZ |
18249 | #include "confdefs.h" |
18250 | ||
b4085ce6 | 18251 | #include <time.h> |
698dcdb6 VZ |
18252 | |
18253 | int main() { | |
360d6699 VZ |
18254 | |
18255 | int tz; | |
4f11a343 | 18256 | tz = timezone; |
698dcdb6 VZ |
18257 | |
18258 | ; return 0; } | |
18259 | EOF | |
3c011993 | 18260 | if { (eval echo configure:18261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18261 | rm -rf conftest* |
18262 | ||
4f11a343 | 18263 | wx_cv_var_timezone=timezone |
698dcdb6 | 18264 | |
360d6699 | 18265 | else |
698dcdb6 VZ |
18266 | echo "configure: failed program was:" >&5 |
18267 | cat conftest.$ac_ext >&5 | |
18268 | rm -rf conftest* | |
18269 | ||
18270 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18271 | #line 18272 "configure" |
360d6699 VZ |
18272 | #include "confdefs.h" |
18273 | ||
b4085ce6 | 18274 | #include <time.h> |
698dcdb6 VZ |
18275 | |
18276 | int main() { | |
360d6699 VZ |
18277 | |
18278 | int tz; | |
18279 | tz = _timezone; | |
698dcdb6 VZ |
18280 | |
18281 | ; return 0; } | |
18282 | EOF | |
3c011993 | 18283 | if { (eval echo configure:18284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18284 | rm -rf conftest* |
18285 | ||
360d6699 | 18286 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18287 | |
5357c8e8 | 18288 | else |
698dcdb6 VZ |
18289 | echo "configure: failed program was:" >&5 |
18290 | cat conftest.$ac_ext >&5 | |
18291 | rm -rf conftest* | |
18292 | ||
18293 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18294 | #line 18295 "configure" |
5357c8e8 VZ |
18295 | #include "confdefs.h" |
18296 | ||
b4085ce6 | 18297 | #include <time.h> |
698dcdb6 VZ |
18298 | |
18299 | int main() { | |
5357c8e8 VZ |
18300 | |
18301 | int tz; | |
4f11a343 | 18302 | tz = __timezone; |
698dcdb6 VZ |
18303 | |
18304 | ; return 0; } | |
18305 | EOF | |
3c011993 | 18306 | if { (eval echo configure:18307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18307 | rm -rf conftest* |
18308 | ||
4f11a343 | 18309 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18310 | |
360d6699 | 18311 | else |
698dcdb6 VZ |
18312 | echo "configure: failed program was:" >&5 |
18313 | cat conftest.$ac_ext >&5 | |
18314 | rm -rf conftest* | |
f9bc1684 VS |
18315 | |
18316 | if test "$USE_DOS" = 0 ; then | |
18317 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
18318 | fi | |
18319 | ||
698dcdb6 | 18320 | |
360d6699 | 18321 | fi |
698dcdb6 VZ |
18322 | rm -f conftest* |
18323 | ||
18324 | ||
360d6699 | 18325 | fi |
698dcdb6 VZ |
18326 | rm -f conftest* |
18327 | ||
18328 | ||
6232543b | 18329 | fi |
698dcdb6 VZ |
18330 | rm -f conftest* |
18331 | ||
18332 | ||
1e487827 | 18333 | fi |
703e0a69 | 18334 | |
698dcdb6 VZ |
18335 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18336 | ||
f9bc1684 | 18337 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18338 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18339 | #define WX_TIMEZONE $wx_cv_var_timezone |
18340 | EOF | |
18341 | ||
f9bc1684 | 18342 | fi |
698dcdb6 VZ |
18343 | |
18344 | for ac_func in localtime | |
afc31813 | 18345 | do |
698dcdb6 | 18346 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 18347 | echo "configure:18348: checking for $ac_func" >&5 |
698dcdb6 VZ |
18348 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18350 | else | |
18351 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18352 | #line 18353 "configure" |
10f2d63a | 18353 | #include "confdefs.h" |
afc31813 | 18354 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18355 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18356 | #include <assert.h> |
18357 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18358 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18359 | builtin and then its argument prototype would still apply. */ |
18360 | char $ac_func(); | |
18361 | ||
18362 | int main() { | |
afc31813 VZ |
18363 | |
18364 | /* The GNU C library defines this for functions which it implements | |
18365 | to always fail with ENOSYS. Some functions are actually named | |
18366 | something starting with __ and the normal name is an alias. */ | |
18367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18368 | choke me | |
18369 | #else | |
698dcdb6 | 18370 | $ac_func(); |
afc31813 VZ |
18371 | #endif |
18372 | ||
698dcdb6 | 18373 | ; return 0; } |
10f2d63a | 18374 | EOF |
3c011993 | 18375 | if { (eval echo configure:18376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18376 | rm -rf conftest* |
18377 | eval "ac_cv_func_$ac_func=yes" | |
18378 | else | |
18379 | echo "configure: failed program was:" >&5 | |
18380 | cat conftest.$ac_ext >&5 | |
18381 | rm -rf conftest* | |
18382 | eval "ac_cv_func_$ac_func=no" | |
18383 | fi | |
18384 | rm -f conftest* | |
18385 | fi | |
afc31813 | 18386 | |
698dcdb6 VZ |
18387 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18388 | echo "$ac_t""yes" 1>&6 | |
18389 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18390 | cat >> confdefs.h <<EOF | |
18391 | #define $ac_tr_func 1 | |
18392 | EOF | |
18393 | ||
18394 | else | |
18395 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18396 | fi |
18397 | done | |
18398 | ||
1e487827 | 18399 | |
698dcdb6 VZ |
18400 | if test "$ac_cv_func_localtime" = "yes"; then |
18401 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
3c011993 | 18402 | echo "configure:18403: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18403 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18405 | else | |
18406 | ||
18407 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18408 | #line 18409 "configure" |
0470b1e6 VZ |
18409 | #include "confdefs.h" |
18410 | ||
b4085ce6 | 18411 | #include <time.h> |
698dcdb6 VZ |
18412 | |
18413 | int main() { | |
0470b1e6 VZ |
18414 | |
18415 | struct tm tm; | |
18416 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18417 | |
18418 | ; return 0; } | |
18419 | EOF | |
3c011993 | 18420 | if { (eval echo configure:18421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18421 | rm -rf conftest* |
18422 | ||
f03a98d8 | 18423 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18424 | |
0470b1e6 | 18425 | else |
698dcdb6 VZ |
18426 | echo "configure: failed program was:" >&5 |
18427 | cat conftest.$ac_ext >&5 | |
18428 | rm -rf conftest* | |
18429 | wx_cv_struct_tm_has_gmtoff=no | |
18430 | ||
0470b1e6 | 18431 | fi |
698dcdb6 VZ |
18432 | rm -f conftest* |
18433 | ||
1e487827 | 18434 | fi |
698dcdb6 VZ |
18435 | |
18436 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18437 | fi |
18438 | ||
18439 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18440 | cat >> confdefs.h <<\EOF |
6232543b VS |
18441 | #define WX_GMTOFF_IN_TM 1 |
18442 | EOF | |
0470b1e6 | 18443 | |
3fcdd07b VZ |
18444 | fi |
18445 | ||
698dcdb6 | 18446 | for ac_func in gettimeofday ftime |
3fcdd07b | 18447 | do |
698dcdb6 | 18448 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3c011993 | 18449 | echo "configure:18450: checking for $ac_func" >&5 |
698dcdb6 VZ |
18450 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18452 | else | |
18453 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18454 | #line 18455 "configure" |
3fcdd07b VZ |
18455 | #include "confdefs.h" |
18456 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18457 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18458 | #include <assert.h> |
18459 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18460 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18461 | builtin and then its argument prototype would still apply. */ |
18462 | char $ac_func(); | |
18463 | ||
18464 | int main() { | |
3fcdd07b VZ |
18465 | |
18466 | /* The GNU C library defines this for functions which it implements | |
18467 | to always fail with ENOSYS. Some functions are actually named | |
18468 | something starting with __ and the normal name is an alias. */ | |
18469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18470 | choke me | |
18471 | #else | |
698dcdb6 | 18472 | $ac_func(); |
3fcdd07b VZ |
18473 | #endif |
18474 | ||
698dcdb6 VZ |
18475 | ; return 0; } |
18476 | EOF | |
3c011993 | 18477 | if { (eval echo configure:18478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18478 | rm -rf conftest* |
18479 | eval "ac_cv_func_$ac_func=yes" | |
18480 | else | |
18481 | echo "configure: failed program was:" >&5 | |
18482 | cat conftest.$ac_ext >&5 | |
18483 | rm -rf conftest* | |
18484 | eval "ac_cv_func_$ac_func=no" | |
18485 | fi | |
18486 | rm -f conftest* | |
18487 | fi | |
18488 | ||
18489 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18490 | echo "$ac_t""yes" 1>&6 | |
18491 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18492 | cat >> confdefs.h <<EOF | |
18493 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18494 | EOF |
18495 | break | |
698dcdb6 VZ |
18496 | else |
18497 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18498 | fi |
18499 | done | |
18500 | ||
afc31813 | 18501 | |
698dcdb6 VZ |
18502 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18503 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
3c011993 | 18504 | echo "configure:18505: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18505 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18507 | else | |
18508 | ||
18509 | ||
18510 | ac_ext=C | |
18511 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18512 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18513 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18514 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18515 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18516 | |
698dcdb6 VZ |
18517 | |
18518 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18519 | #line 18520 "configure" |
10f2d63a | 18520 | #include "confdefs.h" |
afc31813 VZ |
18521 | |
18522 | #include <sys/time.h> | |
18523 | #include <unistd.h> | |
698dcdb6 VZ |
18524 | |
18525 | int main() { | |
afc31813 VZ |
18526 | |
18527 | struct timeval tv; | |
776862b4 | 18528 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18529 | |
18530 | ; return 0; } | |
18531 | EOF | |
3c011993 | 18532 | if { (eval echo configure:18533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18533 | rm -rf conftest* |
afc31813 | 18534 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18535 | else |
698dcdb6 VZ |
18536 | echo "configure: failed program was:" >&5 |
18537 | cat conftest.$ac_ext >&5 | |
18538 | rm -rf conftest* | |
18539 | cat > conftest.$ac_ext <<EOF | |
3c011993 | 18540 | #line 18541 "configure" |
10f2d63a | 18541 | #include "confdefs.h" |
afc31813 VZ |
18542 | |
18543 | #include <sys/time.h> | |
18544 | #include <unistd.h> | |
698dcdb6 VZ |
18545 | |
18546 | int main() { | |
afc31813 VZ |
18547 | |
18548 | struct timeval tv; | |
18549 | gettimeofday(&tv); | |
698dcdb6 VZ |
18550 | |
18551 | ; return 0; } | |
18552 | EOF | |
3c011993 | 18553 | if { (eval echo configure:18554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18554 | rm -rf conftest* |
afc31813 | 18555 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18556 | else |
698dcdb6 VZ |
18557 | echo "configure: failed program was:" >&5 |
18558 | cat conftest.$ac_ext >&5 | |
18559 | rm -rf conftest* | |
776862b4 VZ |
18560 | |
18561 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18562 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18563 | ||
698dcdb6 | 18564 | |
10f2d63a | 18565 | fi |
698dcdb6 VZ |
18566 | rm -f conftest* |
18567 | ||
10f2d63a | 18568 | fi |
698dcdb6 | 18569 | rm -f conftest* |
afc31813 | 18570 | ac_ext=c |
698dcdb6 | 18571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18572 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18573 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18574 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18575 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18576 | |
698dcdb6 | 18577 | |
afc31813 | 18578 | fi |
698dcdb6 VZ |
18579 | |
18580 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18581 | |
afc31813 | 18582 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18583 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18584 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18585 | EOF | |
18586 | ||
18587 | fi | |
18588 | fi | |
18589 | ||
698dcdb6 | 18590 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18591 | #define wxUSE_TIMEDATE 1 |
18592 | EOF | |
18593 | ||
18594 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18595 | fi | |
18596 | ||
698dcdb6 | 18597 | |
0feee163 VZ |
18598 | if test "$wxUSE_SOCKETS" = "yes"; then |
18599 | if test "$TOOLKIT" = "X11"; then | |
18600 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18601 | wxUSE_SOCKETS="no" | |
18602 | fi | |
18603 | fi | |
b089607b | 18604 | |
0feee163 VZ |
18605 | if test "$wxUSE_SOCKETS" = "yes"; then |
18606 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18607 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
0feee163 | 18608 | echo "configure:18609: checking for socket" >&5 |
698dcdb6 VZ |
18609 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18611 | else |
698dcdb6 | 18612 | cat > conftest.$ac_ext <<EOF |
0feee163 | 18613 | #line 18614 "configure" |
c63c7106 VZ |
18614 | #include "confdefs.h" |
18615 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18616 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18617 | #include <assert.h> |
18618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18619 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18620 | builtin and then its argument prototype would still apply. */ |
18621 | char socket(); | |
18622 | ||
18623 | int main() { | |
c63c7106 VZ |
18624 | |
18625 | /* The GNU C library defines this for functions which it implements | |
18626 | to always fail with ENOSYS. Some functions are actually named | |
18627 | something starting with __ and the normal name is an alias. */ | |
18628 | #if defined (__stub_socket) || defined (__stub___socket) | |
18629 | choke me | |
18630 | #else | |
698dcdb6 | 18631 | socket(); |
c63c7106 VZ |
18632 | #endif |
18633 | ||
698dcdb6 VZ |
18634 | ; return 0; } |
18635 | EOF | |
0feee163 | 18636 | if { (eval echo configure:18637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18637 | rm -rf conftest* |
18638 | eval "ac_cv_func_socket=yes" | |
18639 | else | |
18640 | echo "configure: failed program was:" >&5 | |
18641 | cat conftest.$ac_ext >&5 | |
18642 | rm -rf conftest* | |
18643 | eval "ac_cv_func_socket=no" | |
18644 | fi | |
18645 | rm -f conftest* | |
18646 | fi | |
18647 | ||
18648 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18649 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18650 | : |
18651 | else | |
698dcdb6 VZ |
18652 | echo "$ac_t""no" 1>&6 |
18653 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
0feee163 | 18654 | echo "configure:18655: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18655 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18656 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18658 | else |
698dcdb6 | 18659 | ac_save_LIBS="$LIBS" |
c63c7106 | 18660 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18661 | cat > conftest.$ac_ext <<EOF |
0feee163 | 18662 | #line 18663 "configure" |
c63c7106 VZ |
18663 | #include "confdefs.h" |
18664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18665 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18666 | builtin and then its argument prototype would still apply. */ |
18667 | char socket(); | |
18668 | ||
18669 | int main() { | |
18670 | socket() | |
18671 | ; return 0; } | |
18672 | EOF | |
0feee163 | 18673 | if { (eval echo configure:18674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18674 | rm -rf conftest* |
18675 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18676 | else | |
18677 | echo "configure: failed program was:" >&5 | |
18678 | cat conftest.$ac_ext >&5 | |
18679 | rm -rf conftest* | |
18680 | eval "ac_cv_lib_$ac_lib_var=no" | |
18681 | fi | |
18682 | rm -f conftest* | |
18683 | LIBS="$ac_save_LIBS" | |
18684 | ||
18685 | fi | |
18686 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18687 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 18688 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 18689 | else |
698dcdb6 | 18690 | echo "$ac_t""no" 1>&6 |
afc31813 | 18691 | |
3a922bb4 RL |
18692 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18693 | wxUSE_SOCKETS=no | |
18694 | ||
698dcdb6 | 18695 | |
6232543b | 18696 | fi |
b089607b | 18697 | |
3a922bb4 | 18698 | |
1e487827 | 18699 | fi |
afc31813 | 18700 | |
3a922bb4 | 18701 | fi |
0feee163 | 18702 | fi |
51a9faba | 18703 | |
0feee163 VZ |
18704 | if test "$wxUSE_SOCKETS" = "yes" ; then |
18705 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18706 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
0feee163 | 18707 | echo "configure:18708: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18708 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18710 | else | |
18711 | ||
3a922bb4 RL |
18712 | |
18713 | ac_ext=C | |
698dcdb6 | 18714 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18715 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18716 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18717 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18718 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18719 | |
698dcdb6 | 18720 | |
3a922bb4 | 18721 | cat > conftest.$ac_ext <<EOF |
0feee163 | 18722 | #line 18723 "configure" |
afc31813 | 18723 | #include "confdefs.h" |
51a9faba | 18724 | |
3a922bb4 RL |
18725 | #include <sys/types.h> |
18726 | #include <sys/socket.h> | |
18727 | ||
698dcdb6 | 18728 | int main() { |
51a9faba | 18729 | |
3a922bb4 RL |
18730 | socklen_t len; |
18731 | getsockname(0, 0, &len); | |
18732 | ||
698dcdb6 VZ |
18733 | ; return 0; } |
18734 | EOF | |
0feee163 | 18735 | if { (eval echo configure:18736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18736 | rm -rf conftest* |
51a9faba | 18737 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18738 | else |
698dcdb6 VZ |
18739 | echo "configure: failed program was:" >&5 |
18740 | cat conftest.$ac_ext >&5 | |
18741 | rm -rf conftest* | |
18742 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 18743 | #line 18744 "configure" |
afc31813 | 18744 | #include "confdefs.h" |
51a9faba | 18745 | |
3a922bb4 RL |
18746 | #include <sys/types.h> |
18747 | #include <sys/socket.h> | |
18748 | ||
698dcdb6 | 18749 | int main() { |
51a9faba | 18750 | |
3a922bb4 RL |
18751 | size_t len; |
18752 | getsockname(0, 0, &len); | |
18753 | ||
698dcdb6 VZ |
18754 | ; return 0; } |
18755 | EOF | |
0feee163 | 18756 | if { (eval echo configure:18757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18757 | rm -rf conftest* |
51a9faba | 18758 | wx_cv_type_getsockname3=size_t |
afc31813 | 18759 | else |
698dcdb6 VZ |
18760 | echo "configure: failed program was:" >&5 |
18761 | cat conftest.$ac_ext >&5 | |
18762 | rm -rf conftest* | |
18763 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 18764 | #line 18765 "configure" |
afc31813 | 18765 | #include "confdefs.h" |
51a9faba | 18766 | |
3a922bb4 RL |
18767 | #include <sys/types.h> |
18768 | #include <sys/socket.h> | |
18769 | ||
698dcdb6 | 18770 | int main() { |
51a9faba | 18771 | |
3a922bb4 RL |
18772 | int len; |
18773 | getsockname(0, 0, &len); | |
18774 | ||
698dcdb6 VZ |
18775 | ; return 0; } |
18776 | EOF | |
0feee163 | 18777 | if { (eval echo configure:18778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18778 | rm -rf conftest* |
51a9faba | 18779 | wx_cv_type_getsockname3=int |
afc31813 | 18780 | else |
698dcdb6 VZ |
18781 | echo "configure: failed program was:" >&5 |
18782 | cat conftest.$ac_ext >&5 | |
18783 | rm -rf conftest* | |
18784 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18785 | |
afc31813 | 18786 | fi |
698dcdb6 | 18787 | rm -f conftest* |
3a922bb4 | 18788 | |
afc31813 | 18789 | fi |
698dcdb6 | 18790 | rm -f conftest* |
3a922bb4 | 18791 | |
afc31813 | 18792 | fi |
698dcdb6 | 18793 | rm -f conftest* |
51a9faba | 18794 | |
3a922bb4 | 18795 | ac_ext=c |
698dcdb6 | 18796 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18797 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18798 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18799 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18800 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18801 | |
3a922bb4 | 18802 | |
51a9faba | 18803 | fi |
698dcdb6 VZ |
18804 | |
18805 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18806 | |
3a922bb4 RL |
18807 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18808 | wxUSE_SOCKETS=no | |
18809 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18810 | else | |
18811 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18812 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18813 | EOF | |
18814 | ||
3a922bb4 | 18815 | fi |
51a9faba VZ |
18816 | fi |
18817 | fi | |
afc31813 | 18818 | |
51a9faba | 18819 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18820 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18821 | #define wxUSE_SOCKETS 1 |
18822 | EOF | |
18823 | ||
70f7a477 | 18824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18825 | fi |
18826 | ||
698dcdb6 | 18827 | |
dc3d889d VZ |
18828 | if test "$wxUSE_GUI" = "yes"; then |
18829 | ||
156b2523 GD |
18830 | if test "$TOOLKIT" = "MAC"; then |
18831 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18832 | wxUSE_JOYSTICK=no | |
18833 | fi | |
18834 | if test "$TOOLKIT" = "MOTIF"; then | |
18835 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18836 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
18837 | fi |
18838 | if test "$TOOLKIT" = "X11"; then | |
18839 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
18840 | wxUSE_JOYSTICK=no | |
156b2523 GD |
18841 | fi |
18842 | ||
3a922bb4 RL |
18843 | if test "$TOOLKIT" != "MSW"; then |
18844 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18845 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18846 | do |
698dcdb6 VZ |
18847 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18848 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0feee163 | 18849 | echo "configure:18850: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18850 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18852 | else | |
18853 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 18854 | #line 18855 "configure" |
10f2d63a | 18855 | #include "confdefs.h" |
698dcdb6 VZ |
18856 | #include <$ac_hdr> |
18857 | EOF | |
18858 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0feee163 | 18859 | { (eval echo configure:18860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18860 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18861 | if test -z "$ac_err"; then | |
18862 | rm -rf conftest* | |
18863 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18864 | else |
698dcdb6 VZ |
18865 | echo "$ac_err" >&5 |
18866 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18867 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18868 | rm -rf conftest* |
18869 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18870 | fi |
698dcdb6 | 18871 | rm -f conftest* |
10f2d63a | 18872 | fi |
698dcdb6 VZ |
18873 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18874 | echo "$ac_t""yes" 1>&6 | |
18875 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18876 | cat >> confdefs.h <<EOF | |
18877 | #define $ac_tr_hdr 1 | |
10f2d63a | 18878 | EOF |
698dcdb6 VZ |
18879 | |
18880 | else | |
18881 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18882 | fi |
18883 | done | |
18884 | ||
3a922bb4 RL |
18885 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18886 | wxUSE_JOYSTICK=no | |
156b2523 | 18887 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18888 | fi |
18889 | fi | |
18890 | fi | |
b089607b | 18891 | |
3a922bb4 RL |
18892 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18893 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18894 | #define wxUSE_JOYSTICK 1 |
18895 | EOF | |
18896 | ||
3a922bb4 RL |
18897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18898 | fi | |
dc3d889d VZ |
18899 | fi |
18900 | ||
698dcdb6 | 18901 | |
b089607b VZ |
18902 | if test "$TOOLKIT" != "MSW"; then |
18903 | ||
3a922bb4 RL |
18904 | HAVE_DL_FUNCS=0 |
18905 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18906 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18907 | if test "$USE_DARWIN" = 1; then |
18908 | HAVE_DL_FUNCS=1 | |
18909 | else | |
18910 | for ac_func in dlopen | |
10f2d63a | 18911 | do |
698dcdb6 | 18912 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
0feee163 | 18913 | echo "configure:18914: checking for $ac_func" >&5 |
698dcdb6 VZ |
18914 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18916 | else | |
18917 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 18918 | #line 18919 "configure" |
10f2d63a VZ |
18919 | #include "confdefs.h" |
18920 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18921 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18922 | #include <assert.h> |
18923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18924 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18925 | builtin and then its argument prototype would still apply. */ |
18926 | char $ac_func(); | |
18927 | ||
18928 | int main() { | |
10f2d63a VZ |
18929 | |
18930 | /* The GNU C library defines this for functions which it implements | |
18931 | to always fail with ENOSYS. Some functions are actually named | |
18932 | something starting with __ and the normal name is an alias. */ | |
18933 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18934 | choke me | |
18935 | #else | |
698dcdb6 | 18936 | $ac_func(); |
10f2d63a VZ |
18937 | #endif |
18938 | ||
698dcdb6 VZ |
18939 | ; return 0; } |
18940 | EOF | |
0feee163 | 18941 | if { (eval echo configure:18942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18942 | rm -rf conftest* |
18943 | eval "ac_cv_func_$ac_func=yes" | |
18944 | else | |
18945 | echo "configure: failed program was:" >&5 | |
18946 | cat conftest.$ac_ext >&5 | |
18947 | rm -rf conftest* | |
18948 | eval "ac_cv_func_$ac_func=no" | |
18949 | fi | |
18950 | rm -f conftest* | |
18951 | fi | |
18952 | ||
18953 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18954 | echo "$ac_t""yes" 1>&6 | |
18955 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18956 | cat >> confdefs.h <<EOF | |
18957 | #define $ac_tr_func 1 | |
18958 | EOF | |
18959 | ||
3a922bb4 | 18960 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18961 | #define HAVE_DLOPEN 1 |
18962 | EOF | |
18963 | ||
3a922bb4 RL |
18964 | HAVE_DL_FUNCS=1 |
18965 | ||
10f2d63a | 18966 | else |
698dcdb6 VZ |
18967 | echo "$ac_t""no" 1>&6 |
18968 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
0feee163 | 18969 | echo "configure:18970: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18970 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18971 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18973 | else |
698dcdb6 | 18974 | ac_save_LIBS="$LIBS" |
10f2d63a | 18975 | LIBS="-ldl $LIBS" |
698dcdb6 | 18976 | cat > conftest.$ac_ext <<EOF |
0feee163 | 18977 | #line 18978 "configure" |
10f2d63a VZ |
18978 | #include "confdefs.h" |
18979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18980 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18981 | builtin and then its argument prototype would still apply. */ |
18982 | char dlopen(); | |
18983 | ||
18984 | int main() { | |
18985 | dlopen() | |
18986 | ; return 0; } | |
18987 | EOF | |
0feee163 | 18988 | if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18989 | rm -rf conftest* |
18990 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18991 | else | |
18992 | echo "configure: failed program was:" >&5 | |
18993 | cat conftest.$ac_ext >&5 | |
18994 | rm -rf conftest* | |
18995 | eval "ac_cv_lib_$ac_lib_var=no" | |
18996 | fi | |
18997 | rm -f conftest* | |
18998 | LIBS="$ac_save_LIBS" | |
18999 | ||
19000 | fi | |
19001 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19002 | echo "$ac_t""yes" 1>&6 | |
19003 | ||
3a922bb4 | 19004 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19005 | #define HAVE_DLOPEN 1 |
19006 | EOF | |
19007 | ||
3a922bb4 | 19008 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19009 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19010 | |
10f2d63a | 19011 | else |
698dcdb6 | 19012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19013 | |
3a922bb4 | 19014 | for ac_func in shl_load |
10f2d63a | 19015 | do |
698dcdb6 | 19016 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
0feee163 | 19017 | echo "configure:19018: checking for $ac_func" >&5 |
698dcdb6 VZ |
19018 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19020 | else | |
19021 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 19022 | #line 19023 "configure" |
10f2d63a VZ |
19023 | #include "confdefs.h" |
19024 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19025 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19026 | #include <assert.h> |
19027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19028 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19029 | builtin and then its argument prototype would still apply. */ |
19030 | char $ac_func(); | |
19031 | ||
19032 | int main() { | |
10f2d63a VZ |
19033 | |
19034 | /* The GNU C library defines this for functions which it implements | |
19035 | to always fail with ENOSYS. Some functions are actually named | |
19036 | something starting with __ and the normal name is an alias. */ | |
19037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19038 | choke me | |
19039 | #else | |
698dcdb6 | 19040 | $ac_func(); |
10f2d63a VZ |
19041 | #endif |
19042 | ||
698dcdb6 VZ |
19043 | ; return 0; } |
19044 | EOF | |
0feee163 | 19045 | if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19046 | rm -rf conftest* |
19047 | eval "ac_cv_func_$ac_func=yes" | |
19048 | else | |
19049 | echo "configure: failed program was:" >&5 | |
19050 | cat conftest.$ac_ext >&5 | |
19051 | rm -rf conftest* | |
19052 | eval "ac_cv_func_$ac_func=no" | |
19053 | fi | |
19054 | rm -f conftest* | |
19055 | fi | |
19056 | ||
19057 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19058 | echo "$ac_t""yes" 1>&6 | |
19059 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19060 | cat >> confdefs.h <<EOF | |
19061 | #define $ac_tr_func 1 | |
19062 | EOF | |
19063 | ||
3a922bb4 | 19064 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19065 | #define HAVE_SHL_LOAD 1 |
19066 | EOF | |
19067 | ||
3a922bb4 RL |
19068 | HAVE_SHL_FUNCS=1 |
19069 | ||
10f2d63a | 19070 | else |
698dcdb6 VZ |
19071 | echo "$ac_t""no" 1>&6 |
19072 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
0feee163 | 19073 | echo "configure:19074: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19074 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19075 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19077 | else |
698dcdb6 | 19078 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19079 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19080 | cat > conftest.$ac_ext <<EOF |
0feee163 | 19081 | #line 19082 "configure" |
f6bcfd97 BP |
19082 | #include "confdefs.h" |
19083 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19084 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19085 | builtin and then its argument prototype would still apply. */ |
19086 | char dld(); | |
19087 | ||
19088 | int main() { | |
19089 | dld() | |
19090 | ; return 0; } | |
19091 | EOF | |
0feee163 | 19092 | if { (eval echo configure:19093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19093 | rm -rf conftest* |
19094 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19095 | else | |
19096 | echo "configure: failed program was:" >&5 | |
19097 | cat conftest.$ac_ext >&5 | |
19098 | rm -rf conftest* | |
19099 | eval "ac_cv_lib_$ac_lib_var=no" | |
19100 | fi | |
19101 | rm -f conftest* | |
19102 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19103 | |
698dcdb6 VZ |
19104 | fi |
19105 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19106 | echo "$ac_t""yes" 1>&6 | |
19107 | ||
3a922bb4 | 19108 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19109 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19110 | |
698dcdb6 VZ |
19111 | else |
19112 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19113 | fi |
19114 | ||
3a922bb4 | 19115 | |
10f2d63a VZ |
19116 | fi |
19117 | done | |
19118 | ||
3a922bb4 | 19119 | |
10f2d63a VZ |
19120 | fi |
19121 | ||
3a922bb4 | 19122 | |
10f2d63a VZ |
19123 | fi |
19124 | done | |
19125 | ||
1e487827 | 19126 | |
3a922bb4 RL |
19127 | if test "$HAVE_DL_FUNCS" = 1; then |
19128 | for ac_func in dlerror | |
f6bcfd97 | 19129 | do |
698dcdb6 | 19130 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
0feee163 | 19131 | echo "configure:19132: checking for $ac_func" >&5 |
698dcdb6 VZ |
19132 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19134 | else | |
19135 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 19136 | #line 19137 "configure" |
f6bcfd97 BP |
19137 | #include "confdefs.h" |
19138 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19139 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19140 | #include <assert.h> |
19141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19142 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19143 | builtin and then its argument prototype would still apply. */ |
19144 | char $ac_func(); | |
19145 | ||
19146 | int main() { | |
f6bcfd97 BP |
19147 | |
19148 | /* The GNU C library defines this for functions which it implements | |
19149 | to always fail with ENOSYS. Some functions are actually named | |
19150 | something starting with __ and the normal name is an alias. */ | |
19151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19152 | choke me | |
19153 | #else | |
698dcdb6 | 19154 | $ac_func(); |
f6bcfd97 BP |
19155 | #endif |
19156 | ||
698dcdb6 VZ |
19157 | ; return 0; } |
19158 | EOF | |
0feee163 | 19159 | if { (eval echo configure:19160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19160 | rm -rf conftest* |
19161 | eval "ac_cv_func_$ac_func=yes" | |
19162 | else | |
19163 | echo "configure: failed program was:" >&5 | |
19164 | cat conftest.$ac_ext >&5 | |
19165 | rm -rf conftest* | |
19166 | eval "ac_cv_func_$ac_func=no" | |
19167 | fi | |
19168 | rm -f conftest* | |
19169 | fi | |
19170 | ||
19171 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19172 | echo "$ac_t""yes" 1>&6 | |
19173 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19174 | cat >> confdefs.h <<EOF | |
19175 | #define $ac_tr_func 1 | |
19176 | EOF | |
19177 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19178 | #define HAVE_DLERROR 1 |
19179 | EOF | |
19180 | ||
19181 | else | |
698dcdb6 VZ |
19182 | echo "$ac_t""no" 1>&6 |
19183 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
0feee163 | 19184 | echo "configure:19185: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19185 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19188 | else |
698dcdb6 | 19189 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19190 | LIBS="-ldl $LIBS" |
698dcdb6 | 19191 | cat > conftest.$ac_ext <<EOF |
0feee163 | 19192 | #line 19193 "configure" |
f6bcfd97 BP |
19193 | #include "confdefs.h" |
19194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19195 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19196 | builtin and then its argument prototype would still apply. */ |
19197 | char dlerror(); | |
19198 | ||
19199 | int main() { | |
19200 | dlerror() | |
19201 | ; return 0; } | |
19202 | EOF | |
0feee163 | 19203 | if { (eval echo configure:19204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19204 | rm -rf conftest* |
19205 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19206 | else | |
19207 | echo "configure: failed program was:" >&5 | |
19208 | cat conftest.$ac_ext >&5 | |
19209 | rm -rf conftest* | |
19210 | eval "ac_cv_lib_$ac_lib_var=no" | |
19211 | fi | |
19212 | rm -f conftest* | |
19213 | LIBS="$ac_save_LIBS" | |
19214 | ||
19215 | fi | |
19216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19217 | echo "$ac_t""yes" 1>&6 | |
19218 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19219 | #define HAVE_DLERROR 1 |
19220 | EOF | |
19221 | ||
698dcdb6 VZ |
19222 | else |
19223 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19224 | fi |
19225 | ||
19226 | fi | |
19227 | done | |
19228 | ||
3a922bb4 RL |
19229 | fi |
19230 | fi | |
f6bcfd97 | 19231 | |
3a922bb4 RL |
19232 | if test "$HAVE_DL_FUNCS" = 0; then |
19233 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19234 | if test "$USE_UNIX" = 1; then | |
19235 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19236 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19237 | wxUSE_DYNLIB_CLASS=no |
19238 | else | |
19239 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19240 | fi | |
19241 | fi | |
10f2d63a VZ |
19242 | fi |
19243 | fi | |
19244 | fi | |
19245 | ||
0b9ab0bd RL |
19246 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19247 | cat >> confdefs.h <<\EOF | |
19248 | #define wxUSE_DYNAMIC_LOADER 1 | |
19249 | EOF | |
19250 | ||
19251 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19252 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19253 | #define wxUSE_DYNLIB_CLASS 1 |
19254 | EOF | |
19255 | ||
19256 | fi | |
19257 | ||
698dcdb6 | 19258 | |
1e6feb95 VZ |
19259 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19260 | cat >> confdefs.h <<\EOF | |
19261 | #define wxUSE_FONTMAP 1 | |
19262 | EOF | |
19263 | ||
19264 | fi | |
19265 | ||
10f2d63a | 19266 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19268 | #define wxUSE_UNICODE 1 |
19269 | EOF | |
19270 | ||
a72a4bfa VS |
19271 | |
19272 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19273 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
0feee163 | 19274 | echo "configure:19275: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19275 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19276 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19278 | else | |
19279 | ac_save_LIBS="$LIBS" | |
19280 | LIBS="-lunicows $LIBS" | |
19281 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 19282 | #line 19283 "configure" |
a72a4bfa VS |
19283 | #include "confdefs.h" |
19284 | ||
19285 | int main() { | |
19286 | main() | |
19287 | ; return 0; } | |
19288 | EOF | |
0feee163 | 19289 | if { (eval echo configure:19290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19290 | rm -rf conftest* |
19291 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19292 | else | |
19293 | echo "configure: failed program was:" >&5 | |
19294 | cat conftest.$ac_ext >&5 | |
19295 | rm -rf conftest* | |
19296 | eval "ac_cv_lib_$ac_lib_var=no" | |
19297 | fi | |
19298 | rm -f conftest* | |
19299 | LIBS="$ac_save_LIBS" | |
19300 | ||
19301 | fi | |
19302 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19303 | echo "$ac_t""yes" 1>&6 | |
19304 | ||
19305 | cat >> confdefs.h <<\EOF | |
19306 | #define wxUSE_UNICODE_MSLU 1 | |
19307 | EOF | |
19308 | ||
19309 | ||
19310 | else | |
19311 | echo "$ac_t""no" 1>&6 | |
19312 | ||
19313 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19314 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19315 | wxUSE_UNICODE_MSLU=no | |
19316 | ||
19317 | fi | |
19318 | ||
19319 | fi | |
10f2d63a VZ |
19320 | fi |
19321 | ||
10f2d63a | 19322 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19323 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19324 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19325 | EOF | |
19326 | ||
19327 | fi | |
19328 | ||
698dcdb6 | 19329 | |
698dcdb6 | 19330 | |
10f2d63a VZ |
19331 | IODBC_C_SRC="" |
19332 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19334 | #define wxUSE_ODBC 1 |
19335 | EOF | |
19336 | ||
19337 | WXODBCFLAG="-D_IODBC_" | |
19338 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19339 | fi |
19340 | ||
698dcdb6 | 19341 | |
10f2d63a | 19342 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19343 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19344 | #define wxUSE_POSTSCRIPT 1 |
19345 | EOF | |
19346 | ||
19347 | fi | |
19348 | ||
698dcdb6 | 19349 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19350 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19351 | EOF | |
19352 | ||
698dcdb6 VZ |
19353 | |
19354 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19355 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19356 | EOF | |
19357 | ||
698dcdb6 VZ |
19358 | |
19359 | ||
10f2d63a | 19360 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19361 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19362 | #define wxUSE_CONSTRAINTS 1 |
19363 | EOF | |
19364 | ||
19365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19366 | fi | |
19367 | ||
19368 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19369 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19370 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19371 | wxUSE_MDI_ARCHITECTURE=no |
19372 | fi | |
19373 | ||
19374 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19375 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19376 | #define wxUSE_MDI_ARCHITECTURE 1 |
19377 | EOF | |
19378 | ||
fc26f4ab RL |
19379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19380 | fi | |
10f2d63a VZ |
19381 | fi |
19382 | ||
19383 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19384 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19385 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19386 | EOF | |
19387 | ||
19388 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19389 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19390 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19391 | fi | |
19392 | fi | |
19393 | ||
19394 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19395 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19396 | #define wxUSE_HELP 1 |
19397 | EOF | |
19398 | ||
19399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19400 | |
77e13408 | 19401 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19402 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
19403 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
19404 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
0feee163 | 19405 | echo "configure:19406: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
19406 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19408 | else | |
19409 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 19410 | #line 19411 "configure" |
29fd3c0c VS |
19411 | #include "confdefs.h" |
19412 | #include <htmlhelp.h> | |
19413 | EOF | |
19414 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0feee163 | 19415 | { (eval echo configure:19416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
19416 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19417 | if test -z "$ac_err"; then | |
19418 | rm -rf conftest* | |
19419 | eval "ac_cv_header_$ac_safe=yes" | |
19420 | else | |
19421 | echo "$ac_err" >&5 | |
19422 | echo "configure: failed program was:" >&5 | |
19423 | cat conftest.$ac_ext >&5 | |
19424 | rm -rf conftest* | |
19425 | eval "ac_cv_header_$ac_safe=no" | |
19426 | fi | |
19427 | rm -f conftest* | |
19428 | fi | |
19429 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19430 | echo "$ac_t""yes" 1>&6 | |
19431 | ||
19432 | cat >> confdefs.h <<\EOF | |
19433 | #define wxUSE_MS_HTML_HELP 1 | |
19434 | EOF | |
19435 | ||
19436 | ||
19437 | else | |
19438 | echo "$ac_t""no" 1>&6 | |
19439 | ||
fc26f4ab | 19440 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
19441 | wxUSE_MS_HTML_HELP=no |
19442 | ||
19443 | fi | |
19444 | ||
3e44f09d | 19445 | fi |
3379ed37 | 19446 | fi |
031d8228 VS |
19447 | |
19448 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19449 | if test "$wxUSE_HTML" = "yes"; then | |
19450 | cat >> confdefs.h <<\EOF | |
19451 | #define wxUSE_WXHTML_HELP 1 | |
19452 | EOF | |
19453 | ||
19454 | else | |
19455 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19456 | wxUSE_WXHTML_HELP=no | |
19457 | fi | |
19458 | fi | |
10f2d63a VZ |
19459 | fi |
19460 | ||
19461 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19462 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19463 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19464 | else |
698dcdb6 | 19465 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19466 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19467 | EOF | |
19468 | ||
19469 | fi | |
19470 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19471 | fi | |
19472 | ||
19473 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19474 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19475 | #define wxUSE_PROLOGIO 1 |
19476 | EOF | |
19477 | ||
19478 | fi | |
19479 | ||
19480 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 19481 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19482 | #define wxUSE_RESOURCES 1 |
19483 | EOF | |
19484 | ||
3379ed37 | 19485 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
19486 | fi |
19487 | ||
19488 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19489 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19490 | #define wxUSE_X_RESOURCES 1 |
19491 | EOF | |
19492 | ||
19493 | fi | |
19494 | ||
698dcdb6 | 19495 | |
77e13408 RL |
19496 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19497 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19498 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19499 | for ac_hdr in ole2.h |
10f2d63a | 19500 | do |
698dcdb6 VZ |
19501 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19502 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0feee163 | 19503 | echo "configure:19504: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19504 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19506 | else | |
19507 | cat > conftest.$ac_ext <<EOF | |
0feee163 | 19508 | #line 19509 "configure" |
10f2d63a | 19509 | #include "confdefs.h" |
698dcdb6 VZ |
19510 | #include <$ac_hdr> |
19511 | EOF | |
19512 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0feee163 | 19513 | { (eval echo configure:19514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19514 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19515 | if test -z "$ac_err"; then | |
19516 | rm -rf conftest* | |
19517 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19518 | else |
698dcdb6 VZ |
19519 | echo "$ac_err" >&5 |
19520 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19521 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19522 | rm -rf conftest* |
19523 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19524 | fi |
698dcdb6 | 19525 | rm -f conftest* |
10f2d63a | 19526 | fi |
698dcdb6 VZ |
19527 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19528 | echo "$ac_t""yes" 1>&6 | |
19529 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19530 | cat >> confdefs.h <<EOF | |
19531 | #define $ac_tr_hdr 1 | |
10f2d63a | 19532 | EOF |
698dcdb6 VZ |
19533 | |
19534 | else | |
19535 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19536 | fi |
19537 | done | |
19538 | ||
698dcdb6 | 19539 | |
2b9bdf71 VZ |
19540 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19541 | if test "$GCC" = yes ; then | |
19542 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19543 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19544 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19545 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19546 | #define wxUSE_OLE 1 |
19547 | EOF | |
19548 | ||
b64f0a5f | 19549 | |
2b9bdf71 VZ |
19550 | fi |
19551 | ||
19552 | cat >> confdefs.h <<\EOF | |
19553 | #define wxUSE_DATAOBJ 1 | |
19554 | EOF | |
19555 | ||
19556 | else | |
19557 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19558 | ||
19559 | wxUSE_CLIPBOARD=no | |
19560 | wxUSE_DRAG_AND_DROP=no | |
19561 | wxUSE_DATAOBJ=no | |
19562 | fi | |
19563 | ||
77e13408 | 19564 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19565 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19566 | #define wxUSE_METAFILE 1 |
19567 | EOF | |
19568 | ||
2b9bdf71 VZ |
19569 | |
19570 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19571 | #define wxUSE_ENH_METAFILE 1 |
19572 | EOF | |
19573 | ||
2b9bdf71 VZ |
19574 | fi |
19575 | fi | |
19576 | ||
19577 | if test "$wxUSE_IPC" = "yes"; then | |
19578 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19579 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19580 | fi |
19581 | ||
19582 | cat >> confdefs.h <<\EOF | |
19583 | #define wxUSE_IPC 1 | |
19584 | EOF | |
19585 | ||
19586 | fi | |
19587 | ||
19588 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
178572bb RR |
19589 | if test "$wxUSE_X11" = 1; then |
19590 | echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2 | |
19591 | wxUSE_CLIPBOARD=no | |
19592 | fi | |
19593 | ||
19594 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19595 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19596 | #define wxUSE_CLIPBOARD 1 |
19597 | EOF | |
19598 | ||
673f4220 | 19599 | |
178572bb | 19600 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19601 | #define wxUSE_DATAOBJ 1 |
19602 | EOF | |
19603 | ||
178572bb | 19604 | fi |
2b9bdf71 VZ |
19605 | fi |
19606 | ||
19607 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19608 | if test "$wxUSE_GTK" = 1; then | |
19609 | if test "$WXGTK12" != 1; then | |
156b2523 | 19610 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19611 | wxUSE_DRAG_AND_DROP=no |
19612 | fi | |
19613 | fi | |
19614 | ||
2b9bdf71 | 19615 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19616 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19617 | wxUSE_DRAG_AND_DROP=no |
19618 | fi | |
19619 | ||
f79bd02d JS |
19620 | if test "$wxUSE_X11" = 1; then |
19621 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19622 | wxUSE_DRAG_AND_DROP=no | |
19623 | fi | |
19624 | ||
10f2d63a | 19625 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19626 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19627 | #define wxUSE_DRAG_AND_DROP 1 |
19628 | EOF | |
19629 | ||
19630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19631 | fi | |
19632 | ||
19633 | fi | |
19634 | ||
19635 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19637 | #define wxUSE_SPLINES 1 |
19638 | EOF | |
19639 | ||
19640 | fi | |
19641 | ||
698dcdb6 | 19642 | |
1e6feb95 VZ |
19643 | USES_CONTROLS=0 |
19644 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19645 | USES_CONTROLS=1 | |
19646 | fi | |
19647 | ||
10f2d63a | 19648 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19649 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19650 | #define wxUSE_ACCEL 1 |
19651 | EOF | |
19652 | ||
1e6feb95 VZ |
19653 | USES_CONTROLS=1 |
19654 | fi | |
19655 | ||
19656 | if test "$wxUSE_BUTTON" = "yes"; then | |
19657 | cat >> confdefs.h <<\EOF | |
19658 | #define wxUSE_BUTTON 1 | |
19659 | EOF | |
19660 | ||
19661 | USES_CONTROLS=1 | |
19662 | fi | |
19663 | ||
19664 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19665 | cat >> confdefs.h <<\EOF | |
19666 | #define wxUSE_BMPBUTTON 1 | |
19667 | EOF | |
19668 | ||
19669 | USES_CONTROLS=1 | |
19670 | fi | |
19671 | ||
19672 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19673 | cat >> confdefs.h <<\EOF | |
19674 | #define wxUSE_CALENDARCTRL 1 | |
19675 | EOF | |
19676 | ||
19677 | USES_CONTROLS=1 | |
19678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19679 | fi |
19680 | ||
19681 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19683 | #define wxUSE_CARET 1 |
19684 | EOF | |
19685 | ||
1e6feb95 | 19686 | USES_CONTROLS=1 |
10f2d63a VZ |
19687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19688 | fi | |
19689 | ||
19690 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19691 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19692 | #define wxUSE_COMBOBOX 1 |
19693 | EOF | |
19694 | ||
1e6feb95 | 19695 | USES_CONTROLS=1 |
10f2d63a VZ |
19696 | fi |
19697 | ||
19698 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19699 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19700 | #define wxUSE_CHOICE 1 |
19701 | EOF | |
19702 | ||
1e6feb95 | 19703 | USES_CONTROLS=1 |
10f2d63a VZ |
19704 | fi |
19705 | ||
19706 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19707 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19708 | #define wxUSE_CHECKBOX 1 |
19709 | EOF | |
19710 | ||
1e6feb95 | 19711 | USES_CONTROLS=1 |
10f2d63a VZ |
19712 | fi |
19713 | ||
19714 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19716 | #define wxUSE_CHECKLISTBOX 1 |
19717 | EOF | |
19718 | ||
1e6feb95 | 19719 | USES_CONTROLS=1 |
10f2d63a VZ |
19720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19721 | fi | |
19722 | ||
19723 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19724 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19725 | #define wxUSE_GAUGE 1 |
19726 | EOF | |
19727 | ||
1e6feb95 | 19728 | USES_CONTROLS=1 |
10f2d63a VZ |
19729 | fi |
19730 | ||
d6a55c4b VZ |
19731 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19732 | wxUSE_GRID="yes" | |
698dcdb6 | 19733 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19734 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19735 | EOF |
19736 | ||
1e6feb95 | 19737 | USES_CONTROLS=1 |
d6a55c4b | 19738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19739 | fi |
19740 | ||
d6a55c4b | 19741 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19742 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19743 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19744 | EOF |
19745 | ||
1e6feb95 | 19746 | USES_CONTROLS=1 |
d6a55c4b | 19747 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19748 | fi |
19749 | ||
19750 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19751 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19752 | #define wxUSE_IMAGLIST 1 |
19753 | EOF | |
19754 | ||
19755 | fi | |
19756 | ||
19757 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19758 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19759 | #define wxUSE_LISTBOX 1 |
19760 | EOF | |
19761 | ||
1e6feb95 | 19762 | USES_CONTROLS=1 |
10f2d63a VZ |
19763 | fi |
19764 | ||
19765 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19766 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19767 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19768 | #define wxUSE_LISTCTRL 1 |
19769 | EOF | |
19770 | ||
1e6feb95 | 19771 | USES_CONTROLS=1 |
10f2d63a VZ |
19772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19773 | else | |
698dcdb6 | 19774 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19775 | fi |
19776 | fi | |
19777 | ||
19778 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19779 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19780 | #define wxUSE_NOTEBOOK 1 |
19781 | EOF | |
19782 | ||
1e6feb95 | 19783 | USES_CONTROLS=1 |
10f2d63a VZ |
19784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19785 | fi | |
19786 | ||
24176f2c GD |
19787 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19788 | cat >> confdefs.h <<\EOF | |
19789 | #define wxUSE_PROPSHEET 1 | |
19790 | EOF | |
19791 | ||
19792 | USES_CONTROLS=1 | |
19793 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19794 | fi | |
19795 | ||
10f2d63a | 19796 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19797 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19798 | #define wxUSE_RADIOBOX 1 |
19799 | EOF | |
19800 | ||
1e6feb95 | 19801 | USES_CONTROLS=1 |
10f2d63a VZ |
19802 | fi |
19803 | ||
19804 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19805 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19806 | #define wxUSE_RADIOBTN 1 |
19807 | EOF | |
19808 | ||
1e6feb95 | 19809 | USES_CONTROLS=1 |
10f2d63a VZ |
19810 | fi |
19811 | ||
19812 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19813 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19814 | #define wxUSE_SASH 1 |
19815 | EOF | |
19816 | ||
19817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19818 | fi | |
19819 | ||
19820 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19821 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19822 | #define wxUSE_SCROLLBAR 1 |
19823 | EOF | |
19824 | ||
1e6feb95 | 19825 | USES_CONTROLS=1 |
741a9306 | 19826 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19827 | fi |
19828 | ||
19829 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19830 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19831 | #define wxUSE_SLIDER 1 |
19832 | EOF | |
19833 | ||
1e6feb95 | 19834 | USES_CONTROLS=1 |
10f2d63a VZ |
19835 | fi |
19836 | ||
19837 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19838 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19839 | #define wxUSE_SPINBTN 1 |
19840 | EOF | |
19841 | ||
1e6feb95 | 19842 | USES_CONTROLS=1 |
10f2d63a VZ |
19843 | fi |
19844 | ||
56cfaa52 | 19845 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19846 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19847 | #define wxUSE_SPINCTRL 1 |
19848 | EOF | |
19849 | ||
1e6feb95 | 19850 | USES_CONTROLS=1 |
56cfaa52 RR |
19851 | fi |
19852 | ||
10f2d63a | 19853 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19854 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19855 | #define wxUSE_SPLITTER 1 |
19856 | EOF | |
19857 | ||
19858 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19859 | fi | |
19860 | ||
19861 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19862 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19863 | #define wxUSE_STATBMP 1 |
19864 | EOF | |
19865 | ||
1e6feb95 | 19866 | USES_CONTROLS=1 |
10f2d63a VZ |
19867 | fi |
19868 | ||
19869 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19870 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19871 | #define wxUSE_STATBOX 1 |
19872 | EOF | |
19873 | ||
1e6feb95 VZ |
19874 | USES_CONTROLS=1 |
19875 | fi | |
19876 | ||
19877 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19878 | cat >> confdefs.h <<\EOF | |
19879 | #define wxUSE_STATTEXT 1 | |
19880 | EOF | |
19881 | ||
19882 | USES_CONTROLS=1 | |
10f2d63a VZ |
19883 | fi |
19884 | ||
19885 | if test "$wxUSE_STATLINE" = "yes"; then | |
19886 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19887 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19888 | else |
698dcdb6 | 19889 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19890 | #define wxUSE_STATLINE 1 |
19891 | EOF | |
19892 | ||
1e6feb95 | 19893 | USES_CONTROLS=1 |
10f2d63a VZ |
19894 | fi |
19895 | fi | |
19896 | ||
19897 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19898 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19899 | #define wxUSE_STATUSBAR 1 |
19900 | EOF | |
19901 | ||
1e6feb95 | 19902 | USES_CONTROLS=1 |
698dcdb6 | 19903 | |
2286341c | 19904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19905 | fi |
19906 | ||
19907 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19908 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19909 | #define wxUSE_TAB_DIALOG 1 |
19910 | EOF | |
19911 | ||
19912 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19913 | fi | |
19914 | ||
1e6feb95 VZ |
19915 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19916 | cat >> confdefs.h <<\EOF | |
19917 | #define wxUSE_TEXTCTRL 1 | |
19918 | EOF | |
19919 | ||
19920 | USES_CONTROLS=1 | |
19921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19922 | fi | |
19923 | ||
1db8dc4a | 19924 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19925 | if test "$wxUSE_MAC" = 1; then |
19926 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19927 | wxUSE_TOGGLEBTN=no | |
19928 | fi | |
19929 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 19930 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
19931 | wxUSE_TOGGLEBTN=no |
19932 | fi | |
19933 | ||
19934 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19935 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19936 | #define wxUSE_TOGGLEBTN 1 |
19937 | EOF | |
19938 | ||
1e6feb95 | 19939 | USES_CONTROLS=1 |
a45d7ab7 | 19940 | fi |
1db8dc4a VZ |
19941 | fi |
19942 | ||
360d6699 | 19943 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19944 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19945 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19946 | EOF | |
19947 | ||
19948 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19949 | USES_CONTROLS=1 |
360d6699 VZ |
19950 | fi |
19951 | ||
10f2d63a | 19952 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19953 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19954 | #define wxUSE_TOOLBAR 1 |
19955 | EOF | |
19956 | ||
1e6feb95 | 19957 | USES_CONTROLS=1 |
698dcdb6 | 19958 | |
360d6699 VZ |
19959 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19960 | wxUSE_TOOLBAR_NATIVE="yes" | |
19961 | fi | |
19962 | ||
1e6feb95 VZ |
19963 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19964 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19965 | #define wxUSE_TOOLBAR_NATIVE 1 |
19966 | EOF | |
19967 | ||
1e6feb95 VZ |
19968 | USES_CONTROLS=1 |
19969 | fi | |
19970 | ||
19971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19972 | fi |
19973 | ||
10f2d63a VZ |
19974 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19975 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19976 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19977 | else |
19978 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19979 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19980 | else |
69d27ff7 | 19981 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19982 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 19983 | else |
3c011993 | 19984 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19985 | #define wxUSE_TOOLTIPS 1 |
19986 | EOF | |
19987 | ||
69d27ff7 | 19988 | fi |
10f2d63a VZ |
19989 | fi |
19990 | fi | |
19991 | fi | |
19992 | ||
19993 | if test "$wxUSE_TREECTRL" = "yes"; then | |
19994 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19995 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19996 | #define wxUSE_TREECTRL 1 |
19997 | EOF | |
19998 | ||
1e6feb95 | 19999 | USES_CONTROLS=1 |
10f2d63a VZ |
20000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20001 | else | |
698dcdb6 | 20002 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20003 | fi |
20004 | fi | |
20005 | ||
9f41d601 | 20006 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20007 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20008 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20009 | else |
485cf710 VZ |
20010 | if test "$wxUSE_MOTIF" = 1; then |
20011 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20012 | else | |
3c011993 VZ |
20013 | if test "$wxUSE_PM" = 1; then |
20014 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20015 | else | |
20016 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20017 | #define wxUSE_POPUPWIN 1 |
20018 | EOF | |
20019 | ||
9926e4a4 | 20020 | |
3c011993 VZ |
20021 | USES_CONTROLS=1 |
20022 | fi | |
485cf710 | 20023 | fi |
6abe4b65 | 20024 | fi |
9f41d601 RR |
20025 | fi |
20026 | ||
dd964dcc | 20027 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20028 | if test "$wxUSE_PM" = 1; then |
20029 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20030 | else | |
20031 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20032 | #define wxUSE_TIPWINDOW 1 |
20033 | EOF | |
20034 | ||
3c011993 | 20035 | fi |
dd964dcc VZ |
20036 | fi |
20037 | ||
1e6feb95 VZ |
20038 | if test "$USES_CONTROLS" = 1; then |
20039 | cat >> confdefs.h <<\EOF | |
20040 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20041 | EOF |
20042 | ||
10f2d63a VZ |
20043 | fi |
20044 | ||
1e6feb95 | 20045 | |
24176f2c GD |
20046 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20047 | cat >> confdefs.h <<\EOF | |
20048 | #define wxUSE_TREELAYOUT 1 | |
20049 | EOF | |
20050 | ||
20051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20052 | fi | |
1e6feb95 | 20053 | |
24fd6d87 VZ |
20054 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20055 | cat >> confdefs.h <<\EOF | |
20056 | #define wxUSE_DRAGIMAGE 1 | |
20057 | EOF | |
20058 | ||
20059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20060 | fi | |
20061 | ||
1e6feb95 | 20062 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20063 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20064 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20065 | EOF |
20066 | ||
1e6feb95 | 20067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20068 | fi |
20069 | ||
1e6feb95 VZ |
20070 | if test "$wxUSE_METAFILE" = "yes"; then |
20071 | cat >> confdefs.h <<\EOF | |
20072 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20073 | EOF |
20074 | ||
10f2d63a VZ |
20075 | fi |
20076 | ||
1e6feb95 VZ |
20077 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20078 | cat >> confdefs.h <<\EOF | |
20079 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20080 | EOF |
20081 | ||
10f2d63a VZ |
20082 | fi |
20083 | ||
3e44f09d VZ |
20084 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20085 | cat >> confdefs.h <<\EOF | |
20086 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20087 | EOF | |
20088 | ||
20089 | fi | |
20090 | ||
4cdb0ab0 | 20091 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20092 | if test "$wxUSE_SOCKETS" != "yes"; then |
20093 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20094 | wxUSE_PROTOCOL=no | |
20095 | fi | |
20096 | ||
20097 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20098 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20099 | #define wxUSE_PROTOCOL 1 |
20100 | EOF | |
20101 | ||
20102 | ||
3954f9ca VS |
20103 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20104 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20105 | #define wxUSE_PROTOCOL_HTTP 1 |
20106 | EOF | |
20107 | ||
3954f9ca VS |
20108 | fi |
20109 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20110 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20111 | #define wxUSE_PROTOCOL_FTP 1 |
20112 | EOF | |
20113 | ||
3954f9ca VS |
20114 | fi |
20115 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20116 | cat >> confdefs.h <<\EOF | |
20117 | #define wxUSE_PROTOCOL_FILE 1 | |
20118 | EOF | |
20119 | ||
20120 | fi | |
4cdb0ab0 | 20121 | fi |
3954f9ca VS |
20122 | fi |
20123 | ||
20124 | if test "$wxUSE_URL" = "yes"; then | |
20125 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20126 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20127 | wxUSE_URL=no | |
20128 | fi | |
20129 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20130 | cat >> confdefs.h <<\EOF |
3954f9ca | 20131 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20132 | EOF |
20133 | ||
20134 | fi | |
20135 | fi | |
20136 | ||
10f2d63a | 20137 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20138 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20139 | #define wxUSE_MINIFRAME 1 |
20140 | EOF | |
20141 | ||
20142 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20143 | fi | |
20144 | ||
20145 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20146 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20147 | #define wxUSE_HTML 1 |
20148 | EOF | |
20149 | ||
20150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20151 | fi |
20152 | ||
20153 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20154 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20155 | #define wxUSE_VALIDATORS 1 |
20156 | EOF | |
703e0a69 | 20157 | |
698dcdb6 VZ |
20158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20159 | fi | |
20160 | ||
edae8572 VZ |
20161 | if test "$wxUSE_PALETTE" = "yes" ; then |
20162 | cat >> confdefs.h <<\EOF | |
20163 | #define wxUSE_PALETTE 1 | |
20164 | EOF | |
20165 | ||
20166 | fi | |
20167 | ||
698dcdb6 VZ |
20168 | if test "$wxUSE_IMAGE" = "yes" ; then |
20169 | cat >> confdefs.h <<\EOF | |
20170 | #define wxUSE_IMAGE 1 | |
20171 | EOF | |
20172 | ||
20173 | fi | |
20174 | ||
20175 | if test "$wxUSE_GIF" = "yes" ; then | |
20176 | cat >> confdefs.h <<\EOF | |
20177 | #define wxUSE_GIF 1 | |
20178 | EOF | |
20179 | ||
20180 | fi | |
20181 | ||
20182 | if test "$wxUSE_PCX" = "yes" ; then | |
20183 | cat >> confdefs.h <<\EOF | |
20184 | #define wxUSE_PCX 1 | |
20185 | EOF | |
20186 | ||
20187 | fi | |
20188 | ||
4b6b4dfc RR |
20189 | if test "$wxUSE_IFF" = "yes" ; then |
20190 | cat >> confdefs.h <<\EOF | |
20191 | #define wxUSE_IFF 1 | |
20192 | EOF | |
20193 | ||
20194 | fi | |
20195 | ||
698dcdb6 VZ |
20196 | if test "$wxUSE_PNM" = "yes" ; then |
20197 | cat >> confdefs.h <<\EOF | |
20198 | #define wxUSE_PNM 1 | |
20199 | EOF | |
20200 | ||
20201 | fi | |
20202 | ||
20203 | if test "$wxUSE_XPM" = "yes" ; then | |
20204 | cat >> confdefs.h <<\EOF | |
20205 | #define wxUSE_XPM 1 | |
20206 | EOF | |
20207 | ||
20208 | fi | |
20209 | ||
658974ae VS |
20210 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20211 | cat >> confdefs.h <<\EOF | |
20212 | #define wxUSE_ICO_CUR 1 | |
20213 | EOF | |
20214 | ||
20215 | fi | |
20216 | ||
a72a4bfa VS |
20217 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20218 | LIBS=" -lunicows $LIBS" | |
20219 | fi | |
20220 | ||
698dcdb6 | 20221 | |
1e6feb95 VZ |
20222 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20223 | cat >> confdefs.h <<\EOF | |
20224 | #define wxUSE_CHOICEDLG 1 | |
20225 | EOF | |
20226 | ||
20227 | fi | |
20228 | ||
20229 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20230 | cat >> confdefs.h <<\EOF | |
20231 | #define wxUSE_COLOURDLG 1 | |
20232 | EOF | |
20233 | ||
20234 | fi | |
20235 | ||
20236 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20237 | cat >> confdefs.h <<\EOF | |
20238 | #define wxUSE_FILEDLG 1 | |
20239 | EOF | |
20240 | ||
20241 | fi | |
20242 | ||
8db37e06 VZ |
20243 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20244 | cat >> confdefs.h <<\EOF | |
20245 | #define wxUSE_FINDREPLDLG 1 | |
20246 | EOF | |
20247 | ||
20248 | fi | |
20249 | ||
1e6feb95 VZ |
20250 | if test "$wxUSE_FONTDLG" = "yes"; then |
20251 | cat >> confdefs.h <<\EOF | |
20252 | #define wxUSE_FONTDLG 1 | |
20253 | EOF | |
20254 | ||
20255 | fi | |
20256 | ||
20257 | if test "$wxUSE_DIRDLG" = "yes"; then | |
20258 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20259 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
20260 | else | |
20261 | if test "$wxUSE_TREECTRL" != "yes"; then | |
20262 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
20263 | else | |
20264 | cat >> confdefs.h <<\EOF | |
20265 | #define wxUSE_DIRDLG 1 | |
20266 | EOF | |
20267 | ||
20268 | fi | |
20269 | fi | |
20270 | fi | |
20271 | ||
20272 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20273 | cat >> confdefs.h <<\EOF | |
20274 | #define wxUSE_MSGDLG 1 | |
20275 | EOF | |
20276 | ||
20277 | fi | |
20278 | ||
20279 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20280 | cat >> confdefs.h <<\EOF | |
20281 | #define wxUSE_NUMBERDLG 1 | |
20282 | EOF | |
20283 | ||
20284 | fi | |
20285 | ||
20286 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20287 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20288 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20289 | else | |
20290 | cat >> confdefs.h <<\EOF | |
20291 | #define wxUSE_PROGRESSDLG 1 | |
20292 | EOF | |
20293 | ||
20294 | fi | |
20295 | fi | |
20296 | ||
cbca9943 VZ |
20297 | if test "$wxUSE_SPLASH" = "yes"; then |
20298 | cat >> confdefs.h <<\EOF | |
20299 | #define wxUSE_SPLASH 1 | |
20300 | EOF | |
20301 | ||
20302 | fi | |
20303 | ||
1e6feb95 VZ |
20304 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20305 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20306 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20307 | else | |
20308 | cat >> confdefs.h <<\EOF | |
20309 | #define wxUSE_STARTUP_TIPS 1 | |
20310 | EOF | |
20311 | ||
20312 | fi | |
20313 | fi | |
20314 | ||
20315 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20316 | cat >> confdefs.h <<\EOF | |
20317 | #define wxUSE_TEXTDLG 1 | |
20318 | EOF | |
20319 | ||
20320 | fi | |
20321 | ||
b1f5d087 VZ |
20322 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20323 | cat >> confdefs.h <<\EOF | |
20324 | #define wxUSE_WIZARDDLG 1 | |
20325 | EOF | |
20326 | ||
20327 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20328 | fi | |
20329 | ||
1e6feb95 | 20330 | |
698dcdb6 VZ |
20331 | if test "$cross_compiling" = "yes"; then |
20332 | OSINFO="\"$host\"" | |
20333 | else | |
20334 | OSINFO=`uname -s -r -m` | |
20335 | OSINFO="\"$OSINFO\"" | |
20336 | fi | |
20337 | ||
20338 | cat >> confdefs.h <<EOF | |
20339 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20340 | EOF | |
20341 | ||
20342 | ||
20343 | ||
06dda230 VZ |
20344 | if test "x$prefix" != "xNONE"; then |
20345 | wxPREFIX=$prefix | |
20346 | else | |
20347 | wxPREFIX=$ac_default_prefix | |
20348 | fi | |
20349 | ||
7e67ed0d | 20350 | cat >> confdefs.h <<EOF |
06dda230 | 20351 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20352 | EOF |
20353 | ||
20354 | ||
20355 | ||
698dcdb6 | 20356 | |
3a922bb4 | 20357 | |
f11bdd03 | 20358 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20359 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20360 | fi |
3a922bb4 | 20361 | |
3d63bc3a | 20362 | |
cb61c62d | 20363 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20364 | |
698dcdb6 | 20365 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20366 | |
cb61c62d | 20367 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20368 | |
20369 | ||
20370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
20371 | drawing dynamic erase event exec font image \ | |
20372 | minimal richedit rotate widgets" | |
20373 | ||
3a922bb4 RL |
20374 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20375 | else | |
20376 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20377 | fi |
20378 | ||
698dcdb6 | 20379 | |
d714471b | 20380 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
cb61c62d | 20381 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
698dcdb6 | 20382 | |
63e7762e | 20383 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20384 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20385 | else |
20386 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20387 | fi | |
20388 | ||
20389 | if test "$GXX" = yes ; then | |
20390 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20391 | |
20392 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20393 | CFLAGS="-MMD $CFLAGS" | |
20394 | CXXFLAGS="-MMD $CXXFLAGS" | |
20395 | fi | |
20396 | fi | |
20397 | ||
1725144d | 20398 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20399 | |
20400 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20401 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20402 | ||
3d63bc3a | 20403 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 20404 | |
698dcdb6 VZ |
20405 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20406 | ||
20407 | ||
20408 | ||
20409 | ||
20410 | ||
20411 | ||
20412 | ||
20413 | ||
20414 | ||
20415 | ||
20416 | ||
20417 | ||
20418 | ||
20419 | ||
20420 | ||
20421 | ||
20422 | ||
20423 | ||
20424 | ||
20425 | ||
20426 | ||
20427 | ||
20428 | ||
20429 | ||
20430 | ||
20431 | ||
20432 | ||
20433 | ||
20434 | ||
20435 | ||
20436 | ||
20437 | ||
20438 | ||
20439 | ||
20440 | ||
20441 | ||
20442 | ||
20443 | ||
20444 | ||
20445 | ||
20446 | ||
20447 | ||
20448 | ||
20449 | ||
20450 | ||
20451 | ||
20452 | ||
20453 | ||
20454 | ||
20455 | ||
20456 | ||
20457 | ||
20458 | ||
20459 | ||
20460 | ||
20461 | ||
20462 | ||
20463 | ||
20464 | ||
20465 | ||
20466 | ||
20467 | ||
20468 | ||
20469 | ||
20470 | ||
20471 | ||
20472 | ||
32832908 | 20473 | |
2f51a9ec GD |
20474 | |
20475 | ||
20476 | ||
20477 | ||
f6bcfd97 | 20478 | |
dad6c0ea | 20479 | |
caa2c79b | 20480 | |
3711412e | 20481 | |
1e6feb95 VZ |
20482 | |
20483 | ||
885d4bf5 VS |
20484 | |
20485 | ||
20486 | ||
20487 | ||
9b695262 VZ |
20488 | |
20489 | ||
62d0491b | 20490 | |
10f2d63a VZ |
20491 | |
20492 | ||
698dcdb6 | 20493 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
0feee163 | 20494 | echo "configure:20495: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20495 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20496 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20498 | else |
698dcdb6 | 20499 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20500 | all: |
20501 | @echo 'ac_maketemp="${MAKE}"' | |
20502 | EOF | |
20503 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20504 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20505 | if test -n "$ac_maketemp"; then |
20506 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20507 | else | |
20508 | eval ac_cv_prog_make_${ac_make}_set=no | |
20509 | fi | |
698dcdb6 | 20510 | rm -f conftestmake |
10f2d63a VZ |
20511 | fi |
20512 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20513 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20514 | SET_MAKE= |
20515 | else | |
698dcdb6 | 20516 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20517 | SET_MAKE="MAKE=${MAKE-make}" |
20518 | fi | |
20519 | ||
698dcdb6 | 20520 | |
3a922bb4 RL |
20521 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20522 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20523 | fi |
665bbe97 | 20524 | |
698dcdb6 | 20525 | |
10f2d63a | 20526 | |
2224580a | 20527 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 20528 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22c3fb2b | 20529 | wx_cv_if_gnu_make=$IF_GNU_MAKE |
e8482f24 GL |
20530 | wx_cv_path_ifs=$PATH_IFS |
20531 | wx_cv_program_ext=$PROGRAM_EXT | |
20532 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 20533 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 20534 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
22c3fb2b VZ |
20535 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
20536 | wx_cv_path_ifs wx_cv_program_ext \ | |
7b6058cd | 20537 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 20538 | subdirs="demos samples utils contrib" |
2224580a VZ |
20539 | |
20540 | fi | |
10f2d63a | 20541 | |
698dcdb6 VZ |
20542 | trap '' 1 2 15 |
20543 | cat > confcache <<\EOF | |
10f2d63a VZ |
20544 | # This file is a shell script that caches the results of configure |
20545 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20546 | # scripts and configure runs. It is not useful on other systems. |
20547 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20548 | # |
698dcdb6 VZ |
20549 | # By default, configure uses ./config.cache as the cache file, |
20550 | # creating it if it does not exist already. You can give configure | |
20551 | # the --cache-file=FILE option to use a different cache file; that is | |
20552 | # what configure does when it calls configure scripts in | |
20553 | # subdirectories, so they share the cache. | |
20554 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20555 | # config.status only pays attention to the cache file if you give it the | |
20556 | # --recheck option to rerun configure. | |
10f2d63a | 20557 | # |
698dcdb6 | 20558 | EOF |
10f2d63a VZ |
20559 | # The following way of writing the cache mishandles newlines in values, |
20560 | # but we know of no workaround that is simple, portable, and efficient. | |
20561 | # So, don't put newlines in cache variables' values. | |
20562 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20563 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20564 | (set) 2>&1 | |
20565 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20566 | *ac_space=\ *) | |
20567 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20568 | # turns \\\\ into \\, and sed turns \\ into \). | |
20569 | sed -n \ | |
20570 | -e "s/'/'\\\\''/g" \ | |
20571 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20572 | ;; | |
20573 | *) | |
20574 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20575 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20576 | ;; | |
20577 | esac >> confcache | |
20578 | if cmp -s $cache_file confcache; then | |
20579 | : | |
20580 | else | |
10f2d63a | 20581 | if test -w $cache_file; then |
698dcdb6 VZ |
20582 | echo "updating cache $cache_file" |
20583 | cat confcache > $cache_file | |
10f2d63a VZ |
20584 | else |
20585 | echo "not updating unwritable cache $cache_file" | |
20586 | fi | |
20587 | fi | |
20588 | rm -f confcache | |
20589 | ||
698dcdb6 VZ |
20590 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20591 | ||
10f2d63a VZ |
20592 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20593 | # Let make expand exec_prefix. | |
20594 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20595 | ||
698dcdb6 VZ |
20596 | # Any assignment to VPATH causes Sun make to only execute |
20597 | # the first set of double-colon rules, so remove it if not needed. | |
20598 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20599 | if test "x$srcdir" = x.; then |
698dcdb6 | 20600 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20601 | fi |
20602 | ||
698dcdb6 VZ |
20603 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20604 | ||
10f2d63a VZ |
20605 | DEFS=-DHAVE_CONFIG_H |
20606 | ||
698dcdb6 | 20607 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20608 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20609 | |
20610 | echo creating $CONFIG_STATUS | |
20611 | rm -f $CONFIG_STATUS | |
20612 | cat > $CONFIG_STATUS <<EOF | |
20613 | #! /bin/sh | |
10f2d63a VZ |
20614 | # Generated automatically by configure. |
20615 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20616 | # This directory was configured as follows, |
20617 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20618 | # | |
20619 | # $0 $ac_configure_args | |
20620 | # | |
10f2d63a | 20621 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20622 | # configure, is in ./config.log if it exists. |
1e487827 | 20623 | |
698dcdb6 VZ |
20624 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20625 | for ac_option | |
10f2d63a | 20626 | do |
698dcdb6 | 20627 | case "\$ac_option" in |
10f2d63a | 20628 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20629 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20630 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20631 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20632 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20633 | exit 0 ;; | |
20634 | -help | --help | --hel | --he | --h) | |
20635 | echo "\$ac_cs_usage"; exit 0 ;; | |
20636 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20637 | esac |
20638 | done | |
20639 | ||
698dcdb6 VZ |
20640 | ac_given_srcdir=$srcdir |
20641 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20642 | |
698dcdb6 VZ |
20643 | trap 'rm -fr `echo " |
20644 | wx-config | |
20645 | src/make.env | |
20646 | src/makeprog.env | |
20647 | src/makelib.env | |
20648 | Makefile | |
20649 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20650 | EOF |
698dcdb6 | 20651 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20652 | |
698dcdb6 VZ |
20653 | # Protect against being on the right side of a sed subst in config.status. |
20654 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20655 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20656 | $ac_vpsub | |
20657 | $extrasub | |
20658 | s%@SHELL@%$SHELL%g | |
20659 | s%@CFLAGS@%$CFLAGS%g | |
20660 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20661 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20662 | s%@FFLAGS@%$FFLAGS%g | |
20663 | s%@DEFS@%$DEFS%g | |
20664 | s%@LDFLAGS@%$LDFLAGS%g | |
20665 | s%@LIBS@%$LIBS%g | |
20666 | s%@exec_prefix@%$exec_prefix%g | |
20667 | s%@prefix@%$prefix%g | |
20668 | s%@program_transform_name@%$program_transform_name%g | |
20669 | s%@bindir@%$bindir%g | |
20670 | s%@sbindir@%$sbindir%g | |
20671 | s%@libexecdir@%$libexecdir%g | |
20672 | s%@datadir@%$datadir%g | |
20673 | s%@sysconfdir@%$sysconfdir%g | |
20674 | s%@sharedstatedir@%$sharedstatedir%g | |
20675 | s%@localstatedir@%$localstatedir%g | |
20676 | s%@libdir@%$libdir%g | |
20677 | s%@includedir@%$includedir%g | |
20678 | s%@oldincludedir@%$oldincludedir%g | |
20679 | s%@infodir@%$infodir%g | |
20680 | s%@mandir@%$mandir%g | |
20681 | s%@host@%$host%g | |
20682 | s%@host_alias@%$host_alias%g | |
20683 | s%@host_cpu@%$host_cpu%g | |
20684 | s%@host_vendor@%$host_vendor%g | |
20685 | s%@host_os@%$host_os%g | |
20686 | s%@target@%$target%g | |
20687 | s%@target_alias@%$target_alias%g | |
20688 | s%@target_cpu@%$target_cpu%g | |
20689 | s%@target_vendor@%$target_vendor%g | |
20690 | s%@target_os@%$target_os%g | |
20691 | s%@build@%$build%g | |
20692 | s%@build_alias@%$build_alias%g | |
20693 | s%@build_cpu@%$build_cpu%g | |
20694 | s%@build_vendor@%$build_vendor%g | |
20695 | s%@build_os@%$build_os%g | |
20696 | s%@CC@%$CC%g | |
20697 | s%@CPP@%$CPP%g | |
20698 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20699 | s%@RANLIB@%$RANLIB%g |
20700 | s%@AR@%$AR%g | |
20701 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20702 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20703 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20704 | s%@STRIP@%$STRIP%g |
613d0995 | 20705 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20706 | s%@YACC@%$YACC%g |
20707 | s%@LEX@%$LEX%g | |
20708 | s%@LEXLIB@%$LEXLIB%g | |
20709 | s%@LN_S@%$LN_S%g | |
20710 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
20711 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20712 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20713 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20714 | s%@X_CFLAGS@%$X_CFLAGS%g |
20715 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20716 | s%@X_LIBS@%$X_LIBS%g | |
20717 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20718 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20719 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20720 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20721 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20722 | s%@LEX_STEM@%$LEX_STEM%g |
20723 | s%@PATH_IFS@%$PATH_IFS%g | |
20724 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20725 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20726 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20727 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20728 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20729 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20730 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20731 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20732 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20733 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20734 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20735 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20736 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20737 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20738 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20739 | s%@WX_ALL@%$WX_ALL%g |
20740 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20741 | s%@SHARED_LD@%$SHARED_LD%g | |
20742 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20743 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20744 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20745 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20746 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20747 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20748 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20749 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20750 | s%@USE_GUI@%$USE_GUI%g | |
20751 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20752 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20753 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20754 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20755 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20756 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20757 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20758 | s%@cross_compiling@%$cross_compiling%g |
20759 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20760 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20761 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20762 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20763 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20764 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20765 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20766 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20767 | s%@GUIDIST@%$GUIDIST%g |
20768 | s%@PORT_FILES@%$PORT_FILES%g | |
20769 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20770 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20771 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20772 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20773 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20774 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20775 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20776 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20777 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20778 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
20779 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20780 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20781 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20782 | s%@DLLTOOL@%$DLLTOOL%g |
20783 | s%@AS@%$AS%g | |
20784 | s%@NM@%$NM%g | |
20785 | s%@LD@%$LD%g | |
20786 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20787 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20788 | s%@SET_MAKE@%$SET_MAKE%g |
20789 | s%@subdirs@%$subdirs%g | |
1e487827 | 20790 | |
1e487827 | 20791 | CEOF |
1e487827 VS |
20792 | EOF |
20793 | ||
698dcdb6 VZ |
20794 | cat >> $CONFIG_STATUS <<\EOF |
20795 | ||
20796 | # Split the substitutions into bite-sized pieces for seds with | |
20797 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20798 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20799 | ac_file=1 # Number of current file. | |
20800 | ac_beg=1 # First line for current file. | |
20801 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20802 | ac_more_lines=: | |
20803 | ac_sed_cmds="" | |
20804 | while $ac_more_lines; do | |
20805 | if test $ac_beg -gt 1; then | |
20806 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20807 | else | |
20808 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20809 | fi | |
20810 | if test ! -s conftest.s$ac_file; then | |
20811 | ac_more_lines=false | |
20812 | rm -f conftest.s$ac_file | |
20813 | else | |
20814 | if test -z "$ac_sed_cmds"; then | |
20815 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20816 | else |
698dcdb6 | 20817 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20818 | fi |
698dcdb6 VZ |
20819 | ac_file=`expr $ac_file + 1` |
20820 | ac_beg=$ac_end | |
20821 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20822 | fi |
698dcdb6 VZ |
20823 | done |
20824 | if test -z "$ac_sed_cmds"; then | |
20825 | ac_sed_cmds=cat | |
20826 | fi | |
20827 | EOF | |
10f2d63a | 20828 | |
698dcdb6 VZ |
20829 | cat >> $CONFIG_STATUS <<EOF |
20830 | ||
20831 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20832 | src/make.env | |
20833 | src/makeprog.env | |
20834 | src/makelib.env | |
20835 | Makefile | |
20836 | "} | |
10f2d63a | 20837 | EOF |
698dcdb6 VZ |
20838 | cat >> $CONFIG_STATUS <<\EOF |
20839 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20840 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20841 | case "$ac_file" in |
20842 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20843 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20844 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20845 | esac |
20846 | ||
698dcdb6 | 20847 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20848 | |
698dcdb6 VZ |
20849 | # Remove last slash and all that follows it. Not all systems have dirname. |
20850 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20851 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20852 | # The file is in a subdirectory. | |
20853 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20854 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20855 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20856 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20857 | else |
20858 | ac_dir_suffix= ac_dots= | |
20859 | fi | |
20860 | ||
698dcdb6 VZ |
20861 | case "$ac_given_srcdir" in |
20862 | .) srcdir=. | |
20863 | if test -z "$ac_dots"; then top_srcdir=. | |
20864 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20865 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20866 | *) # Relative path. |
698dcdb6 VZ |
20867 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20868 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20869 | esac |
20870 | ||
698dcdb6 VZ |
20871 | case "$ac_given_INSTALL" in |
20872 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20873 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20874 | esac |
20875 | ||
698dcdb6 VZ |
20876 | echo creating "$ac_file" |
20877 | rm -f "$ac_file" | |
20878 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20879 | case "$ac_file" in | |
20880 | *Makefile*) ac_comsub="1i\\ | |
20881 | # $configure_input" ;; | |
20882 | *) ac_comsub= ;; | |
20883 | esac | |
10f2d63a | 20884 | |
698dcdb6 VZ |
20885 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20886 | sed -e "$ac_comsub | |
20887 | s%@configure_input@%$configure_input%g | |
20888 | s%@srcdir@%$srcdir%g | |
20889 | s%@top_srcdir@%$top_srcdir%g | |
20890 | s%@INSTALL@%$INSTALL%g | |
20891 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20892 | fi; done | |
20893 | rm -f conftest.s* | |
10f2d63a VZ |
20894 | |
20895 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20896 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20897 | # | |
20898 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20899 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20900 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20901 | ac_dC='\3' | |
20902 | ac_dD='%g' | |
20903 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20904 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20905 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20906 | ac_uC=' ' |
698dcdb6 VZ |
20907 | ac_uD='\4%g' |
20908 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20909 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20910 | ac_eB='$%\1#\2define\3' | |
20911 | ac_eC=' ' | |
20912 | ac_eD='%g' | |
10f2d63a | 20913 | |
698dcdb6 VZ |
20914 | if test "${CONFIG_HEADERS+set}" != set; then |
20915 | EOF | |
20916 | cat >> $CONFIG_STATUS <<EOF | |
20917 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20918 | EOF | |
20919 | cat >> $CONFIG_STATUS <<\EOF | |
20920 | fi | |
20921 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20922 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20923 | case "$ac_file" in |
20924 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20925 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20926 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20927 | esac |
20928 | ||
698dcdb6 VZ |
20929 | echo creating $ac_file |
20930 | ||
20931 | rm -f conftest.frag conftest.in conftest.out | |
20932 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20933 | cat $ac_file_inputs > conftest.in | |
20934 | ||
20935 | EOF | |
20936 | ||
20937 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20938 | # the proper values into config.h.in to produce config.h. And first: | |
20939 | # Protect against being on the right side of a sed subst in config.status. | |
20940 | # Protect against being in an unquoted here document in config.status. | |
20941 | rm -f conftest.vals | |
20942 | cat > conftest.hdr <<\EOF | |
20943 | s/[\\&%]/\\&/g | |
20944 | s%[\\$`]%\\&%g | |
20945 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20946 | s%ac_d%ac_u%gp | |
20947 | s%ac_u%ac_e%gp | |
20948 | EOF | |
20949 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20950 | rm -f conftest.hdr | |
10f2d63a VZ |
20951 | |
20952 | # This sed command replaces #undef with comments. This is necessary, for | |
20953 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20954 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20955 | cat >> conftest.vals <<\EOF |
20956 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20957 | EOF |
20958 | ||
698dcdb6 VZ |
20959 | # Break up conftest.vals because some shells have a limit on |
20960 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20961 | |
20962 | rm -f conftest.tail | |
698dcdb6 | 20963 | while : |
10f2d63a | 20964 | do |
698dcdb6 VZ |
20965 | ac_lines=`grep -c . conftest.vals` |
20966 | # grep -c gives empty output for an empty file on some AIX systems. | |
20967 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20968 | # Write a limited-size here document to conftest.frag. | |
20969 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20970 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20971 | echo 'CEOF |
698dcdb6 VZ |
20972 | sed -f conftest.frag conftest.in > conftest.out |
20973 | rm -f conftest.in | |
20974 | mv conftest.out conftest.in | |
20975 | ' >> $CONFIG_STATUS | |
20976 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20977 | rm -f conftest.vals | |
20978 | mv conftest.tail conftest.vals | |
10f2d63a | 20979 | done |
698dcdb6 VZ |
20980 | rm -f conftest.vals |
20981 | ||
20982 | cat >> $CONFIG_STATUS <<\EOF | |
20983 | rm -f conftest.frag conftest.h | |
20984 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20985 | cat conftest.in >> conftest.h | |
20986 | rm -f conftest.in | |
20987 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
20988 | echo "$ac_file is unchanged" | |
20989 | rm -f conftest.h | |
10f2d63a | 20990 | else |
698dcdb6 VZ |
20991 | # Remove last slash and all that follows it. Not all systems have dirname. |
20992 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 20993 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
20994 | # The file is in a subdirectory. |
20995 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 20996 | fi |
698dcdb6 VZ |
20997 | rm -f $ac_file |
20998 | mv conftest.h $ac_file | |
10f2d63a | 20999 | fi |
698dcdb6 VZ |
21000 | fi; done |
21001 | ||
10f2d63a | 21002 | EOF |
698dcdb6 | 21003 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21004 | |
3a922bb4 | 21005 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21006 | LN_S="${LN_S}" |
21007 | ||
21008 | ||
21009 | EOF | |
21010 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21011 | |
652d930d | 21012 | if test ! -h wx-config; then |
991a5759 | 21013 | chmod +x wx-config |
3a922bb4 RL |
21014 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21015 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21016 | fi |
665bbe97 | 21017 | |
00cf1208 RR |
21018 | if test ! -d lib; then |
21019 | mkdir lib | |
21020 | fi | |
21021 | if test ! -d lib/wx; then | |
21022 | mkdir lib/wx | |
21023 | fi | |
21024 | if test ! -d lib/wx/include; then | |
21025 | mkdir lib/wx/include | |
21026 | fi | |
3a922bb4 RL |
21027 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21028 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21029 | fi |
3a922bb4 RL |
21030 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21031 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21032 | fi |
21033 | if test -f setup.h; then | |
3a922bb4 | 21034 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21035 | fi |
698dcdb6 VZ |
21036 | |
21037 | exit 0 | |
10f2d63a VZ |
21038 | EOF |
21039 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21040 | rm -fr confdefs* $ac_clean_files |
21041 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21042 | |
2224580a VZ |
21043 | if test "$no_recursion" != yes; then |
21044 | ||
21045 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21046 | ac_sub_configure_args= | |
21047 | ac_prev= | |
21048 | for ac_arg in $ac_configure_args; do | |
21049 | if test -n "$ac_prev"; then | |
21050 | ac_prev= | |
21051 | continue | |
21052 | fi | |
698dcdb6 | 21053 | case "$ac_arg" in |
2224580a VZ |
21054 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21055 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21056 | ac_prev=cache_file ;; | |
21057 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21058 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21059 | ;; |
21060 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21061 | ac_prev=srcdir ;; | |
21062 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21063 | ;; | |
21064 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21065 | esac | |
21066 | done | |
21067 | ||
698dcdb6 | 21068 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21069 | |
21070 | # Do not complain, so a configure script can configure whichever | |
21071 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21072 | if test ! -d $srcdir/$ac_config_dir; then |
21073 | continue | |
21074 | fi | |
21075 | ||
21076 | echo configuring in $ac_config_dir | |
2224580a | 21077 | |
698dcdb6 | 21078 | case "$srcdir" in |
2224580a VZ |
21079 | .) ;; |
21080 | *) | |
698dcdb6 VZ |
21081 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21082 | else | |
21083 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21084 | fi | |
21085 | ;; | |
2224580a VZ |
21086 | esac |
21087 | ||
21088 | ac_popdir=`pwd` | |
698dcdb6 | 21089 | cd $ac_config_dir |
2224580a | 21090 | |
698dcdb6 VZ |
21091 | # A "../" for each directory in /$ac_config_dir. |
21092 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21093 | |
698dcdb6 | 21094 | case "$srcdir" in |
2224580a VZ |
21095 | .) # No --srcdir option. We are building in place. |
21096 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21097 | /*) # Absolute path. |
21098 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21099 | *) # Relative path. |
698dcdb6 | 21100 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21101 | esac |
21102 | ||
21103 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21104 | if test -f $ac_sub_srcdir/configure; then |
21105 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21106 | elif test -f $ac_sub_srcdir/configure.in; then |
21107 | ac_sub_configure=$ac_configure | |
21108 | else | |
698dcdb6 | 21109 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21110 | ac_sub_configure= |
21111 | fi | |
21112 | ||
21113 | # The recursion is here. | |
21114 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21115 | |
2224580a | 21116 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21117 | case "$cache_file" in |
21118 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21119 | *) # Relative path. |
698dcdb6 | 21120 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21121 | esac |
698dcdb6 VZ |
21122 | case "$ac_given_INSTALL" in |
21123 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21124 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21125 | esac | |
2224580a | 21126 | |
698dcdb6 | 21127 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21128 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21129 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21130 | then : | |
21131 | else | |
21132 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21133 | fi | |
2224580a VZ |
21134 | fi |
21135 | ||
21136 | cd $ac_popdir | |
21137 | done | |
21138 | fi | |
21139 | ||
698dcdb6 | 21140 |