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 |
0c9a1c32 | 143 | --disable-compat22 disable 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 |
d558c907 | 1356 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1357 | ;; |
1358 | ||
d08b457b GD |
1359 | powerpc-*-darwin* ) |
1360 | USE_BSD=1 | |
f11bdd03 | 1361 | USE_DARWIN=1 |
3f345b47 | 1362 | CPP_MT_FLAG= |
3a922bb4 | 1363 | SO_SUFFIX=dylib |
698dcdb6 | 1364 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1365 | #define __BSD__ 1 |
b4085ce6 GD |
1366 | EOF |
1367 | ||
698dcdb6 | 1368 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1369 | #define __DARWIN__ 1 |
d08b457b GD |
1370 | EOF |
1371 | ||
1372 | cat >> confdefs.h <<\EOF | |
1373 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1374 | EOF |
1375 | ||
1376 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1377 | ;; | |
1378 | ||
b12915c1 VZ |
1379 | *-*-beos* ) |
1380 | USE_BEOS=1 | |
698dcdb6 | 1381 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1382 | #define __BEOS__ 1 |
1383 | EOF | |
1384 | ||
1385 | ;; | |
1386 | ||
10f2d63a | 1387 | *) |
698dcdb6 | 1388 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1389 | esac |
1390 | ||
1391 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1392 | wxUSE_UNIX=yes |
698dcdb6 | 1393 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1394 | #define __UNIX__ 1 |
1395 | EOF | |
1396 | ||
10f2d63a VZ |
1397 | fi |
1398 | ||
2389f33b VZ |
1399 | if test "$USE_LINUX" = 1; then |
1400 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
d558c907 | 1401 | echo "configure:1402: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1402 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1404 | else | |
a72a4bfa VS |
1405 | |
1406 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 1407 | #line 1408 "configure" |
2389f33b VZ |
1408 | #include "confdefs.h" |
1409 | #include <features.h> | |
1410 | int main() { | |
1411 | ||
1412 | #if !__GLIBC_PREREQ(2, 1) | |
1413 | #error not glibc2.1 | |
1414 | #endif | |
1415 | ||
1416 | ; return 0; } | |
1417 | EOF | |
d558c907 | 1418 | if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1419 | rm -rf conftest* |
1420 | ||
1421 | wx_lib_glibc21=yes | |
1422 | ||
1423 | else | |
1424 | echo "configure: failed program was:" >&5 | |
1425 | cat conftest.$ac_ext >&5 | |
1426 | rm -rf conftest* | |
1427 | ||
1428 | wx_lib_glibc21=no | |
1429 | ||
1430 | ||
1431 | fi | |
1432 | rm -f conftest* | |
1433 | ||
1434 | fi | |
1435 | ||
1436 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1437 | if test "$wx_lib_glibc21" = "yes"; then |
1438 | cat >> confdefs.h <<\EOF | |
1439 | #define wxHAVE_GLIBC2 1 | |
1440 | EOF | |
1441 | ||
1442 | fi | |
1443 | fi | |
10f2d63a | 1444 | |
1e487827 | 1445 | |
1e487827 | 1446 | |
6232543b | 1447 | |
10f2d63a VZ |
1448 | wx_arg_cache_file="configarg.cache" |
1449 | echo "loading argument cache $wx_arg_cache_file" | |
1450 | rm -f ${wx_arg_cache_file}.tmp | |
1451 | touch ${wx_arg_cache_file}.tmp | |
1452 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1453 | |
10f2d63a VZ |
1454 | |
1455 | DEBUG_CONFIGURE=0 | |
1456 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1457 | DEFAULT_wxUSE_UNIVERSAL=no |
1458 | ||
d8356fa3 VZ |
1459 | DEFAULT_wxUSE_NANOX=no |
1460 | ||
10f2d63a VZ |
1461 | DEFAULT_wxUSE_THREADS=yes |
1462 | ||
1463 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1464 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1465 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_PROFILE=no |
1467 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1468 | DEFAULT_wxUSE_NO_RTTI=yes |
1469 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_PERMISSIVE=no |
1471 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1472 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1473 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1474 | DEFAULT_wxUSE_MEM_TRACING=no | |
1475 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1476 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1477 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1478 | DEFAULT_wxUSE_APPLE_IEEE=no |
1479 | ||
1480 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1481 | DEFAULT_wxUSE_LOGWINDOW=no |
1482 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1483 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1484 | |
1485 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1486 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1487 | |
3e44f09d | 1488 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1489 | DEFAULT_wxUSE_ZLIB=no |
1490 | DEFAULT_wxUSE_LIBPNG=no | |
1491 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1492 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1493 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1494 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1495 | |
eb4efbdc | 1496 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1497 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1498 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1499 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1500 | DEFAULT_wxUSE_DATETIME=no | |
1501 | DEFAULT_wxUSE_TIMEDATE=no | |
1502 | DEFAULT_wxUSE_TIMER=no | |
1503 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1504 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1505 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1506 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1507 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_WAVE=no |
1509 | DEFAULT_wxUSE_INTL=no | |
1510 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1511 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_STREAMS=no |
1513 | DEFAULT_wxUSE_SOCKETS=no | |
1514 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1515 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1516 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1517 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1518 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1519 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1520 | |
1521 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1522 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1523 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1524 | ||
1525 | DEFAULT_wxUSE_X_RESOURCES=no | |
1526 | DEFAULT_wxUSE_CLIPBOARD=no | |
1527 | DEFAULT_wxUSE_TOOLTIPS=no | |
1528 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1529 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_SPLINES=no |
1531 | ||
1532 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1533 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1534 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1535 | ||
1536 | DEFAULT_wxUSE_PROLOGIO=no | |
1537 | DEFAULT_wxUSE_RESOURCES=no | |
1538 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1539 | DEFAULT_wxUSE_IPC=no | |
1540 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1541 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1542 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1543 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1544 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1545 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1546 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1547 | DEFAULT_wxUSE_PROTOCOL=no | |
1548 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1549 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1550 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1551 | DEFAULT_wxUSE_URL=no | |
1552 | ||
10f2d63a | 1553 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1554 | DEFAULT_wxUSE_CHOICEDLG=no |
1555 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1556 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1557 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1558 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1559 | DEFAULT_wxUSE_FONTDLG=no |
1560 | DEFAULT_wxUSE_MSGDLG=no | |
1561 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1562 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1563 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1565 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1566 | DEFAULT_wxUSE_WIZARDDLG=no |
1567 | ||
1e6feb95 | 1568 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1569 | DEFAULT_wxUSE_MINIFRAME=no |
1570 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1571 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1572 | DEFAULT_wxUSE_FS_INET=no |
1573 | DEFAULT_wxUSE_FS_ZIP=no | |
1574 | DEFAULT_wxUSE_BUSYINFO=no | |
1575 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1576 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1577 | |
1578 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1579 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1580 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1581 | DEFAULT_wxUSE_CALCTRL=no |
1582 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1583 | DEFAULT_wxUSE_CHECKBOX=no |
1584 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1585 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1586 | DEFAULT_wxUSE_COMBOBOX=no |
1587 | DEFAULT_wxUSE_GAUGE=no | |
1588 | DEFAULT_wxUSE_GRID=no | |
1589 | DEFAULT_wxUSE_NEW_GRID=no | |
1590 | DEFAULT_wxUSE_IMAGLIST=no | |
1591 | DEFAULT_wxUSE_LISTBOX=no | |
1592 | DEFAULT_wxUSE_LISTCTRL=no | |
1593 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1594 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_RADIOBOX=no |
1596 | DEFAULT_wxUSE_RADIOBTN=no | |
1597 | DEFAULT_wxUSE_SASH=no | |
1598 | DEFAULT_wxUSE_SCROLLBAR=no | |
1599 | DEFAULT_wxUSE_SLIDER=no | |
1600 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1601 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_SPLITTER=no |
1603 | DEFAULT_wxUSE_STATBMP=no | |
1604 | DEFAULT_wxUSE_STATBOX=no | |
1605 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1606 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1607 | DEFAULT_wxUSE_STATUSBAR=yes |
1608 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1609 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1610 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1611 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1612 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1613 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1614 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1615 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1616 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1617 | |
1618 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1619 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1620 | DEFAULT_wxUSE_WCSRTOMBS=no |
1621 | ||
edae8572 | 1622 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1623 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1624 | DEFAULT_wxUSE_GIF=no |
1625 | DEFAULT_wxUSE_PCX=no | |
1626 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1627 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1628 | DEFAULT_wxUSE_XPM=no |
658974ae | 1629 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1630 | else |
1e6feb95 VZ |
1631 | DEFAULT_wxUSE_UNIVERSAL=no |
1632 | ||
d8356fa3 VZ |
1633 | DEFAULT_wxUSE_NANOX=no |
1634 | ||
10f2d63a VZ |
1635 | DEFAULT_wxUSE_THREADS=yes |
1636 | ||
1637 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1638 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_OPTIMISE=yes |
1640 | DEFAULT_wxUSE_PROFILE=no | |
1641 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1642 | DEFAULT_wxUSE_NO_RTTI=yes |
1643 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1644 | DEFAULT_wxUSE_PERMISSIVE=no |
1645 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1646 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1647 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1648 | DEFAULT_wxUSE_MEM_TRACING=no | |
1649 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1650 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1651 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1652 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1653 | ||
1654 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1655 | DEFAULT_wxUSE_LOGWINDOW=yes |
1656 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1657 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1658 | |
1659 | DEFAULT_wxUSE_GUI=yes | |
1660 | ||
831b3152 | 1661 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1662 | DEFAULT_wxUSE_ZLIB=yes |
1663 | DEFAULT_wxUSE_LIBPNG=yes | |
1664 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1665 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1666 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1667 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1668 | |
eb4efbdc | 1669 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1670 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1671 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1672 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1673 | DEFAULT_wxUSE_DATETIME=yes | |
1674 | DEFAULT_wxUSE_TIMEDATE=no | |
1675 | DEFAULT_wxUSE_TIMER=yes | |
1676 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1677 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1678 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1679 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1680 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1681 | DEFAULT_wxUSE_WAVE=no |
1682 | DEFAULT_wxUSE_INTL=yes | |
1683 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1684 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1685 | DEFAULT_wxUSE_STREAMS=yes |
1686 | DEFAULT_wxUSE_SOCKETS=yes | |
1687 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1688 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1689 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1690 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1691 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1692 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1693 | |
1694 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1695 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1696 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1697 | ||
1698 | DEFAULT_wxUSE_X_RESOURCES=no | |
1699 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1700 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1701 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1702 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_SPLINES=yes |
1704 | ||
1705 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1706 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1707 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1708 | ||
1709 | DEFAULT_wxUSE_PROLOGIO=yes | |
1710 | DEFAULT_wxUSE_RESOURCES=yes | |
1711 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1712 | DEFAULT_wxUSE_IPC=yes | |
1713 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1714 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1715 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1716 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1717 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1718 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1719 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1720 | DEFAULT_wxUSE_PROTOCOL=yes |
1721 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1722 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1723 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1724 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1725 | |
1726 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1727 | DEFAULT_wxUSE_CHOICEDLG=yes |
1728 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1729 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1730 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1731 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1732 | DEFAULT_wxUSE_FONTDLG=yes |
1733 | DEFAULT_wxUSE_MSGDLG=yes | |
1734 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1735 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1736 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1737 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1738 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1739 | DEFAULT_wxUSE_WIZARDDLG=yes |
1740 | ||
1e6feb95 | 1741 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1742 | DEFAULT_wxUSE_MINIFRAME=yes |
1743 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1744 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1745 | DEFAULT_wxUSE_FS_INET=yes |
1746 | DEFAULT_wxUSE_FS_ZIP=yes | |
1747 | DEFAULT_wxUSE_BUSYINFO=yes | |
1748 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1749 | DEFAULT_wxUSE_VALIDATORS=yes | |
1750 | ||
1751 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1752 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1753 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1754 | DEFAULT_wxUSE_CALCTRL=yes |
1755 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1756 | DEFAULT_wxUSE_CHECKBOX=yes |
1757 | DEFAULT_wxUSE_CHECKLST=yes | |
1758 | DEFAULT_wxUSE_CHOICE=yes | |
1759 | DEFAULT_wxUSE_COMBOBOX=yes | |
1760 | DEFAULT_wxUSE_GAUGE=yes | |
1761 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1762 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1763 | DEFAULT_wxUSE_IMAGLIST=yes |
1764 | DEFAULT_wxUSE_LISTBOX=yes | |
1765 | DEFAULT_wxUSE_LISTCTRL=yes | |
1766 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1767 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1768 | DEFAULT_wxUSE_RADIOBOX=yes |
1769 | DEFAULT_wxUSE_RADIOBTN=yes | |
1770 | DEFAULT_wxUSE_SASH=yes | |
1771 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1772 | DEFAULT_wxUSE_SLIDER=yes | |
1773 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1774 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1775 | DEFAULT_wxUSE_SPLITTER=yes |
1776 | DEFAULT_wxUSE_STATBMP=yes | |
1777 | DEFAULT_wxUSE_STATBOX=yes | |
1778 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1779 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1780 | DEFAULT_wxUSE_STATUSBAR=yes |
1781 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1782 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1783 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1784 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1785 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1786 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1787 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1788 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1789 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1790 | |
1791 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1792 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1793 | DEFAULT_wxUSE_WCSRTOMBS=no |
1794 | ||
edae8572 | 1795 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1796 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1797 | DEFAULT_wxUSE_GIF=yes |
1798 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1799 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1800 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1801 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1802 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1803 | fi |
1804 | ||
698dcdb6 VZ |
1805 | |
1806 | ||
10f2d63a VZ |
1807 | for toolkit in `echo $ALL_TOOLKITS`; do |
1808 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1809 | if test "x$LINE" != x ; then | |
1810 | has_toolkit_in_cache=1 | |
1811 | eval "DEFAULT_$LINE" | |
1812 | eval "CACHE_$toolkit=1" | |
1813 | fi | |
1814 | done | |
1815 | ||
698dcdb6 VZ |
1816 | |
1817 | ||
1818 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
d558c907 | 1819 | echo "configure:1820: checking for --enable-gui" >&5 |
10f2d63a VZ |
1820 | no_cache=0 |
1821 | # Check whether --enable-gui or --disable-gui was given. | |
1822 | if test "${enable_gui+set}" = set; then | |
1823 | enableval="$enable_gui" | |
698dcdb6 | 1824 | |
10f2d63a VZ |
1825 | if test "$enableval" = yes; then |
1826 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1827 | else | |
1828 | ac_cv_use_gui='wxUSE_GUI=no' | |
1829 | fi | |
698dcdb6 | 1830 | |
10f2d63a | 1831 | else |
698dcdb6 | 1832 | |
10f2d63a VZ |
1833 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1834 | if test "x$LINE" != x ; then | |
1835 | eval "DEFAULT_$LINE" | |
1836 | else | |
1837 | no_cache=1 | |
1838 | fi | |
1839 | ||
1840 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1841 | |
1842 | fi | |
10f2d63a VZ |
1843 | |
1844 | ||
1845 | eval "$ac_cv_use_gui" | |
1846 | if test "$no_cache" != 1; then | |
1847 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1848 | fi | |
1849 | ||
1850 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1852 | else |
698dcdb6 | 1853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1854 | fi |
698dcdb6 | 1855 | |
10f2d63a | 1856 | |
b12915c1 | 1857 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1858 | |
1e6feb95 VZ |
1859 | |
1860 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
d558c907 | 1861 | echo "configure:1862: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1862 | no_cache=0 |
1863 | # Check whether --enable-universal or --disable-universal was given. | |
1864 | if test "${enable_universal+set}" = set; then | |
1865 | enableval="$enable_universal" | |
1866 | ||
1867 | if test "$enableval" = yes; then | |
1868 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1869 | else | |
1870 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1871 | fi | |
1872 | ||
1873 | else | |
1874 | ||
1875 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1876 | if test "x$LINE" != x ; then | |
1877 | eval "DEFAULT_$LINE" | |
1878 | else | |
1879 | no_cache=1 | |
1880 | fi | |
1881 | ||
1882 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1883 | ||
1884 | fi | |
1885 | ||
1886 | ||
1887 | eval "$ac_cv_use_universal" | |
1888 | if test "$no_cache" != 1; then | |
1889 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1890 | fi | |
1891 | ||
1892 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1893 | echo "$ac_t""yes" 1>&6 | |
1894 | else | |
1895 | echo "$ac_t""no" 1>&6 | |
1896 | fi | |
1897 | ||
10f2d63a VZ |
1898 | # Check whether --with-gtk or --without-gtk was given. |
1899 | if test "${with_gtk+set}" = set; then | |
1900 | withval="$with_gtk" | |
1901 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1902 | fi |
10f2d63a VZ |
1903 | |
1904 | # Check whether --with-motif or --without-motif was given. | |
1905 | if test "${with_motif+set}" = set; then | |
1906 | withval="$with_motif" | |
1907 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1908 | fi |
10f2d63a | 1909 | |
b4085ce6 GD |
1910 | # Check whether --with-mac or --without-mac was given. |
1911 | if test "${with_mac+set}" = set; then | |
1912 | withval="$with_mac" | |
1913 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1914 | fi |
b4085ce6 | 1915 | |
10f2d63a VZ |
1916 | # Check whether --with-wine or --without-wine was given. |
1917 | if test "${with_wine+set}" = set; then | |
1918 | withval="$with_wine" | |
1919 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1920 | fi |
10f2d63a | 1921 | |
77e13408 RL |
1922 | # Check whether --with-msw or --without-msw was given. |
1923 | if test "${with_msw+set}" = set; then | |
1924 | withval="$with_msw" | |
1925 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1926 | fi |
10f2d63a | 1927 | |
e07802fc VZ |
1928 | # Check whether --with-pm or --without-pm was given. |
1929 | if test "${with_pm+set}" = set; then | |
1930 | withval="$with_pm" | |
1931 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1932 | fi |
1933 | ||
1e6feb95 VZ |
1934 | # Check whether --with-mgl or --without-mgl was given. |
1935 | if test "${with_mgl+set}" = set; then | |
1936 | withval="$with_mgl" | |
1937 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1938 | fi | |
1939 | ||
1725144d RR |
1940 | # Check whether --with-microwin or --without-microwin was given. |
1941 | if test "${with_microwin+set}" = set; then | |
1942 | withval="$with_microwin" | |
1943 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1944 | fi | |
1945 | ||
f79bd02d JS |
1946 | # Check whether --with-x11 or --without-x11 was given. |
1947 | if test "${with_x11+set}" = set; then | |
1948 | withval="$with_x11" | |
3c011993 | 1949 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1950 | fi |
1951 | ||
10f2d63a | 1952 | |
ba875e66 | 1953 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
d558c907 | 1954 | echo "configure:1955: checking for --enable-nanox" >&5 |
d8356fa3 | 1955 | no_cache=0 |
ba875e66 VZ |
1956 | # Check whether --enable-nanox or --disable-nanox was given. |
1957 | if test "${enable_nanox+set}" = set; then | |
1958 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1959 | |
1960 | if test "$enableval" = yes; then | |
ba875e66 | 1961 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1962 | else |
ba875e66 | 1963 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1964 | fi |
1965 | ||
1966 | else | |
1967 | ||
1968 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1969 | if test "x$LINE" != x ; then | |
1970 | eval "DEFAULT_$LINE" | |
1971 | else | |
1972 | no_cache=1 | |
1973 | fi | |
1974 | ||
ba875e66 | 1975 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1976 | |
1977 | fi | |
1978 | ||
1979 | ||
ba875e66 | 1980 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1981 | if test "$no_cache" != 1; then |
ba875e66 | 1982 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1983 | fi |
1984 | ||
1985 | if test "$wxUSE_NANOX" = yes; then | |
1986 | echo "$ac_t""yes" 1>&6 | |
1987 | else | |
1988 | echo "$ac_t""no" 1>&6 | |
1989 | fi | |
1990 | ||
1991 | ||
8168de4c VZ |
1992 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1993 | if test "${enable_gtk2+set}" = set; then | |
1994 | enableval="$enable_gtk2" | |
1995 | wxUSE_GTK2=1 | |
10f2d63a | 1996 | else |
8168de4c | 1997 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1998 | fi |
1999 | ||
703e0a69 | 2000 | |
1e487827 | 2001 | |
698dcdb6 | 2002 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
d558c907 | 2003 | echo "configure:2004: checking for --with-libpng" >&5 |
698dcdb6 VZ |
2004 | no_cache=0 |
2005 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2006 | if test "${with_libpng+set}" = set; then |
2007 | withval="$with_libpng" | |
698dcdb6 | 2008 | |
10f2d63a | 2009 | if test "$withval" = yes; then |
b12915c1 | 2010 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2011 | elif test "$withval" = no; then |
b12915c1 | 2012 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2013 | elif test "$withval" = sys; then |
2014 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2015 | elif test "$withval" = builtin; then |
2016 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2017 | else |
4f14bcd8 | 2018 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2019 | fi |
698dcdb6 | 2020 | |
10f2d63a | 2021 | else |
698dcdb6 | 2022 | |
b12915c1 | 2023 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2024 | if test "x$LINE" != x ; then |
2025 | eval "DEFAULT_$LINE" | |
2026 | else | |
2027 | no_cache=1 | |
2028 | fi | |
2029 | ||
b12915c1 | 2030 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
2031 | |
2032 | fi | |
10f2d63a VZ |
2033 | |
2034 | ||
b12915c1 | 2035 | eval "$ac_cv_use_libpng" |
10f2d63a | 2036 | if test "$no_cache" != 1; then |
b12915c1 | 2037 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2038 | fi |
2039 | ||
b12915c1 | 2040 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 2041 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2042 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2043 | echo "$ac_t""no" 1>&6 |
422107f9 | 2044 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2045 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2046 | elif test "$wxUSE_LIBPNG" = builtin; then |
2047 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2048 | else |
4f14bcd8 | 2049 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2050 | fi |
698dcdb6 | 2051 | |
10f2d63a | 2052 | |
698dcdb6 | 2053 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
d558c907 | 2054 | echo "configure:2055: checking for --with-libjpeg" >&5 |
10f2d63a | 2055 | no_cache=0 |
698dcdb6 | 2056 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2057 | if test "${with_libjpeg+set}" = set; then |
2058 | withval="$with_libjpeg" | |
698dcdb6 | 2059 | |
10f2d63a | 2060 | if test "$withval" = yes; then |
b12915c1 | 2061 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2062 | elif test "$withval" = no; then |
b12915c1 | 2063 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2064 | elif test "$withval" = sys; then |
2065 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2066 | elif test "$withval" = builtin; then |
2067 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2068 | else |
4f14bcd8 | 2069 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2070 | fi |
698dcdb6 | 2071 | |
10f2d63a | 2072 | else |
698dcdb6 | 2073 | |
b12915c1 | 2074 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2075 | if test "x$LINE" != x ; then |
2076 | eval "DEFAULT_$LINE" | |
2077 | else | |
2078 | no_cache=1 | |
2079 | fi | |
2080 | ||
b12915c1 | 2081 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2082 | |
2083 | fi | |
10f2d63a VZ |
2084 | |
2085 | ||
b12915c1 | 2086 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2087 | if test "$no_cache" != 1; then |
b12915c1 | 2088 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2089 | fi |
2090 | ||
b12915c1 | 2091 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2092 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2093 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2094 | echo "$ac_t""no" 1>&6 |
422107f9 | 2095 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2096 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2097 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2098 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2099 | else |
4f14bcd8 | 2100 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2101 | fi |
698dcdb6 | 2102 | |
10f2d63a | 2103 | |
698dcdb6 | 2104 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
d558c907 | 2105 | echo "configure:2106: checking for --with-libtiff" >&5 |
10f2d63a | 2106 | no_cache=0 |
698dcdb6 | 2107 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2108 | if test "${with_libtiff+set}" = set; then |
2109 | withval="$with_libtiff" | |
698dcdb6 | 2110 | |
10f2d63a | 2111 | if test "$withval" = yes; then |
b12915c1 | 2112 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2113 | elif test "$withval" = no; then |
b12915c1 | 2114 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2115 | elif test "$withval" = sys; then |
2116 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2117 | elif test "$withval" = builtin; then |
2118 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2119 | else |
4f14bcd8 | 2120 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2121 | fi |
698dcdb6 | 2122 | |
10f2d63a | 2123 | else |
698dcdb6 | 2124 | |
b12915c1 | 2125 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2126 | if test "x$LINE" != x ; then |
2127 | eval "DEFAULT_$LINE" | |
2128 | else | |
2129 | no_cache=1 | |
2130 | fi | |
2131 | ||
b12915c1 | 2132 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2133 | |
2134 | fi | |
10f2d63a VZ |
2135 | |
2136 | ||
b12915c1 | 2137 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2138 | if test "$no_cache" != 1; then |
b12915c1 | 2139 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2140 | fi |
2141 | ||
b12915c1 | 2142 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2143 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2144 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2145 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2146 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2147 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2148 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2149 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2150 | else |
4f14bcd8 | 2151 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2152 | fi |
698dcdb6 | 2153 | |
10f2d63a | 2154 | |
698dcdb6 | 2155 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
d558c907 | 2156 | echo "configure:2157: checking for --with-opengl" >&5 |
10f2d63a | 2157 | no_cache=0 |
698dcdb6 | 2158 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2159 | if test "${with_opengl+set}" = set; then |
2160 | withval="$with_opengl" | |
698dcdb6 | 2161 | |
10f2d63a | 2162 | if test "$withval" = yes; then |
b12915c1 | 2163 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2164 | else |
b12915c1 | 2165 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2166 | fi |
698dcdb6 | 2167 | |
10f2d63a | 2168 | else |
698dcdb6 | 2169 | |
b12915c1 | 2170 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2171 | if test "x$LINE" != x ; then |
2172 | eval "DEFAULT_$LINE" | |
2173 | else | |
2174 | no_cache=1 | |
2175 | fi | |
2176 | ||
b12915c1 | 2177 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2178 | |
2179 | fi | |
10f2d63a VZ |
2180 | |
2181 | ||
b12915c1 | 2182 | eval "$ac_cv_use_opengl" |
10f2d63a | 2183 | if test "$no_cache" != 1; then |
b12915c1 | 2184 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2185 | fi |
2186 | ||
b12915c1 | 2187 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2188 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2189 | else |
698dcdb6 | 2190 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2191 | fi |
698dcdb6 | 2192 | |
10f2d63a | 2193 | |
b12915c1 VZ |
2194 | fi |
2195 | ||
1e487827 | 2196 | |
698dcdb6 | 2197 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
d558c907 | 2198 | echo "configure:2199: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2199 | no_cache=0 |
2200 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2201 | if test "${with_dmalloc+set}" = set; then |
2202 | withval="$with_dmalloc" | |
698dcdb6 | 2203 | |
c7a2bf27 | 2204 | if test "$withval" = yes; then |
b12915c1 | 2205 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2206 | else |
b12915c1 | 2207 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2208 | fi |
698dcdb6 | 2209 | |
c7a2bf27 | 2210 | else |
698dcdb6 | 2211 | |
b12915c1 | 2212 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2213 | if test "x$LINE" != x ; then |
2214 | eval "DEFAULT_$LINE" | |
2215 | else | |
2216 | no_cache=1 | |
2217 | fi | |
2218 | ||
b12915c1 | 2219 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2220 | |
2221 | fi | |
c7a2bf27 RR |
2222 | |
2223 | ||
b12915c1 | 2224 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2225 | if test "$no_cache" != 1; then |
b12915c1 | 2226 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2227 | fi |
2228 | ||
b12915c1 | 2229 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2230 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2231 | else |
698dcdb6 | 2232 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2233 | fi |
698dcdb6 | 2234 | |
c7a2bf27 | 2235 | |
3e44f09d | 2236 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
d558c907 | 2237 | echo "configure:2238: checking for --with-regex" >&5 |
3e44f09d VZ |
2238 | no_cache=0 |
2239 | # Check whether --with-regex or --without-regex was given. | |
2240 | if test "${with_regex+set}" = set; then | |
2241 | withval="$with_regex" | |
2242 | ||
2243 | if test "$withval" = yes; then | |
2244 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2245 | elif test "$withval" = no; then | |
2246 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2247 | elif test "$withval" = sys; then | |
2248 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2249 | elif test "$withval" = builtin; then |
2250 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2251 | else |
4f14bcd8 | 2252 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2253 | fi |
2254 | ||
2255 | else | |
2256 | ||
2257 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2258 | if test "x$LINE" != x ; then | |
2259 | eval "DEFAULT_$LINE" | |
2260 | else | |
2261 | no_cache=1 | |
2262 | fi | |
2263 | ||
2264 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2265 | ||
2266 | fi | |
2267 | ||
2268 | ||
2269 | eval "$ac_cv_use_regex" | |
2270 | if test "$no_cache" != 1; then | |
2271 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2272 | fi | |
2273 | ||
2274 | if test "$wxUSE_REGEX" = yes; then | |
2275 | echo "$ac_t""yes" 1>&6 | |
2276 | elif test "$wxUSE_REGEX" = no; then | |
2277 | echo "$ac_t""no" 1>&6 | |
2278 | elif test "$wxUSE_REGEX" = sys; then | |
2279 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2280 | elif test "$wxUSE_REGEX" = builtin; then |
2281 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2282 | else |
4f14bcd8 | 2283 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2284 | fi |
2285 | ||
2286 | ||
698dcdb6 | 2287 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
d558c907 | 2288 | echo "configure:2289: checking for --with-zlib" >&5 |
10f2d63a | 2289 | no_cache=0 |
698dcdb6 | 2290 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2291 | if test "${with_zlib+set}" = set; then |
2292 | withval="$with_zlib" | |
698dcdb6 | 2293 | |
10f2d63a | 2294 | if test "$withval" = yes; then |
b12915c1 | 2295 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2296 | elif test "$withval" = no; then |
b12915c1 | 2297 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2298 | elif test "$withval" = sys; then |
2299 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2300 | elif test "$withval" = builtin; then |
2301 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2302 | else |
4f14bcd8 | 2303 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2304 | fi |
698dcdb6 | 2305 | |
10f2d63a | 2306 | else |
698dcdb6 | 2307 | |
b12915c1 | 2308 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2309 | if test "x$LINE" != x ; then |
2310 | eval "DEFAULT_$LINE" | |
2311 | else | |
2312 | no_cache=1 | |
2313 | fi | |
2314 | ||
b12915c1 | 2315 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2316 | |
2317 | fi | |
10f2d63a VZ |
2318 | |
2319 | ||
b12915c1 | 2320 | eval "$ac_cv_use_zlib" |
10f2d63a | 2321 | if test "$no_cache" != 1; then |
b12915c1 | 2322 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2323 | fi |
2324 | ||
b12915c1 | 2325 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2326 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2327 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2328 | echo "$ac_t""no" 1>&6 |
422107f9 | 2329 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2330 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2331 | elif test "$wxUSE_ZLIB" = builtin; then |
2332 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2333 | else |
4f14bcd8 | 2334 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2335 | fi |
698dcdb6 | 2336 | |
10f2d63a | 2337 | |
698dcdb6 | 2338 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
d558c907 | 2339 | echo "configure:2340: checking for --with-odbc" >&5 |
10f2d63a | 2340 | no_cache=0 |
698dcdb6 | 2341 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2342 | if test "${with_odbc+set}" = set; then |
2343 | withval="$with_odbc" | |
698dcdb6 | 2344 | |
10f2d63a VZ |
2345 | if test "$withval" = yes; then |
2346 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2347 | else | |
2348 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2349 | fi | |
698dcdb6 | 2350 | |
10f2d63a | 2351 | else |
698dcdb6 | 2352 | |
10f2d63a VZ |
2353 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2354 | if test "x$LINE" != x ; then | |
2355 | eval "DEFAULT_$LINE" | |
2356 | else | |
2357 | no_cache=1 | |
2358 | fi | |
2359 | ||
2360 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2361 | |
2362 | fi | |
10f2d63a VZ |
2363 | |
2364 | ||
2365 | eval "$ac_cv_use_odbc" | |
2366 | if test "$no_cache" != 1; then | |
2367 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2368 | fi | |
2369 | ||
2370 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2371 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2372 | else |
698dcdb6 | 2373 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2374 | fi |
698dcdb6 VZ |
2375 | |
2376 | ||
10f2d63a | 2377 | |
698dcdb6 | 2378 | |
698dcdb6 | 2379 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
d558c907 | 2380 | echo "configure:2381: checking for --enable-shared" >&5 |
10f2d63a VZ |
2381 | no_cache=0 |
2382 | # Check whether --enable-shared or --disable-shared was given. | |
2383 | if test "${enable_shared+set}" = set; then | |
2384 | enableval="$enable_shared" | |
698dcdb6 | 2385 | |
10f2d63a VZ |
2386 | if test "$enableval" = yes; then |
2387 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2388 | else | |
2389 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2390 | fi | |
698dcdb6 | 2391 | |
10f2d63a | 2392 | else |
698dcdb6 | 2393 | |
10f2d63a VZ |
2394 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2395 | if test "x$LINE" != x ; then | |
2396 | eval "DEFAULT_$LINE" | |
2397 | else | |
2398 | no_cache=1 | |
2399 | fi | |
2400 | ||
2401 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2402 | |
2403 | fi | |
10f2d63a VZ |
2404 | |
2405 | ||
2406 | eval "$ac_cv_use_shared" | |
2407 | if test "$no_cache" != 1; then | |
2408 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2409 | fi | |
2410 | ||
2411 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2412 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2413 | else |
698dcdb6 | 2414 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2415 | fi |
698dcdb6 | 2416 | |
10f2d63a | 2417 | |
3a922bb4 | 2418 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
d558c907 | 2419 | echo "configure:2420: checking for --enable-soname" >&5 |
00cf1208 | 2420 | no_cache=0 |
3a922bb4 RL |
2421 | # Check whether --enable-soname or --disable-soname was given. |
2422 | if test "${enable_soname+set}" = set; then | |
2423 | enableval="$enable_soname" | |
698dcdb6 | 2424 | |
00cf1208 | 2425 | if test "$enableval" = yes; then |
3a922bb4 | 2426 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2427 | else |
3a922bb4 | 2428 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2429 | fi |
698dcdb6 | 2430 | |
00cf1208 | 2431 | else |
698dcdb6 | 2432 | |
3a922bb4 | 2433 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2434 | if test "x$LINE" != x ; then |
2435 | eval "DEFAULT_$LINE" | |
2436 | else | |
2437 | no_cache=1 | |
2438 | fi | |
2439 | ||
3a922bb4 | 2440 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2441 | |
2442 | fi | |
00cf1208 RR |
2443 | |
2444 | ||
3a922bb4 | 2445 | eval "$ac_cv_use_soname" |
00cf1208 | 2446 | if test "$no_cache" != 1; then |
3a922bb4 | 2447 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2448 | fi |
2449 | ||
3a922bb4 | 2450 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2451 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2452 | else |
698dcdb6 | 2453 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2454 | fi |
698dcdb6 | 2455 | |
00cf1208 | 2456 | |
698dcdb6 | 2457 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
d558c907 | 2458 | echo "configure:2459: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2459 | no_cache=0 |
2460 | # Check whether --enable-optimise or --disable-optimise was given. | |
2461 | if test "${enable_optimise+set}" = set; then | |
2462 | enableval="$enable_optimise" | |
698dcdb6 | 2463 | |
10f2d63a VZ |
2464 | if test "$enableval" = yes; then |
2465 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2466 | else | |
2467 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2468 | fi | |
698dcdb6 | 2469 | |
10f2d63a | 2470 | else |
698dcdb6 | 2471 | |
10f2d63a VZ |
2472 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2473 | if test "x$LINE" != x ; then | |
2474 | eval "DEFAULT_$LINE" | |
2475 | else | |
2476 | no_cache=1 | |
2477 | fi | |
2478 | ||
2479 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2480 | |
2481 | fi | |
10f2d63a VZ |
2482 | |
2483 | ||
2484 | eval "$ac_cv_use_optimise" | |
2485 | if test "$no_cache" != 1; then | |
2486 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2487 | fi | |
2488 | ||
2489 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2491 | else |
698dcdb6 | 2492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2493 | fi |
698dcdb6 | 2494 | |
10f2d63a | 2495 | |
698dcdb6 | 2496 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
d558c907 | 2497 | echo "configure:2498: checking for --enable-debug" >&5 |
10f2d63a VZ |
2498 | no_cache=0 |
2499 | # Check whether --enable-debug or --disable-debug was given. | |
2500 | if test "${enable_debug+set}" = set; then | |
2501 | enableval="$enable_debug" | |
698dcdb6 | 2502 | |
10f2d63a VZ |
2503 | if test "$enableval" = yes; then |
2504 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2505 | else | |
2506 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2507 | fi | |
698dcdb6 | 2508 | |
10f2d63a | 2509 | else |
698dcdb6 | 2510 | |
10f2d63a VZ |
2511 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2512 | if test "x$LINE" != x ; then | |
2513 | eval "DEFAULT_$LINE" | |
2514 | else | |
2515 | no_cache=1 | |
2516 | fi | |
2517 | ||
2518 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2519 | |
2520 | fi | |
10f2d63a VZ |
2521 | |
2522 | ||
2523 | eval "$ac_cv_use_debug" | |
2524 | if test "$no_cache" != 1; then | |
2525 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2526 | fi | |
2527 | ||
2528 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2530 | else |
698dcdb6 | 2531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2532 | fi |
698dcdb6 | 2533 | |
10f2d63a | 2534 | |
683dccda GD |
2535 | |
2536 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
d558c907 | 2537 | echo "configure:2538: checking for --enable-precomp" >&5 |
683dccda GD |
2538 | no_cache=0 |
2539 | # Check whether --enable-precomp or --disable-precomp was given. | |
2540 | if test "${enable_precomp+set}" = set; then | |
2541 | enableval="$enable_precomp" | |
2542 | ||
2543 | if test "$enableval" = yes; then | |
2544 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2545 | else | |
2546 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2547 | fi | |
2548 | ||
2549 | else | |
2550 | ||
2551 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2552 | if test "x$LINE" != x ; then | |
2553 | eval "DEFAULT_$LINE" | |
2554 | else | |
2555 | no_cache=1 | |
2556 | fi | |
2557 | ||
2558 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2559 | ||
2560 | fi | |
2561 | ||
2562 | ||
2563 | eval "$ac_cv_use_precomp" | |
2564 | if test "$no_cache" != 1; then | |
2565 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2566 | fi | |
2567 | ||
2568 | if test "$wxUSE_PRECOMP" = yes; then | |
2569 | echo "$ac_t""yes" 1>&6 | |
2570 | else | |
2571 | echo "$ac_t""no" 1>&6 | |
2572 | fi | |
2573 | ||
2574 | ||
10f2d63a VZ |
2575 | if test "$wxUSE_DEBUG" = "yes"; then |
2576 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2577 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2578 | elif test "$wxUSE_DEBUG" = "no"; then | |
2579 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2580 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2581 | fi | |
2582 | ||
698dcdb6 VZ |
2583 | |
2584 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
d558c907 | 2585 | echo "configure:2586: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2586 | no_cache=0 |
2587 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2588 | if test "${enable_debug_flag+set}" = set; then | |
2589 | enableval="$enable_debug_flag" | |
698dcdb6 | 2590 | |
10f2d63a VZ |
2591 | if test "$enableval" = yes; then |
2592 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2593 | else | |
2594 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2595 | fi | |
698dcdb6 | 2596 | |
10f2d63a | 2597 | else |
698dcdb6 | 2598 | |
10f2d63a VZ |
2599 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2600 | if test "x$LINE" != x ; then | |
2601 | eval "DEFAULT_$LINE" | |
2602 | else | |
2603 | no_cache=1 | |
2604 | fi | |
2605 | ||
2606 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2607 | |
2608 | fi | |
10f2d63a VZ |
2609 | |
2610 | ||
2611 | eval "$ac_cv_use_debug_flag" | |
2612 | if test "$no_cache" != 1; then | |
2613 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2614 | fi | |
2615 | ||
2616 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2617 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2618 | else |
698dcdb6 | 2619 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2620 | fi |
698dcdb6 | 2621 | |
10f2d63a | 2622 | |
698dcdb6 | 2623 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
d558c907 | 2624 | echo "configure:2625: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2625 | no_cache=0 |
2626 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2627 | if test "${enable_debug_info+set}" = set; then | |
2628 | enableval="$enable_debug_info" | |
698dcdb6 | 2629 | |
10f2d63a VZ |
2630 | if test "$enableval" = yes; then |
2631 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2632 | else | |
2633 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2634 | fi | |
698dcdb6 | 2635 | |
10f2d63a | 2636 | else |
698dcdb6 | 2637 | |
10f2d63a VZ |
2638 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2639 | if test "x$LINE" != x ; then | |
2640 | eval "DEFAULT_$LINE" | |
2641 | else | |
2642 | no_cache=1 | |
2643 | fi | |
2644 | ||
2645 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2646 | |
2647 | fi | |
10f2d63a VZ |
2648 | |
2649 | ||
2650 | eval "$ac_cv_use_debug_info" | |
2651 | if test "$no_cache" != 1; then | |
2652 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2653 | fi | |
2654 | ||
2655 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2656 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2657 | else |
698dcdb6 | 2658 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2659 | fi |
698dcdb6 | 2660 | |
10f2d63a | 2661 | |
698dcdb6 | 2662 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
d558c907 | 2663 | echo "configure:2664: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2664 | no_cache=0 |
2665 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2666 | if test "${enable_debug_gdb+set}" = set; then | |
2667 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2668 | |
10f2d63a VZ |
2669 | if test "$enableval" = yes; then |
2670 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2671 | else | |
2672 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2673 | fi | |
698dcdb6 | 2674 | |
10f2d63a | 2675 | else |
698dcdb6 | 2676 | |
10f2d63a VZ |
2677 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2678 | if test "x$LINE" != x ; then | |
2679 | eval "DEFAULT_$LINE" | |
2680 | else | |
2681 | no_cache=1 | |
2682 | fi | |
2683 | ||
2684 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2685 | |
2686 | fi | |
10f2d63a VZ |
2687 | |
2688 | ||
2689 | eval "$ac_cv_use_debug_gdb" | |
2690 | if test "$no_cache" != 1; then | |
2691 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2692 | fi | |
2693 | ||
2694 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2695 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2696 | else |
698dcdb6 | 2697 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2698 | fi |
698dcdb6 | 2699 | |
10f2d63a | 2700 | |
698dcdb6 | 2701 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
d558c907 | 2702 | echo "configure:2703: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2703 | no_cache=0 |
2704 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2705 | if test "${enable_debug_cntxt+set}" = set; then | |
2706 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2707 | |
10f2d63a VZ |
2708 | if test "$enableval" = yes; then |
2709 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2710 | else | |
2711 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2712 | fi | |
698dcdb6 | 2713 | |
10f2d63a | 2714 | else |
698dcdb6 | 2715 | |
10f2d63a VZ |
2716 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2724 | |
2725 | fi | |
10f2d63a VZ |
2726 | |
2727 | ||
2728 | eval "$ac_cv_use_debug_cntxt" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2734 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2735 | else |
698dcdb6 | 2736 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2737 | fi |
698dcdb6 | 2738 | |
10f2d63a | 2739 | |
698dcdb6 | 2740 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
d558c907 | 2741 | echo "configure:2742: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2742 | no_cache=0 |
2743 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2744 | if test "${enable_mem_tracing+set}" = set; then | |
2745 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2746 | |
10f2d63a VZ |
2747 | if test "$enableval" = yes; then |
2748 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2749 | else | |
2750 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2751 | fi | |
698dcdb6 | 2752 | |
10f2d63a | 2753 | else |
698dcdb6 | 2754 | |
10f2d63a VZ |
2755 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2756 | if test "x$LINE" != x ; then | |
2757 | eval "DEFAULT_$LINE" | |
2758 | else | |
2759 | no_cache=1 | |
2760 | fi | |
2761 | ||
2762 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2763 | |
2764 | fi | |
10f2d63a VZ |
2765 | |
2766 | ||
2767 | eval "$ac_cv_use_mem_tracing" | |
2768 | if test "$no_cache" != 1; then | |
2769 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2770 | fi | |
2771 | ||
2772 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2773 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2774 | else |
698dcdb6 | 2775 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2776 | fi |
698dcdb6 | 2777 | |
10f2d63a | 2778 | |
698dcdb6 | 2779 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
d558c907 | 2780 | echo "configure:2781: checking for --enable-profile" >&5 |
10f2d63a VZ |
2781 | no_cache=0 |
2782 | # Check whether --enable-profile or --disable-profile was given. | |
2783 | if test "${enable_profile+set}" = set; then | |
2784 | enableval="$enable_profile" | |
698dcdb6 | 2785 | |
10f2d63a VZ |
2786 | if test "$enableval" = yes; then |
2787 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2788 | else | |
2789 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2790 | fi | |
698dcdb6 | 2791 | |
10f2d63a | 2792 | else |
698dcdb6 | 2793 | |
10f2d63a VZ |
2794 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2795 | if test "x$LINE" != x ; then | |
2796 | eval "DEFAULT_$LINE" | |
2797 | else | |
2798 | no_cache=1 | |
2799 | fi | |
2800 | ||
2801 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2802 | |
2803 | fi | |
10f2d63a VZ |
2804 | |
2805 | ||
2806 | eval "$ac_cv_use_profile" | |
2807 | if test "$no_cache" != 1; then | |
2808 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2809 | fi | |
2810 | ||
2811 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2813 | else |
698dcdb6 | 2814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2815 | fi |
698dcdb6 | 2816 | |
10f2d63a | 2817 | |
698dcdb6 | 2818 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
d558c907 | 2819 | echo "configure:2820: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2820 | no_cache=0 |
2821 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2822 | if test "${enable_no_rtti+set}" = set; then | |
2823 | enableval="$enable_no_rtti" | |
698dcdb6 | 2824 | |
10f2d63a VZ |
2825 | if test "$enableval" = yes; then |
2826 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2827 | else | |
2828 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2829 | fi | |
698dcdb6 | 2830 | |
10f2d63a | 2831 | else |
698dcdb6 | 2832 | |
10f2d63a VZ |
2833 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2841 | |
2842 | fi | |
10f2d63a VZ |
2843 | |
2844 | ||
2845 | eval "$ac_cv_use_no_rtti" | |
2846 | if test "$no_cache" != 1; then | |
2847 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2848 | fi | |
2849 | ||
2850 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2852 | else |
698dcdb6 | 2853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2854 | fi |
698dcdb6 | 2855 | |
10f2d63a | 2856 | |
698dcdb6 | 2857 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
d558c907 | 2858 | echo "configure:2859: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2859 | no_cache=0 |
2860 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2861 | if test "${enable_no_exceptions+set}" = set; then | |
2862 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2863 | |
10f2d63a VZ |
2864 | if test "$enableval" = yes; then |
2865 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2866 | else | |
2867 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2868 | fi | |
698dcdb6 | 2869 | |
10f2d63a | 2870 | else |
698dcdb6 | 2871 | |
10f2d63a VZ |
2872 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2873 | if test "x$LINE" != x ; then | |
2874 | eval "DEFAULT_$LINE" | |
2875 | else | |
2876 | no_cache=1 | |
2877 | fi | |
2878 | ||
2879 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2880 | |
2881 | fi | |
10f2d63a VZ |
2882 | |
2883 | ||
2884 | eval "$ac_cv_use_no_exceptions" | |
2885 | if test "$no_cache" != 1; then | |
2886 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2887 | fi | |
2888 | ||
2889 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2890 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2891 | else |
698dcdb6 | 2892 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2893 | fi |
698dcdb6 | 2894 | |
10f2d63a | 2895 | |
698dcdb6 | 2896 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
d558c907 | 2897 | echo "configure:2898: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2898 | no_cache=0 |
2899 | # Check whether --enable-permissive or --disable-permissive was given. | |
2900 | if test "${enable_permissive+set}" = set; then | |
2901 | enableval="$enable_permissive" | |
698dcdb6 | 2902 | |
10f2d63a VZ |
2903 | if test "$enableval" = yes; then |
2904 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2905 | else | |
2906 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2907 | fi | |
698dcdb6 | 2908 | |
10f2d63a | 2909 | else |
698dcdb6 | 2910 | |
10f2d63a VZ |
2911 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2912 | if test "x$LINE" != x ; then | |
2913 | eval "DEFAULT_$LINE" | |
2914 | else | |
2915 | no_cache=1 | |
2916 | fi | |
2917 | ||
2918 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2919 | |
2920 | fi | |
10f2d63a VZ |
2921 | |
2922 | ||
2923 | eval "$ac_cv_use_permissive" | |
2924 | if test "$no_cache" != 1; then | |
2925 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2926 | fi | |
2927 | ||
2928 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2929 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2930 | else |
698dcdb6 | 2931 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2932 | fi |
698dcdb6 | 2933 | |
10f2d63a | 2934 | |
698dcdb6 | 2935 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
d558c907 | 2936 | echo "configure:2937: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2937 | no_cache=0 |
2938 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2939 | if test "${enable_no_deps+set}" = set; then | |
2940 | enableval="$enable_no_deps" | |
698dcdb6 | 2941 | |
10f2d63a VZ |
2942 | if test "$enableval" = yes; then |
2943 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2944 | else | |
2945 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2946 | fi | |
698dcdb6 | 2947 | |
10f2d63a | 2948 | else |
698dcdb6 | 2949 | |
10f2d63a VZ |
2950 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2951 | if test "x$LINE" != x ; then | |
2952 | eval "DEFAULT_$LINE" | |
2953 | else | |
2954 | no_cache=1 | |
2955 | fi | |
2956 | ||
2957 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2958 | |
2959 | fi | |
10f2d63a VZ |
2960 | |
2961 | ||
2962 | eval "$ac_cv_use_no_deps" | |
2963 | if test "$no_cache" != 1; then | |
2964 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2965 | fi | |
2966 | ||
2967 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2968 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2969 | else |
698dcdb6 | 2970 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2971 | fi |
698dcdb6 VZ |
2972 | |
2973 | ||
10f2d63a | 2974 | |
54276ccf | 2975 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
d558c907 | 2976 | echo "configure:2977: checking for --enable-compat20" >&5 |
54276ccf VZ |
2977 | no_cache=0 |
2978 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2979 | if test "${enable_compat20+set}" = set; then | |
2980 | enableval="$enable_compat20" | |
2981 | ||
2982 | if test "$enableval" = yes; then | |
2983 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2984 | else | |
2985 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2986 | fi | |
2987 | ||
2988 | else | |
2989 | ||
2990 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2991 | if test "x$LINE" != x ; then | |
2992 | eval "DEFAULT_$LINE" | |
2993 | else | |
2994 | no_cache=1 | |
2995 | fi | |
2996 | ||
2997 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2998 | ||
2999 | fi | |
3000 | ||
3001 | ||
3002 | eval "$ac_cv_use_compat20" | |
3003 | if test "$no_cache" != 1; then | |
3004 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3005 | fi | |
3006 | ||
3007 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3008 | echo "$ac_t""yes" 1>&6 | |
3009 | else | |
3010 | echo "$ac_t""no" 1>&6 | |
3011 | fi | |
3012 | ||
3013 | ||
3014 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
d558c907 | 3015 | echo "configure:3016: checking for --enable-compat22" >&5 |
54276ccf VZ |
3016 | no_cache=0 |
3017 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3018 | if test "${enable_compat22+set}" = set; then | |
3019 | enableval="$enable_compat22" | |
3020 | ||
3021 | if test "$enableval" = yes; then | |
3022 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3023 | else | |
3024 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3025 | fi | |
3026 | ||
3027 | else | |
3028 | ||
3029 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3030 | if test "x$LINE" != x ; then | |
3031 | eval "DEFAULT_$LINE" | |
3032 | else | |
3033 | no_cache=1 | |
3034 | fi | |
3035 | ||
3036 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3037 | ||
3038 | fi | |
3039 | ||
3040 | ||
3041 | eval "$ac_cv_use_compat22" | |
3042 | if test "$no_cache" != 1; then | |
3043 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3044 | fi | |
3045 | ||
3046 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3047 | echo "$ac_t""yes" 1>&6 | |
3048 | else | |
3049 | echo "$ac_t""no" 1>&6 | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | ||
698dcdb6 VZ |
3054 | |
3055 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
d558c907 | 3056 | echo "configure:3057: checking for --enable-intl" >&5 |
10f2d63a VZ |
3057 | no_cache=0 |
3058 | # Check whether --enable-intl or --disable-intl was given. | |
3059 | if test "${enable_intl+set}" = set; then | |
3060 | enableval="$enable_intl" | |
698dcdb6 | 3061 | |
10f2d63a VZ |
3062 | if test "$enableval" = yes; then |
3063 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3064 | else | |
3065 | ac_cv_use_intl='wxUSE_INTL=no' | |
3066 | fi | |
698dcdb6 | 3067 | |
10f2d63a | 3068 | else |
698dcdb6 | 3069 | |
10f2d63a VZ |
3070 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3071 | if test "x$LINE" != x ; then | |
3072 | eval "DEFAULT_$LINE" | |
3073 | else | |
3074 | no_cache=1 | |
3075 | fi | |
3076 | ||
3077 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3078 | |
3079 | fi | |
10f2d63a VZ |
3080 | |
3081 | ||
3082 | eval "$ac_cv_use_intl" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3088 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3089 | else |
698dcdb6 | 3090 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3091 | fi |
698dcdb6 | 3092 | |
10f2d63a | 3093 | |
698dcdb6 | 3094 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
d558c907 | 3095 | echo "configure:3096: checking for --enable-config" >&5 |
10f2d63a VZ |
3096 | no_cache=0 |
3097 | # Check whether --enable-config or --disable-config was given. | |
3098 | if test "${enable_config+set}" = set; then | |
3099 | enableval="$enable_config" | |
698dcdb6 | 3100 | |
10f2d63a VZ |
3101 | if test "$enableval" = yes; then |
3102 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3103 | else | |
3104 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3105 | fi | |
698dcdb6 | 3106 | |
10f2d63a | 3107 | else |
698dcdb6 | 3108 | |
10f2d63a VZ |
3109 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3110 | if test "x$LINE" != x ; then | |
3111 | eval "DEFAULT_$LINE" | |
3112 | else | |
3113 | no_cache=1 | |
3114 | fi | |
3115 | ||
3116 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3117 | |
3118 | fi | |
10f2d63a VZ |
3119 | |
3120 | ||
3121 | eval "$ac_cv_use_config" | |
3122 | if test "$no_cache" != 1; then | |
3123 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3124 | fi | |
3125 | ||
3126 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3127 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3128 | else |
698dcdb6 | 3129 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3130 | fi |
698dcdb6 VZ |
3131 | |
3132 | ||
b12915c1 | 3133 | |
a1622950 | 3134 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
d558c907 | 3135 | echo "configure:3136: checking for --enable-protocols" >&5 |
a1622950 VZ |
3136 | no_cache=0 |
3137 | # Check whether --enable-protocols or --disable-protocols was given. | |
3138 | if test "${enable_protocols+set}" = set; then | |
3139 | enableval="$enable_protocols" | |
3140 | ||
3141 | if test "$enableval" = yes; then | |
3142 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3143 | else | |
3144 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3145 | fi | |
3146 | ||
3147 | else | |
3148 | ||
3149 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3150 | if test "x$LINE" != x ; then | |
3151 | eval "DEFAULT_$LINE" | |
3152 | else | |
3153 | no_cache=1 | |
3154 | fi | |
3155 | ||
3156 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3157 | ||
3158 | fi | |
3159 | ||
3160 | ||
3161 | eval "$ac_cv_use_protocols" | |
3162 | if test "$no_cache" != 1; then | |
3163 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3164 | fi | |
3165 | ||
3166 | if test "$wxUSE_PROTOCOL" = yes; then | |
3167 | echo "$ac_t""yes" 1>&6 | |
3168 | else | |
3169 | echo "$ac_t""no" 1>&6 | |
3170 | fi | |
3171 | ||
3172 | ||
3173 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
d558c907 | 3174 | echo "configure:3175: checking for --enable-ftp" >&5 |
a1622950 VZ |
3175 | no_cache=0 |
3176 | # Check whether --enable-ftp or --disable-ftp was given. | |
3177 | if test "${enable_ftp+set}" = set; then | |
3178 | enableval="$enable_ftp" | |
3179 | ||
3180 | if test "$enableval" = yes; then | |
3181 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3182 | else | |
3183 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | eval "$ac_cv_use_ftp" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3206 | echo "$ac_t""yes" 1>&6 | |
3207 | else | |
3208 | echo "$ac_t""no" 1>&6 | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
d558c907 | 3213 | echo "configure:3214: checking for --enable-http" >&5 |
a1622950 VZ |
3214 | no_cache=0 |
3215 | # Check whether --enable-http or --disable-http was given. | |
3216 | if test "${enable_http+set}" = set; then | |
3217 | enableval="$enable_http" | |
3218 | ||
3219 | if test "$enableval" = yes; then | |
3220 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3221 | else | |
3222 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3223 | fi | |
3224 | ||
3225 | else | |
3226 | ||
3227 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3228 | if test "x$LINE" != x ; then | |
3229 | eval "DEFAULT_$LINE" | |
3230 | else | |
3231 | no_cache=1 | |
3232 | fi | |
3233 | ||
3234 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3235 | ||
3236 | fi | |
3237 | ||
3238 | ||
3239 | eval "$ac_cv_use_http" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3245 | echo "$ac_t""yes" 1>&6 | |
3246 | else | |
3247 | echo "$ac_t""no" 1>&6 | |
3248 | fi | |
3249 | ||
3250 | ||
3251 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
d558c907 | 3252 | echo "configure:3253: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3253 | no_cache=0 |
3254 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3255 | if test "${enable_fileproto+set}" = set; then | |
3256 | enableval="$enable_fileproto" | |
3257 | ||
3258 | if test "$enableval" = yes; then | |
3259 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3260 | else | |
3261 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3262 | fi | |
3263 | ||
3264 | else | |
3265 | ||
3266 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3267 | if test "x$LINE" != x ; then | |
3268 | eval "DEFAULT_$LINE" | |
3269 | else | |
3270 | no_cache=1 | |
3271 | fi | |
3272 | ||
3273 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3274 | ||
3275 | fi | |
3276 | ||
3277 | ||
3278 | eval "$ac_cv_use_fileproto" | |
3279 | if test "$no_cache" != 1; then | |
3280 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3281 | fi | |
3282 | ||
3283 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3284 | echo "$ac_t""yes" 1>&6 | |
3285 | else | |
3286 | echo "$ac_t""no" 1>&6 | |
3287 | fi | |
3288 | ||
3289 | ||
698dcdb6 | 3290 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
d558c907 | 3291 | echo "configure:3292: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3292 | no_cache=0 |
3293 | # Check whether --enable-sockets or --disable-sockets was given. | |
3294 | if test "${enable_sockets+set}" = set; then | |
3295 | enableval="$enable_sockets" | |
698dcdb6 | 3296 | |
10f2d63a VZ |
3297 | if test "$enableval" = yes; then |
3298 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3299 | else | |
3300 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3301 | fi | |
698dcdb6 | 3302 | |
10f2d63a | 3303 | else |
698dcdb6 | 3304 | |
10f2d63a VZ |
3305 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3306 | if test "x$LINE" != x ; then | |
3307 | eval "DEFAULT_$LINE" | |
3308 | else | |
3309 | no_cache=1 | |
3310 | fi | |
3311 | ||
3312 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3313 | |
3314 | fi | |
10f2d63a VZ |
3315 | |
3316 | ||
3317 | eval "$ac_cv_use_sockets" | |
3318 | if test "$no_cache" != 1; then | |
3319 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3320 | fi | |
3321 | ||
3322 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3323 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3324 | else |
698dcdb6 | 3325 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3326 | fi |
698dcdb6 | 3327 | |
b12915c1 | 3328 | |
698dcdb6 VZ |
3329 | |
3330 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
d558c907 | 3331 | echo "configure:3332: checking for --enable-ipc" >&5 |
10f2d63a | 3332 | no_cache=0 |
eb4efbdc VZ |
3333 | # Check whether --enable-ipc or --disable-ipc was given. |
3334 | if test "${enable_ipc+set}" = set; then | |
3335 | enableval="$enable_ipc" | |
698dcdb6 | 3336 | |
10f2d63a | 3337 | if test "$enableval" = yes; then |
eb4efbdc | 3338 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3339 | else |
eb4efbdc | 3340 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3341 | fi |
698dcdb6 | 3342 | |
10f2d63a | 3343 | else |
698dcdb6 | 3344 | |
eb4efbdc | 3345 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3346 | if test "x$LINE" != x ; then |
3347 | eval "DEFAULT_$LINE" | |
3348 | else | |
3349 | no_cache=1 | |
3350 | fi | |
3351 | ||
eb4efbdc | 3352 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3353 | |
3354 | fi | |
10f2d63a VZ |
3355 | |
3356 | ||
eb4efbdc | 3357 | eval "$ac_cv_use_ipc" |
10f2d63a | 3358 | if test "$no_cache" != 1; then |
eb4efbdc | 3359 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3360 | fi |
3361 | ||
eb4efbdc | 3362 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3364 | else |
698dcdb6 | 3365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3366 | fi |
698dcdb6 VZ |
3367 | |
3368 | ||
eb4efbdc | 3369 | |
1e6feb95 | 3370 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
d558c907 | 3371 | echo "configure:3372: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3372 | no_cache=0 |
3373 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3374 | if test "${enable_cmdline+set}" = set; then | |
3375 | enableval="$enable_cmdline" | |
3376 | ||
3377 | if test "$enableval" = yes; then | |
3378 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3379 | else | |
3380 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3381 | fi | |
3382 | ||
3383 | else | |
3384 | ||
3385 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3386 | if test "x$LINE" != x ; then | |
3387 | eval "DEFAULT_$LINE" | |
3388 | else | |
3389 | no_cache=1 | |
3390 | fi | |
3391 | ||
3392 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
3397 | eval "$ac_cv_use_cmdline" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3403 | echo "$ac_t""yes" 1>&6 | |
3404 | else | |
3405 | echo "$ac_t""no" 1>&6 | |
3406 | fi | |
3407 | ||
3408 | ||
3409 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
d558c907 | 3410 | echo "configure:3411: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3411 | no_cache=0 |
3412 | # Check whether --enable-datetime or --disable-datetime was given. | |
3413 | if test "${enable_datetime+set}" = set; then | |
3414 | enableval="$enable_datetime" | |
3415 | ||
3416 | if test "$enableval" = yes; then | |
3417 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3418 | else | |
3419 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | ||
3436 | eval "$ac_cv_use_datetime" | |
3437 | if test "$no_cache" != 1; then | |
3438 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3439 | fi | |
3440 | ||
3441 | if test "$wxUSE_DATETIME" = yes; then | |
3442 | echo "$ac_t""yes" 1>&6 | |
3443 | else | |
3444 | echo "$ac_t""no" 1>&6 | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
d558c907 | 3449 | echo "configure:3450: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3450 | no_cache=0 |
3451 | # Check whether --enable-timedate or --disable-timedate was given. | |
3452 | if test "${enable_timedate+set}" = set; then | |
3453 | enableval="$enable_timedate" | |
3454 | ||
3455 | if test "$enableval" = yes; then | |
3456 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3457 | else | |
3458 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3459 | fi | |
3460 | ||
3461 | else | |
3462 | ||
3463 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3464 | if test "x$LINE" != x ; then | |
3465 | eval "DEFAULT_$LINE" | |
3466 | else | |
3467 | no_cache=1 | |
3468 | fi | |
3469 | ||
3470 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3471 | ||
3472 | fi | |
3473 | ||
3474 | ||
3475 | eval "$ac_cv_use_timedate" | |
3476 | if test "$no_cache" != 1; then | |
3477 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3478 | fi | |
3479 | ||
3480 | if test "$wxUSE_TIMEDATE" = yes; then | |
3481 | echo "$ac_t""yes" 1>&6 | |
3482 | else | |
3483 | echo "$ac_t""no" 1>&6 | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
d558c907 | 3488 | echo "configure:3489: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3489 | no_cache=0 |
3490 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3491 | if test "${enable_stopwatch+set}" = set; then | |
3492 | enableval="$enable_stopwatch" | |
3493 | ||
3494 | if test "$enableval" = yes; then | |
3495 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3496 | else | |
3497 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3498 | fi | |
3499 | ||
3500 | else | |
3501 | ||
3502 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3503 | if test "x$LINE" != x ; then | |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
3509 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3510 | ||
3511 | fi | |
3512 | ||
3513 | ||
3514 | eval "$ac_cv_use_stopwatch" | |
3515 | if test "$no_cache" != 1; then | |
3516 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3517 | fi | |
3518 | ||
3519 | if test "$wxUSE_STOPWATCH" = yes; then | |
3520 | echo "$ac_t""yes" 1>&6 | |
3521 | else | |
3522 | echo "$ac_t""no" 1>&6 | |
3523 | fi | |
3524 | ||
3525 | ||
698dcdb6 | 3526 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
d558c907 | 3527 | echo "configure:3528: checking for --enable-dialupman" >&5 |
10f2d63a | 3528 | no_cache=0 |
eb4efbdc VZ |
3529 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3530 | if test "${enable_dialupman+set}" = set; then | |
3531 | enableval="$enable_dialupman" | |
698dcdb6 | 3532 | |
10f2d63a | 3533 | if test "$enableval" = yes; then |
eb4efbdc | 3534 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3535 | else |
eb4efbdc | 3536 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3537 | fi |
698dcdb6 | 3538 | |
10f2d63a | 3539 | else |
698dcdb6 | 3540 | |
eb4efbdc | 3541 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3542 | if test "x$LINE" != x ; then |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
eb4efbdc | 3548 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3549 | |
3550 | fi | |
10f2d63a VZ |
3551 | |
3552 | ||
eb4efbdc | 3553 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3554 | if test "$no_cache" != 1; then |
eb4efbdc | 3555 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3556 | fi |
3557 | ||
eb4efbdc | 3558 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3559 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3560 | else |
698dcdb6 | 3561 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3562 | fi |
698dcdb6 | 3563 | |
10f2d63a | 3564 | |
698dcdb6 | 3565 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
d558c907 | 3566 | echo "configure:3567: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3567 | no_cache=0 |
3568 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3569 | if test "${enable_apple_ieee+set}" = set; then | |
3570 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3571 | |
10f2d63a VZ |
3572 | if test "$enableval" = yes; then |
3573 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3574 | else | |
3575 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3576 | fi | |
698dcdb6 | 3577 | |
10f2d63a | 3578 | else |
698dcdb6 | 3579 | |
10f2d63a VZ |
3580 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3581 | if test "x$LINE" != x ; then | |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
3587 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3588 | |
3589 | fi | |
10f2d63a VZ |
3590 | |
3591 | ||
3592 | eval "$ac_cv_use_apple_ieee" | |
3593 | if test "$no_cache" != 1; then | |
3594 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3595 | fi | |
3596 | ||
3597 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3598 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3599 | else |
698dcdb6 | 3600 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3601 | fi |
698dcdb6 | 3602 | |
10f2d63a | 3603 | |
1e6feb95 | 3604 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
d558c907 | 3605 | echo "configure:3606: checking for --enable-timer" >&5 |
10f2d63a | 3606 | no_cache=0 |
1e6feb95 VZ |
3607 | # Check whether --enable-timer or --disable-timer was given. |
3608 | if test "${enable_timer+set}" = set; then | |
3609 | enableval="$enable_timer" | |
698dcdb6 | 3610 | |
10f2d63a | 3611 | if test "$enableval" = yes; then |
1e6feb95 | 3612 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3613 | else |
1e6feb95 | 3614 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3615 | fi |
698dcdb6 | 3616 | |
10f2d63a | 3617 | else |
698dcdb6 | 3618 | |
1e6feb95 | 3619 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3620 | if test "x$LINE" != x ; then |
3621 | eval "DEFAULT_$LINE" | |
3622 | else | |
3623 | no_cache=1 | |
3624 | fi | |
3625 | ||
1e6feb95 | 3626 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3627 | |
3628 | fi | |
10f2d63a VZ |
3629 | |
3630 | ||
1e6feb95 | 3631 | eval "$ac_cv_use_timer" |
10f2d63a | 3632 | if test "$no_cache" != 1; then |
1e6feb95 | 3633 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3634 | fi |
3635 | ||
1e6feb95 | 3636 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3637 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3638 | else |
698dcdb6 | 3639 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3640 | fi |
698dcdb6 | 3641 | |
10f2d63a | 3642 | |
698dcdb6 | 3643 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
d558c907 | 3644 | echo "configure:3645: checking for --enable-wave" >&5 |
10f2d63a VZ |
3645 | no_cache=0 |
3646 | # Check whether --enable-wave or --disable-wave was given. | |
3647 | if test "${enable_wave+set}" = set; then | |
3648 | enableval="$enable_wave" | |
698dcdb6 | 3649 | |
10f2d63a VZ |
3650 | if test "$enableval" = yes; then |
3651 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3652 | else | |
3653 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3654 | fi | |
698dcdb6 | 3655 | |
10f2d63a | 3656 | else |
698dcdb6 | 3657 | |
10f2d63a VZ |
3658 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3659 | if test "x$LINE" != x ; then | |
3660 | eval "DEFAULT_$LINE" | |
3661 | else | |
3662 | no_cache=1 | |
3663 | fi | |
3664 | ||
3665 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3666 | |
3667 | fi | |
10f2d63a VZ |
3668 | |
3669 | ||
3670 | eval "$ac_cv_use_wave" | |
3671 | if test "$no_cache" != 1; then | |
3672 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3673 | fi | |
3674 | ||
3675 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3677 | else |
698dcdb6 | 3678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3679 | fi |
698dcdb6 | 3680 | |
10f2d63a | 3681 | |
698dcdb6 | 3682 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
d558c907 | 3683 | echo "configure:3684: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3684 | no_cache=0 |
3685 | # Check whether --enable-fraction or --disable-fraction was given. | |
3686 | if test "${enable_fraction+set}" = set; then | |
3687 | enableval="$enable_fraction" | |
698dcdb6 | 3688 | |
10f2d63a VZ |
3689 | if test "$enableval" = yes; then |
3690 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3691 | else | |
3692 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3693 | fi | |
698dcdb6 | 3694 | |
10f2d63a | 3695 | else |
698dcdb6 | 3696 | |
10f2d63a VZ |
3697 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3698 | if test "x$LINE" != x ; then | |
3699 | eval "DEFAULT_$LINE" | |
3700 | else | |
3701 | no_cache=1 | |
3702 | fi | |
3703 | ||
3704 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3705 | |
3706 | fi | |
10f2d63a VZ |
3707 | |
3708 | ||
3709 | eval "$ac_cv_use_fraction" | |
3710 | if test "$no_cache" != 1; then | |
3711 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3712 | fi | |
3713 | ||
3714 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3715 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3716 | else |
698dcdb6 | 3717 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3718 | fi |
698dcdb6 | 3719 | |
10f2d63a | 3720 | |
698dcdb6 | 3721 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
d558c907 | 3722 | echo "configure:3723: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3723 | no_cache=0 |
3724 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3725 | if test "${enable_dynlib+set}" = set; then | |
3726 | enableval="$enable_dynlib" | |
698dcdb6 | 3727 | |
10f2d63a VZ |
3728 | if test "$enableval" = yes; then |
3729 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3730 | else | |
3731 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3732 | fi | |
698dcdb6 | 3733 | |
10f2d63a | 3734 | else |
698dcdb6 | 3735 | |
10f2d63a VZ |
3736 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3737 | if test "x$LINE" != x ; then | |
3738 | eval "DEFAULT_$LINE" | |
3739 | else | |
3740 | no_cache=1 | |
3741 | fi | |
3742 | ||
3743 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3744 | |
3745 | fi | |
10f2d63a VZ |
3746 | |
3747 | ||
3748 | eval "$ac_cv_use_dynlib" | |
3749 | if test "$no_cache" != 1; then | |
3750 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3751 | fi | |
3752 | ||
3753 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3754 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3755 | else |
698dcdb6 | 3756 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3757 | fi |
698dcdb6 | 3758 | |
10f2d63a | 3759 | |
0b9ab0bd | 3760 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
d558c907 | 3761 | echo "configure:3762: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3762 | no_cache=0 |
3763 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3764 | if test "${enable_dynamicloader+set}" = set; then | |
3765 | enableval="$enable_dynamicloader" | |
3766 | ||
3767 | if test "$enableval" = yes; then | |
3768 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3769 | else | |
3770 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3771 | fi | |
3772 | ||
3773 | else | |
3774 | ||
3775 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3776 | if test "x$LINE" != x ; then | |
3777 | eval "DEFAULT_$LINE" | |
3778 | else | |
3779 | no_cache=1 | |
3780 | fi | |
3781 | ||
3782 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3783 | ||
3784 | fi | |
3785 | ||
3786 | ||
3787 | eval "$ac_cv_use_dynamicloader" | |
3788 | if test "$no_cache" != 1; then | |
3789 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3790 | fi | |
3791 | ||
3792 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3793 | echo "$ac_t""yes" 1>&6 | |
3794 | else | |
3795 | echo "$ac_t""no" 1>&6 | |
3796 | fi | |
3797 | ||
3798 | ||
698dcdb6 | 3799 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
d558c907 | 3800 | echo "configure:3801: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3801 | no_cache=0 |
3802 | # Check whether --enable-longlong or --disable-longlong was given. | |
3803 | if test "${enable_longlong+set}" = set; then | |
3804 | enableval="$enable_longlong" | |
698dcdb6 | 3805 | |
10f2d63a VZ |
3806 | if test "$enableval" = yes; then |
3807 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3808 | else | |
3809 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3810 | fi | |
698dcdb6 | 3811 | |
10f2d63a | 3812 | else |
698dcdb6 | 3813 | |
10f2d63a VZ |
3814 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3815 | if test "x$LINE" != x ; then | |
3816 | eval "DEFAULT_$LINE" | |
3817 | else | |
3818 | no_cache=1 | |
3819 | fi | |
3820 | ||
3821 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3822 | |
3823 | fi | |
10f2d63a VZ |
3824 | |
3825 | ||
3826 | eval "$ac_cv_use_longlong" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3832 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3833 | else |
698dcdb6 | 3834 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3835 | fi |
698dcdb6 | 3836 | |
10f2d63a | 3837 | |
698dcdb6 | 3838 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
d558c907 | 3839 | echo "configure:3840: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3840 | no_cache=0 |
3841 | # Check whether --enable-geometry or --disable-geometry was given. | |
3842 | if test "${enable_geometry+set}" = set; then | |
3843 | enableval="$enable_geometry" | |
698dcdb6 | 3844 | |
e8f65ba6 RR |
3845 | if test "$enableval" = yes; then |
3846 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3847 | else | |
3848 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3849 | fi | |
698dcdb6 | 3850 | |
e8f65ba6 | 3851 | else |
698dcdb6 | 3852 | |
e8f65ba6 RR |
3853 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3854 | if test "x$LINE" != x ; then | |
3855 | eval "DEFAULT_$LINE" | |
3856 | else | |
3857 | no_cache=1 | |
3858 | fi | |
3859 | ||
3860 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3861 | |
3862 | fi | |
e8f65ba6 RR |
3863 | |
3864 | ||
3865 | eval "$ac_cv_use_geometry" | |
3866 | if test "$no_cache" != 1; then | |
3867 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3868 | fi | |
3869 | ||
3870 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3871 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3872 | else |
698dcdb6 | 3873 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3874 | fi |
698dcdb6 | 3875 | |
e8f65ba6 | 3876 | |
698dcdb6 | 3877 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
d558c907 | 3878 | echo "configure:3879: checking for --enable-log" >&5 |
10f2d63a VZ |
3879 | no_cache=0 |
3880 | # Check whether --enable-log or --disable-log was given. | |
3881 | if test "${enable_log+set}" = set; then | |
3882 | enableval="$enable_log" | |
698dcdb6 | 3883 | |
10f2d63a VZ |
3884 | if test "$enableval" = yes; then |
3885 | ac_cv_use_log='wxUSE_LOG=yes' | |
3886 | else | |
3887 | ac_cv_use_log='wxUSE_LOG=no' | |
3888 | fi | |
698dcdb6 | 3889 | |
10f2d63a | 3890 | else |
698dcdb6 | 3891 | |
10f2d63a VZ |
3892 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3893 | if test "x$LINE" != x ; then | |
3894 | eval "DEFAULT_$LINE" | |
3895 | else | |
3896 | no_cache=1 | |
3897 | fi | |
3898 | ||
3899 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3900 | |
3901 | fi | |
10f2d63a VZ |
3902 | |
3903 | ||
3904 | eval "$ac_cv_use_log" | |
3905 | if test "$no_cache" != 1; then | |
3906 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3907 | fi | |
3908 | ||
3909 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3910 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3911 | else |
698dcdb6 | 3912 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3913 | fi |
698dcdb6 | 3914 | |
10f2d63a | 3915 | |
698dcdb6 | 3916 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
d558c907 | 3917 | echo "configure:3918: checking for --enable-streams" >&5 |
10f2d63a VZ |
3918 | no_cache=0 |
3919 | # Check whether --enable-streams or --disable-streams was given. | |
3920 | if test "${enable_streams+set}" = set; then | |
3921 | enableval="$enable_streams" | |
698dcdb6 | 3922 | |
10f2d63a VZ |
3923 | if test "$enableval" = yes; then |
3924 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3925 | else | |
3926 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3927 | fi | |
698dcdb6 | 3928 | |
10f2d63a | 3929 | else |
698dcdb6 | 3930 | |
10f2d63a VZ |
3931 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3932 | if test "x$LINE" != x ; then | |
3933 | eval "DEFAULT_$LINE" | |
3934 | else | |
3935 | no_cache=1 | |
3936 | fi | |
3937 | ||
3938 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3939 | |
3940 | fi | |
10f2d63a VZ |
3941 | |
3942 | ||
3943 | eval "$ac_cv_use_streams" | |
3944 | if test "$no_cache" != 1; then | |
3945 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3946 | fi | |
3947 | ||
3948 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3949 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3950 | else |
698dcdb6 | 3951 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3952 | fi |
698dcdb6 | 3953 | |
10f2d63a | 3954 | |
698dcdb6 | 3955 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
d558c907 | 3956 | echo "configure:3957: checking for --enable-file" >&5 |
10f2d63a VZ |
3957 | no_cache=0 |
3958 | # Check whether --enable-file or --disable-file was given. | |
3959 | if test "${enable_file+set}" = set; then | |
3960 | enableval="$enable_file" | |
698dcdb6 | 3961 | |
10f2d63a VZ |
3962 | if test "$enableval" = yes; then |
3963 | ac_cv_use_file='wxUSE_FILE=yes' | |
3964 | else | |
3965 | ac_cv_use_file='wxUSE_FILE=no' | |
3966 | fi | |
698dcdb6 | 3967 | |
10f2d63a | 3968 | else |
698dcdb6 | 3969 | |
10f2d63a VZ |
3970 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3971 | if test "x$LINE" != x ; then | |
3972 | eval "DEFAULT_$LINE" | |
3973 | else | |
3974 | no_cache=1 | |
3975 | fi | |
3976 | ||
3977 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3978 | |
3979 | fi | |
10f2d63a VZ |
3980 | |
3981 | ||
3982 | eval "$ac_cv_use_file" | |
3983 | if test "$no_cache" != 1; then | |
3984 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3985 | fi | |
3986 | ||
3987 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3988 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3989 | else |
698dcdb6 | 3990 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3991 | fi |
698dcdb6 | 3992 | |
10f2d63a | 3993 | |
1e6feb95 | 3994 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
d558c907 | 3995 | echo "configure:3996: checking for --enable-ffile" >&5 |
10f2d63a | 3996 | no_cache=0 |
1e6feb95 VZ |
3997 | # Check whether --enable-ffile or --disable-ffile was given. |
3998 | if test "${enable_ffile+set}" = set; then | |
3999 | enableval="$enable_ffile" | |
698dcdb6 | 4000 | |
10f2d63a | 4001 | if test "$enableval" = yes; then |
1e6feb95 | 4002 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4003 | else |
1e6feb95 | 4004 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4005 | fi |
698dcdb6 | 4006 | |
10f2d63a | 4007 | else |
698dcdb6 | 4008 | |
1e6feb95 | 4009 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4010 | if test "x$LINE" != x ; then |
4011 | eval "DEFAULT_$LINE" | |
4012 | else | |
4013 | no_cache=1 | |
4014 | fi | |
4015 | ||
1e6feb95 | 4016 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
4017 | |
4018 | fi | |
10f2d63a VZ |
4019 | |
4020 | ||
1e6feb95 | 4021 | eval "$ac_cv_use_ffile" |
10f2d63a | 4022 | if test "$no_cache" != 1; then |
1e6feb95 | 4023 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4024 | fi |
4025 | ||
1e6feb95 | 4026 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 4027 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4028 | else |
698dcdb6 | 4029 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4030 | fi |
698dcdb6 | 4031 | |
10f2d63a | 4032 | |
a3a584a7 | 4033 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
d558c907 | 4034 | echo "configure:4035: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4035 | no_cache=0 |
4036 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4037 | if test "${enable_textbuf+set}" = set; then | |
4038 | enableval="$enable_textbuf" | |
4039 | ||
4040 | if test "$enableval" = yes; then | |
4041 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4042 | else | |
4043 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4044 | fi | |
4045 | ||
4046 | else | |
4047 | ||
4048 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4049 | if test "x$LINE" != x ; then | |
4050 | eval "DEFAULT_$LINE" | |
4051 | else | |
4052 | no_cache=1 | |
4053 | fi | |
4054 | ||
4055 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4056 | ||
4057 | fi | |
4058 | ||
4059 | ||
4060 | eval "$ac_cv_use_textbuf" | |
4061 | if test "$no_cache" != 1; then | |
4062 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4063 | fi | |
4064 | ||
4065 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4066 | echo "$ac_t""yes" 1>&6 | |
4067 | else | |
4068 | echo "$ac_t""no" 1>&6 | |
4069 | fi | |
4070 | ||
4071 | ||
1e6feb95 | 4072 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
d558c907 | 4073 | echo "configure:4074: checking for --enable-textfile" >&5 |
10f2d63a | 4074 | no_cache=0 |
1e6feb95 VZ |
4075 | # Check whether --enable-textfile or --disable-textfile was given. |
4076 | if test "${enable_textfile+set}" = set; then | |
4077 | enableval="$enable_textfile" | |
698dcdb6 | 4078 | |
10f2d63a | 4079 | if test "$enableval" = yes; then |
1e6feb95 | 4080 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4081 | else |
1e6feb95 | 4082 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4083 | fi |
698dcdb6 | 4084 | |
10f2d63a | 4085 | else |
698dcdb6 | 4086 | |
1e6feb95 | 4087 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4088 | if test "x$LINE" != x ; then |
4089 | eval "DEFAULT_$LINE" | |
4090 | else | |
4091 | no_cache=1 | |
4092 | fi | |
4093 | ||
1e6feb95 | 4094 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4095 | |
4096 | fi | |
10f2d63a VZ |
4097 | |
4098 | ||
1e6feb95 | 4099 | eval "$ac_cv_use_textfile" |
10f2d63a | 4100 | if test "$no_cache" != 1; then |
1e6feb95 | 4101 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4102 | fi |
4103 | ||
1e6feb95 | 4104 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4105 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4106 | else |
698dcdb6 | 4107 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4108 | fi |
698dcdb6 | 4109 | |
10f2d63a | 4110 | |
1e6feb95 | 4111 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
d558c907 | 4112 | echo "configure:4113: checking for --enable-fontmap" >&5 |
10f2d63a | 4113 | no_cache=0 |
1e6feb95 VZ |
4114 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4115 | if test "${enable_fontmap+set}" = set; then | |
4116 | enableval="$enable_fontmap" | |
698dcdb6 | 4117 | |
10f2d63a | 4118 | if test "$enableval" = yes; then |
1e6feb95 | 4119 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4120 | else |
1e6feb95 | 4121 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4122 | fi |
698dcdb6 | 4123 | |
10f2d63a | 4124 | else |
698dcdb6 | 4125 | |
1e6feb95 | 4126 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4127 | if test "x$LINE" != x ; then |
4128 | eval "DEFAULT_$LINE" | |
4129 | else | |
4130 | no_cache=1 | |
4131 | fi | |
4132 | ||
1e6feb95 | 4133 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4134 | |
4135 | fi | |
10f2d63a VZ |
4136 | |
4137 | ||
1e6feb95 | 4138 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4139 | if test "$no_cache" != 1; then |
1e6feb95 | 4140 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4141 | fi |
4142 | ||
1e6feb95 | 4143 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4144 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4145 | else |
698dcdb6 | 4146 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4147 | fi |
698dcdb6 | 4148 | |
10f2d63a | 4149 | |
1e6feb95 | 4150 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
d558c907 | 4151 | echo "configure:4152: checking for --enable-unicode" >&5 |
10f2d63a | 4152 | no_cache=0 |
1e6feb95 VZ |
4153 | # Check whether --enable-unicode or --disable-unicode was given. |
4154 | if test "${enable_unicode+set}" = set; then | |
4155 | enableval="$enable_unicode" | |
4156 | ||
4157 | if test "$enableval" = yes; then | |
4158 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4159 | else | |
4160 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4161 | fi | |
4162 | ||
4163 | else | |
4164 | ||
4165 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4166 | if test "x$LINE" != x ; then | |
4167 | eval "DEFAULT_$LINE" | |
4168 | else | |
4169 | no_cache=1 | |
4170 | fi | |
4171 | ||
4172 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4173 | ||
4174 | fi | |
4175 | ||
4176 | ||
4177 | eval "$ac_cv_use_unicode" | |
4178 | if test "$no_cache" != 1; then | |
4179 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4180 | fi | |
4181 | ||
4182 | if test "$wxUSE_UNICODE" = yes; then | |
4183 | echo "$ac_t""yes" 1>&6 | |
4184 | else | |
4185 | echo "$ac_t""no" 1>&6 | |
4186 | fi | |
4187 | ||
4188 | ||
a72a4bfa | 4189 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
d558c907 | 4190 | echo "configure:4191: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4191 | no_cache=0 |
4192 | # Check whether --enable-mslu or --disable-mslu was given. | |
4193 | if test "${enable_mslu+set}" = set; then | |
4194 | enableval="$enable_mslu" | |
4195 | ||
4196 | if test "$enableval" = yes; then | |
4197 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4198 | else | |
4199 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4200 | fi | |
4201 | ||
4202 | else | |
4203 | ||
4204 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4205 | if test "x$LINE" != x ; then | |
4206 | eval "DEFAULT_$LINE" | |
4207 | else | |
4208 | no_cache=1 | |
4209 | fi | |
4210 | ||
4211 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4212 | ||
4213 | fi | |
4214 | ||
4215 | ||
4216 | eval "$ac_cv_use_mslu" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4222 | echo "$ac_t""yes" 1>&6 | |
4223 | else | |
4224 | echo "$ac_t""no" 1>&6 | |
4225 | fi | |
4226 | ||
4227 | ||
1e6feb95 | 4228 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
d558c907 | 4229 | echo "configure:4230: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4230 | no_cache=0 |
4231 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4232 | if test "${enable_wxprintfv+set}" = set; then | |
4233 | enableval="$enable_wxprintfv" | |
4234 | ||
4235 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4236 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4237 | else | |
4238 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4239 | fi | |
698dcdb6 | 4240 | |
10f2d63a | 4241 | else |
698dcdb6 | 4242 | |
10f2d63a VZ |
4243 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4244 | if test "x$LINE" != x ; then | |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
4250 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4251 | |
4252 | fi | |
10f2d63a VZ |
4253 | |
4254 | ||
4255 | eval "$ac_cv_use_wxprintfv" | |
4256 | if test "$no_cache" != 1; then | |
4257 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4258 | fi | |
4259 | ||
4260 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4262 | else |
698dcdb6 | 4263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4264 | fi |
698dcdb6 | 4265 | |
10f2d63a | 4266 | |
698dcdb6 | 4267 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
d558c907 | 4268 | echo "configure:4269: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4269 | no_cache=0 |
4270 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4271 | if test "${enable_std_iostreams+set}" = set; then | |
4272 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4273 | |
10f2d63a VZ |
4274 | if test "$enableval" = yes; then |
4275 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4276 | else | |
4277 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4278 | fi | |
698dcdb6 | 4279 | |
10f2d63a | 4280 | else |
698dcdb6 | 4281 | |
10f2d63a VZ |
4282 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4283 | if test "x$LINE" != x ; then | |
4284 | eval "DEFAULT_$LINE" | |
4285 | else | |
4286 | no_cache=1 | |
4287 | fi | |
4288 | ||
4289 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4290 | |
4291 | fi | |
10f2d63a VZ |
4292 | |
4293 | ||
4294 | eval "$ac_cv_use_std_iostreams" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4300 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4301 | else |
698dcdb6 | 4302 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4303 | fi |
698dcdb6 | 4304 | |
10f2d63a | 4305 | |
698dcdb6 | 4306 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
d558c907 | 4307 | echo "configure:4308: checking for --enable-filesystem" >&5 |
24528b0c VS |
4308 | no_cache=0 |
4309 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4310 | if test "${enable_filesystem+set}" = set; then | |
4311 | enableval="$enable_filesystem" | |
698dcdb6 | 4312 | |
24528b0c VS |
4313 | if test "$enableval" = yes; then |
4314 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4315 | else | |
4316 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4317 | fi | |
698dcdb6 | 4318 | |
24528b0c | 4319 | else |
698dcdb6 | 4320 | |
24528b0c VS |
4321 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4322 | if test "x$LINE" != x ; then | |
4323 | eval "DEFAULT_$LINE" | |
4324 | else | |
4325 | no_cache=1 | |
4326 | fi | |
4327 | ||
4328 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4329 | |
4330 | fi | |
24528b0c VS |
4331 | |
4332 | ||
4333 | eval "$ac_cv_use_filesystem" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4339 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4340 | else |
698dcdb6 | 4341 | echo "$ac_t""no" 1>&6 |
24528b0c | 4342 | fi |
698dcdb6 | 4343 | |
24528b0c | 4344 | |
698dcdb6 | 4345 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
d558c907 | 4346 | echo "configure:4347: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4347 | no_cache=0 |
4348 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4349 | if test "${enable_fs_inet+set}" = set; then | |
4350 | enableval="$enable_fs_inet" | |
698dcdb6 | 4351 | |
10f2d63a VZ |
4352 | if test "$enableval" = yes; then |
4353 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4354 | else | |
4355 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4356 | fi | |
698dcdb6 | 4357 | |
10f2d63a | 4358 | else |
698dcdb6 | 4359 | |
10f2d63a VZ |
4360 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4361 | if test "x$LINE" != x ; then | |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
4367 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4368 | |
4369 | fi | |
10f2d63a VZ |
4370 | |
4371 | ||
4372 | eval "$ac_cv_use_fs_inet" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4378 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4379 | else |
698dcdb6 | 4380 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4381 | fi |
698dcdb6 | 4382 | |
10f2d63a | 4383 | |
698dcdb6 | 4384 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
d558c907 | 4385 | echo "configure:4386: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4386 | no_cache=0 |
4387 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4388 | if test "${enable_fs_zip+set}" = set; then | |
4389 | enableval="$enable_fs_zip" | |
698dcdb6 | 4390 | |
10f2d63a VZ |
4391 | if test "$enableval" = yes; then |
4392 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4393 | else | |
4394 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4395 | fi | |
698dcdb6 | 4396 | |
10f2d63a | 4397 | else |
698dcdb6 | 4398 | |
10f2d63a VZ |
4399 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4400 | if test "x$LINE" != x ; then | |
4401 | eval "DEFAULT_$LINE" | |
4402 | else | |
4403 | no_cache=1 | |
4404 | fi | |
4405 | ||
4406 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4407 | |
4408 | fi | |
10f2d63a VZ |
4409 | |
4410 | ||
4411 | eval "$ac_cv_use_fs_zip" | |
4412 | if test "$no_cache" != 1; then | |
4413 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4414 | fi | |
4415 | ||
4416 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4417 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4418 | else |
698dcdb6 | 4419 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4420 | fi |
698dcdb6 | 4421 | |
10f2d63a | 4422 | |
698dcdb6 | 4423 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
d558c907 | 4424 | echo "configure:4425: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4425 | no_cache=0 |
4426 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4427 | if test "${enable_zipstream+set}" = set; then | |
4428 | enableval="$enable_zipstream" | |
698dcdb6 | 4429 | |
10f2d63a VZ |
4430 | if test "$enableval" = yes; then |
4431 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4432 | else | |
4433 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4434 | fi | |
698dcdb6 | 4435 | |
10f2d63a | 4436 | else |
698dcdb6 | 4437 | |
10f2d63a VZ |
4438 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4439 | if test "x$LINE" != x ; then | |
4440 | eval "DEFAULT_$LINE" | |
4441 | else | |
4442 | no_cache=1 | |
4443 | fi | |
4444 | ||
4445 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4446 | |
4447 | fi | |
10f2d63a VZ |
4448 | |
4449 | ||
4450 | eval "$ac_cv_use_zipstream" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4456 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4457 | else |
698dcdb6 | 4458 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4459 | fi |
698dcdb6 | 4460 | |
10f2d63a | 4461 | |
698dcdb6 VZ |
4462 | |
4463 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
d558c907 | 4464 | echo "configure:4465: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4465 | no_cache=0 |
4466 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4467 | if test "${enable_catch_segvs+set}" = set; then | |
4468 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4469 | |
eb4efbdc VZ |
4470 | if test "$enableval" = yes; then |
4471 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4472 | else | |
4473 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4474 | fi | |
698dcdb6 | 4475 | |
eb4efbdc | 4476 | else |
698dcdb6 | 4477 | |
eb4efbdc VZ |
4478 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4479 | if test "x$LINE" != x ; then | |
4480 | eval "DEFAULT_$LINE" | |
4481 | else | |
4482 | no_cache=1 | |
4483 | fi | |
4484 | ||
4485 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4486 | |
4487 | fi | |
eb4efbdc VZ |
4488 | |
4489 | ||
4490 | eval "$ac_cv_use_catch_segvs" | |
4491 | if test "$no_cache" != 1; then | |
4492 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4493 | fi | |
4494 | ||
4495 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4496 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4497 | else |
698dcdb6 | 4498 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4499 | fi |
698dcdb6 | 4500 | |
eb4efbdc | 4501 | |
698dcdb6 | 4502 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
d558c907 | 4503 | echo "configure:4504: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4504 | no_cache=0 |
4505 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4506 | if test "${enable_snglinst+set}" = set; then | |
4507 | enableval="$enable_snglinst" | |
698dcdb6 | 4508 | |
4f3c5f06 VZ |
4509 | if test "$enableval" = yes; then |
4510 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4511 | else | |
4512 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4513 | fi | |
698dcdb6 | 4514 | |
4f3c5f06 | 4515 | else |
698dcdb6 | 4516 | |
4f3c5f06 VZ |
4517 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4518 | if test "x$LINE" != x ; then | |
4519 | eval "DEFAULT_$LINE" | |
4520 | else | |
4521 | no_cache=1 | |
4522 | fi | |
4523 | ||
4524 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4525 | |
4526 | fi | |
4f3c5f06 VZ |
4527 | |
4528 | ||
4529 | eval "$ac_cv_use_snglinst" | |
4530 | if test "$no_cache" != 1; then | |
4531 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4532 | fi | |
4533 | ||
4534 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4535 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4536 | else |
698dcdb6 | 4537 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4538 | fi |
698dcdb6 VZ |
4539 | |
4540 | ||
eb4efbdc | 4541 | |
1e6feb95 | 4542 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
d558c907 | 4543 | echo "configure:4544: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4544 | no_cache=0 |
4545 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4546 | if test "${enable_mimetype+set}" = set; then | |
4547 | enableval="$enable_mimetype" | |
4548 | ||
4549 | if test "$enableval" = yes; then | |
4550 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4551 | else | |
4552 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ||
4557 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4558 | if test "x$LINE" != x ; then | |
4559 | eval "DEFAULT_$LINE" | |
4560 | else | |
4561 | no_cache=1 | |
4562 | fi | |
4563 | ||
4564 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4565 | ||
4566 | fi | |
4567 | ||
4568 | ||
4569 | eval "$ac_cv_use_mimetype" | |
4570 | if test "$no_cache" != 1; then | |
4571 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4572 | fi | |
4573 | ||
4574 | if test "$wxUSE_MIMETYPE" = yes; then | |
4575 | echo "$ac_t""yes" 1>&6 | |
4576 | else | |
4577 | echo "$ac_t""no" 1>&6 | |
4578 | fi | |
4579 | ||
4580 | ||
3e44f09d | 4581 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
d558c907 | 4582 | echo "configure:4583: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4583 | no_cache=0 |
4584 | # Check whether --enable-system_options or --disable-system_options was given. | |
4585 | if test "${enable_system_options+set}" = set; then | |
4586 | enableval="$enable_system_options" | |
4587 | ||
4588 | if test "$enableval" = yes; then | |
4589 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4590 | else | |
4591 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4592 | fi | |
4593 | ||
4594 | else | |
4595 | ||
4596 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4597 | if test "x$LINE" != x ; then | |
4598 | eval "DEFAULT_$LINE" | |
4599 | else | |
4600 | no_cache=1 | |
4601 | fi | |
4602 | ||
4603 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4604 | ||
4605 | fi | |
4606 | ||
4607 | ||
4608 | eval "$ac_cv_use_system_options" | |
4609 | if test "$no_cache" != 1; then | |
4610 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4611 | fi | |
4612 | ||
4613 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4614 | echo "$ac_t""yes" 1>&6 | |
4615 | else | |
4616 | echo "$ac_t""no" 1>&6 | |
4617 | fi | |
4618 | ||
4619 | ||
1e6feb95 | 4620 | |
4cdb0ab0 | 4621 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
d558c907 | 4622 | echo "configure:4623: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4623 | no_cache=0 |
4624 | # Check whether --enable-url or --disable-url was given. | |
4625 | if test "${enable_url+set}" = set; then | |
4626 | enableval="$enable_url" | |
4627 | ||
4628 | if test "$enableval" = yes; then | |
4629 | ac_cv_use_url='wxUSE_URL=yes' | |
4630 | else | |
4631 | ac_cv_use_url='wxUSE_URL=no' | |
4632 | fi | |
4633 | ||
4634 | else | |
4635 | ||
4636 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4637 | if test "x$LINE" != x ; then | |
4638 | eval "DEFAULT_$LINE" | |
4639 | else | |
4640 | no_cache=1 | |
4641 | fi | |
4642 | ||
4643 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4644 | ||
4645 | fi | |
4646 | ||
4647 | ||
4648 | eval "$ac_cv_use_url" | |
4649 | if test "$no_cache" != 1; then | |
4650 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4651 | fi | |
4652 | ||
4653 | if test "$wxUSE_URL" = yes; then | |
4654 | echo "$ac_t""yes" 1>&6 | |
4655 | else | |
4656 | echo "$ac_t""no" 1>&6 | |
4657 | fi | |
4658 | ||
4659 | ||
4660 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
d558c907 | 4661 | echo "configure:4662: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4662 | no_cache=0 |
4663 | # Check whether --enable-protocol or --disable-protocol was given. | |
4664 | if test "${enable_protocol+set}" = set; then | |
4665 | enableval="$enable_protocol" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4669 | else | |
4670 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4676 | if test "x$LINE" != x ; then | |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
4682 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4683 | ||
4684 | fi | |
4685 | ||
4686 | ||
4687 | eval "$ac_cv_use_protocol" | |
4688 | if test "$no_cache" != 1; then | |
4689 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4690 | fi | |
4691 | ||
4692 | if test "$wxUSE_PROTOCOL" = yes; then | |
4693 | echo "$ac_t""yes" 1>&6 | |
4694 | else | |
4695 | echo "$ac_t""no" 1>&6 | |
4696 | fi | |
4697 | ||
4698 | ||
4699 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
d558c907 | 4700 | echo "configure:4701: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4701 | no_cache=0 |
4702 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4703 | if test "${enable_protocol_http+set}" = set; then | |
4704 | enableval="$enable_protocol_http" | |
4705 | ||
4706 | if test "$enableval" = yes; then | |
4707 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4708 | else | |
4709 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4710 | fi | |
4711 | ||
4712 | else | |
4713 | ||
4714 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4715 | if test "x$LINE" != x ; then | |
4716 | eval "DEFAULT_$LINE" | |
4717 | else | |
4718 | no_cache=1 | |
4719 | fi | |
4720 | ||
4721 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4722 | ||
4723 | fi | |
4724 | ||
4725 | ||
4726 | eval "$ac_cv_use_protocol_http" | |
4727 | if test "$no_cache" != 1; then | |
4728 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4729 | fi | |
4730 | ||
4731 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4732 | echo "$ac_t""yes" 1>&6 | |
4733 | else | |
4734 | echo "$ac_t""no" 1>&6 | |
4735 | fi | |
4736 | ||
4737 | ||
4738 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
d558c907 | 4739 | echo "configure:4740: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4740 | no_cache=0 |
4741 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4742 | if test "${enable_protocol_ftp+set}" = set; then | |
4743 | enableval="$enable_protocol_ftp" | |
4744 | ||
4745 | if test "$enableval" = yes; then | |
4746 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4747 | else | |
4748 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4749 | fi | |
4750 | ||
4751 | else | |
4752 | ||
4753 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4761 | ||
4762 | fi | |
4763 | ||
4764 | ||
4765 | eval "$ac_cv_use_protocol_ftp" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4771 | echo "$ac_t""yes" 1>&6 | |
4772 | else | |
4773 | echo "$ac_t""no" 1>&6 | |
4774 | fi | |
4775 | ||
4776 | ||
4777 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
d558c907 | 4778 | echo "configure:4779: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4779 | no_cache=0 |
4780 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4781 | if test "${enable_protocol_file+set}" = set; then | |
4782 | enableval="$enable_protocol_file" | |
4783 | ||
4784 | if test "$enableval" = yes; then | |
4785 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4786 | else | |
4787 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4788 | fi | |
4789 | ||
4790 | else | |
4791 | ||
4792 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4793 | if test "x$LINE" != x ; then | |
4794 | eval "DEFAULT_$LINE" | |
4795 | else | |
4796 | no_cache=1 | |
4797 | fi | |
4798 | ||
4799 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4800 | ||
4801 | fi | |
4802 | ||
4803 | ||
4804 | eval "$ac_cv_use_protocol_file" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4810 | echo "$ac_t""yes" 1>&6 | |
4811 | else | |
4812 | echo "$ac_t""no" 1>&6 | |
4813 | fi | |
4814 | ||
4815 | ||
4816 | ||
4817 | ||
698dcdb6 VZ |
4818 | |
4819 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
d558c907 | 4820 | echo "configure:4821: checking for --enable-threads" >&5 |
10f2d63a VZ |
4821 | no_cache=0 |
4822 | # Check whether --enable-threads or --disable-threads was given. | |
4823 | if test "${enable_threads+set}" = set; then | |
4824 | enableval="$enable_threads" | |
698dcdb6 | 4825 | |
10f2d63a VZ |
4826 | if test "$enableval" = yes; then |
4827 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4828 | else | |
4829 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4830 | fi | |
698dcdb6 | 4831 | |
10f2d63a | 4832 | else |
698dcdb6 | 4833 | |
10f2d63a VZ |
4834 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4842 | |
4843 | fi | |
10f2d63a VZ |
4844 | |
4845 | ||
4846 | eval "$ac_cv_use_threads" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4853 | else |
698dcdb6 | 4854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4855 | fi |
698dcdb6 | 4856 | |
10f2d63a | 4857 | |
b12915c1 VZ |
4858 | if test "$wxUSE_GUI" = "yes"; then |
4859 | ||
698dcdb6 VZ |
4860 | |
4861 | ||
4862 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
d558c907 | 4863 | echo "configure:4864: checking for --enable-docview" >&5 |
10f2d63a VZ |
4864 | no_cache=0 |
4865 | # Check whether --enable-docview or --disable-docview was given. | |
4866 | if test "${enable_docview+set}" = set; then | |
4867 | enableval="$enable_docview" | |
698dcdb6 | 4868 | |
10f2d63a VZ |
4869 | if test "$enableval" = yes; then |
4870 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4871 | else | |
4872 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4873 | fi | |
698dcdb6 | 4874 | |
10f2d63a | 4875 | else |
698dcdb6 | 4876 | |
10f2d63a VZ |
4877 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4878 | if test "x$LINE" != x ; then | |
4879 | eval "DEFAULT_$LINE" | |
4880 | else | |
4881 | no_cache=1 | |
4882 | fi | |
4883 | ||
4884 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4885 | |
4886 | fi | |
10f2d63a VZ |
4887 | |
4888 | ||
4889 | eval "$ac_cv_use_docview" | |
4890 | if test "$no_cache" != 1; then | |
4891 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4892 | fi | |
4893 | ||
4894 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4896 | else |
698dcdb6 | 4897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4898 | fi |
698dcdb6 | 4899 | |
10f2d63a | 4900 | |
698dcdb6 | 4901 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
d558c907 | 4902 | echo "configure:4903: checking for --enable-help" >&5 |
10f2d63a VZ |
4903 | no_cache=0 |
4904 | # Check whether --enable-help or --disable-help was given. | |
4905 | if test "${enable_help+set}" = set; then | |
4906 | enableval="$enable_help" | |
698dcdb6 | 4907 | |
10f2d63a VZ |
4908 | if test "$enableval" = yes; then |
4909 | ac_cv_use_help='wxUSE_HELP=yes' | |
4910 | else | |
4911 | ac_cv_use_help='wxUSE_HELP=no' | |
4912 | fi | |
698dcdb6 | 4913 | |
10f2d63a | 4914 | else |
698dcdb6 | 4915 | |
10f2d63a VZ |
4916 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4924 | |
4925 | fi | |
10f2d63a VZ |
4926 | |
4927 | ||
4928 | eval "$ac_cv_use_help" | |
4929 | if test "$no_cache" != 1; then | |
4930 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4931 | fi | |
4932 | ||
4933 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4934 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4935 | else |
698dcdb6 | 4936 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4937 | fi |
698dcdb6 | 4938 | |
10f2d63a | 4939 | |
29fd3c0c | 4940 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
d558c907 | 4941 | echo "configure:4942: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4942 | no_cache=0 |
4943 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4944 | if test "${enable_mshtmlhelp+set}" = set; then | |
4945 | enableval="$enable_mshtmlhelp" | |
4946 | ||
4947 | if test "$enableval" = yes; then | |
4948 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4949 | else | |
4950 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4951 | fi | |
4952 | ||
4953 | else | |
4954 | ||
4955 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4956 | if test "x$LINE" != x ; then | |
4957 | eval "DEFAULT_$LINE" | |
4958 | else | |
4959 | no_cache=1 | |
4960 | fi | |
4961 | ||
4962 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4963 | ||
4964 | fi | |
4965 | ||
4966 | ||
4967 | eval "$ac_cv_use_mshtmlhelp" | |
4968 | if test "$no_cache" != 1; then | |
4969 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4970 | fi | |
4971 | ||
4972 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4973 | echo "$ac_t""yes" 1>&6 | |
4974 | else | |
4975 | echo "$ac_t""no" 1>&6 | |
4976 | fi | |
4977 | ||
4978 | ||
3379ed37 | 4979 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
d558c907 | 4980 | echo "configure:4981: checking for --enable-html" >&5 |
3379ed37 VZ |
4981 | no_cache=0 |
4982 | # Check whether --enable-html or --disable-html was given. | |
4983 | if test "${enable_html+set}" = set; then | |
4984 | enableval="$enable_html" | |
4985 | ||
4986 | if test "$enableval" = yes; then | |
4987 | ac_cv_use_html='wxUSE_HTML=yes' | |
4988 | else | |
4989 | ac_cv_use_html='wxUSE_HTML=no' | |
4990 | fi | |
4991 | ||
4992 | else | |
4993 | ||
4994 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | else | |
4998 | no_cache=1 | |
4999 | fi | |
5000 | ||
5001 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5002 | ||
5003 | fi | |
5004 | ||
5005 | ||
5006 | eval "$ac_cv_use_html" | |
5007 | if test "$no_cache" != 1; then | |
5008 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5009 | fi | |
5010 | ||
5011 | if test "$wxUSE_HTML" = yes; then | |
5012 | echo "$ac_t""yes" 1>&6 | |
5013 | else | |
5014 | echo "$ac_t""no" 1>&6 | |
5015 | fi | |
5016 | ||
5017 | ||
5018 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
d558c907 | 5019 | echo "configure:5020: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5020 | no_cache=0 |
5021 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5022 | if test "${enable_htmlhelp+set}" = set; then | |
5023 | enableval="$enable_htmlhelp" | |
5024 | ||
5025 | if test "$enableval" = yes; then | |
5026 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5027 | else | |
5028 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5029 | fi | |
5030 | ||
5031 | else | |
5032 | ||
5033 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5034 | if test "x$LINE" != x ; then | |
5035 | eval "DEFAULT_$LINE" | |
5036 | else | |
5037 | no_cache=1 | |
5038 | fi | |
5039 | ||
5040 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5041 | ||
5042 | fi | |
5043 | ||
5044 | ||
5045 | eval "$ac_cv_use_htmlhelp" | |
5046 | if test "$no_cache" != 1; then | |
5047 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5048 | fi | |
5049 | ||
5050 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5051 | echo "$ac_t""yes" 1>&6 | |
5052 | else | |
5053 | echo "$ac_t""no" 1>&6 | |
5054 | fi | |
5055 | ||
5056 | ||
698dcdb6 | 5057 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
d558c907 | 5058 | echo "configure:5059: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5059 | no_cache=0 |
5060 | # Check whether --enable-constraints or --disable-constraints was given. | |
5061 | if test "${enable_constraints+set}" = set; then | |
5062 | enableval="$enable_constraints" | |
698dcdb6 | 5063 | |
10f2d63a VZ |
5064 | if test "$enableval" = yes; then |
5065 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5066 | else | |
5067 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5068 | fi | |
698dcdb6 | 5069 | |
10f2d63a | 5070 | else |
698dcdb6 | 5071 | |
10f2d63a VZ |
5072 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5073 | if test "x$LINE" != x ; then | |
5074 | eval "DEFAULT_$LINE" | |
5075 | else | |
5076 | no_cache=1 | |
5077 | fi | |
5078 | ||
5079 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5080 | |
5081 | fi | |
10f2d63a VZ |
5082 | |
5083 | ||
5084 | eval "$ac_cv_use_constraints" | |
5085 | if test "$no_cache" != 1; then | |
5086 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5087 | fi | |
5088 | ||
5089 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5090 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5091 | else |
698dcdb6 | 5092 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5093 | fi |
698dcdb6 | 5094 | |
10f2d63a | 5095 | |
698dcdb6 | 5096 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
d558c907 | 5097 | echo "configure:5098: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5098 | no_cache=0 |
5099 | # Check whether --enable-printarch or --disable-printarch was given. | |
5100 | if test "${enable_printarch+set}" = set; then | |
5101 | enableval="$enable_printarch" | |
698dcdb6 | 5102 | |
10f2d63a VZ |
5103 | if test "$enableval" = yes; then |
5104 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5105 | else | |
5106 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5107 | fi | |
698dcdb6 | 5108 | |
10f2d63a | 5109 | else |
698dcdb6 | 5110 | |
10f2d63a VZ |
5111 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5112 | if test "x$LINE" != x ; then | |
5113 | eval "DEFAULT_$LINE" | |
5114 | else | |
5115 | no_cache=1 | |
5116 | fi | |
5117 | ||
5118 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5119 | |
5120 | fi | |
10f2d63a VZ |
5121 | |
5122 | ||
5123 | eval "$ac_cv_use_printarch" | |
5124 | if test "$no_cache" != 1; then | |
5125 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5126 | fi | |
5127 | ||
5128 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5129 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5130 | else |
698dcdb6 | 5131 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5132 | fi |
698dcdb6 | 5133 | |
10f2d63a | 5134 | |
698dcdb6 | 5135 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
d558c907 | 5136 | echo "configure:5137: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5137 | no_cache=0 |
5138 | # Check whether --enable-mdi or --disable-mdi was given. | |
5139 | if test "${enable_mdi+set}" = set; then | |
5140 | enableval="$enable_mdi" | |
698dcdb6 | 5141 | |
10f2d63a VZ |
5142 | if test "$enableval" = yes; then |
5143 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5144 | else | |
5145 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5146 | fi | |
698dcdb6 | 5147 | |
10f2d63a | 5148 | else |
698dcdb6 | 5149 | |
10f2d63a VZ |
5150 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5151 | if test "x$LINE" != x ; then | |
5152 | eval "DEFAULT_$LINE" | |
5153 | else | |
5154 | no_cache=1 | |
5155 | fi | |
5156 | ||
5157 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5158 | |
5159 | fi | |
10f2d63a VZ |
5160 | |
5161 | ||
5162 | eval "$ac_cv_use_mdi" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5169 | else |
698dcdb6 | 5170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5171 | fi |
698dcdb6 VZ |
5172 | |
5173 | ||
1e6feb95 | 5174 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
d558c907 | 5175 | echo "configure:5176: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5176 | no_cache=0 |
5177 | # Check whether --enable-loggui or --disable-loggui was given. | |
5178 | if test "${enable_loggui+set}" = set; then | |
5179 | enableval="$enable_loggui" | |
5180 | ||
5181 | if test "$enableval" = yes; then | |
5182 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5183 | else | |
5184 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5185 | fi | |
5186 | ||
5187 | else | |
5188 | ||
5189 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5190 | if test "x$LINE" != x ; then | |
5191 | eval "DEFAULT_$LINE" | |
5192 | else | |
5193 | no_cache=1 | |
5194 | fi | |
5195 | ||
5196 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5197 | ||
5198 | fi | |
5199 | ||
5200 | ||
5201 | eval "$ac_cv_use_loggui" | |
5202 | if test "$no_cache" != 1; then | |
5203 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5204 | fi | |
5205 | ||
5206 | if test "$wxUSE_LOGGUI" = yes; then | |
5207 | echo "$ac_t""yes" 1>&6 | |
5208 | else | |
5209 | echo "$ac_t""no" 1>&6 | |
5210 | fi | |
5211 | ||
5212 | ||
5213 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
d558c907 | 5214 | echo "configure:5215: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5215 | no_cache=0 |
5216 | # Check whether --enable-logwin or --disable-logwin was given. | |
5217 | if test "${enable_logwin+set}" = set; then | |
5218 | enableval="$enable_logwin" | |
5219 | ||
5220 | if test "$enableval" = yes; then | |
5221 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5222 | else | |
5223 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5224 | fi | |
5225 | ||
5226 | else | |
5227 | ||
5228 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5229 | if test "x$LINE" != x ; then | |
5230 | eval "DEFAULT_$LINE" | |
5231 | else | |
5232 | no_cache=1 | |
5233 | fi | |
5234 | ||
5235 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5236 | ||
5237 | fi | |
5238 | ||
5239 | ||
5240 | eval "$ac_cv_use_logwin" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5246 | echo "$ac_t""yes" 1>&6 | |
5247 | else | |
5248 | echo "$ac_t""no" 1>&6 | |
5249 | fi | |
5250 | ||
5251 | ||
69d27ff7 | 5252 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
d558c907 | 5253 | echo "configure:5254: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5254 | no_cache=0 |
5255 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5256 | if test "${enable_logdialog+set}" = set; then | |
5257 | enableval="$enable_logdialog" | |
5258 | ||
5259 | if test "$enableval" = yes; then | |
5260 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5261 | else | |
5262 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5263 | fi | |
5264 | ||
5265 | else | |
5266 | ||
5267 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5268 | if test "x$LINE" != x ; then | |
5269 | eval "DEFAULT_$LINE" | |
5270 | else | |
5271 | no_cache=1 | |
5272 | fi | |
5273 | ||
5274 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5275 | ||
5276 | fi | |
5277 | ||
5278 | ||
5279 | eval "$ac_cv_use_logdialog" | |
5280 | if test "$no_cache" != 1; then | |
5281 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5282 | fi | |
5283 | ||
5284 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5285 | echo "$ac_t""yes" 1>&6 | |
5286 | else | |
5287 | echo "$ac_t""no" 1>&6 | |
5288 | fi | |
5289 | ||
5290 | ||
10f2d63a | 5291 | |
698dcdb6 | 5292 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
d558c907 | 5293 | echo "configure:5294: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5294 | no_cache=0 |
5295 | # Check whether --enable-postscript or --disable-postscript was given. | |
5296 | if test "${enable_postscript+set}" = set; then | |
5297 | enableval="$enable_postscript" | |
698dcdb6 | 5298 | |
10f2d63a VZ |
5299 | if test "$enableval" = yes; then |
5300 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5301 | else | |
5302 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5303 | fi | |
698dcdb6 | 5304 | |
10f2d63a | 5305 | else |
698dcdb6 | 5306 | |
10f2d63a VZ |
5307 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5315 | |
5316 | fi | |
10f2d63a VZ |
5317 | |
5318 | ||
5319 | eval "$ac_cv_use_postscript" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5326 | else |
698dcdb6 | 5327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5328 | fi |
698dcdb6 VZ |
5329 | |
5330 | ||
5331 | ||
10f2d63a | 5332 | |
1e6feb95 | 5333 | |
698dcdb6 | 5334 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
d558c907 | 5335 | echo "configure:5336: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5336 | no_cache=0 |
5337 | # Check whether --enable-prologio or --disable-prologio was given. | |
5338 | if test "${enable_prologio+set}" = set; then | |
5339 | enableval="$enable_prologio" | |
698dcdb6 | 5340 | |
10f2d63a VZ |
5341 | if test "$enableval" = yes; then |
5342 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5343 | else | |
5344 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5345 | fi | |
698dcdb6 | 5346 | |
10f2d63a | 5347 | else |
698dcdb6 | 5348 | |
10f2d63a VZ |
5349 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5357 | |
5358 | fi | |
10f2d63a VZ |
5359 | |
5360 | ||
5361 | eval "$ac_cv_use_prologio" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5367 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5368 | else |
698dcdb6 | 5369 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5370 | fi |
698dcdb6 | 5371 | |
10f2d63a | 5372 | |
698dcdb6 | 5373 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
d558c907 | 5374 | echo "configure:5375: checking for --enable-resources" >&5 |
10f2d63a VZ |
5375 | no_cache=0 |
5376 | # Check whether --enable-resources or --disable-resources was given. | |
5377 | if test "${enable_resources+set}" = set; then | |
5378 | enableval="$enable_resources" | |
698dcdb6 | 5379 | |
10f2d63a VZ |
5380 | if test "$enableval" = yes; then |
5381 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5382 | else | |
5383 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5384 | fi | |
698dcdb6 | 5385 | |
10f2d63a | 5386 | else |
698dcdb6 | 5387 | |
10f2d63a VZ |
5388 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5396 | |
5397 | fi | |
10f2d63a VZ |
5398 | |
5399 | ||
5400 | eval "$ac_cv_use_resources" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5406 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5407 | else |
698dcdb6 | 5408 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5409 | fi |
698dcdb6 | 5410 | |
10f2d63a | 5411 | |
698dcdb6 VZ |
5412 | |
5413 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
d558c907 | 5414 | echo "configure:5415: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5415 | no_cache=0 |
5416 | # Check whether --enable-xresources or --disable-xresources was given. | |
5417 | if test "${enable_xresources+set}" = set; then | |
5418 | enableval="$enable_xresources" | |
698dcdb6 | 5419 | |
10f2d63a VZ |
5420 | if test "$enableval" = yes; then |
5421 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5422 | else | |
5423 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5424 | fi | |
698dcdb6 | 5425 | |
10f2d63a | 5426 | else |
698dcdb6 | 5427 | |
10f2d63a VZ |
5428 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5429 | if test "x$LINE" != x ; then | |
5430 | eval "DEFAULT_$LINE" | |
5431 | else | |
5432 | no_cache=1 | |
5433 | fi | |
5434 | ||
5435 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5436 | |
5437 | fi | |
10f2d63a VZ |
5438 | |
5439 | ||
5440 | eval "$ac_cv_use_xresources" | |
5441 | if test "$no_cache" != 1; then | |
5442 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5443 | fi | |
5444 | ||
5445 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5446 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5447 | else |
698dcdb6 | 5448 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5449 | fi |
698dcdb6 VZ |
5450 | |
5451 | ||
10f2d63a | 5452 | |
698dcdb6 VZ |
5453 | |
5454 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
d558c907 | 5455 | echo "configure:5456: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5456 | no_cache=0 |
5457 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5458 | if test "${enable_clipboard+set}" = set; then | |
5459 | enableval="$enable_clipboard" | |
698dcdb6 | 5460 | |
10f2d63a VZ |
5461 | if test "$enableval" = yes; then |
5462 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5463 | else | |
5464 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5465 | fi | |
698dcdb6 | 5466 | |
10f2d63a | 5467 | else |
698dcdb6 | 5468 | |
10f2d63a VZ |
5469 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5470 | if test "x$LINE" != x ; then | |
5471 | eval "DEFAULT_$LINE" | |
5472 | else | |
5473 | no_cache=1 | |
5474 | fi | |
5475 | ||
5476 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5477 | |
5478 | fi | |
10f2d63a VZ |
5479 | |
5480 | ||
5481 | eval "$ac_cv_use_clipboard" | |
5482 | if test "$no_cache" != 1; then | |
5483 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5484 | fi | |
5485 | ||
5486 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5488 | else |
698dcdb6 | 5489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5490 | fi |
698dcdb6 | 5491 | |
10f2d63a | 5492 | |
698dcdb6 | 5493 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
d558c907 | 5494 | echo "configure:5495: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5495 | no_cache=0 |
5496 | # Check whether --enable-dnd or --disable-dnd was given. | |
5497 | if test "${enable_dnd+set}" = set; then | |
5498 | enableval="$enable_dnd" | |
698dcdb6 | 5499 | |
10f2d63a VZ |
5500 | if test "$enableval" = yes; then |
5501 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5502 | else | |
5503 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5504 | fi | |
698dcdb6 | 5505 | |
10f2d63a | 5506 | else |
698dcdb6 | 5507 | |
10f2d63a VZ |
5508 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5509 | if test "x$LINE" != x ; then | |
5510 | eval "DEFAULT_$LINE" | |
5511 | else | |
5512 | no_cache=1 | |
5513 | fi | |
5514 | ||
5515 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5516 | |
5517 | fi | |
10f2d63a VZ |
5518 | |
5519 | ||
5520 | eval "$ac_cv_use_dnd" | |
5521 | if test "$no_cache" != 1; then | |
5522 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5523 | fi | |
5524 | ||
5525 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5527 | else |
698dcdb6 | 5528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5529 | fi |
698dcdb6 | 5530 | |
10f2d63a | 5531 | |
698dcdb6 | 5532 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d558c907 | 5533 | echo "configure:5534: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5534 | no_cache=0 |
5535 | # Check whether --enable-metafile or --disable-metafile was given. | |
5536 | if test "${enable_metafile+set}" = set; then | |
5537 | enableval="$enable_metafile" | |
698dcdb6 | 5538 | |
b64f0a5f RL |
5539 | if test "$enableval" = yes; then |
5540 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5541 | else | |
5542 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5543 | fi | |
698dcdb6 | 5544 | |
b64f0a5f | 5545 | else |
698dcdb6 | 5546 | |
b64f0a5f RL |
5547 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5548 | if test "x$LINE" != x ; then | |
5549 | eval "DEFAULT_$LINE" | |
5550 | else | |
5551 | no_cache=1 | |
5552 | fi | |
5553 | ||
5554 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5555 | |
5556 | fi | |
b64f0a5f RL |
5557 | |
5558 | ||
5559 | eval "$ac_cv_use_metafile" | |
5560 | if test "$no_cache" != 1; then | |
5561 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5562 | fi | |
5563 | ||
5564 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5565 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5566 | else |
698dcdb6 | 5567 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5568 | fi |
698dcdb6 VZ |
5569 | |
5570 | ||
10f2d63a | 5571 | |
24176f2c | 5572 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
d558c907 | 5573 | echo "configure:5574: checking for --enable-treelayout" >&5 |
10f2d63a | 5574 | no_cache=0 |
24176f2c GD |
5575 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5576 | if test "${enable_treelayout+set}" = set; then | |
5577 | enableval="$enable_treelayout" | |
698dcdb6 | 5578 | |
10f2d63a | 5579 | if test "$enableval" = yes; then |
24176f2c | 5580 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5581 | else |
24176f2c | 5582 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5583 | fi |
698dcdb6 | 5584 | |
10f2d63a | 5585 | else |
698dcdb6 | 5586 | |
24176f2c | 5587 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5588 | if test "x$LINE" != x ; then |
5589 | eval "DEFAULT_$LINE" | |
5590 | else | |
5591 | no_cache=1 | |
5592 | fi | |
5593 | ||
24176f2c | 5594 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5595 | |
5596 | fi | |
10f2d63a VZ |
5597 | |
5598 | ||
24176f2c | 5599 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5600 | if test "$no_cache" != 1; then |
24176f2c | 5601 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5602 | fi |
5603 | ||
24176f2c | 5604 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5606 | else |
698dcdb6 | 5607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5608 | fi |
698dcdb6 | 5609 | |
10f2d63a | 5610 | |
698dcdb6 VZ |
5611 | |
5612 | ||
5613 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
d558c907 | 5614 | echo "configure:5615: checking for --enable-controls" >&5 |
10f2d63a VZ |
5615 | no_cache=0 |
5616 | # Check whether --enable-controls or --disable-controls was given. | |
5617 | if test "${enable_controls+set}" = set; then | |
5618 | enableval="$enable_controls" | |
698dcdb6 | 5619 | |
10f2d63a VZ |
5620 | if test "$enableval" = yes; then |
5621 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5622 | else | |
5623 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5624 | fi | |
698dcdb6 | 5625 | |
10f2d63a | 5626 | else |
698dcdb6 | 5627 | |
10f2d63a VZ |
5628 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5629 | if test "x$LINE" != x ; then | |
5630 | eval "DEFAULT_$LINE" | |
5631 | else | |
5632 | no_cache=1 | |
5633 | fi | |
5634 | ||
5635 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5636 | |
5637 | fi | |
10f2d63a VZ |
5638 | |
5639 | ||
5640 | eval "$ac_cv_use_controls" | |
5641 | if test "$no_cache" != 1; then | |
5642 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5643 | fi | |
5644 | ||
5645 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5647 | else |
698dcdb6 | 5648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5649 | fi |
698dcdb6 | 5650 | |
10f2d63a VZ |
5651 | |
5652 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5653 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5654 | DEFAULT_wxUSE_BMPBUTTON=yes |
5655 | DEFAULT_wxUSE_BUTTON=yes | |
5656 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5657 | DEFAULT_wxUSE_CARET=yes |
5658 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5659 | DEFAULT_wxUSE_CHECKBOX=yes |
5660 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5661 | DEFAULT_wxUSE_CHOICE=yes | |
5662 | DEFAULT_wxUSE_GAUGE=yes | |
5663 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5664 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5665 | DEFAULT_wxUSE_IMAGLIST=yes |
5666 | DEFAULT_wxUSE_LISTBOX=yes | |
5667 | DEFAULT_wxUSE_LISTCTRL=yes | |
5668 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5669 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5670 | DEFAULT_wxUSE_RADIOBOX=yes |
5671 | DEFAULT_wxUSE_RADIOBTN=yes | |
5672 | DEFAULT_wxUSE_SASH=yes | |
5673 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5674 | DEFAULT_wxUSE_SLIDER=yes | |
5675 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5676 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5677 | DEFAULT_wxUSE_SPLITTER=yes |
5678 | DEFAULT_wxUSE_STATBMP=yes | |
5679 | DEFAULT_wxUSE_STATBOX=yes | |
5680 | DEFAULT_wxUSE_STATLINE=yes | |
5681 | DEFAULT_wxUSE_STATUSBAR=yes | |
5682 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5683 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5684 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5685 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5686 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5687 | DEFAULT_wxUSE_TOOLTIPS=yes |
5688 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5689 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5690 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5691 | elif test "$wxUSE_CONTROLS" = "no"; then |
5692 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5693 | DEFAULT_wxUSE_BMPBUTTON=no |
5694 | DEFAULT_wxUSE_BUTTON=no | |
5695 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5696 | DEFAULT_wxUSE_CARET=no |
5697 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5698 | DEFAULT_wxUSE_CHECKBOX=no |
5699 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5700 | DEFAULT_wxUSE_CHOICE=no | |
5701 | DEFAULT_wxUSE_GAUGE=no | |
5702 | DEFAULT_wxUSE_GRID=no | |
5703 | DEFAULT_wxUSE_NEW_GRID=no | |
5704 | DEFAULT_wxUSE_IMAGLIST=no | |
5705 | DEFAULT_wxUSE_LISTBOX=no | |
5706 | DEFAULT_wxUSE_LISTCTRL=no | |
5707 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5708 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5709 | DEFAULT_wxUSE_RADIOBOX=no |
5710 | DEFAULT_wxUSE_RADIOBTN=no | |
5711 | DEFAULT_wxUSE_SASH=no | |
5712 | DEFAULT_wxUSE_SCROLLBAR=no | |
5713 | DEFAULT_wxUSE_SLIDER=no | |
5714 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5715 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5716 | DEFAULT_wxUSE_SPLITTER=no |
5717 | DEFAULT_wxUSE_STATBMP=no | |
5718 | DEFAULT_wxUSE_STATBOX=no | |
5719 | DEFAULT_wxUSE_STATLINE=no | |
5720 | DEFAULT_wxUSE_STATUSBAR=no | |
5721 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5722 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5723 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5724 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5725 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5726 | DEFAULT_wxUSE_TOOLTIPS=no |
5727 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5728 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5729 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5730 | fi |
5731 | ||
698dcdb6 VZ |
5732 | |
5733 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
d558c907 | 5734 | echo "configure:5735: checking for --enable-accel" >&5 |
10f2d63a VZ |
5735 | no_cache=0 |
5736 | # Check whether --enable-accel or --disable-accel was given. | |
5737 | if test "${enable_accel+set}" = set; then | |
5738 | enableval="$enable_accel" | |
698dcdb6 | 5739 | |
10f2d63a VZ |
5740 | if test "$enableval" = yes; then |
5741 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5742 | else | |
5743 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5744 | fi | |
698dcdb6 | 5745 | |
10f2d63a | 5746 | else |
698dcdb6 | 5747 | |
10f2d63a VZ |
5748 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5756 | |
5757 | fi | |
10f2d63a VZ |
5758 | |
5759 | ||
5760 | eval "$ac_cv_use_accel" | |
5761 | if test "$no_cache" != 1; then | |
5762 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5763 | fi | |
5764 | ||
5765 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5767 | else |
698dcdb6 | 5768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5769 | fi |
698dcdb6 | 5770 | |
10f2d63a | 5771 | |
1e6feb95 | 5772 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
d558c907 | 5773 | echo "configure:5774: checking for --enable-button" >&5 |
10f2d63a | 5774 | no_cache=0 |
1e6feb95 VZ |
5775 | # Check whether --enable-button or --disable-button was given. |
5776 | if test "${enable_button+set}" = set; then | |
5777 | enableval="$enable_button" | |
698dcdb6 | 5778 | |
10f2d63a | 5779 | if test "$enableval" = yes; then |
1e6feb95 | 5780 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5781 | else |
1e6feb95 | 5782 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5783 | fi |
698dcdb6 | 5784 | |
10f2d63a | 5785 | else |
698dcdb6 | 5786 | |
1e6feb95 | 5787 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5788 | if test "x$LINE" != x ; then |
5789 | eval "DEFAULT_$LINE" | |
5790 | else | |
5791 | no_cache=1 | |
5792 | fi | |
5793 | ||
1e6feb95 | 5794 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5795 | |
5796 | fi | |
10f2d63a VZ |
5797 | |
5798 | ||
1e6feb95 | 5799 | eval "$ac_cv_use_button" |
10f2d63a | 5800 | if test "$no_cache" != 1; then |
1e6feb95 | 5801 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5802 | fi |
5803 | ||
1e6feb95 | 5804 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5805 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5806 | else |
698dcdb6 | 5807 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5808 | fi |
698dcdb6 | 5809 | |
10f2d63a | 5810 | |
698dcdb6 | 5811 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
d558c907 | 5812 | echo "configure:5813: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5813 | no_cache=0 |
5814 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5815 | if test "${enable_bmpbutton+set}" = set; then | |
5816 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5817 | |
10f2d63a VZ |
5818 | if test "$enableval" = yes; then |
5819 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5820 | else | |
5821 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5822 | fi | |
698dcdb6 | 5823 | |
10f2d63a | 5824 | else |
698dcdb6 | 5825 | |
10f2d63a VZ |
5826 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5827 | if test "x$LINE" != x ; then | |
5828 | eval "DEFAULT_$LINE" | |
5829 | else | |
5830 | no_cache=1 | |
5831 | fi | |
5832 | ||
5833 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5834 | |
5835 | fi | |
10f2d63a VZ |
5836 | |
5837 | ||
5838 | eval "$ac_cv_use_bmpbutton" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5845 | else |
698dcdb6 | 5846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5847 | fi |
698dcdb6 | 5848 | |
10f2d63a | 5849 | |
1e6feb95 | 5850 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
d558c907 | 5851 | echo "configure:5852: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5852 | no_cache=0 |
5853 | # Check whether --enable-calendar or --disable-calendar was given. | |
5854 | if test "${enable_calendar+set}" = set; then | |
5855 | enableval="$enable_calendar" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5859 | else | |
5860 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5873 | ||
5874 | fi | |
5875 | ||
5876 | ||
5877 | eval "$ac_cv_use_calendar" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_CALCTRL" = yes; then | |
5883 | echo "$ac_t""yes" 1>&6 | |
5884 | else | |
5885 | echo "$ac_t""no" 1>&6 | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
d558c907 | 5890 | echo "configure:5891: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-caret or --disable-caret was given. | |
5893 | if test "${enable_caret+set}" = set; then | |
5894 | enableval="$enable_caret" | |
5895 | ||
5896 | if test "$enableval" = yes; then | |
5897 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5898 | else | |
5899 | ac_cv_use_caret='wxUSE_CARET=no' | |
5900 | fi | |
5901 | ||
5902 | else | |
5903 | ||
5904 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5912 | ||
5913 | fi | |
5914 | ||
5915 | ||
5916 | eval "$ac_cv_use_caret" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_CARET" = yes; then | |
5922 | echo "$ac_t""yes" 1>&6 | |
5923 | else | |
5924 | echo "$ac_t""no" 1>&6 | |
5925 | fi | |
5926 | ||
5927 | ||
698dcdb6 | 5928 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
d558c907 | 5929 | echo "configure:5930: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5930 | no_cache=0 |
5931 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5932 | if test "${enable_checkbox+set}" = set; then | |
5933 | enableval="$enable_checkbox" | |
698dcdb6 | 5934 | |
10f2d63a VZ |
5935 | if test "$enableval" = yes; then |
5936 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5937 | else | |
5938 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5939 | fi | |
698dcdb6 | 5940 | |
10f2d63a | 5941 | else |
698dcdb6 | 5942 | |
10f2d63a VZ |
5943 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5944 | if test "x$LINE" != x ; then | |
5945 | eval "DEFAULT_$LINE" | |
5946 | else | |
5947 | no_cache=1 | |
5948 | fi | |
5949 | ||
5950 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5951 | |
5952 | fi | |
10f2d63a VZ |
5953 | |
5954 | ||
5955 | eval "$ac_cv_use_checkbox" | |
5956 | if test "$no_cache" != 1; then | |
5957 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5958 | fi | |
5959 | ||
5960 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5962 | else |
698dcdb6 | 5963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5964 | fi |
698dcdb6 | 5965 | |
10f2d63a | 5966 | |
698dcdb6 | 5967 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
d558c907 | 5968 | echo "configure:5969: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5969 | no_cache=0 |
5970 | # Check whether --enable-checklst or --disable-checklst was given. | |
5971 | if test "${enable_checklst+set}" = set; then | |
5972 | enableval="$enable_checklst" | |
698dcdb6 | 5973 | |
10f2d63a VZ |
5974 | if test "$enableval" = yes; then |
5975 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5976 | else | |
5977 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5978 | fi | |
698dcdb6 | 5979 | |
10f2d63a | 5980 | else |
698dcdb6 | 5981 | |
10f2d63a VZ |
5982 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5990 | |
5991 | fi | |
10f2d63a VZ |
5992 | |
5993 | ||
5994 | eval "$ac_cv_use_checklst" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 6000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6001 | else |
698dcdb6 | 6002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6003 | fi |
698dcdb6 | 6004 | |
10f2d63a | 6005 | |
698dcdb6 | 6006 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
d558c907 | 6007 | echo "configure:6008: checking for --enable-choice" >&5 |
10f2d63a VZ |
6008 | no_cache=0 |
6009 | # Check whether --enable-choice or --disable-choice was given. | |
6010 | if test "${enable_choice+set}" = set; then | |
6011 | enableval="$enable_choice" | |
698dcdb6 | 6012 | |
10f2d63a VZ |
6013 | if test "$enableval" = yes; then |
6014 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6015 | else | |
6016 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6017 | fi | |
698dcdb6 | 6018 | |
10f2d63a | 6019 | else |
698dcdb6 | 6020 | |
10f2d63a VZ |
6021 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6022 | if test "x$LINE" != x ; then | |
6023 | eval "DEFAULT_$LINE" | |
6024 | else | |
6025 | no_cache=1 | |
6026 | fi | |
6027 | ||
6028 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
6029 | |
6030 | fi | |
10f2d63a VZ |
6031 | |
6032 | ||
6033 | eval "$ac_cv_use_choice" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 6039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6040 | else |
698dcdb6 | 6041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6042 | fi |
698dcdb6 | 6043 | |
10f2d63a | 6044 | |
698dcdb6 | 6045 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
d558c907 | 6046 | echo "configure:6047: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6047 | no_cache=0 |
6048 | # Check whether --enable-combobox or --disable-combobox was given. | |
6049 | if test "${enable_combobox+set}" = set; then | |
6050 | enableval="$enable_combobox" | |
698dcdb6 | 6051 | |
10f2d63a VZ |
6052 | if test "$enableval" = yes; then |
6053 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6054 | else | |
6055 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6056 | fi | |
698dcdb6 | 6057 | |
10f2d63a | 6058 | else |
698dcdb6 | 6059 | |
10f2d63a VZ |
6060 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6068 | |
6069 | fi | |
10f2d63a VZ |
6070 | |
6071 | ||
6072 | eval "$ac_cv_use_combobox" | |
6073 | if test "$no_cache" != 1; then | |
6074 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6075 | fi | |
6076 | ||
6077 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6078 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6079 | else |
698dcdb6 | 6080 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6081 | fi |
698dcdb6 | 6082 | |
10f2d63a | 6083 | |
698dcdb6 | 6084 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
d558c907 | 6085 | echo "configure:6086: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6086 | no_cache=0 |
6087 | # Check whether --enable-gauge or --disable-gauge was given. | |
6088 | if test "${enable_gauge+set}" = set; then | |
6089 | enableval="$enable_gauge" | |
698dcdb6 | 6090 | |
10f2d63a VZ |
6091 | if test "$enableval" = yes; then |
6092 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6093 | else | |
6094 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6095 | fi | |
698dcdb6 | 6096 | |
10f2d63a | 6097 | else |
698dcdb6 | 6098 | |
10f2d63a VZ |
6099 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6100 | if test "x$LINE" != x ; then | |
6101 | eval "DEFAULT_$LINE" | |
6102 | else | |
6103 | no_cache=1 | |
6104 | fi | |
6105 | ||
6106 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6107 | |
6108 | fi | |
10f2d63a VZ |
6109 | |
6110 | ||
6111 | eval "$ac_cv_use_gauge" | |
6112 | if test "$no_cache" != 1; then | |
6113 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6114 | fi | |
6115 | ||
6116 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6117 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6118 | else |
698dcdb6 | 6119 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6120 | fi |
698dcdb6 | 6121 | |
10f2d63a | 6122 | |
698dcdb6 | 6123 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
d558c907 | 6124 | echo "configure:6125: checking for --enable-grid" >&5 |
10f2d63a VZ |
6125 | no_cache=0 |
6126 | # Check whether --enable-grid or --disable-grid was given. | |
6127 | if test "${enable_grid+set}" = set; then | |
6128 | enableval="$enable_grid" | |
698dcdb6 | 6129 | |
10f2d63a VZ |
6130 | if test "$enableval" = yes; then |
6131 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6132 | else | |
6133 | ac_cv_use_grid='wxUSE_GRID=no' | |
6134 | fi | |
698dcdb6 | 6135 | |
10f2d63a | 6136 | else |
698dcdb6 | 6137 | |
10f2d63a VZ |
6138 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6139 | if test "x$LINE" != x ; then | |
6140 | eval "DEFAULT_$LINE" | |
6141 | else | |
6142 | no_cache=1 | |
6143 | fi | |
6144 | ||
6145 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6146 | |
6147 | fi | |
10f2d63a VZ |
6148 | |
6149 | ||
6150 | eval "$ac_cv_use_grid" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6157 | else |
698dcdb6 | 6158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6159 | fi |
698dcdb6 | 6160 | |
10f2d63a | 6161 | |
698dcdb6 | 6162 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
d558c907 | 6163 | echo "configure:6164: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6164 | no_cache=0 |
6165 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6166 | if test "${enable_newgrid+set}" = set; then | |
6167 | enableval="$enable_newgrid" | |
698dcdb6 | 6168 | |
10f2d63a VZ |
6169 | if test "$enableval" = yes; then |
6170 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6171 | else | |
6172 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6173 | fi | |
698dcdb6 | 6174 | |
10f2d63a | 6175 | else |
698dcdb6 | 6176 | |
10f2d63a VZ |
6177 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6178 | if test "x$LINE" != x ; then | |
6179 | eval "DEFAULT_$LINE" | |
6180 | else | |
6181 | no_cache=1 | |
6182 | fi | |
6183 | ||
6184 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6185 | |
6186 | fi | |
10f2d63a VZ |
6187 | |
6188 | ||
6189 | eval "$ac_cv_use_newgrid" | |
6190 | if test "$no_cache" != 1; then | |
6191 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6192 | fi | |
6193 | ||
6194 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6196 | else |
698dcdb6 | 6197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6198 | fi |
698dcdb6 | 6199 | |
10f2d63a | 6200 | |
698dcdb6 | 6201 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
d558c907 | 6202 | echo "configure:6203: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6203 | no_cache=0 |
6204 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6205 | if test "${enable_imaglist+set}" = set; then | |
6206 | enableval="$enable_imaglist" | |
698dcdb6 | 6207 | |
10f2d63a VZ |
6208 | if test "$enableval" = yes; then |
6209 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6210 | else | |
6211 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6212 | fi | |
698dcdb6 | 6213 | |
10f2d63a | 6214 | else |
698dcdb6 | 6215 | |
10f2d63a VZ |
6216 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6217 | if test "x$LINE" != x ; then | |
6218 | eval "DEFAULT_$LINE" | |
6219 | else | |
6220 | no_cache=1 | |
6221 | fi | |
6222 | ||
6223 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6224 | |
6225 | fi | |
10f2d63a VZ |
6226 | |
6227 | ||
6228 | eval "$ac_cv_use_imaglist" | |
6229 | if test "$no_cache" != 1; then | |
6230 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6231 | fi | |
6232 | ||
6233 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6234 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6235 | else |
698dcdb6 | 6236 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6237 | fi |
698dcdb6 | 6238 | |
10f2d63a | 6239 | |
698dcdb6 | 6240 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
d558c907 | 6241 | echo "configure:6242: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6242 | no_cache=0 |
6243 | # Check whether --enable-listbox or --disable-listbox was given. | |
6244 | if test "${enable_listbox+set}" = set; then | |
6245 | enableval="$enable_listbox" | |
698dcdb6 | 6246 | |
10f2d63a VZ |
6247 | if test "$enableval" = yes; then |
6248 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6249 | else | |
6250 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6251 | fi | |
698dcdb6 | 6252 | |
10f2d63a | 6253 | else |
698dcdb6 | 6254 | |
10f2d63a VZ |
6255 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6256 | if test "x$LINE" != x ; then | |
6257 | eval "DEFAULT_$LINE" | |
6258 | else | |
6259 | no_cache=1 | |
6260 | fi | |
6261 | ||
6262 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6263 | |
6264 | fi | |
10f2d63a VZ |
6265 | |
6266 | ||
6267 | eval "$ac_cv_use_listbox" | |
6268 | if test "$no_cache" != 1; then | |
6269 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6270 | fi | |
6271 | ||
6272 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6273 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6274 | else |
698dcdb6 | 6275 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6276 | fi |
698dcdb6 | 6277 | |
10f2d63a | 6278 | |
698dcdb6 | 6279 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
d558c907 | 6280 | echo "configure:6281: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6281 | no_cache=0 |
6282 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6283 | if test "${enable_listctrl+set}" = set; then | |
6284 | enableval="$enable_listctrl" | |
698dcdb6 | 6285 | |
10f2d63a VZ |
6286 | if test "$enableval" = yes; then |
6287 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6288 | else | |
6289 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6290 | fi | |
698dcdb6 | 6291 | |
10f2d63a | 6292 | else |
698dcdb6 | 6293 | |
10f2d63a VZ |
6294 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6302 | |
6303 | fi | |
10f2d63a VZ |
6304 | |
6305 | ||
6306 | eval "$ac_cv_use_listctrl" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6313 | else |
698dcdb6 | 6314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6315 | fi |
698dcdb6 | 6316 | |
10f2d63a | 6317 | |
698dcdb6 | 6318 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
d558c907 | 6319 | echo "configure:6320: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6320 | no_cache=0 |
6321 | # Check whether --enable-notebook or --disable-notebook was given. | |
6322 | if test "${enable_notebook+set}" = set; then | |
6323 | enableval="$enable_notebook" | |
698dcdb6 | 6324 | |
10f2d63a VZ |
6325 | if test "$enableval" = yes; then |
6326 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6327 | else | |
6328 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6329 | fi | |
698dcdb6 | 6330 | |
10f2d63a | 6331 | else |
698dcdb6 | 6332 | |
10f2d63a VZ |
6333 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6341 | |
6342 | fi | |
10f2d63a VZ |
6343 | |
6344 | ||
6345 | eval "$ac_cv_use_notebook" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6352 | else |
698dcdb6 | 6353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6354 | fi |
698dcdb6 | 6355 | |
10f2d63a | 6356 | |
24176f2c | 6357 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
d558c907 | 6358 | echo "configure:6359: checking for --enable-propsheet" >&5 |
24176f2c GD |
6359 | no_cache=0 |
6360 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6361 | if test "${enable_propsheet+set}" = set; then | |
6362 | enableval="$enable_propsheet" | |
6363 | ||
6364 | if test "$enableval" = yes; then | |
6365 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6366 | else | |
6367 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6368 | fi | |
6369 | ||
6370 | else | |
6371 | ||
6372 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6373 | if test "x$LINE" != x ; then | |
6374 | eval "DEFAULT_$LINE" | |
6375 | else | |
6376 | no_cache=1 | |
6377 | fi | |
6378 | ||
6379 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6380 | ||
6381 | fi | |
6382 | ||
6383 | ||
6384 | eval "$ac_cv_use_propsheet" | |
6385 | if test "$no_cache" != 1; then | |
6386 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6387 | fi | |
6388 | ||
6389 | if test "$wxUSE_PROPSHEET" = yes; then | |
6390 | echo "$ac_t""yes" 1>&6 | |
6391 | else | |
6392 | echo "$ac_t""no" 1>&6 | |
6393 | fi | |
6394 | ||
6395 | ||
698dcdb6 | 6396 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
d558c907 | 6397 | echo "configure:6398: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6398 | no_cache=0 |
6399 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6400 | if test "${enable_radiobox+set}" = set; then | |
6401 | enableval="$enable_radiobox" | |
698dcdb6 | 6402 | |
10f2d63a VZ |
6403 | if test "$enableval" = yes; then |
6404 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6405 | else | |
6406 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6407 | fi | |
698dcdb6 | 6408 | |
10f2d63a | 6409 | else |
698dcdb6 | 6410 | |
10f2d63a VZ |
6411 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6412 | if test "x$LINE" != x ; then | |
6413 | eval "DEFAULT_$LINE" | |
6414 | else | |
6415 | no_cache=1 | |
6416 | fi | |
6417 | ||
6418 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6419 | |
6420 | fi | |
10f2d63a VZ |
6421 | |
6422 | ||
6423 | eval "$ac_cv_use_radiobox" | |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6429 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6430 | else |
698dcdb6 | 6431 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6432 | fi |
698dcdb6 | 6433 | |
10f2d63a | 6434 | |
698dcdb6 | 6435 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
d558c907 | 6436 | echo "configure:6437: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6437 | no_cache=0 |
6438 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6439 | if test "${enable_radiobtn+set}" = set; then | |
6440 | enableval="$enable_radiobtn" | |
698dcdb6 | 6441 | |
10f2d63a VZ |
6442 | if test "$enableval" = yes; then |
6443 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6444 | else | |
6445 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6446 | fi | |
698dcdb6 | 6447 | |
10f2d63a | 6448 | else |
698dcdb6 | 6449 | |
10f2d63a VZ |
6450 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6451 | if test "x$LINE" != x ; then | |
6452 | eval "DEFAULT_$LINE" | |
6453 | else | |
6454 | no_cache=1 | |
6455 | fi | |
6456 | ||
6457 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6458 | |
6459 | fi | |
10f2d63a VZ |
6460 | |
6461 | ||
6462 | eval "$ac_cv_use_radiobtn" | |
6463 | if test "$no_cache" != 1; then | |
6464 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6465 | fi | |
6466 | ||
6467 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6468 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6469 | else |
698dcdb6 | 6470 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6471 | fi |
698dcdb6 | 6472 | |
10f2d63a | 6473 | |
698dcdb6 | 6474 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
d558c907 | 6475 | echo "configure:6476: checking for --enable-sash" >&5 |
10f2d63a VZ |
6476 | no_cache=0 |
6477 | # Check whether --enable-sash or --disable-sash was given. | |
6478 | if test "${enable_sash+set}" = set; then | |
6479 | enableval="$enable_sash" | |
698dcdb6 | 6480 | |
10f2d63a VZ |
6481 | if test "$enableval" = yes; then |
6482 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6483 | else | |
6484 | ac_cv_use_sash='wxUSE_SASH=no' | |
6485 | fi | |
698dcdb6 | 6486 | |
10f2d63a | 6487 | else |
698dcdb6 | 6488 | |
10f2d63a VZ |
6489 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6490 | if test "x$LINE" != x ; then | |
6491 | eval "DEFAULT_$LINE" | |
6492 | else | |
6493 | no_cache=1 | |
6494 | fi | |
6495 | ||
6496 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6497 | |
6498 | fi | |
10f2d63a VZ |
6499 | |
6500 | ||
6501 | eval "$ac_cv_use_sash" | |
6502 | if test "$no_cache" != 1; then | |
6503 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6504 | fi | |
6505 | ||
6506 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6507 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6508 | else |
698dcdb6 | 6509 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6510 | fi |
698dcdb6 | 6511 | |
10f2d63a | 6512 | |
698dcdb6 | 6513 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
d558c907 | 6514 | echo "configure:6515: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6515 | no_cache=0 |
6516 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6517 | if test "${enable_scrollbar+set}" = set; then | |
6518 | enableval="$enable_scrollbar" | |
698dcdb6 | 6519 | |
10f2d63a VZ |
6520 | if test "$enableval" = yes; then |
6521 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6522 | else | |
6523 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6524 | fi | |
698dcdb6 | 6525 | |
10f2d63a | 6526 | else |
698dcdb6 | 6527 | |
10f2d63a VZ |
6528 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6536 | |
6537 | fi | |
10f2d63a VZ |
6538 | |
6539 | ||
6540 | eval "$ac_cv_use_scrollbar" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
6545 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6546 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6547 | else |
698dcdb6 | 6548 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6549 | fi |
698dcdb6 | 6550 | |
10f2d63a | 6551 | |
698dcdb6 | 6552 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
d558c907 | 6553 | echo "configure:6554: checking for --enable-slider" >&5 |
10f2d63a VZ |
6554 | no_cache=0 |
6555 | # Check whether --enable-slider or --disable-slider was given. | |
6556 | if test "${enable_slider+set}" = set; then | |
6557 | enableval="$enable_slider" | |
698dcdb6 | 6558 | |
10f2d63a VZ |
6559 | if test "$enableval" = yes; then |
6560 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6561 | else | |
6562 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6563 | fi | |
698dcdb6 | 6564 | |
10f2d63a | 6565 | else |
698dcdb6 | 6566 | |
10f2d63a VZ |
6567 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6568 | if test "x$LINE" != x ; then | |
6569 | eval "DEFAULT_$LINE" | |
6570 | else | |
6571 | no_cache=1 | |
6572 | fi | |
6573 | ||
6574 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6575 | |
6576 | fi | |
10f2d63a VZ |
6577 | |
6578 | ||
6579 | eval "$ac_cv_use_slider" | |
6580 | if test "$no_cache" != 1; then | |
6581 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6582 | fi | |
6583 | ||
6584 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6585 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6586 | else |
698dcdb6 | 6587 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6588 | fi |
698dcdb6 | 6589 | |
10f2d63a | 6590 | |
698dcdb6 | 6591 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
d558c907 | 6592 | echo "configure:6593: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6593 | no_cache=0 |
6594 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6595 | if test "${enable_spinbtn+set}" = set; then | |
6596 | enableval="$enable_spinbtn" | |
698dcdb6 | 6597 | |
10f2d63a VZ |
6598 | if test "$enableval" = yes; then |
6599 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6600 | else | |
6601 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6602 | fi | |
698dcdb6 | 6603 | |
10f2d63a | 6604 | else |
698dcdb6 | 6605 | |
10f2d63a VZ |
6606 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6614 | |
6615 | fi | |
10f2d63a VZ |
6616 | |
6617 | ||
6618 | eval "$ac_cv_use_spinbtn" | |
6619 | if test "$no_cache" != 1; then | |
6620 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6621 | fi | |
6622 | ||
6623 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6625 | else |
698dcdb6 | 6626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6627 | fi |
698dcdb6 | 6628 | |
10f2d63a | 6629 | |
698dcdb6 | 6630 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
d558c907 | 6631 | echo "configure:6632: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6632 | no_cache=0 |
6633 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6634 | if test "${enable_spinctrl+set}" = set; then | |
6635 | enableval="$enable_spinctrl" | |
698dcdb6 | 6636 | |
56cfaa52 RR |
6637 | if test "$enableval" = yes; then |
6638 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6639 | else | |
6640 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6641 | fi | |
698dcdb6 | 6642 | |
56cfaa52 | 6643 | else |
698dcdb6 | 6644 | |
56cfaa52 RR |
6645 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6646 | if test "x$LINE" != x ; then | |
6647 | eval "DEFAULT_$LINE" | |
6648 | else | |
6649 | no_cache=1 | |
6650 | fi | |
6651 | ||
6652 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6653 | |
6654 | fi | |
56cfaa52 RR |
6655 | |
6656 | ||
6657 | eval "$ac_cv_use_spinctrl" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6663 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6664 | else |
698dcdb6 | 6665 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6666 | fi |
698dcdb6 | 6667 | |
56cfaa52 | 6668 | |
698dcdb6 | 6669 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
d558c907 | 6670 | echo "configure:6671: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6671 | no_cache=0 |
6672 | # Check whether --enable-splitter or --disable-splitter was given. | |
6673 | if test "${enable_splitter+set}" = set; then | |
6674 | enableval="$enable_splitter" | |
698dcdb6 | 6675 | |
10f2d63a VZ |
6676 | if test "$enableval" = yes; then |
6677 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6678 | else | |
6679 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6680 | fi | |
698dcdb6 | 6681 | |
10f2d63a | 6682 | else |
698dcdb6 | 6683 | |
10f2d63a VZ |
6684 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6685 | if test "x$LINE" != x ; then | |
6686 | eval "DEFAULT_$LINE" | |
6687 | else | |
6688 | no_cache=1 | |
6689 | fi | |
6690 | ||
6691 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6692 | |
6693 | fi | |
10f2d63a VZ |
6694 | |
6695 | ||
6696 | eval "$ac_cv_use_splitter" | |
6697 | if test "$no_cache" != 1; then | |
6698 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6699 | fi | |
6700 | ||
6701 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6702 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6703 | else |
698dcdb6 | 6704 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6705 | fi |
698dcdb6 | 6706 | |
10f2d63a | 6707 | |
698dcdb6 | 6708 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
d558c907 | 6709 | echo "configure:6710: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6710 | no_cache=0 |
6711 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6712 | if test "${enable_statbmp+set}" = set; then | |
6713 | enableval="$enable_statbmp" | |
698dcdb6 | 6714 | |
10f2d63a VZ |
6715 | if test "$enableval" = yes; then |
6716 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6717 | else | |
6718 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6719 | fi | |
698dcdb6 | 6720 | |
10f2d63a | 6721 | else |
698dcdb6 | 6722 | |
10f2d63a VZ |
6723 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6724 | if test "x$LINE" != x ; then | |
6725 | eval "DEFAULT_$LINE" | |
6726 | else | |
6727 | no_cache=1 | |
6728 | fi | |
6729 | ||
6730 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6731 | |
6732 | fi | |
10f2d63a VZ |
6733 | |
6734 | ||
6735 | eval "$ac_cv_use_statbmp" | |
6736 | if test "$no_cache" != 1; then | |
6737 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6738 | fi | |
6739 | ||
6740 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6742 | else |
698dcdb6 | 6743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6744 | fi |
698dcdb6 | 6745 | |
10f2d63a | 6746 | |
698dcdb6 | 6747 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
d558c907 | 6748 | echo "configure:6749: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6749 | no_cache=0 |
6750 | # Check whether --enable-statbox or --disable-statbox was given. | |
6751 | if test "${enable_statbox+set}" = set; then | |
6752 | enableval="$enable_statbox" | |
698dcdb6 | 6753 | |
10f2d63a VZ |
6754 | if test "$enableval" = yes; then |
6755 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6756 | else | |
6757 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6758 | fi | |
698dcdb6 | 6759 | |
10f2d63a | 6760 | else |
698dcdb6 | 6761 | |
10f2d63a VZ |
6762 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6763 | if test "x$LINE" != x ; then | |
6764 | eval "DEFAULT_$LINE" | |
6765 | else | |
6766 | no_cache=1 | |
6767 | fi | |
6768 | ||
6769 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6770 | |
6771 | fi | |
10f2d63a VZ |
6772 | |
6773 | ||
6774 | eval "$ac_cv_use_statbox" | |
6775 | if test "$no_cache" != 1; then | |
6776 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6777 | fi | |
6778 | ||
6779 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6780 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6781 | else |
698dcdb6 | 6782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6783 | fi |
698dcdb6 | 6784 | |
10f2d63a | 6785 | |
698dcdb6 | 6786 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
d558c907 | 6787 | echo "configure:6788: checking for --enable-statline" >&5 |
10f2d63a VZ |
6788 | no_cache=0 |
6789 | # Check whether --enable-statline or --disable-statline was given. | |
6790 | if test "${enable_statline+set}" = set; then | |
6791 | enableval="$enable_statline" | |
698dcdb6 | 6792 | |
10f2d63a VZ |
6793 | if test "$enableval" = yes; then |
6794 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6795 | else | |
6796 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6797 | fi | |
698dcdb6 | 6798 | |
10f2d63a | 6799 | else |
698dcdb6 | 6800 | |
10f2d63a VZ |
6801 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6802 | if test "x$LINE" != x ; then | |
6803 | eval "DEFAULT_$LINE" | |
6804 | else | |
6805 | no_cache=1 | |
6806 | fi | |
6807 | ||
6808 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6809 | |
6810 | fi | |
10f2d63a VZ |
6811 | |
6812 | ||
6813 | eval "$ac_cv_use_statline" | |
6814 | if test "$no_cache" != 1; then | |
6815 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6816 | fi | |
6817 | ||
6818 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6820 | else |
698dcdb6 | 6821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6822 | fi |
698dcdb6 | 6823 | |
10f2d63a | 6824 | |
1e6feb95 | 6825 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
d558c907 | 6826 | echo "configure:6827: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6827 | no_cache=0 |
6828 | # Check whether --enable-stattext or --disable-stattext was given. | |
6829 | if test "${enable_stattext+set}" = set; then | |
6830 | enableval="$enable_stattext" | |
6831 | ||
6832 | if test "$enableval" = yes; then | |
6833 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6834 | else | |
6835 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6836 | fi | |
6837 | ||
6838 | else | |
6839 | ||
6840 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6841 | if test "x$LINE" != x ; then | |
6842 | eval "DEFAULT_$LINE" | |
6843 | else | |
6844 | no_cache=1 | |
6845 | fi | |
6846 | ||
6847 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6848 | ||
6849 | fi | |
6850 | ||
6851 | ||
6852 | eval "$ac_cv_use_stattext" | |
6853 | if test "$no_cache" != 1; then | |
6854 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6855 | fi | |
6856 | ||
6857 | if test "$wxUSE_STATTEXT" = yes; then | |
6858 | echo "$ac_t""yes" 1>&6 | |
6859 | else | |
6860 | echo "$ac_t""no" 1>&6 | |
6861 | fi | |
6862 | ||
6863 | ||
698dcdb6 | 6864 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
d558c907 | 6865 | echo "configure:6866: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6866 | no_cache=0 |
6867 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6868 | if test "${enable_statusbar+set}" = set; then | |
6869 | enableval="$enable_statusbar" | |
698dcdb6 | 6870 | |
10f2d63a VZ |
6871 | if test "$enableval" = yes; then |
6872 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6873 | else | |
6874 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6875 | fi | |
698dcdb6 | 6876 | |
10f2d63a | 6877 | else |
698dcdb6 | 6878 | |
10f2d63a VZ |
6879 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6880 | if test "x$LINE" != x ; then | |
6881 | eval "DEFAULT_$LINE" | |
6882 | else | |
6883 | no_cache=1 | |
6884 | fi | |
6885 | ||
6886 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6887 | |
6888 | fi | |
10f2d63a VZ |
6889 | |
6890 | ||
6891 | eval "$ac_cv_use_statusbar" | |
6892 | if test "$no_cache" != 1; then | |
6893 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6894 | fi | |
6895 | ||
6896 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6898 | else |
698dcdb6 | 6899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6900 | fi |
698dcdb6 | 6901 | |
10f2d63a | 6902 | |
698dcdb6 | 6903 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
d558c907 | 6904 | echo "configure:6905: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6905 | no_cache=0 |
6906 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6907 | if test "${enable_tabdialog+set}" = set; then | |
6908 | enableval="$enable_tabdialog" | |
698dcdb6 | 6909 | |
10f2d63a VZ |
6910 | if test "$enableval" = yes; then |
6911 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6912 | else | |
6913 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6914 | fi | |
698dcdb6 | 6915 | |
10f2d63a | 6916 | else |
698dcdb6 | 6917 | |
10f2d63a VZ |
6918 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6919 | if test "x$LINE" != x ; then | |
6920 | eval "DEFAULT_$LINE" | |
6921 | else | |
6922 | no_cache=1 | |
6923 | fi | |
6924 | ||
6925 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6926 | |
6927 | fi | |
10f2d63a VZ |
6928 | |
6929 | ||
6930 | eval "$ac_cv_use_tabdialog" | |
6931 | if test "$no_cache" != 1; then | |
6932 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6933 | fi | |
6934 | ||
6935 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6936 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6937 | else |
698dcdb6 | 6938 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6939 | fi |
698dcdb6 | 6940 | |
10f2d63a | 6941 | |
1e6feb95 | 6942 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
d558c907 | 6943 | echo "configure:6944: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6944 | no_cache=0 |
6945 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6946 | if test "${enable_textctrl+set}" = set; then | |
6947 | enableval="$enable_textctrl" | |
6948 | ||
6949 | if test "$enableval" = yes; then | |
6950 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6951 | else | |
6952 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6953 | fi | |
6954 | ||
6955 | else | |
6956 | ||
6957 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6958 | if test "x$LINE" != x ; then | |
6959 | eval "DEFAULT_$LINE" | |
6960 | else | |
6961 | no_cache=1 | |
6962 | fi | |
6963 | ||
6964 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6965 | ||
6966 | fi | |
6967 | ||
6968 | ||
6969 | eval "$ac_cv_use_textctrl" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6975 | echo "$ac_t""yes" 1>&6 | |
6976 | else | |
6977 | echo "$ac_t""no" 1>&6 | |
6978 | fi | |
6979 | ||
6980 | ||
698dcdb6 | 6981 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
d558c907 | 6982 | echo "configure:6983: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6983 | no_cache=0 |
6984 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6985 | if test "${enable_togglebtn+set}" = set; then | |
6986 | enableval="$enable_togglebtn" | |
698dcdb6 | 6987 | |
1db8dc4a VZ |
6988 | if test "$enableval" = yes; then |
6989 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6990 | else | |
6991 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6992 | fi | |
698dcdb6 | 6993 | |
1db8dc4a | 6994 | else |
698dcdb6 | 6995 | |
1db8dc4a VZ |
6996 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6997 | if test "x$LINE" != x ; then | |
6998 | eval "DEFAULT_$LINE" | |
6999 | else | |
7000 | no_cache=1 | |
7001 | fi | |
7002 | ||
7003 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
7004 | |
7005 | fi | |
1db8dc4a VZ |
7006 | |
7007 | ||
7008 | eval "$ac_cv_use_togglebtn" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 7014 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7015 | else |
698dcdb6 | 7016 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7017 | fi |
698dcdb6 | 7018 | |
1db8dc4a | 7019 | |
698dcdb6 | 7020 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
d558c907 | 7021 | echo "configure:7022: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7022 | no_cache=0 |
7023 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7024 | if test "${enable_toolbar+set}" = set; then | |
7025 | enableval="$enable_toolbar" | |
698dcdb6 | 7026 | |
10f2d63a VZ |
7027 | if test "$enableval" = yes; then |
7028 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7029 | else | |
7030 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7031 | fi | |
698dcdb6 | 7032 | |
10f2d63a | 7033 | else |
698dcdb6 | 7034 | |
10f2d63a VZ |
7035 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7043 | |
7044 | fi | |
10f2d63a VZ |
7045 | |
7046 | ||
7047 | eval "$ac_cv_use_toolbar" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7053 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7054 | else |
698dcdb6 | 7055 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7056 | fi |
698dcdb6 | 7057 | |
10f2d63a | 7058 | |
698dcdb6 | 7059 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
d558c907 | 7060 | echo "configure:7061: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7061 | no_cache=0 |
7062 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7063 | if test "${enable_tbarnative+set}" = set; then | |
7064 | enableval="$enable_tbarnative" | |
698dcdb6 | 7065 | |
360d6699 VZ |
7066 | if test "$enableval" = yes; then |
7067 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7068 | else | |
7069 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7070 | fi | |
698dcdb6 | 7071 | |
360d6699 | 7072 | else |
698dcdb6 | 7073 | |
360d6699 VZ |
7074 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7075 | if test "x$LINE" != x ; then | |
7076 | eval "DEFAULT_$LINE" | |
7077 | else | |
7078 | no_cache=1 | |
7079 | fi | |
7080 | ||
7081 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7082 | |
7083 | fi | |
360d6699 VZ |
7084 | |
7085 | ||
7086 | eval "$ac_cv_use_tbarnative" | |
7087 | if test "$no_cache" != 1; then | |
7088 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7089 | fi | |
7090 | ||
7091 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7092 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7093 | else |
698dcdb6 | 7094 | echo "$ac_t""no" 1>&6 |
360d6699 | 7095 | fi |
698dcdb6 | 7096 | |
360d6699 | 7097 | |
698dcdb6 | 7098 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
d558c907 | 7099 | echo "configure:7100: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7100 | no_cache=0 |
7101 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7102 | if test "${enable_tbarsmpl+set}" = set; then | |
7103 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7104 | |
360d6699 VZ |
7105 | if test "$enableval" = yes; then |
7106 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7107 | else | |
7108 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7109 | fi | |
698dcdb6 | 7110 | |
360d6699 | 7111 | else |
698dcdb6 | 7112 | |
360d6699 VZ |
7113 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7114 | if test "x$LINE" != x ; then | |
7115 | eval "DEFAULT_$LINE" | |
7116 | else | |
7117 | no_cache=1 | |
7118 | fi | |
7119 | ||
7120 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7121 | |
7122 | fi | |
360d6699 VZ |
7123 | |
7124 | ||
7125 | eval "$ac_cv_use_tbarsmpl" | |
7126 | if test "$no_cache" != 1; then | |
7127 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7128 | fi | |
7129 | ||
7130 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7131 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7132 | else |
698dcdb6 | 7133 | echo "$ac_t""no" 1>&6 |
360d6699 | 7134 | fi |
698dcdb6 | 7135 | |
360d6699 | 7136 | |
698dcdb6 | 7137 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
d558c907 | 7138 | echo "configure:7139: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7139 | no_cache=0 |
7140 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7141 | if test "${enable_treectrl+set}" = set; then | |
7142 | enableval="$enable_treectrl" | |
698dcdb6 | 7143 | |
10f2d63a VZ |
7144 | if test "$enableval" = yes; then |
7145 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7146 | else | |
7147 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7148 | fi | |
698dcdb6 | 7149 | |
10f2d63a | 7150 | else |
698dcdb6 | 7151 | |
10f2d63a VZ |
7152 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7153 | if test "x$LINE" != x ; then | |
7154 | eval "DEFAULT_$LINE" | |
7155 | else | |
7156 | no_cache=1 | |
7157 | fi | |
7158 | ||
7159 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7160 | |
7161 | fi | |
10f2d63a VZ |
7162 | |
7163 | ||
1e6feb95 VZ |
7164 | eval "$ac_cv_use_treectrl" |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_TREECTRL" = yes; then | |
7170 | echo "$ac_t""yes" 1>&6 | |
7171 | else | |
7172 | echo "$ac_t""no" 1>&6 | |
7173 | fi | |
7174 | ||
7175 | ||
9926e4a4 | 7176 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
d558c907 | 7177 | echo "configure:7178: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7178 | no_cache=0 |
7179 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7180 | if test "${enable_tipwindow+set}" = set; then | |
7181 | enableval="$enable_tipwindow" | |
7182 | ||
7183 | if test "$enableval" = yes; then | |
7184 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7185 | else | |
7186 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7187 | fi | |
7188 | ||
7189 | else | |
7190 | ||
7191 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7192 | if test "x$LINE" != x ; then | |
7193 | eval "DEFAULT_$LINE" | |
7194 | else | |
7195 | no_cache=1 | |
7196 | fi | |
7197 | ||
7198 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7199 | ||
7200 | fi | |
7201 | ||
7202 | ||
7203 | eval "$ac_cv_use_tipwindow" | |
7204 | if test "$no_cache" != 1; then | |
7205 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7206 | fi | |
7207 | ||
7208 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7209 | echo "$ac_t""yes" 1>&6 | |
7210 | else | |
7211 | echo "$ac_t""no" 1>&6 | |
7212 | fi | |
7213 | ||
7214 | ||
9f41d601 | 7215 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
d558c907 | 7216 | echo "configure:7217: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7217 | no_cache=0 |
7218 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7219 | if test "${enable_popupwin+set}" = set; then | |
7220 | enableval="$enable_popupwin" | |
7221 | ||
7222 | if test "$enableval" = yes; then | |
7223 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7224 | else | |
7225 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7226 | fi | |
7227 | ||
7228 | else | |
7229 | ||
7230 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7231 | if test "x$LINE" != x ; then | |
7232 | eval "DEFAULT_$LINE" | |
7233 | else | |
7234 | no_cache=1 | |
7235 | fi | |
7236 | ||
7237 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7238 | ||
7239 | fi | |
7240 | ||
7241 | ||
7242 | eval "$ac_cv_use_popupwin" | |
7243 | if test "$no_cache" != 1; then | |
7244 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7245 | fi | |
7246 | ||
7247 | if test "$wxUSE_POPUPWIN" = yes; then | |
7248 | echo "$ac_t""yes" 1>&6 | |
7249 | else | |
7250 | echo "$ac_t""no" 1>&6 | |
7251 | fi | |
7252 | ||
7253 | ||
1e6feb95 VZ |
7254 | |
7255 | ||
7256 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
d558c907 | 7257 | echo "configure:7258: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7258 | no_cache=0 |
7259 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7260 | if test "${enable_commondlg+set}" = set; then | |
7261 | enableval="$enable_commondlg" | |
7262 | ||
7263 | if test "$enableval" = yes; then | |
7264 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7265 | else | |
7266 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7267 | fi | |
7268 | ||
7269 | else | |
7270 | ||
7271 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7272 | if test "x$LINE" != x ; then | |
7273 | eval "DEFAULT_$LINE" | |
7274 | else | |
7275 | no_cache=1 | |
7276 | fi | |
7277 | ||
7278 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7279 | ||
7280 | fi | |
7281 | ||
7282 | ||
7283 | eval "$ac_cv_use_commondlg" | |
7284 | if test "$no_cache" != 1; then | |
7285 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7286 | fi | |
7287 | ||
7288 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7289 | echo "$ac_t""yes" 1>&6 | |
7290 | else | |
7291 | echo "$ac_t""no" 1>&6 | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
d558c907 | 7296 | echo "configure:7297: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7297 | no_cache=0 |
7298 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7299 | if test "${enable_choicedlg+set}" = set; then | |
7300 | enableval="$enable_choicedlg" | |
7301 | ||
7302 | if test "$enableval" = yes; then | |
7303 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7304 | else | |
7305 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7306 | fi | |
7307 | ||
7308 | else | |
7309 | ||
7310 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7311 | if test "x$LINE" != x ; then | |
7312 | eval "DEFAULT_$LINE" | |
7313 | else | |
7314 | no_cache=1 | |
7315 | fi | |
7316 | ||
7317 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7318 | ||
7319 | fi | |
7320 | ||
7321 | ||
7322 | eval "$ac_cv_use_choicedlg" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7328 | echo "$ac_t""yes" 1>&6 | |
7329 | else | |
7330 | echo "$ac_t""no" 1>&6 | |
7331 | fi | |
7332 | ||
7333 | ||
7334 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
d558c907 | 7335 | echo "configure:7336: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7336 | no_cache=0 |
7337 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7338 | if test "${enable_coldlg+set}" = set; then | |
7339 | enableval="$enable_coldlg" | |
7340 | ||
7341 | if test "$enableval" = yes; then | |
7342 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7343 | else | |
7344 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7345 | fi | |
7346 | ||
7347 | else | |
7348 | ||
7349 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7350 | if test "x$LINE" != x ; then | |
7351 | eval "DEFAULT_$LINE" | |
7352 | else | |
7353 | no_cache=1 | |
7354 | fi | |
7355 | ||
7356 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7357 | ||
7358 | fi | |
7359 | ||
7360 | ||
7361 | eval "$ac_cv_use_coldlg" | |
7362 | if test "$no_cache" != 1; then | |
7363 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7364 | fi | |
7365 | ||
7366 | if test "$wxUSE_COLOURDLG" = yes; then | |
7367 | echo "$ac_t""yes" 1>&6 | |
7368 | else | |
7369 | echo "$ac_t""no" 1>&6 | |
7370 | fi | |
7371 | ||
7372 | ||
7373 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
d558c907 | 7374 | echo "configure:7375: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7375 | no_cache=0 |
7376 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7377 | if test "${enable_filedlg+set}" = set; then | |
7378 | enableval="$enable_filedlg" | |
7379 | ||
7380 | if test "$enableval" = yes; then | |
7381 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7382 | else | |
7383 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7384 | fi | |
7385 | ||
7386 | else | |
7387 | ||
7388 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7389 | if test "x$LINE" != x ; then | |
7390 | eval "DEFAULT_$LINE" | |
7391 | else | |
7392 | no_cache=1 | |
7393 | fi | |
7394 | ||
7395 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7396 | ||
7397 | fi | |
7398 | ||
7399 | ||
7400 | eval "$ac_cv_use_filedlg" | |
7401 | if test "$no_cache" != 1; then | |
7402 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7403 | fi | |
7404 | ||
7405 | if test "$wxUSE_FILEDLG" = yes; then | |
7406 | echo "$ac_t""yes" 1>&6 | |
7407 | else | |
7408 | echo "$ac_t""no" 1>&6 | |
7409 | fi | |
7410 | ||
7411 | ||
69d27ff7 | 7412 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
d558c907 | 7413 | echo "configure:7414: checking for --enable-finddlg" >&5 |
8db37e06 | 7414 | no_cache=0 |
69d27ff7 MB |
7415 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7416 | if test "${enable_finddlg+set}" = set; then | |
7417 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7418 | |
7419 | if test "$enableval" = yes; then | |
69d27ff7 | 7420 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7421 | else |
69d27ff7 | 7422 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7423 | fi |
7424 | ||
7425 | else | |
7426 | ||
7427 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7428 | if test "x$LINE" != x ; then | |
7429 | eval "DEFAULT_$LINE" | |
7430 | else | |
7431 | no_cache=1 | |
7432 | fi | |
7433 | ||
69d27ff7 | 7434 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7435 | |
7436 | fi | |
7437 | ||
7438 | ||
69d27ff7 | 7439 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7440 | if test "$no_cache" != 1; then |
69d27ff7 | 7441 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7442 | fi |
7443 | ||
7444 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7445 | echo "$ac_t""yes" 1>&6 | |
7446 | else | |
7447 | echo "$ac_t""no" 1>&6 | |
7448 | fi | |
7449 | ||
7450 | ||
1e6feb95 | 7451 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
d558c907 | 7452 | echo "configure:7453: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7453 | no_cache=0 |
7454 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7455 | if test "${enable_fontdlg+set}" = set; then | |
7456 | enableval="$enable_fontdlg" | |
7457 | ||
7458 | if test "$enableval" = yes; then | |
7459 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7460 | else | |
7461 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7462 | fi | |
7463 | ||
7464 | else | |
7465 | ||
7466 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7467 | if test "x$LINE" != x ; then | |
7468 | eval "DEFAULT_$LINE" | |
7469 | else | |
7470 | no_cache=1 | |
7471 | fi | |
7472 | ||
7473 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7474 | ||
7475 | fi | |
7476 | ||
7477 | ||
7478 | eval "$ac_cv_use_fontdlg" | |
7479 | if test "$no_cache" != 1; then | |
7480 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7481 | fi | |
7482 | ||
7483 | if test "$wxUSE_FONTDLG" = yes; then | |
7484 | echo "$ac_t""yes" 1>&6 | |
7485 | else | |
7486 | echo "$ac_t""no" 1>&6 | |
7487 | fi | |
7488 | ||
7489 | ||
7490 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
d558c907 | 7491 | echo "configure:7492: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7492 | no_cache=0 |
7493 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7494 | if test "${enable_dirdlg+set}" = set; then | |
7495 | enableval="$enable_dirdlg" | |
7496 | ||
7497 | if test "$enableval" = yes; then | |
7498 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7499 | else | |
7500 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7501 | fi | |
7502 | ||
7503 | else | |
7504 | ||
7505 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7506 | if test "x$LINE" != x ; then | |
7507 | eval "DEFAULT_$LINE" | |
7508 | else | |
7509 | no_cache=1 | |
7510 | fi | |
7511 | ||
7512 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7513 | ||
7514 | fi | |
7515 | ||
7516 | ||
7517 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7518 | if test "$no_cache" != 1; then |
1e6feb95 | 7519 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7520 | fi |
7521 | ||
1e6feb95 | 7522 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7523 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7524 | else |
698dcdb6 | 7525 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7526 | fi |
698dcdb6 VZ |
7527 | |
7528 | ||
1e6feb95 | 7529 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
d558c907 | 7530 | echo "configure:7531: checking for --enable-msgdlg" >&5 |
10f2d63a | 7531 | no_cache=0 |
1e6feb95 VZ |
7532 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7533 | if test "${enable_msgdlg+set}" = set; then | |
7534 | enableval="$enable_msgdlg" | |
698dcdb6 | 7535 | |
10f2d63a | 7536 | if test "$enableval" = yes; then |
1e6feb95 | 7537 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7538 | else |
1e6feb95 | 7539 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7540 | fi |
698dcdb6 | 7541 | |
10f2d63a | 7542 | else |
698dcdb6 | 7543 | |
1e6feb95 | 7544 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7545 | if test "x$LINE" != x ; then |
7546 | eval "DEFAULT_$LINE" | |
7547 | else | |
7548 | no_cache=1 | |
7549 | fi | |
7550 | ||
1e6feb95 | 7551 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7552 | |
7553 | fi | |
10f2d63a VZ |
7554 | |
7555 | ||
1e6feb95 | 7556 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7557 | if test "$no_cache" != 1; then |
1e6feb95 | 7558 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7559 | fi |
7560 | ||
1e6feb95 | 7561 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7563 | else |
698dcdb6 | 7564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7565 | fi |
698dcdb6 | 7566 | |
10f2d63a | 7567 | |
1e6feb95 | 7568 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
d558c907 | 7569 | echo "configure:7570: checking for --enable-numberdlg" >&5 |
10f2d63a | 7570 | no_cache=0 |
1e6feb95 VZ |
7571 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7572 | if test "${enable_numberdlg+set}" = set; then | |
7573 | enableval="$enable_numberdlg" | |
698dcdb6 | 7574 | |
10f2d63a | 7575 | if test "$enableval" = yes; then |
1e6feb95 | 7576 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7577 | else |
1e6feb95 | 7578 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7579 | fi |
698dcdb6 | 7580 | |
10f2d63a | 7581 | else |
698dcdb6 | 7582 | |
1e6feb95 | 7583 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7584 | if test "x$LINE" != x ; then |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
1e6feb95 | 7590 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7591 | |
7592 | fi | |
10f2d63a VZ |
7593 | |
7594 | ||
1e6feb95 | 7595 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7596 | if test "$no_cache" != 1; then |
1e6feb95 | 7597 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7598 | fi |
7599 | ||
1e6feb95 | 7600 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7602 | else |
698dcdb6 | 7603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7604 | fi |
698dcdb6 | 7605 | |
10f2d63a | 7606 | |
cbca9943 | 7607 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
d558c907 | 7608 | echo "configure:7609: checking for --enable-splash" >&5 |
cbca9943 VZ |
7609 | no_cache=0 |
7610 | # Check whether --enable-splash or --disable-splash was given. | |
7611 | if test "${enable_splash+set}" = set; then | |
7612 | enableval="$enable_splash" | |
7613 | ||
7614 | if test "$enableval" = yes; then | |
7615 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7616 | else | |
7617 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7618 | fi | |
7619 | ||
7620 | else | |
7621 | ||
7622 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7623 | if test "x$LINE" != x ; then | |
7624 | eval "DEFAULT_$LINE" | |
7625 | else | |
7626 | no_cache=1 | |
7627 | fi | |
7628 | ||
7629 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7630 | ||
7631 | fi | |
7632 | ||
7633 | ||
7634 | eval "$ac_cv_use_splash" | |
7635 | if test "$no_cache" != 1; then | |
7636 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7637 | fi | |
7638 | ||
7639 | if test "$wxUSE_SPLASH" = yes; then | |
7640 | echo "$ac_t""yes" 1>&6 | |
7641 | else | |
7642 | echo "$ac_t""no" 1>&6 | |
7643 | fi | |
7644 | ||
7645 | ||
698dcdb6 | 7646 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
d558c907 | 7647 | echo "configure:7648: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7648 | no_cache=0 |
7649 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7650 | if test "${enable_textdlg+set}" = set; then | |
7651 | enableval="$enable_textdlg" | |
698dcdb6 | 7652 | |
10f2d63a VZ |
7653 | if test "$enableval" = yes; then |
7654 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7655 | else | |
7656 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7657 | fi | |
698dcdb6 | 7658 | |
10f2d63a | 7659 | else |
698dcdb6 | 7660 | |
10f2d63a VZ |
7661 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7662 | if test "x$LINE" != x ; then | |
7663 | eval "DEFAULT_$LINE" | |
7664 | else | |
7665 | no_cache=1 | |
7666 | fi | |
7667 | ||
7668 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7669 | |
7670 | fi | |
10f2d63a VZ |
7671 | |
7672 | ||
7673 | eval "$ac_cv_use_textdlg" | |
7674 | if test "$no_cache" != 1; then | |
7675 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7676 | fi | |
7677 | ||
7678 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7680 | else |
698dcdb6 | 7681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7682 | fi |
698dcdb6 | 7683 | |
10f2d63a | 7684 | |
698dcdb6 | 7685 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
d558c907 | 7686 | echo "configure:7687: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7687 | no_cache=0 |
7688 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7689 | if test "${enable_tipdlg+set}" = set; then | |
7690 | enableval="$enable_tipdlg" | |
698dcdb6 | 7691 | |
10f2d63a VZ |
7692 | if test "$enableval" = yes; then |
7693 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7694 | else | |
7695 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7696 | fi | |
698dcdb6 | 7697 | |
10f2d63a | 7698 | else |
698dcdb6 | 7699 | |
10f2d63a VZ |
7700 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7701 | if test "x$LINE" != x ; then | |
7702 | eval "DEFAULT_$LINE" | |
7703 | else | |
7704 | no_cache=1 | |
7705 | fi | |
7706 | ||
7707 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7708 | |
7709 | fi | |
10f2d63a VZ |
7710 | |
7711 | ||
7712 | eval "$ac_cv_use_tipdlg" | |
7713 | if test "$no_cache" != 1; then | |
7714 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7715 | fi | |
7716 | ||
7717 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7719 | else |
698dcdb6 | 7720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7721 | fi |
698dcdb6 | 7722 | |
10f2d63a | 7723 | |
698dcdb6 | 7724 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
d558c907 | 7725 | echo "configure:7726: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7726 | no_cache=0 |
7727 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7728 | if test "${enable_progressdlg+set}" = set; then | |
7729 | enableval="$enable_progressdlg" | |
698dcdb6 | 7730 | |
10f2d63a VZ |
7731 | if test "$enableval" = yes; then |
7732 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7733 | else | |
7734 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7735 | fi | |
698dcdb6 | 7736 | |
10f2d63a | 7737 | else |
698dcdb6 | 7738 | |
10f2d63a VZ |
7739 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7740 | if test "x$LINE" != x ; then | |
7741 | eval "DEFAULT_$LINE" | |
7742 | else | |
7743 | no_cache=1 | |
7744 | fi | |
7745 | ||
7746 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7747 | |
7748 | fi | |
10f2d63a VZ |
7749 | |
7750 | ||
7751 | eval "$ac_cv_use_progressdlg" | |
7752 | if test "$no_cache" != 1; then | |
7753 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7754 | fi | |
7755 | ||
7756 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7758 | else |
698dcdb6 | 7759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7760 | fi |
698dcdb6 | 7761 | |
10f2d63a | 7762 | |
b1f5d087 | 7763 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
d558c907 | 7764 | echo "configure:7765: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7765 | no_cache=0 |
7766 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7767 | if test "${enable_wizarddlg+set}" = set; then | |
7768 | enableval="$enable_wizarddlg" | |
7769 | ||
7770 | if test "$enableval" = yes; then | |
7771 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7772 | else | |
7773 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7774 | fi | |
7775 | ||
7776 | else | |
7777 | ||
7778 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7779 | if test "x$LINE" != x ; then | |
7780 | eval "DEFAULT_$LINE" | |
7781 | else | |
7782 | no_cache=1 | |
7783 | fi | |
7784 | ||
7785 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7786 | ||
7787 | fi | |
7788 | ||
7789 | ||
7790 | eval "$ac_cv_use_wizarddlg" | |
7791 | if test "$no_cache" != 1; then | |
7792 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7793 | fi | |
7794 | ||
7795 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7796 | echo "$ac_t""yes" 1>&6 | |
7797 | else | |
7798 | echo "$ac_t""no" 1>&6 | |
7799 | fi | |
7800 | ||
7801 | ||
7802 | ||
7803 | ||
1e6feb95 | 7804 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
d558c907 | 7805 | echo "configure:7806: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7806 | no_cache=0 |
7807 | # Check whether --enable-menus or --disable-menus was given. | |
7808 | if test "${enable_menus+set}" = set; then | |
7809 | enableval="$enable_menus" | |
7810 | ||
7811 | if test "$enableval" = yes; then | |
7812 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7813 | else | |
7814 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7815 | fi | |
7816 | ||
7817 | else | |
7818 | ||
7819 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7820 | if test "x$LINE" != x ; then | |
7821 | eval "DEFAULT_$LINE" | |
7822 | else | |
7823 | no_cache=1 | |
7824 | fi | |
7825 | ||
7826 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7827 | ||
7828 | fi | |
7829 | ||
7830 | ||
7831 | eval "$ac_cv_use_menus" | |
7832 | if test "$no_cache" != 1; then | |
7833 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7834 | fi | |
7835 | ||
7836 | if test "$wxUSE_MENUS" = yes; then | |
7837 | echo "$ac_t""yes" 1>&6 | |
7838 | else | |
7839 | echo "$ac_t""no" 1>&6 | |
7840 | fi | |
7841 | ||
7842 | ||
698dcdb6 | 7843 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
d558c907 | 7844 | echo "configure:7845: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7845 | no_cache=0 |
7846 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7847 | if test "${enable_miniframe+set}" = set; then | |
7848 | enableval="$enable_miniframe" | |
698dcdb6 | 7849 | |
10f2d63a VZ |
7850 | if test "$enableval" = yes; then |
7851 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7852 | else | |
7853 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7854 | fi | |
698dcdb6 | 7855 | |
10f2d63a | 7856 | else |
698dcdb6 | 7857 | |
10f2d63a VZ |
7858 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7859 | if test "x$LINE" != x ; then | |
7860 | eval "DEFAULT_$LINE" | |
7861 | else | |
7862 | no_cache=1 | |
7863 | fi | |
7864 | ||
7865 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7866 | |
7867 | fi | |
10f2d63a VZ |
7868 | |
7869 | ||
7870 | eval "$ac_cv_use_miniframe" | |
7871 | if test "$no_cache" != 1; then | |
7872 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7873 | fi | |
7874 | ||
7875 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7877 | else |
698dcdb6 | 7878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7879 | fi |
698dcdb6 | 7880 | |
10f2d63a | 7881 | |
698dcdb6 | 7882 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
d558c907 | 7883 | echo "configure:7884: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7884 | no_cache=0 |
7885 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7886 | if test "${enable_tooltips+set}" = set; then | |
7887 | enableval="$enable_tooltips" | |
698dcdb6 | 7888 | |
10f2d63a VZ |
7889 | if test "$enableval" = yes; then |
7890 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7891 | else | |
7892 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7893 | fi | |
698dcdb6 | 7894 | |
10f2d63a | 7895 | else |
698dcdb6 | 7896 | |
10f2d63a VZ |
7897 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7898 | if test "x$LINE" != x ; then | |
7899 | eval "DEFAULT_$LINE" | |
7900 | else | |
7901 | no_cache=1 | |
7902 | fi | |
7903 | ||
7904 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7905 | |
7906 | fi | |
10f2d63a VZ |
7907 | |
7908 | ||
7909 | eval "$ac_cv_use_tooltips" | |
7910 | if test "$no_cache" != 1; then | |
7911 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7912 | fi | |
7913 | ||
7914 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7916 | else |
698dcdb6 | 7917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7918 | fi |
698dcdb6 | 7919 | |
10f2d63a | 7920 | |
698dcdb6 | 7921 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
d558c907 | 7922 | echo "configure:7923: checking for --enable-splines" >&5 |
10f2d63a VZ |
7923 | no_cache=0 |
7924 | # Check whether --enable-splines or --disable-splines was given. | |
7925 | if test "${enable_splines+set}" = set; then | |
7926 | enableval="$enable_splines" | |
698dcdb6 | 7927 | |
10f2d63a VZ |
7928 | if test "$enableval" = yes; then |
7929 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7930 | else | |
7931 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7932 | fi | |
698dcdb6 | 7933 | |
10f2d63a | 7934 | else |
698dcdb6 | 7935 | |
10f2d63a VZ |
7936 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7937 | if test "x$LINE" != x ; then | |
7938 | eval "DEFAULT_$LINE" | |
7939 | else | |
7940 | no_cache=1 | |
7941 | fi | |
7942 | ||
7943 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7944 | |
7945 | fi | |
10f2d63a VZ |
7946 | |
7947 | ||
7948 | eval "$ac_cv_use_splines" | |
7949 | if test "$no_cache" != 1; then | |
7950 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7951 | fi | |
7952 | ||
7953 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7955 | else |
698dcdb6 | 7956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7957 | fi |
698dcdb6 | 7958 | |
10f2d63a | 7959 | |
698dcdb6 | 7960 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
d558c907 | 7961 | echo "configure:7962: checking for --enable-validators" >&5 |
10f2d63a VZ |
7962 | no_cache=0 |
7963 | # Check whether --enable-validators or --disable-validators was given. | |
7964 | if test "${enable_validators+set}" = set; then | |
7965 | enableval="$enable_validators" | |
698dcdb6 | 7966 | |
10f2d63a VZ |
7967 | if test "$enableval" = yes; then |
7968 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7969 | else | |
7970 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7971 | fi | |
698dcdb6 | 7972 | |
10f2d63a | 7973 | else |
698dcdb6 | 7974 | |
10f2d63a VZ |
7975 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7976 | if test "x$LINE" != x ; then | |
7977 | eval "DEFAULT_$LINE" | |
7978 | else | |
7979 | no_cache=1 | |
7980 | fi | |
7981 | ||
7982 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7983 | |
7984 | fi | |
10f2d63a VZ |
7985 | |
7986 | ||
7987 | eval "$ac_cv_use_validators" | |
7988 | if test "$no_cache" != 1; then | |
7989 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7990 | fi | |
7991 | ||
7992 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7993 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7994 | else |
698dcdb6 | 7995 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7996 | fi |
698dcdb6 | 7997 | |
10f2d63a | 7998 | |
698dcdb6 | 7999 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
d558c907 | 8000 | echo "configure:8001: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8001 | no_cache=0 |
8002 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8003 | if test "${enable_busyinfo+set}" = set; then | |
8004 | enableval="$enable_busyinfo" | |
698dcdb6 | 8005 | |
10f2d63a VZ |
8006 | if test "$enableval" = yes; then |
8007 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8008 | else | |
8009 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8010 | fi | |
698dcdb6 | 8011 | |
10f2d63a | 8012 | else |
698dcdb6 | 8013 | |
10f2d63a VZ |
8014 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8015 | if test "x$LINE" != x ; then | |
8016 | eval "DEFAULT_$LINE" | |
8017 | else | |
8018 | no_cache=1 | |
8019 | fi | |
8020 | ||
8021 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
8022 | |
8023 | fi | |
10f2d63a VZ |
8024 | |
8025 | ||
8026 | eval "$ac_cv_use_busyinfo" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 8032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8033 | else |
698dcdb6 | 8034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8035 | fi |
698dcdb6 | 8036 | |
10f2d63a | 8037 | |
698dcdb6 | 8038 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
d558c907 | 8039 | echo "configure:8040: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8040 | no_cache=0 |
8041 | # Check whether --enable-joystick or --disable-joystick was given. | |
8042 | if test "${enable_joystick+set}" = set; then | |
8043 | enableval="$enable_joystick" | |
698dcdb6 | 8044 | |
f6bcfd97 BP |
8045 | if test "$enableval" = yes; then |
8046 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8047 | else | |
8048 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8049 | fi | |
698dcdb6 | 8050 | |
f6bcfd97 | 8051 | else |
698dcdb6 | 8052 | |
f6bcfd97 BP |
8053 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8054 | if test "x$LINE" != x ; then | |
8055 | eval "DEFAULT_$LINE" | |
8056 | else | |
8057 | no_cache=1 | |
8058 | fi | |
8059 | ||
8060 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8061 | |
8062 | fi | |
f6bcfd97 BP |
8063 | |
8064 | ||
8065 | eval "$ac_cv_use_joystick" | |
8066 | if test "$no_cache" != 1; then | |
8067 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8068 | fi | |
8069 | ||
8070 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8071 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8072 | else |
698dcdb6 | 8073 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8074 | fi |
698dcdb6 VZ |
8075 | |
8076 | ||
1e6feb95 | 8077 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d558c907 | 8078 | echo "configure:8079: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8079 | no_cache=0 |
8080 | # Check whether --enable-metafile or --disable-metafile was given. | |
8081 | if test "${enable_metafile+set}" = set; then | |
8082 | enableval="$enable_metafile" | |
8083 | ||
8084 | if test "$enableval" = yes; then | |
8085 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8086 | else | |
8087 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8088 | fi | |
8089 | ||
8090 | else | |
8091 | ||
8092 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8093 | if test "x$LINE" != x ; then | |
8094 | eval "DEFAULT_$LINE" | |
8095 | else | |
8096 | no_cache=1 | |
8097 | fi | |
8098 | ||
8099 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8100 | ||
8101 | fi | |
8102 | ||
8103 | ||
8104 | eval "$ac_cv_use_metafile" | |
8105 | if test "$no_cache" != 1; then | |
8106 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8107 | fi | |
8108 | ||
8109 | if test "$wxUSE_METAFILE" = yes; then | |
8110 | echo "$ac_t""yes" 1>&6 | |
8111 | else | |
8112 | echo "$ac_t""no" 1>&6 | |
8113 | fi | |
8114 | ||
8115 | ||
24fd6d87 | 8116 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
d558c907 | 8117 | echo "configure:8118: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8118 | no_cache=0 |
8119 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8120 | if test "${enable_dragimage+set}" = set; then | |
8121 | enableval="$enable_dragimage" | |
8122 | ||
8123 | if test "$enableval" = yes; then | |
8124 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8125 | else | |
8126 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8127 | fi | |
8128 | ||
8129 | else | |
8130 | ||
8131 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8132 | if test "x$LINE" != x ; then | |
8133 | eval "DEFAULT_$LINE" | |
8134 | else | |
8135 | no_cache=1 | |
8136 | fi | |
8137 | ||
8138 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8139 | ||
8140 | fi | |
8141 | ||
8142 | ||
8143 | eval "$ac_cv_use_dragimage" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8149 | echo "$ac_t""yes" 1>&6 | |
8150 | else | |
8151 | echo "$ac_t""no" 1>&6 | |
8152 | fi | |
8153 | ||
8154 | ||
10f2d63a | 8155 | |
698dcdb6 | 8156 | |
edae8572 | 8157 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
d558c907 | 8158 | echo "configure:8159: checking for --enable-palette" >&5 |
edae8572 VZ |
8159 | no_cache=0 |
8160 | # Check whether --enable-palette or --disable-palette was given. | |
8161 | if test "${enable_palette+set}" = set; then | |
8162 | enableval="$enable_palette" | |
8163 | ||
8164 | if test "$enableval" = yes; then | |
8165 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8166 | else | |
8167 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8168 | fi | |
8169 | ||
8170 | else | |
8171 | ||
8172 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8173 | if test "x$LINE" != x ; then | |
8174 | eval "DEFAULT_$LINE" | |
8175 | else | |
8176 | no_cache=1 | |
8177 | fi | |
8178 | ||
8179 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8180 | ||
8181 | fi | |
8182 | ||
8183 | ||
8184 | eval "$ac_cv_use_palette" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_PALETTE" = yes; then | |
8190 | echo "$ac_t""yes" 1>&6 | |
8191 | else | |
8192 | echo "$ac_t""no" 1>&6 | |
8193 | fi | |
8194 | ||
8195 | ||
698dcdb6 | 8196 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
d558c907 | 8197 | echo "configure:8198: checking for --enable-image" >&5 |
0046ff7c VS |
8198 | no_cache=0 |
8199 | # Check whether --enable-image or --disable-image was given. | |
8200 | if test "${enable_image+set}" = set; then | |
8201 | enableval="$enable_image" | |
698dcdb6 | 8202 | |
0046ff7c VS |
8203 | if test "$enableval" = yes; then |
8204 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8205 | else | |
8206 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8207 | fi | |
698dcdb6 | 8208 | |
0046ff7c | 8209 | else |
698dcdb6 | 8210 | |
0046ff7c VS |
8211 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8212 | if test "x$LINE" != x ; then | |
8213 | eval "DEFAULT_$LINE" | |
8214 | else | |
8215 | no_cache=1 | |
8216 | fi | |
8217 | ||
8218 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8219 | |
8220 | fi | |
0046ff7c VS |
8221 | |
8222 | ||
8223 | eval "$ac_cv_use_image" | |
8224 | if test "$no_cache" != 1; then | |
8225 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8226 | fi | |
8227 | ||
8228 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8229 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8230 | else |
698dcdb6 | 8231 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8232 | fi |
698dcdb6 | 8233 | |
0046ff7c | 8234 | |
698dcdb6 | 8235 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
d558c907 | 8236 | echo "configure:8237: checking for --enable-gif" >&5 |
10f2d63a VZ |
8237 | no_cache=0 |
8238 | # Check whether --enable-gif or --disable-gif was given. | |
8239 | if test "${enable_gif+set}" = set; then | |
8240 | enableval="$enable_gif" | |
698dcdb6 | 8241 | |
10f2d63a VZ |
8242 | if test "$enableval" = yes; then |
8243 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8244 | else | |
8245 | ac_cv_use_gif='wxUSE_GIF=no' | |
8246 | fi | |
698dcdb6 | 8247 | |
10f2d63a | 8248 | else |
698dcdb6 | 8249 | |
10f2d63a VZ |
8250 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8251 | if test "x$LINE" != x ; then | |
8252 | eval "DEFAULT_$LINE" | |
8253 | else | |
8254 | no_cache=1 | |
8255 | fi | |
8256 | ||
8257 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8258 | |
8259 | fi | |
10f2d63a VZ |
8260 | |
8261 | ||
8262 | eval "$ac_cv_use_gif" | |
8263 | if test "$no_cache" != 1; then | |
8264 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8265 | fi | |
8266 | ||
8267 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8268 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8269 | else |
698dcdb6 | 8270 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8271 | fi |
698dcdb6 | 8272 | |
10f2d63a | 8273 | |
698dcdb6 | 8274 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
d558c907 | 8275 | echo "configure:8276: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8276 | no_cache=0 |
8277 | # Check whether --enable-pcx or --disable-pcx was given. | |
8278 | if test "${enable_pcx+set}" = set; then | |
8279 | enableval="$enable_pcx" | |
698dcdb6 | 8280 | |
10f2d63a VZ |
8281 | if test "$enableval" = yes; then |
8282 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8283 | else | |
8284 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8285 | fi | |
698dcdb6 | 8286 | |
10f2d63a | 8287 | else |
698dcdb6 | 8288 | |
10f2d63a VZ |
8289 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8290 | if test "x$LINE" != x ; then | |
8291 | eval "DEFAULT_$LINE" | |
8292 | else | |
8293 | no_cache=1 | |
8294 | fi | |
8295 | ||
8296 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8297 | |
8298 | fi | |
10f2d63a VZ |
8299 | |
8300 | ||
8301 | eval "$ac_cv_use_pcx" | |
8302 | if test "$no_cache" != 1; then | |
8303 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8304 | fi | |
8305 | ||
8306 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8307 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8308 | else |
698dcdb6 | 8309 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8310 | fi |
698dcdb6 | 8311 | |
10f2d63a | 8312 | |
4b6b4dfc | 8313 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
d558c907 | 8314 | echo "configure:8315: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8315 | no_cache=0 |
8316 | # Check whether --enable-iff or --disable-iff was given. | |
8317 | if test "${enable_iff+set}" = set; then | |
8318 | enableval="$enable_iff" | |
8319 | ||
8320 | if test "$enableval" = yes; then | |
8321 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8322 | else | |
8323 | ac_cv_use_iff='wxUSE_IFF=no' | |
8324 | fi | |
8325 | ||
8326 | else | |
8327 | ||
8328 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8329 | if test "x$LINE" != x ; then | |
8330 | eval "DEFAULT_$LINE" | |
8331 | else | |
8332 | no_cache=1 | |
8333 | fi | |
8334 | ||
8335 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8336 | ||
8337 | fi | |
8338 | ||
8339 | ||
8340 | eval "$ac_cv_use_iff" | |
8341 | if test "$no_cache" != 1; then | |
8342 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8343 | fi | |
8344 | ||
8345 | if test "$wxUSE_IFF" = yes; then | |
8346 | echo "$ac_t""yes" 1>&6 | |
8347 | else | |
8348 | echo "$ac_t""no" 1>&6 | |
8349 | fi | |
8350 | ||
8351 | ||
698dcdb6 | 8352 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
d558c907 | 8353 | echo "configure:8354: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8354 | no_cache=0 |
8355 | # Check whether --enable-pnm or --disable-pnm was given. | |
8356 | if test "${enable_pnm+set}" = set; then | |
8357 | enableval="$enable_pnm" | |
698dcdb6 | 8358 | |
10f2d63a VZ |
8359 | if test "$enableval" = yes; then |
8360 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8361 | else | |
8362 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8363 | fi | |
698dcdb6 | 8364 | |
10f2d63a | 8365 | else |
698dcdb6 | 8366 | |
10f2d63a VZ |
8367 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8368 | if test "x$LINE" != x ; then | |
8369 | eval "DEFAULT_$LINE" | |
8370 | else | |
8371 | no_cache=1 | |
8372 | fi | |
8373 | ||
8374 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8375 | |
8376 | fi | |
10f2d63a VZ |
8377 | |
8378 | ||
8379 | eval "$ac_cv_use_pnm" | |
8380 | if test "$no_cache" != 1; then | |
8381 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8382 | fi | |
8383 | ||
8384 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8385 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8386 | else |
698dcdb6 | 8387 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8388 | fi |
698dcdb6 | 8389 | |
10f2d63a | 8390 | |
69d27ff7 | 8391 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
d558c907 | 8392 | echo "configure:8393: checking for --enable-xpm" >&5 |
0046ff7c | 8393 | no_cache=0 |
69d27ff7 MB |
8394 | # Check whether --enable-xpm or --disable-xpm was given. |
8395 | if test "${enable_xpm+set}" = set; then | |
8396 | enableval="$enable_xpm" | |
698dcdb6 | 8397 | |
0046ff7c | 8398 | if test "$enableval" = yes; then |
69d27ff7 | 8399 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8400 | else |
69d27ff7 | 8401 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8402 | fi |
698dcdb6 | 8403 | |
0046ff7c | 8404 | else |
698dcdb6 | 8405 | |
0046ff7c VS |
8406 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8407 | if test "x$LINE" != x ; then | |
8408 | eval "DEFAULT_$LINE" | |
8409 | else | |
8410 | no_cache=1 | |
8411 | fi | |
8412 | ||
69d27ff7 | 8413 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8414 | |
8415 | fi | |
0046ff7c VS |
8416 | |
8417 | ||
69d27ff7 | 8418 | eval "$ac_cv_use_xpm" |
0046ff7c | 8419 | if test "$no_cache" != 1; then |
69d27ff7 | 8420 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8421 | fi |
8422 | ||
8423 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8424 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8425 | else |
698dcdb6 | 8426 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8427 | fi |
698dcdb6 | 8428 | |
0046ff7c | 8429 | |
c7206e64 | 8430 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
d558c907 | 8431 | echo "configure:8432: checking for --enable-ico_cur" >&5 |
658974ae | 8432 | no_cache=0 |
c7206e64 VS |
8433 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8434 | if test "${enable_ico_cur+set}" = set; then | |
8435 | enableval="$enable_ico_cur" | |
658974ae VS |
8436 | |
8437 | if test "$enableval" = yes; then | |
c7206e64 | 8438 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8439 | else |
c7206e64 | 8440 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8441 | fi |
8442 | ||
8443 | else | |
8444 | ||
8445 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8446 | if test "x$LINE" != x ; then | |
8447 | eval "DEFAULT_$LINE" | |
8448 | else | |
8449 | no_cache=1 | |
8450 | fi | |
8451 | ||
c7206e64 | 8452 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8453 | |
8454 | fi | |
8455 | ||
8456 | ||
c7206e64 | 8457 | eval "$ac_cv_use_ico_cur" |
658974ae | 8458 | if test "$no_cache" != 1; then |
c7206e64 | 8459 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8460 | fi |
8461 | ||
8462 | if test "$wxUSE_ICO_CUR" = yes; then | |
8463 | echo "$ac_t""yes" 1>&6 | |
8464 | else | |
8465 | echo "$ac_t""no" 1>&6 | |
8466 | fi | |
8467 | ||
8468 | ||
b12915c1 VZ |
8469 | fi |
8470 | ||
d558c907 VS |
8471 | case "${host}" in |
8472 | *-pc-os2_emx | *-pc-os2-emx ) | |
8473 | LEX_STEM="lexyy" | |
8474 | ;; | |
8475 | *) | |
8476 | PATH_IFS=':' | |
8477 | LEX_STEM="lex.yy" | |
8478 | ;; | |
8479 | esac | |
8480 | ||
8481 | ||
698dcdb6 | 8482 | |
10f2d63a VZ |
8483 | echo "saving argument cache $wx_arg_cache_file" |
8484 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8485 | |
10f2d63a | 8486 | |
698dcdb6 VZ |
8487 | |
8488 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
d558c907 | 8489 | echo "configure:8490: checking for toolkit" >&5 |
10f2d63a VZ |
8490 | |
8491 | if test "$wxUSE_GUI" = "yes"; then | |
8492 | ||
3a922bb4 RL |
8493 | if test "$USE_BEOS" = 1; then |
8494 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8495 | fi | |
b12915c1 | 8496 | |
3a922bb4 RL |
8497 | if test "$TOOLKIT_GIVEN" = 1; then |
8498 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8499 | var=wxUSE_$toolkit | |
8500 | eval "value=\$${var}" | |
8501 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8502 | done | |
10f2d63a | 8503 | else |
3a922bb4 RL |
8504 | for toolkit in `echo $ALL_TOOLKITS`; do |
8505 | if test "$has_toolkit_in_cache" != 1; then | |
8506 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8507 | else | |
8508 | var=DEFAULT_wxUSE_$toolkit | |
8509 | fi | |
8510 | eval "wxUSE_$toolkit=\$${var}" | |
8511 | done | |
10f2d63a | 8512 | fi |
10f2d63a | 8513 | |
3a922bb4 | 8514 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8515 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8516 | |
d558c907 | 8517 | case "${host}" in |
6fa882bd | 8518 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8519 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8520 | esac |
10f2d63a | 8521 | |
3a922bb4 RL |
8522 | case "$NUM_TOOLKITS" in |
8523 | 1) | |
8524 | ;; | |
8525 | 0) | |
8526 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8527 | ;; | |
8528 | *) | |
8529 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8530 | esac | |
10f2d63a | 8531 | |
3a922bb4 RL |
8532 | for toolkit in `echo $ALL_TOOLKITS`; do |
8533 | var=wxUSE_$toolkit | |
8534 | eval "value=\$${var}" | |
8535 | if test "x$value" != x; then | |
8536 | cache_var=CACHE_$toolkit | |
8537 | eval "cache=\$${cache_var}" | |
8538 | if test "$cache" = 1; then | |
8539 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8540 | fi | |
8541 | if test "$value" = 1; then | |
8542 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8543 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8544 | fi | |
8545 | fi | |
8546 | done | |
10f2d63a | 8547 | else |
3a922bb4 | 8548 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8549 | fi |
8550 | ||
698dcdb6 VZ |
8551 | |
8552 | cat > confcache <<\EOF | |
10f2d63a VZ |
8553 | # This file is a shell script that caches the results of configure |
8554 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8555 | # scripts and configure runs. It is not useful on other systems. |
8556 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8557 | # |
698dcdb6 VZ |
8558 | # By default, configure uses ./config.cache as the cache file, |
8559 | # creating it if it does not exist already. You can give configure | |
8560 | # the --cache-file=FILE option to use a different cache file; that is | |
8561 | # what configure does when it calls configure scripts in | |
8562 | # subdirectories, so they share the cache. | |
8563 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8564 | # config.status only pays attention to the cache file if you give it the | |
8565 | # --recheck option to rerun configure. | |
10f2d63a | 8566 | # |
698dcdb6 | 8567 | EOF |
10f2d63a VZ |
8568 | # The following way of writing the cache mishandles newlines in values, |
8569 | # but we know of no workaround that is simple, portable, and efficient. | |
8570 | # So, don't put newlines in cache variables' values. | |
8571 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8572 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8573 | (set) 2>&1 | |
8574 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8575 | *ac_space=\ *) | |
8576 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8577 | # turns \\\\ into \\, and sed turns \\ into \). | |
8578 | sed -n \ | |
8579 | -e "s/'/'\\\\''/g" \ | |
8580 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8581 | ;; | |
8582 | *) | |
8583 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8584 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8585 | ;; | |
8586 | esac >> confcache | |
8587 | if cmp -s $cache_file confcache; then | |
8588 | : | |
8589 | else | |
10f2d63a | 8590 | if test -w $cache_file; then |
698dcdb6 VZ |
8591 | echo "updating cache $cache_file" |
8592 | cat confcache > $cache_file | |
10f2d63a VZ |
8593 | else |
8594 | echo "not updating unwritable cache $cache_file" | |
8595 | fi | |
8596 | fi | |
8597 | rm -f confcache | |
8598 | ||
698dcdb6 | 8599 | |
e59890c3 | 8600 | if test "$build" != "$host" ; then |
f9bc1684 | 8601 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8602 | CC=$host_alias-gcc |
8603 | CXX=$host_alias-c++ | |
8604 | AR=$host_alias-ar | |
8605 | RANLIB=$host_alias-ranlib | |
8606 | DLLTOOL=$host_alias-dlltool | |
8607 | RESCOMP=$host_alias-windres | |
8608 | LD=$host_alias-ld | |
8609 | NM=$host_alias-nm | |
8610 | STRIP=$host_alias-strip | |
8611 | else | |
8612 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8613 | fi | |
10f2d63a VZ |
8614 | fi |
8615 | ||
698dcdb6 | 8616 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8617 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8618 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 8619 | echo "configure:8620: checking for $ac_word" >&5 |
698dcdb6 VZ |
8620 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8622 | else |
8623 | if test -n "$CC"; then | |
8624 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8625 | else |
698dcdb6 VZ |
8626 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8627 | ac_dummy="$PATH" | |
8628 | for ac_dir in $ac_dummy; do | |
8629 | test -z "$ac_dir" && ac_dir=. | |
8630 | if test -f $ac_dir/$ac_word; then | |
8631 | ac_cv_prog_CC="gcc" | |
8632 | break | |
8633 | fi | |
8634 | done | |
8635 | IFS="$ac_save_ifs" | |
10f2d63a | 8636 | fi |
6232543b | 8637 | fi |
698dcdb6 | 8638 | CC="$ac_cv_prog_CC" |
6232543b | 8639 | if test -n "$CC"; then |
698dcdb6 | 8640 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8641 | else |
698dcdb6 | 8642 | echo "$ac_t""no" 1>&6 |
1e487827 | 8643 | fi |
6232543b | 8644 | |
1e487827 VS |
8645 | if test -z "$CC"; then |
8646 | # Extract the first word of "cc", so it can be a program name with args. | |
8647 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 8649 | echo "configure:8650: checking for $ac_word" >&5 |
698dcdb6 VZ |
8650 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8652 | else |
8653 | if test -n "$CC"; then | |
8654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8655 | else | |
698dcdb6 | 8656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8657 | ac_prog_rejected=no |
698dcdb6 VZ |
8658 | ac_dummy="$PATH" |
8659 | for ac_dir in $ac_dummy; do | |
8660 | test -z "$ac_dir" && ac_dir=. | |
8661 | if test -f $ac_dir/$ac_word; then | |
8662 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8663 | ac_prog_rejected=yes | |
8664 | continue | |
8665 | fi | |
8666 | ac_cv_prog_CC="cc" | |
8667 | break | |
8668 | fi | |
8669 | done | |
8670 | IFS="$ac_save_ifs" | |
1e487827 VS |
8671 | if test $ac_prog_rejected = yes; then |
8672 | # We found a bogon in the path, so make sure we never use it. | |
8673 | set dummy $ac_cv_prog_CC | |
8674 | shift | |
698dcdb6 | 8675 | if test $# -gt 0; then |
1e487827 VS |
8676 | # We chose a different compiler from the bogus one. |
8677 | # However, it has the same basename, so the bogon will be chosen | |
8678 | # first if we set CC to just the basename; use the full file name. | |
8679 | shift | |
698dcdb6 | 8680 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8681 | shift |
8682 | ac_cv_prog_CC="$@" | |
703e0a69 | 8683 | fi |
1e487827 VS |
8684 | fi |
8685 | fi | |
8686 | fi | |
698dcdb6 | 8687 | CC="$ac_cv_prog_CC" |
1e487827 | 8688 | if test -n "$CC"; then |
698dcdb6 | 8689 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8690 | else |
698dcdb6 | 8691 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8692 | fi |
1e487827 | 8693 | |
698dcdb6 VZ |
8694 | if test -z "$CC"; then |
8695 | case "`uname -s`" in | |
8696 | *win32* | *WIN32*) | |
8697 | # Extract the first word of "cl", so it can be a program name with args. | |
8698 | set dummy cl; ac_word=$2 | |
8699 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d558c907 | 8700 | echo "configure:8701: checking for $ac_word" >&5 |
698dcdb6 VZ |
8701 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8703 | else |
8704 | if test -n "$CC"; then | |
8705 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8706 | else |
698dcdb6 VZ |
8707 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8708 | ac_dummy="$PATH" | |
8709 | for ac_dir in $ac_dummy; do | |
8710 | test -z "$ac_dir" && ac_dir=. | |
8711 | if test -f $ac_dir/$ac_word; then | |
8712 | ac_cv_prog_CC="cl" | |
8713 | break | |
8714 | fi | |
8715 | done | |
8716 | IFS="$ac_save_ifs" | |
703e0a69 | 8717 | fi |
1e487827 | 8718 | fi |
698dcdb6 | 8719 | CC="$ac_cv_prog_CC" |
1e487827 | 8720 | if test -n "$CC"; then |
698dcdb6 | 8721 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8722 | else |
698dcdb6 | 8723 | echo "$ac_t""no" 1>&6 |
1e487827 | 8724 | fi |
698dcdb6 VZ |
8725 | ;; |
8726 | esac | |
8727 | fi | |
8728 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8729 | fi |
8730 | ||
698dcdb6 | 8731 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d558c907 | 8732 | echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8733 | |
698dcdb6 VZ |
8734 | ac_ext=c |
8735 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8736 | ac_cpp='$CPP $CPPFLAGS' | |
8737 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8738 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8739 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8740 | |
698dcdb6 | 8741 | cat > conftest.$ac_ext << EOF |
1e487827 | 8742 | |
d558c907 | 8743 | #line 8744 "configure" |
1e487827 VS |
8744 | #include "confdefs.h" |
8745 | ||
698dcdb6 VZ |
8746 | main(){return(0);} |
8747 | EOF | |
d558c907 | 8748 | if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8749 | ac_cv_prog_cc_works=yes |
8750 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8751 | if (./conftest; exit) 2>/dev/null; then | |
8752 | ac_cv_prog_cc_cross=no | |
8753 | else | |
8754 | ac_cv_prog_cc_cross=yes | |
8755 | fi | |
8756 | else | |
8757 | echo "configure: failed program was:" >&5 | |
8758 | cat conftest.$ac_ext >&5 | |
8759 | ac_cv_prog_cc_works=no | |
8760 | fi | |
8761 | rm -fr conftest* | |
8762 | ac_ext=c | |
8763 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8764 | ac_cpp='$CPP $CPPFLAGS' | |
8765 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8766 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8767 | cross_compiling=$ac_cv_prog_cc_cross | |
8768 | ||
8769 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8770 | if test $ac_cv_prog_cc_works = no; then | |
8771 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8772 | fi | |
8773 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d558c907 | 8774 | echo "configure:8775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8775 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8776 | cross_compiling=$ac_cv_prog_cc_cross | |
8777 | ||
8778 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d558c907 | 8779 | echo "configure:8780: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8780 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8782 | else | |
8783 | cat > conftest.c <<EOF | |
8784 | #ifdef __GNUC__ | |
8785 | yes; | |
1e487827 | 8786 | #endif |
698dcdb6 | 8787 | EOF |
d558c907 | 8788 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8789 | ac_cv_prog_gcc=yes |
8790 | else | |
8791 | ac_cv_prog_gcc=no | |
8792 | fi | |
8793 | fi | |
1e487827 | 8794 | |
698dcdb6 | 8795 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8796 | |
698dcdb6 VZ |
8797 | if test $ac_cv_prog_gcc = yes; then |
8798 | GCC=yes | |
8799 | else | |
8800 | GCC= | |
8801 | fi | |
1e487827 | 8802 | |
698dcdb6 VZ |
8803 | ac_test_CFLAGS="${CFLAGS+set}" |
8804 | ac_save_CFLAGS="$CFLAGS" | |
8805 | CFLAGS= | |
8806 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d558c907 | 8807 | echo "configure:8808: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8808 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8810 | else | |
8811 | echo 'void f(){}' > conftest.c | |
8812 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8813 | ac_cv_prog_cc_g=yes |
8814 | else | |
698dcdb6 | 8815 | ac_cv_prog_cc_g=no |
10f2d63a | 8816 | fi |
698dcdb6 VZ |
8817 | rm -f conftest* |
8818 | ||
10f2d63a | 8819 | fi |
698dcdb6 VZ |
8820 | |
8821 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8822 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8823 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8824 | elif test $ac_cv_prog_cc_g = yes; then |
8825 | if test "$GCC" = yes; then | |
8826 | CFLAGS="-g -O2" | |
8827 | else | |
8828 | CFLAGS="-g" | |
8829 | fi | |
8830 | else | |
8831 | if test "$GCC" = yes; then | |
8832 | CFLAGS="-O2" | |
8833 | else | |
8834 | CFLAGS= | |
8835 | fi | |
8836 | fi | |
8837 | ||
8838 | ||
8839 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8840 | ||
698dcdb6 | 8841 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
d558c907 | 8842 | echo "configure:8843: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8843 | # On Suns, sometimes $CPP names a directory. |
8844 | if test -n "$CPP" && test -d "$CPP"; then | |
8845 | CPP= | |
8846 | fi | |
8847 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8848 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8850 | else | |
8851 | # This must be in double quotes, not single quotes, because CPP may get | |
8852 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8853 | CPP="${CC-cc} -E" | |
10f2d63a | 8854 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8855 | # not just through cpp. |
8856 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 8857 | #line 8858 "configure" |
10f2d63a VZ |
8858 | #include "confdefs.h" |
8859 | #include <assert.h> | |
698dcdb6 VZ |
8860 | Syntax Error |
8861 | EOF | |
8862 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 8863 | { (eval echo configure:8864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8864 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8865 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8866 | : |
8867 | else | |
698dcdb6 VZ |
8868 | echo "$ac_err" >&5 |
8869 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8870 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8871 | rm -rf conftest* |
8872 | CPP="${CC-cc} -E -traditional-cpp" | |
8873 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 8874 | #line 8875 "configure" |
10f2d63a | 8875 | #include "confdefs.h" |
698dcdb6 VZ |
8876 | #include <assert.h> |
8877 | Syntax Error | |
8878 | EOF | |
8879 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 8880 | { (eval echo configure:8881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8881 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8882 | if test -z "$ac_err"; then | |
8883 | : | |
10f2d63a | 8884 | else |
698dcdb6 VZ |
8885 | echo "$ac_err" >&5 |
8886 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8887 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8888 | rm -rf conftest* |
8889 | CPP="${CC-cc} -nologo -E" | |
8890 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 8891 | #line 8892 "configure" |
10f2d63a VZ |
8892 | #include "confdefs.h" |
8893 | #include <assert.h> | |
698dcdb6 VZ |
8894 | Syntax Error |
8895 | EOF | |
8896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 8897 | { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8899 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8900 | : |
8901 | else | |
698dcdb6 VZ |
8902 | echo "$ac_err" >&5 |
8903 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8904 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8905 | rm -rf conftest* |
8906 | CPP=/lib/cpp | |
10f2d63a | 8907 | fi |
698dcdb6 | 8908 | rm -f conftest* |
10f2d63a | 8909 | fi |
698dcdb6 | 8910 | rm -f conftest* |
703e0a69 | 8911 | fi |
698dcdb6 VZ |
8912 | rm -f conftest* |
8913 | ac_cv_prog_CPP="$CPP" | |
8914 | fi | |
8915 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8916 | else |
698dcdb6 | 8917 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8918 | fi |
698dcdb6 | 8919 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8920 | |
698dcdb6 VZ |
8921 | if test $ac_cv_prog_gcc = yes; then |
8922 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d558c907 | 8923 | echo "configure:8924: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8924 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8926 | else |
8927 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8928 | cat > conftest.$ac_ext <<EOF |
d558c907 | 8929 | #line 8930 "configure" |
10f2d63a VZ |
8930 | #include "confdefs.h" |
8931 | #include <sgtty.h> | |
8932 | Autoconf TIOCGETP | |
698dcdb6 | 8933 | EOF |
10f2d63a VZ |
8934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8935 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8936 | rm -rf conftest* |
10f2d63a VZ |
8937 | ac_cv_prog_gcc_traditional=yes |
8938 | else | |
698dcdb6 | 8939 | rm -rf conftest* |
10f2d63a VZ |
8940 | ac_cv_prog_gcc_traditional=no |
8941 | fi | |
8942 | rm -f conftest* | |
8943 | ||
698dcdb6 | 8944 | |
10f2d63a | 8945 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8946 | cat > conftest.$ac_ext <<EOF |
d558c907 | 8947 | #line 8948 "configure" |
10f2d63a VZ |
8948 | #include "confdefs.h" |
8949 | #include <termio.h> | |
8950 | Autoconf TCGETA | |
698dcdb6 | 8951 | EOF |
10f2d63a VZ |
8952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8953 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8954 | rm -rf conftest* |
10f2d63a VZ |
8955 | ac_cv_prog_gcc_traditional=yes |
8956 | fi | |
8957 | rm -f conftest* | |
8958 | ||
8959 | fi | |
8960 | fi | |
698dcdb6 VZ |
8961 | |
8962 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8963 | if test $ac_cv_prog_gcc_traditional = yes; then |
8964 | CC="$CC -traditional" | |
8965 | fi | |
8966 | fi | |
8967 | ||
703e0a69 | 8968 | |
698dcdb6 VZ |
8969 | |
8970 | ac_ext=C | |
8971 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8972 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8973 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8974 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8975 | cross_compiling=$ac_cv_prog_cxx_cross | |
8976 | ||
8977 | ||
8978 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8979 | do | |
8980 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8981 | set dummy $ac_prog; ac_word=$2 | |
8982 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d558c907 | 8983 | echo "configure:8984: checking for $ac_word" >&5 |
698dcdb6 VZ |
8984 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8986 | else |
8987 | if test -n "$CXX"; then | |
8988 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8989 | else | |
698dcdb6 VZ |
8990 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8991 | ac_dummy="$PATH" | |
8992 | for ac_dir in $ac_dummy; do | |
8993 | test -z "$ac_dir" && ac_dir=. | |
8994 | if test -f $ac_dir/$ac_word; then | |
8995 | ac_cv_prog_CXX="$ac_prog" | |
8996 | break | |
8997 | fi | |
8998 | done | |
8999 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9000 | fi |
9001 | fi | |
698dcdb6 | 9002 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9003 | if test -n "$CXX"; then |
698dcdb6 | 9004 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9005 | else |
698dcdb6 | 9006 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9007 | fi |
9008 | ||
698dcdb6 | 9009 | test -n "$CXX" && break |
10f2d63a | 9010 | done |
698dcdb6 | 9011 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9012 | |
9013 | ||
698dcdb6 | 9014 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d558c907 | 9015 | echo "configure:9016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9016 | |
698dcdb6 VZ |
9017 | ac_ext=C |
9018 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9019 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9020 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9021 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9022 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9023 | |
698dcdb6 VZ |
9024 | cat > conftest.$ac_ext << EOF |
9025 | ||
d558c907 | 9026 | #line 9027 "configure" |
10f2d63a VZ |
9027 | #include "confdefs.h" |
9028 | ||
698dcdb6 VZ |
9029 | int main(){return(0);} |
9030 | EOF | |
d558c907 | 9031 | if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9032 | ac_cv_prog_cxx_works=yes |
9033 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9034 | if (./conftest; exit) 2>/dev/null; then | |
9035 | ac_cv_prog_cxx_cross=no | |
9036 | else | |
9037 | ac_cv_prog_cxx_cross=yes | |
9038 | fi | |
9039 | else | |
9040 | echo "configure: failed program was:" >&5 | |
9041 | cat conftest.$ac_ext >&5 | |
9042 | ac_cv_prog_cxx_works=no | |
9043 | fi | |
9044 | rm -fr conftest* | |
9045 | ac_ext=C | |
9046 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9047 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9048 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9049 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9050 | cross_compiling=$ac_cv_prog_cxx_cross | |
9051 | ||
9052 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9053 | if test $ac_cv_prog_cxx_works = no; then | |
9054 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9055 | fi | |
9056 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d558c907 | 9057 | echo "configure:9058: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9058 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9059 | cross_compiling=$ac_cv_prog_cxx_cross | |
9060 | ||
9061 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d558c907 | 9062 | echo "configure:9063: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9063 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9065 | else | |
9066 | cat > conftest.C <<EOF | |
9067 | #ifdef __GNUC__ | |
9068 | yes; | |
10f2d63a | 9069 | #endif |
698dcdb6 | 9070 | EOF |
d558c907 | 9071 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9072 | ac_cv_prog_gxx=yes |
9073 | else | |
9074 | ac_cv_prog_gxx=no | |
9075 | fi | |
9076 | fi | |
10f2d63a | 9077 | |
698dcdb6 | 9078 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9079 | |
698dcdb6 VZ |
9080 | if test $ac_cv_prog_gxx = yes; then |
9081 | GXX=yes | |
9082 | else | |
9083 | GXX= | |
9084 | fi | |
10f2d63a | 9085 | |
698dcdb6 VZ |
9086 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9087 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9088 | CXXFLAGS= | |
9089 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
d558c907 | 9090 | echo "configure:9091: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9091 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9093 | else | |
9094 | echo 'void f(){}' > conftest.cc | |
9095 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9096 | ac_cv_prog_cxx_g=yes |
9097 | else | |
698dcdb6 | 9098 | ac_cv_prog_cxx_g=no |
10f2d63a | 9099 | fi |
698dcdb6 VZ |
9100 | rm -f conftest* |
9101 | ||
10f2d63a | 9102 | fi |
698dcdb6 VZ |
9103 | |
9104 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9105 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9106 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9107 | elif test $ac_cv_prog_cxx_g = yes; then |
9108 | if test "$GXX" = yes; then | |
9109 | CXXFLAGS="-g -O2" | |
9110 | else | |
9111 | CXXFLAGS="-g" | |
9112 | fi | |
9113 | else | |
9114 | if test "$GXX" = yes; then | |
9115 | CXXFLAGS="-O2" | |
9116 | else | |
9117 | CXXFLAGS= | |
9118 | fi | |
9119 | fi | |
9120 | ||
9121 | ||
10f2d63a VZ |
9122 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
9123 | ||
9124 | ac_ext=c | |
698dcdb6 | 9125 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9126 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9127 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9128 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9129 | cross_compiling=$ac_cv_prog_cc_cross | |
9130 | ||
9131 | ||
9132 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9133 | set dummy ranlib; ac_word=$2 | |
9134 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d558c907 | 9135 | echo "configure:9136: checking for $ac_word" >&5 |
698dcdb6 VZ |
9136 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9138 | else |
9139 | if test -n "$RANLIB"; then | |
9140 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9141 | else | |
698dcdb6 VZ |
9142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9143 | ac_dummy="$PATH" | |
9144 | for ac_dir in $ac_dummy; do | |
9145 | test -z "$ac_dir" && ac_dir=. | |
9146 | if test -f $ac_dir/$ac_word; then | |
9147 | ac_cv_prog_RANLIB="ranlib" | |
9148 | break | |
9149 | fi | |
9150 | done | |
9151 | IFS="$ac_save_ifs" | |
9152 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9153 | fi |
9154 | fi | |
698dcdb6 | 9155 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9156 | if test -n "$RANLIB"; then |
698dcdb6 | 9157 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9158 | else |
698dcdb6 | 9159 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9160 | fi |
9161 | ||
9162 | ||
9163 | # Extract the first word of "ar", so it can be a program name with args. | |
9164 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9165 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 9166 | echo "configure:9167: checking for $ac_word" >&5 |
698dcdb6 VZ |
9167 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9169 | else |
9170 | if test -n "$AR"; then | |
9171 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9172 | else | |
698dcdb6 VZ |
9173 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9174 | ac_dummy="$PATH" | |
9175 | for ac_dir in $ac_dummy; do | |
9176 | test -z "$ac_dir" && ac_dir=. | |
9177 | if test -f $ac_dir/$ac_word; then | |
9178 | ac_cv_prog_AR="ar" | |
9179 | break | |
9180 | fi | |
9181 | done | |
9182 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9183 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9184 | fi | |
9185 | fi | |
698dcdb6 | 9186 | AR="$ac_cv_prog_AR" |
10f2d63a | 9187 | if test -n "$AR"; then |
698dcdb6 | 9188 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9189 | else |
698dcdb6 | 9190 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9191 | fi |
9192 | ||
698dcdb6 | 9193 | |
6054113a | 9194 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9195 | # so one script is as good as another. But avoid the broken or |
9196 | # incompatible versions: | |
9197 | # SysV /etc/install, /usr/sbin/install | |
9198 | # SunOS /usr/etc/install | |
9199 | # IRIX /sbin/install | |
9200 | # AIX /bin/install | |
9201 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9202 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9203 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9204 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9205 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
d558c907 | 9206 | echo "configure:9207: checking for a BSD compatible install" >&5 |
10f2d63a | 9207 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9208 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9210 | else |
698dcdb6 | 9211 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9212 | for ac_dir in $PATH; do |
9213 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9214 | case "$ac_dir/" in |
9215 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9216 | *) |
9217 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9218 | # Don't use installbsd from OSF since it installs stuff as root | |
9219 | # by default. | |
9220 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9221 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9222 | if test $ac_prog = install && |
698dcdb6 | 9223 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9224 | # AIX install. It has an incompatible calling convention. |
9225 | : | |
9226 | else | |
9227 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9228 | break 2 | |
9229 | fi | |
9230 | fi | |
9231 | done | |
9232 | ;; | |
9233 | esac | |
9234 | done | |
698dcdb6 | 9235 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9236 | |
9237 | fi | |
9238 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9239 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9240 | else |
9241 | # As a last resort, use the slow shell script. We don't cache a | |
9242 | # path for INSTALL within a source directory, because that will | |
9243 | # break other packages using the cache if that directory is | |
9244 | # removed, or if the path is relative. | |
698dcdb6 | 9245 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9246 | fi |
9247 | fi | |
698dcdb6 | 9248 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9249 | |
9250 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9251 | # It thinks the first close brace ends the variable substitution. | |
9252 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9253 | ||
698dcdb6 | 9254 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9255 | |
9256 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9257 | ||
6054113a GD |
9258 | case "${host}" in |
9259 | ||
b5853384 | 9260 | powerpc-*-darwin* ) |
eb99ae0b GD |
9261 | INSTALL_PROGRAM="cp -fp" |
9262 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9263 | ;; |
9264 | *) | |
9265 | ;; | |
d6853540 | 9266 | esac |
698dcdb6 | 9267 | |
10f2d63a VZ |
9268 | # Extract the first word of "strip", so it can be a program name with args. |
9269 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9270 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 9271 | echo "configure:9272: checking for $ac_word" >&5 |
698dcdb6 VZ |
9272 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9274 | else |
9275 | if test -n "$STRIP"; then | |
9276 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9277 | else | |
698dcdb6 VZ |
9278 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9279 | ac_dummy="$PATH" | |
9280 | for ac_dir in $ac_dummy; do | |
9281 | test -z "$ac_dir" && ac_dir=. | |
9282 | if test -f $ac_dir/$ac_word; then | |
9283 | ac_cv_prog_STRIP="strip" | |
9284 | break | |
9285 | fi | |
9286 | done | |
9287 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9288 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9289 | fi | |
9290 | fi | |
698dcdb6 | 9291 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9292 | if test -n "$STRIP"; then |
698dcdb6 | 9293 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9294 | else |
698dcdb6 | 9295 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9296 | fi |
9297 | ||
698dcdb6 | 9298 | |
414eab6d | 9299 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
d558c907 | 9300 | echo "configure:9301: checking if make is GNU make" >&5 |
414eab6d VZ |
9301 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9303 | else | |
9304 | ||
9305 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9306 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9307 | wx_cv_prog_makeisgnu="yes" |
9308 | else | |
9309 | wx_cv_prog_makeisgnu="no" | |
9310 | fi | |
9311 | ||
9312 | fi | |
9313 | ||
9314 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9315 | ||
9316 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9317 | IF_GNU_MAKE="" | |
9318 | else | |
9319 | IF_GNU_MAKE="#" | |
9320 | fi | |
9321 | ||
9322 | ||
9323 | ||
9324 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9325 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
d558c907 | 9326 | echo "configure:9327: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9327 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9329 | else | |
9330 | ||
10f2d63a VZ |
9331 | cat - << EOF > confMake |
9332 | check : file | |
9333 | cp \$? \$@ | |
9334 | cp \$? final_file | |
9335 | EOF | |
9336 | ||
9337 | if test ! -d sub ; then | |
9338 | mkdir sub | |
9339 | fi | |
9340 | echo dummy > sub/file | |
f6bcfd97 | 9341 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9342 | RESULT=$? |
9343 | rm -f sub/file check final_file confMake | |
9344 | rmdir sub | |
9345 | if test "$RESULT" = 0; then | |
04e7a216 | 9346 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9347 | else |
04e7a216 VZ |
9348 | wx_cv_prog_makevpath="no" |
9349 | fi | |
9350 | ||
9351 | fi | |
9352 | ||
9353 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9354 | ||
9355 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9356 | { echo "configure: error: | |
1e487827 VS |
9357 | You need a make-utility that is able to use the variable |
9358 | VPATH correctly. | |
9359 | If your version of make does not support VPATH correctly, | |
9360 | please install GNU-make (possibly as gmake), and start | |
9361 | configure with the following command: | |
9362 | export MAKE=gmake; ./configure for sh-type shells | |
9363 | setenv MAKE gmake; ./configure for csh-type shells | |
9364 | Also please do remember to use gmake in this case every time | |
9365 | you are trying to compile. | |
698dcdb6 | 9366 | " 1>&2; exit 1; } |
414eab6d | 9367 | fi fi |
10f2d63a VZ |
9368 | for ac_prog in 'bison -y' byacc |
9369 | do | |
698dcdb6 | 9370 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9371 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 9373 | echo "configure:9374: checking for $ac_word" >&5 |
698dcdb6 VZ |
9374 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9376 | else |
9377 | if test -n "$YACC"; then | |
9378 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9379 | else | |
698dcdb6 VZ |
9380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9381 | ac_dummy="$PATH" | |
9382 | for ac_dir in $ac_dummy; do | |
9383 | test -z "$ac_dir" && ac_dir=. | |
9384 | if test -f $ac_dir/$ac_word; then | |
9385 | ac_cv_prog_YACC="$ac_prog" | |
9386 | break | |
9387 | fi | |
9388 | done | |
9389 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9390 | fi |
9391 | fi | |
698dcdb6 | 9392 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9393 | if test -n "$YACC"; then |
698dcdb6 | 9394 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9395 | else |
698dcdb6 | 9396 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9397 | fi |
9398 | ||
698dcdb6 | 9399 | test -n "$YACC" && break |
10f2d63a VZ |
9400 | done |
9401 | test -n "$YACC" || YACC="yacc" | |
9402 | ||
698dcdb6 VZ |
9403 | |
9404 | # Extract the first word of "flex", so it can be a program name with args. | |
9405 | set dummy flex; ac_word=$2 | |
9406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d558c907 | 9407 | echo "configure:9408: checking for $ac_word" >&5 |
698dcdb6 VZ |
9408 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9410 | else |
9411 | if test -n "$LEX"; then | |
9412 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9413 | else | |
698dcdb6 VZ |
9414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9415 | ac_dummy="$PATH" | |
9416 | for ac_dir in $ac_dummy; do | |
9417 | test -z "$ac_dir" && ac_dir=. | |
9418 | if test -f $ac_dir/$ac_word; then | |
9419 | ac_cv_prog_LEX="flex" | |
9420 | break | |
9421 | fi | |
9422 | done | |
9423 | IFS="$ac_save_ifs" | |
9424 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9425 | fi |
9426 | fi | |
698dcdb6 | 9427 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9428 | if test -n "$LEX"; then |
698dcdb6 | 9429 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9430 | else |
698dcdb6 | 9431 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9432 | fi |
9433 | ||
9434 | if test -z "$LEXLIB" | |
9435 | then | |
698dcdb6 VZ |
9436 | case "$LEX" in |
9437 | flex*) ac_lib=fl ;; | |
9438 | *) ac_lib=l ;; | |
9439 | esac | |
9440 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d558c907 | 9441 | echo "configure:9442: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9442 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9443 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9445 | else | |
9446 | ac_save_LIBS="$LIBS" | |
9447 | LIBS="-l$ac_lib $LIBS" | |
9448 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9449 | #line 9450 "configure" |
10f2d63a VZ |
9450 | #include "confdefs.h" |
9451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9452 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9453 | builtin and then its argument prototype would still apply. */ |
9454 | char yywrap(); | |
10f2d63a | 9455 | |
698dcdb6 VZ |
9456 | int main() { |
9457 | yywrap() | |
9458 | ; return 0; } | |
9459 | EOF | |
d558c907 | 9460 | if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9461 | rm -rf conftest* |
9462 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9463 | else |
698dcdb6 VZ |
9464 | echo "configure: failed program was:" >&5 |
9465 | cat conftest.$ac_ext >&5 | |
9466 | rm -rf conftest* | |
9467 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9468 | fi |
698dcdb6 VZ |
9469 | rm -f conftest* |
9470 | LIBS="$ac_save_LIBS" | |
9471 | ||
10f2d63a | 9472 | fi |
698dcdb6 VZ |
9473 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9474 | echo "$ac_t""yes" 1>&6 | |
9475 | LEXLIB="-l$ac_lib" | |
9476 | else | |
9477 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9478 | fi |
9479 | ||
9480 | fi | |
9481 | ||
9482 | ||
698dcdb6 | 9483 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
d558c907 | 9484 | echo "configure:9485: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9485 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9487 | else |
698dcdb6 VZ |
9488 | rm -f conftestdata |
9489 | if ln -s X conftestdata 2>/dev/null | |
9490 | then | |
9491 | rm -f conftestdata | |
9492 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9493 | else |
698dcdb6 | 9494 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9495 | fi |
9496 | fi | |
698dcdb6 VZ |
9497 | LN_S="$ac_cv_prog_LN_S" |
9498 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9499 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9500 | else |
698dcdb6 | 9501 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9502 | fi |
9503 | ||
9504 | ||
9505 | ||
9506 | SEARCH_INCLUDE="\ | |
9507 | /usr/local/include \ | |
9508 | \ | |
9509 | /usr/Motif-1.2/include \ | |
9510 | /usr/Motif-2.1/include \ | |
9511 | \ | |
9512 | /usr/include/Motif1.2 \ | |
9513 | /opt/xpm/include/X11 \ | |
9514 | /opt/GBxpm/include/ \ | |
9515 | /opt/GBxpm/X11/include/ \ | |
9516 | \ | |
9517 | /usr/Motif1.2/include \ | |
9518 | /usr/dt/include \ | |
afc31813 VZ |
9519 | /usr/openwin/include \ |
9520 | \ | |
10f2d63a VZ |
9521 | /usr/include/Xm \ |
9522 | \ | |
9523 | /usr/X11R6/include \ | |
afc31813 | 9524 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9525 | /usr/X11R5/include \ |
9526 | /usr/X11R4/include \ | |
9527 | \ | |
10f2d63a VZ |
9528 | /usr/include/X11R6 \ |
9529 | /usr/include/X11R5 \ | |
9530 | /usr/include/X11R4 \ | |
9531 | \ | |
9532 | /usr/local/X11R6/include \ | |
9533 | /usr/local/X11R5/include \ | |
9534 | /usr/local/X11R4/include \ | |
9535 | \ | |
9536 | /usr/local/include/X11R6 \ | |
9537 | /usr/local/include/X11R5 \ | |
9538 | /usr/local/include/X11R4 \ | |
9539 | \ | |
9540 | /usr/X11/include \ | |
9541 | /usr/include/X11 \ | |
9542 | /usr/local/X11/include \ | |
9543 | /usr/local/include/X11 \ | |
9544 | \ | |
9545 | /usr/X386/include \ | |
9546 | /usr/x386/include \ | |
9547 | /usr/XFree86/include/X11 \ | |
9548 | \ | |
cf27ef00 | 9549 | X:/XFree86/include \ |
ec14dd32 VZ |
9550 | X:/XFree86/include/X11 \ |
9551 | \ | |
10f2d63a VZ |
9552 | /usr/include/gtk \ |
9553 | /usr/local/include/gtk \ | |
9554 | /usr/include/glib \ | |
9555 | /usr/local/include/glib \ | |
9556 | \ | |
9557 | /usr/include/qt \ | |
9558 | /usr/local/include/qt \ | |
9559 | \ | |
9560 | /usr/include/windows \ | |
9561 | /usr/include/wine \ | |
9562 | /usr/local/include/wine \ | |
9563 | \ | |
9564 | /usr/unsupported/include \ | |
9565 | /usr/athena/include \ | |
9566 | /usr/local/x11r5/include \ | |
9567 | /usr/lpp/Xamples/include \ | |
9568 | \ | |
10f2d63a | 9569 | /usr/openwin/share/include \ |
928b5c08 VZ |
9570 | \ |
9571 | /usr/include" | |
10f2d63a VZ |
9572 | |
9573 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9574 | ||
698dcdb6 VZ |
9575 | |
9576 | cat > confcache <<\EOF | |
10f2d63a VZ |
9577 | # This file is a shell script that caches the results of configure |
9578 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9579 | # scripts and configure runs. It is not useful on other systems. |
9580 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9581 | # |
698dcdb6 VZ |
9582 | # By default, configure uses ./config.cache as the cache file, |
9583 | # creating it if it does not exist already. You can give configure | |
9584 | # the --cache-file=FILE option to use a different cache file; that is | |
9585 | # what configure does when it calls configure scripts in | |
9586 | # subdirectories, so they share the cache. | |
9587 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9588 | # config.status only pays attention to the cache file if you give it the | |
9589 | # --recheck option to rerun configure. | |
10f2d63a | 9590 | # |
698dcdb6 | 9591 | EOF |
10f2d63a VZ |
9592 | # The following way of writing the cache mishandles newlines in values, |
9593 | # but we know of no workaround that is simple, portable, and efficient. | |
9594 | # So, don't put newlines in cache variables' values. | |
9595 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9596 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9597 | (set) 2>&1 | |
9598 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9599 | *ac_space=\ *) | |
9600 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9601 | # turns \\\\ into \\, and sed turns \\ into \). | |
9602 | sed -n \ | |
9603 | -e "s/'/'\\\\''/g" \ | |
9604 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9605 | ;; | |
9606 | *) | |
9607 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9608 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9609 | ;; | |
9610 | esac >> confcache | |
9611 | if cmp -s $cache_file confcache; then | |
9612 | : | |
9613 | else | |
10f2d63a | 9614 | if test -w $cache_file; then |
698dcdb6 VZ |
9615 | echo "updating cache $cache_file" |
9616 | cat confcache > $cache_file | |
10f2d63a VZ |
9617 | else |
9618 | echo "not updating unwritable cache $cache_file" | |
9619 | fi | |
9620 | fi | |
9621 | rm -f confcache | |
9622 | ||
698dcdb6 VZ |
9623 | |
9624 | ||
4f14bcd8 | 9625 | |
18dbb1f6 VZ |
9626 | REGEX_INCLUDE= |
9627 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9628 | cat >> confdefs.h <<\EOF |
9629 | #define wxUSE_REGEX 1 | |
9630 | EOF | |
9631 | ||
9632 | ||
9633 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9634 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9635 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
d558c907 | 9636 | echo "configure:9637: checking for regex.h" >&5 |
18dbb1f6 VZ |
9637 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9639 | else | |
9640 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9641 | #line 9642 "configure" |
18dbb1f6 VZ |
9642 | #include "confdefs.h" |
9643 | #include <regex.h> | |
9644 | EOF | |
9645 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 9646 | { (eval echo configure:9647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9647 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9648 | if test -z "$ac_err"; then | |
9649 | rm -rf conftest* | |
9650 | eval "ac_cv_header_$ac_safe=yes" | |
9651 | else | |
9652 | echo "$ac_err" >&5 | |
9653 | echo "configure: failed program was:" >&5 | |
9654 | cat conftest.$ac_ext >&5 | |
9655 | rm -rf conftest* | |
9656 | eval "ac_cv_header_$ac_safe=no" | |
9657 | fi | |
9658 | rm -f conftest* | |
9659 | fi | |
9660 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9661 | echo "$ac_t""yes" 1>&6 | |
9662 | for ac_func in regcomp | |
9663 | do | |
9664 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 9665 | echo "configure:9666: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9666 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9668 | else | |
9669 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9670 | #line 9671 "configure" |
18dbb1f6 VZ |
9671 | #include "confdefs.h" |
9672 | /* System header to define __stub macros and hopefully few prototypes, | |
9673 | which can conflict with char $ac_func(); below. */ | |
9674 | #include <assert.h> | |
9675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9676 | /* We use char because int might match the return type of a gcc2 | |
9677 | builtin and then its argument prototype would still apply. */ | |
9678 | char $ac_func(); | |
9679 | ||
9680 | int main() { | |
9681 | ||
9682 | /* The GNU C library defines this for functions which it implements | |
9683 | to always fail with ENOSYS. Some functions are actually named | |
9684 | something starting with __ and the normal name is an alias. */ | |
9685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9686 | choke me | |
9687 | #else | |
9688 | $ac_func(); | |
9689 | #endif | |
9690 | ||
9691 | ; return 0; } | |
9692 | EOF | |
d558c907 | 9693 | if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9694 | rm -rf conftest* |
9695 | eval "ac_cv_func_$ac_func=yes" | |
9696 | else | |
9697 | echo "configure: failed program was:" >&5 | |
9698 | cat conftest.$ac_ext >&5 | |
9699 | rm -rf conftest* | |
9700 | eval "ac_cv_func_$ac_func=no" | |
9701 | fi | |
9702 | rm -f conftest* | |
9703 | fi | |
9704 | ||
9705 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9706 | echo "$ac_t""yes" 1>&6 | |
9707 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9708 | cat >> confdefs.h <<EOF | |
9709 | #define $ac_tr_func 1 | |
9710 | EOF | |
9711 | ||
9712 | else | |
9713 | echo "$ac_t""no" 1>&6 | |
9714 | fi | |
9715 | done | |
9716 | ||
9717 | else | |
9718 | echo "$ac_t""no" 1>&6 | |
9719 | fi | |
9720 | ||
9721 | ||
4f14bcd8 GD |
9722 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9723 | if test "$wxUSE_REGEX" = "sys" ; then | |
9724 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9725 | else | |
a3df447d | 9726 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9727 | wxUSE_REGEX=builtin |
9728 | fi | |
9729 | else | |
9730 | wxUSE_REGEX=sys | |
18dbb1f6 | 9731 | fi |
18dbb1f6 VZ |
9732 | fi |
9733 | ||
4f14bcd8 GD |
9734 | if test "$wxUSE_REGEX" = "builtin" ; then |
9735 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9736 | fi | |
18dbb1f6 VZ |
9737 | fi |
9738 | ||
9739 | ||
4f14bcd8 GD |
9740 | ZLIB_INCLUDE= |
9741 | ZLIB_LINK= | |
9742 | if test "$wxUSE_ZLIB" != "no" ; then | |
9743 | cat >> confdefs.h <<\EOF | |
9744 | #define wxUSE_ZLIB 1 | |
9745 | EOF | |
dad6c0ea | 9746 | |
10f2d63a | 9747 | |
4f14bcd8 GD |
9748 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9749 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9750 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d558c907 | 9751 | echo "configure:9752: checking for zlib.h" >&5 |
3a922bb4 RL |
9752 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9754 | else | |
9755 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9756 | #line 9757 "configure" |
3a922bb4 | 9757 | #include "confdefs.h" |
4f14bcd8 | 9758 | #include <zlib.h> |
3a922bb4 RL |
9759 | EOF |
9760 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 9761 | { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9762 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9763 | if test -z "$ac_err"; then | |
9764 | rm -rf conftest* | |
9765 | eval "ac_cv_header_$ac_safe=yes" | |
9766 | else | |
9767 | echo "$ac_err" >&5 | |
9768 | echo "configure: failed program was:" >&5 | |
9769 | cat conftest.$ac_ext >&5 | |
9770 | rm -rf conftest* | |
9771 | eval "ac_cv_header_$ac_safe=no" | |
9772 | fi | |
9773 | rm -f conftest* | |
9774 | fi | |
9775 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9776 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9777 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
d558c907 | 9778 | echo "configure:9779: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9779 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9780 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9782 | else | |
9783 | ac_save_LIBS="$LIBS" | |
9784 | LIBS="-lz $LIBS" | |
9785 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9786 | #line 9787 "configure" |
4f14bcd8 GD |
9787 | #include "confdefs.h" |
9788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9789 | /* We use char because int might match the return type of a gcc2 | |
9790 | builtin and then its argument prototype would still apply. */ | |
9791 | char deflate(); | |
9792 | ||
9793 | int main() { | |
9794 | deflate() | |
9795 | ; return 0; } | |
3a922bb4 | 9796 | EOF |
d558c907 | 9797 | if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9798 | rm -rf conftest* |
9799 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9800 | else | |
9801 | echo "configure: failed program was:" >&5 | |
9802 | cat conftest.$ac_ext >&5 | |
9803 | rm -rf conftest* | |
9804 | eval "ac_cv_lib_$ac_lib_var=no" | |
9805 | fi | |
9806 | rm -f conftest* | |
9807 | LIBS="$ac_save_LIBS" | |
9808 | ||
9809 | fi | |
9810 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9811 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9812 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9813 | else |
9814 | echo "$ac_t""no" 1>&6 | |
9815 | fi | |
10f2d63a | 9816 | |
4f14bcd8 GD |
9817 | else |
9818 | echo "$ac_t""no" 1>&6 | |
9819 | fi | |
9820 | ||
9821 | ||
9822 | if test "x$ZLIB_LINK" = "x" ; then | |
9823 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9824 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9825 | else | |
a3df447d | 9826 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9827 | wxUSE_ZLIB=builtin |
9828 | fi | |
9829 | else | |
9830 | wxUSE_ZLIB=sys | |
9831 | fi | |
9832 | fi | |
9833 | ||
9834 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9835 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9836 | fi | |
9837 | fi | |
9838 | ||
9839 | ||
9840 | PNG_INCLUDE= | |
9841 | PNG_LINK= | |
9842 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9843 | cat >> confdefs.h <<\EOF | |
9844 | #define wxUSE_LIBPNG 1 | |
9845 | EOF | |
9846 | ||
81809c07 VS |
9847 | |
9848 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9849 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9850 | wxUSE_LIBPNG=sys | |
9851 | fi | |
4f14bcd8 | 9852 | |
81809c07 | 9853 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9854 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9855 | wxUSE_LIBPNG=builtin |
9856 | fi | |
9857 | ||
81809c07 VS |
9858 | if test "$wxUSE_MGL" != 1 ; then |
9859 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9860 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9861 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
d558c907 | 9862 | echo "configure:9863: checking for png.h" >&5 |
d4158b5d VS |
9863 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9865 | else | |
9866 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9867 | #line 9868 "configure" |
d4158b5d | 9868 | #include "confdefs.h" |
4f14bcd8 | 9869 | #include <png.h> |
d4158b5d VS |
9870 | EOF |
9871 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 9872 | { (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9873 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9874 | if test -z "$ac_err"; then | |
9875 | rm -rf conftest* | |
9876 | eval "ac_cv_header_$ac_safe=yes" | |
9877 | else | |
9878 | echo "$ac_err" >&5 | |
9879 | echo "configure: failed program was:" >&5 | |
9880 | cat conftest.$ac_ext >&5 | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_header_$ac_safe=no" | |
9883 | fi | |
9884 | rm -f conftest* | |
9885 | fi | |
9886 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9887 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9888 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
d558c907 | 9889 | echo "configure:9890: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9890 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9891 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9892 | echo $ac_n "(cached) $ac_c" 1>&6 |
9893 | else | |
4f14bcd8 GD |
9894 | ac_save_LIBS="$LIBS" |
9895 | LIBS="-lpng -lz -lm $LIBS" | |
9896 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 9897 | #line 9898 "configure" |
3a922bb4 | 9898 | #include "confdefs.h" |
4f14bcd8 GD |
9899 | /* Override any gcc2 internal prototype to avoid an error. */ |
9900 | /* We use char because int might match the return type of a gcc2 | |
9901 | builtin and then its argument prototype would still apply. */ | |
9902 | char png_check_sig(); | |
f6bcfd97 | 9903 | |
4f14bcd8 GD |
9904 | int main() { |
9905 | png_check_sig() | |
3a922bb4 RL |
9906 | ; return 0; } |
9907 | EOF | |
d558c907 | 9908 | if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9909 | rm -rf conftest* |
4f14bcd8 | 9910 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9911 | else |
9912 | echo "configure: failed program was:" >&5 | |
9913 | cat conftest.$ac_ext >&5 | |
9914 | rm -rf conftest* | |
4f14bcd8 | 9915 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9916 | fi |
9917 | rm -f conftest* | |
4f14bcd8 | 9918 | LIBS="$ac_save_LIBS" |
10f2d63a | 9919 | |
4f14bcd8 GD |
9920 | fi |
9921 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9922 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9923 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9924 | else |
9925 | echo "$ac_t""no" 1>&6 | |
9926 | fi | |
32832908 | 9927 | |
81809c07 | 9928 | |
4f14bcd8 GD |
9929 | else |
9930 | echo "$ac_t""no" 1>&6 | |
9931 | fi | |
3a922bb4 | 9932 | |
7b7a7637 | 9933 | |
81809c07 VS |
9934 | if test "x$PNG_LINK" = "x" ; then |
9935 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9936 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9937 | else | |
9938 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9939 | wxUSE_LIBPNG=builtin | |
9940 | fi | |
4f14bcd8 | 9941 | else |
81809c07 | 9942 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9943 | fi |
4f14bcd8 | 9944 | fi |
3a922bb4 RL |
9945 | fi |
9946 | ||
4f14bcd8 GD |
9947 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9948 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9949 | fi |
9950 | ||
4f14bcd8 | 9951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9952 | fi |
9953 | ||
32832908 | 9954 | |
4f14bcd8 GD |
9955 | JPEG_INCLUDE= |
9956 | JPEG_LINK= | |
9957 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9958 | cat >> confdefs.h <<\EOF | |
9959 | #define wxUSE_LIBJPEG 1 | |
9960 | EOF | |
10f2d63a | 9961 | |
8168de4c | 9962 | |
81809c07 VS |
9963 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9964 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9965 | wxUSE_LIBJPEG=sys | |
9966 | fi | |
9967 | ||
9968 | if test "$wxUSE_MGL" != 1 ; then | |
9969 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9970 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
d558c907 | 9971 | echo "configure:9972: checking for jpeglib.h" >&5 |
81809c07 | 9972 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9973 | echo $ac_n "(cached) $ac_c" 1>&6 |
9974 | else | |
4f14bcd8 | 9975 | cat > conftest.$ac_ext <<EOF |
d558c907 | 9976 | #line 9977 "configure" |
4f14bcd8 | 9977 | #include "confdefs.h" |
8168de4c | 9978 | |
81809c07 VS |
9979 | #undef HAVE_STDLIB_H |
9980 | #include <stdio.h> | |
9981 | #include <jpeglib.h> | |
9982 | ||
4f14bcd8 GD |
9983 | int main() { |
9984 | ||
81809c07 | 9985 | |
4f14bcd8 GD |
9986 | ; return 0; } |
9987 | EOF | |
d558c907 | 9988 | if { (eval echo configure:9989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9989 | rm -rf conftest* |
9990 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9991 | else |
4f14bcd8 GD |
9992 | echo "configure: failed program was:" >&5 |
9993 | cat conftest.$ac_ext >&5 | |
9994 | rm -rf conftest* | |
9995 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9996 | |
4f14bcd8 GD |
9997 | fi |
9998 | rm -f conftest* | |
81809c07 | 9999 | |
698dcdb6 | 10000 | fi |
6f72b082 | 10001 | |
81809c07 | 10002 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 10003 | |
81809c07 VS |
10004 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
10005 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d558c907 | 10006 | echo "configure:10007: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
10007 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
10008 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10010 | else |
4f14bcd8 GD |
10011 | ac_save_LIBS="$LIBS" |
10012 | LIBS="-ljpeg $LIBS" | |
10013 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10014 | #line 10015 "configure" |
4f14bcd8 GD |
10015 | #include "confdefs.h" |
10016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10017 | /* We use char because int might match the return type of a gcc2 | |
10018 | builtin and then its argument prototype would still apply. */ | |
10019 | char jpeg_read_header(); | |
698dcdb6 | 10020 | |
4f14bcd8 GD |
10021 | int main() { |
10022 | jpeg_read_header() | |
10023 | ; return 0; } | |
10024 | EOF | |
d558c907 | 10025 | if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10026 | rm -rf conftest* |
10027 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 10028 | else |
4f14bcd8 GD |
10029 | echo "configure: failed program was:" >&5 |
10030 | cat conftest.$ac_ext >&5 | |
10031 | rm -rf conftest* | |
10032 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 10033 | fi |
4f14bcd8 GD |
10034 | rm -f conftest* |
10035 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 10036 | |
4f14bcd8 GD |
10037 | fi |
10038 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10039 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10040 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
10041 | else |
10042 | echo "$ac_t""no" 1>&6 | |
10043 | fi | |
10044 | ||
81809c07 | 10045 | fi |
4f14bcd8 | 10046 | |
81809c07 VS |
10047 | if test "x$JPEG_LINK" = "x" ; then |
10048 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10049 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10050 | else | |
10051 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10052 | wxUSE_LIBJPEG=builtin | |
10053 | fi | |
4f14bcd8 | 10054 | else |
81809c07 | 10055 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10056 | fi |
4f14bcd8 GD |
10057 | fi |
10058 | fi | |
10059 | ||
10060 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10061 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10062 | fi | |
10063 | fi | |
10064 | ||
10065 | ||
10066 | TIFF_INCLUDE= | |
10067 | TIFF_LINK= | |
10068 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10069 | cat >> confdefs.h <<\EOF | |
10070 | #define wxUSE_LIBTIFF 1 | |
10071 | EOF | |
10072 | ||
10073 | ||
10074 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10075 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10076 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d558c907 | 10077 | echo "configure:10078: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10078 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10080 | else | |
10081 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10082 | #line 10083 "configure" |
4f14bcd8 GD |
10083 | #include "confdefs.h" |
10084 | #include <tiffio.h> | |
10085 | EOF | |
10086 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 10087 | { (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10088 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10089 | if test -z "$ac_err"; then | |
10090 | rm -rf conftest* | |
10091 | eval "ac_cv_header_$ac_safe=yes" | |
10092 | else | |
10093 | echo "$ac_err" >&5 | |
10094 | echo "configure: failed program was:" >&5 | |
10095 | cat conftest.$ac_ext >&5 | |
10096 | rm -rf conftest* | |
10097 | eval "ac_cv_header_$ac_safe=no" | |
10098 | fi | |
10099 | rm -f conftest* | |
10100 | fi | |
10101 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10102 | echo "$ac_t""yes" 1>&6 | |
10103 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
d558c907 | 10104 | echo "configure:10105: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10105 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10106 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10108 | else | |
10109 | ac_save_LIBS="$LIBS" | |
10110 | LIBS="-ltiff -lm $LIBS" | |
10111 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10112 | #line 10113 "configure" |
4f14bcd8 GD |
10113 | #include "confdefs.h" |
10114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10115 | /* We use char because int might match the return type of a gcc2 | |
10116 | builtin and then its argument prototype would still apply. */ | |
10117 | char TIFFError(); | |
10118 | ||
10119 | int main() { | |
10120 | TIFFError() | |
10121 | ; return 0; } | |
10122 | EOF | |
d558c907 | 10123 | if { (eval echo configure:10124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10124 | rm -rf conftest* |
10125 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10126 | else | |
10127 | echo "configure: failed program was:" >&5 | |
10128 | cat conftest.$ac_ext >&5 | |
10129 | rm -rf conftest* | |
10130 | eval "ac_cv_lib_$ac_lib_var=no" | |
10131 | fi | |
10132 | rm -f conftest* | |
10133 | LIBS="$ac_save_LIBS" | |
10134 | ||
10135 | fi | |
10136 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10137 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10138 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10139 | else |
10140 | echo "$ac_t""no" 1>&6 | |
10141 | fi | |
10142 | ||
10143 | ||
10144 | else | |
10145 | echo "$ac_t""no" 1>&6 | |
10146 | fi | |
10147 | ||
10148 | ||
10149 | if test "x$TIFF_LINK" = "x" ; then | |
10150 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10151 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10152 | else | |
a3df447d | 10153 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10154 | wxUSE_LIBTIFF=builtin |
10155 | fi | |
10156 | else | |
10157 | wxUSE_LIBTIFF=sys | |
10158 | fi | |
10159 | fi | |
10160 | ||
10161 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10162 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10163 | fi | |
10164 | fi | |
10165 | ||
10166 | ||
4f14bcd8 GD |
10167 | AFMINSTALL= |
10168 | ||
10169 | TOOLKIT= | |
10170 | TOOLKIT_INCLUDE= | |
10171 | WIDGET_SET= | |
10172 | ||
10173 | if test "$USE_WIN32" = 1 ; then | |
10174 | for ac_hdr in w32api.h | |
10175 | do | |
10176 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10177 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 10178 | echo "configure:10179: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10179 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10181 | else | |
10182 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10183 | #line 10184 "configure" |
4f14bcd8 GD |
10184 | #include "confdefs.h" |
10185 | #include <$ac_hdr> | |
10186 | EOF | |
10187 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 10188 | { (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10189 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10190 | if test -z "$ac_err"; then | |
10191 | rm -rf conftest* | |
10192 | eval "ac_cv_header_$ac_safe=yes" | |
10193 | else | |
10194 | echo "$ac_err" >&5 | |
10195 | echo "configure: failed program was:" >&5 | |
10196 | cat conftest.$ac_ext >&5 | |
10197 | rm -rf conftest* | |
10198 | eval "ac_cv_header_$ac_safe=no" | |
10199 | fi | |
10200 | rm -f conftest* | |
10201 | fi | |
10202 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10203 | echo "$ac_t""yes" 1>&6 | |
10204 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10205 | cat >> confdefs.h <<EOF | |
10206 | #define $ac_tr_hdr 1 | |
10207 | EOF | |
10208 | ||
10209 | else | |
10210 | echo "$ac_t""no" 1>&6 | |
10211 | fi | |
10212 | done | |
10213 | ||
10214 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10215 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
d558c907 | 10216 | echo "configure:10217: checking for windows.h" >&5 |
4f14bcd8 GD |
10217 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10219 | else | |
10220 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10221 | #line 10222 "configure" |
4f14bcd8 GD |
10222 | #include "confdefs.h" |
10223 | #include <windows.h> | |
10224 | EOF | |
10225 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 10226 | { (eval echo configure:10227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10227 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10228 | if test -z "$ac_err"; then | |
10229 | rm -rf conftest* | |
10230 | eval "ac_cv_header_$ac_safe=yes" | |
10231 | else | |
10232 | echo "$ac_err" >&5 | |
10233 | echo "configure: failed program was:" >&5 | |
10234 | cat conftest.$ac_ext >&5 | |
10235 | rm -rf conftest* | |
10236 | eval "ac_cv_header_$ac_safe=no" | |
10237 | fi | |
10238 | rm -f conftest* | |
10239 | fi | |
10240 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10241 | echo "$ac_t""yes" 1>&6 | |
10242 | : | |
10243 | else | |
10244 | echo "$ac_t""no" 1>&6 | |
10245 | ||
10246 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10247 | ||
10248 | fi | |
10249 | ||
10250 | ||
10251 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
d558c907 | 10252 | echo "configure:10253: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10253 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10254 | echo $ac_n "(cached) $ac_c" 1>&6 |
10255 | else | |
10256 | ||
10257 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10258 | #line 10259 "configure" |
4f14bcd8 GD |
10259 | #include "confdefs.h" |
10260 | #include <w32api.h> | |
10261 | int main() { | |
10262 | ||
10263 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10264 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10265 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10266 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10267 | ||
10268 | #if !wxCHECK_W32API_VERSION(1,1) | |
10269 | #error You need w32api 1.1 or newer | |
10270 | #endif | |
10271 | ||
10272 | ; return 0; } | |
10273 | EOF | |
d558c907 | 10274 | if { (eval echo configure:10275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10275 | rm -rf conftest* |
10276 | ||
ea7682f0 | 10277 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10278 | |
10279 | else | |
10280 | echo "configure: failed program was:" >&5 | |
10281 | cat conftest.$ac_ext >&5 | |
10282 | rm -rf conftest* | |
10283 | ||
ea7682f0 | 10284 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10285 | |
10286 | fi | |
10287 | rm -f conftest* | |
10288 | ||
10289 | fi | |
10290 | ||
ea7682f0 VS |
10291 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10292 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10293 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10294 | fi | |
4f14bcd8 GD |
10295 | |
10296 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10297 | ||
77e13408 RL |
10298 | case "${host}" in |
10299 | *-*-cygwin* ) | |
10300 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10301 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10302 | esac | |
4f14bcd8 GD |
10303 | |
10304 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10305 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10306 | fi |
10307 | ||
4f14bcd8 GD |
10308 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10309 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10310 | fi | |
10311 | ||
10312 | if test "$wxUSE_GUI" = "yes"; then | |
10313 | USE_GUI=1 | |
10314 | ||
10315 | GUI_TK_LIBRARY= | |
10316 | ||
10317 | WXGTK12= | |
10318 | WXGTK127= | |
10319 | WXGTK20= | |
10320 | ||
77e13408 | 10321 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10322 | TOOLKIT=MSW |
10323 | GUIDIST=MSW_DIST | |
77e13408 RL |
10324 | |
10325 | case "${host}" in | |
10326 | *-*-mingw32* ) | |
3d63bc3a | 10327 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10328 | esac |
4f14bcd8 GD |
10329 | fi |
10330 | ||
10331 | if test "$wxUSE_GTK" = 1; then | |
10332 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
d558c907 | 10333 | echo "configure:10334: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10334 | |
10335 | gtk_version_cached=1 | |
10336 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10338 | else | |
10339 | ||
10340 | gtk_version_cached=0 | |
d48ad9bd | 10341 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10342 | |
3f345b47 VZ |
10343 | GTK_MODULES= |
10344 | if test "$wxUSE_THREADS" = "yes"; then | |
10345 | GTK_MODULES=gthread | |
10346 | fi | |
10347 | ||
4f14bcd8 GD |
10348 | wx_cv_lib_gtk= |
10349 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10350 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10351 | if test "${with_gtk_prefix+set}" = set; then | |
10352 | withval="$with_gtk_prefix" | |
10353 | gtk_config_prefix="$withval" | |
10354 | else | |
10355 | gtk_config_prefix="" | |
10356 | fi | |
10357 | ||
10358 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10359 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10360 | withval="$with_gtk_exec_prefix" | |
10361 | gtk_config_exec_prefix="$withval" | |
10362 | else | |
10363 | gtk_config_exec_prefix="" | |
10364 | fi | |
10365 | ||
10366 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10367 | if test "${enable_gtktest+set}" = set; then | |
10368 | enableval="$enable_gtktest" | |
10369 | : | |
10370 | else | |
10371 | enable_gtktest=yes | |
10372 | fi | |
10373 | ||
10374 | ||
3f345b47 | 10375 | for module in . $GTK_MODULES |
4f14bcd8 | 10376 | do |
6f72b082 | 10377 | case "$module" in |
8168de4c | 10378 | gthread) |
6f72b082 OK |
10379 | gtk_config_args="$gtk_config_args gthread" |
10380 | ;; | |
10381 | esac | |
10382 | done | |
10383 | ||
10384 | if test x$gtk_config_exec_prefix != x ; then | |
10385 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10386 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10387 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10388 | fi | |
10389 | fi | |
10390 | if test x$gtk_config_prefix != x ; then | |
10391 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10392 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10393 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10394 | fi | |
10395 | fi | |
10396 | ||
10397 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10398 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10399 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 10400 | echo "configure:10401: checking for $ac_word" >&5 |
698dcdb6 VZ |
10401 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10403 | else |
698dcdb6 VZ |
10404 | case "$GTK_CONFIG_2_0" in |
10405 | /*) | |
6f72b082 OK |
10406 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10407 | ;; | |
698dcdb6 VZ |
10408 | ?:/*) |
10409 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10410 | ;; | |
6f72b082 | 10411 | *) |
698dcdb6 VZ |
10412 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10413 | ac_dummy="$PATH" | |
10414 | for ac_dir in $ac_dummy; do | |
10415 | test -z "$ac_dir" && ac_dir=. | |
10416 | if test -f $ac_dir/$ac_word; then | |
10417 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10418 | break | |
10419 | fi | |
10420 | done | |
10421 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10422 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10423 | ;; | |
10424 | esac | |
10425 | fi | |
698dcdb6 | 10426 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10427 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10428 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10429 | else |
698dcdb6 | 10430 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10431 | fi |
10432 | ||
10433 | min_gtk_version=1.3.1 | |
698dcdb6 | 10434 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d558c907 | 10435 | echo "configure:10436: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10436 | no_gtk="" |
10437 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10438 | no_gtk=yes | |
10439 | else | |
10440 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10441 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10442 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10443 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10444 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10446 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10447 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10448 | if test "x$enable_gtktest" = "xyes" ; then | |
10449 | ac_save_CFLAGS="$CFLAGS" | |
10450 | ac_save_LIBS="$LIBS" | |
10451 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10452 | LIBS="$GTK_LIBS $LIBS" | |
10453 | rm -f conf.gtktest | |
10454 | if test "$cross_compiling" = yes; then | |
10455 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10456 | else | |
698dcdb6 | 10457 | cat > conftest.$ac_ext <<EOF |
d558c907 | 10458 | #line 10459 "configure" |
6f72b082 OK |
10459 | #include "confdefs.h" |
10460 | ||
10461 | #include <gtk/gtk.h> | |
10462 | #include <stdio.h> | |
10463 | #include <stdlib.h> | |
10464 | ||
8168de4c | 10465 | int |
6f72b082 OK |
10466 | main () |
10467 | { | |
10468 | int major, minor, micro; | |
10469 | char *tmp_version; | |
10470 | ||
10471 | system ("touch conf.gtktest"); | |
10472 | ||
10473 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10474 | tmp_version = g_strdup("$min_gtk_version"); | |
10475 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10476 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10477 | exit(1); | |
10478 | } | |
10479 | ||
10480 | if ((gtk_major_version != $gtk_config_major_version) || | |
10481 | (gtk_minor_version != $gtk_config_minor_version) || | |
10482 | (gtk_micro_version != $gtk_config_micro_version)) | |
10483 | { | |
8168de4c | 10484 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10485 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10486 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10487 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10488 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10489 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10490 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10491 | printf("*** required on your system.\n"); | |
10492 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10493 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10494 | printf("*** before re-running configure\n"); | |
8168de4c | 10495 | } |
6f72b082 OK |
10496 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10497 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10498 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10499 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10500 | { | |
10501 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10502 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10503 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10504 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10505 | } |
10506 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10507 | else | |
10508 | { | |
10509 | if ((gtk_major_version > major) || | |
10510 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10511 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10512 | { | |
10513 | return 0; | |
10514 | } | |
10515 | else | |
10516 | { | |
10517 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10518 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10519 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10520 | major, minor, micro); |
6f72b082 OK |
10521 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10522 | printf("***\n"); | |
10523 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10524 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10525 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10526 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10527 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10528 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10529 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10530 | } | |
10531 | } | |
10532 | return 1; | |
10533 | } | |
10534 | ||
698dcdb6 | 10535 | EOF |
d558c907 | 10536 | if { (eval echo configure:10537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10537 | then |
6f72b082 OK |
10538 | : |
10539 | else | |
698dcdb6 VZ |
10540 | echo "configure: failed program was:" >&5 |
10541 | cat conftest.$ac_ext >&5 | |
10542 | rm -fr conftest* | |
10543 | no_gtk=yes | |
6f72b082 | 10544 | fi |
698dcdb6 | 10545 | rm -fr conftest* |
6f72b082 | 10546 | fi |
698dcdb6 | 10547 | |
6f72b082 OK |
10548 | CFLAGS="$ac_save_CFLAGS" |
10549 | LIBS="$ac_save_LIBS" | |
10550 | fi | |
10551 | fi | |
10552 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10553 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10554 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10555 | else |
698dcdb6 | 10556 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10557 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10558 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10559 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10560 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10561 | echo "*** full path to gtk-config-2.0." | |
10562 | else | |
10563 | if test -f conf.gtktest ; then | |
10564 | : | |
10565 | else | |
10566 | echo "*** Could not run GTK test program, checking why..." | |
10567 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10568 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10569 | cat > conftest.$ac_ext <<EOF |
d558c907 | 10570 | #line 10571 "configure" |
6f72b082 OK |
10571 | #include "confdefs.h" |
10572 | ||
10573 | #include <gtk/gtk.h> | |
10574 | #include <stdio.h> | |
10575 | ||
698dcdb6 VZ |
10576 | int main() { |
10577 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10578 | ; return 0; } | |
10579 | EOF | |
d558c907 | 10580 | if { (eval echo configure:10581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10581 | rm -rf conftest* |
6f72b082 OK |
10582 | echo "*** The test program compiled, but did not run. This usually means" |
10583 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10584 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10585 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10586 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10587 | echo "*** is required on your system" | |
8168de4c | 10588 | echo "***" |
6f72b082 OK |
10589 | echo "*** If you have an old version installed, it is best to remove it, although" |
10590 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10591 | echo "***" | |
10592 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10593 | echo "*** came with the system with the command" | |
10594 | echo "***" | |
698dcdb6 | 10595 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10596 | else |
698dcdb6 VZ |
10597 | echo "configure: failed program was:" >&5 |
10598 | cat conftest.$ac_ext >&5 | |
10599 | rm -rf conftest* | |
10600 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10601 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10602 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10603 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10604 | fi |
698dcdb6 | 10605 | rm -f conftest* |
6f72b082 OK |
10606 | CFLAGS="$ac_save_CFLAGS" |
10607 | LIBS="$ac_save_LIBS" | |
10608 | fi | |
10609 | fi | |
10610 | GTK_CFLAGS="" | |
10611 | GTK_LIBS="" | |
3f345b47 | 10612 | : |
8168de4c VZ |
10613 | fi |
10614 | ||
10615 | ||
10616 | rm -f conf.gtktest | |
10617 | ||
10618 | fi | |
10619 | ||
10620 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10621 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10622 | if test "${with_gtk_prefix+set}" = set; then | |
10623 | withval="$with_gtk_prefix" | |
10624 | gtk_config_prefix="$withval" | |
10625 | else | |
10626 | gtk_config_prefix="" | |
10627 | fi | |
10628 | ||
10629 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10630 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10631 | withval="$with_gtk_exec_prefix" | |
10632 | gtk_config_exec_prefix="$withval" | |
10633 | else | |
10634 | gtk_config_exec_prefix="" | |
10635 | fi | |
10636 | ||
10637 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10638 | if test "${enable_gtktest+set}" = set; then | |
10639 | enableval="$enable_gtktest" | |
10640 | : | |
10641 | else | |
10642 | enable_gtktest=yes | |
10643 | fi | |
10644 | ||
10645 | ||
10646 | for module in . $GTK_MODULES | |
10647 | do | |
10648 | case "$module" in | |
10649 | gthread) | |
10650 | gtk_config_args="$gtk_config_args gthread" | |
10651 | ;; | |
10652 | esac | |
10653 | done | |
10654 | ||
10f2d63a VZ |
10655 | if test x$gtk_config_exec_prefix != x ; then |
10656 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10657 | if test x${GTK_CONFIG+set} != xset ; then | |
10658 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10659 | fi | |
10660 | fi | |
10661 | if test x$gtk_config_prefix != x ; then | |
10662 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10663 | if test x${GTK_CONFIG+set} != xset ; then | |
10664 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10665 | fi | |
10666 | fi | |
10667 | ||
10668 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10669 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10670 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 10671 | echo "configure:10672: checking for $ac_word" >&5 |
698dcdb6 VZ |
10672 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10674 | else |
698dcdb6 VZ |
10675 | case "$GTK_CONFIG" in |
10676 | /*) | |
f6bcfd97 BP |
10677 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10678 | ;; | |
698dcdb6 VZ |
10679 | ?:/*) |
10680 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10681 | ;; | |
f6bcfd97 | 10682 | *) |
698dcdb6 VZ |
10683 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10684 | ac_dummy="$PATH" | |
10685 | for ac_dir in $ac_dummy; do | |
10686 | test -z "$ac_dir" && ac_dir=. | |
10687 | if test -f $ac_dir/$ac_word; then | |
10688 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10689 | break | |
10690 | fi | |
10691 | done | |
10692 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10693 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10694 | ;; | |
10695 | esac | |
10696 | fi | |
698dcdb6 | 10697 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10698 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10699 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10700 | else |
698dcdb6 | 10701 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10702 | fi |
10703 | ||
10704 | min_gtk_version=1.2.7 | |
698dcdb6 | 10705 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d558c907 | 10706 | echo "configure:10707: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10707 | no_gtk="" |
3f345b47 VZ |
10708 | if test "$GTK_CONFIG" = "no" ; then |
10709 | no_gtk=yes | |
10710 | else | |
10711 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10712 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10713 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10714 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10715 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10716 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10717 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10718 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10719 | if test "x$enable_gtktest" = "xyes" ; then | |
10720 | ac_save_CFLAGS="$CFLAGS" | |
10721 | ac_save_LIBS="$LIBS" | |
10722 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10723 | LIBS="$GTK_LIBS $LIBS" | |
10724 | rm -f conf.gtktest | |
10725 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10726 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10727 | else | |
698dcdb6 | 10728 | cat > conftest.$ac_ext <<EOF |
d558c907 | 10729 | #line 10730 "configure" |
f6bcfd97 BP |
10730 | #include "confdefs.h" |
10731 | ||
10732 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10733 | #include <stdio.h> |
10734 | #include <stdlib.h> | |
10735 | ||
3f345b47 | 10736 | int |
f6bcfd97 BP |
10737 | main () |
10738 | { | |
10739 | int major, minor, micro; | |
3f345b47 | 10740 | char *tmp_version; |
f6bcfd97 | 10741 | |
3f345b47 | 10742 | system ("touch conf.gtktest"); |
f6bcfd97 | 10743 | |
3f345b47 VZ |
10744 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10745 | tmp_version = g_strdup("$min_gtk_version"); | |
10746 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10747 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10748 | exit(1); |
10749 | } | |
10750 | ||
3f345b47 VZ |
10751 | if ((gtk_major_version != $gtk_config_major_version) || |
10752 | (gtk_minor_version != $gtk_config_minor_version) || | |
10753 | (gtk_micro_version != $gtk_config_micro_version)) | |
10754 | { | |
10755 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10756 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10757 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10758 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10759 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10760 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10761 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10762 | printf("*** required on your system.\n"); | |
10763 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10764 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10765 | printf("*** before re-running configure\n"); | |
10766 | } | |
10767 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10768 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10769 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10770 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10771 | { | |
10772 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10773 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10774 | printf("*** library (version %d.%d.%d)\n", | |
10775 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10776 | } | |
10777 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10778 | else | |
10779 | { | |
10780 | if ((gtk_major_version > major) || | |
10781 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10782 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10783 | { | |
10784 | return 0; | |
10785 | } | |
10786 | else | |
10787 | { | |
10788 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10789 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10790 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10791 | major, minor, micro); | |
10792 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10793 | printf("***\n"); | |
10794 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10795 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10796 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10797 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10798 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10799 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10800 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10801 | } | |
10802 | } | |
10803 | return 1; | |
f6bcfd97 BP |
10804 | } |
10805 | ||
698dcdb6 | 10806 | EOF |
d558c907 | 10807 | if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10808 | then |
f6bcfd97 BP |
10809 | : |
10810 | else | |
698dcdb6 VZ |
10811 | echo "configure: failed program was:" >&5 |
10812 | cat conftest.$ac_ext >&5 | |
10813 | rm -fr conftest* | |
10814 | no_gtk=yes | |
f6bcfd97 | 10815 | fi |
698dcdb6 | 10816 | rm -fr conftest* |
f6bcfd97 | 10817 | fi |
698dcdb6 | 10818 | |
3f345b47 VZ |
10819 | CFLAGS="$ac_save_CFLAGS" |
10820 | LIBS="$ac_save_LIBS" | |
10821 | fi | |
f6bcfd97 BP |
10822 | fi |
10823 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10824 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10825 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10826 | else |
698dcdb6 | 10827 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10828 | if test "$GTK_CONFIG" = "no" ; then |
10829 | echo "*** The gtk-config script installed by GTK could not be found" | |
10830 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10831 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10832 | echo "*** full path to gtk-config." | |
10833 | else | |
10834 | if test -f conf.gtktest ; then | |
10835 | : | |
10836 | else | |
10837 | echo "*** Could not run GTK test program, checking why..." | |
10838 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10839 | LIBS="$LIBS $GTK_LIBS" | |
10840 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 10841 | #line 10842 "configure" |
3f345b47 VZ |
10842 | #include "confdefs.h" |
10843 | ||
10844 | #include <gtk/gtk.h> | |
10845 | #include <stdio.h> | |
10846 | ||
10847 | int main() { | |
10848 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10849 | ; return 0; } | |
10850 | EOF | |
d558c907 | 10851 | if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10852 | rm -rf conftest* |
10853 | echo "*** The test program compiled, but did not run. This usually means" | |
10854 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10855 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10856 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10857 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10858 | echo "*** is required on your system" | |
10859 | echo "***" | |
10860 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10861 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10862 | echo "***" | |
10863 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10864 | echo "*** came with the system with the command" | |
10865 | echo "***" | |
10866 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10867 | else | |
10868 | echo "configure: failed program was:" >&5 | |
10869 | cat conftest.$ac_ext >&5 | |
10870 | rm -rf conftest* | |
10871 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10872 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10873 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10874 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10875 | fi | |
10876 | rm -f conftest* | |
10877 | CFLAGS="$ac_save_CFLAGS" | |
10878 | LIBS="$ac_save_LIBS" | |
10879 | fi | |
10880 | fi | |
f6bcfd97 BP |
10881 | GTK_CFLAGS="" |
10882 | GTK_LIBS="" | |
10883 | : | |
10884 | fi | |
698dcdb6 VZ |
10885 | |
10886 | ||
3f345b47 | 10887 | rm -f conf.gtktest |
f6bcfd97 | 10888 | |
8168de4c VZ |
10889 | fi |
10890 | ||
10891 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10892 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10893 | if test "${with_gtk_prefix+set}" = set; then | |
10894 | withval="$with_gtk_prefix" | |
10895 | gtk_config_prefix="$withval" | |
10896 | else | |
10897 | gtk_config_prefix="" | |
10898 | fi | |
10899 | ||
10900 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10901 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10902 | withval="$with_gtk_exec_prefix" | |
10903 | gtk_config_exec_prefix="$withval" | |
10904 | else | |
10905 | gtk_config_exec_prefix="" | |
10906 | fi | |
10907 | ||
10908 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10909 | if test "${enable_gtktest+set}" = set; then | |
10910 | enableval="$enable_gtktest" | |
10911 | : | |
10912 | else | |
10913 | enable_gtktest=yes | |
10914 | fi | |
10915 | ||
10916 | ||
10917 | for module in . $GTK_MODULES | |
10918 | do | |
10919 | case "$module" in | |
10920 | gthread) | |
10921 | gtk_config_args="$gtk_config_args gthread" | |
10922 | ;; | |
10923 | esac | |
10924 | done | |
10925 | ||
f6bcfd97 BP |
10926 | if test x$gtk_config_exec_prefix != x ; then |
10927 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10928 | if test x${GTK_CONFIG+set} != xset ; then | |
10929 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10930 | fi | |
10931 | fi | |
10932 | if test x$gtk_config_prefix != x ; then | |
10933 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10934 | if test x${GTK_CONFIG+set} != xset ; then | |
10935 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10936 | fi | |
10937 | fi | |
10938 | ||
10939 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10940 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10941 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 10942 | echo "configure:10943: checking for $ac_word" >&5 |
698dcdb6 VZ |
10943 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10945 | else |
698dcdb6 VZ |
10946 | case "$GTK_CONFIG" in |
10947 | /*) | |
10f2d63a VZ |
10948 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10949 | ;; | |
698dcdb6 VZ |
10950 | ?:/*) |
10951 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10952 | ;; | |
10f2d63a | 10953 | *) |
698dcdb6 VZ |
10954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10955 | ac_dummy="$PATH" | |
10956 | for ac_dir in $ac_dummy; do | |
10957 | test -z "$ac_dir" && ac_dir=. | |
10958 | if test -f $ac_dir/$ac_word; then | |
10959 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10960 | break | |
10961 | fi | |
10962 | done | |
10963 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10964 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10965 | ;; | |
10966 | esac | |
10967 | fi | |
698dcdb6 | 10968 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10969 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10970 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10971 | else |
698dcdb6 | 10972 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10973 | fi |
10974 | ||
04165bec | 10975 | min_gtk_version=1.2.3 |
698dcdb6 | 10976 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d558c907 | 10977 | echo "configure:10978: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10978 | no_gtk="" |
3f345b47 VZ |
10979 | if test "$GTK_CONFIG" = "no" ; then |
10980 | no_gtk=yes | |
10981 | else | |
10982 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10983 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10984 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10985 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10986 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10987 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10988 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10989 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10990 | if test "x$enable_gtktest" = "xyes" ; then | |
10991 | ac_save_CFLAGS="$CFLAGS" | |
10992 | ac_save_LIBS="$LIBS" | |
10993 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10994 | LIBS="$GTK_LIBS $LIBS" | |
10995 | rm -f conf.gtktest | |
10996 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10997 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10998 | else | |
698dcdb6 | 10999 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11000 | #line 11001 "configure" |
10f2d63a VZ |
11001 | #include "confdefs.h" |
11002 | ||
11003 | #include <gtk/gtk.h> | |
11004 | #include <stdio.h> | |
32832908 | 11005 | #include <stdlib.h> |
10f2d63a | 11006 | |
3f345b47 | 11007 | int |
10f2d63a VZ |
11008 | main () |
11009 | { | |
11010 | int major, minor, micro; | |
3f345b47 | 11011 | char *tmp_version; |
10f2d63a | 11012 | |
3f345b47 | 11013 | system ("touch conf.gtktest"); |
10f2d63a | 11014 | |
3f345b47 VZ |
11015 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11016 | tmp_version = g_strdup("$min_gtk_version"); | |
11017 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11018 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
11019 | exit(1); |
11020 | } | |
11021 | ||
3f345b47 VZ |
11022 | if ((gtk_major_version != $gtk_config_major_version) || |
11023 | (gtk_minor_version != $gtk_config_minor_version) || | |
11024 | (gtk_micro_version != $gtk_config_micro_version)) | |
11025 | { | |
11026 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11027 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11028 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11029 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11030 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11031 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11032 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11033 | printf("*** required on your system.\n"); | |
11034 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11035 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11036 | printf("*** before re-running configure\n"); | |
11037 | } | |
11038 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11039 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11040 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11041 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11042 | { | |
11043 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11044 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11045 | printf("*** library (version %d.%d.%d)\n", | |
11046 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11047 | } | |
11048 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11049 | else | |
11050 | { | |
11051 | if ((gtk_major_version > major) || | |
11052 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11053 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11054 | { | |
11055 | return 0; | |
11056 | } | |
11057 | else | |
11058 | { | |
11059 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11060 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11061 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11062 | major, minor, micro); | |
11063 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11064 | printf("***\n"); | |
11065 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11066 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11067 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11068 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11069 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11070 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11071 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11072 | } | |
11073 | } | |
11074 | return 1; | |
10f2d63a VZ |
11075 | } |
11076 | ||
698dcdb6 | 11077 | EOF |
d558c907 | 11078 | if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11079 | then |
10f2d63a VZ |
11080 | : |
11081 | else | |
698dcdb6 VZ |
11082 | echo "configure: failed program was:" >&5 |
11083 | cat conftest.$ac_ext >&5 | |
11084 | rm -fr conftest* | |
11085 | no_gtk=yes | |
10f2d63a | 11086 | fi |
698dcdb6 | 11087 | rm -fr conftest* |
10f2d63a | 11088 | fi |
698dcdb6 | 11089 | |
3f345b47 VZ |
11090 | CFLAGS="$ac_save_CFLAGS" |
11091 | LIBS="$ac_save_LIBS" | |
11092 | fi | |
10f2d63a VZ |
11093 | fi |
11094 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11095 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11096 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11097 | else |
698dcdb6 | 11098 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11099 | if test "$GTK_CONFIG" = "no" ; then |
11100 | echo "*** The gtk-config script installed by GTK could not be found" | |
11101 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11102 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11103 | echo "*** full path to gtk-config." | |
11104 | else | |
11105 | if test -f conf.gtktest ; then | |
11106 | : | |
11107 | else | |
11108 | echo "*** Could not run GTK test program, checking why..." | |
11109 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11110 | LIBS="$LIBS $GTK_LIBS" | |
11111 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 11112 | #line 11113 "configure" |
3f345b47 VZ |
11113 | #include "confdefs.h" |
11114 | ||
11115 | #include <gtk/gtk.h> | |
11116 | #include <stdio.h> | |
11117 | ||
11118 | int main() { | |
11119 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11120 | ; return 0; } | |
11121 | EOF | |
d558c907 | 11122 | if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11123 | rm -rf conftest* |
11124 | echo "*** The test program compiled, but did not run. This usually means" | |
11125 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11126 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11127 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11128 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11129 | echo "*** is required on your system" | |
11130 | echo "***" | |
11131 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11132 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11133 | echo "***" | |
11134 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11135 | echo "*** came with the system with the command" | |
11136 | echo "***" | |
11137 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11138 | else | |
11139 | echo "configure: failed program was:" >&5 | |
11140 | cat conftest.$ac_ext >&5 | |
11141 | rm -rf conftest* | |
11142 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11143 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11144 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11145 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11146 | fi | |
11147 | rm -f conftest* | |
11148 | CFLAGS="$ac_save_CFLAGS" | |
11149 | LIBS="$ac_save_LIBS" | |
11150 | fi | |
11151 | fi | |
10f2d63a VZ |
11152 | GTK_CFLAGS="" |
11153 | GTK_LIBS="" | |
7e99ad86 | 11154 | : |
10f2d63a | 11155 | fi |
698dcdb6 VZ |
11156 | |
11157 | ||
3f345b47 | 11158 | rm -f conf.gtktest |
10f2d63a | 11159 | |
8168de4c VZ |
11160 | fi |
11161 | ||
11162 | if test -z "$wx_cv_lib_gtk"; then | |
11163 | wx_cv_lib_gtk=none | |
138be253 VZ |
11164 | else |
11165 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11166 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11167 | fi |
11168 | ||
1e6feb95 | 11169 | |
8168de4c | 11170 | fi |
703e0a69 | 11171 | |
698dcdb6 | 11172 | |
8168de4c VZ |
11173 | if test "$gtk_version_cached" = 1; then |
11174 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11175 | fi |
698dcdb6 | 11176 | |
8168de4c VZ |
11177 | case "$wx_cv_lib_gtk" in |
11178 | 2.0) WXGTK20=1 | |
11179 | ;; | |
11180 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11181 | WXGTK12=1 |
8168de4c VZ |
11182 | ;; |
11183 | 1.2.3) WXGTK12=1 | |
11184 | ;; | |
11185 | *) { echo "configure: error: | |
11186 | Please check that gtk-config is in path, the directory | |
11187 | where GTK+ libraries are installed (returned by | |
11188 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11189 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11190 | " 1>&2; exit 1; } | |
11191 | ;; | |
11192 | esac | |
2224580a | 11193 | |
138be253 | 11194 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11195 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11196 | |
1e6feb95 VZ |
11197 | AFMINSTALL=afminstall |
11198 | TOOLKIT=GTK | |
11199 | GUIDIST=GTK_DIST | |
7ec2881a | 11200 | |
1e6feb95 | 11201 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d558c907 | 11202 | echo "configure:11203: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11203 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11204 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11206 | else |
698dcdb6 | 11207 | ac_save_LIBS="$LIBS" |
7ec2881a | 11208 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11209 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11210 | #line 11211 "configure" |
7ec2881a RR |
11211 | #include "confdefs.h" |
11212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11213 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11214 | builtin and then its argument prototype would still apply. */ |
11215 | char gdk_im_open(); | |
11216 | ||
11217 | int main() { | |
11218 | gdk_im_open() | |
11219 | ; return 0; } | |
11220 | EOF | |
d558c907 | 11221 | if { (eval echo configure:11222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11222 | rm -rf conftest* |
11223 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11224 | else | |
11225 | echo "configure: failed program was:" >&5 | |
11226 | cat conftest.$ac_ext >&5 | |
11227 | rm -rf conftest* | |
11228 | eval "ac_cv_lib_$ac_lib_var=no" | |
11229 | fi | |
11230 | rm -f conftest* | |
11231 | LIBS="$ac_save_LIBS" | |
11232 | ||
11233 | fi | |
11234 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11235 | echo "$ac_t""yes" 1>&6 | |
11236 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11237 | #define HAVE_XIM 1 |
11238 | EOF | |
11239 | ||
698dcdb6 VZ |
11240 | else |
11241 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11242 | fi |
11243 | ||
1e6feb95 | 11244 | fi |
10f2d63a | 11245 | |
1e6feb95 | 11246 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11247 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
d558c907 | 11248 | echo "configure:11249: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11249 | if test "x$MGL_ROOT" = x ; then |
11250 | echo "$ac_t""not found" 1>&6 | |
11251 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11252 | else | |
11253 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11254 | fi | |
11255 | ||
f9bc1684 VS |
11256 | case "${host}" in |
11257 | *-*-linux* ) | |
11258 | mgl_os=linux/gcc/glibc | |
11259 | ;; | |
11260 | *-pc-msdosdjgpp ) | |
11261 | mgl_os=dos32/dj2 | |
11262 | ;; | |
11263 | *) | |
11264 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11265 | esac | |
11266 | ||
3a922bb4 | 11267 | mgl_lib_type="" |
1e6feb95 VZ |
11268 | |
11269 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11270 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11271 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11272 | mgl_lib_type=debug |
1e6feb95 VZ |
11273 | fi |
11274 | fi | |
3a922bb4 | 11275 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11276 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11277 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11278 | mgl_lib_type=release |
1e6feb95 VZ |
11279 | else |
11280 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11281 | fi | |
11282 | fi | |
11283 | ||
11284 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11285 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11286 | |
11287 | AFMINSTALL=afminstall | |
11288 | TOOLKIT=MGL | |
11289 | GUIDIST=MGL_DIST | |
11290 | fi | |
11291 | ||
1725144d RR |
11292 | if test "$wxUSE_MICROWIN" = 1; then |
11293 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
d558c907 | 11294 | echo "configure:11295: checking for MicroWindows" >&5 |
1725144d RR |
11295 | if test "x$MICROWINDOWS" = x ; then |
11296 | echo "$ac_t""not found" 1>&6 | |
11297 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11298 | else | |
11299 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11300 | fi | |
11301 | ||
11302 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11303 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11304 | else | |
11305 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11306 | fi | |
11307 | ||
11308 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11309 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11310 | ||
11311 | AFMINSTALL=afminstall | |
11312 | TOOLKIT=MICROWIN | |
11313 | GUIDIST=MICROWIN_DIST | |
11314 | ||
11315 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11316 | fi | |
11317 | ||
f79bd02d | 11318 | if test "$wxUSE_X11" = 1; then |
d714471b | 11319 | # If we find X, set shell vars x_includes and x_libraries to the |
698dcdb6 VZ |
11320 | # paths, otherwise set no_x=yes. |
11321 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11322 | # --without-x overrides everything else, but does not touch the cache. | |
11323 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d558c907 | 11324 | echo "configure:11325: checking for X" >&5 |
ab9b9eab VZ |
11325 | |
11326 | # Check whether --with-x or --without-x was given. | |
11327 | if test "${with_x+set}" = set; then | |
11328 | withval="$with_x" | |
698dcdb6 VZ |
11329 | : |
11330 | fi | |
ba337fe7 | 11331 | |
ab9b9eab VZ |
11332 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11333 | if test "x$with_x" = xno; then | |
11334 | # The user explicitly disabled X. | |
11335 | have_x=disabled | |
11336 | else | |
11337 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11338 | # Both variables are already set. | |
11339 | have_x=yes | |
11340 | else | |
698dcdb6 VZ |
11341 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11343 | else |
11344 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11345 | ac_x_includes=NO ac_x_libraries=NO |
11346 | rm -fr conftestdir | |
11347 | if mkdir conftestdir; then | |
11348 | cd conftestdir | |
ab9b9eab | 11349 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11350 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11351 | acfindx: |
11352 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11353 | EOF | |
11354 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11355 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11356 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11357 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11358 | for ac_extension in a so sl; do |
ab9b9eab | 11359 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11360 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11361 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11362 | fi |
11363 | done | |
ab9b9eab VZ |
11364 | # Screen out bogus values from the imake configuration. They are |
11365 | # bogus both because they are the default anyway, and because | |
11366 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11367 | case "$ac_im_incroot" in |
ab9b9eab | 11368 | /usr/include) ;; |
698dcdb6 | 11369 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11370 | esac |
698dcdb6 | 11371 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11372 | /usr/lib | /lib) ;; |
698dcdb6 | 11373 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11374 | esac |
ba337fe7 | 11375 | fi |
ab9b9eab | 11376 | cd .. |
698dcdb6 | 11377 | rm -fr conftestdir |
ab9b9eab | 11378 | fi |
10f2d63a | 11379 | |
698dcdb6 VZ |
11380 | if test "$ac_x_includes" = NO; then |
11381 | # Guess where to find include files, by looking for this one X11 .h file. | |
11382 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11383 | ||
ab9b9eab | 11384 | # First, try using that file with no special directory specified. |
698dcdb6 | 11385 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11386 | #line 11387 "configure" |
ab9b9eab | 11387 | #include "confdefs.h" |
698dcdb6 VZ |
11388 | #include <$x_direct_test_include> |
11389 | EOF | |
11390 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 11391 | { (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11392 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11393 | if test -z "$ac_err"; then | |
11394 | rm -rf conftest* | |
ab9b9eab VZ |
11395 | # We can compile using X headers with no special include directory. |
11396 | ac_x_includes= | |
11397 | else | |
698dcdb6 VZ |
11398 | echo "$ac_err" >&5 |
11399 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11400 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11401 | rm -rf conftest* |
11402 | # Look for the header file in a standard set of common directories. | |
11403 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11404 | for ac_dir in \ | |
11405 | /usr/X11/include \ | |
11406 | /usr/X11R6/include \ | |
11407 | /usr/X11R5/include \ | |
11408 | /usr/X11R4/include \ | |
11409 | \ | |
11410 | /usr/include/X11 \ | |
11411 | /usr/include/X11R6 \ | |
11412 | /usr/include/X11R5 \ | |
11413 | /usr/include/X11R4 \ | |
11414 | \ | |
11415 | /usr/local/X11/include \ | |
11416 | /usr/local/X11R6/include \ | |
11417 | /usr/local/X11R5/include \ | |
11418 | /usr/local/X11R4/include \ | |
11419 | \ | |
11420 | /usr/local/include/X11 \ | |
11421 | /usr/local/include/X11R6 \ | |
11422 | /usr/local/include/X11R5 \ | |
11423 | /usr/local/include/X11R4 \ | |
11424 | \ | |
11425 | /usr/X386/include \ | |
11426 | /usr/x386/include \ | |
11427 | /usr/XFree86/include/X11 \ | |
11428 | \ | |
11429 | /usr/include \ | |
11430 | /usr/local/include \ | |
11431 | /usr/unsupported/include \ | |
11432 | /usr/athena/include \ | |
11433 | /usr/local/x11r5/include \ | |
11434 | /usr/lpp/Xamples/include \ | |
11435 | \ | |
11436 | /usr/openwin/include \ | |
11437 | /usr/openwin/share/include \ | |
11438 | ; \ | |
11439 | do | |
11440 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11441 | ac_x_includes=$ac_dir | |
11442 | break | |
11443 | fi | |
11444 | done | |
ab9b9eab | 11445 | fi |
698dcdb6 VZ |
11446 | rm -f conftest* |
11447 | fi # $ac_x_includes = NO | |
10f2d63a | 11448 | |
698dcdb6 | 11449 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11450 | # Check for the libraries. |
698dcdb6 VZ |
11451 | |
11452 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11453 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11454 | ||
ab9b9eab VZ |
11455 | # See if we find them without any special options. |
11456 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11457 | ac_save_LIBS="$LIBS" |
11458 | LIBS="-l$x_direct_test_library $LIBS" | |
11459 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 11460 | #line 11461 "configure" |
ab9b9eab | 11461 | #include "confdefs.h" |
698dcdb6 VZ |
11462 | |
11463 | int main() { | |
11464 | ${x_direct_test_function}() | |
11465 | ; return 0; } | |
11466 | EOF | |
d558c907 | 11467 | if { (eval echo configure:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11468 | rm -rf conftest* |
11469 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11470 | # We can link X programs with no special library path. |
11471 | ac_x_libraries= | |
11472 | else | |
698dcdb6 VZ |
11473 | echo "configure: failed program was:" >&5 |
11474 | cat conftest.$ac_ext >&5 | |
11475 | rm -rf conftest* | |
11476 | LIBS="$ac_save_LIBS" | |
11477 | # First see if replacing the include by lib works. | |
11478 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11479 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11480 | /usr/X11/lib \ | |
11481 | /usr/X11R6/lib \ | |
11482 | /usr/X11R5/lib \ | |
11483 | /usr/X11R4/lib \ | |
11484 | \ | |
11485 | /usr/lib/X11 \ | |
11486 | /usr/lib/X11R6 \ | |
11487 | /usr/lib/X11R5 \ | |
11488 | /usr/lib/X11R4 \ | |
11489 | \ | |
11490 | /usr/local/X11/lib \ | |
11491 | /usr/local/X11R6/lib \ | |
11492 | /usr/local/X11R5/lib \ | |
11493 | /usr/local/X11R4/lib \ | |
11494 | \ | |
11495 | /usr/local/lib/X11 \ | |
11496 | /usr/local/lib/X11R6 \ | |
11497 | /usr/local/lib/X11R5 \ | |
11498 | /usr/local/lib/X11R4 \ | |
11499 | \ | |
11500 | /usr/X386/lib \ | |
11501 | /usr/x386/lib \ | |
11502 | /usr/XFree86/lib/X11 \ | |
11503 | \ | |
11504 | /usr/lib \ | |
11505 | /usr/local/lib \ | |
11506 | /usr/unsupported/lib \ | |
11507 | /usr/athena/lib \ | |
11508 | /usr/local/x11r5/lib \ | |
11509 | /usr/lpp/Xamples/lib \ | |
11510 | /lib/usr/lib/X11 \ | |
11511 | \ | |
11512 | /usr/openwin/lib \ | |
11513 | /usr/openwin/share/lib \ | |
11514 | ; \ | |
ab9b9eab VZ |
11515 | do |
11516 | for ac_extension in a so sl; do | |
698dcdb6 | 11517 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11518 | ac_x_libraries=$ac_dir |
11519 | break 2 | |
10f2d63a | 11520 | fi |
10f2d63a | 11521 | done |
ab9b9eab VZ |
11522 | done |
11523 | fi | |
698dcdb6 VZ |
11524 | rm -f conftest* |
11525 | fi # $ac_x_libraries = NO | |
10f2d63a | 11526 | |
698dcdb6 | 11527 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11528 | # Didn't find X anywhere. Cache the known absence of X. |
11529 | ac_cv_have_x="have_x=no" | |
11530 | else | |
11531 | # Record where we found X for the cache. | |
11532 | ac_cv_have_x="have_x=yes \ | |
11533 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11534 | fi | |
11535 | fi | |
10f2d63a | 11536 | fi |
ab9b9eab VZ |
11537 | eval "$ac_cv_have_x" |
11538 | fi # $with_x != no | |
10f2d63a | 11539 | |
ab9b9eab | 11540 | if test "$have_x" != yes; then |
698dcdb6 | 11541 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11542 | no_x=yes |
11543 | else | |
11544 | # If each of the values was on the command line, it overrides each guess. | |
11545 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11546 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11547 | # Update the cache value to reflect the command line values. | |
11548 | ac_cv_have_x="have_x=yes \ | |
11549 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11550 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11551 | fi |
10f2d63a | 11552 | |
ab9b9eab VZ |
11553 | if test "$no_x" = yes; then |
11554 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11555 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11556 | #define X_DISPLAY_MISSING 1 |
11557 | EOF | |
10f2d63a | 11558 | |
ab9b9eab VZ |
11559 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11560 | else | |
11561 | if test -n "$x_includes"; then | |
11562 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11563 | fi |
11564 | ||
ab9b9eab VZ |
11565 | # It would also be nice to do this for all -L options, not just this one. |
11566 | if test -n "$x_libraries"; then | |
11567 | X_LIBS="$X_LIBS -L$x_libraries" | |
11568 | # For Solaris; some versions of Sun CC require a space after -R and | |
11569 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11570 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11571 | "SunOS 5"*) |
698dcdb6 | 11572 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d558c907 | 11573 | echo "configure:11574: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11574 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11575 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 11576 | #line 11577 "configure" |
ab9b9eab | 11577 | #include "confdefs.h" |
10f2d63a | 11578 | |
698dcdb6 | 11579 | int main() { |
788deba1 | 11580 | |
698dcdb6 VZ |
11581 | ; return 0; } |
11582 | EOF | |
d558c907 | 11583 | if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11584 | rm -rf conftest* |
ab9b9eab VZ |
11585 | ac_R_nospace=yes |
11586 | else | |
698dcdb6 VZ |
11587 | echo "configure: failed program was:" >&5 |
11588 | cat conftest.$ac_ext >&5 | |
11589 | rm -rf conftest* | |
11590 | ac_R_nospace=no | |
ab9b9eab | 11591 | fi |
698dcdb6 | 11592 | rm -f conftest* |
ab9b9eab | 11593 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11594 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11595 | X_LIBS="$X_LIBS -R$x_libraries" |
11596 | else | |
11597 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11598 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11599 | #line 11600 "configure" |
ab9b9eab | 11600 | #include "confdefs.h" |
788deba1 | 11601 | |
698dcdb6 | 11602 | int main() { |
ab9b9eab | 11603 | |
698dcdb6 VZ |
11604 | ; return 0; } |
11605 | EOF | |
d558c907 | 11606 | if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11607 | rm -rf conftest* |
ab9b9eab VZ |
11608 | ac_R_space=yes |
11609 | else | |
698dcdb6 VZ |
11610 | echo "configure: failed program was:" >&5 |
11611 | cat conftest.$ac_ext >&5 | |
11612 | rm -rf conftest* | |
11613 | ac_R_space=no | |
ab9b9eab | 11614 | fi |
698dcdb6 | 11615 | rm -f conftest* |
ab9b9eab | 11616 | if test $ac_R_space = yes; then |
698dcdb6 | 11617 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11618 | X_LIBS="$X_LIBS -R $x_libraries" |
11619 | else | |
698dcdb6 | 11620 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11621 | fi |
11622 | fi | |
698dcdb6 | 11623 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11624 | esac |
11625 | fi | |
11626 | ||
11627 | # Check for system-dependent libraries X programs must link with. | |
11628 | # Do this before checking for the system-independent R6 libraries | |
11629 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11630 | ||
11631 | if test "$ISC" = yes; then | |
11632 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11633 | else | |
698dcdb6 VZ |
11634 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11635 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11636 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11637 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d558c907 | 11638 | echo "configure:11639: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11639 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11642 | else |
698dcdb6 | 11643 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11644 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11645 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11646 | #line 11647 "configure" |
ab9b9eab VZ |
11647 | #include "confdefs.h" |
11648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11649 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11650 | builtin and then its argument prototype would still apply. */ |
11651 | char dnet_ntoa(); | |
11652 | ||
11653 | int main() { | |
11654 | dnet_ntoa() | |
11655 | ; return 0; } | |
11656 | EOF | |
d558c907 | 11657 | if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11658 | rm -rf conftest* |
11659 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11660 | else | |
11661 | echo "configure: failed program was:" >&5 | |
11662 | cat conftest.$ac_ext >&5 | |
11663 | rm -rf conftest* | |
11664 | eval "ac_cv_lib_$ac_lib_var=no" | |
11665 | fi | |
11666 | rm -f conftest* | |
11667 | LIBS="$ac_save_LIBS" | |
11668 | ||
11669 | fi | |
11670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11671 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11672 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11673 | else |
11674 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11675 | fi |
11676 | ||
11677 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11678 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d558c907 | 11679 | echo "configure:11680: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11680 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11683 | else |
698dcdb6 | 11684 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11685 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11686 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11687 | #line 11688 "configure" |
ab9b9eab VZ |
11688 | #include "confdefs.h" |
11689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11690 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11691 | builtin and then its argument prototype would still apply. */ |
11692 | char dnet_ntoa(); | |
11693 | ||
11694 | int main() { | |
11695 | dnet_ntoa() | |
11696 | ; return 0; } | |
11697 | EOF | |
d558c907 | 11698 | if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11699 | rm -rf conftest* |
11700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11701 | else | |
11702 | echo "configure: failed program was:" >&5 | |
11703 | cat conftest.$ac_ext >&5 | |
11704 | rm -rf conftest* | |
11705 | eval "ac_cv_lib_$ac_lib_var=no" | |
11706 | fi | |
11707 | rm -f conftest* | |
11708 | LIBS="$ac_save_LIBS" | |
11709 | ||
11710 | fi | |
11711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11712 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11713 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11714 | else |
11715 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11716 | fi |
11717 | ||
11718 | fi | |
11719 | ||
11720 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11721 | # to get the SysV transport functions. | |
698dcdb6 | 11722 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11723 | # needs -lnsl. |
11724 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11725 | # on Irix 5.2, according to dickey@clark.net. |
11726 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d558c907 | 11727 | echo "configure:11728: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11728 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11730 | else | |
11731 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 11732 | #line 11733 "configure" |
ab9b9eab VZ |
11733 | #include "confdefs.h" |
11734 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11735 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11736 | #include <assert.h> |
11737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11738 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11739 | builtin and then its argument prototype would still apply. */ |
11740 | char gethostbyname(); | |
11741 | ||
11742 | int main() { | |
ab9b9eab VZ |
11743 | |
11744 | /* The GNU C library defines this for functions which it implements | |
11745 | to always fail with ENOSYS. Some functions are actually named | |
11746 | something starting with __ and the normal name is an alias. */ | |
11747 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11748 | choke me | |
11749 | #else | |
698dcdb6 | 11750 | gethostbyname(); |
ab9b9eab VZ |
11751 | #endif |
11752 | ||
698dcdb6 VZ |
11753 | ; return 0; } |
11754 | EOF | |
d558c907 | 11755 | if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11756 | rm -rf conftest* |
11757 | eval "ac_cv_func_gethostbyname=yes" | |
11758 | else | |
11759 | echo "configure: failed program was:" >&5 | |
11760 | cat conftest.$ac_ext >&5 | |
11761 | rm -rf conftest* | |
11762 | eval "ac_cv_func_gethostbyname=no" | |
11763 | fi | |
11764 | rm -f conftest* | |
11765 | fi | |
11766 | ||
11767 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11768 | echo "$ac_t""yes" 1>&6 | |
11769 | : | |
11770 | else | |
11771 | echo "$ac_t""no" 1>&6 | |
11772 | fi | |
ab9b9eab VZ |
11773 | |
11774 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11775 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d558c907 | 11776 | echo "configure:11777: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11777 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11780 | else |
698dcdb6 | 11781 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11782 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11783 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11784 | #line 11785 "configure" |
ab9b9eab VZ |
11785 | #include "confdefs.h" |
11786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11787 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11788 | builtin and then its argument prototype would still apply. */ |
11789 | char gethostbyname(); | |
6232543b | 11790 | |
698dcdb6 VZ |
11791 | int main() { |
11792 | gethostbyname() | |
11793 | ; return 0; } | |
11794 | EOF | |
d558c907 | 11795 | if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11796 | rm -rf conftest* |
11797 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11798 | else |
698dcdb6 VZ |
11799 | echo "configure: failed program was:" >&5 |
11800 | cat conftest.$ac_ext >&5 | |
11801 | rm -rf conftest* | |
11802 | eval "ac_cv_lib_$ac_lib_var=no" | |
11803 | fi | |
11804 | rm -f conftest* | |
11805 | LIBS="$ac_save_LIBS" | |
1e487827 | 11806 | |
698dcdb6 VZ |
11807 | fi |
11808 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11809 | echo "$ac_t""yes" 1>&6 | |
11810 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11811 | else | |
11812 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11813 | fi |
11814 | ||
11815 | fi | |
11816 | ||
11817 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11818 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11819 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11820 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11821 | # gethostby* variants that don't use the nameserver (or something). | |
11822 | # -lsocket must be given before -lnsl if both are needed. | |
11823 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11824 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d558c907 | 11825 | echo "configure:11826: checking for connect" >&5 |
698dcdb6 VZ |
11826 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11828 | else | |
11829 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 11830 | #line 11831 "configure" |
ab9b9eab VZ |
11831 | #include "confdefs.h" |
11832 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11833 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11834 | #include <assert.h> |
11835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11837 | builtin and then its argument prototype would still apply. */ |
11838 | char connect(); | |
11839 | ||
11840 | int main() { | |
ab9b9eab VZ |
11841 | |
11842 | /* The GNU C library defines this for functions which it implements | |
11843 | to always fail with ENOSYS. Some functions are actually named | |
11844 | something starting with __ and the normal name is an alias. */ | |
11845 | #if defined (__stub_connect) || defined (__stub___connect) | |
11846 | choke me | |
11847 | #else | |
698dcdb6 | 11848 | connect(); |
ab9b9eab VZ |
11849 | #endif |
11850 | ||
698dcdb6 VZ |
11851 | ; return 0; } |
11852 | EOF | |
d558c907 | 11853 | if { (eval echo configure:11854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11854 | rm -rf conftest* |
11855 | eval "ac_cv_func_connect=yes" | |
11856 | else | |
11857 | echo "configure: failed program was:" >&5 | |
11858 | cat conftest.$ac_ext >&5 | |
11859 | rm -rf conftest* | |
11860 | eval "ac_cv_func_connect=no" | |
11861 | fi | |
11862 | rm -f conftest* | |
11863 | fi | |
11864 | ||
11865 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11866 | echo "$ac_t""yes" 1>&6 | |
11867 | : | |
11868 | else | |
11869 | echo "$ac_t""no" 1>&6 | |
11870 | fi | |
ab9b9eab VZ |
11871 | |
11872 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11873 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d558c907 | 11874 | echo "configure:11875: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11875 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11878 | else |
698dcdb6 | 11879 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11880 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11881 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11882 | #line 11883 "configure" |
ab9b9eab VZ |
11883 | #include "confdefs.h" |
11884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11885 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11886 | builtin and then its argument prototype would still apply. */ |
11887 | char connect(); | |
11888 | ||
11889 | int main() { | |
11890 | connect() | |
11891 | ; return 0; } | |
11892 | EOF | |
d558c907 | 11893 | if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11894 | rm -rf conftest* |
11895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11896 | else | |
11897 | echo "configure: failed program was:" >&5 | |
11898 | cat conftest.$ac_ext >&5 | |
11899 | rm -rf conftest* | |
11900 | eval "ac_cv_lib_$ac_lib_var=no" | |
11901 | fi | |
11902 | rm -f conftest* | |
11903 | LIBS="$ac_save_LIBS" | |
11904 | ||
11905 | fi | |
11906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11907 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11908 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11909 | else |
11910 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11911 | fi |
11912 | ||
11913 | fi | |
11914 | ||
698dcdb6 VZ |
11915 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11916 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d558c907 | 11917 | echo "configure:11918: checking for remove" >&5 |
698dcdb6 VZ |
11918 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11920 | else |
698dcdb6 | 11921 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11922 | #line 11923 "configure" |
ab9b9eab VZ |
11923 | #include "confdefs.h" |
11924 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11925 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11926 | #include <assert.h> |
11927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11928 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11929 | builtin and then its argument prototype would still apply. */ |
11930 | char remove(); | |
11931 | ||
11932 | int main() { | |
ab9b9eab VZ |
11933 | |
11934 | /* The GNU C library defines this for functions which it implements | |
11935 | to always fail with ENOSYS. Some functions are actually named | |
11936 | something starting with __ and the normal name is an alias. */ | |
11937 | #if defined (__stub_remove) || defined (__stub___remove) | |
11938 | choke me | |
11939 | #else | |
698dcdb6 | 11940 | remove(); |
ab9b9eab VZ |
11941 | #endif |
11942 | ||
698dcdb6 VZ |
11943 | ; return 0; } |
11944 | EOF | |
d558c907 | 11945 | if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11946 | rm -rf conftest* |
11947 | eval "ac_cv_func_remove=yes" | |
11948 | else | |
11949 | echo "configure: failed program was:" >&5 | |
11950 | cat conftest.$ac_ext >&5 | |
11951 | rm -rf conftest* | |
11952 | eval "ac_cv_func_remove=no" | |
11953 | fi | |
11954 | rm -f conftest* | |
11955 | fi | |
11956 | ||
11957 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11958 | echo "$ac_t""yes" 1>&6 | |
11959 | : | |
11960 | else | |
11961 | echo "$ac_t""no" 1>&6 | |
11962 | fi | |
ab9b9eab VZ |
11963 | |
11964 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11965 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d558c907 | 11966 | echo "configure:11967: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11967 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11968 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11970 | else |
698dcdb6 | 11971 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11972 | LIBS="-lposix $LIBS" |
698dcdb6 | 11973 | cat > conftest.$ac_ext <<EOF |
d558c907 | 11974 | #line 11975 "configure" |
ab9b9eab VZ |
11975 | #include "confdefs.h" |
11976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11977 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11978 | builtin and then its argument prototype would still apply. */ |
11979 | char remove(); | |
11980 | ||
11981 | int main() { | |
11982 | remove() | |
11983 | ; return 0; } | |
11984 | EOF | |
d558c907 | 11985 | if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11986 | rm -rf conftest* |
11987 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11988 | else | |
11989 | echo "configure: failed program was:" >&5 | |
11990 | cat conftest.$ac_ext >&5 | |
11991 | rm -rf conftest* | |
11992 | eval "ac_cv_lib_$ac_lib_var=no" | |
11993 | fi | |
11994 | rm -f conftest* | |
11995 | LIBS="$ac_save_LIBS" | |
11996 | ||
11997 | fi | |
11998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11999 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12000 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
12001 | else |
12002 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12003 | fi |
12004 | ||
12005 | fi | |
12006 | ||
12007 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 12008 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d558c907 | 12009 | echo "configure:12010: checking for shmat" >&5 |
698dcdb6 VZ |
12010 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12012 | else |
698dcdb6 | 12013 | cat > conftest.$ac_ext <<EOF |
d558c907 | 12014 | #line 12015 "configure" |
ab9b9eab VZ |
12015 | #include "confdefs.h" |
12016 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12017 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
12018 | #include <assert.h> |
12019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12020 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12021 | builtin and then its argument prototype would still apply. */ |
12022 | char shmat(); | |
12023 | ||
12024 | int main() { | |
ab9b9eab VZ |
12025 | |
12026 | /* The GNU C library defines this for functions which it implements | |
12027 | to always fail with ENOSYS. Some functions are actually named | |
12028 | something starting with __ and the normal name is an alias. */ | |
12029 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12030 | choke me | |
12031 | #else | |
698dcdb6 | 12032 | shmat(); |
ab9b9eab VZ |
12033 | #endif |
12034 | ||
698dcdb6 VZ |
12035 | ; return 0; } |
12036 | EOF | |
d558c907 | 12037 | if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12038 | rm -rf conftest* |
12039 | eval "ac_cv_func_shmat=yes" | |
12040 | else | |
12041 | echo "configure: failed program was:" >&5 | |
12042 | cat conftest.$ac_ext >&5 | |
12043 | rm -rf conftest* | |
12044 | eval "ac_cv_func_shmat=no" | |
12045 | fi | |
12046 | rm -f conftest* | |
12047 | fi | |
12048 | ||
12049 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12050 | echo "$ac_t""yes" 1>&6 | |
12051 | : | |
12052 | else | |
12053 | echo "$ac_t""no" 1>&6 | |
12054 | fi | |
ab9b9eab VZ |
12055 | |
12056 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12057 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d558c907 | 12058 | echo "configure:12059: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12059 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12060 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12062 | else |
698dcdb6 | 12063 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12064 | LIBS="-lipc $LIBS" |
698dcdb6 | 12065 | cat > conftest.$ac_ext <<EOF |
d558c907 | 12066 | #line 12067 "configure" |
ab9b9eab VZ |
12067 | #include "confdefs.h" |
12068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12069 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12070 | builtin and then its argument prototype would still apply. */ |
12071 | char shmat(); | |
12072 | ||
12073 | int main() { | |
12074 | shmat() | |
12075 | ; return 0; } | |
12076 | EOF | |
d558c907 | 12077 | if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12078 | rm -rf conftest* |
12079 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12080 | else | |
12081 | echo "configure: failed program was:" >&5 | |
12082 | cat conftest.$ac_ext >&5 | |
12083 | rm -rf conftest* | |
12084 | eval "ac_cv_lib_$ac_lib_var=no" | |
12085 | fi | |
12086 | rm -f conftest* | |
12087 | LIBS="$ac_save_LIBS" | |
12088 | ||
12089 | fi | |
12090 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12091 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12092 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12093 | else |
12094 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12095 | fi |
12096 | ||
12097 | fi | |
12098 | fi | |
12099 | ||
12100 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12101 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12102 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12103 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12104 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12105 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12106 | # These have to be linked with before -lX11, unlike the other | |
12107 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12108 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12109 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d558c907 | 12110 | echo "configure:12111: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12111 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12112 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12114 | else | |
12115 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12116 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12117 | cat > conftest.$ac_ext <<EOF |
d558c907 | 12118 | #line 12119 "configure" |
ab9b9eab VZ |
12119 | #include "confdefs.h" |
12120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12121 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12122 | builtin and then its argument prototype would still apply. */ |
12123 | char IceConnectionNumber(); | |
12124 | ||
12125 | int main() { | |
12126 | IceConnectionNumber() | |
12127 | ; return 0; } | |
12128 | EOF | |
d558c907 | 12129 | if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12130 | rm -rf conftest* |
12131 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12132 | else | |
12133 | echo "configure: failed program was:" >&5 | |
12134 | cat conftest.$ac_ext >&5 | |
12135 | rm -rf conftest* | |
12136 | eval "ac_cv_lib_$ac_lib_var=no" | |
12137 | fi | |
12138 | rm -f conftest* | |
12139 | LIBS="$ac_save_LIBS" | |
12140 | ||
12141 | fi | |
12142 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12143 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12144 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12145 | else |
12146 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12147 | fi |
12148 | ||
698dcdb6 | 12149 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12150 | |
12151 | fi | |
12152 | ||
12153 | ||
1e6feb95 VZ |
12154 | if test "$no_x" = "yes"; then |
12155 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12156 | fi | |
ab9b9eab | 12157 | |
1e6feb95 VZ |
12158 | GUI_TK_LIBRARY="$X_LIBS" |
12159 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12160 | AFMINSTALL=afminstall |
1e6feb95 | 12161 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12162 | |
e334d0ea | 12163 | if test "$wxUSE_NANOX" = "yes"; then |
d8356fa3 | 12164 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
d558c907 | 12165 | echo "configure:12166: checking for MicroWindows/NanoX distribution" >&5 |
d8356fa3 VZ |
12166 | if test "x$MICROWIN" = x ; then |
12167 | echo "$ac_t""not found" 1>&6 | |
12168 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
12169 | else | |
12170 | echo "$ac_t""$MICROWIN" 1>&6 | |
12171 | fi | |
12172 | fi | |
12173 | ||
3d63bc3a | 12174 | xpm_link= |
1e6feb95 | 12175 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
d558c907 | 12176 | echo "configure:12177: checking for Xpm library" >&5 |
1e6feb95 | 12177 | |
ab9b9eab VZ |
12178 | ac_find_libraries= |
12179 | for ac_dir in $SEARCH_LIB; | |
12180 | do | |
f11bdd03 | 12181 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12182 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12183 | ac_find_libraries=$ac_dir | |
12184 | break 2 | |
12185 | fi | |
12186 | done | |
12187 | done | |
12188 | ||
1e6feb95 VZ |
12189 | if test "$ac_find_libraries" != "" ; then |
12190 | ||
ab9b9eab VZ |
12191 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12192 | result=$? | |
12193 | if test $result = 0; then | |
12194 | ac_path_to_link="" | |
12195 | else | |
62d0491b | 12196 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12197 | fi |
12198 | ||
62d0491b | 12199 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12200 | xpm_link=" -lXpm" |
1e6feb95 | 12201 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12202 | #define wxHAVE_LIB_XPM 1 |
12203 | EOF | |
12204 | ||
1e6feb95 VZ |
12205 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12206 | else | |
12207 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12208 | #line 12209 "configure" |
cd6d6d5b VZ |
12209 | #include "confdefs.h" |
12210 | ||
1e6feb95 VZ |
12211 | #include <X11/xpm.h> |
12212 | ||
698dcdb6 | 12213 | int main() { |
cd6d6d5b | 12214 | |
1e6feb95 | 12215 | int version; |
1e6feb95 VZ |
12216 | version = XpmLibraryVersion(); |
12217 | ||
698dcdb6 VZ |
12218 | ; return 0; } |
12219 | EOF | |
d558c907 | 12220 | if { (eval echo configure:12221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12221 | rm -rf conftest* |
12222 | ||
3d63bc3a | 12223 | xpm_link=" -lXpm" |
3a922bb4 | 12224 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12225 | #define wxHAVE_LIB_XPM 1 |
12226 | EOF | |
12227 | ||
1e6feb95 VZ |
12228 | echo "$ac_t""found in default search path" 1>&6 |
12229 | COMPILED_X_PROGRAM=0 | |
12230 | ||
cd6d6d5b | 12231 | else |
698dcdb6 VZ |
12232 | echo "configure: failed program was:" >&5 |
12233 | cat conftest.$ac_ext >&5 | |
12234 | rm -rf conftest* | |
12235 | ||
1e6feb95 VZ |
12236 | echo "$ac_t""no" 1>&6 |
12237 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12238 | ||
698dcdb6 | 12239 | |
cd6d6d5b | 12240 | fi |
698dcdb6 | 12241 | rm -f conftest* |
1e6feb95 VZ |
12242 | fi |
12243 | ||
e334d0ea | 12244 | if test "$wxUSE_NANOX" = "yes"; then |
d8356fa3 | 12245 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" |
3c011993 | 12246 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__" |
d8356fa3 VZ |
12247 | 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" |
12248 | else | |
0feee163 | 12249 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" |
d8356fa3 VZ |
12250 | fi |
12251 | ||
3c011993 | 12252 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
f79bd02d JS |
12253 | TOOLKIT=X11 |
12254 | GUIDIST=X11_DIST | |
1e6feb95 | 12255 | fi |
10f2d63a | 12256 | |
f79bd02d JS |
12257 | if test "$wxUSE_WINE" = 1; then |
12258 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12259 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
d558c907 | 12260 | echo "configure:12261: checking for windows.h" >&5 |
f79bd02d JS |
12261 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12263 | else | |
12264 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12265 | #line 12266 "configure" |
f79bd02d JS |
12266 | #include "confdefs.h" |
12267 | #include <windows.h> | |
12268 | EOF | |
12269 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 12270 | { (eval echo configure:12271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
12271 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12272 | if test -z "$ac_err"; then | |
12273 | rm -rf conftest* | |
12274 | eval "ac_cv_header_$ac_safe=yes" | |
12275 | else | |
12276 | echo "$ac_err" >&5 | |
12277 | echo "configure: failed program was:" >&5 | |
12278 | cat conftest.$ac_ext >&5 | |
12279 | rm -rf conftest* | |
12280 | eval "ac_cv_header_$ac_safe=no" | |
12281 | fi | |
12282 | rm -f conftest* | |
12283 | fi | |
12284 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12285 | echo "$ac_t""yes" 1>&6 | |
12286 | : | |
12287 | else | |
12288 | echo "$ac_t""no" 1>&6 | |
12289 | ||
12290 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12291 | ||
12292 | fi | |
12293 | ||
12294 | ||
12295 | xpm_link= | |
12296 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d558c907 | 12297 | echo "configure:12298: checking for Xpm library" >&5 |
f79bd02d JS |
12298 | |
12299 | ac_find_libraries= | |
12300 | for ac_dir in $SEARCH_LIB; | |
12301 | do | |
12302 | for ac_extension in a so sl dylib; do | |
12303 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12304 | ac_find_libraries=$ac_dir | |
12305 | break 2 | |
12306 | fi | |
12307 | done | |
12308 | done | |
12309 | ||
12310 | if test "$ac_find_libraries" != "" ; then | |
12311 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12312 | xpm_link=" -lXpm" | |
12313 | cat >> confdefs.h <<\EOF | |
12314 | #define wxHAVE_LIB_XPM 1 | |
12315 | EOF | |
12316 | ||
12317 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12318 | else | |
12319 | echo "$ac_t""no" 1>&6 | |
12320 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12321 | fi | |
12322 | ||
12323 | mesa_link= | |
12324 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
d558c907 | 12325 | echo "configure:12326: checking for Mesa library" >&5 |
f79bd02d JS |
12326 | |
12327 | ac_find_libraries= | |
12328 | for ac_dir in $SEARCH_LIB; | |
12329 | do | |
12330 | for ac_extension in a so sl dylib; do | |
12331 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12332 | ac_find_libraries=$ac_dir | |
12333 | break 2 | |
12334 | fi | |
12335 | done | |
12336 | done | |
12337 | ||
12338 | if test "$ac_find_libraries" != "" ; then | |
12339 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12340 | mesa_link=" -lMesaGL" | |
12341 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12342 | else | |
12343 | { echo "configure: error: no" 1>&2; exit 1; } | |
12344 | fi | |
12345 | ||
12346 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12347 | TOOLKIT=MSW | |
12348 | GUIDIST=MSW_DIST | |
12349 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12350 | fi | |
12351 | ||
12352 | if test "$wxUSE_MOTIF" = 1; then | |
12353 | if test "$no_x" = yes; then | |
12354 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12355 | cat >> confdefs.h <<\EOF | |
12356 | #define X_DISPLAY_MISSING 1 | |
12357 | EOF | |
12358 | ||
12359 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12360 | else | |
12361 | if test -n "$x_includes"; then | |
12362 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12363 | fi | |
12364 | ||
12365 | # It would also be nice to do this for all -L options, not just this one. | |
12366 | if test -n "$x_libraries"; then | |
12367 | X_LIBS="$X_LIBS -L$x_libraries" | |
12368 | # For Solaris; some versions of Sun CC require a space after -R and | |
12369 | # others require no space. Words are not sufficient . . . . | |
12370 | case "`(uname -sr) 2>/dev/null`" in | |
12371 | "SunOS 5"*) | |
12372 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
d558c907 | 12373 | echo "configure:12374: checking whether -R must be followed by a space" >&5 |
f79bd02d JS |
12374 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12375 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12376 | #line 12377 "configure" |
f79bd02d JS |
12377 | #include "confdefs.h" |
12378 | ||
12379 | int main() { | |
12380 | ||
12381 | ; return 0; } | |
12382 | EOF | |
d558c907 | 12383 | if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12384 | rm -rf conftest* |
12385 | ac_R_nospace=yes | |
12386 | else | |
12387 | echo "configure: failed program was:" >&5 | |
12388 | cat conftest.$ac_ext >&5 | |
12389 | rm -rf conftest* | |
12390 | ac_R_nospace=no | |
12391 | fi | |
12392 | rm -f conftest* | |
12393 | if test $ac_R_nospace = yes; then | |
12394 | echo "$ac_t""no" 1>&6 | |
12395 | X_LIBS="$X_LIBS -R$x_libraries" | |
12396 | else | |
12397 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12398 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12399 | #line 12400 "configure" |
f79bd02d JS |
12400 | #include "confdefs.h" |
12401 | ||
12402 | int main() { | |
12403 | ||
12404 | ; return 0; } | |
12405 | EOF | |
d558c907 | 12406 | if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12407 | rm -rf conftest* |
12408 | ac_R_space=yes | |
12409 | else | |
12410 | echo "configure: failed program was:" >&5 | |
12411 | cat conftest.$ac_ext >&5 | |
12412 | rm -rf conftest* | |
12413 | ac_R_space=no | |
12414 | fi | |
12415 | rm -f conftest* | |
12416 | if test $ac_R_space = yes; then | |
12417 | echo "$ac_t""yes" 1>&6 | |
12418 | X_LIBS="$X_LIBS -R $x_libraries" | |
12419 | else | |
12420 | echo "$ac_t""neither works" 1>&6 | |
12421 | fi | |
12422 | fi | |
12423 | LIBS="$ac_xsave_LIBS" | |
12424 | esac | |
12425 | fi | |
12426 | ||
12427 | # Check for system-dependent libraries X programs must link with. | |
12428 | # Do this before checking for the system-independent R6 libraries | |
12429 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12430 | ||
12431 | if test "$ISC" = yes; then | |
12432 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12433 | else | |
12434 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12435 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12436 | # the Alpha needs dnet_stub (dnet does not exist). | |
12437 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
d558c907 | 12438 | echo "configure:12439: checking for dnet_ntoa in -ldnet" >&5 |
f79bd02d JS |
12439 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12440 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12442 | else | |
12443 | ac_save_LIBS="$LIBS" | |
12444 | LIBS="-ldnet $LIBS" | |
12445 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12446 | #line 12447 "configure" |
f79bd02d JS |
12447 | #include "confdefs.h" |
12448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12449 | /* We use char because int might match the return type of a gcc2 | |
12450 | builtin and then its argument prototype would still apply. */ | |
12451 | char dnet_ntoa(); | |
12452 | ||
12453 | int main() { | |
12454 | dnet_ntoa() | |
12455 | ; return 0; } | |
12456 | EOF | |
d558c907 | 12457 | if { (eval echo configure:12458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12458 | rm -rf conftest* |
12459 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12460 | else | |
12461 | echo "configure: failed program was:" >&5 | |
12462 | cat conftest.$ac_ext >&5 | |
12463 | rm -rf conftest* | |
12464 | eval "ac_cv_lib_$ac_lib_var=no" | |
12465 | fi | |
12466 | rm -f conftest* | |
12467 | LIBS="$ac_save_LIBS" | |
12468 | ||
12469 | fi | |
12470 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12471 | echo "$ac_t""yes" 1>&6 | |
12472 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12473 | else | |
12474 | echo "$ac_t""no" 1>&6 | |
12475 | fi | |
12476 | ||
12477 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12478 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
d558c907 | 12479 | echo "configure:12480: checking for dnet_ntoa in -ldnet_stub" >&5 |
f79bd02d JS |
12480 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
12481 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12483 | else | |
12484 | ac_save_LIBS="$LIBS" | |
12485 | LIBS="-ldnet_stub $LIBS" | |
12486 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12487 | #line 12488 "configure" |
f79bd02d JS |
12488 | #include "confdefs.h" |
12489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12490 | /* We use char because int might match the return type of a gcc2 | |
12491 | builtin and then its argument prototype would still apply. */ | |
12492 | char dnet_ntoa(); | |
12493 | ||
12494 | int main() { | |
12495 | dnet_ntoa() | |
12496 | ; return 0; } | |
12497 | EOF | |
d558c907 | 12498 | if { (eval echo configure:12499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12499 | rm -rf conftest* |
12500 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12501 | else | |
12502 | echo "configure: failed program was:" >&5 | |
12503 | cat conftest.$ac_ext >&5 | |
12504 | rm -rf conftest* | |
12505 | eval "ac_cv_lib_$ac_lib_var=no" | |
12506 | fi | |
12507 | rm -f conftest* | |
12508 | LIBS="$ac_save_LIBS" | |
12509 | ||
12510 | fi | |
12511 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12512 | echo "$ac_t""yes" 1>&6 | |
12513 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12514 | else | |
12515 | echo "$ac_t""no" 1>&6 | |
12516 | fi | |
12517 | ||
12518 | fi | |
12519 | ||
12520 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12521 | # to get the SysV transport functions. | |
12522 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12523 | # needs -lnsl. | |
12524 | # The nsl library prevents programs from opening the X display | |
12525 | # on Irix 5.2, according to dickey@clark.net. | |
12526 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d558c907 | 12527 | echo "configure:12528: checking for gethostbyname" >&5 |
f79bd02d JS |
12528 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
12529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12530 | else | |
12531 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12532 | #line 12533 "configure" |
f79bd02d JS |
12533 | #include "confdefs.h" |
12534 | /* System header to define __stub macros and hopefully few prototypes, | |
12535 | which can conflict with char gethostbyname(); below. */ | |
12536 | #include <assert.h> | |
12537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12538 | /* We use char because int might match the return type of a gcc2 | |
12539 | builtin and then its argument prototype would still apply. */ | |
12540 | char gethostbyname(); | |
12541 | ||
12542 | int main() { | |
12543 | ||
12544 | /* The GNU C library defines this for functions which it implements | |
12545 | to always fail with ENOSYS. Some functions are actually named | |
12546 | something starting with __ and the normal name is an alias. */ | |
12547 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12548 | choke me | |
12549 | #else | |
12550 | gethostbyname(); | |
12551 | #endif | |
12552 | ||
12553 | ; return 0; } | |
12554 | EOF | |
d558c907 | 12555 | if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12556 | rm -rf conftest* |
12557 | eval "ac_cv_func_gethostbyname=yes" | |
12558 | else | |
12559 | echo "configure: failed program was:" >&5 | |
12560 | cat conftest.$ac_ext >&5 | |
12561 | rm -rf conftest* | |
12562 | eval "ac_cv_func_gethostbyname=no" | |
12563 | fi | |
12564 | rm -f conftest* | |
12565 | fi | |
12566 | ||
12567 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12568 | echo "$ac_t""yes" 1>&6 | |
12569 | : | |
12570 | else | |
12571 | echo "$ac_t""no" 1>&6 | |
12572 | fi | |
12573 | ||
12574 | if test $ac_cv_func_gethostbyname = no; then | |
12575 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
d558c907 | 12576 | echo "configure:12577: checking for gethostbyname in -lnsl" >&5 |
f79bd02d JS |
12577 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
12578 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12580 | else | |
12581 | ac_save_LIBS="$LIBS" | |
12582 | LIBS="-lnsl $LIBS" | |
12583 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12584 | #line 12585 "configure" |
f79bd02d JS |
12585 | #include "confdefs.h" |
12586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12587 | /* We use char because int might match the return type of a gcc2 | |
12588 | builtin and then its argument prototype would still apply. */ | |
12589 | char gethostbyname(); | |
12590 | ||
12591 | int main() { | |
12592 | gethostbyname() | |
12593 | ; return 0; } | |
12594 | EOF | |
d558c907 | 12595 | if { (eval echo configure:12596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12596 | rm -rf conftest* |
12597 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12598 | else | |
12599 | echo "configure: failed program was:" >&5 | |
12600 | cat conftest.$ac_ext >&5 | |
12601 | rm -rf conftest* | |
12602 | eval "ac_cv_lib_$ac_lib_var=no" | |
12603 | fi | |
12604 | rm -f conftest* | |
12605 | LIBS="$ac_save_LIBS" | |
12606 | ||
12607 | fi | |
12608 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12609 | echo "$ac_t""yes" 1>&6 | |
12610 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12611 | else | |
12612 | echo "$ac_t""no" 1>&6 | |
12613 | fi | |
12614 | ||
12615 | fi | |
12616 | ||
12617 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12618 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12619 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12620 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12621 | # gethostby* variants that don't use the nameserver (or something). | |
12622 | # -lsocket must be given before -lnsl if both are needed. | |
12623 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12624 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d558c907 | 12625 | echo "configure:12626: checking for connect" >&5 |
f79bd02d JS |
12626 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12628 | else | |
12629 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12630 | #line 12631 "configure" |
f79bd02d JS |
12631 | #include "confdefs.h" |
12632 | /* System header to define __stub macros and hopefully few prototypes, | |
12633 | which can conflict with char connect(); below. */ | |
12634 | #include <assert.h> | |
12635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12636 | /* We use char because int might match the return type of a gcc2 | |
12637 | builtin and then its argument prototype would still apply. */ | |
12638 | char connect(); | |
12639 | ||
12640 | int main() { | |
12641 | ||
12642 | /* The GNU C library defines this for functions which it implements | |
12643 | to always fail with ENOSYS. Some functions are actually named | |
12644 | something starting with __ and the normal name is an alias. */ | |
12645 | #if defined (__stub_connect) || defined (__stub___connect) | |
12646 | choke me | |
12647 | #else | |
12648 | connect(); | |
12649 | #endif | |
12650 | ||
12651 | ; return 0; } | |
12652 | EOF | |
d558c907 | 12653 | if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12654 | rm -rf conftest* |
12655 | eval "ac_cv_func_connect=yes" | |
12656 | else | |
12657 | echo "configure: failed program was:" >&5 | |
12658 | cat conftest.$ac_ext >&5 | |
12659 | rm -rf conftest* | |
12660 | eval "ac_cv_func_connect=no" | |
12661 | fi | |
12662 | rm -f conftest* | |
12663 | fi | |
12664 | ||
12665 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12666 | echo "$ac_t""yes" 1>&6 | |
12667 | : | |
12668 | else | |
12669 | echo "$ac_t""no" 1>&6 | |
12670 | fi | |
12671 | ||
12672 | if test $ac_cv_func_connect = no; then | |
12673 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
d558c907 | 12674 | echo "configure:12675: checking for connect in -lsocket" >&5 |
f79bd02d JS |
12675 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12676 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12678 | else | |
12679 | ac_save_LIBS="$LIBS" | |
12680 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12681 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12682 | #line 12683 "configure" |
f79bd02d JS |
12683 | #include "confdefs.h" |
12684 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12685 | /* We use char because int might match the return type of a gcc2 | |
12686 | builtin and then its argument prototype would still apply. */ | |
12687 | char connect(); | |
12688 | ||
12689 | int main() { | |
12690 | connect() | |
12691 | ; return 0; } | |
12692 | EOF | |
d558c907 | 12693 | if { (eval echo configure:12694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12694 | rm -rf conftest* |
12695 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12696 | else | |
12697 | echo "configure: failed program was:" >&5 | |
12698 | cat conftest.$ac_ext >&5 | |
12699 | rm -rf conftest* | |
12700 | eval "ac_cv_lib_$ac_lib_var=no" | |
12701 | fi | |
12702 | rm -f conftest* | |
12703 | LIBS="$ac_save_LIBS" | |
12704 | ||
12705 | fi | |
12706 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12707 | echo "$ac_t""yes" 1>&6 | |
12708 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12709 | else | |
12710 | echo "$ac_t""no" 1>&6 | |
12711 | fi | |
12712 | ||
12713 | fi | |
12714 | ||
12715 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12716 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d558c907 | 12717 | echo "configure:12718: checking for remove" >&5 |
f79bd02d JS |
12718 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12720 | else | |
12721 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12722 | #line 12723 "configure" |
f79bd02d JS |
12723 | #include "confdefs.h" |
12724 | /* System header to define __stub macros and hopefully few prototypes, | |
12725 | which can conflict with char remove(); below. */ | |
12726 | #include <assert.h> | |
12727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12728 | /* We use char because int might match the return type of a gcc2 | |
12729 | builtin and then its argument prototype would still apply. */ | |
12730 | char remove(); | |
12731 | ||
12732 | int main() { | |
12733 | ||
12734 | /* The GNU C library defines this for functions which it implements | |
12735 | to always fail with ENOSYS. Some functions are actually named | |
12736 | something starting with __ and the normal name is an alias. */ | |
12737 | #if defined (__stub_remove) || defined (__stub___remove) | |
12738 | choke me | |
12739 | #else | |
12740 | remove(); | |
12741 | #endif | |
12742 | ||
12743 | ; return 0; } | |
12744 | EOF | |
d558c907 | 12745 | if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12746 | rm -rf conftest* |
12747 | eval "ac_cv_func_remove=yes" | |
12748 | else | |
12749 | echo "configure: failed program was:" >&5 | |
12750 | cat conftest.$ac_ext >&5 | |
12751 | rm -rf conftest* | |
12752 | eval "ac_cv_func_remove=no" | |
12753 | fi | |
12754 | rm -f conftest* | |
12755 | fi | |
12756 | ||
12757 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12758 | echo "$ac_t""yes" 1>&6 | |
12759 | : | |
12760 | else | |
12761 | echo "$ac_t""no" 1>&6 | |
12762 | fi | |
12763 | ||
12764 | if test $ac_cv_func_remove = no; then | |
12765 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
d558c907 | 12766 | echo "configure:12767: checking for remove in -lposix" >&5 |
f79bd02d JS |
12767 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12768 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12770 | else | |
12771 | ac_save_LIBS="$LIBS" | |
12772 | LIBS="-lposix $LIBS" | |
12773 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12774 | #line 12775 "configure" |
f79bd02d JS |
12775 | #include "confdefs.h" |
12776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12777 | /* We use char because int might match the return type of a gcc2 | |
12778 | builtin and then its argument prototype would still apply. */ | |
12779 | char remove(); | |
12780 | ||
12781 | int main() { | |
12782 | remove() | |
12783 | ; return 0; } | |
12784 | EOF | |
d558c907 | 12785 | if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12786 | rm -rf conftest* |
12787 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12788 | else | |
12789 | echo "configure: failed program was:" >&5 | |
12790 | cat conftest.$ac_ext >&5 | |
12791 | rm -rf conftest* | |
12792 | eval "ac_cv_lib_$ac_lib_var=no" | |
12793 | fi | |
12794 | rm -f conftest* | |
12795 | LIBS="$ac_save_LIBS" | |
12796 | ||
12797 | fi | |
12798 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12799 | echo "$ac_t""yes" 1>&6 | |
12800 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12801 | else | |
12802 | echo "$ac_t""no" 1>&6 | |
12803 | fi | |
12804 | ||
12805 | fi | |
12806 | ||
12807 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12808 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
d558c907 | 12809 | echo "configure:12810: checking for shmat" >&5 |
f79bd02d JS |
12810 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12812 | else | |
12813 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12814 | #line 12815 "configure" |
f79bd02d JS |
12815 | #include "confdefs.h" |
12816 | /* System header to define __stub macros and hopefully few prototypes, | |
12817 | which can conflict with char shmat(); below. */ | |
12818 | #include <assert.h> | |
12819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12820 | /* We use char because int might match the return type of a gcc2 | |
12821 | builtin and then its argument prototype would still apply. */ | |
12822 | char shmat(); | |
12823 | ||
12824 | int main() { | |
12825 | ||
12826 | /* The GNU C library defines this for functions which it implements | |
12827 | to always fail with ENOSYS. Some functions are actually named | |
12828 | something starting with __ and the normal name is an alias. */ | |
12829 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12830 | choke me | |
12831 | #else | |
12832 | shmat(); | |
12833 | #endif | |
12834 | ||
12835 | ; return 0; } | |
12836 | EOF | |
d558c907 | 12837 | if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12838 | rm -rf conftest* |
12839 | eval "ac_cv_func_shmat=yes" | |
12840 | else | |
12841 | echo "configure: failed program was:" >&5 | |
12842 | cat conftest.$ac_ext >&5 | |
12843 | rm -rf conftest* | |
12844 | eval "ac_cv_func_shmat=no" | |
12845 | fi | |
12846 | rm -f conftest* | |
12847 | fi | |
12848 | ||
12849 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12850 | echo "$ac_t""yes" 1>&6 | |
12851 | : | |
12852 | else | |
12853 | echo "$ac_t""no" 1>&6 | |
12854 | fi | |
12855 | ||
12856 | if test $ac_cv_func_shmat = no; then | |
12857 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
d558c907 | 12858 | echo "configure:12859: checking for shmat in -lipc" >&5 |
f79bd02d JS |
12859 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12860 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12862 | else | |
12863 | ac_save_LIBS="$LIBS" | |
12864 | LIBS="-lipc $LIBS" | |
12865 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12866 | #line 12867 "configure" |
f79bd02d JS |
12867 | #include "confdefs.h" |
12868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12869 | /* We use char because int might match the return type of a gcc2 | |
12870 | builtin and then its argument prototype would still apply. */ | |
12871 | char shmat(); | |
12872 | ||
12873 | int main() { | |
12874 | shmat() | |
12875 | ; return 0; } | |
12876 | EOF | |
d558c907 | 12877 | if { (eval echo configure:12878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12878 | rm -rf conftest* |
12879 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12880 | else | |
12881 | echo "configure: failed program was:" >&5 | |
12882 | cat conftest.$ac_ext >&5 | |
12883 | rm -rf conftest* | |
12884 | eval "ac_cv_lib_$ac_lib_var=no" | |
12885 | fi | |
12886 | rm -f conftest* | |
12887 | LIBS="$ac_save_LIBS" | |
12888 | ||
12889 | fi | |
12890 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12891 | echo "$ac_t""yes" 1>&6 | |
12892 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12893 | else | |
12894 | echo "$ac_t""no" 1>&6 | |
12895 | fi | |
12896 | ||
12897 | fi | |
12898 | fi | |
12899 | ||
12900 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12901 | ac_save_LDFLAGS="$LDFLAGS" | |
12902 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12903 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12904 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12905 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12906 | # These have to be linked with before -lX11, unlike the other | |
12907 | # libraries we check for below, so use a different variable. | |
12908 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12909 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d558c907 | 12910 | echo "configure:12911: checking for IceConnectionNumber in -lICE" >&5 |
f79bd02d JS |
12911 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12912 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12914 | else | |
12915 | ac_save_LIBS="$LIBS" | |
12916 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12917 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12918 | #line 12919 "configure" |
f79bd02d JS |
12919 | #include "confdefs.h" |
12920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12921 | /* We use char because int might match the return type of a gcc2 | |
12922 | builtin and then its argument prototype would still apply. */ | |
12923 | char IceConnectionNumber(); | |
12924 | ||
12925 | int main() { | |
12926 | IceConnectionNumber() | |
12927 | ; return 0; } | |
12928 | EOF | |
d558c907 | 12929 | if { (eval echo configure:12930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d JS |
12930 | rm -rf conftest* |
12931 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12932 | else | |
12933 | echo "configure: failed program was:" >&5 | |
12934 | cat conftest.$ac_ext >&5 | |
12935 | rm -rf conftest* | |
12936 | eval "ac_cv_lib_$ac_lib_var=no" | |
12937 | fi | |
12938 | rm -f conftest* | |
12939 | LIBS="$ac_save_LIBS" | |
12940 | ||
12941 | fi | |
12942 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12943 | echo "$ac_t""yes" 1>&6 | |
12944 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12945 | else | |
12946 | echo "$ac_t""no" 1>&6 | |
12947 | fi | |
12948 | ||
12949 | LDFLAGS="$ac_save_LDFLAGS" | |
12950 | ||
12951 | fi | |
12952 | ||
12953 | ||
12954 | if test "$no_x" = "yes"; then | |
12955 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12956 | fi | |
12957 | ||
12958 | GUI_TK_LIBRARY="$X_LIBS" | |
12959 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12960 | AFMINSTALL=afminstall | |
12961 | COMPILED_X_PROGRAM=0 | |
12962 | ||
12963 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
d558c907 | 12964 | echo "configure:12965: checking for Motif/Lesstif headers" >&5 |
f79bd02d JS |
12965 | |
12966 | ac_find_includes= | |
12967 | for ac_dir in $SEARCH_INCLUDE; | |
12968 | do | |
12969 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12970 | ac_find_includes=$ac_dir | |
12971 | break | |
12972 | fi | |
12973 | done | |
12974 | ||
12975 | if test "$ac_find_includes" != "" ; then | |
12976 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12977 | else | |
12978 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 12979 | #line 12980 "configure" |
f79bd02d JS |
12980 | #include "confdefs.h" |
12981 | ||
12982 | #include <Xm/Xm.h> | |
12983 | ||
12984 | int main() { | |
12985 | ||
12986 | int version; | |
12987 | version = xmUseVersion; | |
12988 | ||
12989 | ; return 0; } | |
12990 | EOF | |
d558c907 | 12991 | if { (eval echo configure:12992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
12992 | rm -rf conftest* |
12993 | ||
12994 | echo "$ac_t""found in default search path" 1>&6 | |
12995 | COMPILED_X_PROGRAM=1 | |
12996 | ||
12997 | else | |
12998 | echo "configure: failed program was:" >&5 | |
12999 | cat conftest.$ac_ext >&5 | |
13000 | rm -rf conftest* | |
13001 | ||
13002 | echo "$ac_t""no" 1>&6 | |
13003 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
13004 | ||
13005 | ||
13006 | fi | |
13007 | rm -f conftest* | |
13008 | fi | |
13009 | ||
13010 | if test "$COMPILED_X_PROGRAM" = 0; then | |
13011 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d558c907 | 13012 | echo "configure:13013: checking for Motif/Lesstif library" >&5 |
f79bd02d JS |
13013 | |
13014 | ac_find_libraries= | |
13015 | for ac_dir in $SEARCH_LIB; | |
13016 | do | |
13017 | for ac_extension in a so sl dylib; do | |
13018 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
13019 | ac_find_libraries=$ac_dir | |
13020 | break 2 | |
13021 | fi | |
13022 | done | |
13023 | done | |
13024 | ||
13025 | if test "$ac_find_libraries" != "" ; then | |
13026 | ||
13027 | ac_path_to_include=$ac_find_includes | |
13028 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
13029 | result=$? | |
13030 | if test $result = 0; then | |
13031 | ac_path_to_include="" | |
13032 | else | |
13033 | ac_path_to_include=" -I$ac_find_includes" | |
13034 | fi | |
13035 | ||
13036 | ||
13037 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13038 | result=$? | |
13039 | if test $result = 0; then | |
13040 | ac_path_to_link="" | |
13041 | else | |
13042 | ac_path_to_link=" -L$ac_find_libraries" | |
13043 | fi | |
13044 | ||
13045 | ||
13046 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13047 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
13048 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13049 | else | |
13050 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13051 | #line 13052 "configure" |
f79bd02d JS |
13052 | #include "confdefs.h" |
13053 | ||
13054 | #include <Xm/Xm.h> | |
13055 | ||
13056 | int main() { | |
13057 | ||
13058 | int version; | |
13059 | version = xmUseVersion; | |
13060 | ||
13061 | ; return 0; } | |
13062 | EOF | |
d558c907 | 13063 | if { (eval echo configure:13064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13064 | rm -rf conftest* |
13065 | ||
13066 | echo "$ac_t""found in default search path" 1>&6 | |
13067 | COMPILED_X_PROGRAM=1 | |
13068 | ||
13069 | else | |
13070 | echo "configure: failed program was:" >&5 | |
13071 | cat conftest.$ac_ext >&5 | |
13072 | rm -rf conftest* | |
13073 | ||
13074 | echo "$ac_t""no" 1>&6 | |
13075 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13076 | ||
13077 | ||
13078 | fi | |
13079 | rm -f conftest* | |
13080 | fi | |
13081 | fi | |
13082 | ||
13083 | xpm_link= | |
13084 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d558c907 | 13085 | echo "configure:13086: checking for Xpm library" >&5 |
f79bd02d JS |
13086 | |
13087 | ac_find_libraries= | |
13088 | for ac_dir in $SEARCH_LIB; | |
13089 | do | |
13090 | for ac_extension in a so sl dylib; do | |
13091 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13092 | ac_find_libraries=$ac_dir | |
13093 | break 2 | |
13094 | fi | |
13095 | done | |
13096 | done | |
13097 | ||
13098 | if test "$ac_find_libraries" != "" ; then | |
13099 | ||
13100 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13101 | result=$? | |
13102 | if test $result = 0; then | |
13103 | ac_path_to_link="" | |
13104 | else | |
13105 | ac_path_to_link=" -L$ac_find_libraries" | |
13106 | fi | |
13107 | ||
13108 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13109 | xpm_link=" -lXpm" | |
13110 | cat >> confdefs.h <<\EOF | |
13111 | #define wxHAVE_LIB_XPM 1 | |
13112 | EOF | |
13113 | ||
13114 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13115 | else | |
13116 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13117 | #line 13118 "configure" |
f79bd02d JS |
13118 | #include "confdefs.h" |
13119 | ||
13120 | #include <X11/xpm.h> | |
13121 | ||
13122 | int main() { | |
13123 | ||
13124 | int version; | |
13125 | version = XpmLibraryVersion(); | |
13126 | ||
13127 | ; return 0; } | |
13128 | EOF | |
d558c907 | 13129 | if { (eval echo configure:13130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d JS |
13130 | rm -rf conftest* |
13131 | ||
13132 | xpm_link=" -lXpm" | |
13133 | cat >> confdefs.h <<\EOF | |
13134 | #define wxHAVE_LIB_XPM 1 | |
13135 | EOF | |
13136 | ||
13137 | echo "$ac_t""found in default search path" 1>&6 | |
13138 | COMPILED_X_PROGRAM=0 | |
13139 | ||
13140 | else | |
13141 | echo "configure: failed program was:" >&5 | |
13142 | cat conftest.$ac_ext >&5 | |
13143 | rm -rf conftest* | |
13144 | ||
13145 | echo "$ac_t""no" 1>&6 | |
13146 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13147 | ||
13148 | ||
13149 | fi | |
13150 | rm -f conftest* | |
13151 | fi | |
13152 | ||
13153 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13154 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13155 | TOOLKIT=MOTIF | |
13156 | GUIDIST=MOTIF_DIST | |
13157 | fi | |
13158 | ||
13159 | if test "$wxUSE_MAC" = 1; then | |
13160 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13161 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13162 | fi | |
13163 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13164 | CFLAGS="$CFLAGS -fpascal-strings" | |
13165 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13166 | ||
13167 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13168 | TOOLKIT=MAC | |
13169 | GUIDIST=MACX_DIST | |
13170 | fi | |
13171 | ||
13172 | if test "$wxUSE_PM" = 1; then | |
13173 | TOOLKIT=PM | |
1e6feb95 VZ |
13174 | GUIDIST=GTK_DIST |
13175 | fi | |
b4085ce6 | 13176 | |
3a922bb4 | 13177 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 13178 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
13179 | else |
13180 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 13181 | fi |
e07802fc | 13182 | |
3a922bb4 | 13183 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 13184 | |
3a922bb4 RL |
13185 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
13186 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
13187 | |
13188 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13189 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13190 | ||
3a922bb4 RL |
13191 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
13192 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13193 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
13194 | WIDGET_SET=univ | |
f6bcfd97 | 13195 | else |
3a922bb4 | 13196 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
13197 | ALL_SOURCES="\$(ALL_SOURCES)" |
13198 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
13199 | fi |
13200 | ||
ba0e650c | 13201 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 13202 | |
f9bc1684 | 13203 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
13204 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
13205 | fi | |
13206 | ||
13207 | if test "$wxUSE_HTML" = "yes"; then | |
13208 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13209 | fi | |
3fcdd07b | 13210 | |
4f14bcd8 | 13211 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 13212 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 13213 | fi |
4f14bcd8 | 13214 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
13215 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
13216 | fi | |
4f14bcd8 | 13217 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
13218 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
13219 | fi | |
2224580a | 13220 | |
2224580a VZ |
13221 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
13222 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 13223 | else |
dad6c0ea VZ |
13224 | USE_GUI=0 |
13225 | ||
3a922bb4 | 13226 | TOOLKIT_DIR="base" |
f6bcfd97 | 13227 | |
3a922bb4 RL |
13228 | if test "$USE_WIN32" = 1 ; then |
13229 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13230 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 13231 | |
3a922bb4 | 13232 | TOOLKIT="MSW" |
f6bcfd97 | 13233 | else |
3a922bb4 RL |
13234 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
13235 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
13236 | fi |
13237 | ||
d8356fa3 VZ |
13238 | ALL_SOURCES="\$(ALL_SOURCES)" |
13239 | ALL_HEADERS="\$(ALL_HEADERS)" | |
13240 | ||
831b3152 | 13241 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
13242 | |
13243 | GUIDIST="BASE_DIST" | |
13244 | DISTDIR="wxBase" | |
10f2d63a VZ |
13245 | fi |
13246 | ||
e45387bf VZ |
13247 | |
13248 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13249 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13250 | fi | |
13251 | ||
4f14bcd8 | 13252 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
13253 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
13254 | fi | |
4f14bcd8 | 13255 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
13256 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
13257 | fi | |
10f2d63a | 13258 | |
3a922bb4 | 13259 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
13260 | if test "$wxUSE_MAC" = 1; then |
13261 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13262 | else | |
570cb8cb | 13263 | |
62d0491b | 13264 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 13265 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
d558c907 | 13266 | echo "configure:13267: checking for GL/gl.h" >&5 |
3a922bb4 RL |
13267 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13268 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13269 | else | |
13270 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13271 | #line 13272 "configure" |
3a922bb4 RL |
13272 | #include "confdefs.h" |
13273 | #include <GL/gl.h> | |
13274 | EOF | |
13275 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13276 | { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
13277 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13278 | if test -z "$ac_err"; then | |
13279 | rm -rf conftest* | |
13280 | eval "ac_cv_header_$ac_safe=yes" | |
13281 | else | |
13282 | echo "$ac_err" >&5 | |
13283 | echo "configure: failed program was:" >&5 | |
13284 | cat conftest.$ac_ext >&5 | |
13285 | rm -rf conftest* | |
13286 | eval "ac_cv_header_$ac_safe=no" | |
13287 | fi | |
13288 | rm -f conftest* | |
13289 | fi | |
13290 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13291 | echo "$ac_t""yes" 1>&6 | |
13292 | ||
1352efdf | 13293 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
d558c907 | 13294 | echo "configure:13295: checking for -lGL" >&5 |
57964555 | 13295 | |
62d0491b RL |
13296 | ac_find_libraries= |
13297 | for ac_dir in $SEARCH_LIB; | |
13298 | do | |
13299 | for ac_extension in a so sl dylib; do | |
13300 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13301 | ac_find_libraries=$ac_dir | |
13302 | break 2 | |
13303 | fi | |
13304 | done | |
13305 | done | |
3a922bb4 | 13306 | |
62d0491b RL |
13307 | if test "$ac_find_libraries" != "" ; then |
13308 | ||
13309 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13310 | result=$? | |
13311 | if test $result = 0; then | |
13312 | ac_path_to_link="" | |
13313 | else | |
13314 | ac_path_to_link=" -L$ac_find_libraries" | |
13315 | fi | |
3a922bb4 | 13316 | |
4b6b4dfc RR |
13317 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
13318 | LDFLAGS_GL="$LDFLAGS" | |
13319 | else | |
13320 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13321 | fi | |
62d0491b | 13322 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 13323 | echo "$ac_t""yes" 1>&6 |
62d0491b | 13324 | else |
1352efdf RL |
13325 | echo "$ac_t""no" 1>&6 |
13326 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
d558c907 | 13327 | echo "configure:13328: checking for -lMesaGL" >&5 |
62d0491b RL |
13328 | |
13329 | ac_find_libraries= | |
13330 | for ac_dir in $SEARCH_LIB; | |
13331 | do | |
13332 | for ac_extension in a so sl dylib; do | |
13333 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13334 | ac_find_libraries=$ac_dir | |
13335 | break 2 | |
13336 | fi | |
13337 | done | |
13338 | done | |
3a922bb4 | 13339 | |
62d0491b | 13340 | if test "$ac_find_libraries" != "" ; then |
57964555 | 13341 | |
62d0491b RL |
13342 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
13343 | result=$? | |
13344 | if test $result = 0; then | |
13345 | ac_path_to_link="" | |
13346 | else | |
13347 | ac_path_to_link=" -L$ac_find_libraries" | |
13348 | fi | |
3a922bb4 | 13349 | |
62d0491b RL |
13350 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
13351 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
13352 | echo "$ac_t""yes" 1>&6 |
13353 | else | |
13354 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
13355 | fi |
13356 | fi | |
13357 | ||
3a922bb4 RL |
13358 | else |
13359 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13360 | fi |
13361 | ||
6f754473 | 13362 | |
62d0491b RL |
13363 | |
13364 | # AC_CHECK_HEADER(GL/gl.h, | |
13365 | # [ | |
13366 | # AC_CHECK_LIB(GL, glFlush, | |
13367 | # [ | |
13368 | # OPENGL_LIBS="-lGL -lGLU" | |
13369 | # ], | |
13370 | # [ | |
13371 | # AC_CHECK_LIB(MesaGL, glFlush, | |
13372 | # [ | |
13373 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13374 | # ], | |
13375 | # [], | |
13376 | # [-lm]) | |
13377 | # ], | |
13378 | # [-lm]) | |
13379 | # ]) | |
13380 | ||
13381 | if test "x$OPENGL_LIBS" = "x"; then | |
13382 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13383 | fi | |
6f754473 | 13384 | fi |
6f754473 | 13385 | |
62d0491b RL |
13386 | if test "$wxUSE_OPENGL" = "yes"; then |
13387 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
13388 | #define wxUSE_OPENGL 1 |
13389 | EOF | |
13390 | ||
62d0491b | 13391 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
13392 | #define wxUSE_GLCANVAS 1 |
13393 | EOF | |
13394 | ||
62d0491b RL |
13395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
13396 | fi | |
3a922bb4 RL |
13397 | fi |
13398 | ||
13399 | if test -z "$TOOLKIT_VPATH" ; then | |
13400 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13401 | fi | |
13402 | ||
13403 | if test -n "$TOOLKIT" ; then | |
13404 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13405 | fi | |
13406 | ||
f676c7ff MB |
13407 | lib_unicode_suffix= |
13408 | if test "$wxUSE_UNICODE" = "yes"; then | |
13409 | lib_unicode_suffix=u | |
13410 | fi | |
13411 | ||
3a922bb4 RL |
13412 | lib_debug_suffix= |
13413 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13414 | lib_debug_suffix=d | |
3a922bb4 RL |
13415 | fi |
13416 | ||
f676c7ff MB |
13417 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
13418 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
13419 | |
13420 | if test "$cross_compiling" = "yes"; then | |
13421 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13422 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13423 | fi | |
13424 | ||
13425 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13426 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13427 | ||
3a922bb4 RL |
13428 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
13429 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13430 | ||
13431 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13432 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13433 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13434 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13435 | ||
d08b457b | 13436 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 13437 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 13438 | |
978f1259 RL |
13439 | case "${host}" in |
13440 | *-*-cygwin* | *-*-mingw32* ) | |
13441 | ||
2da4f892 | 13442 | |
978f1259 RL |
13443 | |
13444 | if test "$cross_compiling" != "yes"; then | |
13445 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13446 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13447 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13448 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
13449 | else |
13450 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13451 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
13452 | fi |
13453 | ||
13454 | esac | |
13455 | ||
13456 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13457 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13458 | ||
13459 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 13460 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
13461 | |
13462 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
13463 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
13464 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
13465 | fi |
13466 | ||
13467 | ||
3a922bb4 | 13468 | |
4222829b VS |
13469 | if test "$wxUSE_SHARED" = "yes"; then |
13470 | case "${host}" in | |
13471 | *-pc-os2_emx | *-pc-os2-emx | \ | |
13472 | *-pc-msdosdjgpp ) | |
13473 | wxUSE_SHARED=no | |
13474 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
13475 | ;; | |
13476 | esac | |
13477 | fi | |
13478 | ||
3a922bb4 | 13479 | if test "$wxUSE_SHARED" = "yes"; then |
55e80573 VZ |
13480 | |
13481 | if test "$wxUSE_OPENGL" = "yes"; then | |
13482 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 13483 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
13484 | else |
13485 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 13486 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
13487 | fi |
13488 | ||
dd4f7467 | 13489 | if test "$GCC" = "yes"; then |
55e80573 | 13490 | PIC_FLAG="-fPIC" |
dd4f7467 | 13491 | fi |
55e80573 VZ |
13492 | |
13493 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 13494 | |
10f2d63a VZ |
13495 | case "${host}" in |
13496 | *-hp-hpux* ) | |
d569ea8d GD |
13497 | if test "$GCC" == "yes"; then |
13498 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13499 | else | |
3d63bc3a | 13500 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 13501 | |
10f2d63a VZ |
13502 | SHARED_LD="${CXX} -b -o" |
13503 | PIC_FLAG="+Z" | |
13504 | fi | |
55e80573 | 13505 | |
7b7a7637 RL |
13506 | if test "$wxUSE_OPENGL" = "yes"; then |
13507 | WX_ALL_INSTALLED="preinstall_gl" | |
13508 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13509 | else | |
13510 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13511 | fi | |
10f2d63a | 13512 | ;; |
b12915c1 | 13513 | |
55e80573 VZ |
13514 | *-*-linux* ) |
13515 | if test "$GCC" != "yes"; then | |
13516 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
d558c907 | 13517 | echo "configure:13518: checking for Intel compiler" >&5 |
55e80573 VZ |
13518 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
13519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13520 | else | |
13521 | ||
13522 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13523 | #line 13524 "configure" |
55e80573 VZ |
13524 | #include "confdefs.h" |
13525 | ||
13526 | int main() { | |
13527 | ||
13528 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 13529 | #error Not icc |
55e80573 VZ |
13530 | #endif |
13531 | ||
13532 | ; return 0; } | |
13533 | EOF | |
d558c907 | 13534 | if { (eval echo configure:13535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
13535 | rm -rf conftest* |
13536 | wx_cv_prog_icc=yes | |
13537 | else | |
13538 | echo "configure: failed program was:" >&5 | |
13539 | cat conftest.$ac_ext >&5 | |
13540 | rm -rf conftest* | |
13541 | wx_cv_prog_icc=no | |
13542 | ||
13543 | fi | |
13544 | rm -f conftest* | |
13545 | ||
13546 | fi | |
13547 | ||
13548 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
13549 | if test "$wx_cv_prog_icc" = "yes"; then |
13550 | PIC_FLAG="-KPIC" | |
13551 | fi | |
13552 | fi | |
13553 | ||
3a922bb4 RL |
13554 | if test "$wxUSE_SONAME" = "yes" ; then |
13555 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13556 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 13557 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 13558 | fi |
10f2d63a | 13559 | ;; |
55e80573 | 13560 | |
10f2d63a VZ |
13561 | *-*-solaris2* ) |
13562 | if test "$GCC" = yes ; then | |
f6bcfd97 | 13563 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
13564 | else |
13565 | SHARED_LD="${CXX} -G -o" | |
13566 | PIC_FLAG="-KPIC" | |
7b7a7637 | 13567 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 13568 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13569 | fi |
10f2d63a | 13570 | ;; |
55e80573 | 13571 | |
b4085ce6 | 13572 | *-*-darwin* ) |
156b2523 GD |
13573 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
13574 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
13575 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 13576 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 13577 | ;; |
55e80573 | 13578 | |
10f2d63a VZ |
13579 | *-*-aix* ) |
13580 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 13581 | ;; |
55e80573 | 13582 | |
7b7a7637 | 13583 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 13584 | |
2da4f892 | 13585 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 13586 | |
77e13408 | 13587 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 13588 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
13589 | |
13590 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
13591 | |
13592 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 13593 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 13594 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 13595 | else |
978f1259 | 13596 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 13597 | fi |
10f2d63a | 13598 | ;; |
55e80573 | 13599 | |
b12915c1 | 13600 | *-*-beos* ) |
e2b8b066 | 13601 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 13602 | ;; |
55e80573 VZ |
13603 | |
13604 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13605 | *-*-sunos4* | \ | |
13606 | *-*-irix5* | *-*-irix6* | \ | |
13607 | *-*-osf* | \ | |
13608 | *-*-dgux5* | \ | |
13609 | *-*-sysv5* ) | |
13610 | ;; | |
13611 | ||
10f2d63a | 13612 | *) |
7b7a7637 | 13613 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13614 | esac |
13615 | ||
13616 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13617 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13618 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13619 | fi |
55e80573 | 13620 | |
3711412e | 13621 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13622 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13623 | fi |
f6bcfd97 | 13624 | |
3a922bb4 | 13625 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13626 | |
3a922bb4 | 13627 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13628 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13629 | fi | |
13630 | ||
6fa882bd RR |
13631 | if test "$wxUSE_MAC" = 1; then |
13632 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13633 | fi | |
13634 | ||
3a922bb4 RL |
13635 | if test "$wxUSE_OPENGL" = "yes"; then |
13636 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13637 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13638 | else | |
13639 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13640 | fi | |
698dcdb6 | 13641 | |
3a922bb4 RL |
13642 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13643 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13644 | ||
13645 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13646 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13647 | fi |
10f2d63a | 13648 | |
d08b457b GD |
13649 | if test "$wxUSE_MAC" = 1; then |
13650 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13651 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13652 | # Extract the first word of "Rez", so it can be a program name with args. |
13653 | set dummy Rez; ac_word=$2 | |
13654 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d558c907 | 13655 | echo "configure:13656: checking for $ac_word" >&5 |
d08b457b GD |
13656 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13658 | else | |
13659 | if test -n "$RESCOMP"; then | |
13660 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13661 | else | |
13662 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13663 | ac_dummy="$PATH" | |
13664 | for ac_dir in $ac_dummy; do | |
13665 | test -z "$ac_dir" && ac_dir=. | |
13666 | if test -f $ac_dir/$ac_word; then | |
13667 | ac_cv_prog_RESCOMP="Rez" | |
13668 | break | |
13669 | fi | |
13670 | done | |
13671 | IFS="$ac_save_ifs" | |
13672 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13673 | fi | |
13674 | fi | |
13675 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13676 | if test -n "$RESCOMP"; then | |
13677 | echo "$ac_t""$RESCOMP" 1>&6 | |
13678 | else | |
13679 | echo "$ac_t""no" 1>&6 | |
13680 | fi | |
13681 | ||
9f8148b1 GD |
13682 | # Extract the first word of "DeRez", so it can be a program name with args. |
13683 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13684 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d558c907 | 13685 | echo "configure:13686: checking for $ac_word" >&5 |
d08b457b GD |
13686 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13688 | else | |
13689 | if test -n "$DEREZ"; then | |
13690 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13691 | else | |
13692 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13693 | ac_dummy="$PATH" | |
13694 | for ac_dir in $ac_dummy; do | |
13695 | test -z "$ac_dir" && ac_dir=. | |
13696 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13697 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13698 | break |
13699 | fi | |
13700 | done | |
13701 | IFS="$ac_save_ifs" | |
9f8148b1 | 13702 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13703 | fi |
13704 | fi | |
13705 | DEREZ="$ac_cv_prog_DEREZ" | |
13706 | if test -n "$DEREZ"; then | |
13707 | echo "$ac_t""$DEREZ" 1>&6 | |
13708 | else | |
13709 | echo "$ac_t""no" 1>&6 | |
13710 | fi | |
13711 | ||
13712 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
13713 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13714 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d558c907 VS |
13715 | else |
13716 | if test "$wxUSE_PM" = 1; then | |
13717 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
13718 | fi | |
d08b457b GD |
13719 | fi |
13720 | ||
3a922bb4 | 13721 | |
13c0541d GD |
13722 | if test "$wxUSE_MAC" != 1; then |
13723 | for ac_hdr in strings.h | |
9cfadba2 | 13724 | do |
698dcdb6 VZ |
13725 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13726 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13727 | echo "configure:13728: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13728 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13730 | else | |
13731 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13732 | #line 13733 "configure" |
9cfadba2 | 13733 | #include "confdefs.h" |
698dcdb6 VZ |
13734 | #include <$ac_hdr> |
13735 | EOF | |
13736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13737 | { (eval echo configure:13738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13738 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13739 | if test -z "$ac_err"; then | |
13740 | rm -rf conftest* | |
13741 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13742 | else |
698dcdb6 VZ |
13743 | echo "$ac_err" >&5 |
13744 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13745 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13746 | rm -rf conftest* |
13747 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13748 | fi |
698dcdb6 | 13749 | rm -f conftest* |
9cfadba2 | 13750 | fi |
698dcdb6 VZ |
13751 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13752 | echo "$ac_t""yes" 1>&6 | |
13753 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13754 | cat >> confdefs.h <<EOF | |
13755 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13756 | EOF |
698dcdb6 VZ |
13757 | |
13758 | else | |
13759 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13760 | fi |
13761 | done | |
10f2d63a | 13762 | |
13c0541d GD |
13763 | fi |
13764 | ||
3a922bb4 | 13765 | for ac_hdr in stdlib.h |
10f2d63a | 13766 | do |
698dcdb6 VZ |
13767 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13768 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13769 | echo "configure:13770: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13770 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13772 | else | |
13773 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13774 | #line 13775 "configure" |
10f2d63a | 13775 | #include "confdefs.h" |
698dcdb6 VZ |
13776 | #include <$ac_hdr> |
13777 | EOF | |
13778 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13779 | { (eval echo configure:13780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13780 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13781 | if test -z "$ac_err"; then | |
13782 | rm -rf conftest* | |
13783 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13784 | else |
698dcdb6 VZ |
13785 | echo "$ac_err" >&5 |
13786 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13787 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13788 | rm -rf conftest* |
13789 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13790 | fi |
698dcdb6 | 13791 | rm -f conftest* |
10f2d63a | 13792 | fi |
698dcdb6 VZ |
13793 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13794 | echo "$ac_t""yes" 1>&6 | |
13795 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13796 | cat >> confdefs.h <<EOF | |
13797 | #define $ac_tr_hdr 1 | |
10f2d63a | 13798 | EOF |
698dcdb6 VZ |
13799 | |
13800 | else | |
13801 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13802 | fi |
13803 | done | |
13804 | ||
9f8148b1 | 13805 | for ac_hdr in malloc.h |
10f2d63a | 13806 | do |
698dcdb6 VZ |
13807 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13808 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13809 | echo "configure:13810: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13810 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13812 | else | |
13813 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13814 | #line 13815 "configure" |
10f2d63a | 13815 | #include "confdefs.h" |
698dcdb6 VZ |
13816 | #include <$ac_hdr> |
13817 | EOF | |
13818 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13819 | { (eval echo configure:13820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13820 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13821 | if test -z "$ac_err"; then | |
13822 | rm -rf conftest* | |
13823 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13824 | else |
698dcdb6 VZ |
13825 | echo "$ac_err" >&5 |
13826 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13827 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13828 | rm -rf conftest* |
13829 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13830 | fi |
698dcdb6 | 13831 | rm -f conftest* |
6f72b082 | 13832 | fi |
698dcdb6 VZ |
13833 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13834 | echo "$ac_t""yes" 1>&6 | |
13835 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13836 | cat >> confdefs.h <<EOF | |
13837 | #define $ac_tr_hdr 1 | |
6f72b082 | 13838 | EOF |
698dcdb6 VZ |
13839 | |
13840 | else | |
13841 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13842 | fi |
13843 | done | |
13844 | ||
9f8148b1 | 13845 | for ac_hdr in unistd.h |
6f72b082 | 13846 | do |
698dcdb6 VZ |
13847 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13848 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13849 | echo "configure:13850: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13850 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13852 | else | |
13853 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13854 | #line 13855 "configure" |
6f72b082 | 13855 | #include "confdefs.h" |
698dcdb6 VZ |
13856 | #include <$ac_hdr> |
13857 | EOF | |
13858 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13859 | { (eval echo configure:13860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13860 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13861 | if test -z "$ac_err"; then | |
13862 | rm -rf conftest* | |
13863 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13864 | else |
698dcdb6 VZ |
13865 | echo "$ac_err" >&5 |
13866 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13867 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13868 | rm -rf conftest* |
13869 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13870 | fi |
698dcdb6 | 13871 | rm -f conftest* |
6f72b082 | 13872 | fi |
698dcdb6 VZ |
13873 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13874 | echo "$ac_t""yes" 1>&6 | |
13875 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13876 | cat >> confdefs.h <<EOF | |
13877 | #define $ac_tr_hdr 1 | |
6f72b082 | 13878 | EOF |
698dcdb6 VZ |
13879 | |
13880 | else | |
13881 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13882 | fi |
13883 | done | |
13884 | ||
9f8148b1 | 13885 | for ac_hdr in wchar.h |
6f72b082 | 13886 | do |
698dcdb6 VZ |
13887 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13888 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13889 | echo "configure:13890: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13890 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13892 | else | |
13893 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13894 | #line 13895 "configure" |
6f72b082 | 13895 | #include "confdefs.h" |
698dcdb6 VZ |
13896 | #include <$ac_hdr> |
13897 | EOF | |
13898 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13899 | { (eval echo configure:13900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13900 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13901 | if test -z "$ac_err"; then | |
13902 | rm -rf conftest* | |
13903 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13904 | else |
698dcdb6 VZ |
13905 | echo "$ac_err" >&5 |
13906 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13907 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13908 | rm -rf conftest* |
13909 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13910 | fi |
698dcdb6 | 13911 | rm -f conftest* |
10f2d63a | 13912 | fi |
698dcdb6 VZ |
13913 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13914 | echo "$ac_t""yes" 1>&6 | |
13915 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13916 | cat >> confdefs.h <<EOF | |
13917 | #define $ac_tr_hdr 1 | |
10f2d63a | 13918 | EOF |
698dcdb6 VZ |
13919 | |
13920 | else | |
13921 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13922 | fi |
13923 | done | |
13924 | ||
9f8148b1 | 13925 | for ac_hdr in wcstr.h |
0fb0dd83 | 13926 | do |
698dcdb6 VZ |
13927 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13928 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13929 | echo "configure:13930: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13930 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13932 | else | |
13933 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13934 | #line 13935 "configure" |
0fb0dd83 | 13935 | #include "confdefs.h" |
698dcdb6 VZ |
13936 | #include <$ac_hdr> |
13937 | EOF | |
13938 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13939 | { (eval echo configure:13940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13940 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13941 | if test -z "$ac_err"; then | |
13942 | rm -rf conftest* | |
13943 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13944 | else |
698dcdb6 VZ |
13945 | echo "$ac_err" >&5 |
13946 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13947 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13948 | rm -rf conftest* |
13949 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13950 | fi |
698dcdb6 | 13951 | rm -f conftest* |
0fb0dd83 | 13952 | fi |
698dcdb6 VZ |
13953 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13954 | echo "$ac_t""yes" 1>&6 | |
13955 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13956 | cat >> confdefs.h <<EOF | |
13957 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13958 | EOF |
698dcdb6 VZ |
13959 | |
13960 | else | |
13961 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13962 | fi |
13963 | done | |
13964 | ||
9f8148b1 | 13965 | for ac_hdr in wctype.h |
1f8ae82f | 13966 | do |
698dcdb6 VZ |
13967 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13968 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 13969 | echo "configure:13970: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13970 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13972 | else | |
13973 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 13974 | #line 13975 "configure" |
1f8ae82f | 13975 | #include "confdefs.h" |
698dcdb6 VZ |
13976 | #include <$ac_hdr> |
13977 | EOF | |
13978 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 13979 | { (eval echo configure:13980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13980 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13981 | if test -z "$ac_err"; then | |
13982 | rm -rf conftest* | |
13983 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 13984 | else |
698dcdb6 VZ |
13985 | echo "$ac_err" >&5 |
13986 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 13987 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13988 | rm -rf conftest* |
13989 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 13990 | fi |
698dcdb6 | 13991 | rm -f conftest* |
1f8ae82f | 13992 | fi |
698dcdb6 VZ |
13993 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13994 | echo "$ac_t""yes" 1>&6 | |
13995 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13996 | cat >> confdefs.h <<EOF | |
13997 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13998 | EOF |
698dcdb6 VZ |
13999 | |
14000 | else | |
14001 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
14002 | fi |
14003 | done | |
14004 | ||
9f8148b1 | 14005 | for ac_hdr in fnmatch.h |
10f2d63a | 14006 | do |
698dcdb6 VZ |
14007 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14008 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 14009 | echo "configure:14010: checking for $ac_hdr" >&5 |
0fbb762e MB |
14010 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14012 | else | |
14013 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14014 | #line 14015 "configure" |
0fbb762e MB |
14015 | #include "confdefs.h" |
14016 | #include <$ac_hdr> | |
14017 | EOF | |
14018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 14019 | { (eval echo configure:14020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
14020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14021 | if test -z "$ac_err"; then | |
14022 | rm -rf conftest* | |
14023 | eval "ac_cv_header_$ac_safe=yes" | |
14024 | else | |
14025 | echo "$ac_err" >&5 | |
14026 | echo "configure: failed program was:" >&5 | |
14027 | cat conftest.$ac_ext >&5 | |
14028 | rm -rf conftest* | |
14029 | eval "ac_cv_header_$ac_safe=no" | |
14030 | fi | |
14031 | rm -f conftest* | |
14032 | fi | |
14033 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14034 | echo "$ac_t""yes" 1>&6 | |
14035 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14036 | cat >> confdefs.h <<EOF | |
14037 | #define $ac_tr_hdr 1 | |
14038 | EOF | |
14039 | ||
14040 | else | |
14041 | echo "$ac_t""no" 1>&6 | |
14042 | fi | |
14043 | done | |
14044 | ||
9f8148b1 GD |
14045 | for ac_hdr in langinfo.h |
14046 | do | |
14047 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14048 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 14049 | echo "configure:14050: checking for $ac_hdr" >&5 |
9f8148b1 GD |
14050 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14052 | else | |
14053 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14054 | #line 14055 "configure" |
9f8148b1 GD |
14055 | #include "confdefs.h" |
14056 | #include <$ac_hdr> | |
14057 | EOF | |
14058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 14059 | { (eval echo configure:14060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
14060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14061 | if test -z "$ac_err"; then | |
14062 | rm -rf conftest* | |
14063 | eval "ac_cv_header_$ac_safe=yes" | |
14064 | else | |
14065 | echo "$ac_err" >&5 | |
14066 | echo "configure: failed program was:" >&5 | |
14067 | cat conftest.$ac_ext >&5 | |
14068 | rm -rf conftest* | |
14069 | eval "ac_cv_header_$ac_safe=no" | |
14070 | fi | |
14071 | rm -f conftest* | |
14072 | fi | |
14073 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14074 | echo "$ac_t""yes" 1>&6 | |
14075 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14076 | cat >> confdefs.h <<EOF | |
14077 | #define $ac_tr_hdr 1 | |
14078 | EOF | |
14079 | ||
14080 | else | |
14081 | echo "$ac_t""no" 1>&6 | |
14082 | fi | |
14083 | done | |
14084 | ||
10f2d63a | 14085 | |
3a922bb4 RL |
14086 | if test "$wxUSE_GUI" = "yes"; then |
14087 | if test "$wxUSE_UNIX" = "yes"; then | |
14088 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
14089 | do |
14090 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14091 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 14092 | echo "configure:14093: checking for $ac_hdr" >&5 |
29fd3c0c VS |
14093 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14095 | else | |
14096 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14097 | #line 14098 "configure" |
29fd3c0c VS |
14098 | #include "confdefs.h" |
14099 | #include <$ac_hdr> | |
14100 | EOF | |
14101 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 14102 | { (eval echo configure:14103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
14103 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14104 | if test -z "$ac_err"; then | |
14105 | rm -rf conftest* | |
14106 | eval "ac_cv_header_$ac_safe=yes" | |
14107 | else | |
14108 | echo "$ac_err" >&5 | |
14109 | echo "configure: failed program was:" >&5 | |
14110 | cat conftest.$ac_ext >&5 | |
14111 | rm -rf conftest* | |
14112 | eval "ac_cv_header_$ac_safe=no" | |
14113 | fi | |
14114 | rm -f conftest* | |
14115 | fi | |
14116 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14117 | echo "$ac_t""yes" 1>&6 | |
14118 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14119 | cat >> confdefs.h <<EOF | |
14120 | #define $ac_tr_hdr 1 | |
14121 | EOF | |
14122 | ||
14123 | else | |
14124 | echo "$ac_t""no" 1>&6 | |
14125 | fi | |
14126 | done | |
14127 | ||
3a922bb4 | 14128 | fi |
29fd3c0c VS |
14129 | fi |
14130 | ||
698dcdb6 VZ |
14131 | |
14132 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d558c907 | 14133 | echo "configure:14134: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
14134 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
14135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14136 | else |
698dcdb6 | 14137 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14138 | #line 14139 "configure" |
10f2d63a VZ |
14139 | #include "confdefs.h" |
14140 | #include <stdlib.h> | |
14141 | #include <stdarg.h> | |
14142 | #include <string.h> | |
14143 | #include <float.h> | |
698dcdb6 VZ |
14144 | EOF |
14145 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 14146 | { (eval echo configure:14147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14147 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14148 | if test -z "$ac_err"; then | |
14149 | rm -rf conftest* | |
10f2d63a VZ |
14150 | ac_cv_header_stdc=yes |
14151 | else | |
698dcdb6 VZ |
14152 | echo "$ac_err" >&5 |
14153 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14154 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14155 | rm -rf conftest* |
10f2d63a VZ |
14156 | ac_cv_header_stdc=no |
14157 | fi | |
698dcdb6 | 14158 | rm -f conftest* |
10f2d63a VZ |
14159 | |
14160 | if test $ac_cv_header_stdc = yes; then | |
14161 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 14162 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14163 | #line 14164 "configure" |
10f2d63a VZ |
14164 | #include "confdefs.h" |
14165 | #include <string.h> | |
698dcdb6 | 14166 | EOF |
10f2d63a VZ |
14167 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14168 | egrep "memchr" >/dev/null 2>&1; then | |
14169 | : | |
14170 | else | |
698dcdb6 | 14171 | rm -rf conftest* |
10f2d63a VZ |
14172 | ac_cv_header_stdc=no |
14173 | fi | |
14174 | rm -f conftest* | |
14175 | ||
14176 | fi | |
14177 | ||
14178 | if test $ac_cv_header_stdc = yes; then | |
14179 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 14180 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14181 | #line 14182 "configure" |
10f2d63a VZ |
14182 | #include "confdefs.h" |
14183 | #include <stdlib.h> | |
698dcdb6 | 14184 | EOF |
10f2d63a VZ |
14185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14186 | egrep "free" >/dev/null 2>&1; then | |
14187 | : | |
14188 | else | |
698dcdb6 | 14189 | rm -rf conftest* |
10f2d63a VZ |
14190 | ac_cv_header_stdc=no |
14191 | fi | |
14192 | rm -f conftest* | |
14193 | ||
14194 | fi | |
14195 | ||
14196 | if test $ac_cv_header_stdc = yes; then | |
14197 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 14198 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
14199 | : |
14200 | else | |
698dcdb6 | 14201 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14202 | #line 14203 "configure" |
10f2d63a VZ |
14203 | #include "confdefs.h" |
14204 | #include <ctype.h> | |
698dcdb6 VZ |
14205 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
14206 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 14207 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
14208 | int main () { int i; for (i = 0; i < 256; i++) |
14209 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14210 | exit (0); } | |
14211 | ||
14212 | EOF | |
d558c907 | 14213 | if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14214 | then |
10f2d63a VZ |
14215 | : |
14216 | else | |
698dcdb6 VZ |
14217 | echo "configure: failed program was:" >&5 |
14218 | cat conftest.$ac_ext >&5 | |
14219 | rm -fr conftest* | |
14220 | ac_cv_header_stdc=no | |
10f2d63a | 14221 | fi |
698dcdb6 | 14222 | rm -fr conftest* |
10f2d63a | 14223 | fi |
698dcdb6 | 14224 | |
10f2d63a VZ |
14225 | fi |
14226 | fi | |
1e487827 | 14227 | |
698dcdb6 VZ |
14228 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
14229 | if test $ac_cv_header_stdc = yes; then | |
14230 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14231 | #define STDC_HEADERS 1 |
14232 | EOF | |
14233 | ||
14234 | fi | |
14235 | ||
698dcdb6 | 14236 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d558c907 | 14237 | echo "configure:14238: checking for mode_t" >&5 |
698dcdb6 VZ |
14238 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
14239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14240 | else |
698dcdb6 | 14241 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14242 | #line 14243 "configure" |
1e487827 | 14243 | #include "confdefs.h" |
698dcdb6 VZ |
14244 | #include <sys/types.h> |
14245 | #if STDC_HEADERS | |
14246 | #include <stdlib.h> | |
14247 | #include <stddef.h> | |
14248 | #endif | |
14249 | EOF | |
14250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14251 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14252 | rm -rf conftest* | |
10f2d63a VZ |
14253 | ac_cv_type_mode_t=yes |
14254 | else | |
698dcdb6 VZ |
14255 | rm -rf conftest* |
14256 | ac_cv_type_mode_t=no | |
703e0a69 | 14257 | fi |
698dcdb6 | 14258 | rm -f conftest* |
1e487827 | 14259 | |
698dcdb6 VZ |
14260 | fi |
14261 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14262 | if test $ac_cv_type_mode_t = no; then | |
14263 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14264 | #define mode_t int |
14265 | EOF | |
14266 | ||
14267 | fi | |
14268 | ||
698dcdb6 | 14269 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
d558c907 | 14270 | echo "configure:14271: checking for off_t" >&5 |
698dcdb6 VZ |
14271 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
14272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14273 | else |
698dcdb6 | 14274 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14275 | #line 14276 "configure" |
10f2d63a | 14276 | #include "confdefs.h" |
698dcdb6 VZ |
14277 | #include <sys/types.h> |
14278 | #if STDC_HEADERS | |
14279 | #include <stdlib.h> | |
14280 | #include <stddef.h> | |
14281 | #endif | |
14282 | EOF | |
14283 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14284 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14285 | rm -rf conftest* | |
10f2d63a VZ |
14286 | ac_cv_type_off_t=yes |
14287 | else | |
698dcdb6 VZ |
14288 | rm -rf conftest* |
14289 | ac_cv_type_off_t=no | |
703e0a69 | 14290 | fi |
698dcdb6 | 14291 | rm -f conftest* |
1e487827 | 14292 | |
698dcdb6 VZ |
14293 | fi |
14294 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14295 | if test $ac_cv_type_off_t = no; then | |
14296 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14297 | #define off_t long |
14298 | EOF | |
14299 | ||
14300 | fi | |
14301 | ||
698dcdb6 | 14302 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
d558c907 | 14303 | echo "configure:14304: checking for pid_t" >&5 |
698dcdb6 VZ |
14304 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
14305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14306 | else |
698dcdb6 | 14307 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14308 | #line 14309 "configure" |
10f2d63a | 14309 | #include "confdefs.h" |
698dcdb6 VZ |
14310 | #include <sys/types.h> |
14311 | #if STDC_HEADERS | |
14312 | #include <stdlib.h> | |
14313 | #include <stddef.h> | |
14314 | #endif | |
14315 | EOF | |
14316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14317 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14318 | rm -rf conftest* | |
10f2d63a VZ |
14319 | ac_cv_type_pid_t=yes |
14320 | else | |
698dcdb6 VZ |
14321 | rm -rf conftest* |
14322 | ac_cv_type_pid_t=no | |
703e0a69 | 14323 | fi |
698dcdb6 | 14324 | rm -f conftest* |
1e487827 | 14325 | |
698dcdb6 VZ |
14326 | fi |
14327 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14328 | if test $ac_cv_type_pid_t = no; then | |
14329 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14330 | #define pid_t int |
14331 | EOF | |
14332 | ||
14333 | fi | |
14334 | ||
698dcdb6 | 14335 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
d558c907 | 14336 | echo "configure:14337: checking for size_t" >&5 |
698dcdb6 VZ |
14337 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
14338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14339 | else |
698dcdb6 | 14340 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14341 | #line 14342 "configure" |
10f2d63a | 14342 | #include "confdefs.h" |
698dcdb6 VZ |
14343 | #include <sys/types.h> |
14344 | #if STDC_HEADERS | |
14345 | #include <stdlib.h> | |
14346 | #include <stddef.h> | |
14347 | #endif | |
14348 | EOF | |
14349 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14350 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14351 | rm -rf conftest* | |
10f2d63a VZ |
14352 | ac_cv_type_size_t=yes |
14353 | else | |
698dcdb6 VZ |
14354 | rm -rf conftest* |
14355 | ac_cv_type_size_t=no | |
703e0a69 | 14356 | fi |
698dcdb6 | 14357 | rm -f conftest* |
1e487827 | 14358 | |
698dcdb6 VZ |
14359 | fi |
14360 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14361 | if test $ac_cv_type_size_t = no; then | |
14362 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14363 | #define size_t unsigned |
14364 | EOF | |
14365 | ||
14366 | fi | |
14367 | ||
698dcdb6 | 14368 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d558c907 | 14369 | echo "configure:14370: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
14370 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
14371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14372 | else |
698dcdb6 | 14373 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14374 | #line 14375 "configure" |
10f2d63a VZ |
14375 | #include "confdefs.h" |
14376 | #include <sys/types.h> | |
698dcdb6 | 14377 | EOF |
10f2d63a VZ |
14378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14379 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 14380 | rm -rf conftest* |
10f2d63a VZ |
14381 | ac_cv_type_uid_t=yes |
14382 | else | |
698dcdb6 | 14383 | rm -rf conftest* |
10f2d63a VZ |
14384 | ac_cv_type_uid_t=no |
14385 | fi | |
14386 | rm -f conftest* | |
14387 | ||
14388 | fi | |
1e487827 | 14389 | |
698dcdb6 VZ |
14390 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
14391 | if test $ac_cv_type_uid_t = no; then | |
14392 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14393 | #define uid_t int |
14394 | EOF | |
14395 | ||
698dcdb6 | 14396 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14397 | #define gid_t int |
14398 | EOF | |
14399 | ||
14400 | fi | |
14401 | ||
1e487827 | 14402 | |
698dcdb6 | 14403 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
d558c907 | 14404 | echo "configure:14405: checking for wchar_t" >&5 |
698dcdb6 VZ |
14405 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
14406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14407 | else | |
14408 | ||
14409 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14410 | #line 14411 "configure" |
0046ff7c | 14411 | #include "confdefs.h" |
4b42290e GD |
14412 | |
14413 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
14414 | # ifdef __CYGWIN__ |
14415 | # include <stddef.h> | |
14416 | # endif | |
4b42290e GD |
14417 | # include <wchar.h> |
14418 | #endif | |
14419 | #ifdef HAVE_STDLIB_H | |
14420 | # include <stdlib.h> | |
14421 | #endif | |
14422 | ||
698dcdb6 | 14423 | int main() { |
0046ff7c | 14424 | |
d836ee96 VZ |
14425 | wchar_t wc, *ws; |
14426 | wc = L'a'; | |
14427 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
14428 | |
14429 | ; return 0; } | |
14430 | EOF | |
d558c907 | 14431 | if { (eval echo configure:14432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14432 | rm -rf conftest* |
1f8ae82f | 14433 | wx_cv_type_wchar_t=yes |
0046ff7c | 14434 | else |
698dcdb6 VZ |
14435 | echo "configure: failed program was:" >&5 |
14436 | cat conftest.$ac_ext >&5 | |
14437 | rm -rf conftest* | |
14438 | wx_cv_type_wchar_t=no | |
d836ee96 | 14439 | |
6232543b | 14440 | fi |
698dcdb6 | 14441 | rm -f conftest* |
703e0a69 | 14442 | |
1e487827 | 14443 | fi |
698dcdb6 VZ |
14444 | |
14445 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
14446 | |
14447 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 14448 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
14449 | #define wxUSE_WCHAR_T 1 |
14450 | EOF | |
14451 | ||
14452 | fi | |
14453 | ||
19af3b06 VZ |
14454 | |
14455 | ac_ext=C | |
14456 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14457 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14458 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14459 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14460 | cross_compiling=$ac_cv_prog_cxx_cross | |
14461 | ||
d836ee96 | 14462 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
d558c907 | 14463 | echo "configure:14464: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
14464 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
14465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14466 | else | |
dd2c8b7c | 14467 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14468 | #line 14469 "configure" |
d836ee96 VZ |
14469 | #include "confdefs.h" |
14470 | #include <stddef.h> | |
14471 | int main() { | |
14472 | ||
dd2c8b7c VZ |
14473 | return 0; } |
14474 | ||
d836ee96 | 14475 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
14476 | |
14477 | int bar() { | |
d836ee96 VZ |
14478 | |
14479 | ; return 0; } | |
14480 | EOF | |
d558c907 | 14481 | if { (eval echo configure:14482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14482 | rm -rf conftest* |
14483 | wx_cv_size_t_is_uint=no | |
14484 | else | |
14485 | echo "configure: failed program was:" >&5 | |
14486 | cat conftest.$ac_ext >&5 | |
14487 | rm -rf conftest* | |
14488 | wx_cv_size_t_is_uint=yes | |
14489 | ||
14490 | fi | |
14491 | rm -f conftest* | |
14492 | ||
14493 | fi | |
14494 | ||
14495 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14496 | ||
14497 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14498 | cat >> confdefs.h <<\EOF | |
14499 | #define wxSIZE_T_IS_UINT 1 | |
14500 | EOF | |
14501 | ||
14502 | else | |
14503 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
d558c907 | 14504 | echo "configure:14505: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
14505 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
14506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14507 | else | |
14508 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14509 | #line 14510 "configure" |
d836ee96 VZ |
14510 | #include "confdefs.h" |
14511 | #include <stddef.h> | |
14512 | int main() { | |
14513 | ||
dd2c8b7c VZ |
14514 | return 0; } |
14515 | ||
d836ee96 | 14516 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
14517 | |
14518 | int bar() { | |
d836ee96 VZ |
14519 | |
14520 | ; return 0; } | |
14521 | EOF | |
d558c907 | 14522 | if { (eval echo configure:14523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
14523 | rm -rf conftest* |
14524 | wx_cv_size_t_is_ulong=no | |
14525 | else | |
14526 | echo "configure: failed program was:" >&5 | |
14527 | cat conftest.$ac_ext >&5 | |
14528 | rm -rf conftest* | |
14529 | wx_cv_size_t_is_ulong=yes | |
14530 | ||
14531 | fi | |
14532 | rm -f conftest* | |
14533 | ||
14534 | fi | |
14535 | ||
14536 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14537 | ||
14538 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14539 | cat >> confdefs.h <<\EOF | |
14540 | #define wxSIZE_T_IS_ULONG 1 | |
14541 | EOF | |
14542 | ||
14543 | fi | |
14544 | fi | |
14545 | ||
19af3b06 VZ |
14546 | ac_ext=c |
14547 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14548 | ac_cpp='$CPP $CPPFLAGS' | |
14549 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14550 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14551 | cross_compiling=$ac_cv_prog_cc_cross | |
14552 | ||
14553 | ||
1e487827 | 14554 | |
698dcdb6 | 14555 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d558c907 | 14556 | echo "configure:14557: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
14557 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
14558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14559 | else | |
14560 | ||
14561 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14562 | #line 14563 "configure" |
b12915c1 VZ |
14563 | #include "confdefs.h" |
14564 | #include <pwd.h> | |
698dcdb6 | 14565 | int main() { |
b12915c1 VZ |
14566 | |
14567 | char *p; | |
14568 | struct passwd *pw; | |
14569 | p = pw->pw_gecos; | |
698dcdb6 VZ |
14570 | |
14571 | ; return 0; } | |
14572 | EOF | |
d558c907 | 14573 | if { (eval echo configure:14574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14574 | rm -rf conftest* |
14575 | ||
b12915c1 | 14576 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 14577 | |
b12915c1 | 14578 | else |
698dcdb6 VZ |
14579 | echo "configure: failed program was:" >&5 |
14580 | cat conftest.$ac_ext >&5 | |
14581 | rm -rf conftest* | |
14582 | ||
b12915c1 | 14583 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
14584 | |
14585 | ||
6232543b | 14586 | fi |
698dcdb6 VZ |
14587 | rm -f conftest* |
14588 | ||
703e0a69 | 14589 | |
1e487827 | 14590 | fi |
698dcdb6 VZ |
14591 | |
14592 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 14593 | |
bd3277fe | 14594 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 14595 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
14596 | #define HAVE_PW_GECOS 1 |
14597 | EOF | |
14598 | ||
14599 | fi | |
14600 | ||
698dcdb6 VZ |
14601 | |
14602 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d558c907 | 14603 | echo "configure:14604: checking for working const" >&5 |
698dcdb6 VZ |
14604 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
14605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14606 | else |
698dcdb6 | 14607 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14608 | #line 14609 "configure" |
10f2d63a | 14609 | #include "confdefs.h" |
698dcdb6 VZ |
14610 | |
14611 | int main() { | |
14612 | ||
14613 | /* Ultrix mips cc rejects this. */ | |
d558c907 | 14614 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
14615 | /* SunOS 4.1.1 cc rejects this. */ |
14616 | char const *const *ccp; | |
14617 | char **p; | |
14618 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14619 | struct point {int x, y;}; | |
14620 | static struct point const zero = {0,0}; | |
14621 | /* AIX XL C 1.02.0.0 rejects this. | |
14622 | It does not let you subtract one const X* pointer from another in an arm | |
14623 | of an if-expression whose if-part is not a constant expression */ | |
14624 | const char *g = "string"; | |
14625 | ccp = &g + (g ? g-g : 0); | |
14626 | /* HPUX 7.0 cc rejects these. */ | |
14627 | ++ccp; | |
14628 | p = (char**) ccp; | |
14629 | ccp = (char const *const *) p; | |
14630 | { /* SCO 3.2v4 cc rejects this. */ | |
14631 | char *t; | |
14632 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14633 | ||
14634 | *t++ = 0; | |
10f2d63a | 14635 | } |
698dcdb6 VZ |
14636 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14637 | int x[] = {25, 17}; | |
14638 | const int *foo = &x[0]; | |
14639 | ++foo; | |
703e0a69 | 14640 | } |
698dcdb6 VZ |
14641 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14642 | typedef const int *iptr; | |
14643 | iptr p = 0; | |
14644 | ++p; | |
6232543b | 14645 | } |
698dcdb6 VZ |
14646 | { /* AIX XL C 1.02.0.0 rejects this saying |
14647 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14648 | struct s { int j; const int *ap[3]; }; | |
14649 | struct s *b; b->j = 5; | |
1e487827 | 14650 | } |
698dcdb6 VZ |
14651 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14652 | const int foo = 10; | |
14653 | } | |
4f14bcd8 GD |
14654 | |
14655 | ; return 0; } | |
698dcdb6 | 14656 | EOF |
d558c907 | 14657 | if { (eval echo configure:14658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14658 | rm -rf conftest* |
14659 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14660 | else |
14661 | echo "configure: failed program was:" >&5 | |
14662 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14663 | rm -rf conftest* |
14664 | ac_cv_c_const=no | |
703e0a69 | 14665 | fi |
4f14bcd8 | 14666 | rm -f conftest* |
698dcdb6 VZ |
14667 | fi |
14668 | ||
4f14bcd8 GD |
14669 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14670 | if test $ac_cv_c_const = no; then | |
14671 | cat >> confdefs.h <<\EOF | |
14672 | #define const | |
698dcdb6 VZ |
14673 | EOF |
14674 | ||
4f14bcd8 | 14675 | fi |
698dcdb6 | 14676 | |
4f14bcd8 | 14677 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
d558c907 | 14678 | echo "configure:14679: checking for inline" >&5 |
4f14bcd8 | 14679 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14680 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14681 | else |
4f14bcd8 GD |
14682 | ac_cv_c_inline=no |
14683 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14684 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14685 | #line 14686 "configure" |
10f2d63a | 14686 | #include "confdefs.h" |
4f14bcd8 GD |
14687 | |
14688 | int main() { | |
d558c907 | 14689 | } $ac_kw foo() { |
4f14bcd8 | 14690 | ; return 0; } |
698dcdb6 | 14691 | EOF |
d558c907 | 14692 | if { (eval echo configure:14693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14693 | rm -rf conftest* |
14694 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14695 | else |
698dcdb6 VZ |
14696 | echo "configure: failed program was:" >&5 |
14697 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14698 | fi |
4f14bcd8 GD |
14699 | rm -f conftest* |
14700 | done | |
698dcdb6 | 14701 | |
10f2d63a | 14702 | fi |
4f14bcd8 GD |
14703 | |
14704 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14705 | case "$ac_cv_c_inline" in | |
14706 | inline | yes) ;; | |
14707 | no) cat >> confdefs.h <<\EOF | |
14708 | #define inline | |
14709 | EOF | |
14710 | ;; | |
14711 | *) cat >> confdefs.h <<EOF | |
14712 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14713 | EOF |
4f14bcd8 GD |
14714 | ;; |
14715 | esac | |
698dcdb6 VZ |
14716 | |
14717 | ||
4f14bcd8 | 14718 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
d558c907 | 14719 | echo "configure:14720: checking size of char" >&5 |
4f14bcd8 | 14720 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14721 | echo $ac_n "(cached) $ac_c" 1>&6 |
14722 | else | |
14723 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14724 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14725 | else |
14726 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14727 | #line 14728 "configure" |
698dcdb6 VZ |
14728 | #include "confdefs.h" |
14729 | #include <stdio.h> | |
9337b578 | 14730 | main() |
698dcdb6 VZ |
14731 | { |
14732 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14733 | if (!f) exit(1); |
4f14bcd8 | 14734 | fprintf(f, "%d\n", sizeof(char)); |
9337b578 | 14735 | exit(0); |
698dcdb6 VZ |
14736 | } |
14737 | EOF | |
d558c907 | 14738 | if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14739 | then |
4f14bcd8 | 14740 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14741 | else |
698dcdb6 VZ |
14742 | echo "configure: failed program was:" >&5 |
14743 | cat conftest.$ac_ext >&5 | |
14744 | rm -fr conftest* | |
4f14bcd8 | 14745 | ac_cv_sizeof_char=0 |
6232543b | 14746 | fi |
698dcdb6 VZ |
14747 | rm -fr conftest* |
14748 | fi | |
14749 | ||
703e0a69 | 14750 | fi |
4f14bcd8 | 14751 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14752 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14753 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14754 | EOF |
14755 | ||
1e487827 | 14756 | |
4f14bcd8 | 14757 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
d558c907 | 14758 | echo "configure:14759: checking size of short" >&5 |
4f14bcd8 | 14759 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14760 | echo $ac_n "(cached) $ac_c" 1>&6 |
14761 | else | |
4f14bcd8 GD |
14762 | if test "$cross_compiling" = yes; then |
14763 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14764 | else |
698dcdb6 | 14765 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14766 | #line 14767 "configure" |
b93d0d08 | 14767 | #include "confdefs.h" |
4f14bcd8 | 14768 | #include <stdio.h> |
9337b578 | 14769 | main() |
4f14bcd8 GD |
14770 | { |
14771 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14772 | if (!f) exit(1); |
4f14bcd8 | 14773 | fprintf(f, "%d\n", sizeof(short)); |
9337b578 | 14774 | exit(0); |
4f14bcd8 | 14775 | } |
698dcdb6 | 14776 | EOF |
d558c907 | 14777 | if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14778 | then |
4f14bcd8 | 14779 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14780 | else |
698dcdb6 VZ |
14781 | echo "configure: failed program was:" >&5 |
14782 | cat conftest.$ac_ext >&5 | |
14783 | rm -fr conftest* | |
4f14bcd8 | 14784 | ac_cv_sizeof_short=0 |
b93d0d08 | 14785 | fi |
698dcdb6 | 14786 | rm -fr conftest* |
b93d0d08 VS |
14787 | fi |
14788 | ||
b93d0d08 | 14789 | fi |
4f14bcd8 | 14790 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14791 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14792 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14793 | EOF |
14794 | ||
698dcdb6 | 14795 | |
4f14bcd8 | 14796 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
d558c907 | 14797 | echo "configure:14798: checking size of int *" >&5 |
4f14bcd8 | 14798 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 14799 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14800 | else |
4f14bcd8 GD |
14801 | if test "$cross_compiling" = yes; then |
14802 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 14803 | else |
3a922bb4 | 14804 | cat > conftest.$ac_ext <<EOF |
d558c907 | 14805 | #line 14806 "configure" |
3a922bb4 | 14806 | #include "confdefs.h" |
4f14bcd8 | 14807 | #include <stdio.h> |
9337b578 | 14808 | main() |
4f14bcd8 GD |
14809 | { |
14810 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14811 | if (!f) exit(1); |
4f14bcd8 | 14812 | fprintf(f, "%d\n", sizeof(int *)); |
9337b578 | 14813 | exit(0); |
4f14bcd8 GD |
14814 | } |
14815 | EOF | |
d558c907 | 14816 | if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14817 | then |
14818 | ac_cv_sizeof_int_p=`cat conftestval` | |
14819 | else | |
14820 | echo "configure: failed program was:" >&5 | |
14821 | cat conftest.$ac_ext >&5 | |
14822 | rm -fr conftest* | |
14823 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 14824 | fi |
4f14bcd8 | 14825 | rm -fr conftest* |
3a922bb4 | 14826 | fi |
698dcdb6 | 14827 | |
4f14bcd8 GD |
14828 | fi |
14829 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
14830 | cat >> confdefs.h <<EOF | |
14831 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
14832 | EOF |
14833 | ||
703e0a69 | 14834 | |
4f14bcd8 | 14835 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
d558c907 | 14836 | echo "configure:14837: checking size of int" >&5 |
4f14bcd8 | 14837 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14838 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14839 | else |
14840 | if test "$cross_compiling" = yes; then | |
14841 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14842 | else |
14843 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14844 | #line 14845 "configure" |
10f2d63a | 14845 | #include "confdefs.h" |
4f14bcd8 | 14846 | #include <stdio.h> |
9337b578 | 14847 | main() |
4f14bcd8 GD |
14848 | { |
14849 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14850 | if (!f) exit(1); |
4f14bcd8 | 14851 | fprintf(f, "%d\n", sizeof(int)); |
9337b578 | 14852 | exit(0); |
4f14bcd8 | 14853 | } |
698dcdb6 | 14854 | EOF |
d558c907 | 14855 | if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14856 | then |
14857 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14858 | else |
698dcdb6 | 14859 | echo "configure: failed program was:" >&5 |
10f2d63a | 14860 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14861 | rm -fr conftest* |
14862 | ac_cv_sizeof_int=0 | |
10f2d63a | 14863 | fi |
4f14bcd8 | 14864 | rm -fr conftest* |
10f2d63a | 14865 | fi |
10f2d63a | 14866 | |
4f14bcd8 GD |
14867 | fi |
14868 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14869 | cat >> confdefs.h <<EOF | |
14870 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14871 | EOF |
14872 | ||
698dcdb6 | 14873 | |
4f14bcd8 | 14874 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
d558c907 | 14875 | echo "configure:14876: checking size of long" >&5 |
4f14bcd8 | 14876 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14877 | echo $ac_n "(cached) $ac_c" 1>&6 |
14878 | else | |
4f14bcd8 GD |
14879 | if test "$cross_compiling" = yes; then |
14880 | ac_cv_sizeof_long=4 | |
14881 | else | |
14882 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14883 | #line 14884 "configure" |
10f2d63a | 14884 | #include "confdefs.h" |
4f14bcd8 | 14885 | #include <stdio.h> |
9337b578 | 14886 | main() |
4f14bcd8 GD |
14887 | { |
14888 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14889 | if (!f) exit(1); |
4f14bcd8 | 14890 | fprintf(f, "%d\n", sizeof(long)); |
9337b578 | 14891 | exit(0); |
4f14bcd8 | 14892 | } |
698dcdb6 | 14893 | EOF |
d558c907 | 14894 | if { (eval echo configure:14895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14895 | then |
14896 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14897 | else |
698dcdb6 VZ |
14898 | echo "configure: failed program was:" >&5 |
14899 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14900 | rm -fr conftest* |
14901 | ac_cv_sizeof_long=0 | |
10f2d63a | 14902 | fi |
4f14bcd8 | 14903 | rm -fr conftest* |
10f2d63a | 14904 | fi |
698dcdb6 | 14905 | |
4f14bcd8 GD |
14906 | fi |
14907 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14908 | cat >> confdefs.h <<EOF | |
14909 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14910 | EOF |
14911 | ||
698dcdb6 | 14912 | |
4f14bcd8 | 14913 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
d558c907 | 14914 | echo "configure:14915: checking size of long long" >&5 |
4f14bcd8 | 14915 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14916 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14917 | else |
4f14bcd8 GD |
14918 | if test "$cross_compiling" = yes; then |
14919 | ac_cv_sizeof_long_long=0 | |
14920 | else | |
14921 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14922 | #line 14923 "configure" |
10f2d63a | 14923 | #include "confdefs.h" |
4f14bcd8 | 14924 | #include <stdio.h> |
9337b578 | 14925 | main() |
4f14bcd8 GD |
14926 | { |
14927 | FILE *f=fopen("conftestval", "w"); | |
9337b578 | 14928 | if (!f) exit(1); |
4f14bcd8 | 14929 | fprintf(f, "%d\n", sizeof(long long)); |
9337b578 | 14930 | exit(0); |
4f14bcd8 | 14931 | } |
698dcdb6 | 14932 | EOF |
d558c907 | 14933 | if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14934 | then |
14935 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14936 | else |
14937 | echo "configure: failed program was:" >&5 | |
14938 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14939 | rm -fr conftest* |
14940 | ac_cv_sizeof_long_long=0 | |
14941 | fi | |
14942 | rm -fr conftest* | |
698dcdb6 | 14943 | fi |
698dcdb6 VZ |
14944 | |
14945 | fi | |
4f14bcd8 GD |
14946 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14947 | cat >> confdefs.h <<EOF | |
14948 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14949 | EOF |
14950 | ||
10f2d63a | 14951 | |
4f14bcd8 GD |
14952 | |
14953 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
d558c907 | 14954 | echo "configure:14955: checking size of wchar_t" >&5 |
4f14bcd8 | 14955 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14956 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14957 | else |
4f14bcd8 GD |
14958 | |
14959 | if test "$cross_compiling" = yes; then | |
14960 | wx_cv_sizeof_wchar_t=4 | |
14961 | ||
14962 | else | |
14963 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 14964 | #line 14965 "configure" |
10f2d63a | 14965 | #include "confdefs.h" |
698dcdb6 | 14966 | |
4f14bcd8 | 14967 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14968 | # ifdef __CYGWIN__ |
14969 | # include <stddef.h> | |
14970 | # endif | |
4f14bcd8 GD |
14971 | # include <wchar.h> |
14972 | #endif | |
14973 | #ifdef HAVE_STDLIB_H | |
14974 | # include <stdlib.h> | |
14975 | #endif | |
14976 | #include <stdio.h> | |
14977 | int main() | |
14978 | { | |
14979 | FILE *f=fopen("conftestval", "w"); | |
14980 | if (!f) exit(1); | |
14981 | fprintf(f, "%i", sizeof(wchar_t)); | |
14982 | exit(0); | |
14983 | } | |
14984 | ||
698dcdb6 | 14985 | EOF |
d558c907 | 14986 | if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14987 | then |
14988 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14989 | else |
14990 | echo "configure: failed program was:" >&5 | |
14991 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14992 | rm -fr conftest* |
14993 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14994 | fi |
4f14bcd8 GD |
14995 | rm -fr conftest* |
14996 | fi | |
14997 | ||
698dcdb6 VZ |
14998 | |
14999 | fi | |
4f14bcd8 GD |
15000 | |
15001 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
15002 | ||
15003 | cat >> confdefs.h <<EOF | |
15004 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
15005 | EOF |
15006 | ||
18dbb1f6 | 15007 | |
4f14bcd8 | 15008 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d558c907 | 15009 | echo "configure:15010: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 15010 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
15011 | echo $ac_n "(cached) $ac_c" 1>&6 |
15012 | else | |
4f14bcd8 GD |
15013 | ac_cv_c_bigendian=unknown |
15014 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 15015 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15016 | #line 15017 "configure" |
18dbb1f6 | 15017 | #include "confdefs.h" |
4f14bcd8 GD |
15018 | #include <sys/types.h> |
15019 | #include <sys/param.h> | |
15020 | int main() { | |
18dbb1f6 | 15021 | |
4f14bcd8 GD |
15022 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
15023 | bogus endian macros | |
15024 | #endif | |
15025 | ; return 0; } | |
15026 | EOF | |
d558c907 | 15027 | if { (eval echo configure:15028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15028 | rm -rf conftest* |
15029 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15030 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15031 | #line 15032 "configure" |
4f14bcd8 GD |
15032 | #include "confdefs.h" |
15033 | #include <sys/types.h> | |
15034 | #include <sys/param.h> | |
18dbb1f6 | 15035 | int main() { |
4f14bcd8 GD |
15036 | |
15037 | #if BYTE_ORDER != BIG_ENDIAN | |
15038 | not big endian | |
15039 | #endif | |
18dbb1f6 VZ |
15040 | ; return 0; } |
15041 | EOF | |
d558c907 | 15042 | if { (eval echo configure:15043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 15043 | rm -rf conftest* |
4f14bcd8 | 15044 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
15045 | else |
15046 | echo "configure: failed program was:" >&5 | |
15047 | cat conftest.$ac_ext >&5 | |
15048 | rm -rf conftest* | |
4f14bcd8 | 15049 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
15050 | fi |
15051 | rm -f conftest* | |
698dcdb6 | 15052 | else |
4f14bcd8 GD |
15053 | echo "configure: failed program was:" >&5 |
15054 | cat conftest.$ac_ext >&5 | |
1e487827 | 15055 | fi |
4f14bcd8 GD |
15056 | rm -f conftest* |
15057 | if test $ac_cv_c_bigendian = unknown; then | |
15058 | if test "$cross_compiling" = yes; then | |
15059 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
15060 | else |
15061 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15062 | #line 15063 "configure" |
b3e8d00a | 15063 | #include "confdefs.h" |
4f14bcd8 GD |
15064 | main () { |
15065 | /* Are we little or big endian? From Harbison&Steele. */ | |
15066 | union | |
15067 | { | |
15068 | long l; | |
15069 | char c[sizeof (long)]; | |
15070 | } u; | |
15071 | u.l = 1; | |
15072 | exit (u.c[sizeof (long) - 1] == 1); | |
15073 | } | |
b3e8d00a | 15074 | EOF |
d558c907 | 15075 | if { (eval echo configure:15076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
15076 | then |
15077 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
15078 | else |
15079 | echo "configure: failed program was:" >&5 | |
15080 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
15081 | rm -fr conftest* |
15082 | ac_cv_c_bigendian=yes | |
b3e8d00a | 15083 | fi |
4f14bcd8 | 15084 | rm -fr conftest* |
b3e8d00a VZ |
15085 | fi |
15086 | ||
4f14bcd8 GD |
15087 | fi |
15088 | fi | |
15089 | ||
15090 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15091 | if test $ac_cv_c_bigendian = unknown; then | |
15092 | 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 | |
15093 | fi | |
15094 | if test $ac_cv_c_bigendian = yes; then | |
15095 | cat >> confdefs.h <<\EOF | |
15096 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 15097 | EOF |
4f14bcd8 | 15098 | |
b3e8d00a | 15099 | fi |
b3e8d00a VZ |
15100 | |
15101 | ||
4f14bcd8 | 15102 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
d558c907 | 15103 | echo "configure:15104: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
15104 | if test -z "$CXXCPP"; then |
15105 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
15106 | echo $ac_n "(cached) $ac_c" 1>&6 |
15107 | else | |
4f14bcd8 GD |
15108 | ac_ext=C |
15109 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15110 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15111 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15112 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15113 | cross_compiling=$ac_cv_prog_cxx_cross | |
15114 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 15115 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15116 | #line 15117 "configure" |
10f2d63a | 15117 | #include "confdefs.h" |
4f14bcd8 | 15118 | #include <stdlib.h> |
698dcdb6 | 15119 | EOF |
4f14bcd8 | 15120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d558c907 | 15121 | { (eval echo configure:15122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15123 | if test -z "$ac_err"; then | |
15124 | : | |
698dcdb6 | 15125 | else |
4f14bcd8 | 15126 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15127 | echo "configure: failed program was:" >&5 |
15128 | cat conftest.$ac_ext >&5 | |
15129 | rm -rf conftest* | |
4f14bcd8 | 15130 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
15131 | fi |
15132 | rm -f conftest* | |
4f14bcd8 GD |
15133 | ac_cv_prog_CXXCPP="$CXXCPP" |
15134 | ac_ext=C | |
15135 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15136 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15137 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15138 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15139 | cross_compiling=$ac_cv_prog_cxx_cross | |
15140 | fi | |
698dcdb6 | 15141 | fi |
4f14bcd8 GD |
15142 | CXXCPP="$ac_cv_prog_CXXCPP" |
15143 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 15144 | |
4f14bcd8 GD |
15145 | |
15146 | if test "$cross_compiling" = "yes"; then | |
15147 | cat >> confdefs.h <<\EOF | |
15148 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
15149 | EOF |
15150 | ||
4f14bcd8 GD |
15151 | else |
15152 | ||
15153 | ac_ext=C | |
15154 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15155 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15156 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15157 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15158 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 15159 | |
4f14bcd8 GD |
15160 | |
15161 | for ac_hdr in iostream | |
15162 | do | |
15163 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15164 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 15165 | echo "configure:15166: checking for $ac_hdr" >&5 |
4f14bcd8 | 15166 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
15167 | echo $ac_n "(cached) $ac_c" 1>&6 |
15168 | else | |
15169 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15170 | #line 15171 "configure" |
10f2d63a | 15171 | #include "confdefs.h" |
4f14bcd8 | 15172 | #include <$ac_hdr> |
698dcdb6 | 15173 | EOF |
4f14bcd8 | 15174 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d558c907 | 15175 | { (eval echo configure:15176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15176 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15177 | if test -z "$ac_err"; then | |
698dcdb6 | 15178 | rm -rf conftest* |
4f14bcd8 | 15179 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 15180 | else |
4f14bcd8 | 15181 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15182 | echo "configure: failed program was:" >&5 |
15183 | cat conftest.$ac_ext >&5 | |
15184 | rm -rf conftest* | |
4f14bcd8 | 15185 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
15186 | fi |
15187 | rm -f conftest* | |
15188 | fi | |
4f14bcd8 | 15189 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 15190 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15191 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
15192 | cat >> confdefs.h <<EOF | |
15193 | #define $ac_tr_hdr 1 | |
10f2d63a | 15194 | EOF |
4f14bcd8 | 15195 | |
698dcdb6 VZ |
15196 | else |
15197 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15198 | fi |
4f14bcd8 | 15199 | done |
10f2d63a | 15200 | |
10f2d63a | 15201 | |
4f14bcd8 GD |
15202 | if test "$ac_cv_header_iostream" = "yes" ; then |
15203 | : | |
15204 | else | |
15205 | cat >> confdefs.h <<\EOF | |
15206 | #define wxUSE_IOSTREAMH 1 | |
15207 | EOF | |
15208 | ||
15209 | fi | |
1e487827 | 15210 | |
4f14bcd8 GD |
15211 | ac_ext=c |
15212 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15213 | ac_cpp='$CPP $CPPFLAGS' | |
15214 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15215 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15216 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15217 | |
4f14bcd8 | 15218 | fi |
698dcdb6 VZ |
15219 | |
15220 | ||
15221 | ||
4f14bcd8 | 15222 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
d558c907 | 15223 | echo "configure:15224: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 15224 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
15225 | echo $ac_n "(cached) $ac_c" 1>&6 |
15226 | else | |
15227 | ||
4f14bcd8 GD |
15228 | |
15229 | ac_ext=C | |
15230 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15231 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15232 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15233 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15234 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 15235 | |
10f2d63a | 15236 | |
4f14bcd8 | 15237 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15238 | #line 15239 "configure" |
4f14bcd8 | 15239 | #include "confdefs.h" |
10f2d63a | 15240 | |
4f14bcd8 GD |
15241 | |
15242 | int main() { | |
f6bcfd97 | 15243 | |
4f14bcd8 | 15244 | bool b = true; |
f6bcfd97 | 15245 | |
4f14bcd8 GD |
15246 | return 0; |
15247 | ||
698dcdb6 VZ |
15248 | ; return 0; } |
15249 | EOF | |
d558c907 | 15250 | if { (eval echo configure:15251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15251 | rm -rf conftest* |
15252 | ||
4f14bcd8 GD |
15253 | wx_cv_cpp_bool=yes |
15254 | ||
10f2d63a | 15255 | else |
698dcdb6 VZ |
15256 | echo "configure: failed program was:" >&5 |
15257 | cat conftest.$ac_ext >&5 | |
15258 | rm -rf conftest* | |
15259 | ||
4f14bcd8 GD |
15260 | wx_cv_cpp_bool=no |
15261 | ||
15262 | ||
15263 | fi | |
15264 | rm -f conftest* | |
c521c494 | 15265 | |
4f14bcd8 GD |
15266 | ac_ext=c |
15267 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15268 | ac_cpp='$CPP $CPPFLAGS' | |
15269 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15270 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15271 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 15272 | |
4f14bcd8 GD |
15273 | |
15274 | fi | |
c521c494 | 15275 | |
4f14bcd8 | 15276 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 15277 | |
4f14bcd8 GD |
15278 | if test "$wx_cv_cpp_bool" = "yes"; then |
15279 | cat >> confdefs.h <<\EOF | |
15280 | #define HAVE_BOOL 1 | |
15281 | EOF | |
c521c494 | 15282 | |
4f14bcd8 GD |
15283 | fi |
15284 | ||
15285 | ||
15286 | ||
15287 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
d558c907 | 15288 | echo "configure:15289: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
15289 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
15290 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15292 | else | |
15293 | ac_save_LIBS="$LIBS" | |
15294 | LIBS="-lc $LIBS" | |
15295 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15296 | #line 15297 "configure" |
4f14bcd8 GD |
15297 | #include "confdefs.h" |
15298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15299 | /* We use char because int might match the return type of a gcc2 | |
15300 | builtin and then its argument prototype would still apply. */ | |
15301 | char wcslen(); | |
15302 | ||
15303 | int main() { | |
15304 | wcslen() | |
698dcdb6 VZ |
15305 | ; return 0; } |
15306 | EOF | |
d558c907 | 15307 | if { (eval echo configure:15308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15308 | rm -rf conftest* |
4f14bcd8 | 15309 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 15310 | else |
698dcdb6 VZ |
15311 | echo "configure: failed program was:" >&5 |
15312 | cat conftest.$ac_ext >&5 | |
15313 | rm -rf conftest* | |
4f14bcd8 | 15314 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15315 | fi |
698dcdb6 | 15316 | rm -f conftest* |
4f14bcd8 | 15317 | LIBS="$ac_save_LIBS" |
703e0a69 | 15318 | |
1e487827 | 15319 | fi |
4f14bcd8 GD |
15320 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15321 | echo "$ac_t""yes" 1>&6 | |
15322 | ||
15323 | cat >> confdefs.h <<\EOF | |
15324 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15325 | EOF |
15326 | ||
3d63bc3a | 15327 | WCHAR_LINK= |
4f14bcd8 | 15328 | |
9d8deca0 | 15329 | else |
4f14bcd8 | 15330 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 15331 | |
4f14bcd8 | 15332 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
d558c907 | 15333 | echo "configure:15334: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
15334 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15335 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 15336 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15337 | else |
4f14bcd8 GD |
15338 | ac_save_LIBS="$LIBS" |
15339 | LIBS="-lw $LIBS" | |
15340 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15341 | #line 15342 "configure" |
10f2d63a | 15342 | #include "confdefs.h" |
4f14bcd8 GD |
15343 | /* Override any gcc2 internal prototype to avoid an error. */ |
15344 | /* We use char because int might match the return type of a gcc2 | |
15345 | builtin and then its argument prototype would still apply. */ | |
15346 | char wcslen(); | |
10f2d63a | 15347 | |
698dcdb6 | 15348 | int main() { |
4f14bcd8 | 15349 | wcslen() |
698dcdb6 VZ |
15350 | ; return 0; } |
15351 | EOF | |
d558c907 | 15352 | if { (eval echo configure:15353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15353 | rm -rf conftest* |
4f14bcd8 | 15354 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15355 | else |
698dcdb6 VZ |
15356 | echo "configure: failed program was:" >&5 |
15357 | cat conftest.$ac_ext >&5 | |
15358 | rm -rf conftest* | |
4f14bcd8 | 15359 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15360 | fi |
698dcdb6 | 15361 | rm -f conftest* |
4f14bcd8 | 15362 | LIBS="$ac_save_LIBS" |
703e0a69 | 15363 | |
1e487827 | 15364 | fi |
4f14bcd8 GD |
15365 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15366 | echo "$ac_t""yes" 1>&6 | |
15367 | ||
15368 | cat >> confdefs.h <<\EOF | |
15369 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
15370 | EOF |
15371 | ||
3d63bc3a | 15372 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
15373 | |
15374 | else | |
15375 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 15376 | |
4f14bcd8 | 15377 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
d558c907 | 15378 | echo "configure:15379: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
15379 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15380 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15381 | echo $ac_n "(cached) $ac_c" 1>&6 |
15382 | else | |
4f14bcd8 GD |
15383 | ac_save_LIBS="$LIBS" |
15384 | LIBS="-lmsvcrt $LIBS" | |
15385 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15386 | #line 15387 "configure" |
95c8801c | 15387 | #include "confdefs.h" |
4f14bcd8 GD |
15388 | /* Override any gcc2 internal prototype to avoid an error. */ |
15389 | /* We use char because int might match the return type of a gcc2 | |
15390 | builtin and then its argument prototype would still apply. */ | |
15391 | char wcslen(); | |
95c8801c | 15392 | |
4f14bcd8 GD |
15393 | int main() { |
15394 | wcslen() | |
698dcdb6 VZ |
15395 | ; return 0; } |
15396 | EOF | |
d558c907 | 15397 | if { (eval echo configure:15398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15398 | rm -rf conftest* |
4f14bcd8 | 15399 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15400 | else |
698dcdb6 VZ |
15401 | echo "configure: failed program was:" >&5 |
15402 | cat conftest.$ac_ext >&5 | |
15403 | rm -rf conftest* | |
4f14bcd8 | 15404 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15405 | fi |
698dcdb6 | 15406 | rm -f conftest* |
4f14bcd8 | 15407 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15408 | |
15409 | fi | |
4f14bcd8 GD |
15410 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15411 | echo "$ac_t""yes" 1>&6 | |
15412 | ||
15413 | cat >> confdefs.h <<\EOF | |
15414 | #define HAVE_WCSLEN 1 | |
15415 | EOF | |
698dcdb6 | 15416 | |
3d63bc3a | 15417 | WCHAR_LINK= |
4f14bcd8 GD |
15418 | |
15419 | else | |
15420 | echo "$ac_t""no" 1>&6 | |
15421 | fi | |
10f2d63a | 15422 | |
4f14bcd8 GD |
15423 | |
15424 | fi | |
95c8801c | 15425 | |
4f14bcd8 | 15426 | |
95c8801c | 15427 | fi |
10f2d63a | 15428 | |
1e487827 | 15429 | |
4f14bcd8 | 15430 | for ac_func in wcsrtombs |
eb4efbdc | 15431 | do |
698dcdb6 | 15432 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 15433 | echo "configure:15434: checking for $ac_func" >&5 |
698dcdb6 VZ |
15434 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15436 | else | |
15437 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15438 | #line 15439 "configure" |
eb4efbdc VZ |
15439 | #include "confdefs.h" |
15440 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15441 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15442 | #include <assert.h> |
15443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15444 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15445 | builtin and then its argument prototype would still apply. */ |
15446 | char $ac_func(); | |
15447 | ||
15448 | int main() { | |
eb4efbdc VZ |
15449 | |
15450 | /* The GNU C library defines this for functions which it implements | |
15451 | to always fail with ENOSYS. Some functions are actually named | |
15452 | something starting with __ and the normal name is an alias. */ | |
15453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15454 | choke me | |
15455 | #else | |
698dcdb6 | 15456 | $ac_func(); |
eb4efbdc VZ |
15457 | #endif |
15458 | ||
698dcdb6 | 15459 | ; return 0; } |
eb4efbdc | 15460 | EOF |
d558c907 | 15461 | if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15462 | rm -rf conftest* |
15463 | eval "ac_cv_func_$ac_func=yes" | |
15464 | else | |
15465 | echo "configure: failed program was:" >&5 | |
15466 | cat conftest.$ac_ext >&5 | |
15467 | rm -rf conftest* | |
15468 | eval "ac_cv_func_$ac_func=no" | |
15469 | fi | |
15470 | rm -f conftest* | |
15471 | fi | |
eb4efbdc | 15472 | |
698dcdb6 VZ |
15473 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15474 | echo "$ac_t""yes" 1>&6 | |
15475 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15476 | cat >> confdefs.h <<EOF | |
15477 | #define $ac_tr_func 1 | |
15478 | EOF | |
15479 | ||
15480 | else | |
15481 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15482 | fi |
15483 | done | |
15484 | ||
698dcdb6 | 15485 | |
4f14bcd8 | 15486 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
d558c907 | 15487 | echo "configure:15488: checking for vprintf" >&5 |
4f14bcd8 | 15488 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15489 | echo $ac_n "(cached) $ac_c" 1>&6 |
15490 | else | |
4f14bcd8 | 15491 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15492 | #line 15493 "configure" |
f6bcfd97 | 15493 | #include "confdefs.h" |
4f14bcd8 GD |
15494 | /* System header to define __stub macros and hopefully few prototypes, |
15495 | which can conflict with char vprintf(); below. */ | |
15496 | #include <assert.h> | |
15497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15498 | /* We use char because int might match the return type of a gcc2 | |
15499 | builtin and then its argument prototype would still apply. */ | |
15500 | char vprintf(); | |
15501 | ||
698dcdb6 | 15502 | int main() { |
f6bcfd97 | 15503 | |
4f14bcd8 GD |
15504 | /* The GNU C library defines this for functions which it implements |
15505 | to always fail with ENOSYS. Some functions are actually named | |
15506 | something starting with __ and the normal name is an alias. */ | |
15507 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15508 | choke me | |
15509 | #else | |
15510 | vprintf(); | |
15511 | #endif | |
f6bcfd97 | 15512 | |
698dcdb6 VZ |
15513 | ; return 0; } |
15514 | EOF | |
d558c907 | 15515 | if { (eval echo configure:15516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15516 | rm -rf conftest* |
4f14bcd8 | 15517 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15518 | else |
698dcdb6 VZ |
15519 | echo "configure: failed program was:" >&5 |
15520 | cat conftest.$ac_ext >&5 | |
15521 | rm -rf conftest* | |
4f14bcd8 | 15522 | eval "ac_cv_func_vprintf=no" |
6232543b | 15523 | fi |
698dcdb6 | 15524 | rm -f conftest* |
1e487827 | 15525 | fi |
698dcdb6 | 15526 | |
4f14bcd8 GD |
15527 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15528 | echo "$ac_t""yes" 1>&6 | |
15529 | cat >> confdefs.h <<\EOF | |
15530 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15531 | EOF |
15532 | ||
4f14bcd8 GD |
15533 | else |
15534 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15535 | fi |
15536 | ||
4f14bcd8 GD |
15537 | if test "$ac_cv_func_vprintf" != yes; then |
15538 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d558c907 | 15539 | echo "configure:15540: checking for _doprnt" >&5 |
4f14bcd8 | 15540 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15541 | echo $ac_n "(cached) $ac_c" 1>&6 |
15542 | else | |
15543 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15544 | #line 15545 "configure" |
10f2d63a VZ |
15545 | #include "confdefs.h" |
15546 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15547 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15548 | #include <assert.h> |
15549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15550 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15551 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15552 | char _doprnt(); |
698dcdb6 VZ |
15553 | |
15554 | int main() { | |
10f2d63a VZ |
15555 | |
15556 | /* The GNU C library defines this for functions which it implements | |
15557 | to always fail with ENOSYS. Some functions are actually named | |
15558 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15559 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15560 | choke me |
15561 | #else | |
4f14bcd8 | 15562 | _doprnt(); |
10f2d63a VZ |
15563 | #endif |
15564 | ||
698dcdb6 | 15565 | ; return 0; } |
10f2d63a | 15566 | EOF |
d558c907 | 15567 | if { (eval echo configure:15568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15568 | rm -rf conftest* |
4f14bcd8 | 15569 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15570 | else |
15571 | echo "configure: failed program was:" >&5 | |
15572 | cat conftest.$ac_ext >&5 | |
15573 | rm -rf conftest* | |
4f14bcd8 | 15574 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15575 | fi |
15576 | rm -f conftest* | |
15577 | fi | |
270a909e | 15578 | |
4f14bcd8 | 15579 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15580 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15581 | cat >> confdefs.h <<\EOF |
15582 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15583 | EOF |
4f14bcd8 | 15584 | |
698dcdb6 VZ |
15585 | else |
15586 | echo "$ac_t""no" 1>&6 | |
270a909e | 15587 | fi |
270a909e | 15588 | |
4f14bcd8 | 15589 | fi |
1e487827 | 15590 | |
52e8b690 | 15591 | |
52e8b690 | 15592 | |
52e8b690 | 15593 | |
52e8b690 | 15594 | |
52e8b690 | 15595 | |
4f14bcd8 | 15596 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
d558c907 | 15597 | echo "configure:15598: checking for vsnprintf" >&5 |
4f14bcd8 | 15598 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15599 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15600 | else |
4f14bcd8 | 15601 | |
af15babd | 15602 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15603 | #line 15604 "configure" |
c63c7106 | 15604 | #include "confdefs.h" |
698dcdb6 | 15605 | |
4f14bcd8 GD |
15606 | #include <stdio.h> |
15607 | #include <stdarg.h> | |
15608 | ||
af15babd VZ |
15609 | int main() { |
15610 | ||
4f14bcd8 GD |
15611 | int wx_test_vsnprintf(const char *, ...); |
15612 | ||
15613 | wx_test_vsnprintf("%s"); | |
15614 | return 0; | |
15615 | } | |
15616 | ||
15617 | int wx_test_vsnprintf(const char *fmt, ...) | |
15618 | { | |
15619 | char *s; | |
15620 | ||
15621 | va_list argp; | |
15622 | va_start(argp, fmt); | |
15623 | vsnprintf(s, 42, fmt, argp); | |
15624 | va_end(argp); | |
15625 | ||
af15babd VZ |
15626 | ; return 0; } |
15627 | EOF | |
d558c907 | 15628 | if { (eval echo configure:15629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15629 | rm -rf conftest* |
15630 | ||
4f14bcd8 GD |
15631 | wx_cv_func_vsnprintf=yes |
15632 | ||
af15babd VZ |
15633 | else |
15634 | echo "configure: failed program was:" >&5 | |
15635 | cat conftest.$ac_ext >&5 | |
15636 | rm -rf conftest* | |
15637 | ||
4f14bcd8 | 15638 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15639 | #line 15640 "configure" |
af15babd | 15640 | #include "confdefs.h" |
af15babd | 15641 | |
4f14bcd8 GD |
15642 | #include <stdio.h> |
15643 | #include <stdarg.h> | |
15644 | ||
af15babd VZ |
15645 | int main() { |
15646 | ||
4f14bcd8 GD |
15647 | int wx_test_vsnprintf(const char *, ...); |
15648 | ||
15649 | wx_test_vsnprintf("%s"); | |
15650 | return 0; | |
15651 | } | |
15652 | ||
15653 | int wx_test_vsnprintf(const char *fmt, ...) | |
15654 | { | |
15655 | char *s; | |
af15babd | 15656 | |
4f14bcd8 GD |
15657 | va_list argp; |
15658 | va_start(argp, fmt); | |
15659 | _vsnprintf(s, 42, fmt, argp); | |
15660 | va_end(argp); | |
15661 | ||
af15babd VZ |
15662 | ; return 0; } |
15663 | EOF | |
d558c907 | 15664 | if { (eval echo configure:15665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15665 | rm -rf conftest* |
4f14bcd8 GD |
15666 | |
15667 | wx_cv_func_vsnprintf=yes | |
15668 | ||
af15babd VZ |
15669 | else |
15670 | echo "configure: failed program was:" >&5 | |
15671 | cat conftest.$ac_ext >&5 | |
15672 | rm -rf conftest* | |
4f14bcd8 GD |
15673 | |
15674 | wx_cv_func_vsnprintf=no | |
15675 | ||
af15babd VZ |
15676 | fi |
15677 | rm -f conftest* | |
4f14bcd8 | 15678 | |
af15babd | 15679 | fi |
4f14bcd8 | 15680 | rm -f conftest* |
af15babd | 15681 | |
af15babd | 15682 | fi |
af15babd | 15683 | |
4f14bcd8 | 15684 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15685 | |
4f14bcd8 GD |
15686 | if test "$wx_cv_func_vsnprintf" = yes; then |
15687 | cat >> confdefs.h <<\EOF | |
15688 | #define HAVE_VSNPRINTF 1 | |
15689 | EOF | |
15690 | ||
15691 | else | |
f9bc1684 | 15692 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15693 | fi |
15694 | ||
4f14bcd8 | 15695 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
d558c907 | 15696 | echo "configure:15697: checking for vsscanf" >&5 |
4f14bcd8 | 15697 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15698 | echo $ac_n "(cached) $ac_c" 1>&6 |
15699 | else | |
4f14bcd8 | 15700 | |
af15babd | 15701 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15702 | #line 15703 "configure" |
af15babd | 15703 | #include "confdefs.h" |
af15babd | 15704 | |
4f14bcd8 GD |
15705 | #include <stdio.h> |
15706 | #include <stdarg.h> | |
15707 | ||
af15babd VZ |
15708 | int main() { |
15709 | ||
4f14bcd8 GD |
15710 | int wx_test_vsscanf(const char *, ...); |
15711 | ||
15712 | wx_test_vsscanf("%d"); | |
15713 | return 0; | |
15714 | } | |
af15babd | 15715 | |
4f14bcd8 GD |
15716 | int wx_test_vsscanf(const char *fmt, ...) |
15717 | { | |
15718 | va_list argp; | |
15719 | va_start(argp, fmt); | |
15720 | vsscanf("42", fmt, argp); | |
15721 | va_end(argp); | |
15722 | ||
af15babd VZ |
15723 | ; return 0; } |
15724 | EOF | |
d558c907 | 15725 | if { (eval echo configure:15726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15726 | rm -rf conftest* |
4f14bcd8 GD |
15727 | |
15728 | wx_cv_func_vsscanf=yes | |
15729 | ||
af15babd VZ |
15730 | else |
15731 | echo "configure: failed program was:" >&5 | |
15732 | cat conftest.$ac_ext >&5 | |
15733 | rm -rf conftest* | |
4f14bcd8 GD |
15734 | |
15735 | wx_cv_func_vsscanf=no | |
15736 | ||
af15babd VZ |
15737 | fi |
15738 | rm -f conftest* | |
4f14bcd8 | 15739 | |
af15babd VZ |
15740 | fi |
15741 | ||
4f14bcd8 GD |
15742 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15743 | ||
15744 | if test "$wx_cv_func_vsscanf" = yes; then | |
15745 | cat >> confdefs.h <<\EOF | |
15746 | #define HAVE_VSSCANF 1 | |
af15babd | 15747 | EOF |
4f14bcd8 | 15748 | |
af15babd | 15749 | fi |
af15babd | 15750 | |
4f14bcd8 | 15751 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15752 | |
4f14bcd8 GD |
15753 | |
15754 | ||
15755 | ac_ext=C | |
15756 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15757 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15758 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15759 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15760 | cross_compiling=$ac_cv_prog_cxx_cross | |
15761 | ||
b040e242 VS |
15762 | |
15763 | ||
15764 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15765 | if test "${with_libiconv_prefix+set}" = set; then | |
15766 | withval="$with_libiconv_prefix" | |
15767 | ||
15768 | for dir in `echo "$withval" | tr : ' '`; do | |
15769 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15770 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15771 | done | |
15772 | ||
15773 | fi | |
15774 | ||
15775 | ||
15776 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
d558c907 | 15777 | echo "configure:15778: checking for iconv" >&5 |
b040e242 | 15778 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15779 | echo $ac_n "(cached) $ac_c" 1>&6 |
15780 | else | |
4f14bcd8 | 15781 | |
b040e242 VS |
15782 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15783 | am_cv_lib_iconv=no | |
4f14bcd8 | 15784 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15785 | #line 15786 "configure" |
af15babd | 15786 | #include "confdefs.h" |
b040e242 | 15787 | #include <stdlib.h> |
4f14bcd8 | 15788 | #include <iconv.h> |
af15babd | 15789 | int main() { |
b040e242 VS |
15790 | iconv_t cd = iconv_open("",""); |
15791 | iconv(cd,NULL,NULL,NULL,NULL); | |
15792 | iconv_close(cd); | |
af15babd VZ |
15793 | ; return 0; } |
15794 | EOF | |
d558c907 | 15795 | if { (eval echo configure:15796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15796 | rm -rf conftest* |
b040e242 | 15797 | am_cv_func_iconv=yes |
af15babd VZ |
15798 | else |
15799 | echo "configure: failed program was:" >&5 | |
15800 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15801 | fi |
15802 | rm -f conftest* | |
15803 | if test "$am_cv_func_iconv" != yes; then | |
15804 | am_save_LIBS="$LIBS" | |
15805 | LIBS="$LIBS -liconv" | |
15806 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15807 | #line 15808 "configure" |
b040e242 VS |
15808 | #include "confdefs.h" |
15809 | #include <stdlib.h> | |
15810 | #include <iconv.h> | |
15811 | int main() { | |
15812 | iconv_t cd = iconv_open("",""); | |
15813 | iconv(cd,NULL,NULL,NULL,NULL); | |
15814 | iconv_close(cd); | |
15815 | ; return 0; } | |
15816 | EOF | |
d558c907 | 15817 | if { (eval echo configure:15818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15818 | rm -rf conftest* |
b040e242 VS |
15819 | am_cv_lib_iconv=yes |
15820 | am_cv_func_iconv=yes | |
15821 | else | |
15822 | echo "configure: failed program was:" >&5 | |
15823 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15824 | fi |
15825 | rm -f conftest* | |
b040e242 VS |
15826 | LIBS="$am_save_LIBS" |
15827 | fi | |
15828 | ||
15829 | fi | |
15830 | ||
15831 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15832 | if test "$am_cv_func_iconv" = yes; then | |
15833 | cat >> confdefs.h <<\EOF | |
15834 | #define HAVE_ICONV 1 | |
15835 | EOF | |
15836 | ||
b7043674 | 15837 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
d558c907 | 15838 | echo "configure:15839: checking if iconv needs const" >&5 |
b7043674 | 15839 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15840 | echo $ac_n "(cached) $ac_c" 1>&6 |
15841 | else | |
b7043674 | 15842 | cat > conftest.$ac_ext <<EOF |
d558c907 | 15843 | #line 15844 "configure" |
b040e242 VS |
15844 | #include "confdefs.h" |
15845 | ||
15846 | #include <stdlib.h> | |
15847 | #include <iconv.h> | |
15848 | extern | |
15849 | #ifdef __cplusplus | |
15850 | "C" | |
15851 | #endif | |
15852 | #if defined(__STDC__) || defined(__cplusplus) | |
15853 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15854 | #else | |
15855 | size_t iconv(); | |
15856 | #endif | |
b7043674 | 15857 | |
b040e242 | 15858 | int main() { |
af15babd | 15859 | |
b040e242 VS |
15860 | ; return 0; } |
15861 | EOF | |
d558c907 | 15862 | if { (eval echo configure:15863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15863 | rm -rf conftest* |
b7043674 | 15864 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15865 | else |
15866 | echo "configure: failed program was:" >&5 | |
15867 | cat conftest.$ac_ext >&5 | |
15868 | rm -rf conftest* | |
b7043674 VZ |
15869 | wx_cv_func_iconv_const="yes" |
15870 | ||
b040e242 VS |
15871 | fi |
15872 | rm -f conftest* | |
b7043674 | 15873 | |
af15babd | 15874 | fi |
af15babd | 15875 | |
b7043674 VZ |
15876 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15877 | ||
15878 | iconv_const= | |
1c405bb5 | 15879 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15880 | iconv_const="const" |
15881 | fi | |
15882 | ||
b040e242 | 15883 | cat >> confdefs.h <<EOF |
b7043674 | 15884 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15885 | EOF |
15886 | ||
15887 | fi | |
15888 | LIBICONV= | |
15889 | if test "$am_cv_lib_iconv" = yes; then | |
15890 | LIBICONV="-liconv" | |
15891 | fi | |
15892 | ||
15893 | ||
15894 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15895 | ac_ext=c |
15896 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15897 | ac_cpp='$CPP $CPPFLAGS' | |
15898 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15899 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15900 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15901 | |
af15babd | 15902 | |
4f14bcd8 GD |
15903 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15904 | for ac_func in sigaction | |
af15babd VZ |
15905 | do |
15906 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 15907 | echo "configure:15908: checking for $ac_func" >&5 |
af15babd VZ |
15908 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15910 | else | |
15911 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15912 | #line 15913 "configure" |
af15babd VZ |
15913 | #include "confdefs.h" |
15914 | /* System header to define __stub macros and hopefully few prototypes, | |
15915 | which can conflict with char $ac_func(); below. */ | |
15916 | #include <assert.h> | |
15917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15918 | /* We use char because int might match the return type of a gcc2 | |
15919 | builtin and then its argument prototype would still apply. */ | |
15920 | char $ac_func(); | |
15921 | ||
15922 | int main() { | |
15923 | ||
15924 | /* The GNU C library defines this for functions which it implements | |
15925 | to always fail with ENOSYS. Some functions are actually named | |
15926 | something starting with __ and the normal name is an alias. */ | |
15927 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15928 | choke me | |
15929 | #else | |
15930 | $ac_func(); | |
15931 | #endif | |
15932 | ||
15933 | ; return 0; } | |
15934 | EOF | |
d558c907 | 15935 | if { (eval echo configure:15936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15936 | rm -rf conftest* |
15937 | eval "ac_cv_func_$ac_func=yes" | |
15938 | else | |
15939 | echo "configure: failed program was:" >&5 | |
15940 | cat conftest.$ac_ext >&5 | |
15941 | rm -rf conftest* | |
15942 | eval "ac_cv_func_$ac_func=no" | |
15943 | fi | |
15944 | rm -f conftest* | |
15945 | fi | |
15946 | ||
15947 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15948 | echo "$ac_t""yes" 1>&6 | |
15949 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15950 | cat >> confdefs.h <<EOF | |
15951 | #define $ac_tr_func 1 | |
15952 | EOF | |
4f14bcd8 | 15953 | |
af15babd VZ |
15954 | else |
15955 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15956 | fi |
15957 | done | |
15958 | ||
15959 | ||
15960 | if test "$ac_cv_func_sigaction" = "no"; then | |
15961 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15962 | wxUSE_ON_FATAL_EXCEPTION=no | |
15963 | fi | |
15964 | ||
15965 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15966 | ||
15967 | ac_ext=C | |
15968 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15969 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15970 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15971 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15972 | cross_compiling=$ac_cv_prog_cxx_cross | |
15973 | ||
15974 | ||
15975 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
d558c907 | 15976 | echo "configure:15977: checking for sa_handler type" >&5 |
4f14bcd8 | 15977 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15978 | echo $ac_n "(cached) $ac_c" 1>&6 |
15979 | else | |
4f14bcd8 GD |
15980 | |
15981 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 15982 | #line 15983 "configure" |
af15babd | 15983 | #include "confdefs.h" |
4f14bcd8 | 15984 | #include <signal.h> |
af15babd | 15985 | int main() { |
4f14bcd8 GD |
15986 | |
15987 | extern void testSigHandler(int); | |
15988 | ||
15989 | struct sigaction sa; | |
15990 | sa.sa_handler = testSigHandler; | |
15991 | ||
af15babd VZ |
15992 | ; return 0; } |
15993 | EOF | |
d558c907 | 15994 | if { (eval echo configure:15995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15995 | rm -rf conftest* |
4f14bcd8 GD |
15996 | |
15997 | wx_cv_type_sa_handler=int | |
15998 | ||
af15babd VZ |
15999 | else |
16000 | echo "configure: failed program was:" >&5 | |
16001 | cat conftest.$ac_ext >&5 | |
16002 | rm -rf conftest* | |
4f14bcd8 GD |
16003 | |
16004 | wx_cv_type_sa_handler=void | |
16005 | ||
af15babd VZ |
16006 | fi |
16007 | rm -f conftest* | |
4f14bcd8 GD |
16008 | |
16009 | fi | |
16010 | ||
16011 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16012 | ||
16013 | ac_ext=c | |
16014 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16015 | ac_cpp='$CPP $CPPFLAGS' | |
16016 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16017 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16018 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16019 | |
4f14bcd8 GD |
16020 | |
16021 | cat >> confdefs.h <<EOF | |
16022 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16023 | EOF |
16024 | ||
4f14bcd8 GD |
16025 | fi |
16026 | fi | |
af15babd | 16027 | |
4f14bcd8 | 16028 | for ac_func in vfork |
af15babd VZ |
16029 | do |
16030 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16031 | echo "configure:16032: checking for $ac_func" >&5 |
af15babd VZ |
16032 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16034 | else | |
16035 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16036 | #line 16037 "configure" |
af15babd VZ |
16037 | #include "confdefs.h" |
16038 | /* System header to define __stub macros and hopefully few prototypes, | |
16039 | which can conflict with char $ac_func(); below. */ | |
16040 | #include <assert.h> | |
16041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16042 | /* We use char because int might match the return type of a gcc2 | |
16043 | builtin and then its argument prototype would still apply. */ | |
16044 | char $ac_func(); | |
16045 | ||
16046 | int main() { | |
16047 | ||
16048 | /* The GNU C library defines this for functions which it implements | |
16049 | to always fail with ENOSYS. Some functions are actually named | |
16050 | something starting with __ and the normal name is an alias. */ | |
16051 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16052 | choke me | |
16053 | #else | |
16054 | $ac_func(); | |
16055 | #endif | |
16056 | ||
16057 | ; return 0; } | |
16058 | EOF | |
d558c907 | 16059 | if { (eval echo configure:16060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16060 | rm -rf conftest* |
16061 | eval "ac_cv_func_$ac_func=yes" | |
16062 | else | |
16063 | echo "configure: failed program was:" >&5 | |
16064 | cat conftest.$ac_ext >&5 | |
16065 | rm -rf conftest* | |
16066 | eval "ac_cv_func_$ac_func=no" | |
16067 | fi | |
16068 | rm -f conftest* | |
16069 | fi | |
16070 | ||
16071 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16072 | echo "$ac_t""yes" 1>&6 | |
16073 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16074 | cat >> confdefs.h <<EOF | |
16075 | #define $ac_tr_func 1 | |
16076 | EOF | |
4f14bcd8 | 16077 | |
af15babd VZ |
16078 | else |
16079 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16080 | fi |
16081 | done | |
16082 | ||
af15babd | 16083 | |
ade35f11 VZ |
16084 | for ac_func in mkstemp mktemp |
16085 | do | |
16086 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16087 | echo "configure:16088: checking for $ac_func" >&5 |
ade35f11 VZ |
16088 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16090 | else | |
16091 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16092 | #line 16093 "configure" |
ade35f11 VZ |
16093 | #include "confdefs.h" |
16094 | /* System header to define __stub macros and hopefully few prototypes, | |
16095 | which can conflict with char $ac_func(); below. */ | |
16096 | #include <assert.h> | |
16097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16098 | /* We use char because int might match the return type of a gcc2 | |
16099 | builtin and then its argument prototype would still apply. */ | |
16100 | char $ac_func(); | |
16101 | ||
16102 | int main() { | |
16103 | ||
16104 | /* The GNU C library defines this for functions which it implements | |
16105 | to always fail with ENOSYS. Some functions are actually named | |
16106 | something starting with __ and the normal name is an alias. */ | |
16107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16108 | choke me | |
16109 | #else | |
16110 | $ac_func(); | |
16111 | #endif | |
16112 | ||
16113 | ; return 0; } | |
16114 | EOF | |
d558c907 | 16115 | if { (eval echo configure:16116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16116 | rm -rf conftest* |
16117 | eval "ac_cv_func_$ac_func=yes" | |
16118 | else | |
16119 | echo "configure: failed program was:" >&5 | |
16120 | cat conftest.$ac_ext >&5 | |
16121 | rm -rf conftest* | |
16122 | eval "ac_cv_func_$ac_func=no" | |
16123 | fi | |
16124 | rm -f conftest* | |
16125 | fi | |
16126 | ||
16127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16128 | echo "$ac_t""yes" 1>&6 | |
16129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16130 | cat >> confdefs.h <<EOF | |
16131 | #define $ac_tr_func 1 | |
16132 | EOF | |
16133 | break | |
16134 | else | |
16135 | echo "$ac_t""no" 1>&6 | |
16136 | fi | |
16137 | done | |
16138 | ||
16139 | ||
4f14bcd8 | 16140 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
d558c907 | 16141 | echo "configure:16142: checking for statfs" >&5 |
4f14bcd8 GD |
16142 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16144 | else | |
16145 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16146 | #line 16147 "configure" |
4f14bcd8 GD |
16147 | #include "confdefs.h" |
16148 | ||
16149 | #if defined(__BSD__) | |
16150 | #include <sys/param.h> | |
16151 | #include <sys/mount.h> | |
16152 | #else | |
16153 | #include <sys/vfs.h> | |
16154 | #endif | |
16155 | ||
16156 | int main() { | |
16157 | ||
16158 | long l; | |
16159 | struct statfs fs; | |
16160 | statfs("/", &fs); | |
16161 | l = fs.f_bsize; | |
16162 | l += fs.f_blocks; | |
16163 | l += fs.f_bavail; | |
16164 | ||
16165 | ; return 0; } | |
16166 | EOF | |
d558c907 | 16167 | if { (eval echo configure:16168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16168 | rm -rf conftest* |
16169 | ||
16170 | wx_cv_func_statfs=yes | |
16171 | ||
16172 | else | |
16173 | echo "configure: failed program was:" >&5 | |
16174 | cat conftest.$ac_ext >&5 | |
16175 | rm -rf conftest* | |
16176 | ||
16177 | wx_cv_func_statfs=no | |
af15babd VZ |
16178 | |
16179 | ||
16180 | fi | |
4f14bcd8 | 16181 | rm -f conftest* |
af15babd VZ |
16182 | |
16183 | fi | |
16184 | ||
4f14bcd8 GD |
16185 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16186 | ||
16187 | if test "$wx_cv_func_statfs" = "yes"; then | |
16188 | cat >> confdefs.h <<\EOF | |
16189 | #define HAVE_STATFS 1 | |
16190 | EOF | |
16191 | ||
16192 | else | |
16193 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
d558c907 | 16194 | echo "configure:16195: checking for statvfs" >&5 |
4f14bcd8 | 16195 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16196 | echo $ac_n "(cached) $ac_c" 1>&6 |
16197 | else | |
16198 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16199 | #line 16200 "configure" |
af15babd | 16200 | #include "confdefs.h" |
af15babd | 16201 | |
4f14bcd8 GD |
16202 | #include <sys/statvfs.h> |
16203 | ||
af15babd VZ |
16204 | int main() { |
16205 | ||
4f14bcd8 GD |
16206 | long l; |
16207 | struct statvfs fs; | |
16208 | statvfs("/", &fs); | |
16209 | l = fs.f_bsize; | |
16210 | l += fs.f_blocks; | |
16211 | l += fs.f_bavail; | |
16212 | ||
af15babd VZ |
16213 | ; return 0; } |
16214 | EOF | |
d558c907 | 16215 | if { (eval echo configure:16216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16216 | rm -rf conftest* |
4f14bcd8 GD |
16217 | |
16218 | wx_cv_func_statvfs=yes | |
16219 | ||
af15babd VZ |
16220 | else |
16221 | echo "configure: failed program was:" >&5 | |
16222 | cat conftest.$ac_ext >&5 | |
16223 | rm -rf conftest* | |
4f14bcd8 GD |
16224 | |
16225 | wx_cv_func_statvfs=no | |
16226 | ||
16227 | ||
af15babd VZ |
16228 | fi |
16229 | rm -f conftest* | |
4f14bcd8 | 16230 | |
af15babd VZ |
16231 | fi |
16232 | ||
4f14bcd8 | 16233 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16234 | |
4f14bcd8 GD |
16235 | if test "$wx_cv_func_statvfs" = "yes"; then |
16236 | cat >> confdefs.h <<\EOF | |
16237 | #define HAVE_STATVFS 1 | |
16238 | EOF | |
af15babd | 16239 | |
4f14bcd8 GD |
16240 | else |
16241 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16242 | fi | |
16243 | fi | |
af15babd | 16244 | |
4f14bcd8 GD |
16245 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16246 | for ac_func in fcntl flock | |
af15babd VZ |
16247 | do |
16248 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16249 | echo "configure:16250: checking for $ac_func" >&5 |
af15babd VZ |
16250 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16252 | else | |
16253 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16254 | #line 16255 "configure" |
af15babd VZ |
16255 | #include "confdefs.h" |
16256 | /* System header to define __stub macros and hopefully few prototypes, | |
16257 | which can conflict with char $ac_func(); below. */ | |
16258 | #include <assert.h> | |
16259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16260 | /* We use char because int might match the return type of a gcc2 |
16261 | builtin and then its argument prototype would still apply. */ | |
16262 | char $ac_func(); | |
16263 | ||
16264 | int main() { | |
16265 | ||
16266 | /* The GNU C library defines this for functions which it implements | |
16267 | to always fail with ENOSYS. Some functions are actually named | |
16268 | something starting with __ and the normal name is an alias. */ | |
16269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16270 | choke me | |
16271 | #else | |
16272 | $ac_func(); | |
16273 | #endif | |
16274 | ||
16275 | ; return 0; } | |
16276 | EOF | |
d558c907 | 16277 | if { (eval echo configure:16278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16278 | rm -rf conftest* |
16279 | eval "ac_cv_func_$ac_func=yes" | |
16280 | else | |
16281 | echo "configure: failed program was:" >&5 | |
16282 | cat conftest.$ac_ext >&5 | |
16283 | rm -rf conftest* | |
16284 | eval "ac_cv_func_$ac_func=no" | |
16285 | fi | |
16286 | rm -f conftest* | |
16287 | fi | |
16288 | ||
16289 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16290 | echo "$ac_t""yes" 1>&6 | |
16291 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16292 | cat >> confdefs.h <<EOF | |
16293 | #define $ac_tr_func 1 | |
16294 | EOF | |
4f14bcd8 | 16295 | break |
af15babd VZ |
16296 | else |
16297 | echo "$ac_t""no" 1>&6 | |
16298 | fi | |
16299 | done | |
16300 | ||
16301 | ||
4f14bcd8 GD |
16302 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16303 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16304 | wxUSE_SNGLINST_CHECKER=no | |
16305 | fi | |
16306 | fi | |
af15babd | 16307 | |
4f14bcd8 | 16308 | for ac_func in timegm |
af15babd VZ |
16309 | do |
16310 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16311 | echo "configure:16312: checking for $ac_func" >&5 |
af15babd VZ |
16312 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16314 | else | |
16315 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16316 | #line 16317 "configure" |
af15babd VZ |
16317 | #include "confdefs.h" |
16318 | /* System header to define __stub macros and hopefully few prototypes, | |
16319 | which can conflict with char $ac_func(); below. */ | |
16320 | #include <assert.h> | |
16321 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16322 | /* We use char because int might match the return type of a gcc2 | |
16323 | builtin and then its argument prototype would still apply. */ | |
16324 | char $ac_func(); | |
16325 | ||
698dcdb6 | 16326 | int main() { |
698dcdb6 | 16327 | |
af15babd VZ |
16328 | /* The GNU C library defines this for functions which it implements |
16329 | to always fail with ENOSYS. Some functions are actually named | |
16330 | something starting with __ and the normal name is an alias. */ | |
16331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16332 | choke me | |
16333 | #else | |
16334 | $ac_func(); | |
16335 | #endif | |
16336 | ||
698dcdb6 VZ |
16337 | ; return 0; } |
16338 | EOF | |
d558c907 | 16339 | if { (eval echo configure:16340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16340 | rm -rf conftest* |
af15babd | 16341 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16342 | else |
16343 | echo "configure: failed program was:" >&5 | |
16344 | cat conftest.$ac_ext >&5 | |
16345 | rm -rf conftest* | |
af15babd | 16346 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16347 | fi |
9952adac | 16348 | rm -f conftest* |
af15babd | 16349 | fi |
703e0a69 | 16350 | |
af15babd VZ |
16351 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16352 | echo "$ac_t""yes" 1>&6 | |
16353 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16354 | cat >> confdefs.h <<EOF |
16355 | #define $ac_tr_func 1 | |
16356 | EOF | |
16357 | ||
16358 | else | |
16359 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16360 | fi |
16361 | done | |
16362 | ||
16363 | ||
4f14bcd8 | 16364 | for ac_func in putenv setenv |
10f2d63a | 16365 | do |
698dcdb6 | 16366 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 16367 | echo "configure:16368: checking for $ac_func" >&5 |
698dcdb6 VZ |
16368 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16370 | else | |
16371 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16372 | #line 16373 "configure" |
af15babd VZ |
16373 | #include "confdefs.h" |
16374 | /* System header to define __stub macros and hopefully few prototypes, | |
16375 | which can conflict with char $ac_func(); below. */ | |
16376 | #include <assert.h> | |
16377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16378 | /* We use char because int might match the return type of a gcc2 | |
16379 | builtin and then its argument prototype would still apply. */ | |
16380 | char $ac_func(); | |
16381 | ||
16382 | int main() { | |
16383 | ||
16384 | /* The GNU C library defines this for functions which it implements | |
16385 | to always fail with ENOSYS. Some functions are actually named | |
16386 | something starting with __ and the normal name is an alias. */ | |
16387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16388 | choke me | |
16389 | #else | |
16390 | $ac_func(); | |
16391 | #endif | |
16392 | ||
16393 | ; return 0; } | |
16394 | EOF | |
d558c907 | 16395 | if { (eval echo configure:16396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16396 | rm -rf conftest* |
16397 | eval "ac_cv_func_$ac_func=yes" | |
16398 | else | |
16399 | echo "configure: failed program was:" >&5 | |
16400 | cat conftest.$ac_ext >&5 | |
16401 | rm -rf conftest* | |
16402 | eval "ac_cv_func_$ac_func=no" | |
16403 | fi | |
16404 | rm -f conftest* | |
16405 | fi | |
16406 | ||
16407 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16408 | echo "$ac_t""yes" 1>&6 | |
16409 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16410 | cat >> confdefs.h <<EOF | |
16411 | #define $ac_tr_func 1 | |
16412 | EOF | |
4f14bcd8 | 16413 | break |
af15babd VZ |
16414 | else |
16415 | echo "$ac_t""no" 1>&6 | |
16416 | fi | |
af15babd VZ |
16417 | done |
16418 | ||
16419 | ||
4f14bcd8 GD |
16420 | HAVE_SOME_SLEEP_FUNC=0 |
16421 | if test "$USE_BEOS" = 1; then | |
16422 | cat >> confdefs.h <<\EOF | |
16423 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16424 | EOF |
16425 | ||
4f14bcd8 | 16426 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16427 | fi |
16428 | ||
4f14bcd8 GD |
16429 | if test "$USE_DARWIN" = 1; then |
16430 | cat >> confdefs.h <<\EOF | |
16431 | #define HAVE_USLEEP 1 | |
af15babd | 16432 | EOF |
10f2d63a | 16433 | |
4f14bcd8 | 16434 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16435 | fi |
16436 | ||
4f14bcd8 GD |
16437 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16438 | POSIX4_LINK= | |
16439 | for ac_func in nanosleep | |
16440 | do | |
16441 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16442 | echo "configure:16443: checking for $ac_func" >&5 |
4f14bcd8 | 16443 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16444 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16445 | else |
4f14bcd8 | 16446 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16447 | #line 16448 "configure" |
10f2d63a | 16448 | #include "confdefs.h" |
4f14bcd8 GD |
16449 | /* System header to define __stub macros and hopefully few prototypes, |
16450 | which can conflict with char $ac_func(); below. */ | |
16451 | #include <assert.h> | |
10f2d63a VZ |
16452 | /* Override any gcc2 internal prototype to avoid an error. */ |
16453 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16454 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16455 | char $ac_func(); |
698dcdb6 VZ |
16456 | |
16457 | int main() { | |
4f14bcd8 GD |
16458 | |
16459 | /* The GNU C library defines this for functions which it implements | |
16460 | to always fail with ENOSYS. Some functions are actually named | |
16461 | something starting with __ and the normal name is an alias. */ | |
16462 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16463 | choke me | |
16464 | #else | |
16465 | $ac_func(); | |
16466 | #endif | |
16467 | ||
698dcdb6 VZ |
16468 | ; return 0; } |
16469 | EOF | |
d558c907 | 16470 | if { (eval echo configure:16471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16471 | rm -rf conftest* |
4f14bcd8 | 16472 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16473 | else |
16474 | echo "configure: failed program was:" >&5 | |
16475 | cat conftest.$ac_ext >&5 | |
16476 | rm -rf conftest* | |
4f14bcd8 | 16477 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16478 | fi |
16479 | rm -f conftest* | |
698dcdb6 | 16480 | fi |
4f14bcd8 GD |
16481 | |
16482 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16483 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16484 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16485 | cat >> confdefs.h <<EOF | |
16486 | #define $ac_tr_func 1 | |
16487 | EOF | |
16488 | cat >> confdefs.h <<\EOF | |
16489 | #define HAVE_NANOSLEEP 1 | |
16490 | EOF | |
16491 | ||
10f2d63a | 16492 | else |
698dcdb6 | 16493 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16494 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
d558c907 | 16495 | echo "configure:16496: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16496 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16497 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16499 | else |
698dcdb6 | 16500 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16501 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16502 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16503 | #line 16504 "configure" |
10f2d63a VZ |
16504 | #include "confdefs.h" |
16505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16506 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16507 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16508 | char nanosleep(); |
698dcdb6 VZ |
16509 | |
16510 | int main() { | |
4f14bcd8 | 16511 | nanosleep() |
698dcdb6 VZ |
16512 | ; return 0; } |
16513 | EOF | |
d558c907 | 16514 | if { (eval echo configure:16515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16515 | rm -rf conftest* |
16516 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16517 | else | |
16518 | echo "configure: failed program was:" >&5 | |
16519 | cat conftest.$ac_ext >&5 | |
16520 | rm -rf conftest* | |
16521 | eval "ac_cv_lib_$ac_lib_var=no" | |
16522 | fi | |
16523 | rm -f conftest* | |
16524 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16525 | |
698dcdb6 VZ |
16526 | fi |
16527 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16528 | echo "$ac_t""yes" 1>&6 | |
16529 | ||
4f14bcd8 GD |
16530 | cat >> confdefs.h <<\EOF |
16531 | #define HAVE_NANOSLEEP 1 | |
16532 | EOF | |
16533 | ||
3d63bc3a | 16534 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16535 | |
10f2d63a | 16536 | else |
698dcdb6 | 16537 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16538 | |
4f14bcd8 GD |
16539 | for ac_func in usleep |
16540 | do | |
16541 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16542 | echo "configure:16543: checking for $ac_func" >&5 |
4f14bcd8 | 16543 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16544 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16545 | else |
698dcdb6 | 16546 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16547 | #line 16548 "configure" |
10f2d63a | 16548 | #include "confdefs.h" |
4f14bcd8 GD |
16549 | /* System header to define __stub macros and hopefully few prototypes, |
16550 | which can conflict with char $ac_func(); below. */ | |
16551 | #include <assert.h> | |
16552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16553 | /* We use char because int might match the return type of a gcc2 | |
16554 | builtin and then its argument prototype would still apply. */ | |
16555 | char $ac_func(); | |
16556 | ||
16557 | int main() { | |
16558 | ||
16559 | /* The GNU C library defines this for functions which it implements | |
16560 | to always fail with ENOSYS. Some functions are actually named | |
16561 | something starting with __ and the normal name is an alias. */ | |
16562 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16563 | choke me | |
16564 | #else | |
16565 | $ac_func(); | |
16566 | #endif | |
16567 | ||
16568 | ; return 0; } | |
698dcdb6 | 16569 | EOF |
d558c907 | 16570 | if { (eval echo configure:16571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16571 | rm -rf conftest* |
4f14bcd8 | 16572 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16573 | else |
698dcdb6 | 16574 | echo "configure: failed program was:" >&5 |
10f2d63a | 16575 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16576 | rm -rf conftest* |
4f14bcd8 | 16577 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16578 | fi |
698dcdb6 | 16579 | rm -f conftest* |
10f2d63a | 16580 | fi |
4f14bcd8 GD |
16581 | |
16582 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16583 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16584 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16585 | cat >> confdefs.h <<EOF | |
16586 | #define $ac_tr_func 1 | |
16587 | EOF | |
16588 | cat >> confdefs.h <<\EOF | |
16589 | #define HAVE_USLEEP 1 | |
16590 | EOF | |
16591 | ||
698dcdb6 VZ |
16592 | else |
16593 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16594 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16595 | ||
10f2d63a | 16596 | fi |
4f14bcd8 | 16597 | done |
10f2d63a | 16598 | |
4f14bcd8 | 16599 | |
698dcdb6 | 16600 | |
6232543b | 16601 | fi |
10f2d63a | 16602 | |
698dcdb6 | 16603 | |
4f14bcd8 | 16604 | |
1e487827 | 16605 | fi |
4f14bcd8 | 16606 | done |
703e0a69 | 16607 | |
10f2d63a VZ |
16608 | fi |
16609 | ||
4f14bcd8 | 16610 | for ac_func in uname gethostname |
70846f0a | 16611 | do |
698dcdb6 | 16612 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 16613 | echo "configure:16614: checking for $ac_func" >&5 |
698dcdb6 VZ |
16614 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16615 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16616 | else | |
16617 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16618 | #line 16619 "configure" |
70846f0a VZ |
16619 | #include "confdefs.h" |
16620 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16621 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16622 | #include <assert.h> |
16623 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16624 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16625 | builtin and then its argument prototype would still apply. */ |
16626 | char $ac_func(); | |
16627 | ||
16628 | int main() { | |
70846f0a VZ |
16629 | |
16630 | /* The GNU C library defines this for functions which it implements | |
16631 | to always fail with ENOSYS. Some functions are actually named | |
16632 | something starting with __ and the normal name is an alias. */ | |
16633 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16634 | choke me | |
16635 | #else | |
698dcdb6 | 16636 | $ac_func(); |
70846f0a VZ |
16637 | #endif |
16638 | ||
698dcdb6 | 16639 | ; return 0; } |
70846f0a | 16640 | EOF |
d558c907 | 16641 | if { (eval echo configure:16642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16642 | rm -rf conftest* |
16643 | eval "ac_cv_func_$ac_func=yes" | |
16644 | else | |
16645 | echo "configure: failed program was:" >&5 | |
16646 | cat conftest.$ac_ext >&5 | |
16647 | rm -rf conftest* | |
16648 | eval "ac_cv_func_$ac_func=no" | |
16649 | fi | |
16650 | rm -f conftest* | |
16651 | fi | |
70846f0a | 16652 | |
698dcdb6 VZ |
16653 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16654 | echo "$ac_t""yes" 1>&6 | |
16655 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16656 | cat >> confdefs.h <<EOF | |
16657 | #define $ac_tr_func 1 | |
16658 | EOF | |
4f14bcd8 | 16659 | break |
698dcdb6 VZ |
16660 | else |
16661 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16662 | fi |
16663 | done | |
16664 | ||
698dcdb6 | 16665 | |
4f14bcd8 GD |
16666 | |
16667 | ac_ext=C | |
16668 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16669 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16670 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16671 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16672 | cross_compiling=$ac_cv_prog_cxx_cross | |
16673 | ||
16674 | ||
16675 | for ac_func in strtok_r | |
10f2d63a | 16676 | do |
4f14bcd8 | 16677 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 16678 | echo "configure:16679: checking for $ac_func" >&5 |
4f14bcd8 | 16679 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16680 | echo $ac_n "(cached) $ac_c" 1>&6 |
16681 | else | |
16682 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16683 | #line 16684 "configure" |
10f2d63a | 16684 | #include "confdefs.h" |
4f14bcd8 GD |
16685 | /* System header to define __stub macros and hopefully few prototypes, |
16686 | which can conflict with char $ac_func(); below. */ | |
16687 | #include <assert.h> | |
16688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16689 | #ifdef __cplusplus | |
16690 | extern "C" | |
16691 | #endif | |
16692 | /* We use char because int might match the return type of a gcc2 | |
16693 | builtin and then its argument prototype would still apply. */ | |
16694 | char $ac_func(); | |
16695 | ||
16696 | int main() { | |
16697 | ||
16698 | /* The GNU C library defines this for functions which it implements | |
16699 | to always fail with ENOSYS. Some functions are actually named | |
16700 | something starting with __ and the normal name is an alias. */ | |
16701 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16702 | choke me | |
16703 | #else | |
16704 | $ac_func(); | |
16705 | #endif | |
16706 | ||
16707 | ; return 0; } | |
698dcdb6 | 16708 | EOF |
d558c907 | 16709 | if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16710 | rm -rf conftest* |
4f14bcd8 | 16711 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16712 | else |
698dcdb6 | 16713 | echo "configure: failed program was:" >&5 |
10f2d63a | 16714 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16715 | rm -rf conftest* |
4f14bcd8 | 16716 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16717 | fi |
698dcdb6 | 16718 | rm -f conftest* |
10f2d63a | 16719 | fi |
4f14bcd8 GD |
16720 | |
16721 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16722 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16723 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16724 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16725 | #define $ac_tr_func 1 |
10f2d63a | 16726 | EOF |
698dcdb6 VZ |
16727 | |
16728 | else | |
16729 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16730 | fi |
16731 | done | |
16732 | ||
698dcdb6 | 16733 | |
4f14bcd8 GD |
16734 | ac_ext=c |
16735 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16736 | ac_cpp='$CPP $CPPFLAGS' | |
16737 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16738 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16739 | cross_compiling=$ac_cv_prog_cc_cross | |
16740 | ||
16741 | ||
16742 | INET_LINK= | |
16743 | for ac_func in inet_addr | |
16744 | do | |
16745 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16746 | echo "configure:16747: checking for $ac_func" >&5 |
4f14bcd8 | 16747 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16748 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16749 | else |
4f14bcd8 | 16750 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16751 | #line 16752 "configure" |
10f2d63a | 16752 | #include "confdefs.h" |
4f14bcd8 GD |
16753 | /* System header to define __stub macros and hopefully few prototypes, |
16754 | which can conflict with char $ac_func(); below. */ | |
16755 | #include <assert.h> | |
10f2d63a VZ |
16756 | /* Override any gcc2 internal prototype to avoid an error. */ |
16757 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16758 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16759 | char $ac_func(); |
698dcdb6 VZ |
16760 | |
16761 | int main() { | |
4f14bcd8 GD |
16762 | |
16763 | /* The GNU C library defines this for functions which it implements | |
16764 | to always fail with ENOSYS. Some functions are actually named | |
16765 | something starting with __ and the normal name is an alias. */ | |
16766 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16767 | choke me | |
16768 | #else | |
16769 | $ac_func(); | |
16770 | #endif | |
16771 | ||
698dcdb6 VZ |
16772 | ; return 0; } |
16773 | EOF | |
d558c907 | 16774 | if { (eval echo configure:16775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16775 | rm -rf conftest* |
4f14bcd8 | 16776 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16777 | else |
16778 | echo "configure: failed program was:" >&5 | |
16779 | cat conftest.$ac_ext >&5 | |
16780 | rm -rf conftest* | |
4f14bcd8 | 16781 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16782 | fi |
16783 | rm -f conftest* | |
698dcdb6 | 16784 | fi |
4f14bcd8 GD |
16785 | |
16786 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16787 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16788 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16789 | cat >> confdefs.h <<EOF | |
16790 | #define $ac_tr_func 1 | |
16791 | EOF | |
16792 | cat >> confdefs.h <<\EOF | |
16793 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16794 | EOF |
16795 | ||
16796 | else | |
698dcdb6 | 16797 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16798 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
d558c907 | 16799 | echo "configure:16800: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16800 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16803 | else |
698dcdb6 | 16804 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16805 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16806 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16807 | #line 16808 "configure" |
10f2d63a VZ |
16808 | #include "confdefs.h" |
16809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16810 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16811 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16812 | char inet_addr(); |
698dcdb6 VZ |
16813 | |
16814 | int main() { | |
4f14bcd8 | 16815 | inet_addr() |
698dcdb6 VZ |
16816 | ; return 0; } |
16817 | EOF | |
d558c907 | 16818 | if { (eval echo configure:16819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16819 | rm -rf conftest* |
16820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16821 | else | |
16822 | echo "configure: failed program was:" >&5 | |
16823 | cat conftest.$ac_ext >&5 | |
16824 | rm -rf conftest* | |
16825 | eval "ac_cv_lib_$ac_lib_var=no" | |
16826 | fi | |
16827 | rm -f conftest* | |
16828 | LIBS="$ac_save_LIBS" | |
16829 | ||
16830 | fi | |
16831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16832 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16833 | INET_LINK="nsl" |
10f2d63a | 16834 | else |
698dcdb6 | 16835 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16836 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
d558c907 | 16837 | echo "configure:16838: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16838 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16839 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16841 | else |
698dcdb6 | 16842 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16843 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16844 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16845 | #line 16846 "configure" |
10f2d63a VZ |
16846 | #include "confdefs.h" |
16847 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16848 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16849 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16850 | char inet_addr(); |
698dcdb6 VZ |
16851 | |
16852 | int main() { | |
4f14bcd8 | 16853 | inet_addr() |
698dcdb6 VZ |
16854 | ; return 0; } |
16855 | EOF | |
d558c907 | 16856 | if { (eval echo configure:16857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16857 | rm -rf conftest* |
16858 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16859 | else | |
16860 | echo "configure: failed program was:" >&5 | |
16861 | cat conftest.$ac_ext >&5 | |
16862 | rm -rf conftest* | |
16863 | eval "ac_cv_lib_$ac_lib_var=no" | |
16864 | fi | |
16865 | rm -f conftest* | |
16866 | LIBS="$ac_save_LIBS" | |
16867 | ||
16868 | fi | |
16869 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16870 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16871 | INET_LINK="resolv" |
698dcdb6 | 16872 | else |
4f14bcd8 | 16873 | echo "$ac_t""no" 1>&6 |
3c011993 | 16874 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
d558c907 | 16875 | echo "configure:16876: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
16876 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
16877 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16879 | else | |
16880 | ac_save_LIBS="$LIBS" | |
16881 | LIBS="-lsocket $LIBS" | |
16882 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 16883 | #line 16884 "configure" |
3c011993 VZ |
16884 | #include "confdefs.h" |
16885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16886 | /* We use char because int might match the return type of a gcc2 | |
16887 | builtin and then its argument prototype would still apply. */ | |
16888 | char inet_addr(); | |
16889 | ||
16890 | int main() { | |
16891 | inet_addr() | |
16892 | ; return 0; } | |
16893 | EOF | |
d558c907 | 16894 | if { (eval echo configure:16895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
16895 | rm -rf conftest* |
16896 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16897 | else | |
16898 | echo "configure: failed program was:" >&5 | |
16899 | cat conftest.$ac_ext >&5 | |
16900 | rm -rf conftest* | |
16901 | eval "ac_cv_lib_$ac_lib_var=no" | |
16902 | fi | |
16903 | rm -f conftest* | |
16904 | LIBS="$ac_save_LIBS" | |
16905 | ||
16906 | fi | |
16907 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16908 | echo "$ac_t""yes" 1>&6 | |
16909 | INET_LINK="socket" | |
16910 | ||
16911 | else | |
16912 | echo "$ac_t""no" 1>&6 | |
16913 | fi | |
16914 | ||
16915 | ||
4f14bcd8 | 16916 | fi |
698dcdb6 | 16917 | |
4f14bcd8 | 16918 | |
698dcdb6 | 16919 | fi |
4f14bcd8 GD |
16920 | |
16921 | ||
698dcdb6 VZ |
16922 | |
16923 | fi | |
4f14bcd8 GD |
16924 | done |
16925 | ||
16926 | ||
16927 | for ac_func in inet_aton | |
16928 | do | |
16929 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 16930 | echo "configure:16931: checking for $ac_func" >&5 |
4f14bcd8 | 16931 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16932 | echo $ac_n "(cached) $ac_c" 1>&6 |
16933 | else | |
4f14bcd8 | 16934 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16935 | #line 16936 "configure" |
f6bcfd97 | 16936 | #include "confdefs.h" |
4f14bcd8 GD |
16937 | /* System header to define __stub macros and hopefully few prototypes, |
16938 | which can conflict with char $ac_func(); below. */ | |
16939 | #include <assert.h> | |
f6bcfd97 BP |
16940 | /* Override any gcc2 internal prototype to avoid an error. */ |
16941 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16942 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16943 | char $ac_func(); |
698dcdb6 VZ |
16944 | |
16945 | int main() { | |
4f14bcd8 GD |
16946 | |
16947 | /* The GNU C library defines this for functions which it implements | |
16948 | to always fail with ENOSYS. Some functions are actually named | |
16949 | something starting with __ and the normal name is an alias. */ | |
16950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16951 | choke me | |
16952 | #else | |
16953 | $ac_func(); | |
16954 | #endif | |
16955 | ||
698dcdb6 VZ |
16956 | ; return 0; } |
16957 | EOF | |
d558c907 | 16958 | if { (eval echo configure:16959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16959 | rm -rf conftest* |
4f14bcd8 | 16960 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16961 | else |
16962 | echo "configure: failed program was:" >&5 | |
16963 | cat conftest.$ac_ext >&5 | |
16964 | rm -rf conftest* | |
4f14bcd8 | 16965 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16966 | fi |
16967 | rm -f conftest* | |
698dcdb6 | 16968 | fi |
4f14bcd8 GD |
16969 | |
16970 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16971 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16972 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16973 | cat >> confdefs.h <<EOF | |
16974 | #define $ac_tr_func 1 | |
16975 | EOF | |
16976 | cat >> confdefs.h <<\EOF | |
16977 | #define HAVE_INET_ATON 1 | |
16978 | EOF | |
16979 | ||
10f2d63a | 16980 | else |
698dcdb6 | 16981 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16982 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
d558c907 | 16983 | echo "configure:16984: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16984 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16985 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16987 | else |
698dcdb6 | 16988 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16989 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 16990 | cat > conftest.$ac_ext <<EOF |
d558c907 | 16991 | #line 16992 "configure" |
10f2d63a | 16992 | #include "confdefs.h" |
6232543b | 16993 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 16994 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 16995 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16996 | char inet_aton(); |
698dcdb6 VZ |
16997 | |
16998 | int main() { | |
4f14bcd8 | 16999 | inet_aton() |
698dcdb6 VZ |
17000 | ; return 0; } |
17001 | EOF | |
d558c907 | 17002 | if { (eval echo configure:17003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17003 | rm -rf conftest* |
17004 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17005 | else | |
17006 | echo "configure: failed program was:" >&5 | |
17007 | cat conftest.$ac_ext >&5 | |
17008 | rm -rf conftest* | |
17009 | eval "ac_cv_lib_$ac_lib_var=no" | |
17010 | fi | |
17011 | rm -f conftest* | |
17012 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17013 | |
698dcdb6 VZ |
17014 | fi |
17015 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17016 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17017 | cat >> confdefs.h <<\EOF |
17018 | #define HAVE_INET_ATON 1 | |
17019 | EOF | |
17020 | ||
698dcdb6 VZ |
17021 | else |
17022 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17023 | fi |
17024 | ||
4f14bcd8 | 17025 | |
10f2d63a | 17026 | fi |
4f14bcd8 | 17027 | done |
10f2d63a | 17028 | |
4f14bcd8 GD |
17029 | |
17030 | if test "x$INET_LINK" != "x"; then | |
17031 | cat >> confdefs.h <<\EOF | |
17032 | #define HAVE_INET_ADDR 1 | |
17033 | EOF | |
17034 | ||
3d63bc3a | 17035 | INET_LINK=" -l$INET_LINK" |
6232543b | 17036 | fi |
10f2d63a | 17037 | |
1e487827 | 17038 | fi |
703e0a69 | 17039 | |
698dcdb6 | 17040 | |
4f14bcd8 GD |
17041 | cat > confcache <<\EOF |
17042 | # This file is a shell script that caches the results of configure | |
17043 | # tests run on this system so they can be shared between configure | |
17044 | # scripts and configure runs. It is not useful on other systems. | |
17045 | # If it contains results you don't want to keep, you may remove or edit it. | |
17046 | # | |
17047 | # By default, configure uses ./config.cache as the cache file, | |
17048 | # creating it if it does not exist already. You can give configure | |
17049 | # the --cache-file=FILE option to use a different cache file; that is | |
17050 | # what configure does when it calls configure scripts in | |
17051 | # subdirectories, so they share the cache. | |
17052 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17053 | # config.status only pays attention to the cache file if you give it the | |
17054 | # --recheck option to rerun configure. | |
17055 | # | |
f6bcfd97 | 17056 | EOF |
4f14bcd8 GD |
17057 | # The following way of writing the cache mishandles newlines in values, |
17058 | # but we know of no workaround that is simple, portable, and efficient. | |
17059 | # So, don't put newlines in cache variables' values. | |
17060 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17061 | # and sets the high bit in the cache file unless we assign to the vars. | |
17062 | (set) 2>&1 | | |
17063 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17064 | *ac_space=\ *) | |
17065 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17066 | # turns \\\\ into \\, and sed turns \\ into \). | |
17067 | sed -n \ | |
17068 | -e "s/'/'\\\\''/g" \ | |
17069 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17070 | ;; | |
17071 | *) | |
17072 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17073 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17074 | ;; | |
17075 | esac >> confcache | |
17076 | if cmp -s $cache_file confcache; then | |
17077 | : | |
17078 | else | |
17079 | if test -w $cache_file; then | |
17080 | echo "updating cache $cache_file" | |
17081 | cat confcache > $cache_file | |
f6bcfd97 | 17082 | else |
4f14bcd8 | 17083 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17084 | fi |
4f14bcd8 GD |
17085 | fi |
17086 | rm -f confcache | |
f6bcfd97 | 17087 | |
4f14bcd8 GD |
17088 | |
17089 | ||
17090 | if test "$TOOLKIT" != "MSW"; then | |
17091 | ||
7274f1c7 RL |
17092 | |
17093 | THREADS_LINK= | |
17094 | THREADS_OBJ= | |
17095 | CODE_GEN_FLAGS= | |
17096 | CODE_GEN_FLAGS_CXX= | |
17097 | ||
17098 | if test "$wxUSE_THREADS" = "yes" ; then | |
17099 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17100 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17101 | wxUSE_THREADS="no" |
17102 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17103 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17104 | wxUSE_THREADS="no" |
17105 | fi | |
4f14bcd8 | 17106 | fi |
4f14bcd8 | 17107 | |
7274f1c7 RL |
17108 | if test "$wxUSE_THREADS" = "yes" ; then |
17109 | ||
17110 | if test "$USE_AIX" = 1; then | |
17111 | THREADS_LIB=pthreads | |
17112 | else | |
17113 | THREADS_LIB=pthread | |
17114 | fi | |
4f14bcd8 | 17115 | |
7274f1c7 | 17116 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
d558c907 | 17117 | echo "configure:17118: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 17118 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17119 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17121 | else |
698dcdb6 | 17122 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17123 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 17124 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17125 | #line 17126 "configure" |
10f2d63a VZ |
17126 | #include "confdefs.h" |
17127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17128 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17129 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17130 | char pthread_create(); |
698dcdb6 VZ |
17131 | |
17132 | int main() { | |
4f14bcd8 | 17133 | pthread_create() |
698dcdb6 VZ |
17134 | ; return 0; } |
17135 | EOF | |
d558c907 | 17136 | if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17137 | rm -rf conftest* |
17138 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17139 | else | |
17140 | echo "configure: failed program was:" >&5 | |
17141 | cat conftest.$ac_ext >&5 | |
17142 | rm -rf conftest* | |
17143 | eval "ac_cv_lib_$ac_lib_var=no" | |
17144 | fi | |
17145 | rm -f conftest* | |
17146 | LIBS="$ac_save_LIBS" | |
17147 | ||
17148 | fi | |
17149 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17150 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17151 | |
7274f1c7 RL |
17152 | THREADS_OBJ="threadpsx.lo" |
17153 | THREADS_LINK=$THREADS_LIB | |
17154 | ||
10f2d63a | 17155 | else |
698dcdb6 | 17156 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17157 | |
7274f1c7 | 17158 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
d558c907 | 17159 | echo "configure:17160: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
17160 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
17161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17162 | echo $ac_n "(cached) $ac_c" 1>&6 |
17163 | else | |
4f14bcd8 GD |
17164 | ac_save_LIBS="$LIBS" |
17165 | LIBS="-lc_r $LIBS" | |
17166 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 17167 | #line 17168 "configure" |
10f2d63a | 17168 | #include "confdefs.h" |
4f14bcd8 GD |
17169 | /* Override any gcc2 internal prototype to avoid an error. */ |
17170 | /* We use char because int might match the return type of a gcc2 | |
17171 | builtin and then its argument prototype would still apply. */ | |
17172 | char pthread_create(); | |
10f2d63a | 17173 | |
4f14bcd8 GD |
17174 | int main() { |
17175 | pthread_create() | |
698dcdb6 VZ |
17176 | ; return 0; } |
17177 | EOF | |
d558c907 | 17178 | if { (eval echo configure:17179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17179 | rm -rf conftest* |
4f14bcd8 | 17180 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 17181 | else |
698dcdb6 VZ |
17182 | echo "configure: failed program was:" >&5 |
17183 | cat conftest.$ac_ext >&5 | |
17184 | rm -rf conftest* | |
4f14bcd8 | 17185 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 17186 | fi |
698dcdb6 | 17187 | rm -f conftest* |
4f14bcd8 | 17188 | LIBS="$ac_save_LIBS" |
d9b9876f | 17189 | |
4f14bcd8 GD |
17190 | fi |
17191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17192 | echo "$ac_t""yes" 1>&6 | |
17193 | ||
7274f1c7 RL |
17194 | THREADS_OBJ="threadpsx.lo" |
17195 | THREADS_LINK="c_r" | |
17196 | ||
4f14bcd8 GD |
17197 | else |
17198 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 17199 | |
7274f1c7 | 17200 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 17201 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
d558c907 | 17202 | echo "configure:17203: checking for sys/prctl.h" >&5 |
4f14bcd8 | 17203 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 17204 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 17205 | else |
4f14bcd8 | 17206 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17207 | #line 17208 "configure" |
d9b9876f | 17208 | #include "confdefs.h" |
4f14bcd8 | 17209 | #include <sys/prctl.h> |
698dcdb6 | 17210 | EOF |
4f14bcd8 | 17211 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d558c907 | 17212 | { (eval echo configure:17213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17213 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17214 | if test -z "$ac_err"; then | |
698dcdb6 | 17215 | rm -rf conftest* |
4f14bcd8 | 17216 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 17217 | else |
4f14bcd8 | 17218 | echo "$ac_err" >&5 |
698dcdb6 VZ |
17219 | echo "configure: failed program was:" >&5 |
17220 | cat conftest.$ac_ext >&5 | |
17221 | rm -rf conftest* | |
4f14bcd8 | 17222 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 17223 | fi |
698dcdb6 | 17224 | rm -f conftest* |
4f14bcd8 GD |
17225 | fi |
17226 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17227 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 17228 | |
7274f1c7 RL |
17229 | THREADS_OBJ="threadsgi.lo" |
17230 | ||
4f14bcd8 GD |
17231 | else |
17232 | echo "$ac_t""no" 1>&6 | |
1e487827 | 17233 | fi |
698dcdb6 | 17234 | |
7274f1c7 | 17235 | |
4f14bcd8 | 17236 | fi |
d9b9876f | 17237 | |
7274f1c7 | 17238 | |
4f14bcd8 | 17239 | fi |
d9b9876f | 17240 | |
4f14bcd8 | 17241 | |
7274f1c7 RL |
17242 | if test -z "$THREADS_OBJ" ; then |
17243 | wxUSE_THREADS=no | |
156b2523 | 17244 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 17245 | fi |
4f14bcd8 | 17246 | fi |
4f14bcd8 | 17247 | |
7274f1c7 RL |
17248 | if test "$wxUSE_THREADS" = "yes" ; then |
17249 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17250 | do |
17251 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d558c907 | 17252 | echo "configure:17253: checking for $ac_func" >&5 |
4f14bcd8 | 17253 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17254 | echo $ac_n "(cached) $ac_c" 1>&6 |
17255 | else | |
4f14bcd8 | 17256 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17257 | #line 17258 "configure" |
d9b9876f | 17258 | #include "confdefs.h" |
4f14bcd8 GD |
17259 | /* System header to define __stub macros and hopefully few prototypes, |
17260 | which can conflict with char $ac_func(); below. */ | |
17261 | #include <assert.h> | |
17262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17263 | /* We use char because int might match the return type of a gcc2 | |
17264 | builtin and then its argument prototype would still apply. */ | |
17265 | char $ac_func(); | |
17266 | ||
698dcdb6 | 17267 | int main() { |
d9b9876f | 17268 | |
4f14bcd8 GD |
17269 | /* The GNU C library defines this for functions which it implements |
17270 | to always fail with ENOSYS. Some functions are actually named | |
17271 | something starting with __ and the normal name is an alias. */ | |
17272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17273 | choke me | |
17274 | #else | |
17275 | $ac_func(); | |
17276 | #endif | |
17277 | ||
698dcdb6 VZ |
17278 | ; return 0; } |
17279 | EOF | |
d558c907 | 17280 | if { (eval echo configure:17281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17281 | rm -rf conftest* |
4f14bcd8 | 17282 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17283 | else |
698dcdb6 VZ |
17284 | echo "configure: failed program was:" >&5 |
17285 | cat conftest.$ac_ext >&5 | |
17286 | rm -rf conftest* | |
4f14bcd8 | 17287 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17288 | fi |
698dcdb6 | 17289 | rm -f conftest* |
1e487827 | 17290 | fi |
698dcdb6 | 17291 | |
4f14bcd8 GD |
17292 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17293 | echo "$ac_t""yes" 1>&6 | |
17294 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17295 | cat >> confdefs.h <<EOF | |
17296 | #define $ac_tr_func 1 | |
d9b9876f | 17297 | EOF |
4f14bcd8 GD |
17298 | |
17299 | else | |
17300 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17301 | fi |
4f14bcd8 | 17302 | done |
10f2d63a | 17303 | |
10f2d63a | 17304 | |
7274f1c7 RL |
17305 | |
17306 | for ac_hdr in sched.h | |
4f14bcd8 GD |
17307 | do |
17308 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17309 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 17310 | echo "configure:17311: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17311 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17313 | else |
4f14bcd8 | 17314 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17315 | #line 17316 "configure" |
4f14bcd8 GD |
17316 | #include "confdefs.h" |
17317 | #include <$ac_hdr> | |
13111b2a | 17318 | EOF |
4f14bcd8 | 17319 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d558c907 | 17320 | { (eval echo configure:17321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17321 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17322 | if test -z "$ac_err"; then | |
17323 | rm -rf conftest* | |
17324 | eval "ac_cv_header_$ac_safe=yes" | |
17325 | else | |
17326 | echo "$ac_err" >&5 | |
17327 | echo "configure: failed program was:" >&5 | |
17328 | cat conftest.$ac_ext >&5 | |
17329 | rm -rf conftest* | |
17330 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17331 | fi |
4f14bcd8 | 17332 | rm -f conftest* |
10f2d63a | 17333 | fi |
4f14bcd8 GD |
17334 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17335 | echo "$ac_t""yes" 1>&6 | |
17336 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17337 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17338 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17339 | EOF |
4f14bcd8 GD |
17340 | |
17341 | else | |
17342 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17343 | fi |
4f14bcd8 | 17344 | done |
f6bcfd97 | 17345 | |
10f2d63a | 17346 | |
7274f1c7 | 17347 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
d558c907 | 17348 | echo "configure:17349: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17349 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
17350 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17351 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17352 | else | |
17353 | ac_save_LIBS="$LIBS" | |
17354 | LIBS="-l$THREADS_LINK $LIBS" | |
17355 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 17356 | #line 17357 "configure" |
4f14bcd8 GD |
17357 | #include "confdefs.h" |
17358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17359 | /* We use char because int might match the return type of a gcc2 | |
17360 | builtin and then its argument prototype would still apply. */ | |
17361 | char sched_yield(); | |
10f2d63a | 17362 | |
4f14bcd8 GD |
17363 | int main() { |
17364 | sched_yield() | |
17365 | ; return 0; } | |
10f2d63a | 17366 | EOF |
d558c907 | 17367 | if { (eval echo configure:17368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17368 | rm -rf conftest* |
17369 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17370 | else |
4f14bcd8 GD |
17371 | echo "configure: failed program was:" >&5 |
17372 | cat conftest.$ac_ext >&5 | |
17373 | rm -rf conftest* | |
17374 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17375 | fi |
4f14bcd8 GD |
17376 | rm -f conftest* |
17377 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17378 | |
4f14bcd8 GD |
17379 | fi |
17380 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17381 | echo "$ac_t""yes" 1>&6 | |
17382 | cat >> confdefs.h <<\EOF | |
17383 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17384 | EOF |
17385 | ||
4f14bcd8 GD |
17386 | else |
17387 | echo "$ac_t""no" 1>&6 | |
17388 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
d558c907 | 17389 | echo "configure:17390: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17390 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17391 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17393 | else | |
17394 | ac_save_LIBS="$LIBS" | |
17395 | LIBS="-lposix4 $LIBS" | |
17396 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 17397 | #line 17398 "configure" |
4f14bcd8 GD |
17398 | #include "confdefs.h" |
17399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17400 | /* We use char because int might match the return type of a gcc2 | |
17401 | builtin and then its argument prototype would still apply. */ | |
17402 | char sched_yield(); | |
47c13eb7 | 17403 | |
4f14bcd8 GD |
17404 | int main() { |
17405 | sched_yield() | |
17406 | ; return 0; } | |
10f2d63a | 17407 | EOF |
d558c907 | 17408 | if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17409 | rm -rf conftest* |
17410 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17411 | else |
4f14bcd8 GD |
17412 | echo "configure: failed program was:" >&5 |
17413 | cat conftest.$ac_ext >&5 | |
17414 | rm -rf conftest* | |
17415 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17416 | fi |
4f14bcd8 GD |
17417 | rm -f conftest* |
17418 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17419 | |
54276ccf | 17420 | fi |
4f14bcd8 GD |
17421 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17422 | echo "$ac_t""yes" 1>&6 | |
17423 | cat >> confdefs.h <<\EOF | |
17424 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17425 | EOF |
3d63bc3a | 17426 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17427 | else |
17428 | echo "$ac_t""no" 1>&6 | |
17429 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 17430 | |
54276ccf VZ |
17431 | fi |
17432 | ||
7274f1c7 | 17433 | |
4f14bcd8 | 17434 | fi |
698dcdb6 | 17435 | |
10f2d63a | 17436 | |
7274f1c7 RL |
17437 | HAVE_PRIOR_FUNCS=0 |
17438 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d558c907 | 17439 | echo "configure:17440: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17440 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
17441 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17442 | echo $ac_n "(cached) $ac_c" 1>&6 |
17443 | else | |
4f14bcd8 GD |
17444 | ac_save_LIBS="$LIBS" |
17445 | LIBS="-l$THREADS_LINK $LIBS" | |
17446 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 17447 | #line 17448 "configure" |
422107f9 | 17448 | #include "confdefs.h" |
4f14bcd8 GD |
17449 | /* Override any gcc2 internal prototype to avoid an error. */ |
17450 | /* We use char because int might match the return type of a gcc2 | |
17451 | builtin and then its argument prototype would still apply. */ | |
17452 | char pthread_attr_getschedpolicy(); | |
17453 | ||
17454 | int main() { | |
17455 | pthread_attr_getschedpolicy() | |
17456 | ; return 0; } | |
698dcdb6 | 17457 | EOF |
d558c907 | 17458 | if { (eval echo configure:17459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17459 | rm -rf conftest* |
4f14bcd8 | 17460 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17461 | else |
698dcdb6 | 17462 | echo "configure: failed program was:" >&5 |
422107f9 | 17463 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17464 | rm -rf conftest* |
4f14bcd8 | 17465 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17466 | fi |
698dcdb6 | 17467 | rm -f conftest* |
4f14bcd8 GD |
17468 | LIBS="$ac_save_LIBS" |
17469 | ||
422107f9 | 17470 | fi |
4f14bcd8 | 17471 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17472 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17473 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
d558c907 | 17474 | echo "configure:17475: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17475 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17476 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17478 | else |
698dcdb6 | 17479 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17480 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17481 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17482 | #line 17483 "configure" |
422107f9 VZ |
17483 | #include "confdefs.h" |
17484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17485 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17486 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17487 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17488 | |
17489 | int main() { | |
4f14bcd8 | 17490 | pthread_attr_setschedparam() |
698dcdb6 VZ |
17491 | ; return 0; } |
17492 | EOF | |
d558c907 | 17493 | if { (eval echo configure:17494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17494 | rm -rf conftest* |
17495 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17496 | else | |
17497 | echo "configure: failed program was:" >&5 | |
17498 | cat conftest.$ac_ext >&5 | |
17499 | rm -rf conftest* | |
17500 | eval "ac_cv_lib_$ac_lib_var=no" | |
17501 | fi | |
17502 | rm -f conftest* | |
17503 | LIBS="$ac_save_LIBS" | |
17504 | ||
17505 | fi | |
17506 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17507 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17508 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
d558c907 | 17509 | echo "configure:17510: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
17510 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
17511 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
17512 | echo $ac_n "(cached) $ac_c" 1>&6 |
17513 | else | |
4f14bcd8 GD |
17514 | ac_save_LIBS="$LIBS" |
17515 | LIBS="-l$THREADS_LINK $LIBS" | |
17516 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 17517 | #line 17518 "configure" |
422107f9 | 17518 | #include "confdefs.h" |
4f14bcd8 GD |
17519 | /* Override any gcc2 internal prototype to avoid an error. */ |
17520 | /* We use char because int might match the return type of a gcc2 | |
17521 | builtin and then its argument prototype would still apply. */ | |
17522 | char sched_get_priority_max(); | |
17523 | ||
17524 | int main() { | |
17525 | sched_get_priority_max() | |
17526 | ; return 0; } | |
698dcdb6 | 17527 | EOF |
d558c907 | 17528 | if { (eval echo configure:17529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17529 | rm -rf conftest* |
4f14bcd8 | 17530 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 17531 | else |
698dcdb6 | 17532 | echo "configure: failed program was:" >&5 |
422107f9 | 17533 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17534 | rm -rf conftest* |
4f14bcd8 | 17535 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 17536 | fi |
698dcdb6 | 17537 | rm -f conftest* |
4f14bcd8 GD |
17538 | LIBS="$ac_save_LIBS" |
17539 | ||
422107f9 | 17540 | fi |
4f14bcd8 | 17541 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 17542 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17543 | HAVE_PRIOR_FUNCS=1 |
17544 | else | |
17545 | echo "$ac_t""no" 1>&6 | |
17546 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
d558c907 | 17547 | echo "configure:17548: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17548 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17549 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17551 | else |
698dcdb6 | 17552 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17553 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17554 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17555 | #line 17556 "configure" |
422107f9 VZ |
17556 | #include "confdefs.h" |
17557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17558 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17559 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17560 | char sched_get_priority_max(); |
698dcdb6 VZ |
17561 | |
17562 | int main() { | |
4f14bcd8 | 17563 | sched_get_priority_max() |
698dcdb6 VZ |
17564 | ; return 0; } |
17565 | EOF | |
d558c907 | 17566 | if { (eval echo configure:17567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17567 | rm -rf conftest* |
17568 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17569 | else | |
17570 | echo "configure: failed program was:" >&5 | |
17571 | cat conftest.$ac_ext >&5 | |
17572 | rm -rf conftest* | |
17573 | eval "ac_cv_lib_$ac_lib_var=no" | |
17574 | fi | |
17575 | rm -f conftest* | |
17576 | LIBS="$ac_save_LIBS" | |
17577 | ||
17578 | fi | |
17579 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17580 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17581 | |
7274f1c7 RL |
17582 | HAVE_PRIOR_FUNCS=1 |
17583 | POSIX4_LINK=" -lposix4" | |
17584 | ||
698dcdb6 VZ |
17585 | else |
17586 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17587 | fi |
17588 | ||
7274f1c7 | 17589 | |
422107f9 VZ |
17590 | fi |
17591 | ||
7274f1c7 | 17592 | |
4f14bcd8 GD |
17593 | else |
17594 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17595 | fi |
17596 | ||
7274f1c7 | 17597 | |
698dcdb6 | 17598 | else |
4f14bcd8 GD |
17599 | echo "$ac_t""no" 1>&6 |
17600 | fi | |
463abc64 | 17601 | |
463abc64 | 17602 | |
7274f1c7 RL |
17603 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17604 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17605 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17606 | EOF |
463abc64 | 17607 | |
7274f1c7 RL |
17608 | else |
17609 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17610 | fi | |
463abc64 | 17611 | |
7274f1c7 | 17612 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
d558c907 | 17613 | echo "configure:17614: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 17614 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17615 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17617 | else |
698dcdb6 | 17618 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17619 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 17620 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17621 | #line 17622 "configure" |
422107f9 VZ |
17622 | #include "confdefs.h" |
17623 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17624 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17625 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17626 | char pthread_cancel(); |
698dcdb6 VZ |
17627 | |
17628 | int main() { | |
4f14bcd8 | 17629 | pthread_cancel() |
698dcdb6 VZ |
17630 | ; return 0; } |
17631 | EOF | |
d558c907 | 17632 | if { (eval echo configure:17633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17633 | rm -rf conftest* |
17634 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17635 | else | |
17636 | echo "configure: failed program was:" >&5 | |
17637 | cat conftest.$ac_ext >&5 | |
17638 | rm -rf conftest* | |
17639 | eval "ac_cv_lib_$ac_lib_var=no" | |
17640 | fi | |
17641 | rm -f conftest* | |
17642 | LIBS="$ac_save_LIBS" | |
17643 | ||
17644 | fi | |
17645 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17646 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17647 | cat >> confdefs.h <<\EOF |
17648 | #define HAVE_PTHREAD_CANCEL 1 | |
17649 | EOF | |
17650 | ||
698dcdb6 VZ |
17651 | else |
17652 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17653 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17654 | fi |
17655 | ||
422107f9 | 17656 | |
7274f1c7 | 17657 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
d558c907 | 17658 | echo "configure:17659: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17659 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17661 | else | |
17662 | ||
7274f1c7 | 17663 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17664 | #line 17665 "configure" |
4f14bcd8 GD |
17665 | #include "confdefs.h" |
17666 | #include <pthread.h> | |
17667 | int main() { | |
17668 | ||
7274f1c7 RL |
17669 | pthread_cleanup_push(NULL, NULL); |
17670 | pthread_cleanup_pop(0); | |
17671 | ||
4f14bcd8 GD |
17672 | ; return 0; } |
17673 | EOF | |
d558c907 | 17674 | if { (eval echo configure:17675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17675 | rm -rf conftest* |
17676 | ||
7274f1c7 RL |
17677 | wx_cv_func_pthread_cleanup_push=yes |
17678 | ||
4f14bcd8 GD |
17679 | else |
17680 | echo "configure: failed program was:" >&5 | |
17681 | cat conftest.$ac_ext >&5 | |
17682 | rm -rf conftest* | |
17683 | ||
7274f1c7 RL |
17684 | wx_cv_func_pthread_cleanup_push=no |
17685 | ||
4f14bcd8 GD |
17686 | fi |
17687 | rm -f conftest* | |
7274f1c7 | 17688 | |
10f2d63a VZ |
17689 | fi |
17690 | ||
4f14bcd8 GD |
17691 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17692 | ||
7274f1c7 RL |
17693 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17694 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17695 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17696 | EOF |
17697 | ||
7274f1c7 | 17698 | fi |
4f14bcd8 | 17699 | |
7274f1c7 RL |
17700 | |
17701 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17702 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17703 | fi | |
4f14bcd8 | 17704 | |
7274f1c7 | 17705 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
d558c907 | 17706 | echo "configure:17707: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17707 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17708 | echo $ac_n "(cached) $ac_c" 1>&6 |
17709 | else | |
4f14bcd8 | 17710 | |
7274f1c7 | 17711 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17712 | #line 17713 "configure" |
0dcf9893 | 17713 | #include "confdefs.h" |
4f14bcd8 GD |
17714 | #include <pthread.h> |
17715 | int main() { | |
17716 | ||
7274f1c7 RL |
17717 | pthread_mutexattr_t attr; |
17718 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17719 | ||
4f14bcd8 | 17720 | ; return 0; } |
698dcdb6 | 17721 | EOF |
d558c907 | 17722 | if { (eval echo configure:17723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17723 | rm -rf conftest* |
4f14bcd8 | 17724 | |
7274f1c7 RL |
17725 | wx_cv_type_pthread_mutexattr_t=yes |
17726 | ||
3fed1840 | 17727 | else |
698dcdb6 | 17728 | echo "configure: failed program was:" >&5 |
3fed1840 | 17729 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17730 | rm -rf conftest* |
4f14bcd8 | 17731 | |
7274f1c7 RL |
17732 | wx_cv_type_pthread_mutexattr_t=no |
17733 | ||
4f14bcd8 | 17734 | |
3fed1840 | 17735 | fi |
698dcdb6 | 17736 | rm -f conftest* |
7274f1c7 | 17737 | |
3fed1840 | 17738 | fi |
4f14bcd8 GD |
17739 | |
17740 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17741 | ||
7274f1c7 RL |
17742 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17743 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17744 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17745 | EOF | |
17746 | ||
7274f1c7 RL |
17747 | else |
17748 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
d558c907 | 17749 | echo "configure:17750: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17750 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17751 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17752 | else |
4f14bcd8 | 17753 | |
7274f1c7 | 17754 | cat > conftest.$ac_ext <<EOF |
d558c907 | 17755 | #line 17756 "configure" |
3fed1840 | 17756 | #include "confdefs.h" |
4f14bcd8 | 17757 | #include <pthread.h> |
698dcdb6 | 17758 | int main() { |
4f14bcd8 | 17759 | |
7274f1c7 RL |
17760 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17761 | ||
698dcdb6 VZ |
17762 | ; return 0; } |
17763 | EOF | |
d558c907 | 17764 | if { (eval echo configure:17765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17765 | rm -rf conftest* |
4f14bcd8 | 17766 | |
7274f1c7 RL |
17767 | wx_cv_type_pthread_rec_mutex_init=yes |
17768 | ||
698dcdb6 VZ |
17769 | else |
17770 | echo "configure: failed program was:" >&5 | |
17771 | cat conftest.$ac_ext >&5 | |
17772 | rm -rf conftest* | |
4f14bcd8 | 17773 | |
7274f1c7 RL |
17774 | wx_cv_type_pthread_rec_mutex_init=no |
17775 | ||
4f14bcd8 | 17776 | |
698dcdb6 VZ |
17777 | fi |
17778 | rm -f conftest* | |
7274f1c7 | 17779 | |
3fed1840 RR |
17780 | fi |
17781 | ||
4f14bcd8 | 17782 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17783 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17784 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17785 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17786 | EOF | |
3fed1840 | 17787 | |
7274f1c7 RL |
17788 | else |
17789 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17790 | fi | |
17791 | fi | |
4f14bcd8 | 17792 | |
7274f1c7 | 17793 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17794 | |
7274f1c7 RL |
17795 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17796 | CPPFLAGS="$CFLAGS -mt" | |
17797 | CXXFLAGS="$CXXFLAGS -mt" | |
17798 | LDFLAGS="$LDFLAGS -mt" | |
17799 | fi | |
17800 | fi | |
3fed1840 | 17801 | |
4f14bcd8 GD |
17802 | fi |
17803 | ||
17804 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17805 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17806 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17807 | EOF |
17808 | ||
4f14bcd8 | 17809 | |
3f345b47 | 17810 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17811 | |
17812 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17813 | else |
4f14bcd8 GD |
17814 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17815 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
d558c907 | 17816 | echo "configure:17817: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17817 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17818 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17819 | echo "$ac_t""yes" 1>&6 | |
17820 | else | |
17821 | echo "$ac_t""no" 1>&6 | |
17822 | fi | |
17823 | fi | |
17824 | fi | |
17825 | ||
17826 | if test "$WXGTK20" = 1 ; then | |
17827 | cat >> confdefs.h <<EOF | |
17828 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17829 | EOF |
4f14bcd8 GD |
17830 | |
17831 | WXGTK12=1 | |
10f2d63a | 17832 | fi |
4f14bcd8 GD |
17833 | |
17834 | if test "$WXGTK12" = 1 ; then | |
17835 | cat >> confdefs.h <<EOF | |
17836 | #define __WXGTK12__ $WXGTK12 | |
17837 | EOF | |
17838 | ||
10f2d63a | 17839 | fi |
698dcdb6 | 17840 | |
4f14bcd8 GD |
17841 | if test "$WXGTK127" = 1 ; then |
17842 | cat >> confdefs.h <<EOF | |
17843 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17844 | EOF |
4f14bcd8 | 17845 | |
698dcdb6 | 17846 | fi |
10f2d63a | 17847 | |
4f14bcd8 GD |
17848 | WXDEBUG= |
17849 | ||
17850 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17851 | WXDEBUG="-g" | |
17852 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17853 | fi |
4f14bcd8 GD |
17854 | |
17855 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17856 | wxUSE_DEBUG_INFO=yes | |
17857 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17858 | fi |
17859 | ||
4f14bcd8 GD |
17860 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17861 | cat >> confdefs.h <<\EOF | |
17862 | #define WXDEBUG 1 | |
17863 | EOF | |
17864 | ||
17865 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17866 | else |
4f14bcd8 GD |
17867 | if test "$wxUSE_GTK" = 1 ; then |
17868 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17869 | fi | |
17870 | fi | |
17871 | ||
17872 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17873 | cat >> confdefs.h <<\EOF | |
17874 | #define wxUSE_MEMORY_TRACING 1 | |
17875 | EOF | |
17876 | ||
17877 | cat >> confdefs.h <<\EOF | |
17878 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17879 | EOF | |
17880 | ||
17881 | cat >> confdefs.h <<\EOF | |
17882 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17883 | EOF | |
17884 | ||
17885 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17886 | fi | |
17887 | ||
17888 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17889 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17890 | fi |
17891 | ||
17892 | PROFILE= | |
17893 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17894 | PROFILE=" -pg" |
10f2d63a VZ |
17895 | fi |
17896 | ||
88e30f2b | 17897 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17898 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17899 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17900 | fi |
4f14bcd8 GD |
17901 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17902 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17903 | fi | |
17904 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17905 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17906 | fi | |
4f14bcd8 GD |
17907 | if test "$USE_WIN32" = 1 ; then |
17908 | # I'm not even really sure what this was ever added to solve, | |
17909 | # but someone added it for mingw native builds, so I guess | |
17910 | # they had a reason, right?? | |
17911 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17912 | fi | |
17913 | fi | |
17914 | ||
17915 | ||
17916 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17917 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17918 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17919 | OPTIMISE= | |
17920 | else | |
17921 | if test "$GCC" = yes ; then | |
17922 | OPTIMISE="-O2" | |
17923 | case "${host}" in | |
17924 | i586-*-*|i686-*-* ) | |
17925 | OPTIMISE="${OPTIMISE} " | |
17926 | ;; | |
17927 | esac | |
17928 | else | |
17929 | OPTIMISE="-O" | |
17930 | fi | |
17931 | fi | |
17932 | ||
17933 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17934 | cat >> confdefs.h <<\EOF | |
17935 | #define WXWIN_COMPATIBILITY_2 1 | |
17936 | EOF | |
17937 | ||
17938 | ||
17939 | WXWIN_COMPATIBILITY_2_2="yes" | |
17940 | fi | |
17941 | ||
0c9a1c32 | 17942 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
17943 | cat >> confdefs.h <<\EOF |
17944 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17945 | EOF | |
17946 | ||
10f2d63a VZ |
17947 | fi |
17948 | ||
698dcdb6 | 17949 | |
10f2d63a | 17950 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17952 | #define wxUSE_GUI 1 |
17953 | EOF | |
17954 | ||
698dcdb6 | 17955 | |
10f2d63a | 17956 | else |
698dcdb6 | 17957 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17958 | #define wxUSE_NOGUI 1 |
17959 | EOF | |
17960 | ||
17961 | fi | |
17962 | ||
698dcdb6 | 17963 | |
10f2d63a | 17964 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17966 | #define wxUSE_UNIX 1 |
17967 | EOF | |
17968 | ||
17969 | fi | |
17970 | ||
698dcdb6 | 17971 | |
10f2d63a | 17972 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17973 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17974 | #define wxUSE_APPLE_IEEE 1 |
17975 | EOF | |
17976 | ||
17977 | fi | |
17978 | ||
1e6feb95 VZ |
17979 | if test "$wxUSE_TIMER" = "yes"; then |
17980 | cat >> confdefs.h <<\EOF | |
17981 | #define wxUSE_TIMER 1 | |
17982 | EOF | |
17983 | ||
17984 | fi | |
17985 | ||
10f2d63a | 17986 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 17987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17988 | #define wxUSE_WAVE 1 |
17989 | EOF | |
17990 | ||
17991 | fi | |
17992 | ||
1e6feb95 VZ |
17993 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
17994 | cat >> confdefs.h <<\EOF | |
17995 | #define wxUSE_CMDLINE_PARSER 1 | |
17996 | EOF | |
17997 | ||
17998 | fi | |
17999 | ||
18000 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18001 | cat >> confdefs.h <<\EOF | |
18002 | #define wxUSE_STOPWATCH 1 | |
18003 | EOF | |
18004 | ||
18005 | fi | |
18006 | ||
18007 | if test "$wxUSE_DATETIME" = "yes"; then | |
18008 | cat >> confdefs.h <<\EOF | |
18009 | #define wxUSE_DATETIME 1 | |
18010 | EOF | |
18011 | ||
18012 | fi | |
18013 | ||
18014 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18015 | cat >> confdefs.h <<\EOF | |
18016 | #define wxUSE_TIMEDATE 1 | |
18017 | EOF | |
18018 | ||
18019 | fi | |
18020 | ||
10f2d63a | 18021 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18022 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18023 | #define wxUSE_FILE 1 |
18024 | EOF | |
18025 | ||
18026 | fi | |
18027 | ||
1e6feb95 VZ |
18028 | if test "$wxUSE_FFILE" = "yes"; then |
18029 | cat >> confdefs.h <<\EOF | |
18030 | #define wxUSE_FFILE 1 | |
18031 | EOF | |
18032 | ||
18033 | fi | |
18034 | ||
24528b0c | 18035 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18036 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18037 | #define wxUSE_FILESYSTEM 1 |
18038 | EOF | |
18039 | ||
18040 | fi | |
18041 | ||
10f2d63a | 18042 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18044 | #define wxUSE_FS_INET 1 |
18045 | EOF | |
18046 | ||
18047 | fi | |
18048 | ||
18049 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18050 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18051 | #define wxUSE_FS_ZIP 1 |
18052 | EOF | |
18053 | ||
18054 | fi | |
18055 | ||
18056 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18058 | #define wxUSE_ZIPSTREAM 1 |
18059 | EOF | |
18060 | ||
18061 | fi | |
18062 | ||
eb4efbdc | 18063 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18064 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18065 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18066 | EOF | |
18067 | ||
18068 | fi | |
18069 | ||
4f3c5f06 | 18070 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18071 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18072 | #define wxUSE_SNGLINST_CHECKER 1 |
18073 | EOF | |
18074 | ||
18075 | fi | |
18076 | ||
10f2d63a | 18077 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18078 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18079 | #define wxUSE_BUSYINFO 1 |
18080 | EOF | |
18081 | ||
18082 | fi | |
18083 | ||
18084 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18086 | #define wxUSE_STD_IOSTREAM 1 |
18087 | EOF | |
18088 | ||
18089 | fi | |
18090 | ||
a3a584a7 VZ |
18091 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18092 | cat >> confdefs.h <<\EOF | |
18093 | #define wxUSE_TEXTBUFFER 1 | |
18094 | EOF | |
18095 | ||
18096 | fi | |
18097 | ||
10f2d63a | 18098 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18099 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18100 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18101 | else |
698dcdb6 | 18102 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18103 | #define wxUSE_TEXTFILE 1 |
18104 | EOF | |
18105 | ||
18106 | fi | |
18107 | fi | |
18108 | ||
18109 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18110 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18111 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18112 | else |
698dcdb6 | 18113 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18114 | #define wxUSE_CONFIG 1 |
18115 | EOF | |
18116 | ||
18117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18118 | fi | |
18119 | fi | |
18120 | ||
18121 | if test "$wxUSE_INTL" = "yes" ; then | |
18122 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18123 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18124 | else |
698dcdb6 | 18125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18126 | #define wxUSE_INTL 1 |
18127 | EOF | |
18128 | ||
18129 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18130 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18131 | fi |
18132 | fi | |
18133 | ||
18134 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18136 | #define wxUSE_LOG 1 |
18137 | EOF | |
18138 | ||
d73be714 VZ |
18139 | |
18140 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18141 | cat >> confdefs.h <<\EOF | |
18142 | #define wxUSE_LOGGUI 1 | |
18143 | EOF | |
18144 | ||
18145 | fi | |
18146 | ||
18147 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18148 | cat >> confdefs.h <<\EOF | |
18149 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18150 | EOF |
18151 | ||
18152 | fi | |
18153 | ||
18154 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18155 | cat >> confdefs.h <<\EOF | |
18156 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18157 | EOF |
18158 | ||
18159 | fi | |
10f2d63a VZ |
18160 | fi |
18161 | ||
18162 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18163 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18164 | #define wxUSE_LONGLONG 1 |
18165 | EOF | |
18166 | ||
18167 | fi | |
18168 | ||
e8f65ba6 | 18169 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18170 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18171 | #define wxUSE_GEOMETRY 1 |
18172 | EOF | |
18173 | ||
18174 | fi | |
18175 | ||
10f2d63a | 18176 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18178 | #define wxUSE_DIALUP_MANAGER 1 |
18179 | EOF | |
18180 | ||
70f7a477 | 18181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18182 | fi |
18183 | ||
18184 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18186 | #define wxUSE_STREAMS 1 |
18187 | EOF | |
18188 | ||
18189 | fi | |
18190 | ||
1e487827 | 18191 | |
1e6feb95 | 18192 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18193 | for ac_func in strptime |
83307f33 | 18194 | do |
698dcdb6 | 18195 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 18196 | echo "configure:18197: checking for $ac_func" >&5 |
698dcdb6 VZ |
18197 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18199 | else | |
18200 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18201 | #line 18202 "configure" |
83307f33 VZ |
18202 | #include "confdefs.h" |
18203 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18204 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18205 | #include <assert.h> |
18206 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18207 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18208 | builtin and then its argument prototype would still apply. */ |
18209 | char $ac_func(); | |
18210 | ||
18211 | int main() { | |
83307f33 VZ |
18212 | |
18213 | /* The GNU C library defines this for functions which it implements | |
18214 | to always fail with ENOSYS. Some functions are actually named | |
18215 | something starting with __ and the normal name is an alias. */ | |
18216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18217 | choke me | |
18218 | #else | |
698dcdb6 | 18219 | $ac_func(); |
83307f33 VZ |
18220 | #endif |
18221 | ||
698dcdb6 | 18222 | ; return 0; } |
83307f33 | 18223 | EOF |
d558c907 | 18224 | if { (eval echo configure:18225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18225 | rm -rf conftest* |
18226 | eval "ac_cv_func_$ac_func=yes" | |
18227 | else | |
18228 | echo "configure: failed program was:" >&5 | |
18229 | cat conftest.$ac_ext >&5 | |
18230 | rm -rf conftest* | |
18231 | eval "ac_cv_func_$ac_func=no" | |
18232 | fi | |
18233 | rm -f conftest* | |
18234 | fi | |
83307f33 | 18235 | |
698dcdb6 VZ |
18236 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18237 | echo "$ac_t""yes" 1>&6 | |
18238 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18239 | cat >> confdefs.h <<EOF | |
18240 | #define $ac_tr_func 1 | |
18241 | EOF | |
18242 | ||
18243 | else | |
18244 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18245 | fi |
18246 | done | |
18247 | ||
1e487827 | 18248 | |
698dcdb6 | 18249 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d558c907 | 18250 | echo "configure:18251: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18251 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18253 | else | |
18254 | ||
18255 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18256 | #line 18257 "configure" |
360d6699 VZ |
18257 | #include "confdefs.h" |
18258 | ||
b4085ce6 | 18259 | #include <time.h> |
698dcdb6 VZ |
18260 | |
18261 | int main() { | |
360d6699 VZ |
18262 | |
18263 | int tz; | |
4f11a343 | 18264 | tz = timezone; |
698dcdb6 VZ |
18265 | |
18266 | ; return 0; } | |
18267 | EOF | |
d558c907 | 18268 | if { (eval echo configure:18269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18269 | rm -rf conftest* |
18270 | ||
4f11a343 | 18271 | wx_cv_var_timezone=timezone |
698dcdb6 | 18272 | |
360d6699 | 18273 | else |
698dcdb6 VZ |
18274 | echo "configure: failed program was:" >&5 |
18275 | cat conftest.$ac_ext >&5 | |
18276 | rm -rf conftest* | |
18277 | ||
18278 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18279 | #line 18280 "configure" |
360d6699 VZ |
18280 | #include "confdefs.h" |
18281 | ||
b4085ce6 | 18282 | #include <time.h> |
698dcdb6 VZ |
18283 | |
18284 | int main() { | |
360d6699 VZ |
18285 | |
18286 | int tz; | |
18287 | tz = _timezone; | |
698dcdb6 VZ |
18288 | |
18289 | ; return 0; } | |
18290 | EOF | |
d558c907 | 18291 | if { (eval echo configure:18292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18292 | rm -rf conftest* |
18293 | ||
360d6699 | 18294 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18295 | |
5357c8e8 | 18296 | else |
698dcdb6 VZ |
18297 | echo "configure: failed program was:" >&5 |
18298 | cat conftest.$ac_ext >&5 | |
18299 | rm -rf conftest* | |
18300 | ||
18301 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18302 | #line 18303 "configure" |
5357c8e8 VZ |
18303 | #include "confdefs.h" |
18304 | ||
b4085ce6 | 18305 | #include <time.h> |
698dcdb6 VZ |
18306 | |
18307 | int main() { | |
5357c8e8 VZ |
18308 | |
18309 | int tz; | |
4f11a343 | 18310 | tz = __timezone; |
698dcdb6 VZ |
18311 | |
18312 | ; return 0; } | |
18313 | EOF | |
d558c907 | 18314 | if { (eval echo configure:18315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18315 | rm -rf conftest* |
18316 | ||
4f11a343 | 18317 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18318 | |
360d6699 | 18319 | else |
698dcdb6 VZ |
18320 | echo "configure: failed program was:" >&5 |
18321 | cat conftest.$ac_ext >&5 | |
18322 | rm -rf conftest* | |
f9bc1684 VS |
18323 | |
18324 | if test "$USE_DOS" = 0 ; then | |
18325 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
18326 | fi | |
18327 | ||
698dcdb6 | 18328 | |
360d6699 | 18329 | fi |
698dcdb6 VZ |
18330 | rm -f conftest* |
18331 | ||
18332 | ||
360d6699 | 18333 | fi |
698dcdb6 VZ |
18334 | rm -f conftest* |
18335 | ||
18336 | ||
6232543b | 18337 | fi |
698dcdb6 VZ |
18338 | rm -f conftest* |
18339 | ||
18340 | ||
1e487827 | 18341 | fi |
703e0a69 | 18342 | |
698dcdb6 VZ |
18343 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18344 | ||
f9bc1684 | 18345 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18346 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18347 | #define WX_TIMEZONE $wx_cv_var_timezone |
18348 | EOF | |
18349 | ||
f9bc1684 | 18350 | fi |
698dcdb6 VZ |
18351 | |
18352 | for ac_func in localtime | |
afc31813 | 18353 | do |
698dcdb6 | 18354 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 18355 | echo "configure:18356: checking for $ac_func" >&5 |
698dcdb6 VZ |
18356 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18358 | else | |
18359 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18360 | #line 18361 "configure" |
10f2d63a | 18361 | #include "confdefs.h" |
afc31813 | 18362 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18363 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18364 | #include <assert.h> |
18365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18366 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18367 | builtin and then its argument prototype would still apply. */ |
18368 | char $ac_func(); | |
18369 | ||
18370 | int main() { | |
afc31813 VZ |
18371 | |
18372 | /* The GNU C library defines this for functions which it implements | |
18373 | to always fail with ENOSYS. Some functions are actually named | |
18374 | something starting with __ and the normal name is an alias. */ | |
18375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18376 | choke me | |
18377 | #else | |
698dcdb6 | 18378 | $ac_func(); |
afc31813 VZ |
18379 | #endif |
18380 | ||
698dcdb6 | 18381 | ; return 0; } |
10f2d63a | 18382 | EOF |
d558c907 | 18383 | if { (eval echo configure:18384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18384 | rm -rf conftest* |
18385 | eval "ac_cv_func_$ac_func=yes" | |
18386 | else | |
18387 | echo "configure: failed program was:" >&5 | |
18388 | cat conftest.$ac_ext >&5 | |
18389 | rm -rf conftest* | |
18390 | eval "ac_cv_func_$ac_func=no" | |
18391 | fi | |
18392 | rm -f conftest* | |
18393 | fi | |
afc31813 | 18394 | |
698dcdb6 VZ |
18395 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18396 | echo "$ac_t""yes" 1>&6 | |
18397 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18398 | cat >> confdefs.h <<EOF | |
18399 | #define $ac_tr_func 1 | |
18400 | EOF | |
18401 | ||
18402 | else | |
18403 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18404 | fi |
18405 | done | |
18406 | ||
1e487827 | 18407 | |
698dcdb6 VZ |
18408 | if test "$ac_cv_func_localtime" = "yes"; then |
18409 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d558c907 | 18410 | echo "configure:18411: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18411 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18413 | else | |
18414 | ||
18415 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18416 | #line 18417 "configure" |
0470b1e6 VZ |
18417 | #include "confdefs.h" |
18418 | ||
b4085ce6 | 18419 | #include <time.h> |
698dcdb6 VZ |
18420 | |
18421 | int main() { | |
0470b1e6 VZ |
18422 | |
18423 | struct tm tm; | |
18424 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18425 | |
18426 | ; return 0; } | |
18427 | EOF | |
d558c907 | 18428 | if { (eval echo configure:18429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18429 | rm -rf conftest* |
18430 | ||
f03a98d8 | 18431 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18432 | |
0470b1e6 | 18433 | else |
698dcdb6 VZ |
18434 | echo "configure: failed program was:" >&5 |
18435 | cat conftest.$ac_ext >&5 | |
18436 | rm -rf conftest* | |
18437 | wx_cv_struct_tm_has_gmtoff=no | |
18438 | ||
0470b1e6 | 18439 | fi |
698dcdb6 VZ |
18440 | rm -f conftest* |
18441 | ||
1e487827 | 18442 | fi |
698dcdb6 VZ |
18443 | |
18444 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18445 | fi |
18446 | ||
18447 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18448 | cat >> confdefs.h <<\EOF |
6232543b VS |
18449 | #define WX_GMTOFF_IN_TM 1 |
18450 | EOF | |
0470b1e6 | 18451 | |
3fcdd07b VZ |
18452 | fi |
18453 | ||
698dcdb6 | 18454 | for ac_func in gettimeofday ftime |
3fcdd07b | 18455 | do |
698dcdb6 | 18456 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 18457 | echo "configure:18458: checking for $ac_func" >&5 |
698dcdb6 VZ |
18458 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18460 | else | |
18461 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18462 | #line 18463 "configure" |
3fcdd07b VZ |
18463 | #include "confdefs.h" |
18464 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18465 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18466 | #include <assert.h> |
18467 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18468 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18469 | builtin and then its argument prototype would still apply. */ |
18470 | char $ac_func(); | |
18471 | ||
18472 | int main() { | |
3fcdd07b VZ |
18473 | |
18474 | /* The GNU C library defines this for functions which it implements | |
18475 | to always fail with ENOSYS. Some functions are actually named | |
18476 | something starting with __ and the normal name is an alias. */ | |
18477 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18478 | choke me | |
18479 | #else | |
698dcdb6 | 18480 | $ac_func(); |
3fcdd07b VZ |
18481 | #endif |
18482 | ||
698dcdb6 VZ |
18483 | ; return 0; } |
18484 | EOF | |
d558c907 | 18485 | if { (eval echo configure:18486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18486 | rm -rf conftest* |
18487 | eval "ac_cv_func_$ac_func=yes" | |
18488 | else | |
18489 | echo "configure: failed program was:" >&5 | |
18490 | cat conftest.$ac_ext >&5 | |
18491 | rm -rf conftest* | |
18492 | eval "ac_cv_func_$ac_func=no" | |
18493 | fi | |
18494 | rm -f conftest* | |
18495 | fi | |
18496 | ||
18497 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18498 | echo "$ac_t""yes" 1>&6 | |
18499 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18500 | cat >> confdefs.h <<EOF | |
18501 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18502 | EOF |
18503 | break | |
698dcdb6 VZ |
18504 | else |
18505 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18506 | fi |
18507 | done | |
18508 | ||
afc31813 | 18509 | |
698dcdb6 VZ |
18510 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18511 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
d558c907 | 18512 | echo "configure:18513: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18513 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18515 | else | |
18516 | ||
18517 | ||
18518 | ac_ext=C | |
18519 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18520 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18521 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18522 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18523 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18524 | |
698dcdb6 VZ |
18525 | |
18526 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18527 | #line 18528 "configure" |
10f2d63a | 18528 | #include "confdefs.h" |
afc31813 VZ |
18529 | |
18530 | #include <sys/time.h> | |
18531 | #include <unistd.h> | |
698dcdb6 VZ |
18532 | |
18533 | int main() { | |
afc31813 VZ |
18534 | |
18535 | struct timeval tv; | |
776862b4 | 18536 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18537 | |
18538 | ; return 0; } | |
18539 | EOF | |
d558c907 | 18540 | if { (eval echo configure:18541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18541 | rm -rf conftest* |
afc31813 | 18542 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18543 | else |
698dcdb6 VZ |
18544 | echo "configure: failed program was:" >&5 |
18545 | cat conftest.$ac_ext >&5 | |
18546 | rm -rf conftest* | |
18547 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18548 | #line 18549 "configure" |
10f2d63a | 18549 | #include "confdefs.h" |
afc31813 VZ |
18550 | |
18551 | #include <sys/time.h> | |
18552 | #include <unistd.h> | |
698dcdb6 VZ |
18553 | |
18554 | int main() { | |
afc31813 VZ |
18555 | |
18556 | struct timeval tv; | |
18557 | gettimeofday(&tv); | |
698dcdb6 VZ |
18558 | |
18559 | ; return 0; } | |
18560 | EOF | |
d558c907 | 18561 | if { (eval echo configure:18562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18562 | rm -rf conftest* |
afc31813 | 18563 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18564 | else |
698dcdb6 VZ |
18565 | echo "configure: failed program was:" >&5 |
18566 | cat conftest.$ac_ext >&5 | |
18567 | rm -rf conftest* | |
776862b4 VZ |
18568 | |
18569 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18570 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18571 | ||
698dcdb6 | 18572 | |
10f2d63a | 18573 | fi |
698dcdb6 VZ |
18574 | rm -f conftest* |
18575 | ||
10f2d63a | 18576 | fi |
698dcdb6 | 18577 | rm -f conftest* |
afc31813 | 18578 | ac_ext=c |
698dcdb6 | 18579 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18580 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18581 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18582 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18583 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18584 | |
698dcdb6 | 18585 | |
afc31813 | 18586 | fi |
698dcdb6 VZ |
18587 | |
18588 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18589 | |
afc31813 | 18590 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18591 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18592 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18593 | EOF | |
18594 | ||
18595 | fi | |
18596 | fi | |
18597 | ||
698dcdb6 | 18598 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18599 | #define wxUSE_TIMEDATE 1 |
18600 | EOF | |
18601 | ||
18602 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18603 | fi | |
18604 | ||
698dcdb6 | 18605 | |
0feee163 VZ |
18606 | if test "$wxUSE_SOCKETS" = "yes"; then |
18607 | if test "$TOOLKIT" = "X11"; then | |
18608 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18609 | wxUSE_SOCKETS="no" | |
18610 | fi | |
18611 | fi | |
b089607b | 18612 | |
0feee163 VZ |
18613 | if test "$wxUSE_SOCKETS" = "yes"; then |
18614 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18615 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
d558c907 | 18616 | echo "configure:18617: checking for socket" >&5 |
698dcdb6 VZ |
18617 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18619 | else |
698dcdb6 | 18620 | cat > conftest.$ac_ext <<EOF |
d558c907 | 18621 | #line 18622 "configure" |
c63c7106 VZ |
18622 | #include "confdefs.h" |
18623 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18624 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18625 | #include <assert.h> |
18626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18627 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18628 | builtin and then its argument prototype would still apply. */ |
18629 | char socket(); | |
18630 | ||
18631 | int main() { | |
c63c7106 VZ |
18632 | |
18633 | /* The GNU C library defines this for functions which it implements | |
18634 | to always fail with ENOSYS. Some functions are actually named | |
18635 | something starting with __ and the normal name is an alias. */ | |
18636 | #if defined (__stub_socket) || defined (__stub___socket) | |
18637 | choke me | |
18638 | #else | |
698dcdb6 | 18639 | socket(); |
c63c7106 VZ |
18640 | #endif |
18641 | ||
698dcdb6 VZ |
18642 | ; return 0; } |
18643 | EOF | |
d558c907 | 18644 | if { (eval echo configure:18645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18645 | rm -rf conftest* |
18646 | eval "ac_cv_func_socket=yes" | |
18647 | else | |
18648 | echo "configure: failed program was:" >&5 | |
18649 | cat conftest.$ac_ext >&5 | |
18650 | rm -rf conftest* | |
18651 | eval "ac_cv_func_socket=no" | |
18652 | fi | |
18653 | rm -f conftest* | |
18654 | fi | |
18655 | ||
18656 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18657 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18658 | : |
18659 | else | |
698dcdb6 VZ |
18660 | echo "$ac_t""no" 1>&6 |
18661 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d558c907 | 18662 | echo "configure:18663: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18663 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18664 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18666 | else |
698dcdb6 | 18667 | ac_save_LIBS="$LIBS" |
c63c7106 | 18668 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18669 | cat > conftest.$ac_ext <<EOF |
d558c907 | 18670 | #line 18671 "configure" |
c63c7106 VZ |
18671 | #include "confdefs.h" |
18672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18673 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18674 | builtin and then its argument prototype would still apply. */ |
18675 | char socket(); | |
18676 | ||
18677 | int main() { | |
18678 | socket() | |
18679 | ; return 0; } | |
18680 | EOF | |
d558c907 | 18681 | if { (eval echo configure:18682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18682 | rm -rf conftest* |
18683 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18684 | else | |
18685 | echo "configure: failed program was:" >&5 | |
18686 | cat conftest.$ac_ext >&5 | |
18687 | rm -rf conftest* | |
18688 | eval "ac_cv_lib_$ac_lib_var=no" | |
18689 | fi | |
18690 | rm -f conftest* | |
18691 | LIBS="$ac_save_LIBS" | |
18692 | ||
18693 | fi | |
18694 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18695 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
18696 | if test "$INET_LINK" != " -lsocket"; then |
18697 | INET_LINK="$INET_LINK -lsocket" | |
18698 | fi | |
c63c7106 | 18699 | else |
698dcdb6 | 18700 | echo "$ac_t""no" 1>&6 |
afc31813 | 18701 | |
3a922bb4 RL |
18702 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18703 | wxUSE_SOCKETS=no | |
18704 | ||
698dcdb6 | 18705 | |
6232543b | 18706 | fi |
b089607b | 18707 | |
3a922bb4 | 18708 | |
1e487827 | 18709 | fi |
afc31813 | 18710 | |
3a922bb4 | 18711 | fi |
0feee163 | 18712 | fi |
51a9faba | 18713 | |
0feee163 VZ |
18714 | if test "$wxUSE_SOCKETS" = "yes" ; then |
18715 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18716 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
d558c907 | 18717 | echo "configure:18718: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18718 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18720 | else | |
18721 | ||
3a922bb4 RL |
18722 | |
18723 | ac_ext=C | |
698dcdb6 | 18724 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18725 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18726 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18727 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18728 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18729 | |
698dcdb6 | 18730 | |
3a922bb4 | 18731 | cat > conftest.$ac_ext <<EOF |
d558c907 | 18732 | #line 18733 "configure" |
afc31813 | 18733 | #include "confdefs.h" |
51a9faba | 18734 | |
3a922bb4 RL |
18735 | #include <sys/types.h> |
18736 | #include <sys/socket.h> | |
18737 | ||
698dcdb6 | 18738 | int main() { |
51a9faba | 18739 | |
3a922bb4 RL |
18740 | socklen_t len; |
18741 | getsockname(0, 0, &len); | |
18742 | ||
698dcdb6 VZ |
18743 | ; return 0; } |
18744 | EOF | |
d558c907 | 18745 | if { (eval echo configure:18746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18746 | rm -rf conftest* |
51a9faba | 18747 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18748 | else |
698dcdb6 VZ |
18749 | echo "configure: failed program was:" >&5 |
18750 | cat conftest.$ac_ext >&5 | |
18751 | rm -rf conftest* | |
18752 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18753 | #line 18754 "configure" |
afc31813 | 18754 | #include "confdefs.h" |
51a9faba | 18755 | |
3a922bb4 RL |
18756 | #include <sys/types.h> |
18757 | #include <sys/socket.h> | |
18758 | ||
698dcdb6 | 18759 | int main() { |
51a9faba | 18760 | |
3a922bb4 RL |
18761 | size_t len; |
18762 | getsockname(0, 0, &len); | |
18763 | ||
698dcdb6 VZ |
18764 | ; return 0; } |
18765 | EOF | |
d558c907 | 18766 | if { (eval echo configure:18767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18767 | rm -rf conftest* |
51a9faba | 18768 | wx_cv_type_getsockname3=size_t |
afc31813 | 18769 | else |
698dcdb6 VZ |
18770 | echo "configure: failed program was:" >&5 |
18771 | cat conftest.$ac_ext >&5 | |
18772 | rm -rf conftest* | |
18773 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18774 | #line 18775 "configure" |
afc31813 | 18775 | #include "confdefs.h" |
51a9faba | 18776 | |
3a922bb4 RL |
18777 | #include <sys/types.h> |
18778 | #include <sys/socket.h> | |
18779 | ||
698dcdb6 | 18780 | int main() { |
51a9faba | 18781 | |
3a922bb4 RL |
18782 | int len; |
18783 | getsockname(0, 0, &len); | |
18784 | ||
698dcdb6 VZ |
18785 | ; return 0; } |
18786 | EOF | |
d558c907 | 18787 | if { (eval echo configure:18788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18788 | rm -rf conftest* |
51a9faba | 18789 | wx_cv_type_getsockname3=int |
afc31813 | 18790 | else |
698dcdb6 VZ |
18791 | echo "configure: failed program was:" >&5 |
18792 | cat conftest.$ac_ext >&5 | |
18793 | rm -rf conftest* | |
18794 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18795 | |
afc31813 | 18796 | fi |
698dcdb6 | 18797 | rm -f conftest* |
3a922bb4 | 18798 | |
afc31813 | 18799 | fi |
698dcdb6 | 18800 | rm -f conftest* |
3a922bb4 | 18801 | |
afc31813 | 18802 | fi |
698dcdb6 | 18803 | rm -f conftest* |
51a9faba | 18804 | |
3a922bb4 | 18805 | ac_ext=c |
698dcdb6 | 18806 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18807 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18808 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18809 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18810 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18811 | |
3a922bb4 | 18812 | |
51a9faba | 18813 | fi |
698dcdb6 VZ |
18814 | |
18815 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18816 | |
3a922bb4 RL |
18817 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18818 | wxUSE_SOCKETS=no | |
18819 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18820 | else | |
18821 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18822 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18823 | EOF | |
18824 | ||
3a922bb4 | 18825 | fi |
51a9faba VZ |
18826 | fi |
18827 | fi | |
afc31813 | 18828 | |
51a9faba | 18829 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18830 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18831 | #define wxUSE_SOCKETS 1 |
18832 | EOF | |
18833 | ||
70f7a477 | 18834 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18835 | fi |
18836 | ||
698dcdb6 | 18837 | |
dc3d889d VZ |
18838 | if test "$wxUSE_GUI" = "yes"; then |
18839 | ||
156b2523 GD |
18840 | if test "$TOOLKIT" = "MAC"; then |
18841 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18842 | wxUSE_JOYSTICK=no | |
18843 | fi | |
18844 | if test "$TOOLKIT" = "MOTIF"; then | |
18845 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18846 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
18847 | fi |
18848 | if test "$TOOLKIT" = "X11"; then | |
18849 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
18850 | wxUSE_JOYSTICK=no | |
156b2523 GD |
18851 | fi |
18852 | ||
3a922bb4 RL |
18853 | if test "$TOOLKIT" != "MSW"; then |
18854 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18855 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18856 | do |
698dcdb6 VZ |
18857 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18858 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 18859 | echo "configure:18860: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18860 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18862 | else | |
18863 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18864 | #line 18865 "configure" |
10f2d63a | 18865 | #include "confdefs.h" |
698dcdb6 VZ |
18866 | #include <$ac_hdr> |
18867 | EOF | |
18868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 18869 | { (eval echo configure:18870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18871 | if test -z "$ac_err"; then | |
18872 | rm -rf conftest* | |
18873 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18874 | else |
698dcdb6 VZ |
18875 | echo "$ac_err" >&5 |
18876 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18877 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18878 | rm -rf conftest* |
18879 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18880 | fi |
698dcdb6 | 18881 | rm -f conftest* |
10f2d63a | 18882 | fi |
698dcdb6 VZ |
18883 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18884 | echo "$ac_t""yes" 1>&6 | |
18885 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18886 | cat >> confdefs.h <<EOF | |
18887 | #define $ac_tr_hdr 1 | |
10f2d63a | 18888 | EOF |
698dcdb6 VZ |
18889 | |
18890 | else | |
18891 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18892 | fi |
18893 | done | |
18894 | ||
3a922bb4 RL |
18895 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18896 | wxUSE_JOYSTICK=no | |
156b2523 | 18897 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18898 | fi |
18899 | fi | |
18900 | fi | |
b089607b | 18901 | |
3a922bb4 RL |
18902 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18903 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18904 | #define wxUSE_JOYSTICK 1 |
18905 | EOF | |
18906 | ||
3a922bb4 RL |
18907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18908 | fi | |
dc3d889d VZ |
18909 | fi |
18910 | ||
698dcdb6 | 18911 | |
b089607b VZ |
18912 | if test "$TOOLKIT" != "MSW"; then |
18913 | ||
3a922bb4 RL |
18914 | HAVE_DL_FUNCS=0 |
18915 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18916 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18917 | if test "$USE_DARWIN" = 1; then |
18918 | HAVE_DL_FUNCS=1 | |
18919 | else | |
18920 | for ac_func in dlopen | |
10f2d63a | 18921 | do |
698dcdb6 | 18922 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 18923 | echo "configure:18924: checking for $ac_func" >&5 |
698dcdb6 VZ |
18924 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18926 | else | |
18927 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 18928 | #line 18929 "configure" |
10f2d63a VZ |
18929 | #include "confdefs.h" |
18930 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18931 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18932 | #include <assert.h> |
18933 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18934 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18935 | builtin and then its argument prototype would still apply. */ |
18936 | char $ac_func(); | |
18937 | ||
18938 | int main() { | |
10f2d63a VZ |
18939 | |
18940 | /* The GNU C library defines this for functions which it implements | |
18941 | to always fail with ENOSYS. Some functions are actually named | |
18942 | something starting with __ and the normal name is an alias. */ | |
18943 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18944 | choke me | |
18945 | #else | |
698dcdb6 | 18946 | $ac_func(); |
10f2d63a VZ |
18947 | #endif |
18948 | ||
698dcdb6 VZ |
18949 | ; return 0; } |
18950 | EOF | |
d558c907 | 18951 | if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18952 | rm -rf conftest* |
18953 | eval "ac_cv_func_$ac_func=yes" | |
18954 | else | |
18955 | echo "configure: failed program was:" >&5 | |
18956 | cat conftest.$ac_ext >&5 | |
18957 | rm -rf conftest* | |
18958 | eval "ac_cv_func_$ac_func=no" | |
18959 | fi | |
18960 | rm -f conftest* | |
18961 | fi | |
18962 | ||
18963 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18964 | echo "$ac_t""yes" 1>&6 | |
18965 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18966 | cat >> confdefs.h <<EOF | |
18967 | #define $ac_tr_func 1 | |
18968 | EOF | |
18969 | ||
3a922bb4 | 18970 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18971 | #define HAVE_DLOPEN 1 |
18972 | EOF | |
18973 | ||
3a922bb4 RL |
18974 | HAVE_DL_FUNCS=1 |
18975 | ||
10f2d63a | 18976 | else |
698dcdb6 VZ |
18977 | echo "$ac_t""no" 1>&6 |
18978 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d558c907 | 18979 | echo "configure:18980: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18980 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18981 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18983 | else |
698dcdb6 | 18984 | ac_save_LIBS="$LIBS" |
10f2d63a | 18985 | LIBS="-ldl $LIBS" |
698dcdb6 | 18986 | cat > conftest.$ac_ext <<EOF |
d558c907 | 18987 | #line 18988 "configure" |
10f2d63a VZ |
18988 | #include "confdefs.h" |
18989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18990 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18991 | builtin and then its argument prototype would still apply. */ |
18992 | char dlopen(); | |
18993 | ||
18994 | int main() { | |
18995 | dlopen() | |
18996 | ; return 0; } | |
18997 | EOF | |
d558c907 | 18998 | if { (eval echo configure:18999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18999 | rm -rf conftest* |
19000 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19001 | else | |
19002 | echo "configure: failed program was:" >&5 | |
19003 | cat conftest.$ac_ext >&5 | |
19004 | rm -rf conftest* | |
19005 | eval "ac_cv_lib_$ac_lib_var=no" | |
19006 | fi | |
19007 | rm -f conftest* | |
19008 | LIBS="$ac_save_LIBS" | |
19009 | ||
19010 | fi | |
19011 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19012 | echo "$ac_t""yes" 1>&6 | |
19013 | ||
3a922bb4 | 19014 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19015 | #define HAVE_DLOPEN 1 |
19016 | EOF | |
19017 | ||
3a922bb4 | 19018 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19019 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19020 | |
10f2d63a | 19021 | else |
698dcdb6 | 19022 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19023 | |
3a922bb4 | 19024 | for ac_func in shl_load |
10f2d63a | 19025 | do |
698dcdb6 | 19026 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 19027 | echo "configure:19028: checking for $ac_func" >&5 |
698dcdb6 VZ |
19028 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19030 | else | |
19031 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 19032 | #line 19033 "configure" |
10f2d63a VZ |
19033 | #include "confdefs.h" |
19034 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19035 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19036 | #include <assert.h> |
19037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19038 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19039 | builtin and then its argument prototype would still apply. */ |
19040 | char $ac_func(); | |
19041 | ||
19042 | int main() { | |
10f2d63a VZ |
19043 | |
19044 | /* The GNU C library defines this for functions which it implements | |
19045 | to always fail with ENOSYS. Some functions are actually named | |
19046 | something starting with __ and the normal name is an alias. */ | |
19047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19048 | choke me | |
19049 | #else | |
698dcdb6 | 19050 | $ac_func(); |
10f2d63a VZ |
19051 | #endif |
19052 | ||
698dcdb6 VZ |
19053 | ; return 0; } |
19054 | EOF | |
d558c907 | 19055 | if { (eval echo configure:19056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19056 | rm -rf conftest* |
19057 | eval "ac_cv_func_$ac_func=yes" | |
19058 | else | |
19059 | echo "configure: failed program was:" >&5 | |
19060 | cat conftest.$ac_ext >&5 | |
19061 | rm -rf conftest* | |
19062 | eval "ac_cv_func_$ac_func=no" | |
19063 | fi | |
19064 | rm -f conftest* | |
19065 | fi | |
19066 | ||
19067 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19068 | echo "$ac_t""yes" 1>&6 | |
19069 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19070 | cat >> confdefs.h <<EOF | |
19071 | #define $ac_tr_func 1 | |
19072 | EOF | |
19073 | ||
3a922bb4 | 19074 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19075 | #define HAVE_SHL_LOAD 1 |
19076 | EOF | |
19077 | ||
3a922bb4 RL |
19078 | HAVE_SHL_FUNCS=1 |
19079 | ||
10f2d63a | 19080 | else |
698dcdb6 VZ |
19081 | echo "$ac_t""no" 1>&6 |
19082 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
d558c907 | 19083 | echo "configure:19084: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19084 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19085 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19087 | else |
698dcdb6 | 19088 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19089 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19090 | cat > conftest.$ac_ext <<EOF |
d558c907 | 19091 | #line 19092 "configure" |
f6bcfd97 BP |
19092 | #include "confdefs.h" |
19093 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19094 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19095 | builtin and then its argument prototype would still apply. */ |
19096 | char dld(); | |
19097 | ||
19098 | int main() { | |
19099 | dld() | |
19100 | ; return 0; } | |
19101 | EOF | |
d558c907 | 19102 | if { (eval echo configure:19103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19103 | rm -rf conftest* |
19104 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19105 | else | |
19106 | echo "configure: failed program was:" >&5 | |
19107 | cat conftest.$ac_ext >&5 | |
19108 | rm -rf conftest* | |
19109 | eval "ac_cv_lib_$ac_lib_var=no" | |
19110 | fi | |
19111 | rm -f conftest* | |
19112 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19113 | |
698dcdb6 VZ |
19114 | fi |
19115 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19116 | echo "$ac_t""yes" 1>&6 | |
19117 | ||
3a922bb4 | 19118 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19119 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19120 | |
698dcdb6 VZ |
19121 | else |
19122 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19123 | fi |
19124 | ||
3a922bb4 | 19125 | |
10f2d63a VZ |
19126 | fi |
19127 | done | |
19128 | ||
3a922bb4 | 19129 | |
10f2d63a VZ |
19130 | fi |
19131 | ||
3a922bb4 | 19132 | |
10f2d63a VZ |
19133 | fi |
19134 | done | |
19135 | ||
1e487827 | 19136 | |
3a922bb4 RL |
19137 | if test "$HAVE_DL_FUNCS" = 1; then |
19138 | for ac_func in dlerror | |
f6bcfd97 | 19139 | do |
698dcdb6 | 19140 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d558c907 | 19141 | echo "configure:19142: checking for $ac_func" >&5 |
698dcdb6 VZ |
19142 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19144 | else | |
19145 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 19146 | #line 19147 "configure" |
f6bcfd97 BP |
19147 | #include "confdefs.h" |
19148 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19149 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19150 | #include <assert.h> |
19151 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19152 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19153 | builtin and then its argument prototype would still apply. */ |
19154 | char $ac_func(); | |
19155 | ||
19156 | int main() { | |
f6bcfd97 BP |
19157 | |
19158 | /* The GNU C library defines this for functions which it implements | |
19159 | to always fail with ENOSYS. Some functions are actually named | |
19160 | something starting with __ and the normal name is an alias. */ | |
19161 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19162 | choke me | |
19163 | #else | |
698dcdb6 | 19164 | $ac_func(); |
f6bcfd97 BP |
19165 | #endif |
19166 | ||
698dcdb6 VZ |
19167 | ; return 0; } |
19168 | EOF | |
d558c907 | 19169 | if { (eval echo configure:19170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19170 | rm -rf conftest* |
19171 | eval "ac_cv_func_$ac_func=yes" | |
19172 | else | |
19173 | echo "configure: failed program was:" >&5 | |
19174 | cat conftest.$ac_ext >&5 | |
19175 | rm -rf conftest* | |
19176 | eval "ac_cv_func_$ac_func=no" | |
19177 | fi | |
19178 | rm -f conftest* | |
19179 | fi | |
19180 | ||
19181 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19182 | echo "$ac_t""yes" 1>&6 | |
19183 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19184 | cat >> confdefs.h <<EOF | |
19185 | #define $ac_tr_func 1 | |
19186 | EOF | |
19187 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19188 | #define HAVE_DLERROR 1 |
19189 | EOF | |
19190 | ||
19191 | else | |
698dcdb6 VZ |
19192 | echo "$ac_t""no" 1>&6 |
19193 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
d558c907 | 19194 | echo "configure:19195: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19195 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19198 | else |
698dcdb6 | 19199 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19200 | LIBS="-ldl $LIBS" |
698dcdb6 | 19201 | cat > conftest.$ac_ext <<EOF |
d558c907 | 19202 | #line 19203 "configure" |
f6bcfd97 BP |
19203 | #include "confdefs.h" |
19204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19205 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19206 | builtin and then its argument prototype would still apply. */ |
19207 | char dlerror(); | |
19208 | ||
19209 | int main() { | |
19210 | dlerror() | |
19211 | ; return 0; } | |
19212 | EOF | |
d558c907 | 19213 | if { (eval echo configure:19214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19214 | rm -rf conftest* |
19215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19216 | else | |
19217 | echo "configure: failed program was:" >&5 | |
19218 | cat conftest.$ac_ext >&5 | |
19219 | rm -rf conftest* | |
19220 | eval "ac_cv_lib_$ac_lib_var=no" | |
19221 | fi | |
19222 | rm -f conftest* | |
19223 | LIBS="$ac_save_LIBS" | |
19224 | ||
19225 | fi | |
19226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19227 | echo "$ac_t""yes" 1>&6 | |
19228 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19229 | #define HAVE_DLERROR 1 |
19230 | EOF | |
19231 | ||
698dcdb6 VZ |
19232 | else |
19233 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19234 | fi |
19235 | ||
19236 | fi | |
19237 | done | |
19238 | ||
3a922bb4 RL |
19239 | fi |
19240 | fi | |
f6bcfd97 | 19241 | |
3a922bb4 RL |
19242 | if test "$HAVE_DL_FUNCS" = 0; then |
19243 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19244 | if test "$USE_UNIX" = 1; then | |
19245 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19246 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19247 | wxUSE_DYNLIB_CLASS=no |
19248 | else | |
19249 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19250 | fi | |
19251 | fi | |
10f2d63a VZ |
19252 | fi |
19253 | fi | |
19254 | fi | |
19255 | ||
0b9ab0bd RL |
19256 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19257 | cat >> confdefs.h <<\EOF | |
19258 | #define wxUSE_DYNAMIC_LOADER 1 | |
19259 | EOF | |
19260 | ||
19261 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19262 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19263 | #define wxUSE_DYNLIB_CLASS 1 |
19264 | EOF | |
19265 | ||
19266 | fi | |
19267 | ||
698dcdb6 | 19268 | |
1e6feb95 VZ |
19269 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19270 | cat >> confdefs.h <<\EOF | |
19271 | #define wxUSE_FONTMAP 1 | |
19272 | EOF | |
19273 | ||
19274 | fi | |
19275 | ||
10f2d63a | 19276 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19278 | #define wxUSE_UNICODE 1 |
19279 | EOF | |
19280 | ||
a72a4bfa VS |
19281 | |
19282 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19283 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
d558c907 | 19284 | echo "configure:19285: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19285 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19286 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19288 | else | |
19289 | ac_save_LIBS="$LIBS" | |
19290 | LIBS="-lunicows $LIBS" | |
19291 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 19292 | #line 19293 "configure" |
a72a4bfa VS |
19293 | #include "confdefs.h" |
19294 | ||
19295 | int main() { | |
19296 | main() | |
19297 | ; return 0; } | |
19298 | EOF | |
d558c907 | 19299 | if { (eval echo configure:19300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19300 | rm -rf conftest* |
19301 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19302 | else | |
19303 | echo "configure: failed program was:" >&5 | |
19304 | cat conftest.$ac_ext >&5 | |
19305 | rm -rf conftest* | |
19306 | eval "ac_cv_lib_$ac_lib_var=no" | |
19307 | fi | |
19308 | rm -f conftest* | |
19309 | LIBS="$ac_save_LIBS" | |
19310 | ||
19311 | fi | |
19312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19313 | echo "$ac_t""yes" 1>&6 | |
19314 | ||
19315 | cat >> confdefs.h <<\EOF | |
19316 | #define wxUSE_UNICODE_MSLU 1 | |
19317 | EOF | |
19318 | ||
19319 | ||
19320 | else | |
19321 | echo "$ac_t""no" 1>&6 | |
19322 | ||
19323 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19324 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19325 | wxUSE_UNICODE_MSLU=no | |
19326 | ||
19327 | fi | |
19328 | ||
19329 | fi | |
10f2d63a VZ |
19330 | fi |
19331 | ||
10f2d63a | 19332 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19334 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19335 | EOF | |
19336 | ||
19337 | fi | |
19338 | ||
698dcdb6 | 19339 | |
698dcdb6 | 19340 | |
10f2d63a VZ |
19341 | IODBC_C_SRC="" |
19342 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19343 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19344 | #define wxUSE_ODBC 1 |
19345 | EOF | |
19346 | ||
19347 | WXODBCFLAG="-D_IODBC_" | |
19348 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19349 | fi |
19350 | ||
698dcdb6 | 19351 | |
10f2d63a | 19352 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19353 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19354 | #define wxUSE_POSTSCRIPT 1 |
19355 | EOF | |
19356 | ||
19357 | fi | |
19358 | ||
698dcdb6 | 19359 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19360 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19361 | EOF | |
19362 | ||
698dcdb6 VZ |
19363 | |
19364 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19365 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19366 | EOF | |
19367 | ||
698dcdb6 VZ |
19368 | |
19369 | ||
10f2d63a | 19370 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19371 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19372 | #define wxUSE_CONSTRAINTS 1 |
19373 | EOF | |
19374 | ||
19375 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19376 | fi | |
19377 | ||
19378 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19379 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19380 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19381 | wxUSE_MDI_ARCHITECTURE=no |
19382 | fi | |
19383 | ||
19384 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19385 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19386 | #define wxUSE_MDI_ARCHITECTURE 1 |
19387 | EOF | |
19388 | ||
fc26f4ab RL |
19389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19390 | fi | |
10f2d63a VZ |
19391 | fi |
19392 | ||
19393 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19394 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19395 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19396 | EOF | |
19397 | ||
19398 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19399 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19400 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19401 | fi | |
19402 | fi | |
19403 | ||
19404 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19405 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19406 | #define wxUSE_HELP 1 |
19407 | EOF | |
19408 | ||
19409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19410 | |
77e13408 | 19411 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19412 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
19413 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
19414 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
d558c907 | 19415 | echo "configure:19416: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
19416 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19418 | else | |
19419 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 19420 | #line 19421 "configure" |
29fd3c0c VS |
19421 | #include "confdefs.h" |
19422 | #include <htmlhelp.h> | |
19423 | EOF | |
19424 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 19425 | { (eval echo configure:19426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
19426 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19427 | if test -z "$ac_err"; then | |
19428 | rm -rf conftest* | |
19429 | eval "ac_cv_header_$ac_safe=yes" | |
19430 | else | |
19431 | echo "$ac_err" >&5 | |
19432 | echo "configure: failed program was:" >&5 | |
19433 | cat conftest.$ac_ext >&5 | |
19434 | rm -rf conftest* | |
19435 | eval "ac_cv_header_$ac_safe=no" | |
19436 | fi | |
19437 | rm -f conftest* | |
19438 | fi | |
19439 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19440 | echo "$ac_t""yes" 1>&6 | |
19441 | ||
19442 | cat >> confdefs.h <<\EOF | |
19443 | #define wxUSE_MS_HTML_HELP 1 | |
19444 | EOF | |
19445 | ||
19446 | ||
19447 | else | |
19448 | echo "$ac_t""no" 1>&6 | |
19449 | ||
fc26f4ab | 19450 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
19451 | wxUSE_MS_HTML_HELP=no |
19452 | ||
19453 | fi | |
19454 | ||
3e44f09d | 19455 | fi |
3379ed37 | 19456 | fi |
031d8228 VS |
19457 | |
19458 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19459 | if test "$wxUSE_HTML" = "yes"; then | |
19460 | cat >> confdefs.h <<\EOF | |
19461 | #define wxUSE_WXHTML_HELP 1 | |
19462 | EOF | |
19463 | ||
19464 | else | |
19465 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19466 | wxUSE_WXHTML_HELP=no | |
19467 | fi | |
19468 | fi | |
10f2d63a VZ |
19469 | fi |
19470 | ||
19471 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19472 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19473 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19474 | else |
698dcdb6 | 19475 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19476 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19477 | EOF | |
19478 | ||
19479 | fi | |
19480 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19481 | fi | |
19482 | ||
19483 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19484 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19485 | #define wxUSE_PROLOGIO 1 |
19486 | EOF | |
19487 | ||
19488 | fi | |
19489 | ||
19490 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19491 | if test "$wxUSE_NANOX" = "yes"; then |
19492 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19493 | else | |
19494 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19495 | #define wxUSE_RESOURCES 1 |
19496 | EOF | |
19497 | ||
e334d0ea JS |
19498 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19499 | fi | |
10f2d63a VZ |
19500 | fi |
19501 | ||
19502 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19503 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19504 | #define wxUSE_X_RESOURCES 1 |
19505 | EOF | |
19506 | ||
19507 | fi | |
19508 | ||
698dcdb6 | 19509 | |
77e13408 RL |
19510 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19511 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19512 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19513 | for ac_hdr in ole2.h |
10f2d63a | 19514 | do |
698dcdb6 VZ |
19515 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19516 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d558c907 | 19517 | echo "configure:19518: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19518 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19520 | else | |
19521 | cat > conftest.$ac_ext <<EOF | |
d558c907 | 19522 | #line 19523 "configure" |
10f2d63a | 19523 | #include "confdefs.h" |
698dcdb6 VZ |
19524 | #include <$ac_hdr> |
19525 | EOF | |
19526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d558c907 | 19527 | { (eval echo configure:19528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19529 | if test -z "$ac_err"; then | |
19530 | rm -rf conftest* | |
19531 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19532 | else |
698dcdb6 VZ |
19533 | echo "$ac_err" >&5 |
19534 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19535 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19536 | rm -rf conftest* |
19537 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19538 | fi |
698dcdb6 | 19539 | rm -f conftest* |
10f2d63a | 19540 | fi |
698dcdb6 VZ |
19541 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19542 | echo "$ac_t""yes" 1>&6 | |
19543 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19544 | cat >> confdefs.h <<EOF | |
19545 | #define $ac_tr_hdr 1 | |
10f2d63a | 19546 | EOF |
698dcdb6 VZ |
19547 | |
19548 | else | |
19549 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19550 | fi |
19551 | done | |
19552 | ||
698dcdb6 | 19553 | |
2b9bdf71 VZ |
19554 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19555 | if test "$GCC" = yes ; then | |
19556 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19557 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19558 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19559 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19560 | #define wxUSE_OLE 1 |
19561 | EOF | |
19562 | ||
b64f0a5f | 19563 | |
2b9bdf71 VZ |
19564 | fi |
19565 | ||
19566 | cat >> confdefs.h <<\EOF | |
19567 | #define wxUSE_DATAOBJ 1 | |
19568 | EOF | |
19569 | ||
19570 | else | |
19571 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19572 | ||
19573 | wxUSE_CLIPBOARD=no | |
19574 | wxUSE_DRAG_AND_DROP=no | |
19575 | wxUSE_DATAOBJ=no | |
19576 | fi | |
19577 | ||
77e13408 | 19578 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19579 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19580 | #define wxUSE_METAFILE 1 |
19581 | EOF | |
19582 | ||
2b9bdf71 VZ |
19583 | |
19584 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19585 | #define wxUSE_ENH_METAFILE 1 |
19586 | EOF | |
19587 | ||
2b9bdf71 VZ |
19588 | fi |
19589 | fi | |
19590 | ||
19591 | if test "$wxUSE_IPC" = "yes"; then | |
19592 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19593 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19594 | fi |
19595 | ||
19596 | cat >> confdefs.h <<\EOF | |
19597 | #define wxUSE_IPC 1 | |
19598 | EOF | |
19599 | ||
19600 | fi | |
19601 | ||
19602 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
178572bb RR |
19603 | if test "$wxUSE_X11" = 1; then |
19604 | echo "configure: warning: Clipboard not yet supported under X11... disabled" 1>&2 | |
19605 | wxUSE_CLIPBOARD=no | |
19606 | fi | |
19607 | ||
19608 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19609 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19610 | #define wxUSE_CLIPBOARD 1 |
19611 | EOF | |
19612 | ||
673f4220 | 19613 | |
178572bb | 19614 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19615 | #define wxUSE_DATAOBJ 1 |
19616 | EOF | |
19617 | ||
178572bb | 19618 | fi |
2b9bdf71 VZ |
19619 | fi |
19620 | ||
19621 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19622 | if test "$wxUSE_GTK" = 1; then | |
19623 | if test "$WXGTK12" != 1; then | |
156b2523 | 19624 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19625 | wxUSE_DRAG_AND_DROP=no |
19626 | fi | |
19627 | fi | |
19628 | ||
2b9bdf71 | 19629 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19630 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19631 | wxUSE_DRAG_AND_DROP=no |
19632 | fi | |
19633 | ||
f79bd02d JS |
19634 | if test "$wxUSE_X11" = 1; then |
19635 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19636 | wxUSE_DRAG_AND_DROP=no | |
19637 | fi | |
19638 | ||
10f2d63a | 19639 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19640 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19641 | #define wxUSE_DRAG_AND_DROP 1 |
19642 | EOF | |
19643 | ||
19644 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19645 | fi | |
19646 | ||
19647 | fi | |
19648 | ||
19649 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19650 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19651 | #define wxUSE_SPLINES 1 |
19652 | EOF | |
19653 | ||
19654 | fi | |
19655 | ||
698dcdb6 | 19656 | |
1e6feb95 VZ |
19657 | USES_CONTROLS=0 |
19658 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19659 | USES_CONTROLS=1 | |
19660 | fi | |
19661 | ||
10f2d63a | 19662 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19663 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19664 | #define wxUSE_ACCEL 1 |
19665 | EOF | |
19666 | ||
1e6feb95 VZ |
19667 | USES_CONTROLS=1 |
19668 | fi | |
19669 | ||
19670 | if test "$wxUSE_BUTTON" = "yes"; then | |
19671 | cat >> confdefs.h <<\EOF | |
19672 | #define wxUSE_BUTTON 1 | |
19673 | EOF | |
19674 | ||
19675 | USES_CONTROLS=1 | |
19676 | fi | |
19677 | ||
19678 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19679 | cat >> confdefs.h <<\EOF | |
19680 | #define wxUSE_BMPBUTTON 1 | |
19681 | EOF | |
19682 | ||
19683 | USES_CONTROLS=1 | |
19684 | fi | |
19685 | ||
19686 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19687 | cat >> confdefs.h <<\EOF | |
19688 | #define wxUSE_CALENDARCTRL 1 | |
19689 | EOF | |
19690 | ||
19691 | USES_CONTROLS=1 | |
19692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19693 | fi |
19694 | ||
19695 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19696 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19697 | #define wxUSE_CARET 1 |
19698 | EOF | |
19699 | ||
1e6feb95 | 19700 | USES_CONTROLS=1 |
10f2d63a VZ |
19701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19702 | fi | |
19703 | ||
19704 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19705 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19706 | #define wxUSE_COMBOBOX 1 |
19707 | EOF | |
19708 | ||
1e6feb95 | 19709 | USES_CONTROLS=1 |
10f2d63a VZ |
19710 | fi |
19711 | ||
19712 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19713 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19714 | #define wxUSE_CHOICE 1 |
19715 | EOF | |
19716 | ||
1e6feb95 | 19717 | USES_CONTROLS=1 |
10f2d63a VZ |
19718 | fi |
19719 | ||
19720 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19721 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19722 | #define wxUSE_CHECKBOX 1 |
19723 | EOF | |
19724 | ||
1e6feb95 | 19725 | USES_CONTROLS=1 |
10f2d63a VZ |
19726 | fi |
19727 | ||
19728 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19729 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19730 | #define wxUSE_CHECKLISTBOX 1 |
19731 | EOF | |
19732 | ||
1e6feb95 | 19733 | USES_CONTROLS=1 |
10f2d63a VZ |
19734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19735 | fi | |
19736 | ||
19737 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19738 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19739 | #define wxUSE_GAUGE 1 |
19740 | EOF | |
19741 | ||
1e6feb95 | 19742 | USES_CONTROLS=1 |
10f2d63a VZ |
19743 | fi |
19744 | ||
d6a55c4b VZ |
19745 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19746 | wxUSE_GRID="yes" | |
698dcdb6 | 19747 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19748 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19749 | EOF |
19750 | ||
1e6feb95 | 19751 | USES_CONTROLS=1 |
d6a55c4b | 19752 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19753 | fi |
19754 | ||
d6a55c4b | 19755 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19756 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19757 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19758 | EOF |
19759 | ||
1e6feb95 | 19760 | USES_CONTROLS=1 |
d6a55c4b | 19761 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19762 | fi |
19763 | ||
19764 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19765 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19766 | #define wxUSE_IMAGLIST 1 |
19767 | EOF | |
19768 | ||
19769 | fi | |
19770 | ||
19771 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19773 | #define wxUSE_LISTBOX 1 |
19774 | EOF | |
19775 | ||
1e6feb95 | 19776 | USES_CONTROLS=1 |
10f2d63a VZ |
19777 | fi |
19778 | ||
19779 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19780 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19781 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19782 | #define wxUSE_LISTCTRL 1 |
19783 | EOF | |
19784 | ||
1e6feb95 | 19785 | USES_CONTROLS=1 |
10f2d63a VZ |
19786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19787 | else | |
698dcdb6 | 19788 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19789 | fi |
19790 | fi | |
19791 | ||
19792 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19793 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19794 | #define wxUSE_NOTEBOOK 1 |
19795 | EOF | |
19796 | ||
1e6feb95 | 19797 | USES_CONTROLS=1 |
10f2d63a VZ |
19798 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19799 | fi | |
19800 | ||
24176f2c GD |
19801 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19802 | cat >> confdefs.h <<\EOF | |
19803 | #define wxUSE_PROPSHEET 1 | |
19804 | EOF | |
19805 | ||
19806 | USES_CONTROLS=1 | |
19807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19808 | fi | |
19809 | ||
10f2d63a | 19810 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19811 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19812 | #define wxUSE_RADIOBOX 1 |
19813 | EOF | |
19814 | ||
1e6feb95 | 19815 | USES_CONTROLS=1 |
10f2d63a VZ |
19816 | fi |
19817 | ||
19818 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19819 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19820 | #define wxUSE_RADIOBTN 1 |
19821 | EOF | |
19822 | ||
1e6feb95 | 19823 | USES_CONTROLS=1 |
10f2d63a VZ |
19824 | fi |
19825 | ||
19826 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19827 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19828 | #define wxUSE_SASH 1 |
19829 | EOF | |
19830 | ||
19831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19832 | fi | |
19833 | ||
19834 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19835 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19836 | #define wxUSE_SCROLLBAR 1 |
19837 | EOF | |
19838 | ||
1e6feb95 | 19839 | USES_CONTROLS=1 |
741a9306 | 19840 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19841 | fi |
19842 | ||
19843 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19844 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19845 | #define wxUSE_SLIDER 1 |
19846 | EOF | |
19847 | ||
1e6feb95 | 19848 | USES_CONTROLS=1 |
10f2d63a VZ |
19849 | fi |
19850 | ||
19851 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19852 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19853 | #define wxUSE_SPINBTN 1 |
19854 | EOF | |
19855 | ||
1e6feb95 | 19856 | USES_CONTROLS=1 |
10f2d63a VZ |
19857 | fi |
19858 | ||
56cfaa52 | 19859 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19860 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19861 | #define wxUSE_SPINCTRL 1 |
19862 | EOF | |
19863 | ||
1e6feb95 | 19864 | USES_CONTROLS=1 |
56cfaa52 RR |
19865 | fi |
19866 | ||
10f2d63a | 19867 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19869 | #define wxUSE_SPLITTER 1 |
19870 | EOF | |
19871 | ||
19872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19873 | fi | |
19874 | ||
19875 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19876 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19877 | #define wxUSE_STATBMP 1 |
19878 | EOF | |
19879 | ||
1e6feb95 | 19880 | USES_CONTROLS=1 |
10f2d63a VZ |
19881 | fi |
19882 | ||
19883 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19884 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19885 | #define wxUSE_STATBOX 1 |
19886 | EOF | |
19887 | ||
1e6feb95 VZ |
19888 | USES_CONTROLS=1 |
19889 | fi | |
19890 | ||
19891 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19892 | cat >> confdefs.h <<\EOF | |
19893 | #define wxUSE_STATTEXT 1 | |
19894 | EOF | |
19895 | ||
19896 | USES_CONTROLS=1 | |
10f2d63a VZ |
19897 | fi |
19898 | ||
19899 | if test "$wxUSE_STATLINE" = "yes"; then | |
19900 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19901 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19902 | else |
698dcdb6 | 19903 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19904 | #define wxUSE_STATLINE 1 |
19905 | EOF | |
19906 | ||
1e6feb95 | 19907 | USES_CONTROLS=1 |
10f2d63a VZ |
19908 | fi |
19909 | fi | |
19910 | ||
19911 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19912 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19913 | #define wxUSE_STATUSBAR 1 |
19914 | EOF | |
19915 | ||
1e6feb95 | 19916 | USES_CONTROLS=1 |
698dcdb6 | 19917 | |
2286341c | 19918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19919 | fi |
19920 | ||
19921 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19922 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19923 | #define wxUSE_TAB_DIALOG 1 |
19924 | EOF | |
19925 | ||
19926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19927 | fi | |
19928 | ||
1e6feb95 VZ |
19929 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19930 | cat >> confdefs.h <<\EOF | |
19931 | #define wxUSE_TEXTCTRL 1 | |
19932 | EOF | |
19933 | ||
19934 | USES_CONTROLS=1 | |
19935 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19936 | fi | |
19937 | ||
1db8dc4a | 19938 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19939 | if test "$wxUSE_MAC" = 1; then |
19940 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19941 | wxUSE_TOGGLEBTN=no | |
19942 | fi | |
19943 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 19944 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
19945 | wxUSE_TOGGLEBTN=no |
19946 | fi | |
19947 | ||
19948 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19949 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19950 | #define wxUSE_TOGGLEBTN 1 |
19951 | EOF | |
19952 | ||
1e6feb95 | 19953 | USES_CONTROLS=1 |
a45d7ab7 | 19954 | fi |
1db8dc4a VZ |
19955 | fi |
19956 | ||
360d6699 | 19957 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19958 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19959 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19960 | EOF | |
19961 | ||
19962 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19963 | USES_CONTROLS=1 |
360d6699 VZ |
19964 | fi |
19965 | ||
10f2d63a | 19966 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19967 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19968 | #define wxUSE_TOOLBAR 1 |
19969 | EOF | |
19970 | ||
1e6feb95 | 19971 | USES_CONTROLS=1 |
698dcdb6 | 19972 | |
360d6699 VZ |
19973 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19974 | wxUSE_TOOLBAR_NATIVE="yes" | |
19975 | fi | |
19976 | ||
1e6feb95 VZ |
19977 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19978 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19979 | #define wxUSE_TOOLBAR_NATIVE 1 |
19980 | EOF | |
19981 | ||
1e6feb95 VZ |
19982 | USES_CONTROLS=1 |
19983 | fi | |
19984 | ||
19985 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19986 | fi |
19987 | ||
10f2d63a VZ |
19988 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19989 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19990 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19991 | else |
19992 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19993 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19994 | else |
69d27ff7 | 19995 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19996 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 19997 | else |
3c011993 | 19998 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19999 | #define wxUSE_TOOLTIPS 1 |
20000 | EOF | |
20001 | ||
69d27ff7 | 20002 | fi |
10f2d63a VZ |
20003 | fi |
20004 | fi | |
20005 | fi | |
20006 | ||
20007 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20008 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20009 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20010 | #define wxUSE_TREECTRL 1 |
20011 | EOF | |
20012 | ||
1e6feb95 | 20013 | USES_CONTROLS=1 |
10f2d63a VZ |
20014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20015 | else | |
698dcdb6 | 20016 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20017 | fi |
20018 | fi | |
20019 | ||
9f41d601 | 20020 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20021 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20022 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20023 | else |
485cf710 VZ |
20024 | if test "$wxUSE_MOTIF" = 1; then |
20025 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20026 | else | |
3c011993 VZ |
20027 | if test "$wxUSE_PM" = 1; then |
20028 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20029 | else | |
20030 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20031 | #define wxUSE_POPUPWIN 1 |
20032 | EOF | |
20033 | ||
9926e4a4 | 20034 | |
3c011993 VZ |
20035 | USES_CONTROLS=1 |
20036 | fi | |
485cf710 | 20037 | fi |
6abe4b65 | 20038 | fi |
9f41d601 RR |
20039 | fi |
20040 | ||
dd964dcc | 20041 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20042 | if test "$wxUSE_PM" = 1; then |
20043 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20044 | else | |
20045 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20046 | #define wxUSE_TIPWINDOW 1 |
20047 | EOF | |
20048 | ||
3c011993 | 20049 | fi |
dd964dcc VZ |
20050 | fi |
20051 | ||
1e6feb95 VZ |
20052 | if test "$USES_CONTROLS" = 1; then |
20053 | cat >> confdefs.h <<\EOF | |
20054 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20055 | EOF |
20056 | ||
10f2d63a VZ |
20057 | fi |
20058 | ||
1e6feb95 | 20059 | |
24176f2c GD |
20060 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20061 | cat >> confdefs.h <<\EOF | |
20062 | #define wxUSE_TREELAYOUT 1 | |
20063 | EOF | |
20064 | ||
20065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20066 | fi | |
1e6feb95 | 20067 | |
24fd6d87 VZ |
20068 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20069 | cat >> confdefs.h <<\EOF | |
20070 | #define wxUSE_DRAGIMAGE 1 | |
20071 | EOF | |
20072 | ||
20073 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20074 | fi | |
20075 | ||
1e6feb95 | 20076 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20077 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20078 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20079 | EOF |
20080 | ||
1e6feb95 | 20081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20082 | fi |
20083 | ||
1e6feb95 VZ |
20084 | if test "$wxUSE_METAFILE" = "yes"; then |
20085 | cat >> confdefs.h <<\EOF | |
20086 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20087 | EOF |
20088 | ||
10f2d63a VZ |
20089 | fi |
20090 | ||
1e6feb95 VZ |
20091 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20092 | cat >> confdefs.h <<\EOF | |
20093 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20094 | EOF |
20095 | ||
10f2d63a VZ |
20096 | fi |
20097 | ||
3e44f09d VZ |
20098 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20099 | cat >> confdefs.h <<\EOF | |
20100 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20101 | EOF | |
20102 | ||
20103 | fi | |
20104 | ||
4cdb0ab0 | 20105 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20106 | if test "$wxUSE_SOCKETS" != "yes"; then |
20107 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20108 | wxUSE_PROTOCOL=no | |
20109 | fi | |
20110 | ||
20111 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20112 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20113 | #define wxUSE_PROTOCOL 1 |
20114 | EOF | |
20115 | ||
20116 | ||
3954f9ca VS |
20117 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20118 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20119 | #define wxUSE_PROTOCOL_HTTP 1 |
20120 | EOF | |
20121 | ||
3954f9ca VS |
20122 | fi |
20123 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20124 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20125 | #define wxUSE_PROTOCOL_FTP 1 |
20126 | EOF | |
20127 | ||
3954f9ca VS |
20128 | fi |
20129 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20130 | cat >> confdefs.h <<\EOF | |
20131 | #define wxUSE_PROTOCOL_FILE 1 | |
20132 | EOF | |
20133 | ||
20134 | fi | |
4cdb0ab0 | 20135 | fi |
3954f9ca VS |
20136 | fi |
20137 | ||
20138 | if test "$wxUSE_URL" = "yes"; then | |
20139 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20140 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20141 | wxUSE_URL=no | |
20142 | fi | |
20143 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20144 | cat >> confdefs.h <<\EOF |
3954f9ca | 20145 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20146 | EOF |
20147 | ||
20148 | fi | |
20149 | fi | |
20150 | ||
10f2d63a | 20151 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20153 | #define wxUSE_MINIFRAME 1 |
20154 | EOF | |
20155 | ||
20156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20157 | fi | |
20158 | ||
20159 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20161 | #define wxUSE_HTML 1 |
20162 | EOF | |
20163 | ||
20164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20165 | fi |
20166 | ||
20167 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20168 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20169 | #define wxUSE_VALIDATORS 1 |
20170 | EOF | |
703e0a69 | 20171 | |
698dcdb6 VZ |
20172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20173 | fi | |
20174 | ||
edae8572 VZ |
20175 | if test "$wxUSE_PALETTE" = "yes" ; then |
20176 | cat >> confdefs.h <<\EOF | |
20177 | #define wxUSE_PALETTE 1 | |
20178 | EOF | |
20179 | ||
20180 | fi | |
20181 | ||
698dcdb6 VZ |
20182 | if test "$wxUSE_IMAGE" = "yes" ; then |
20183 | cat >> confdefs.h <<\EOF | |
20184 | #define wxUSE_IMAGE 1 | |
20185 | EOF | |
20186 | ||
20187 | fi | |
20188 | ||
20189 | if test "$wxUSE_GIF" = "yes" ; then | |
20190 | cat >> confdefs.h <<\EOF | |
20191 | #define wxUSE_GIF 1 | |
20192 | EOF | |
20193 | ||
20194 | fi | |
20195 | ||
20196 | if test "$wxUSE_PCX" = "yes" ; then | |
20197 | cat >> confdefs.h <<\EOF | |
20198 | #define wxUSE_PCX 1 | |
20199 | EOF | |
20200 | ||
20201 | fi | |
20202 | ||
4b6b4dfc RR |
20203 | if test "$wxUSE_IFF" = "yes" ; then |
20204 | cat >> confdefs.h <<\EOF | |
20205 | #define wxUSE_IFF 1 | |
20206 | EOF | |
20207 | ||
20208 | fi | |
20209 | ||
698dcdb6 VZ |
20210 | if test "$wxUSE_PNM" = "yes" ; then |
20211 | cat >> confdefs.h <<\EOF | |
20212 | #define wxUSE_PNM 1 | |
20213 | EOF | |
20214 | ||
20215 | fi | |
20216 | ||
20217 | if test "$wxUSE_XPM" = "yes" ; then | |
20218 | cat >> confdefs.h <<\EOF | |
20219 | #define wxUSE_XPM 1 | |
20220 | EOF | |
20221 | ||
20222 | fi | |
20223 | ||
658974ae VS |
20224 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20225 | cat >> confdefs.h <<\EOF | |
20226 | #define wxUSE_ICO_CUR 1 | |
20227 | EOF | |
20228 | ||
20229 | fi | |
20230 | ||
a72a4bfa VS |
20231 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20232 | LIBS=" -lunicows $LIBS" | |
20233 | fi | |
20234 | ||
698dcdb6 | 20235 | |
1e6feb95 VZ |
20236 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20237 | cat >> confdefs.h <<\EOF | |
20238 | #define wxUSE_CHOICEDLG 1 | |
20239 | EOF | |
20240 | ||
20241 | fi | |
20242 | ||
20243 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20244 | cat >> confdefs.h <<\EOF | |
20245 | #define wxUSE_COLOURDLG 1 | |
20246 | EOF | |
20247 | ||
20248 | fi | |
20249 | ||
20250 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20251 | cat >> confdefs.h <<\EOF | |
20252 | #define wxUSE_FILEDLG 1 | |
20253 | EOF | |
20254 | ||
20255 | fi | |
20256 | ||
8db37e06 VZ |
20257 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20258 | cat >> confdefs.h <<\EOF | |
20259 | #define wxUSE_FINDREPLDLG 1 | |
20260 | EOF | |
20261 | ||
20262 | fi | |
20263 | ||
1e6feb95 VZ |
20264 | if test "$wxUSE_FONTDLG" = "yes"; then |
20265 | cat >> confdefs.h <<\EOF | |
20266 | #define wxUSE_FONTDLG 1 | |
20267 | EOF | |
20268 | ||
20269 | fi | |
20270 | ||
20271 | if test "$wxUSE_DIRDLG" = "yes"; then | |
20272 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20273 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
20274 | else | |
20275 | if test "$wxUSE_TREECTRL" != "yes"; then | |
20276 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
20277 | else | |
20278 | cat >> confdefs.h <<\EOF | |
20279 | #define wxUSE_DIRDLG 1 | |
20280 | EOF | |
20281 | ||
20282 | fi | |
20283 | fi | |
20284 | fi | |
20285 | ||
20286 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20287 | cat >> confdefs.h <<\EOF | |
20288 | #define wxUSE_MSGDLG 1 | |
20289 | EOF | |
20290 | ||
20291 | fi | |
20292 | ||
20293 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20294 | cat >> confdefs.h <<\EOF | |
20295 | #define wxUSE_NUMBERDLG 1 | |
20296 | EOF | |
20297 | ||
20298 | fi | |
20299 | ||
20300 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20301 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20302 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20303 | else | |
20304 | cat >> confdefs.h <<\EOF | |
20305 | #define wxUSE_PROGRESSDLG 1 | |
20306 | EOF | |
20307 | ||
20308 | fi | |
20309 | fi | |
20310 | ||
cbca9943 VZ |
20311 | if test "$wxUSE_SPLASH" = "yes"; then |
20312 | cat >> confdefs.h <<\EOF | |
20313 | #define wxUSE_SPLASH 1 | |
20314 | EOF | |
20315 | ||
20316 | fi | |
20317 | ||
1e6feb95 VZ |
20318 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20319 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20320 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20321 | else | |
20322 | cat >> confdefs.h <<\EOF | |
20323 | #define wxUSE_STARTUP_TIPS 1 | |
20324 | EOF | |
20325 | ||
20326 | fi | |
20327 | fi | |
20328 | ||
20329 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20330 | cat >> confdefs.h <<\EOF | |
20331 | #define wxUSE_TEXTDLG 1 | |
20332 | EOF | |
20333 | ||
20334 | fi | |
20335 | ||
b1f5d087 VZ |
20336 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20337 | cat >> confdefs.h <<\EOF | |
20338 | #define wxUSE_WIZARDDLG 1 | |
20339 | EOF | |
20340 | ||
20341 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20342 | fi | |
20343 | ||
1e6feb95 | 20344 | |
698dcdb6 VZ |
20345 | if test "$cross_compiling" = "yes"; then |
20346 | OSINFO="\"$host\"" | |
20347 | else | |
20348 | OSINFO=`uname -s -r -m` | |
20349 | OSINFO="\"$OSINFO\"" | |
20350 | fi | |
20351 | ||
20352 | cat >> confdefs.h <<EOF | |
20353 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20354 | EOF | |
20355 | ||
20356 | ||
20357 | ||
06dda230 VZ |
20358 | if test "x$prefix" != "xNONE"; then |
20359 | wxPREFIX=$prefix | |
20360 | else | |
20361 | wxPREFIX=$ac_default_prefix | |
20362 | fi | |
20363 | ||
7e67ed0d | 20364 | cat >> confdefs.h <<EOF |
06dda230 | 20365 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20366 | EOF |
20367 | ||
20368 | ||
20369 | ||
698dcdb6 | 20370 | |
3a922bb4 | 20371 | |
f11bdd03 | 20372 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20373 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20374 | fi |
3a922bb4 | 20375 | |
3d63bc3a | 20376 | |
cb61c62d | 20377 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20378 | |
698dcdb6 | 20379 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20380 | |
cb61c62d | 20381 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20382 | |
20383 | ||
20384 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
20385 | drawing dynamic erase event exec font image \ | |
20386 | minimal richedit rotate widgets" | |
20387 | ||
3a922bb4 RL |
20388 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20389 | else | |
20390 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20391 | fi |
20392 | ||
698dcdb6 | 20393 | |
d714471b | 20394 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
cb61c62d | 20395 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
698dcdb6 | 20396 | |
63e7762e | 20397 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20398 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20399 | else |
20400 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20401 | fi | |
20402 | ||
20403 | if test "$GXX" = yes ; then | |
20404 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20405 | |
20406 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20407 | CFLAGS="-MMD $CFLAGS" | |
20408 | CXXFLAGS="-MMD $CXXFLAGS" | |
20409 | fi | |
20410 | fi | |
20411 | ||
1725144d | 20412 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20413 | |
20414 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20415 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20416 | ||
3d63bc3a | 20417 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 20418 | |
698dcdb6 VZ |
20419 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
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 | ||
20473 | ||
20474 | ||
20475 | ||
20476 | ||
20477 | ||
20478 | ||
20479 | ||
20480 | ||
20481 | ||
20482 | ||
20483 | ||
20484 | ||
20485 | ||
20486 | ||
32832908 | 20487 | |
2f51a9ec GD |
20488 | |
20489 | ||
20490 | ||
20491 | ||
f6bcfd97 | 20492 | |
dad6c0ea | 20493 | |
caa2c79b | 20494 | |
3711412e | 20495 | |
1e6feb95 VZ |
20496 | |
20497 | ||
885d4bf5 VS |
20498 | |
20499 | ||
20500 | ||
20501 | ||
9b695262 VZ |
20502 | |
20503 | ||
62d0491b | 20504 | |
10f2d63a VZ |
20505 | |
20506 | ||
698dcdb6 | 20507 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d558c907 | 20508 | echo "configure:20509: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20509 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20510 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20512 | else |
698dcdb6 | 20513 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20514 | all: |
20515 | @echo 'ac_maketemp="${MAKE}"' | |
20516 | EOF | |
20517 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20518 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20519 | if test -n "$ac_maketemp"; then |
20520 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20521 | else | |
20522 | eval ac_cv_prog_make_${ac_make}_set=no | |
20523 | fi | |
698dcdb6 | 20524 | rm -f conftestmake |
10f2d63a VZ |
20525 | fi |
20526 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20527 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20528 | SET_MAKE= |
20529 | else | |
698dcdb6 | 20530 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20531 | SET_MAKE="MAKE=${MAKE-make}" |
20532 | fi | |
20533 | ||
698dcdb6 | 20534 | |
3a922bb4 RL |
20535 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20536 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20537 | fi |
665bbe97 | 20538 | |
698dcdb6 | 20539 | |
10f2d63a | 20540 | |
2224580a | 20541 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 20542 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22c3fb2b | 20543 | wx_cv_if_gnu_make=$IF_GNU_MAKE |
e8482f24 GL |
20544 | wx_cv_path_ifs=$PATH_IFS |
20545 | wx_cv_program_ext=$PROGRAM_EXT | |
20546 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 20547 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 20548 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
22c3fb2b VZ |
20549 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
20550 | wx_cv_path_ifs wx_cv_program_ext \ | |
7b6058cd | 20551 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 20552 | subdirs="demos samples utils contrib" |
2224580a VZ |
20553 | |
20554 | fi | |
10f2d63a | 20555 | |
698dcdb6 VZ |
20556 | trap '' 1 2 15 |
20557 | cat > confcache <<\EOF | |
10f2d63a VZ |
20558 | # This file is a shell script that caches the results of configure |
20559 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20560 | # scripts and configure runs. It is not useful on other systems. |
20561 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20562 | # |
698dcdb6 VZ |
20563 | # By default, configure uses ./config.cache as the cache file, |
20564 | # creating it if it does not exist already. You can give configure | |
20565 | # the --cache-file=FILE option to use a different cache file; that is | |
20566 | # what configure does when it calls configure scripts in | |
20567 | # subdirectories, so they share the cache. | |
20568 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20569 | # config.status only pays attention to the cache file if you give it the | |
20570 | # --recheck option to rerun configure. | |
10f2d63a | 20571 | # |
698dcdb6 | 20572 | EOF |
10f2d63a VZ |
20573 | # The following way of writing the cache mishandles newlines in values, |
20574 | # but we know of no workaround that is simple, portable, and efficient. | |
20575 | # So, don't put newlines in cache variables' values. | |
20576 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20577 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20578 | (set) 2>&1 | |
20579 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20580 | *ac_space=\ *) | |
20581 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20582 | # turns \\\\ into \\, and sed turns \\ into \). | |
20583 | sed -n \ | |
20584 | -e "s/'/'\\\\''/g" \ | |
20585 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20586 | ;; | |
20587 | *) | |
20588 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20589 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20590 | ;; | |
20591 | esac >> confcache | |
20592 | if cmp -s $cache_file confcache; then | |
20593 | : | |
20594 | else | |
10f2d63a | 20595 | if test -w $cache_file; then |
698dcdb6 VZ |
20596 | echo "updating cache $cache_file" |
20597 | cat confcache > $cache_file | |
10f2d63a VZ |
20598 | else |
20599 | echo "not updating unwritable cache $cache_file" | |
20600 | fi | |
20601 | fi | |
20602 | rm -f confcache | |
20603 | ||
698dcdb6 VZ |
20604 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20605 | ||
10f2d63a VZ |
20606 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20607 | # Let make expand exec_prefix. | |
20608 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20609 | ||
698dcdb6 VZ |
20610 | # Any assignment to VPATH causes Sun make to only execute |
20611 | # the first set of double-colon rules, so remove it if not needed. | |
20612 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20613 | if test "x$srcdir" = x.; then |
698dcdb6 | 20614 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20615 | fi |
20616 | ||
698dcdb6 VZ |
20617 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20618 | ||
10f2d63a VZ |
20619 | DEFS=-DHAVE_CONFIG_H |
20620 | ||
698dcdb6 | 20621 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20622 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20623 | |
20624 | echo creating $CONFIG_STATUS | |
20625 | rm -f $CONFIG_STATUS | |
20626 | cat > $CONFIG_STATUS <<EOF | |
20627 | #! /bin/sh | |
10f2d63a VZ |
20628 | # Generated automatically by configure. |
20629 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20630 | # This directory was configured as follows, |
20631 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20632 | # | |
20633 | # $0 $ac_configure_args | |
20634 | # | |
10f2d63a | 20635 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20636 | # configure, is in ./config.log if it exists. |
1e487827 | 20637 | |
698dcdb6 VZ |
20638 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20639 | for ac_option | |
10f2d63a | 20640 | do |
698dcdb6 | 20641 | case "\$ac_option" in |
10f2d63a | 20642 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20643 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20644 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20645 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20646 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20647 | exit 0 ;; | |
20648 | -help | --help | --hel | --he | --h) | |
20649 | echo "\$ac_cs_usage"; exit 0 ;; | |
20650 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20651 | esac |
20652 | done | |
20653 | ||
698dcdb6 VZ |
20654 | ac_given_srcdir=$srcdir |
20655 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20656 | |
698dcdb6 VZ |
20657 | trap 'rm -fr `echo " |
20658 | wx-config | |
20659 | src/make.env | |
20660 | src/makeprog.env | |
20661 | src/makelib.env | |
20662 | Makefile | |
20663 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20664 | EOF |
698dcdb6 | 20665 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20666 | |
698dcdb6 VZ |
20667 | # Protect against being on the right side of a sed subst in config.status. |
20668 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20669 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20670 | $ac_vpsub | |
20671 | $extrasub | |
20672 | s%@SHELL@%$SHELL%g | |
20673 | s%@CFLAGS@%$CFLAGS%g | |
20674 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20675 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20676 | s%@FFLAGS@%$FFLAGS%g | |
20677 | s%@DEFS@%$DEFS%g | |
20678 | s%@LDFLAGS@%$LDFLAGS%g | |
20679 | s%@LIBS@%$LIBS%g | |
20680 | s%@exec_prefix@%$exec_prefix%g | |
20681 | s%@prefix@%$prefix%g | |
20682 | s%@program_transform_name@%$program_transform_name%g | |
20683 | s%@bindir@%$bindir%g | |
20684 | s%@sbindir@%$sbindir%g | |
20685 | s%@libexecdir@%$libexecdir%g | |
20686 | s%@datadir@%$datadir%g | |
20687 | s%@sysconfdir@%$sysconfdir%g | |
20688 | s%@sharedstatedir@%$sharedstatedir%g | |
20689 | s%@localstatedir@%$localstatedir%g | |
20690 | s%@libdir@%$libdir%g | |
20691 | s%@includedir@%$includedir%g | |
20692 | s%@oldincludedir@%$oldincludedir%g | |
20693 | s%@infodir@%$infodir%g | |
20694 | s%@mandir@%$mandir%g | |
20695 | s%@host@%$host%g | |
20696 | s%@host_alias@%$host_alias%g | |
20697 | s%@host_cpu@%$host_cpu%g | |
20698 | s%@host_vendor@%$host_vendor%g | |
20699 | s%@host_os@%$host_os%g | |
20700 | s%@target@%$target%g | |
20701 | s%@target_alias@%$target_alias%g | |
20702 | s%@target_cpu@%$target_cpu%g | |
20703 | s%@target_vendor@%$target_vendor%g | |
20704 | s%@target_os@%$target_os%g | |
20705 | s%@build@%$build%g | |
20706 | s%@build_alias@%$build_alias%g | |
20707 | s%@build_cpu@%$build_cpu%g | |
20708 | s%@build_vendor@%$build_vendor%g | |
20709 | s%@build_os@%$build_os%g | |
20710 | s%@CC@%$CC%g | |
20711 | s%@CPP@%$CPP%g | |
20712 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20713 | s%@RANLIB@%$RANLIB%g |
20714 | s%@AR@%$AR%g | |
20715 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20716 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20717 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20718 | s%@STRIP@%$STRIP%g |
613d0995 | 20719 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20720 | s%@YACC@%$YACC%g |
20721 | s%@LEX@%$LEX%g | |
20722 | s%@LEXLIB@%$LEXLIB%g | |
20723 | s%@LN_S@%$LN_S%g | |
20724 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
20725 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20726 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20727 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20728 | s%@X_CFLAGS@%$X_CFLAGS%g |
20729 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20730 | s%@X_LIBS@%$X_LIBS%g | |
20731 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20732 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20733 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20734 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20735 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20736 | s%@LEX_STEM@%$LEX_STEM%g |
20737 | s%@PATH_IFS@%$PATH_IFS%g | |
20738 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20739 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20740 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20741 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20742 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20743 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20744 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20745 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20746 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20747 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20748 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20749 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20750 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20751 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20752 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20753 | s%@WX_ALL@%$WX_ALL%g |
20754 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20755 | s%@SHARED_LD@%$SHARED_LD%g | |
20756 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20757 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20758 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20759 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20760 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20761 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20762 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20763 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20764 | s%@USE_GUI@%$USE_GUI%g | |
20765 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20766 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20767 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20768 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20769 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20770 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20771 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20772 | s%@cross_compiling@%$cross_compiling%g |
20773 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20774 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20775 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20776 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20777 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20778 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20779 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20780 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20781 | s%@GUIDIST@%$GUIDIST%g |
20782 | s%@PORT_FILES@%$PORT_FILES%g | |
20783 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20784 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20785 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20786 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20787 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20788 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20789 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20790 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20791 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20792 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
20793 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20794 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20795 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20796 | s%@DLLTOOL@%$DLLTOOL%g |
20797 | s%@AS@%$AS%g | |
20798 | s%@NM@%$NM%g | |
20799 | s%@LD@%$LD%g | |
20800 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20801 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20802 | s%@SET_MAKE@%$SET_MAKE%g |
20803 | s%@subdirs@%$subdirs%g | |
1e487827 | 20804 | |
1e487827 | 20805 | CEOF |
1e487827 VS |
20806 | EOF |
20807 | ||
698dcdb6 VZ |
20808 | cat >> $CONFIG_STATUS <<\EOF |
20809 | ||
20810 | # Split the substitutions into bite-sized pieces for seds with | |
20811 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20812 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20813 | ac_file=1 # Number of current file. | |
20814 | ac_beg=1 # First line for current file. | |
20815 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20816 | ac_more_lines=: | |
20817 | ac_sed_cmds="" | |
20818 | while $ac_more_lines; do | |
20819 | if test $ac_beg -gt 1; then | |
20820 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20821 | else | |
20822 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20823 | fi | |
20824 | if test ! -s conftest.s$ac_file; then | |
20825 | ac_more_lines=false | |
20826 | rm -f conftest.s$ac_file | |
20827 | else | |
20828 | if test -z "$ac_sed_cmds"; then | |
20829 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20830 | else |
698dcdb6 | 20831 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20832 | fi |
698dcdb6 VZ |
20833 | ac_file=`expr $ac_file + 1` |
20834 | ac_beg=$ac_end | |
20835 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20836 | fi |
698dcdb6 VZ |
20837 | done |
20838 | if test -z "$ac_sed_cmds"; then | |
20839 | ac_sed_cmds=cat | |
20840 | fi | |
20841 | EOF | |
10f2d63a | 20842 | |
698dcdb6 VZ |
20843 | cat >> $CONFIG_STATUS <<EOF |
20844 | ||
20845 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20846 | src/make.env | |
20847 | src/makeprog.env | |
20848 | src/makelib.env | |
20849 | Makefile | |
20850 | "} | |
10f2d63a | 20851 | EOF |
698dcdb6 VZ |
20852 | cat >> $CONFIG_STATUS <<\EOF |
20853 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20854 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20855 | case "$ac_file" in |
20856 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20857 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20858 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20859 | esac |
20860 | ||
698dcdb6 | 20861 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20862 | |
698dcdb6 VZ |
20863 | # Remove last slash and all that follows it. Not all systems have dirname. |
20864 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20865 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20866 | # The file is in a subdirectory. | |
20867 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20868 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20869 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20870 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20871 | else |
20872 | ac_dir_suffix= ac_dots= | |
20873 | fi | |
20874 | ||
698dcdb6 VZ |
20875 | case "$ac_given_srcdir" in |
20876 | .) srcdir=. | |
20877 | if test -z "$ac_dots"; then top_srcdir=. | |
20878 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20879 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20880 | *) # Relative path. |
698dcdb6 VZ |
20881 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20882 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20883 | esac |
20884 | ||
698dcdb6 VZ |
20885 | case "$ac_given_INSTALL" in |
20886 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20887 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20888 | esac |
20889 | ||
698dcdb6 VZ |
20890 | echo creating "$ac_file" |
20891 | rm -f "$ac_file" | |
20892 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20893 | case "$ac_file" in | |
20894 | *Makefile*) ac_comsub="1i\\ | |
20895 | # $configure_input" ;; | |
20896 | *) ac_comsub= ;; | |
20897 | esac | |
10f2d63a | 20898 | |
698dcdb6 VZ |
20899 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20900 | sed -e "$ac_comsub | |
20901 | s%@configure_input@%$configure_input%g | |
20902 | s%@srcdir@%$srcdir%g | |
20903 | s%@top_srcdir@%$top_srcdir%g | |
20904 | s%@INSTALL@%$INSTALL%g | |
20905 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20906 | fi; done | |
20907 | rm -f conftest.s* | |
10f2d63a VZ |
20908 | |
20909 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20910 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20911 | # | |
20912 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20913 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20914 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20915 | ac_dC='\3' | |
20916 | ac_dD='%g' | |
20917 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20918 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20919 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20920 | ac_uC=' ' |
698dcdb6 VZ |
20921 | ac_uD='\4%g' |
20922 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20923 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20924 | ac_eB='$%\1#\2define\3' | |
20925 | ac_eC=' ' | |
20926 | ac_eD='%g' | |
10f2d63a | 20927 | |
698dcdb6 VZ |
20928 | if test "${CONFIG_HEADERS+set}" != set; then |
20929 | EOF | |
20930 | cat >> $CONFIG_STATUS <<EOF | |
20931 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20932 | EOF | |
20933 | cat >> $CONFIG_STATUS <<\EOF | |
20934 | fi | |
20935 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20936 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20937 | case "$ac_file" in |
20938 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20939 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20940 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20941 | esac |
20942 | ||
698dcdb6 VZ |
20943 | echo creating $ac_file |
20944 | ||
20945 | rm -f conftest.frag conftest.in conftest.out | |
20946 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20947 | cat $ac_file_inputs > conftest.in | |
20948 | ||
20949 | EOF | |
20950 | ||
20951 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20952 | # the proper values into config.h.in to produce config.h. And first: | |
20953 | # Protect against being on the right side of a sed subst in config.status. | |
20954 | # Protect against being in an unquoted here document in config.status. | |
20955 | rm -f conftest.vals | |
20956 | cat > conftest.hdr <<\EOF | |
20957 | s/[\\&%]/\\&/g | |
20958 | s%[\\$`]%\\&%g | |
20959 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20960 | s%ac_d%ac_u%gp | |
20961 | s%ac_u%ac_e%gp | |
20962 | EOF | |
20963 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20964 | rm -f conftest.hdr | |
10f2d63a VZ |
20965 | |
20966 | # This sed command replaces #undef with comments. This is necessary, for | |
20967 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20968 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20969 | cat >> conftest.vals <<\EOF |
20970 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20971 | EOF |
20972 | ||
698dcdb6 VZ |
20973 | # Break up conftest.vals because some shells have a limit on |
20974 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20975 | |
20976 | rm -f conftest.tail | |
698dcdb6 | 20977 | while : |
10f2d63a | 20978 | do |
698dcdb6 VZ |
20979 | ac_lines=`grep -c . conftest.vals` |
20980 | # grep -c gives empty output for an empty file on some AIX systems. | |
20981 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20982 | # Write a limited-size here document to conftest.frag. | |
20983 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20984 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20985 | echo 'CEOF |
698dcdb6 VZ |
20986 | sed -f conftest.frag conftest.in > conftest.out |
20987 | rm -f conftest.in | |
20988 | mv conftest.out conftest.in | |
20989 | ' >> $CONFIG_STATUS | |
20990 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20991 | rm -f conftest.vals | |
20992 | mv conftest.tail conftest.vals | |
10f2d63a | 20993 | done |
698dcdb6 VZ |
20994 | rm -f conftest.vals |
20995 | ||
20996 | cat >> $CONFIG_STATUS <<\EOF | |
20997 | rm -f conftest.frag conftest.h | |
20998 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20999 | cat conftest.in >> conftest.h | |
21000 | rm -f conftest.in | |
21001 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21002 | echo "$ac_file is unchanged" | |
21003 | rm -f conftest.h | |
10f2d63a | 21004 | else |
698dcdb6 VZ |
21005 | # Remove last slash and all that follows it. Not all systems have dirname. |
21006 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21007 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21008 | # The file is in a subdirectory. |
21009 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21010 | fi |
698dcdb6 VZ |
21011 | rm -f $ac_file |
21012 | mv conftest.h $ac_file | |
10f2d63a | 21013 | fi |
698dcdb6 VZ |
21014 | fi; done |
21015 | ||
10f2d63a | 21016 | EOF |
698dcdb6 | 21017 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21018 | |
3a922bb4 | 21019 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21020 | LN_S="${LN_S}" |
21021 | ||
21022 | ||
21023 | EOF | |
21024 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21025 | |
652d930d | 21026 | if test ! -h wx-config; then |
991a5759 | 21027 | chmod +x wx-config |
3a922bb4 RL |
21028 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21029 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21030 | fi |
665bbe97 | 21031 | |
00cf1208 RR |
21032 | if test ! -d lib; then |
21033 | mkdir lib | |
21034 | fi | |
21035 | if test ! -d lib/wx; then | |
21036 | mkdir lib/wx | |
21037 | fi | |
21038 | if test ! -d lib/wx/include; then | |
21039 | mkdir lib/wx/include | |
21040 | fi | |
3a922bb4 RL |
21041 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21042 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21043 | fi |
3a922bb4 RL |
21044 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21045 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21046 | fi |
21047 | if test -f setup.h; then | |
3a922bb4 | 21048 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21049 | fi |
698dcdb6 VZ |
21050 | |
21051 | exit 0 | |
10f2d63a VZ |
21052 | EOF |
21053 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21054 | rm -fr confdefs* $ac_clean_files |
21055 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21056 | |
2224580a VZ |
21057 | if test "$no_recursion" != yes; then |
21058 | ||
21059 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21060 | ac_sub_configure_args= | |
21061 | ac_prev= | |
21062 | for ac_arg in $ac_configure_args; do | |
21063 | if test -n "$ac_prev"; then | |
21064 | ac_prev= | |
21065 | continue | |
21066 | fi | |
698dcdb6 | 21067 | case "$ac_arg" in |
2224580a VZ |
21068 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21069 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21070 | ac_prev=cache_file ;; | |
21071 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21072 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21073 | ;; |
21074 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21075 | ac_prev=srcdir ;; | |
21076 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21077 | ;; | |
21078 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21079 | esac | |
21080 | done | |
21081 | ||
698dcdb6 | 21082 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21083 | |
21084 | # Do not complain, so a configure script can configure whichever | |
21085 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21086 | if test ! -d $srcdir/$ac_config_dir; then |
21087 | continue | |
21088 | fi | |
21089 | ||
21090 | echo configuring in $ac_config_dir | |
2224580a | 21091 | |
698dcdb6 | 21092 | case "$srcdir" in |
2224580a VZ |
21093 | .) ;; |
21094 | *) | |
698dcdb6 VZ |
21095 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21096 | else | |
21097 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21098 | fi | |
21099 | ;; | |
2224580a VZ |
21100 | esac |
21101 | ||
21102 | ac_popdir=`pwd` | |
698dcdb6 | 21103 | cd $ac_config_dir |
2224580a | 21104 | |
698dcdb6 VZ |
21105 | # A "../" for each directory in /$ac_config_dir. |
21106 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21107 | |
698dcdb6 | 21108 | case "$srcdir" in |
2224580a VZ |
21109 | .) # No --srcdir option. We are building in place. |
21110 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21111 | /*) # Absolute path. |
21112 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21113 | *) # Relative path. |
698dcdb6 | 21114 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21115 | esac |
21116 | ||
21117 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21118 | if test -f $ac_sub_srcdir/configure; then |
21119 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21120 | elif test -f $ac_sub_srcdir/configure.in; then |
21121 | ac_sub_configure=$ac_configure | |
21122 | else | |
698dcdb6 | 21123 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21124 | ac_sub_configure= |
21125 | fi | |
21126 | ||
21127 | # The recursion is here. | |
21128 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21129 | |
2224580a | 21130 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21131 | case "$cache_file" in |
21132 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21133 | *) # Relative path. |
698dcdb6 | 21134 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21135 | esac |
698dcdb6 VZ |
21136 | case "$ac_given_INSTALL" in |
21137 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21138 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21139 | esac | |
2224580a | 21140 | |
698dcdb6 | 21141 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21142 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21143 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21144 | then : | |
21145 | else | |
21146 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21147 | fi | |
2224580a VZ |
21148 | fi |
21149 | ||
21150 | cd $ac_popdir | |
21151 | done | |
21152 | fi | |
21153 | ||
698dcdb6 | 21154 |