]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
90dd450c VZ |
8 | |
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
703e0a69 | 16 | |
703e0a69 VZ |
17 | |
18 | ||
1e487827 | 19 | |
1e487827 | 20 | |
698dcdb6 VZ |
21 | |
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
b040e242 VS |
49 | |
50 | ||
51 | ||
986ecc86 VZ |
52 | |
53 | ||
54 | ||
b040e242 VS |
55 | |
56 | ||
57 | ||
58 | ||
9e691f46 VZ |
59 | # Configure paths for GTK+ |
60 | # Owen Taylor 1997-2001 | |
b040e242 VS |
61 | |
62 | ||
63 | ||
64 | # Configure paths for GTK+ | |
65 | # Owen Taylor 97-11-3 | |
698dcdb6 | 66 | |
698dcdb6 VZ |
67 | |
68 | ||
69 | # Guess values for system-dependent variables and create Makefiles. | |
70 | # Generated automatically using autoconf version 2.13 | |
71 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
72 | # | |
73 | # This configure script is free software; the Free Software Foundation | |
74 | # gives unlimited permission to copy, distribute and modify it. | |
75 | ||
76 | # Defaults: | |
77 | ac_help= | |
78 | ac_default_prefix=/usr/local | |
79 | # Any additions from configure.in: | |
80 | ac_help="$ac_help | |
8168de4c | 81 | --enable-gui use GUI classes" |
1e6feb95 | 82 | ac_help="$ac_help |
8168de4c | 83 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
84 | ac_help="$ac_help |
85 | --with-gtk use GTK+" | |
86 | ac_help="$ac_help | |
87 | --with-motif use Motif/Lesstif" | |
88 | ac_help="$ac_help | |
89 | --with-mac use Mac OS X" | |
90 | ac_help="$ac_help | |
91 | --with-wine use WINE" | |
92 | ac_help="$ac_help | |
77e13408 | 93 | --with-msw use MS-Windows" |
698dcdb6 VZ |
94 | ac_help="$ac_help |
95 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 96 | ac_help="$ac_help |
b3e8d00a | 97 | --with-mgl use SciTech MGL" |
1725144d RR |
98 | ac_help="$ac_help |
99 | --with-microwin use MicroWindows" | |
f79bd02d JS |
100 | ac_help="$ac_help |
101 | --with-x11 use X11" | |
d8356fa3 VZ |
102 | ac_help="$ac_help |
103 | --enable-nanox use NanoX" | |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 114 | ac_help="$ac_help |
d0e9b150 | 115 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
116 | ac_help="$ac_help |
117 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-shared create shared library code" |
698dcdb6 | 124 | ac_help="$ac_help |
3a922bb4 | 125 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-optimise create optimised code" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
130 | ac_help="$ac_help |
131 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-debug_info create code with debugging information" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-profile create code with profiling information" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 146 | ac_help="$ac_help |
b3e8d00a | 147 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-no_deps create code without dependency information" |
54276ccf | 152 | ac_help="$ac_help |
b3e8d00a | 153 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 154 | ac_help="$ac_help |
0c9a1c32 | 155 | --disable-compat22 disable wxWindows 2.2 compatibility" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-intl use internationalization system" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
160 | ac_help="$ac_help |
161 | --enable-protocols use wxProtocol and derived classes" | |
162 | ac_help="$ac_help | |
163 | --enable-ftp use wxFTP (requires wxProtocol" | |
164 | ac_help="$ac_help | |
165 | --enable-http use wxHTTP (requires wxProtocol" | |
166 | ac_help="$ac_help | |
167 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-sockets use socket/network classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-datetime use wxDateTime class" |
1e6feb95 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-dialupman use dialup network classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-timer use wxTimer class" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-wave use wxWave class" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-fraction use wxFraction class" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
192 | ac_help="$ac_help |
193 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-longlong use wxLongLong class" |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-geometry use geometry class" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-log use logging system" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-streams use wxStream etc classes" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-file use wxFile classes" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-ffile use wxFFile classes" |
1e6feb95 | 206 | ac_help="$ac_help |
a3a584a7 VZ |
207 | --enable-textbuf use wxTextBuffer class" |
208 | ac_help="$ac_help | |
209 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
214 | ac_help="$ac_help |
215 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 232 | ac_help="$ac_help |
69d27ff7 | 233 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 234 | ac_help="$ac_help |
b3e8d00a | 235 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
236 | ac_help="$ac_help |
237 | --enable-url use wxURL class" | |
238 | ac_help="$ac_help | |
239 | --enable-protocol use wxProtocol class" | |
240 | ac_help="$ac_help | |
241 | --enable-protocol-http HTTP support in wxProtocol" | |
242 | ac_help="$ac_help | |
243 | --enable-protocol-ftp FTP support in wxProtocol" | |
244 | ac_help="$ac_help | |
245 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-threads use threads" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-docview use document view architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
3379ed37 | 251 | --enable-help use help subsystem" |
29fd3c0c VS |
252 | ac_help="$ac_help |
253 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
254 | ac_help="$ac_help |
255 | --enable-html use wxHTML sub-library" | |
256 | ac_help="$ac_help | |
257 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-constraints use layout-constraints system" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-printarch use printing architecture" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-loggui use standard GUI logger" |
1e6feb95 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
268 | ac_help="$ac_help |
269 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-prologio use Prolog IO library" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-resources use wxWindows resources" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-metafile use win32 metafiles" |
698dcdb6 | 284 | ac_help="$ac_help |
24176f2c | 285 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-controls use all usual controls" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-accel use accelerators" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-button use wxButton class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-caret use wxCaret class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-choice use wxChoice class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-gauge use wxGauge class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-grid use wxGrid class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-imaglist use wxImageList class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-listbox use wxListBox class" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-notebook use wxNotebook class" |
24176f2c GD |
320 | ac_help="$ac_help |
321 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-sash use wxSashWindow class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-slider use wxSlider class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-statline use wxStaticLine class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-stattext use wxStaticText class" |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
362 | ac_help="$ac_help |
363 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
364 | ac_help="$ac_help |
365 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 366 | ac_help="$ac_help |
b3e8d00a | 367 | --enable-commondlg use all common dialogs" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
374 | ac_help="$ac_help |
375 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 378 | ac_help="$ac_help |
8168de4c | 379 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
384 | ac_help="$ac_help |
385 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-tipdlg use startup tips" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
392 | ac_help="$ac_help |
393 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 394 | ac_help="$ac_help |
8168de4c | 395 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 396 | ac_help="$ac_help |
8168de4c | 397 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 398 | ac_help="$ac_help |
8168de4c | 399 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-splines use spline drawing code" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 406 | ac_help="$ac_help |
b3e8d00a | 407 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 408 | ac_help="$ac_help |
8168de4c | 409 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
410 | ac_help="$ac_help |
411 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
412 | ac_help="$ac_help |
413 | --enable-palette use wxPalette class" | |
1e6feb95 | 414 | ac_help="$ac_help |
8168de4c | 415 | --enable-image use wxImage class" |
698dcdb6 | 416 | ac_help="$ac_help |
8168de4c | 417 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 418 | ac_help="$ac_help |
8168de4c | 419 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
420 | ac_help="$ac_help |
421 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 422 | ac_help="$ac_help |
8168de4c | 423 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 424 | ac_help="$ac_help |
8168de4c | 425 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
426 | ac_help="$ac_help |
427 | --enable-icocur use Windows ICO and CUR formats" | |
90dd450c VZ |
428 | ac_help="$ac_help |
429 | --disable-largefile omit support for large files" | |
698dcdb6 | 430 | ac_help="$ac_help |
9e691f46 | 431 | --disable-gtktest do not try to compile and run a test GTK+ program" |
3f345b47 VZ |
432 | ac_help="$ac_help |
433 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
434 | ac_help="$ac_help | |
435 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
436 | ac_help="$ac_help | |
437 | --disable-gtktest Do not try to compile and run a test GTK program" | |
438 | ac_help="$ac_help | |
439 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
440 | ac_help="$ac_help | |
441 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
442 | ac_help="$ac_help | |
443 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
444 | ac_help="$ac_help |
445 | --with-x use the X Window System" | |
b040e242 VS |
446 | ac_help="$ac_help |
447 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
448 | |
449 | # Initialize some variables set by options. | |
450 | # The variables have the same names as the options, with | |
451 | # dashes changed to underlines. | |
698dcdb6 VZ |
452 | build=NONE |
453 | cache_file=./config.cache | |
10f2d63a | 454 | exec_prefix=NONE |
698dcdb6 | 455 | host=NONE |
10f2d63a | 456 | no_create= |
698dcdb6 | 457 | nonopt=NONE |
10f2d63a VZ |
458 | no_recursion= |
459 | prefix=NONE | |
460 | program_prefix=NONE | |
461 | program_suffix=NONE | |
462 | program_transform_name=s,x,x, | |
463 | silent= | |
464 | site= | |
465 | srcdir= | |
698dcdb6 | 466 | target=NONE |
10f2d63a VZ |
467 | verbose= |
468 | x_includes=NONE | |
469 | x_libraries=NONE | |
470 | bindir='${exec_prefix}/bin' | |
471 | sbindir='${exec_prefix}/sbin' | |
472 | libexecdir='${exec_prefix}/libexec' | |
473 | datadir='${prefix}/share' | |
474 | sysconfdir='${prefix}/etc' | |
475 | sharedstatedir='${prefix}/com' | |
476 | localstatedir='${prefix}/var' | |
477 | libdir='${exec_prefix}/lib' | |
478 | includedir='${prefix}/include' | |
479 | oldincludedir='/usr/include' | |
480 | infodir='${prefix}/info' | |
481 | mandir='${prefix}/man' | |
482 | ||
698dcdb6 VZ |
483 | # Initialize some other variables. |
484 | subdirs= | |
485 | MFLAGS= MAKEFLAGS= | |
486 | SHELL=${CONFIG_SHELL-/bin/sh} | |
487 | # Maximum number of lines to put in a shell here document. | |
488 | ac_max_here_lines=12 | |
10f2d63a VZ |
489 | |
490 | ac_prev= | |
491 | for ac_option | |
492 | do | |
698dcdb6 | 493 | |
10f2d63a VZ |
494 | # If the previous option needs an argument, assign it. |
495 | if test -n "$ac_prev"; then | |
496 | eval "$ac_prev=\$ac_option" | |
497 | ac_prev= | |
498 | continue | |
499 | fi | |
500 | ||
698dcdb6 VZ |
501 | case "$ac_option" in |
502 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
503 | *) ac_optarg= ;; | |
504 | esac | |
10f2d63a VZ |
505 | |
506 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
507 | ||
698dcdb6 | 508 | case "$ac_option" in |
10f2d63a VZ |
509 | |
510 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
511 | ac_prev=bindir ;; | |
512 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 513 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 516 | ac_prev=build ;; |
10f2d63a | 517 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 518 | build="$ac_optarg" ;; |
10f2d63a VZ |
519 | |
520 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
521 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
522 | ac_prev=cache_file ;; | |
523 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
524 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 525 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
526 | |
527 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
528 | ac_prev=datadir ;; | |
529 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
530 | | --da=*) | |
698dcdb6 | 531 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
532 | |
533 | -disable-* | --disable-*) | |
698dcdb6 | 534 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 535 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
536 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
537 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
538 | fi | |
539 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
540 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
541 | |
542 | -enable-* | --enable-*) | |
698dcdb6 | 543 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 544 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
545 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
546 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
547 | fi | |
548 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
549 | case "$ac_option" in | |
550 | *=*) ;; | |
10f2d63a VZ |
551 | *) ac_optarg=yes ;; |
552 | esac | |
698dcdb6 | 553 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
554 | |
555 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
556 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
557 | | --exec | --exe | --ex) | |
558 | ac_prev=exec_prefix ;; | |
559 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
560 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
561 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 562 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
563 | |
564 | -gas | --gas | --ga | --g) | |
565 | # Obsolete; use --with-gas. | |
566 | with_gas=yes ;; | |
567 | ||
698dcdb6 VZ |
568 | -help | --help | --hel | --he) |
569 | # Omit some internal or obsolete options to make the list less imposing. | |
570 | # This message is too long to be a string in the A/UX 3.1 sh. | |
571 | cat << EOF | |
572 | Usage: configure [options] [host] | |
573 | Options: [defaults in brackets after descriptions] | |
574 | Configuration: | |
575 | --cache-file=FILE cache test results in FILE | |
576 | --help print this message | |
577 | --no-create do not create output files | |
578 | --quiet, --silent do not print \`checking...' messages | |
579 | --version print the version of autoconf that created configure | |
580 | Directory and file names: | |
581 | --prefix=PREFIX install architecture-independent files in PREFIX | |
582 | [$ac_default_prefix] | |
583 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
584 | [same as prefix] | |
585 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
586 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
587 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
588 | --datadir=DIR read-only architecture-independent data in DIR | |
589 | [PREFIX/share] | |
590 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
591 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
592 | [PREFIX/com] | |
593 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
594 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
595 | --includedir=DIR C header files in DIR [PREFIX/include] | |
596 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
597 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
598 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
599 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
600 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
601 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
602 | --program-transform-name=PROGRAM | |
603 | run sed PROGRAM on installed program names | |
604 | EOF | |
605 | cat << EOF | |
606 | Host type: | |
607 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
608 | --host=HOST configure for HOST [guessed] | |
609 | --target=TARGET configure for TARGET [TARGET=HOST] | |
610 | Features and packages: | |
611 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
612 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
613 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
614 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
615 | --x-includes=DIR X include files are in DIR | |
616 | --x-libraries=DIR X library files are in DIR | |
617 | EOF | |
618 | if test -n "$ac_help"; then | |
619 | echo "--enable and --with options recognized:$ac_help" | |
620 | fi | |
621 | exit 0 ;; | |
10f2d63a VZ |
622 | |
623 | -host | --host | --hos | --ho) | |
698dcdb6 | 624 | ac_prev=host ;; |
10f2d63a | 625 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 626 | host="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -includedir | --includedir | --includedi | --included | --include \ | |
629 | | --includ | --inclu | --incl | --inc) | |
630 | ac_prev=includedir ;; | |
631 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
632 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 633 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
636 | ac_prev=infodir ;; | |
637 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 638 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -libdir | --libdir | --libdi | --libd) | |
641 | ac_prev=libdir ;; | |
642 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 643 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
644 | |
645 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
646 | | --libexe | --libex | --libe) | |
647 | ac_prev=libexecdir ;; | |
648 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
649 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 650 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
651 | |
652 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
653 | | --localstate | --localstat | --localsta | --localst \ | |
654 | | --locals | --local | --loca | --loc | --lo) | |
655 | ac_prev=localstatedir ;; | |
656 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
657 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
658 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 659 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
662 | ac_prev=mandir ;; | |
663 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 664 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -nfp | --nfp | --nf) | |
667 | # Obsolete; use --without-fp. | |
668 | with_fp=no ;; | |
669 | ||
670 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
671 | | --no-cr | --no-c) | |
672 | no_create=yes ;; | |
673 | ||
674 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
675 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
676 | no_recursion=yes ;; | |
677 | ||
678 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
679 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
680 | | --oldin | --oldi | --old | --ol | --o) | |
681 | ac_prev=oldincludedir ;; | |
682 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
683 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
684 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 685 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
688 | ac_prev=prefix ;; | |
689 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 690 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
691 | |
692 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
693 | | --program-pre | --program-pr | --program-p) | |
694 | ac_prev=program_prefix ;; | |
695 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
696 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 697 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
698 | |
699 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
700 | | --program-suf | --program-su | --program-s) | |
701 | ac_prev=program_suffix ;; | |
702 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
703 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 704 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-transform-name | --program-transform-name \ | |
707 | | --program-transform-nam | --program-transform-na \ | |
708 | | --program-transform-n | --program-transform- \ | |
709 | | --program-transform | --program-transfor \ | |
710 | | --program-transfo | --program-transf \ | |
711 | | --program-trans | --program-tran \ | |
712 | | --progr-tra | --program-tr | --program-t) | |
713 | ac_prev=program_transform_name ;; | |
714 | -program-transform-name=* | --program-transform-name=* \ | |
715 | | --program-transform-nam=* | --program-transform-na=* \ | |
716 | | --program-transform-n=* | --program-transform-=* \ | |
717 | | --program-transform=* | --program-transfor=* \ | |
718 | | --program-transfo=* | --program-transf=* \ | |
719 | | --program-trans=* | --program-tran=* \ | |
720 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 721 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
722 | |
723 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
724 | | -silent | --silent | --silen | --sile | --sil) | |
725 | silent=yes ;; | |
726 | ||
727 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
728 | ac_prev=sbindir ;; | |
729 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
730 | | --sbi=* | --sb=*) | |
698dcdb6 | 731 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
732 | |
733 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
734 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
735 | | --sharedst | --shareds | --shared | --share | --shar \ | |
736 | | --sha | --sh) | |
737 | ac_prev=sharedstatedir ;; | |
738 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
739 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
740 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
741 | | --sha=* | --sh=*) | |
698dcdb6 | 742 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -site | --site | --sit) | |
745 | ac_prev=site ;; | |
746 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 747 | site="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
750 | ac_prev=srcdir ;; | |
751 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 752 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
755 | | --syscon | --sysco | --sysc | --sys | --sy) | |
756 | ac_prev=sysconfdir ;; | |
757 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
758 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 759 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
760 | |
761 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 762 | ac_prev=target ;; |
10f2d63a | 763 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 764 | target="$ac_optarg" ;; |
10f2d63a VZ |
765 | |
766 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
767 | verbose=yes ;; | |
768 | ||
698dcdb6 VZ |
769 | -version | --version | --versio | --versi | --vers) |
770 | echo "configure generated by autoconf version 2.13" | |
771 | exit 0 ;; | |
10f2d63a VZ |
772 | |
773 | -with-* | --with-*) | |
698dcdb6 | 774 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 775 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
776 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
777 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
778 | fi | |
10f2d63a | 779 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
780 | case "$ac_option" in |
781 | *=*) ;; | |
10f2d63a VZ |
782 | *) ac_optarg=yes ;; |
783 | esac | |
698dcdb6 | 784 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
785 | |
786 | -without-* | --without-*) | |
698dcdb6 | 787 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 788 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
789 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
790 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
791 | fi | |
792 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
793 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
794 | |
795 | --x) | |
796 | # Obsolete; use --with-x. | |
797 | with_x=yes ;; | |
798 | ||
799 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
800 | | --x-incl | --x-inc | --x-in | --x-i) | |
801 | ac_prev=x_includes ;; | |
802 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
803 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 804 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
805 | |
806 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
807 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
808 | ac_prev=x_libraries ;; | |
809 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
810 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 811 | x_libraries="$ac_optarg" ;; |
10f2d63a | 812 | |
698dcdb6 | 813 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
814 | ;; |
815 | ||
816 | *) | |
698dcdb6 VZ |
817 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
818 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
819 | fi | |
820 | if test "x$nonopt" != xNONE; then | |
821 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
822 | fi | |
823 | nonopt="$ac_option" | |
10f2d63a VZ |
824 | ;; |
825 | ||
826 | esac | |
827 | done | |
828 | ||
829 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
830 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
831 | fi | |
832 | ||
833 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
834 | ||
835 | # File descriptor usage: | |
836 | # 0 standard input | |
837 | # 1 file creation | |
838 | # 2 errors and warnings | |
839 | # 3 some systems may open it to /dev/tty | |
840 | # 4 used on the Kubota Titan | |
841 | # 6 checking for... messages and results | |
842 | # 5 compiler messages saved in config.log | |
843 | if test "$silent" = yes; then | |
844 | exec 6>/dev/null | |
845 | else | |
846 | exec 6>&1 | |
10f2d63a | 847 | fi |
698dcdb6 VZ |
848 | exec 5>./config.log |
849 | ||
850 | echo "\ | |
851 | This file contains any messages produced by compilers while | |
852 | running configure, to aid debugging if configure makes a mistake. | |
853 | " 1>&5 | |
10f2d63a | 854 | |
698dcdb6 VZ |
855 | # Strip out --no-create and --no-recursion so they do not pile up. |
856 | # Also quote any args containing shell metacharacters. | |
857 | ac_configure_args= | |
858 | for ac_arg | |
10f2d63a | 859 | do |
698dcdb6 VZ |
860 | case "$ac_arg" in |
861 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
862 | | --no-cr | --no-c) ;; | |
863 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
864 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
865 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
866 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
867 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
868 | esac |
869 | done | |
870 | ||
698dcdb6 VZ |
871 | # NLS nuisances. |
872 | # Only set these to C if already set. These must not be set unconditionally | |
873 | # because not all systems understand e.g. LANG=C (notably SCO). | |
874 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
875 | # Non-C LC_CTYPE values break the ctype check. | |
876 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
877 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
878 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
879 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 880 | |
698dcdb6 VZ |
881 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
882 | rm -rf conftest* confdefs.h | |
883 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
884 | echo > confdefs.h | |
10f2d63a | 885 | |
698dcdb6 VZ |
886 | # A filename unique to this package, relative to the directory that |
887 | # configure is in, which we can look for to find out if srcdir is correct. | |
888 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
889 | |
890 | # Find the source files, if location was not specified. | |
891 | if test -z "$srcdir"; then | |
892 | ac_srcdir_defaulted=yes | |
893 | # Try the directory containing this script, then its parent. | |
894 | ac_prog=$0 | |
698dcdb6 | 895 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
896 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
897 | srcdir=$ac_confdir | |
898 | if test ! -r $srcdir/$ac_unique_file; then | |
899 | srcdir=.. | |
900 | fi | |
901 | else | |
902 | ac_srcdir_defaulted=no | |
903 | fi | |
904 | if test ! -r $srcdir/$ac_unique_file; then | |
905 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 906 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 907 | else |
698dcdb6 | 908 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
909 | fi |
910 | fi | |
698dcdb6 | 911 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
912 | |
913 | # Prefer explicitly selected file to automatically selected ones. | |
914 | if test -z "$CONFIG_SITE"; then | |
915 | if test "x$prefix" != xNONE; then | |
916 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
917 | else | |
918 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
919 | fi | |
920 | fi | |
921 | for ac_site_file in $CONFIG_SITE; do | |
922 | if test -r "$ac_site_file"; then | |
698dcdb6 | 923 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
924 | . "$ac_site_file" |
925 | fi | |
926 | done | |
927 | ||
928 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
929 | echo "loading cache $cache_file" |
930 | . $cache_file | |
10f2d63a | 931 | else |
698dcdb6 VZ |
932 | echo "creating cache $cache_file" |
933 | > $cache_file | |
10f2d63a VZ |
934 | fi |
935 | ||
936 | ac_ext=c | |
698dcdb6 | 937 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 938 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
939 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
940 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
941 | cross_compiling=$ac_cv_prog_cc_cross | |
942 | ||
943 | ac_exeext= | |
944 | ac_objext=o | |
945 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
946 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
947 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
948 | ac_n= ac_c=' | |
949 | ' ac_t=' ' | |
950 | else | |
951 | ac_n=-n ac_c= ac_t= | |
952 | fi | |
10f2d63a | 953 | else |
698dcdb6 | 954 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 955 | fi |
698dcdb6 VZ |
956 | |
957 | ||
10f2d63a | 958 | |
7c66a493 VZ |
959 | ac_aux_dir= |
960 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
961 | if test -f $ac_dir/install-sh; then | |
962 | ac_aux_dir=$ac_dir | |
963 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
964 | break | |
965 | elif test -f $ac_dir/install.sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
968 | break | |
969 | fi | |
970 | done | |
971 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 972 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 973 | fi |
698dcdb6 VZ |
974 | ac_config_guess=$ac_aux_dir/config.guess |
975 | ac_config_sub=$ac_aux_dir/config.sub | |
976 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 977 | |
698dcdb6 VZ |
978 | |
979 | # Do some error checking and defaulting for the host and target type. | |
980 | # The inputs are: | |
981 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
982 | # | |
983 | # The rules are: | |
984 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
985 | # same time. | |
986 | # 2. Host defaults to nonopt. | |
987 | # 3. If nonopt is not specified, then host defaults to the current host, | |
988 | # as determined by config.guess. | |
989 | # 4. Target and build default to nonopt. | |
990 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
991 | |
992 | # The aliases save the names the user supplied, while $host etc. | |
993 | # will get canonicalized. | |
698dcdb6 VZ |
994 | case $host---$target---$nonopt in |
995 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
996 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
997 | esac | |
998 | ||
999 | ||
1000 | # Make sure we can run config.sub. | |
1001 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1002 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1003 | fi | |
1004 | ||
1005 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
986ecc86 | 1006 | echo "configure:1007: checking host system type" >&5 |
698dcdb6 VZ |
1007 | |
1008 | host_alias=$host | |
1009 | case "$host_alias" in | |
1010 | NONE) | |
1011 | case $nonopt in | |
1012 | NONE) | |
1013 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1014 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1015 | fi ;; | |
1016 | *) host_alias=$nonopt ;; | |
1017 | esac ;; | |
1018 | esac | |
1019 | ||
1020 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1021 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1022 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1023 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1024 | echo "$ac_t""$host" 1>&6 | |
1025 | ||
1026 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
986ecc86 | 1027 | echo "configure:1028: checking target system type" >&5 |
698dcdb6 VZ |
1028 | |
1029 | target_alias=$target | |
1030 | case "$target_alias" in | |
1031 | NONE) | |
1032 | case $nonopt in | |
1033 | NONE) target_alias=$host_alias ;; | |
1034 | *) target_alias=$nonopt ;; | |
1035 | esac ;; | |
1036 | esac | |
1037 | ||
1038 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1039 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1040 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1041 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1042 | echo "$ac_t""$target" 1>&6 | |
1043 | ||
1044 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
986ecc86 | 1045 | echo "configure:1046: checking build system type" >&5 |
698dcdb6 VZ |
1046 | |
1047 | build_alias=$build | |
1048 | case "$build_alias" in | |
1049 | NONE) | |
1050 | case $nonopt in | |
1051 | NONE) build_alias=$host_alias ;; | |
1052 | *) build_alias=$nonopt ;; | |
1053 | esac ;; | |
1054 | esac | |
1055 | ||
1056 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1057 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1058 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1059 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1060 | echo "$ac_t""$build" 1>&6 | |
1061 | ||
1062 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1063 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1064 | NONENONEs,x,x, && | |
1065 | program_prefix=${target_alias}- | |
1066 | ||
698dcdb6 VZ |
1067 | |
1068 | ||
10f2d63a | 1069 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1070 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1071 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1072 | |
10f2d63a | 1073 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1074 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1075 | |
978f1259 RL |
1076 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1077 | ||
a0d927d1 | 1078 | WX_CURRENT=2 |
6426998c RL |
1079 | WX_REVISION=0 |
1080 | WX_AGE=0 | |
1081 | ||
698dcdb6 VZ |
1082 | |
1083 | ||
10f2d63a VZ |
1084 | USE_UNIX=1 |
1085 | USE_WIN32=0 | |
f9bc1684 | 1086 | USE_DOS=0 |
b12915c1 | 1087 | USE_BEOS=0 |
1216f52d | 1088 | USE_MAC=0 |
b12915c1 | 1089 | |
10f2d63a VZ |
1090 | USE_LINUX= |
1091 | USE_SGI= | |
1092 | USE_HPUX= | |
1093 | USE_SYSV= | |
1094 | USE_SVR4= | |
1095 | USE_AIX= | |
1096 | USE_SUN= | |
1097 | USE_SOLARIS= | |
1098 | USE_SUNOS= | |
1099 | USE_ALPHA= | |
1100 | USE_OSF= | |
1101 | USE_BSD= | |
f11bdd03 | 1102 | USE_DARWIN= |
10f2d63a | 1103 | USE_FREEBSD= |
95c8801c | 1104 | USE_OPENBSD= |
f6bcfd97 | 1105 | USE_NETBSD= |
10f2d63a VZ |
1106 | USE_VMS= |
1107 | USE_ULTRIX= | |
10f2d63a VZ |
1108 | USE_DATA_GENERAL= |
1109 | ||
ab9b9eab VZ |
1110 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1111 | ||
f79bd02d | 1112 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1113 | |
1114 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1115 | DEFAULT_wxUSE_MAC=0 |
1116 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1117 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1118 | DEFAULT_wxUSE_MOTIF=0 |
1119 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1120 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1121 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1122 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1123 | |
1124 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1125 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1126 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1127 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1129 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1130 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1131 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1132 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1133 | |
d6a55c4b | 1134 | PROGRAM_EXT= |
3a922bb4 | 1135 | SO_SUFFIX=so |
d6a55c4b | 1136 | |
10f2d63a VZ |
1137 | case "${host}" in |
1138 | *-hp-hpux* ) | |
1139 | USE_HPUX=1 | |
1140 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1141 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1142 | SO_SUFFIX=sl |
698dcdb6 | 1143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1144 | #define __HPUX__ 1 |
1145 | EOF | |
1146 | ||
1147 | ;; | |
1148 | *-*-linux* ) | |
1149 | USE_LINUX=1 | |
698dcdb6 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __LINUX__ 1 |
1152 | EOF | |
1153 | ||
1154 | TMP=`uname -m` | |
1155 | if test "x$TMP" = "xalpha"; then | |
1156 | USE_ALPHA=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __ALPHA__ 1 |
1159 | EOF | |
1160 | ||
1161 | fi | |
1162 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1163 | ;; | |
1164 | *-*-irix5* | *-*-irix6* ) | |
1165 | USE_SGI=1 | |
1166 | USE_SVR4=1 | |
698dcdb6 | 1167 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1168 | #define __SGI__ 1 |
1169 | EOF | |
1170 | ||
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SVR4__ 1 |
1173 | EOF | |
1174 | ||
1175 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1176 | ;; | |
1177 | *-*-solaris2* ) | |
1178 | USE_SUN=1 | |
1179 | USE_SOLARIS=1 | |
1180 | USE_SVR4=1 | |
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1182 | #define __SUN__ 1 |
1183 | EOF | |
1184 | ||
698dcdb6 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __SOLARIS__ 1 |
1187 | EOF | |
1188 | ||
698dcdb6 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __SVR4__ 1 |
1191 | EOF | |
1192 | ||
1193 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1194 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1195 | ;; |
1196 | *-*-sunos4* ) | |
1197 | USE_SUN=1 | |
1198 | USE_SUNOS=1 | |
1199 | USE_BSD=1 | |
698dcdb6 | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1201 | #define __SUN__ 1 |
1202 | EOF | |
1203 | ||
698dcdb6 | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1205 | #define __SUNOS__ 1 |
1206 | EOF | |
1207 | ||
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __BSD__ 1 |
1210 | EOF | |
1211 | ||
1212 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1213 | ;; | |
f6bcfd97 | 1214 | *-*-freebsd*) |
10f2d63a VZ |
1215 | USE_BSD=1 |
1216 | USE_FREEBSD=1 | |
698dcdb6 | 1217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1218 | #define __FREEBSD__ 1 |
1219 | EOF | |
1220 | ||
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a | 1222 | #define __BSD__ 1 |
95c8801c VS |
1223 | EOF |
1224 | ||
1225 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1226 | ;; | |
1227 | *-*-openbsd*) | |
1228 | USE_BSD=1 | |
1229 | USE_OPENBSD=1 | |
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1231 | #define __FREEBSD__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
95c8801c | 1235 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1236 | EOF |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1239 | ;; | |
1240 | *-*-netbsd*) | |
1241 | USE_BSD=1 | |
1242 | USE_NETBSD=1 | |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1244 | #define __FREEBSD__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1248 | #define __NETBSD__ 1 |
10f2d63a VZ |
1249 | EOF |
1250 | ||
1251 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1252 | ;; | |
1253 | *-*-osf* ) | |
1254 | USE_ALPHA=1 | |
1255 | USE_OSF=1 | |
698dcdb6 | 1256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1257 | #define __ALPHA__ 1 |
1258 | EOF | |
1259 | ||
698dcdb6 | 1260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1261 | #define __OSF__ 1 |
1262 | EOF | |
1263 | ||
1264 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1265 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1266 | ;; |
1267 | *-*-dgux5* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_SVR4=1 | |
698dcdb6 | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1271 | #define __ALPHA__ 1 |
1272 | EOF | |
1273 | ||
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SVR4__ 1 |
1276 | EOF | |
1277 | ||
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1279 | ;; | |
1280 | *-*-sysv5* ) | |
1281 | USE_SYSV=1 | |
1282 | USE_SVR4=1 | |
698dcdb6 | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1284 | #define __SYSV__ 1 |
1285 | EOF | |
1286 | ||
698dcdb6 | 1287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1288 | #define __SVR4__ 1 |
1289 | EOF | |
1290 | ||
1291 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1292 | ;; | |
1293 | *-*-aix* ) | |
1294 | USE_AIX=1 | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
321d2b14 | 1297 | SO_SUFFIX=a |
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __AIX__ 1 |
1300 | EOF | |
1301 | ||
698dcdb6 | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1303 | #define __SYSV__ 1 |
1304 | EOF | |
1305 | ||
698dcdb6 | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1307 | #define __SVR4__ 1 |
1308 | EOF | |
1309 | ||
1310 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1311 | ;; | |
1312 | ||
1c8183e2 | 1313 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1314 | USE_UNIX=0 |
1315 | USE_WIN32=1 | |
3a922bb4 | 1316 | SO_SUFFIX=dll |
698dcdb6 | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1318 | #define __WIN32__ 1 |
1319 | EOF | |
1320 | ||
698dcdb6 | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1322 | #define __WIN95__ 1 |
1323 | EOF | |
1324 | ||
698dcdb6 | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1326 | #define __WINDOWS__ 1 |
1327 | EOF | |
1328 | ||
698dcdb6 | 1329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1330 | #define __GNUWIN32__ 1 |
1331 | EOF | |
1332 | ||
698dcdb6 | 1333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1334 | #define STRICT 1 |
1335 | EOF | |
1336 | ||
698dcdb6 | 1337 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1338 | #define WINVER 0x0400 |
1339 | EOF | |
1340 | ||
cf27ef00 | 1341 | PROGRAM_EXT=".exe" |
7b7a7637 | 1342 | RESCOMP=windres |
10f2d63a VZ |
1343 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1344 | ;; | |
1345 | ||
f9bc1684 VS |
1346 | *-pc-msdosdjgpp ) |
1347 | USE_UNIX=0 | |
1348 | USE_DOS=1 | |
1349 | cat >> confdefs.h <<\EOF | |
1350 | #define __DOS__ 1 | |
1351 | EOF | |
1352 | ||
1353 | PROGRAM_EXT=".exe" | |
1354 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
f9bc1684 VS |
1355 | ;; |
1356 | ||
6fa882bd | 1357 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1358 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1359 | #define __EMX__ 1 |
1360 | EOF | |
1361 | ||
cf27ef00 | 1362 | PROGRAM_EXT=".exe" |
e07802fc | 1363 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1364 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1365 | ;; |
1366 | ||
d08b457b GD |
1367 | powerpc-*-darwin* ) |
1368 | USE_BSD=1 | |
f11bdd03 | 1369 | USE_DARWIN=1 |
3a922bb4 | 1370 | SO_SUFFIX=dylib |
698dcdb6 | 1371 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1372 | #define __BSD__ 1 |
b4085ce6 GD |
1373 | EOF |
1374 | ||
698dcdb6 | 1375 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1376 | #define __DARWIN__ 1 |
d08b457b GD |
1377 | EOF |
1378 | ||
1379 | cat >> confdefs.h <<\EOF | |
1380 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1381 | EOF |
1382 | ||
1383 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1384 | ;; | |
1385 | ||
b12915c1 VZ |
1386 | *-*-beos* ) |
1387 | USE_BEOS=1 | |
698dcdb6 | 1388 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1389 | #define __BEOS__ 1 |
1390 | EOF | |
1391 | ||
1392 | ;; | |
1393 | ||
10f2d63a | 1394 | *) |
698dcdb6 | 1395 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1396 | esac |
1397 | ||
1398 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1399 | wxUSE_UNIX=yes |
698dcdb6 | 1400 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1401 | #define __UNIX__ 1 |
1402 | EOF | |
1403 | ||
10f2d63a VZ |
1404 | fi |
1405 | ||
1e487827 | 1406 | |
1e487827 | 1407 | |
6232543b | 1408 | |
10f2d63a VZ |
1409 | wx_arg_cache_file="configarg.cache" |
1410 | echo "loading argument cache $wx_arg_cache_file" | |
1411 | rm -f ${wx_arg_cache_file}.tmp | |
1412 | touch ${wx_arg_cache_file}.tmp | |
1413 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1414 | |
10f2d63a VZ |
1415 | |
1416 | DEBUG_CONFIGURE=0 | |
1417 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1418 | DEFAULT_wxUSE_UNIVERSAL=no |
1419 | ||
d8356fa3 VZ |
1420 | DEFAULT_wxUSE_NANOX=no |
1421 | ||
10f2d63a VZ |
1422 | DEFAULT_wxUSE_THREADS=yes |
1423 | ||
1424 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1425 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1426 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_PROFILE=no |
1428 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1429 | DEFAULT_wxUSE_NO_RTTI=no |
1430 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1431 | DEFAULT_wxUSE_PERMISSIVE=no |
1432 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1433 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1434 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1435 | DEFAULT_wxUSE_MEM_TRACING=no | |
1436 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1437 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1438 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1439 | DEFAULT_wxUSE_APPLE_IEEE=no |
1440 | ||
1441 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1442 | DEFAULT_wxUSE_LOGWINDOW=no |
1443 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1444 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1445 | |
1446 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1447 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1448 | |
3e44f09d | 1449 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_ZLIB=no |
1451 | DEFAULT_wxUSE_LIBPNG=no | |
1452 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1453 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1454 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1455 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1456 | |
eb4efbdc | 1457 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1458 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1459 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1460 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1461 | DEFAULT_wxUSE_DATETIME=no | |
1462 | DEFAULT_wxUSE_TIMEDATE=no | |
1463 | DEFAULT_wxUSE_TIMER=no | |
1464 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1465 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1466 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1467 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1468 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1469 | DEFAULT_wxUSE_WAVE=no |
1470 | DEFAULT_wxUSE_INTL=no | |
1471 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1472 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_STREAMS=no |
1474 | DEFAULT_wxUSE_SOCKETS=no | |
1475 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1476 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1477 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1478 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1479 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1480 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1481 | |
1482 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1483 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1484 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1485 | ||
1486 | DEFAULT_wxUSE_X_RESOURCES=no | |
1487 | DEFAULT_wxUSE_CLIPBOARD=no | |
1488 | DEFAULT_wxUSE_TOOLTIPS=no | |
1489 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1490 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1491 | DEFAULT_wxUSE_SPLINES=no |
1492 | ||
1493 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1494 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1495 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1496 | ||
1497 | DEFAULT_wxUSE_PROLOGIO=no | |
1498 | DEFAULT_wxUSE_RESOURCES=no | |
1499 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1500 | DEFAULT_wxUSE_IPC=no | |
1501 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1502 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1503 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1504 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1505 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1506 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1507 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1508 | DEFAULT_wxUSE_PROTOCOL=no | |
1509 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1510 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1511 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1512 | DEFAULT_wxUSE_URL=no | |
1513 | ||
10f2d63a | 1514 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1515 | DEFAULT_wxUSE_CHOICEDLG=no |
1516 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1517 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1518 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1519 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1520 | DEFAULT_wxUSE_FONTDLG=no |
1521 | DEFAULT_wxUSE_MSGDLG=no | |
1522 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1523 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1524 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1526 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1527 | DEFAULT_wxUSE_WIZARDDLG=no |
1528 | ||
1e6feb95 | 1529 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_MINIFRAME=no |
1531 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1532 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1533 | DEFAULT_wxUSE_FS_INET=no |
1534 | DEFAULT_wxUSE_FS_ZIP=no | |
1535 | DEFAULT_wxUSE_BUSYINFO=no | |
1536 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1537 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1538 | |
1539 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1540 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1541 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1542 | DEFAULT_wxUSE_CALCTRL=no |
1543 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_CHECKBOX=no |
1545 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1546 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1547 | DEFAULT_wxUSE_COMBOBOX=no |
1548 | DEFAULT_wxUSE_GAUGE=no | |
1549 | DEFAULT_wxUSE_GRID=no | |
1550 | DEFAULT_wxUSE_NEW_GRID=no | |
1551 | DEFAULT_wxUSE_IMAGLIST=no | |
1552 | DEFAULT_wxUSE_LISTBOX=no | |
1553 | DEFAULT_wxUSE_LISTCTRL=no | |
1554 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1555 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_RADIOBOX=no |
1557 | DEFAULT_wxUSE_RADIOBTN=no | |
1558 | DEFAULT_wxUSE_SASH=no | |
1559 | DEFAULT_wxUSE_SCROLLBAR=no | |
1560 | DEFAULT_wxUSE_SLIDER=no | |
1561 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1562 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_SPLITTER=no |
1564 | DEFAULT_wxUSE_STATBMP=no | |
1565 | DEFAULT_wxUSE_STATBOX=no | |
1566 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1567 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1568 | DEFAULT_wxUSE_STATUSBAR=yes |
1569 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1570 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1571 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1572 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1573 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1574 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1575 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1576 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1577 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1578 | |
1579 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1580 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_WCSRTOMBS=no |
1582 | ||
edae8572 | 1583 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1584 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1585 | DEFAULT_wxUSE_GIF=no |
1586 | DEFAULT_wxUSE_PCX=no | |
1587 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1588 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1589 | DEFAULT_wxUSE_XPM=no |
658974ae | 1590 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1591 | else |
1e6feb95 VZ |
1592 | DEFAULT_wxUSE_UNIVERSAL=no |
1593 | ||
d8356fa3 VZ |
1594 | DEFAULT_wxUSE_NANOX=no |
1595 | ||
10f2d63a VZ |
1596 | DEFAULT_wxUSE_THREADS=yes |
1597 | ||
1598 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1599 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1600 | DEFAULT_wxUSE_OPTIMISE=yes |
1601 | DEFAULT_wxUSE_PROFILE=no | |
1602 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1603 | DEFAULT_wxUSE_NO_RTTI=no |
1604 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_PERMISSIVE=no |
1606 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1607 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1608 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1609 | DEFAULT_wxUSE_MEM_TRACING=no | |
1610 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1611 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1612 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1613 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1614 | ||
1615 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1616 | DEFAULT_wxUSE_LOGWINDOW=yes |
1617 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1618 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1619 | |
1620 | DEFAULT_wxUSE_GUI=yes | |
1621 | ||
831b3152 | 1622 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1623 | DEFAULT_wxUSE_ZLIB=yes |
1624 | DEFAULT_wxUSE_LIBPNG=yes | |
1625 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1626 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1627 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1628 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1629 | |
eb4efbdc | 1630 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1631 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1632 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1633 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1634 | DEFAULT_wxUSE_DATETIME=yes | |
1635 | DEFAULT_wxUSE_TIMEDATE=no | |
1636 | DEFAULT_wxUSE_TIMER=yes | |
1637 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1638 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1639 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1640 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1641 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_WAVE=no |
1643 | DEFAULT_wxUSE_INTL=yes | |
1644 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1645 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_STREAMS=yes |
1647 | DEFAULT_wxUSE_SOCKETS=yes | |
1648 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1649 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1650 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1651 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1652 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1653 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1654 | |
1655 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1656 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1657 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1658 | ||
1659 | DEFAULT_wxUSE_X_RESOURCES=no | |
1660 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1661 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1662 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1663 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1664 | DEFAULT_wxUSE_SPLINES=yes |
1665 | ||
1666 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1667 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1668 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1669 | ||
1670 | DEFAULT_wxUSE_PROLOGIO=yes | |
1671 | DEFAULT_wxUSE_RESOURCES=yes | |
1672 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1673 | DEFAULT_wxUSE_IPC=yes | |
1674 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1675 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1676 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1677 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1678 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1679 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1680 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1681 | DEFAULT_wxUSE_PROTOCOL=yes |
1682 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1683 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1684 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1685 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1686 | |
1687 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1688 | DEFAULT_wxUSE_CHOICEDLG=yes |
1689 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1690 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1691 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1692 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1693 | DEFAULT_wxUSE_FONTDLG=yes |
1694 | DEFAULT_wxUSE_MSGDLG=yes | |
1695 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1696 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1697 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1699 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1700 | DEFAULT_wxUSE_WIZARDDLG=yes |
1701 | ||
1e6feb95 | 1702 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_MINIFRAME=yes |
1704 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1705 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1706 | DEFAULT_wxUSE_FS_INET=yes |
1707 | DEFAULT_wxUSE_FS_ZIP=yes | |
1708 | DEFAULT_wxUSE_BUSYINFO=yes | |
1709 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1710 | DEFAULT_wxUSE_VALIDATORS=yes | |
1711 | ||
1712 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1713 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1714 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1715 | DEFAULT_wxUSE_CALCTRL=yes |
1716 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1717 | DEFAULT_wxUSE_CHECKBOX=yes |
1718 | DEFAULT_wxUSE_CHECKLST=yes | |
1719 | DEFAULT_wxUSE_CHOICE=yes | |
1720 | DEFAULT_wxUSE_COMBOBOX=yes | |
1721 | DEFAULT_wxUSE_GAUGE=yes | |
1722 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1723 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1724 | DEFAULT_wxUSE_IMAGLIST=yes |
1725 | DEFAULT_wxUSE_LISTBOX=yes | |
1726 | DEFAULT_wxUSE_LISTCTRL=yes | |
1727 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1728 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1729 | DEFAULT_wxUSE_RADIOBOX=yes |
1730 | DEFAULT_wxUSE_RADIOBTN=yes | |
1731 | DEFAULT_wxUSE_SASH=yes | |
1732 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1733 | DEFAULT_wxUSE_SLIDER=yes | |
1734 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1735 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1736 | DEFAULT_wxUSE_SPLITTER=yes |
1737 | DEFAULT_wxUSE_STATBMP=yes | |
1738 | DEFAULT_wxUSE_STATBOX=yes | |
1739 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1740 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1741 | DEFAULT_wxUSE_STATUSBAR=yes |
1742 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1743 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1744 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1745 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1746 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1747 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1748 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1749 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1750 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1751 | |
1752 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1753 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1754 | DEFAULT_wxUSE_WCSRTOMBS=no |
1755 | ||
edae8572 | 1756 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1757 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1758 | DEFAULT_wxUSE_GIF=yes |
1759 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1760 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1761 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1762 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1763 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1764 | fi |
1765 | ||
698dcdb6 VZ |
1766 | |
1767 | ||
10f2d63a VZ |
1768 | for toolkit in `echo $ALL_TOOLKITS`; do |
1769 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1770 | if test "x$LINE" != x ; then | |
1771 | has_toolkit_in_cache=1 | |
1772 | eval "DEFAULT_$LINE" | |
1773 | eval "CACHE_$toolkit=1" | |
1774 | fi | |
1775 | done | |
1776 | ||
698dcdb6 VZ |
1777 | |
1778 | ||
1779 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
986ecc86 | 1780 | echo "configure:1781: checking for --enable-gui" >&5 |
10f2d63a VZ |
1781 | no_cache=0 |
1782 | # Check whether --enable-gui or --disable-gui was given. | |
1783 | if test "${enable_gui+set}" = set; then | |
1784 | enableval="$enable_gui" | |
698dcdb6 | 1785 | |
10f2d63a VZ |
1786 | if test "$enableval" = yes; then |
1787 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1788 | else | |
1789 | ac_cv_use_gui='wxUSE_GUI=no' | |
1790 | fi | |
698dcdb6 | 1791 | |
10f2d63a | 1792 | else |
698dcdb6 | 1793 | |
10f2d63a VZ |
1794 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1795 | if test "x$LINE" != x ; then | |
1796 | eval "DEFAULT_$LINE" | |
1797 | else | |
1798 | no_cache=1 | |
1799 | fi | |
1800 | ||
1801 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1802 | |
1803 | fi | |
10f2d63a VZ |
1804 | |
1805 | ||
1806 | eval "$ac_cv_use_gui" | |
1807 | if test "$no_cache" != 1; then | |
1808 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1809 | fi | |
1810 | ||
1811 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1813 | else |
698dcdb6 | 1814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1815 | fi |
698dcdb6 | 1816 | |
10f2d63a | 1817 | |
b12915c1 | 1818 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1819 | |
1e6feb95 VZ |
1820 | |
1821 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
986ecc86 | 1822 | echo "configure:1823: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1823 | no_cache=0 |
1824 | # Check whether --enable-universal or --disable-universal was given. | |
1825 | if test "${enable_universal+set}" = set; then | |
1826 | enableval="$enable_universal" | |
1827 | ||
1828 | if test "$enableval" = yes; then | |
1829 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1830 | else | |
1831 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1832 | fi | |
1833 | ||
1834 | else | |
1835 | ||
1836 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1837 | if test "x$LINE" != x ; then | |
1838 | eval "DEFAULT_$LINE" | |
1839 | else | |
1840 | no_cache=1 | |
1841 | fi | |
1842 | ||
1843 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1844 | ||
1845 | fi | |
1846 | ||
1847 | ||
1848 | eval "$ac_cv_use_universal" | |
1849 | if test "$no_cache" != 1; then | |
1850 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1851 | fi | |
1852 | ||
1853 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1854 | echo "$ac_t""yes" 1>&6 | |
1855 | else | |
1856 | echo "$ac_t""no" 1>&6 | |
1857 | fi | |
1858 | ||
10f2d63a VZ |
1859 | # Check whether --with-gtk or --without-gtk was given. |
1860 | if test "${with_gtk+set}" = set; then | |
1861 | withval="$with_gtk" | |
1862 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1863 | fi |
10f2d63a VZ |
1864 | |
1865 | # Check whether --with-motif or --without-motif was given. | |
1866 | if test "${with_motif+set}" = set; then | |
1867 | withval="$with_motif" | |
1868 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1869 | fi |
10f2d63a | 1870 | |
b4085ce6 GD |
1871 | # Check whether --with-mac or --without-mac was given. |
1872 | if test "${with_mac+set}" = set; then | |
1873 | withval="$with_mac" | |
1874 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1875 | fi |
b4085ce6 | 1876 | |
10f2d63a VZ |
1877 | # Check whether --with-wine or --without-wine was given. |
1878 | if test "${with_wine+set}" = set; then | |
1879 | withval="$with_wine" | |
1880 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1881 | fi |
10f2d63a | 1882 | |
77e13408 RL |
1883 | # Check whether --with-msw or --without-msw was given. |
1884 | if test "${with_msw+set}" = set; then | |
1885 | withval="$with_msw" | |
b4efce5e | 1886 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
698dcdb6 | 1887 | fi |
10f2d63a | 1888 | |
e07802fc VZ |
1889 | # Check whether --with-pm or --without-pm was given. |
1890 | if test "${with_pm+set}" = set; then | |
1891 | withval="$with_pm" | |
1892 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1893 | fi |
1894 | ||
1e6feb95 VZ |
1895 | # Check whether --with-mgl or --without-mgl was given. |
1896 | if test "${with_mgl+set}" = set; then | |
1897 | withval="$with_mgl" | |
6c657b52 | 1898 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
1e6feb95 VZ |
1899 | fi |
1900 | ||
1725144d RR |
1901 | # Check whether --with-microwin or --without-microwin was given. |
1902 | if test "${with_microwin+set}" = set; then | |
1903 | withval="$with_microwin" | |
1904 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1905 | fi | |
1906 | ||
f79bd02d JS |
1907 | # Check whether --with-x11 or --without-x11 was given. |
1908 | if test "${with_x11+set}" = set; then | |
1909 | withval="$with_x11" | |
3c011993 | 1910 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1911 | fi |
1912 | ||
10f2d63a | 1913 | |
ba875e66 | 1914 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
986ecc86 | 1915 | echo "configure:1916: checking for --enable-nanox" >&5 |
d8356fa3 | 1916 | no_cache=0 |
ba875e66 VZ |
1917 | # Check whether --enable-nanox or --disable-nanox was given. |
1918 | if test "${enable_nanox+set}" = set; then | |
1919 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1920 | |
1921 | if test "$enableval" = yes; then | |
ba875e66 | 1922 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1923 | else |
ba875e66 | 1924 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1925 | fi |
1926 | ||
1927 | else | |
1928 | ||
1929 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1930 | if test "x$LINE" != x ; then | |
1931 | eval "DEFAULT_$LINE" | |
1932 | else | |
1933 | no_cache=1 | |
1934 | fi | |
1935 | ||
ba875e66 | 1936 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1937 | |
1938 | fi | |
1939 | ||
1940 | ||
ba875e66 | 1941 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1942 | if test "$no_cache" != 1; then |
ba875e66 | 1943 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1944 | fi |
1945 | ||
1946 | if test "$wxUSE_NANOX" = yes; then | |
1947 | echo "$ac_t""yes" 1>&6 | |
1948 | else | |
1949 | echo "$ac_t""no" 1>&6 | |
1950 | fi | |
1951 | ||
1952 | ||
8168de4c VZ |
1953 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1954 | if test "${enable_gtk2+set}" = set; then | |
1955 | enableval="$enable_gtk2" | |
9e691f46 | 1956 | wxUSE_GTK2="yes" |
10f2d63a | 1957 | else |
9e691f46 | 1958 | wxUSE_GTK2="no" |
698dcdb6 VZ |
1959 | fi |
1960 | ||
703e0a69 | 1961 | |
1e487827 | 1962 | |
698dcdb6 | 1963 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
986ecc86 | 1964 | echo "configure:1965: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1965 | no_cache=0 |
1966 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1967 | if test "${with_libpng+set}" = set; then |
1968 | withval="$with_libpng" | |
698dcdb6 | 1969 | |
10f2d63a | 1970 | if test "$withval" = yes; then |
b12915c1 | 1971 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1972 | elif test "$withval" = no; then |
b12915c1 | 1973 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1974 | elif test "$withval" = sys; then |
1975 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1976 | elif test "$withval" = builtin; then |
1977 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1978 | else |
4f14bcd8 | 1979 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1980 | fi |
698dcdb6 | 1981 | |
10f2d63a | 1982 | else |
698dcdb6 | 1983 | |
b12915c1 | 1984 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1985 | if test "x$LINE" != x ; then |
1986 | eval "DEFAULT_$LINE" | |
1987 | else | |
1988 | no_cache=1 | |
1989 | fi | |
1990 | ||
b12915c1 | 1991 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1992 | |
1993 | fi | |
10f2d63a VZ |
1994 | |
1995 | ||
b12915c1 | 1996 | eval "$ac_cv_use_libpng" |
10f2d63a | 1997 | if test "$no_cache" != 1; then |
b12915c1 | 1998 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1999 | fi |
2000 | ||
b12915c1 | 2001 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 2002 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2003 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 2004 | echo "$ac_t""no" 1>&6 |
422107f9 | 2005 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 2006 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2007 | elif test "$wxUSE_LIBPNG" = builtin; then |
2008 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2009 | else |
4f14bcd8 | 2010 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2011 | fi |
698dcdb6 | 2012 | |
10f2d63a | 2013 | |
698dcdb6 | 2014 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
986ecc86 | 2015 | echo "configure:2016: checking for --with-libjpeg" >&5 |
10f2d63a | 2016 | no_cache=0 |
698dcdb6 | 2017 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2018 | if test "${with_libjpeg+set}" = set; then |
2019 | withval="$with_libjpeg" | |
698dcdb6 | 2020 | |
10f2d63a | 2021 | if test "$withval" = yes; then |
b12915c1 | 2022 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2023 | elif test "$withval" = no; then |
b12915c1 | 2024 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2025 | elif test "$withval" = sys; then |
2026 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2027 | elif test "$withval" = builtin; then |
2028 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2029 | else |
4f14bcd8 | 2030 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2031 | fi |
698dcdb6 | 2032 | |
10f2d63a | 2033 | else |
698dcdb6 | 2034 | |
b12915c1 | 2035 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2036 | if test "x$LINE" != x ; then |
2037 | eval "DEFAULT_$LINE" | |
2038 | else | |
2039 | no_cache=1 | |
2040 | fi | |
2041 | ||
b12915c1 | 2042 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2043 | |
2044 | fi | |
10f2d63a VZ |
2045 | |
2046 | ||
b12915c1 | 2047 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2048 | if test "$no_cache" != 1; then |
b12915c1 | 2049 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2050 | fi |
2051 | ||
b12915c1 | 2052 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2053 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2054 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2055 | echo "$ac_t""no" 1>&6 |
422107f9 | 2056 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2057 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2058 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2059 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2060 | else |
4f14bcd8 | 2061 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2062 | fi |
698dcdb6 | 2063 | |
10f2d63a | 2064 | |
698dcdb6 | 2065 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
986ecc86 | 2066 | echo "configure:2067: checking for --with-libtiff" >&5 |
10f2d63a | 2067 | no_cache=0 |
698dcdb6 | 2068 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2069 | if test "${with_libtiff+set}" = set; then |
2070 | withval="$with_libtiff" | |
698dcdb6 | 2071 | |
10f2d63a | 2072 | if test "$withval" = yes; then |
b12915c1 | 2073 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2074 | elif test "$withval" = no; then |
b12915c1 | 2075 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2076 | elif test "$withval" = sys; then |
2077 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2078 | elif test "$withval" = builtin; then |
2079 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2080 | else |
4f14bcd8 | 2081 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2082 | fi |
698dcdb6 | 2083 | |
10f2d63a | 2084 | else |
698dcdb6 | 2085 | |
b12915c1 | 2086 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2087 | if test "x$LINE" != x ; then |
2088 | eval "DEFAULT_$LINE" | |
2089 | else | |
2090 | no_cache=1 | |
2091 | fi | |
2092 | ||
b12915c1 | 2093 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2094 | |
2095 | fi | |
10f2d63a VZ |
2096 | |
2097 | ||
b12915c1 | 2098 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2099 | if test "$no_cache" != 1; then |
b12915c1 | 2100 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2101 | fi |
2102 | ||
b12915c1 | 2103 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2104 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2105 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2106 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2107 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2108 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2109 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2110 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2111 | else |
4f14bcd8 | 2112 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2113 | fi |
698dcdb6 | 2114 | |
10f2d63a | 2115 | |
698dcdb6 | 2116 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
986ecc86 | 2117 | echo "configure:2118: checking for --with-opengl" >&5 |
10f2d63a | 2118 | no_cache=0 |
698dcdb6 | 2119 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2120 | if test "${with_opengl+set}" = set; then |
2121 | withval="$with_opengl" | |
698dcdb6 | 2122 | |
10f2d63a | 2123 | if test "$withval" = yes; then |
b12915c1 | 2124 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2125 | else |
b12915c1 | 2126 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2127 | fi |
698dcdb6 | 2128 | |
10f2d63a | 2129 | else |
698dcdb6 | 2130 | |
b12915c1 | 2131 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2132 | if test "x$LINE" != x ; then |
2133 | eval "DEFAULT_$LINE" | |
2134 | else | |
2135 | no_cache=1 | |
2136 | fi | |
2137 | ||
b12915c1 | 2138 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2139 | |
2140 | fi | |
10f2d63a VZ |
2141 | |
2142 | ||
b12915c1 | 2143 | eval "$ac_cv_use_opengl" |
10f2d63a | 2144 | if test "$no_cache" != 1; then |
b12915c1 | 2145 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2146 | fi |
2147 | ||
b12915c1 | 2148 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2149 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2150 | else |
698dcdb6 | 2151 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2152 | fi |
698dcdb6 | 2153 | |
10f2d63a | 2154 | |
b12915c1 VZ |
2155 | fi |
2156 | ||
1e487827 | 2157 | |
698dcdb6 | 2158 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
986ecc86 | 2159 | echo "configure:2160: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2160 | no_cache=0 |
2161 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2162 | if test "${with_dmalloc+set}" = set; then |
2163 | withval="$with_dmalloc" | |
698dcdb6 | 2164 | |
c7a2bf27 | 2165 | if test "$withval" = yes; then |
b12915c1 | 2166 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2167 | else |
b12915c1 | 2168 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2169 | fi |
698dcdb6 | 2170 | |
c7a2bf27 | 2171 | else |
698dcdb6 | 2172 | |
b12915c1 | 2173 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2174 | if test "x$LINE" != x ; then |
2175 | eval "DEFAULT_$LINE" | |
2176 | else | |
2177 | no_cache=1 | |
2178 | fi | |
2179 | ||
b12915c1 | 2180 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2181 | |
2182 | fi | |
c7a2bf27 RR |
2183 | |
2184 | ||
b12915c1 | 2185 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2186 | if test "$no_cache" != 1; then |
b12915c1 | 2187 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2188 | fi |
2189 | ||
b12915c1 | 2190 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2191 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2192 | else |
698dcdb6 | 2193 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2194 | fi |
698dcdb6 | 2195 | |
c7a2bf27 | 2196 | |
3e44f09d | 2197 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
986ecc86 | 2198 | echo "configure:2199: checking for --with-regex" >&5 |
3e44f09d VZ |
2199 | no_cache=0 |
2200 | # Check whether --with-regex or --without-regex was given. | |
2201 | if test "${with_regex+set}" = set; then | |
2202 | withval="$with_regex" | |
2203 | ||
2204 | if test "$withval" = yes; then | |
2205 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2206 | elif test "$withval" = no; then | |
2207 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2208 | elif test "$withval" = sys; then | |
2209 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2210 | elif test "$withval" = builtin; then |
2211 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2212 | else |
4f14bcd8 | 2213 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2214 | fi |
2215 | ||
2216 | else | |
2217 | ||
2218 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2219 | if test "x$LINE" != x ; then | |
2220 | eval "DEFAULT_$LINE" | |
2221 | else | |
2222 | no_cache=1 | |
2223 | fi | |
2224 | ||
2225 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2226 | ||
2227 | fi | |
2228 | ||
2229 | ||
2230 | eval "$ac_cv_use_regex" | |
2231 | if test "$no_cache" != 1; then | |
2232 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2233 | fi | |
2234 | ||
2235 | if test "$wxUSE_REGEX" = yes; then | |
2236 | echo "$ac_t""yes" 1>&6 | |
2237 | elif test "$wxUSE_REGEX" = no; then | |
2238 | echo "$ac_t""no" 1>&6 | |
2239 | elif test "$wxUSE_REGEX" = sys; then | |
2240 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2241 | elif test "$wxUSE_REGEX" = builtin; then |
2242 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2243 | else |
4f14bcd8 | 2244 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2245 | fi |
2246 | ||
2247 | ||
698dcdb6 | 2248 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
986ecc86 | 2249 | echo "configure:2250: checking for --with-zlib" >&5 |
10f2d63a | 2250 | no_cache=0 |
698dcdb6 | 2251 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2252 | if test "${with_zlib+set}" = set; then |
2253 | withval="$with_zlib" | |
698dcdb6 | 2254 | |
10f2d63a | 2255 | if test "$withval" = yes; then |
b12915c1 | 2256 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2257 | elif test "$withval" = no; then |
b12915c1 | 2258 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2259 | elif test "$withval" = sys; then |
2260 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2261 | elif test "$withval" = builtin; then |
2262 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2263 | else |
4f14bcd8 | 2264 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2265 | fi |
698dcdb6 | 2266 | |
10f2d63a | 2267 | else |
698dcdb6 | 2268 | |
b12915c1 | 2269 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2270 | if test "x$LINE" != x ; then |
2271 | eval "DEFAULT_$LINE" | |
2272 | else | |
2273 | no_cache=1 | |
2274 | fi | |
2275 | ||
b12915c1 | 2276 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2277 | |
2278 | fi | |
10f2d63a VZ |
2279 | |
2280 | ||
b12915c1 | 2281 | eval "$ac_cv_use_zlib" |
10f2d63a | 2282 | if test "$no_cache" != 1; then |
b12915c1 | 2283 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2284 | fi |
2285 | ||
b12915c1 | 2286 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2287 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2288 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2289 | echo "$ac_t""no" 1>&6 |
422107f9 | 2290 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2291 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2292 | elif test "$wxUSE_ZLIB" = builtin; then |
2293 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2294 | else |
4f14bcd8 | 2295 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2296 | fi |
698dcdb6 | 2297 | |
10f2d63a | 2298 | |
698dcdb6 | 2299 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
986ecc86 | 2300 | echo "configure:2301: checking for --with-odbc" >&5 |
10f2d63a | 2301 | no_cache=0 |
698dcdb6 | 2302 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2303 | if test "${with_odbc+set}" = set; then |
2304 | withval="$with_odbc" | |
698dcdb6 | 2305 | |
10f2d63a VZ |
2306 | if test "$withval" = yes; then |
2307 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2308 | else | |
2309 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2310 | fi | |
698dcdb6 | 2311 | |
10f2d63a | 2312 | else |
698dcdb6 | 2313 | |
10f2d63a VZ |
2314 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2315 | if test "x$LINE" != x ; then | |
2316 | eval "DEFAULT_$LINE" | |
2317 | else | |
2318 | no_cache=1 | |
2319 | fi | |
2320 | ||
2321 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2322 | |
2323 | fi | |
10f2d63a VZ |
2324 | |
2325 | ||
2326 | eval "$ac_cv_use_odbc" | |
2327 | if test "$no_cache" != 1; then | |
2328 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2329 | fi | |
2330 | ||
2331 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2333 | else |
698dcdb6 | 2334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2335 | fi |
698dcdb6 VZ |
2336 | |
2337 | ||
10f2d63a | 2338 | |
698dcdb6 | 2339 | |
698dcdb6 | 2340 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
986ecc86 | 2341 | echo "configure:2342: checking for --enable-shared" >&5 |
10f2d63a VZ |
2342 | no_cache=0 |
2343 | # Check whether --enable-shared or --disable-shared was given. | |
2344 | if test "${enable_shared+set}" = set; then | |
2345 | enableval="$enable_shared" | |
698dcdb6 | 2346 | |
10f2d63a VZ |
2347 | if test "$enableval" = yes; then |
2348 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2349 | else | |
2350 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2351 | fi | |
698dcdb6 | 2352 | |
10f2d63a | 2353 | else |
698dcdb6 | 2354 | |
10f2d63a VZ |
2355 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2356 | if test "x$LINE" != x ; then | |
2357 | eval "DEFAULT_$LINE" | |
2358 | else | |
2359 | no_cache=1 | |
2360 | fi | |
2361 | ||
2362 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2363 | |
2364 | fi | |
10f2d63a VZ |
2365 | |
2366 | ||
2367 | eval "$ac_cv_use_shared" | |
2368 | if test "$no_cache" != 1; then | |
2369 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2370 | fi | |
2371 | ||
2372 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2373 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2374 | else |
698dcdb6 | 2375 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2376 | fi |
698dcdb6 | 2377 | |
10f2d63a | 2378 | |
3a922bb4 | 2379 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
986ecc86 | 2380 | echo "configure:2381: checking for --enable-soname" >&5 |
00cf1208 | 2381 | no_cache=0 |
3a922bb4 RL |
2382 | # Check whether --enable-soname or --disable-soname was given. |
2383 | if test "${enable_soname+set}" = set; then | |
2384 | enableval="$enable_soname" | |
698dcdb6 | 2385 | |
00cf1208 | 2386 | if test "$enableval" = yes; then |
3a922bb4 | 2387 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2388 | else |
3a922bb4 | 2389 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2390 | fi |
698dcdb6 | 2391 | |
00cf1208 | 2392 | else |
698dcdb6 | 2393 | |
3a922bb4 | 2394 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2395 | if test "x$LINE" != x ; then |
2396 | eval "DEFAULT_$LINE" | |
2397 | else | |
2398 | no_cache=1 | |
2399 | fi | |
2400 | ||
3a922bb4 | 2401 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2402 | |
2403 | fi | |
00cf1208 RR |
2404 | |
2405 | ||
3a922bb4 | 2406 | eval "$ac_cv_use_soname" |
00cf1208 | 2407 | if test "$no_cache" != 1; then |
3a922bb4 | 2408 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2409 | fi |
2410 | ||
3a922bb4 | 2411 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2412 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2413 | else |
698dcdb6 | 2414 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2415 | fi |
698dcdb6 | 2416 | |
00cf1208 | 2417 | |
698dcdb6 | 2418 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
986ecc86 | 2419 | echo "configure:2420: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2420 | no_cache=0 |
2421 | # Check whether --enable-optimise or --disable-optimise was given. | |
2422 | if test "${enable_optimise+set}" = set; then | |
2423 | enableval="$enable_optimise" | |
698dcdb6 | 2424 | |
10f2d63a VZ |
2425 | if test "$enableval" = yes; then |
2426 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2427 | else | |
2428 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2429 | fi | |
698dcdb6 | 2430 | |
10f2d63a | 2431 | else |
698dcdb6 | 2432 | |
10f2d63a VZ |
2433 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2434 | if test "x$LINE" != x ; then | |
2435 | eval "DEFAULT_$LINE" | |
2436 | else | |
2437 | no_cache=1 | |
2438 | fi | |
2439 | ||
2440 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2441 | |
2442 | fi | |
10f2d63a VZ |
2443 | |
2444 | ||
2445 | eval "$ac_cv_use_optimise" | |
2446 | if test "$no_cache" != 1; then | |
2447 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2448 | fi | |
2449 | ||
2450 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2451 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2452 | else |
698dcdb6 | 2453 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2454 | fi |
698dcdb6 | 2455 | |
10f2d63a | 2456 | |
698dcdb6 | 2457 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
986ecc86 | 2458 | echo "configure:2459: checking for --enable-debug" >&5 |
10f2d63a VZ |
2459 | no_cache=0 |
2460 | # Check whether --enable-debug or --disable-debug was given. | |
2461 | if test "${enable_debug+set}" = set; then | |
2462 | enableval="$enable_debug" | |
698dcdb6 | 2463 | |
10f2d63a VZ |
2464 | if test "$enableval" = yes; then |
2465 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2466 | else | |
2467 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2468 | fi | |
698dcdb6 | 2469 | |
10f2d63a | 2470 | else |
698dcdb6 | 2471 | |
10f2d63a VZ |
2472 | LINE=`grep "wxUSE_DEBUG" ${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_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2480 | |
2481 | fi | |
10f2d63a VZ |
2482 | |
2483 | ||
2484 | eval "$ac_cv_use_debug" | |
2485 | if test "$no_cache" != 1; then | |
2486 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2487 | fi | |
2488 | ||
2489 | if test "$wxUSE_DEBUG" = 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 | |
683dccda GD |
2496 | |
2497 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
986ecc86 | 2498 | echo "configure:2499: checking for --enable-precomp" >&5 |
683dccda GD |
2499 | no_cache=0 |
2500 | # Check whether --enable-precomp or --disable-precomp was given. | |
2501 | if test "${enable_precomp+set}" = set; then | |
2502 | enableval="$enable_precomp" | |
2503 | ||
2504 | if test "$enableval" = yes; then | |
2505 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2506 | else | |
2507 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2508 | fi | |
2509 | ||
2510 | else | |
2511 | ||
2512 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2513 | if test "x$LINE" != x ; then | |
2514 | eval "DEFAULT_$LINE" | |
2515 | else | |
2516 | no_cache=1 | |
2517 | fi | |
2518 | ||
2519 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2520 | ||
2521 | fi | |
2522 | ||
2523 | ||
2524 | eval "$ac_cv_use_precomp" | |
2525 | if test "$no_cache" != 1; then | |
2526 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2527 | fi | |
2528 | ||
2529 | if test "$wxUSE_PRECOMP" = yes; then | |
2530 | echo "$ac_t""yes" 1>&6 | |
2531 | else | |
2532 | echo "$ac_t""no" 1>&6 | |
2533 | fi | |
2534 | ||
2535 | ||
10f2d63a VZ |
2536 | if test "$wxUSE_DEBUG" = "yes"; then |
2537 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2538 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2539 | elif test "$wxUSE_DEBUG" = "no"; then | |
2540 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2541 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2542 | fi | |
2543 | ||
698dcdb6 VZ |
2544 | |
2545 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
986ecc86 | 2546 | echo "configure:2547: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2547 | no_cache=0 |
2548 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2549 | if test "${enable_debug_flag+set}" = set; then | |
2550 | enableval="$enable_debug_flag" | |
698dcdb6 | 2551 | |
10f2d63a VZ |
2552 | if test "$enableval" = yes; then |
2553 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2554 | else | |
2555 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2556 | fi | |
698dcdb6 | 2557 | |
10f2d63a | 2558 | else |
698dcdb6 | 2559 | |
10f2d63a VZ |
2560 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2561 | if test "x$LINE" != x ; then | |
2562 | eval "DEFAULT_$LINE" | |
2563 | else | |
2564 | no_cache=1 | |
2565 | fi | |
2566 | ||
2567 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2568 | |
2569 | fi | |
10f2d63a VZ |
2570 | |
2571 | ||
2572 | eval "$ac_cv_use_debug_flag" | |
2573 | if test "$no_cache" != 1; then | |
2574 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2575 | fi | |
2576 | ||
2577 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2578 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2579 | else |
698dcdb6 | 2580 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2581 | fi |
698dcdb6 | 2582 | |
10f2d63a | 2583 | |
698dcdb6 | 2584 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
986ecc86 | 2585 | echo "configure:2586: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2586 | no_cache=0 |
2587 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2588 | if test "${enable_debug_info+set}" = set; then | |
2589 | enableval="$enable_debug_info" | |
698dcdb6 | 2590 | |
10f2d63a VZ |
2591 | if test "$enableval" = yes; then |
2592 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2593 | else | |
2594 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2595 | fi | |
698dcdb6 | 2596 | |
10f2d63a | 2597 | else |
698dcdb6 | 2598 | |
10f2d63a VZ |
2599 | LINE=`grep "wxUSE_DEBUG_INFO" ${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_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2607 | |
2608 | fi | |
10f2d63a VZ |
2609 | |
2610 | ||
2611 | eval "$ac_cv_use_debug_info" | |
2612 | if test "$no_cache" != 1; then | |
2613 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2614 | fi | |
2615 | ||
2616 | if test "$wxUSE_DEBUG_INFO" = 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_gdb""... $ac_c" 1>&6 |
986ecc86 | 2624 | echo "configure:2625: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2625 | no_cache=0 |
2626 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2627 | if test "${enable_debug_gdb+set}" = set; then | |
2628 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2629 | |
10f2d63a VZ |
2630 | if test "$enableval" = yes; then |
2631 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2632 | else | |
2633 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2634 | fi | |
698dcdb6 | 2635 | |
10f2d63a | 2636 | else |
698dcdb6 | 2637 | |
10f2d63a VZ |
2638 | LINE=`grep "wxUSE_DEBUG_GDB" ${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_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2646 | |
2647 | fi | |
10f2d63a VZ |
2648 | |
2649 | ||
2650 | eval "$ac_cv_use_debug_gdb" | |
2651 | if test "$no_cache" != 1; then | |
2652 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2653 | fi | |
2654 | ||
2655 | if test "$wxUSE_DEBUG_GDB" = 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_cntxt""... $ac_c" 1>&6 |
986ecc86 | 2663 | echo "configure:2664: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2664 | no_cache=0 |
2665 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2666 | if test "${enable_debug_cntxt+set}" = set; then | |
2667 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2668 | |
10f2d63a VZ |
2669 | if test "$enableval" = yes; then |
2670 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2671 | else | |
2672 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2673 | fi | |
698dcdb6 | 2674 | |
10f2d63a | 2675 | else |
698dcdb6 | 2676 | |
10f2d63a VZ |
2677 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2685 | |
2686 | fi | |
10f2d63a VZ |
2687 | |
2688 | ||
2689 | eval "$ac_cv_use_debug_cntxt" | |
2690 | if test "$no_cache" != 1; then | |
2691 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2692 | fi | |
2693 | ||
2694 | if test "$wxUSE_DEBUG_CONTEXT" = 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-mem_tracing""... $ac_c" 1>&6 |
986ecc86 | 2702 | echo "configure:2703: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2703 | no_cache=0 |
2704 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2705 | if test "${enable_mem_tracing+set}" = set; then | |
2706 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2707 | |
10f2d63a VZ |
2708 | if test "$enableval" = yes; then |
2709 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2710 | else | |
2711 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2712 | fi | |
698dcdb6 | 2713 | |
10f2d63a | 2714 | else |
698dcdb6 | 2715 | |
10f2d63a VZ |
2716 | LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2724 | |
2725 | fi | |
10f2d63a VZ |
2726 | |
2727 | ||
2728 | eval "$ac_cv_use_mem_tracing" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_MEM_TRACING" = 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-profile""... $ac_c" 1>&6 |
986ecc86 | 2741 | echo "configure:2742: checking for --enable-profile" >&5 |
10f2d63a VZ |
2742 | no_cache=0 |
2743 | # Check whether --enable-profile or --disable-profile was given. | |
2744 | if test "${enable_profile+set}" = set; then | |
2745 | enableval="$enable_profile" | |
698dcdb6 | 2746 | |
10f2d63a VZ |
2747 | if test "$enableval" = yes; then |
2748 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2749 | else | |
2750 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2751 | fi | |
698dcdb6 | 2752 | |
10f2d63a | 2753 | else |
698dcdb6 | 2754 | |
10f2d63a VZ |
2755 | LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2763 | |
2764 | fi | |
10f2d63a VZ |
2765 | |
2766 | ||
2767 | eval "$ac_cv_use_profile" | |
2768 | if test "$no_cache" != 1; then | |
2769 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2770 | fi | |
2771 | ||
2772 | if test "$wxUSE_PROFILE" = 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-no_rtti""... $ac_c" 1>&6 |
986ecc86 | 2780 | echo "configure:2781: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2781 | no_cache=0 |
2782 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2783 | if test "${enable_no_rtti+set}" = set; then | |
2784 | enableval="$enable_no_rtti" | |
698dcdb6 | 2785 | |
10f2d63a VZ |
2786 | if test "$enableval" = yes; then |
2787 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2788 | else | |
2789 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2790 | fi | |
698dcdb6 | 2791 | |
10f2d63a | 2792 | else |
698dcdb6 | 2793 | |
10f2d63a VZ |
2794 | LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2802 | |
2803 | fi | |
10f2d63a VZ |
2804 | |
2805 | ||
2806 | eval "$ac_cv_use_no_rtti" | |
2807 | if test "$no_cache" != 1; then | |
2808 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2809 | fi | |
2810 | ||
2811 | if test "$wxUSE_NO_RTTI" = 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_exceptions""... $ac_c" 1>&6 |
986ecc86 | 2819 | echo "configure:2820: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2820 | no_cache=0 |
2821 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2822 | if test "${enable_no_exceptions+set}" = set; then | |
2823 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2824 | |
10f2d63a VZ |
2825 | if test "$enableval" = yes; then |
2826 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2827 | else | |
2828 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2829 | fi | |
698dcdb6 | 2830 | |
10f2d63a | 2831 | else |
698dcdb6 | 2832 | |
10f2d63a VZ |
2833 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2841 | |
2842 | fi | |
10f2d63a VZ |
2843 | |
2844 | ||
2845 | eval "$ac_cv_use_no_exceptions" | |
2846 | if test "$no_cache" != 1; then | |
2847 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2848 | fi | |
2849 | ||
2850 | if test "$wxUSE_NO_EXCEPTIONS" = 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-permissive""... $ac_c" 1>&6 |
986ecc86 | 2858 | echo "configure:2859: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2859 | no_cache=0 |
2860 | # Check whether --enable-permissive or --disable-permissive was given. | |
2861 | if test "${enable_permissive+set}" = set; then | |
2862 | enableval="$enable_permissive" | |
698dcdb6 | 2863 | |
10f2d63a VZ |
2864 | if test "$enableval" = yes; then |
2865 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2866 | else | |
2867 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2868 | fi | |
698dcdb6 | 2869 | |
10f2d63a | 2870 | else |
698dcdb6 | 2871 | |
10f2d63a VZ |
2872 | LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2880 | |
2881 | fi | |
10f2d63a VZ |
2882 | |
2883 | ||
2884 | eval "$ac_cv_use_permissive" | |
2885 | if test "$no_cache" != 1; then | |
2886 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2887 | fi | |
2888 | ||
2889 | if test "$wxUSE_PERMISSIVE" = 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-no_deps""... $ac_c" 1>&6 |
986ecc86 | 2897 | echo "configure:2898: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2898 | no_cache=0 |
2899 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2900 | if test "${enable_no_deps+set}" = set; then | |
2901 | enableval="$enable_no_deps" | |
698dcdb6 | 2902 | |
10f2d63a VZ |
2903 | if test "$enableval" = yes; then |
2904 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2905 | else | |
2906 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2907 | fi | |
698dcdb6 | 2908 | |
10f2d63a | 2909 | else |
698dcdb6 | 2910 | |
10f2d63a VZ |
2911 | LINE=`grep "wxUSE_NO_DEPS" ${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_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2919 | |
2920 | fi | |
10f2d63a VZ |
2921 | |
2922 | ||
2923 | eval "$ac_cv_use_no_deps" | |
2924 | if test "$no_cache" != 1; then | |
2925 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2926 | fi | |
2927 | ||
2928 | if test "$wxUSE_NO_DEPS" = 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 VZ |
2933 | |
2934 | ||
10f2d63a | 2935 | |
54276ccf | 2936 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
986ecc86 | 2937 | echo "configure:2938: checking for --enable-compat20" >&5 |
54276ccf VZ |
2938 | no_cache=0 |
2939 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2940 | if test "${enable_compat20+set}" = set; then | |
2941 | enableval="$enable_compat20" | |
2942 | ||
2943 | if test "$enableval" = yes; then | |
2944 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2945 | else | |
2946 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2947 | fi | |
2948 | ||
2949 | else | |
2950 | ||
2951 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2952 | if test "x$LINE" != x ; then | |
2953 | eval "DEFAULT_$LINE" | |
2954 | else | |
2955 | no_cache=1 | |
2956 | fi | |
2957 | ||
2958 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2959 | ||
2960 | fi | |
2961 | ||
2962 | ||
2963 | eval "$ac_cv_use_compat20" | |
2964 | if test "$no_cache" != 1; then | |
2965 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2966 | fi | |
2967 | ||
2968 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2969 | echo "$ac_t""yes" 1>&6 | |
2970 | else | |
2971 | echo "$ac_t""no" 1>&6 | |
2972 | fi | |
2973 | ||
2974 | ||
2975 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
986ecc86 | 2976 | echo "configure:2977: checking for --enable-compat22" >&5 |
54276ccf VZ |
2977 | no_cache=0 |
2978 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2979 | if test "${enable_compat22+set}" = set; then | |
2980 | enableval="$enable_compat22" | |
2981 | ||
2982 | if test "$enableval" = yes; then | |
2983 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2984 | else | |
2985 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2986 | fi | |
2987 | ||
2988 | else | |
2989 | ||
2990 | LINE=`grep "WXWIN_COMPATIBILITY_2_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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2998 | ||
2999 | fi | |
3000 | ||
3001 | ||
3002 | eval "$ac_cv_use_compat22" | |
3003 | if test "$no_cache" != 1; then | |
3004 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3005 | fi | |
3006 | ||
3007 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3008 | echo "$ac_t""yes" 1>&6 | |
3009 | else | |
3010 | echo "$ac_t""no" 1>&6 | |
3011 | fi | |
3012 | ||
3013 | ||
3014 | ||
698dcdb6 VZ |
3015 | |
3016 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
986ecc86 | 3017 | echo "configure:3018: checking for --enable-intl" >&5 |
10f2d63a VZ |
3018 | no_cache=0 |
3019 | # Check whether --enable-intl or --disable-intl was given. | |
3020 | if test "${enable_intl+set}" = set; then | |
3021 | enableval="$enable_intl" | |
698dcdb6 | 3022 | |
10f2d63a VZ |
3023 | if test "$enableval" = yes; then |
3024 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3025 | else | |
3026 | ac_cv_use_intl='wxUSE_INTL=no' | |
3027 | fi | |
698dcdb6 | 3028 | |
10f2d63a | 3029 | else |
698dcdb6 | 3030 | |
10f2d63a VZ |
3031 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3032 | if test "x$LINE" != x ; then | |
3033 | eval "DEFAULT_$LINE" | |
3034 | else | |
3035 | no_cache=1 | |
3036 | fi | |
3037 | ||
3038 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3039 | |
3040 | fi | |
10f2d63a VZ |
3041 | |
3042 | ||
3043 | eval "$ac_cv_use_intl" | |
3044 | if test "$no_cache" != 1; then | |
3045 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3046 | fi | |
3047 | ||
3048 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3050 | else |
698dcdb6 | 3051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3052 | fi |
698dcdb6 | 3053 | |
10f2d63a | 3054 | |
698dcdb6 | 3055 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
986ecc86 | 3056 | echo "configure:3057: checking for --enable-config" >&5 |
10f2d63a VZ |
3057 | no_cache=0 |
3058 | # Check whether --enable-config or --disable-config was given. | |
3059 | if test "${enable_config+set}" = set; then | |
3060 | enableval="$enable_config" | |
698dcdb6 | 3061 | |
10f2d63a VZ |
3062 | if test "$enableval" = yes; then |
3063 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3064 | else | |
3065 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3066 | fi | |
698dcdb6 | 3067 | |
10f2d63a | 3068 | else |
698dcdb6 | 3069 | |
10f2d63a VZ |
3070 | LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3078 | |
3079 | fi | |
10f2d63a VZ |
3080 | |
3081 | ||
3082 | eval "$ac_cv_use_config" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_CONFIG" = 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 VZ |
3092 | |
3093 | ||
b12915c1 | 3094 | |
a1622950 | 3095 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
986ecc86 | 3096 | echo "configure:3097: checking for --enable-protocols" >&5 |
a1622950 VZ |
3097 | no_cache=0 |
3098 | # Check whether --enable-protocols or --disable-protocols was given. | |
3099 | if test "${enable_protocols+set}" = set; then | |
3100 | enableval="$enable_protocols" | |
3101 | ||
3102 | if test "$enableval" = yes; then | |
3103 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3104 | else | |
3105 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3106 | fi | |
3107 | ||
3108 | else | |
3109 | ||
3110 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3111 | if test "x$LINE" != x ; then | |
3112 | eval "DEFAULT_$LINE" | |
3113 | else | |
3114 | no_cache=1 | |
3115 | fi | |
3116 | ||
3117 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3118 | ||
3119 | fi | |
3120 | ||
3121 | ||
3122 | eval "$ac_cv_use_protocols" | |
3123 | if test "$no_cache" != 1; then | |
3124 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3125 | fi | |
3126 | ||
3127 | if test "$wxUSE_PROTOCOL" = yes; then | |
3128 | echo "$ac_t""yes" 1>&6 | |
3129 | else | |
3130 | echo "$ac_t""no" 1>&6 | |
3131 | fi | |
3132 | ||
3133 | ||
3134 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
986ecc86 | 3135 | echo "configure:3136: checking for --enable-ftp" >&5 |
a1622950 VZ |
3136 | no_cache=0 |
3137 | # Check whether --enable-ftp or --disable-ftp was given. | |
3138 | if test "${enable_ftp+set}" = set; then | |
3139 | enableval="$enable_ftp" | |
3140 | ||
3141 | if test "$enableval" = yes; then | |
3142 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3143 | else | |
3144 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3145 | fi | |
3146 | ||
3147 | else | |
3148 | ||
3149 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3157 | ||
3158 | fi | |
3159 | ||
3160 | ||
3161 | eval "$ac_cv_use_ftp" | |
3162 | if test "$no_cache" != 1; then | |
3163 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3164 | fi | |
3165 | ||
3166 | if test "$wxUSE_PROTOCOL_FTP" = 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-http""... $ac_c" 1>&6 | |
986ecc86 | 3174 | echo "configure:3175: checking for --enable-http" >&5 |
a1622950 VZ |
3175 | no_cache=0 |
3176 | # Check whether --enable-http or --disable-http was given. | |
3177 | if test "${enable_http+set}" = set; then | |
3178 | enableval="$enable_http" | |
3179 | ||
3180 | if test "$enableval" = yes; then | |
3181 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3182 | else | |
3183 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | eval "$ac_cv_use_http" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_PROTOCOL_HTTP" = 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-fileproto""... $ac_c" 1>&6 | |
986ecc86 | 3213 | echo "configure:3214: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3214 | no_cache=0 |
3215 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3216 | if test "${enable_fileproto+set}" = set; then | |
3217 | enableval="$enable_fileproto" | |
3218 | ||
3219 | if test "$enableval" = yes; then | |
3220 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3221 | else | |
3222 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3223 | fi | |
3224 | ||
3225 | else | |
3226 | ||
3227 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3235 | ||
3236 | fi | |
3237 | ||
3238 | ||
3239 | eval "$ac_cv_use_fileproto" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3245 | echo "$ac_t""yes" 1>&6 | |
3246 | else | |
3247 | echo "$ac_t""no" 1>&6 | |
3248 | fi | |
3249 | ||
3250 | ||
698dcdb6 | 3251 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
986ecc86 | 3252 | echo "configure:3253: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3253 | no_cache=0 |
3254 | # Check whether --enable-sockets or --disable-sockets was given. | |
3255 | if test "${enable_sockets+set}" = set; then | |
3256 | enableval="$enable_sockets" | |
698dcdb6 | 3257 | |
10f2d63a VZ |
3258 | if test "$enableval" = yes; then |
3259 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3260 | else | |
3261 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3262 | fi | |
698dcdb6 | 3263 | |
10f2d63a | 3264 | else |
698dcdb6 | 3265 | |
10f2d63a VZ |
3266 | LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3274 | |
3275 | fi | |
10f2d63a VZ |
3276 | |
3277 | ||
3278 | eval "$ac_cv_use_sockets" | |
3279 | if test "$no_cache" != 1; then | |
3280 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3281 | fi | |
3282 | ||
3283 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3284 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3285 | else |
698dcdb6 | 3286 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3287 | fi |
698dcdb6 | 3288 | |
b12915c1 | 3289 | |
698dcdb6 VZ |
3290 | |
3291 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
986ecc86 | 3292 | echo "configure:3293: checking for --enable-ipc" >&5 |
10f2d63a | 3293 | no_cache=0 |
eb4efbdc VZ |
3294 | # Check whether --enable-ipc or --disable-ipc was given. |
3295 | if test "${enable_ipc+set}" = set; then | |
3296 | enableval="$enable_ipc" | |
698dcdb6 | 3297 | |
10f2d63a | 3298 | if test "$enableval" = yes; then |
eb4efbdc | 3299 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3300 | else |
eb4efbdc | 3301 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3302 | fi |
698dcdb6 | 3303 | |
10f2d63a | 3304 | else |
698dcdb6 | 3305 | |
eb4efbdc | 3306 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3307 | if test "x$LINE" != x ; then |
3308 | eval "DEFAULT_$LINE" | |
3309 | else | |
3310 | no_cache=1 | |
3311 | fi | |
3312 | ||
eb4efbdc | 3313 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3314 | |
3315 | fi | |
10f2d63a VZ |
3316 | |
3317 | ||
eb4efbdc | 3318 | eval "$ac_cv_use_ipc" |
10f2d63a | 3319 | if test "$no_cache" != 1; then |
eb4efbdc | 3320 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3321 | fi |
3322 | ||
eb4efbdc | 3323 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3324 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3325 | else |
698dcdb6 | 3326 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3327 | fi |
698dcdb6 VZ |
3328 | |
3329 | ||
eb4efbdc | 3330 | |
1e6feb95 | 3331 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
986ecc86 | 3332 | echo "configure:3333: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3333 | no_cache=0 |
3334 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3335 | if test "${enable_cmdline+set}" = set; then | |
3336 | enableval="$enable_cmdline" | |
3337 | ||
3338 | if test "$enableval" = yes; then | |
3339 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3340 | else | |
3341 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3342 | fi | |
3343 | ||
3344 | else | |
3345 | ||
3346 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3347 | if test "x$LINE" != x ; then | |
3348 | eval "DEFAULT_$LINE" | |
3349 | else | |
3350 | no_cache=1 | |
3351 | fi | |
3352 | ||
3353 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3354 | ||
3355 | fi | |
3356 | ||
3357 | ||
3358 | eval "$ac_cv_use_cmdline" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3364 | echo "$ac_t""yes" 1>&6 | |
3365 | else | |
3366 | echo "$ac_t""no" 1>&6 | |
3367 | fi | |
3368 | ||
3369 | ||
3370 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
986ecc86 | 3371 | echo "configure:3372: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3372 | no_cache=0 |
3373 | # Check whether --enable-datetime or --disable-datetime was given. | |
3374 | if test "${enable_datetime+set}" = set; then | |
3375 | enableval="$enable_datetime" | |
3376 | ||
3377 | if test "$enableval" = yes; then | |
3378 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3379 | else | |
3380 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3381 | fi | |
3382 | ||
3383 | else | |
3384 | ||
3385 | LINE=`grep "wxUSE_DATETIME" ${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_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
3397 | eval "$ac_cv_use_datetime" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_DATETIME" = 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-timedate""... $ac_c" 1>&6 | |
986ecc86 | 3410 | echo "configure:3411: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3411 | no_cache=0 |
3412 | # Check whether --enable-timedate or --disable-timedate was given. | |
3413 | if test "${enable_timedate+set}" = set; then | |
3414 | enableval="$enable_timedate" | |
3415 | ||
3416 | if test "$enableval" = yes; then | |
3417 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3418 | else | |
3419 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | ||
3436 | eval "$ac_cv_use_timedate" | |
3437 | if test "$no_cache" != 1; then | |
3438 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3439 | fi | |
3440 | ||
3441 | if test "$wxUSE_TIMEDATE" = 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-stopwatch""... $ac_c" 1>&6 | |
986ecc86 | 3449 | echo "configure:3450: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3450 | no_cache=0 |
3451 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3452 | if test "${enable_stopwatch+set}" = set; then | |
3453 | enableval="$enable_stopwatch" | |
3454 | ||
3455 | if test "$enableval" = yes; then | |
3456 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3457 | else | |
3458 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3459 | fi | |
3460 | ||
3461 | else | |
3462 | ||
3463 | LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3471 | ||
3472 | fi | |
3473 | ||
3474 | ||
3475 | eval "$ac_cv_use_stopwatch" | |
3476 | if test "$no_cache" != 1; then | |
3477 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3478 | fi | |
3479 | ||
3480 | if test "$wxUSE_STOPWATCH" = yes; then | |
3481 | echo "$ac_t""yes" 1>&6 | |
3482 | else | |
3483 | echo "$ac_t""no" 1>&6 | |
3484 | fi | |
3485 | ||
3486 | ||
698dcdb6 | 3487 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
986ecc86 | 3488 | echo "configure:3489: checking for --enable-dialupman" >&5 |
10f2d63a | 3489 | no_cache=0 |
eb4efbdc VZ |
3490 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3491 | if test "${enable_dialupman+set}" = set; then | |
3492 | enableval="$enable_dialupman" | |
698dcdb6 | 3493 | |
10f2d63a | 3494 | if test "$enableval" = yes; then |
eb4efbdc | 3495 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3496 | else |
eb4efbdc | 3497 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3498 | fi |
698dcdb6 | 3499 | |
10f2d63a | 3500 | else |
698dcdb6 | 3501 | |
eb4efbdc | 3502 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3503 | if test "x$LINE" != x ; then |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
eb4efbdc | 3509 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3510 | |
3511 | fi | |
10f2d63a VZ |
3512 | |
3513 | ||
eb4efbdc | 3514 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3515 | if test "$no_cache" != 1; then |
eb4efbdc | 3516 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3517 | fi |
3518 | ||
eb4efbdc | 3519 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3520 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3521 | else |
698dcdb6 | 3522 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3523 | fi |
698dcdb6 | 3524 | |
10f2d63a | 3525 | |
698dcdb6 | 3526 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
986ecc86 | 3527 | echo "configure:3528: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3528 | no_cache=0 |
3529 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3530 | if test "${enable_apple_ieee+set}" = set; then | |
3531 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3532 | |
10f2d63a VZ |
3533 | if test "$enableval" = yes; then |
3534 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3535 | else | |
3536 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3537 | fi | |
698dcdb6 | 3538 | |
10f2d63a | 3539 | else |
698dcdb6 | 3540 | |
10f2d63a VZ |
3541 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3549 | |
3550 | fi | |
10f2d63a VZ |
3551 | |
3552 | ||
3553 | eval "$ac_cv_use_apple_ieee" | |
3554 | if test "$no_cache" != 1; then | |
3555 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3556 | fi | |
3557 | ||
3558 | if test "$wxUSE_APPLE_IEEE" = 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 | |
1e6feb95 | 3565 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
986ecc86 | 3566 | echo "configure:3567: checking for --enable-timer" >&5 |
10f2d63a | 3567 | no_cache=0 |
1e6feb95 VZ |
3568 | # Check whether --enable-timer or --disable-timer was given. |
3569 | if test "${enable_timer+set}" = set; then | |
3570 | enableval="$enable_timer" | |
698dcdb6 | 3571 | |
10f2d63a | 3572 | if test "$enableval" = yes; then |
1e6feb95 | 3573 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3574 | else |
1e6feb95 | 3575 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3576 | fi |
698dcdb6 | 3577 | |
10f2d63a | 3578 | else |
698dcdb6 | 3579 | |
1e6feb95 | 3580 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3581 | if test "x$LINE" != x ; then |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
1e6feb95 | 3587 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3588 | |
3589 | fi | |
10f2d63a VZ |
3590 | |
3591 | ||
1e6feb95 | 3592 | eval "$ac_cv_use_timer" |
10f2d63a | 3593 | if test "$no_cache" != 1; then |
1e6feb95 | 3594 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3595 | fi |
3596 | ||
1e6feb95 | 3597 | if test "$wxUSE_TIMER" = 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 | |
698dcdb6 | 3604 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
986ecc86 | 3605 | echo "configure:3606: checking for --enable-wave" >&5 |
10f2d63a VZ |
3606 | no_cache=0 |
3607 | # Check whether --enable-wave or --disable-wave was given. | |
3608 | if test "${enable_wave+set}" = set; then | |
3609 | enableval="$enable_wave" | |
698dcdb6 | 3610 | |
10f2d63a VZ |
3611 | if test "$enableval" = yes; then |
3612 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3613 | else | |
3614 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3615 | fi | |
698dcdb6 | 3616 | |
10f2d63a | 3617 | else |
698dcdb6 | 3618 | |
10f2d63a VZ |
3619 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3620 | if test "x$LINE" != x ; then | |
3621 | eval "DEFAULT_$LINE" | |
3622 | else | |
3623 | no_cache=1 | |
3624 | fi | |
3625 | ||
3626 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3627 | |
3628 | fi | |
10f2d63a VZ |
3629 | |
3630 | ||
3631 | eval "$ac_cv_use_wave" | |
3632 | if test "$no_cache" != 1; then | |
3633 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3634 | fi | |
3635 | ||
3636 | if test "$wxUSE_WAVE" = 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-fraction""... $ac_c" 1>&6 |
986ecc86 | 3644 | echo "configure:3645: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3645 | no_cache=0 |
3646 | # Check whether --enable-fraction or --disable-fraction was given. | |
3647 | if test "${enable_fraction+set}" = set; then | |
3648 | enableval="$enable_fraction" | |
698dcdb6 | 3649 | |
10f2d63a VZ |
3650 | if test "$enableval" = yes; then |
3651 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3652 | else | |
3653 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3654 | fi | |
698dcdb6 | 3655 | |
10f2d63a | 3656 | else |
698dcdb6 | 3657 | |
10f2d63a VZ |
3658 | LINE=`grep "wxUSE_FRACTION" ${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_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3666 | |
3667 | fi | |
10f2d63a VZ |
3668 | |
3669 | ||
3670 | eval "$ac_cv_use_fraction" | |
3671 | if test "$no_cache" != 1; then | |
3672 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3673 | fi | |
3674 | ||
3675 | if test "$wxUSE_FRACTION" = 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-dynlib""... $ac_c" 1>&6 |
986ecc86 | 3683 | echo "configure:3684: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3684 | no_cache=0 |
3685 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3686 | if test "${enable_dynlib+set}" = set; then | |
3687 | enableval="$enable_dynlib" | |
698dcdb6 | 3688 | |
10f2d63a VZ |
3689 | if test "$enableval" = yes; then |
3690 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3691 | else | |
3692 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3693 | fi | |
698dcdb6 | 3694 | |
10f2d63a | 3695 | else |
698dcdb6 | 3696 | |
10f2d63a VZ |
3697 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${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_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3705 | |
3706 | fi | |
10f2d63a VZ |
3707 | |
3708 | ||
3709 | eval "$ac_cv_use_dynlib" | |
3710 | if test "$no_cache" != 1; then | |
3711 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3712 | fi | |
3713 | ||
3714 | if test "$wxUSE_DYNLIB_CLASS" = 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 | |
0b9ab0bd | 3721 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
986ecc86 | 3722 | echo "configure:3723: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3723 | no_cache=0 |
3724 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3725 | if test "${enable_dynamicloader+set}" = set; then | |
3726 | enableval="$enable_dynamicloader" | |
3727 | ||
3728 | if test "$enableval" = yes; then | |
3729 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3730 | else | |
3731 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3732 | fi | |
3733 | ||
3734 | else | |
3735 | ||
3736 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${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_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3744 | ||
3745 | fi | |
3746 | ||
3747 | ||
3748 | eval "$ac_cv_use_dynamicloader" | |
3749 | if test "$no_cache" != 1; then | |
3750 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3751 | fi | |
3752 | ||
3753 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3754 | echo "$ac_t""yes" 1>&6 | |
3755 | else | |
3756 | echo "$ac_t""no" 1>&6 | |
3757 | fi | |
3758 | ||
3759 | ||
698dcdb6 | 3760 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
986ecc86 | 3761 | echo "configure:3762: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3762 | no_cache=0 |
3763 | # Check whether --enable-longlong or --disable-longlong was given. | |
3764 | if test "${enable_longlong+set}" = set; then | |
3765 | enableval="$enable_longlong" | |
698dcdb6 | 3766 | |
10f2d63a VZ |
3767 | if test "$enableval" = yes; then |
3768 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3769 | else | |
3770 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3771 | fi | |
698dcdb6 | 3772 | |
10f2d63a | 3773 | else |
698dcdb6 | 3774 | |
10f2d63a VZ |
3775 | LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3783 | |
3784 | fi | |
10f2d63a VZ |
3785 | |
3786 | ||
3787 | eval "$ac_cv_use_longlong" | |
3788 | if test "$no_cache" != 1; then | |
3789 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3790 | fi | |
3791 | ||
3792 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3793 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3794 | else |
698dcdb6 | 3795 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3796 | fi |
698dcdb6 | 3797 | |
10f2d63a | 3798 | |
698dcdb6 | 3799 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
986ecc86 | 3800 | echo "configure:3801: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3801 | no_cache=0 |
3802 | # Check whether --enable-geometry or --disable-geometry was given. | |
3803 | if test "${enable_geometry+set}" = set; then | |
3804 | enableval="$enable_geometry" | |
698dcdb6 | 3805 | |
e8f65ba6 RR |
3806 | if test "$enableval" = yes; then |
3807 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3808 | else | |
3809 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3810 | fi | |
698dcdb6 | 3811 | |
e8f65ba6 | 3812 | else |
698dcdb6 | 3813 | |
e8f65ba6 RR |
3814 | LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3822 | |
3823 | fi | |
e8f65ba6 RR |
3824 | |
3825 | ||
3826 | eval "$ac_cv_use_geometry" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3832 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3833 | else |
698dcdb6 | 3834 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3835 | fi |
698dcdb6 | 3836 | |
e8f65ba6 | 3837 | |
698dcdb6 | 3838 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
986ecc86 | 3839 | echo "configure:3840: checking for --enable-log" >&5 |
10f2d63a VZ |
3840 | no_cache=0 |
3841 | # Check whether --enable-log or --disable-log was given. | |
3842 | if test "${enable_log+set}" = set; then | |
3843 | enableval="$enable_log" | |
698dcdb6 | 3844 | |
10f2d63a VZ |
3845 | if test "$enableval" = yes; then |
3846 | ac_cv_use_log='wxUSE_LOG=yes' | |
3847 | else | |
3848 | ac_cv_use_log='wxUSE_LOG=no' | |
3849 | fi | |
698dcdb6 | 3850 | |
10f2d63a | 3851 | else |
698dcdb6 | 3852 | |
10f2d63a VZ |
3853 | LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3861 | |
3862 | fi | |
10f2d63a VZ |
3863 | |
3864 | ||
3865 | eval "$ac_cv_use_log" | |
3866 | if test "$no_cache" != 1; then | |
3867 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3868 | fi | |
3869 | ||
3870 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3871 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3872 | else |
698dcdb6 | 3873 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3874 | fi |
698dcdb6 | 3875 | |
10f2d63a | 3876 | |
698dcdb6 | 3877 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
986ecc86 | 3878 | echo "configure:3879: checking for --enable-streams" >&5 |
10f2d63a VZ |
3879 | no_cache=0 |
3880 | # Check whether --enable-streams or --disable-streams was given. | |
3881 | if test "${enable_streams+set}" = set; then | |
3882 | enableval="$enable_streams" | |
698dcdb6 | 3883 | |
10f2d63a VZ |
3884 | if test "$enableval" = yes; then |
3885 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3886 | else | |
3887 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3888 | fi | |
698dcdb6 | 3889 | |
10f2d63a | 3890 | else |
698dcdb6 | 3891 | |
10f2d63a VZ |
3892 | LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3900 | |
3901 | fi | |
10f2d63a VZ |
3902 | |
3903 | ||
3904 | eval "$ac_cv_use_streams" | |
3905 | if test "$no_cache" != 1; then | |
3906 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3907 | fi | |
3908 | ||
3909 | if test "$wxUSE_STREAMS" = 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-file""... $ac_c" 1>&6 |
986ecc86 | 3917 | echo "configure:3918: checking for --enable-file" >&5 |
10f2d63a VZ |
3918 | no_cache=0 |
3919 | # Check whether --enable-file or --disable-file was given. | |
3920 | if test "${enable_file+set}" = set; then | |
3921 | enableval="$enable_file" | |
698dcdb6 | 3922 | |
10f2d63a VZ |
3923 | if test "$enableval" = yes; then |
3924 | ac_cv_use_file='wxUSE_FILE=yes' | |
3925 | else | |
3926 | ac_cv_use_file='wxUSE_FILE=no' | |
3927 | fi | |
698dcdb6 | 3928 | |
10f2d63a | 3929 | else |
698dcdb6 | 3930 | |
10f2d63a VZ |
3931 | LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3939 | |
3940 | fi | |
10f2d63a VZ |
3941 | |
3942 | ||
3943 | eval "$ac_cv_use_file" | |
3944 | if test "$no_cache" != 1; then | |
3945 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3946 | fi | |
3947 | ||
3948 | if test "$wxUSE_FILE" = 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 | |
1e6feb95 | 3955 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
986ecc86 | 3956 | echo "configure:3957: checking for --enable-ffile" >&5 |
10f2d63a | 3957 | no_cache=0 |
1e6feb95 VZ |
3958 | # Check whether --enable-ffile or --disable-ffile was given. |
3959 | if test "${enable_ffile+set}" = set; then | |
3960 | enableval="$enable_ffile" | |
698dcdb6 | 3961 | |
10f2d63a | 3962 | if test "$enableval" = yes; then |
1e6feb95 | 3963 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3964 | else |
1e6feb95 | 3965 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3966 | fi |
698dcdb6 | 3967 | |
10f2d63a | 3968 | else |
698dcdb6 | 3969 | |
1e6feb95 | 3970 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3971 | if test "x$LINE" != x ; then |
3972 | eval "DEFAULT_$LINE" | |
3973 | else | |
3974 | no_cache=1 | |
3975 | fi | |
3976 | ||
1e6feb95 | 3977 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3978 | |
3979 | fi | |
10f2d63a VZ |
3980 | |
3981 | ||
1e6feb95 | 3982 | eval "$ac_cv_use_ffile" |
10f2d63a | 3983 | if test "$no_cache" != 1; then |
1e6feb95 | 3984 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3985 | fi |
3986 | ||
1e6feb95 | 3987 | if test "$wxUSE_FFILE" = 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 | |
a3a584a7 | 3994 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
986ecc86 | 3995 | echo "configure:3996: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3996 | no_cache=0 |
3997 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3998 | if test "${enable_textbuf+set}" = set; then | |
3999 | enableval="$enable_textbuf" | |
4000 | ||
4001 | if test "$enableval" = yes; then | |
4002 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4003 | else | |
4004 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4005 | fi | |
4006 | ||
4007 | else | |
4008 | ||
4009 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4010 | if test "x$LINE" != x ; then | |
4011 | eval "DEFAULT_$LINE" | |
4012 | else | |
4013 | no_cache=1 | |
4014 | fi | |
4015 | ||
4016 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4017 | ||
4018 | fi | |
4019 | ||
4020 | ||
4021 | eval "$ac_cv_use_textbuf" | |
4022 | if test "$no_cache" != 1; then | |
4023 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4024 | fi | |
4025 | ||
4026 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4027 | echo "$ac_t""yes" 1>&6 | |
4028 | else | |
4029 | echo "$ac_t""no" 1>&6 | |
4030 | fi | |
4031 | ||
4032 | ||
1e6feb95 | 4033 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
986ecc86 | 4034 | echo "configure:4035: checking for --enable-textfile" >&5 |
10f2d63a | 4035 | no_cache=0 |
1e6feb95 VZ |
4036 | # Check whether --enable-textfile or --disable-textfile was given. |
4037 | if test "${enable_textfile+set}" = set; then | |
4038 | enableval="$enable_textfile" | |
698dcdb6 | 4039 | |
10f2d63a | 4040 | if test "$enableval" = yes; then |
1e6feb95 | 4041 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4042 | else |
1e6feb95 | 4043 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4044 | fi |
698dcdb6 | 4045 | |
10f2d63a | 4046 | else |
698dcdb6 | 4047 | |
1e6feb95 | 4048 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4049 | if test "x$LINE" != x ; then |
4050 | eval "DEFAULT_$LINE" | |
4051 | else | |
4052 | no_cache=1 | |
4053 | fi | |
4054 | ||
1e6feb95 | 4055 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4056 | |
4057 | fi | |
10f2d63a VZ |
4058 | |
4059 | ||
1e6feb95 | 4060 | eval "$ac_cv_use_textfile" |
10f2d63a | 4061 | if test "$no_cache" != 1; then |
1e6feb95 | 4062 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4063 | fi |
4064 | ||
1e6feb95 | 4065 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4066 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4067 | else |
698dcdb6 | 4068 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4069 | fi |
698dcdb6 | 4070 | |
10f2d63a | 4071 | |
1e6feb95 | 4072 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
986ecc86 | 4073 | echo "configure:4074: checking for --enable-fontmap" >&5 |
10f2d63a | 4074 | no_cache=0 |
1e6feb95 VZ |
4075 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4076 | if test "${enable_fontmap+set}" = set; then | |
4077 | enableval="$enable_fontmap" | |
698dcdb6 | 4078 | |
10f2d63a | 4079 | if test "$enableval" = yes; then |
1e6feb95 | 4080 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4081 | else |
1e6feb95 | 4082 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4083 | fi |
698dcdb6 | 4084 | |
10f2d63a | 4085 | else |
698dcdb6 | 4086 | |
1e6feb95 | 4087 | LINE=`grep "wxUSE_FONTMAP" ${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_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4095 | |
4096 | fi | |
10f2d63a VZ |
4097 | |
4098 | ||
1e6feb95 | 4099 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4100 | if test "$no_cache" != 1; then |
1e6feb95 | 4101 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4102 | fi |
4103 | ||
1e6feb95 | 4104 | if test "$wxUSE_FONTMAP" = 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-unicode""... $ac_c" 1>&6 |
986ecc86 | 4112 | echo "configure:4113: checking for --enable-unicode" >&5 |
10f2d63a | 4113 | no_cache=0 |
1e6feb95 VZ |
4114 | # Check whether --enable-unicode or --disable-unicode was given. |
4115 | if test "${enable_unicode+set}" = set; then | |
4116 | enableval="$enable_unicode" | |
4117 | ||
4118 | if test "$enableval" = yes; then | |
4119 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4120 | else | |
4121 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4122 | fi | |
4123 | ||
4124 | else | |
4125 | ||
4126 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4127 | if test "x$LINE" != x ; then | |
4128 | eval "DEFAULT_$LINE" | |
4129 | else | |
4130 | no_cache=1 | |
4131 | fi | |
4132 | ||
4133 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4134 | ||
4135 | fi | |
4136 | ||
4137 | ||
4138 | eval "$ac_cv_use_unicode" | |
4139 | if test "$no_cache" != 1; then | |
4140 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4141 | fi | |
4142 | ||
4143 | if test "$wxUSE_UNICODE" = yes; then | |
4144 | echo "$ac_t""yes" 1>&6 | |
4145 | else | |
4146 | echo "$ac_t""no" 1>&6 | |
4147 | fi | |
4148 | ||
4149 | ||
a72a4bfa | 4150 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
986ecc86 | 4151 | echo "configure:4152: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4152 | no_cache=0 |
4153 | # Check whether --enable-mslu or --disable-mslu was given. | |
4154 | if test "${enable_mslu+set}" = set; then | |
4155 | enableval="$enable_mslu" | |
4156 | ||
4157 | if test "$enableval" = yes; then | |
4158 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4159 | else | |
4160 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4161 | fi | |
4162 | ||
4163 | else | |
4164 | ||
4165 | LINE=`grep "wxUSE_UNICODE_MSLU" ${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_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4173 | ||
4174 | fi | |
4175 | ||
4176 | ||
4177 | eval "$ac_cv_use_mslu" | |
4178 | if test "$no_cache" != 1; then | |
4179 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4180 | fi | |
4181 | ||
4182 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4183 | echo "$ac_t""yes" 1>&6 | |
4184 | else | |
4185 | echo "$ac_t""no" 1>&6 | |
4186 | fi | |
4187 | ||
4188 | ||
1e6feb95 | 4189 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
986ecc86 | 4190 | echo "configure:4191: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4191 | no_cache=0 |
4192 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4193 | if test "${enable_wxprintfv+set}" = set; then | |
4194 | enableval="$enable_wxprintfv" | |
4195 | ||
4196 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4197 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4198 | else | |
4199 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4200 | fi | |
698dcdb6 | 4201 | |
10f2d63a | 4202 | else |
698dcdb6 | 4203 | |
10f2d63a VZ |
4204 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${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_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4212 | |
4213 | fi | |
10f2d63a VZ |
4214 | |
4215 | ||
4216 | eval "$ac_cv_use_wxprintfv" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4222 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4223 | else |
698dcdb6 | 4224 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4225 | fi |
698dcdb6 | 4226 | |
10f2d63a | 4227 | |
698dcdb6 | 4228 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
986ecc86 | 4229 | echo "configure:4230: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4230 | no_cache=0 |
4231 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4232 | if test "${enable_std_iostreams+set}" = set; then | |
4233 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4234 | |
10f2d63a VZ |
4235 | if test "$enableval" = yes; then |
4236 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4237 | else | |
4238 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4239 | fi | |
698dcdb6 | 4240 | |
10f2d63a | 4241 | else |
698dcdb6 | 4242 | |
10f2d63a VZ |
4243 | LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4251 | |
4252 | fi | |
10f2d63a VZ |
4253 | |
4254 | ||
4255 | eval "$ac_cv_use_std_iostreams" | |
4256 | if test "$no_cache" != 1; then | |
4257 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4258 | fi | |
4259 | ||
4260 | if test "$wxUSE_STD_IOSTREAM" = 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-filesystem""... $ac_c" 1>&6 |
986ecc86 | 4268 | echo "configure:4269: checking for --enable-filesystem" >&5 |
24528b0c VS |
4269 | no_cache=0 |
4270 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4271 | if test "${enable_filesystem+set}" = set; then | |
4272 | enableval="$enable_filesystem" | |
698dcdb6 | 4273 | |
24528b0c VS |
4274 | if test "$enableval" = yes; then |
4275 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4276 | else | |
4277 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4278 | fi | |
698dcdb6 | 4279 | |
24528b0c | 4280 | else |
698dcdb6 | 4281 | |
24528b0c VS |
4282 | LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4290 | |
4291 | fi | |
24528b0c VS |
4292 | |
4293 | ||
4294 | eval "$ac_cv_use_filesystem" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4300 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4301 | else |
698dcdb6 | 4302 | echo "$ac_t""no" 1>&6 |
24528b0c | 4303 | fi |
698dcdb6 | 4304 | |
24528b0c | 4305 | |
698dcdb6 | 4306 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
986ecc86 | 4307 | echo "configure:4308: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4308 | no_cache=0 |
4309 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4310 | if test "${enable_fs_inet+set}" = set; then | |
4311 | enableval="$enable_fs_inet" | |
698dcdb6 | 4312 | |
10f2d63a VZ |
4313 | if test "$enableval" = yes; then |
4314 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4315 | else | |
4316 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4317 | fi | |
698dcdb6 | 4318 | |
10f2d63a | 4319 | else |
698dcdb6 | 4320 | |
10f2d63a VZ |
4321 | LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4329 | |
4330 | fi | |
10f2d63a VZ |
4331 | |
4332 | ||
4333 | eval "$ac_cv_use_fs_inet" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4340 | else |
698dcdb6 | 4341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4342 | fi |
698dcdb6 | 4343 | |
10f2d63a | 4344 | |
698dcdb6 | 4345 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
986ecc86 | 4346 | echo "configure:4347: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4347 | no_cache=0 |
4348 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4349 | if test "${enable_fs_zip+set}" = set; then | |
4350 | enableval="$enable_fs_zip" | |
698dcdb6 | 4351 | |
10f2d63a VZ |
4352 | if test "$enableval" = yes; then |
4353 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4354 | else | |
4355 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4356 | fi | |
698dcdb6 | 4357 | |
10f2d63a | 4358 | else |
698dcdb6 | 4359 | |
10f2d63a VZ |
4360 | LINE=`grep "wxUSE_FS_ZIP" ${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_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4368 | |
4369 | fi | |
10f2d63a VZ |
4370 | |
4371 | ||
4372 | eval "$ac_cv_use_fs_zip" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_FS_ZIP" = 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-zipstream""... $ac_c" 1>&6 |
986ecc86 | 4385 | echo "configure:4386: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4386 | no_cache=0 |
4387 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4388 | if test "${enable_zipstream+set}" = set; then | |
4389 | enableval="$enable_zipstream" | |
698dcdb6 | 4390 | |
10f2d63a VZ |
4391 | if test "$enableval" = yes; then |
4392 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4393 | else | |
4394 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4395 | fi | |
698dcdb6 | 4396 | |
10f2d63a | 4397 | else |
698dcdb6 | 4398 | |
10f2d63a VZ |
4399 | LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4407 | |
4408 | fi | |
10f2d63a VZ |
4409 | |
4410 | ||
4411 | eval "$ac_cv_use_zipstream" | |
4412 | if test "$no_cache" != 1; then | |
4413 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4414 | fi | |
4415 | ||
4416 | if test "$wxUSE_ZIPSTREAM" = 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 VZ |
4423 | |
4424 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
986ecc86 | 4425 | echo "configure:4426: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4426 | no_cache=0 |
4427 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4428 | if test "${enable_catch_segvs+set}" = set; then | |
4429 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4430 | |
eb4efbdc VZ |
4431 | if test "$enableval" = yes; then |
4432 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4433 | else | |
4434 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4435 | fi | |
698dcdb6 | 4436 | |
eb4efbdc | 4437 | else |
698dcdb6 | 4438 | |
eb4efbdc VZ |
4439 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4447 | |
4448 | fi | |
eb4efbdc VZ |
4449 | |
4450 | ||
4451 | eval "$ac_cv_use_catch_segvs" | |
4452 | if test "$no_cache" != 1; then | |
4453 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4454 | fi | |
4455 | ||
4456 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4457 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4458 | else |
698dcdb6 | 4459 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4460 | fi |
698dcdb6 | 4461 | |
eb4efbdc | 4462 | |
698dcdb6 | 4463 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
986ecc86 | 4464 | echo "configure:4465: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4465 | no_cache=0 |
4466 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4467 | if test "${enable_snglinst+set}" = set; then | |
4468 | enableval="$enable_snglinst" | |
698dcdb6 | 4469 | |
4f3c5f06 VZ |
4470 | if test "$enableval" = yes; then |
4471 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4472 | else | |
4473 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4474 | fi | |
698dcdb6 | 4475 | |
4f3c5f06 | 4476 | else |
698dcdb6 | 4477 | |
4f3c5f06 VZ |
4478 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4486 | |
4487 | fi | |
4f3c5f06 VZ |
4488 | |
4489 | ||
4490 | eval "$ac_cv_use_snglinst" | |
4491 | if test "$no_cache" != 1; then | |
4492 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4493 | fi | |
4494 | ||
4495 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4496 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4497 | else |
698dcdb6 | 4498 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4499 | fi |
698dcdb6 VZ |
4500 | |
4501 | ||
eb4efbdc | 4502 | |
1e6feb95 | 4503 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
986ecc86 | 4504 | echo "configure:4505: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4505 | no_cache=0 |
4506 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4507 | if test "${enable_mimetype+set}" = set; then | |
4508 | enableval="$enable_mimetype" | |
4509 | ||
4510 | if test "$enableval" = yes; then | |
4511 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4512 | else | |
4513 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4514 | fi | |
4515 | ||
4516 | else | |
4517 | ||
4518 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4519 | if test "x$LINE" != x ; then | |
4520 | eval "DEFAULT_$LINE" | |
4521 | else | |
4522 | no_cache=1 | |
4523 | fi | |
4524 | ||
4525 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4526 | ||
4527 | fi | |
4528 | ||
4529 | ||
4530 | eval "$ac_cv_use_mimetype" | |
4531 | if test "$no_cache" != 1; then | |
4532 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4533 | fi | |
4534 | ||
4535 | if test "$wxUSE_MIMETYPE" = yes; then | |
4536 | echo "$ac_t""yes" 1>&6 | |
4537 | else | |
4538 | echo "$ac_t""no" 1>&6 | |
4539 | fi | |
4540 | ||
4541 | ||
3e44f09d | 4542 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
986ecc86 | 4543 | echo "configure:4544: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4544 | no_cache=0 |
4545 | # Check whether --enable-system_options or --disable-system_options was given. | |
4546 | if test "${enable_system_options+set}" = set; then | |
4547 | enableval="$enable_system_options" | |
4548 | ||
4549 | if test "$enableval" = yes; then | |
4550 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4551 | else | |
4552 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ||
4557 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4565 | ||
4566 | fi | |
4567 | ||
4568 | ||
4569 | eval "$ac_cv_use_system_options" | |
4570 | if test "$no_cache" != 1; then | |
4571 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4572 | fi | |
4573 | ||
4574 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4575 | echo "$ac_t""yes" 1>&6 | |
4576 | else | |
4577 | echo "$ac_t""no" 1>&6 | |
4578 | fi | |
4579 | ||
4580 | ||
1e6feb95 | 4581 | |
4cdb0ab0 | 4582 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
986ecc86 | 4583 | echo "configure:4584: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4584 | no_cache=0 |
4585 | # Check whether --enable-url or --disable-url was given. | |
4586 | if test "${enable_url+set}" = set; then | |
4587 | enableval="$enable_url" | |
4588 | ||
4589 | if test "$enableval" = yes; then | |
4590 | ac_cv_use_url='wxUSE_URL=yes' | |
4591 | else | |
4592 | ac_cv_use_url='wxUSE_URL=no' | |
4593 | fi | |
4594 | ||
4595 | else | |
4596 | ||
4597 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4598 | if test "x$LINE" != x ; then | |
4599 | eval "DEFAULT_$LINE" | |
4600 | else | |
4601 | no_cache=1 | |
4602 | fi | |
4603 | ||
4604 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4605 | ||
4606 | fi | |
4607 | ||
4608 | ||
4609 | eval "$ac_cv_use_url" | |
4610 | if test "$no_cache" != 1; then | |
4611 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4612 | fi | |
4613 | ||
4614 | if test "$wxUSE_URL" = yes; then | |
4615 | echo "$ac_t""yes" 1>&6 | |
4616 | else | |
4617 | echo "$ac_t""no" 1>&6 | |
4618 | fi | |
4619 | ||
4620 | ||
4621 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
986ecc86 | 4622 | echo "configure:4623: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4623 | no_cache=0 |
4624 | # Check whether --enable-protocol or --disable-protocol was given. | |
4625 | if test "${enable_protocol+set}" = set; then | |
4626 | enableval="$enable_protocol" | |
4627 | ||
4628 | if test "$enableval" = yes; then | |
4629 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4630 | else | |
4631 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4632 | fi | |
4633 | ||
4634 | else | |
4635 | ||
4636 | LINE=`grep "wxUSE_PROTOCOL" ${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_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4644 | ||
4645 | fi | |
4646 | ||
4647 | ||
4648 | eval "$ac_cv_use_protocol" | |
4649 | if test "$no_cache" != 1; then | |
4650 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4651 | fi | |
4652 | ||
4653 | if test "$wxUSE_PROTOCOL" = 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_http""... $ac_c" 1>&6 | |
986ecc86 | 4661 | echo "configure:4662: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4662 | no_cache=0 |
4663 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4664 | if test "${enable_protocol_http+set}" = set; then | |
4665 | enableval="$enable_protocol_http" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4669 | else | |
4670 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4683 | ||
4684 | fi | |
4685 | ||
4686 | ||
4687 | eval "$ac_cv_use_protocol_http" | |
4688 | if test "$no_cache" != 1; then | |
4689 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4690 | fi | |
4691 | ||
4692 | if test "$wxUSE_PROTOCOL_HTTP" = 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_ftp""... $ac_c" 1>&6 | |
986ecc86 | 4700 | echo "configure:4701: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4701 | no_cache=0 |
4702 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4703 | if test "${enable_protocol_ftp+set}" = set; then | |
4704 | enableval="$enable_protocol_ftp" | |
4705 | ||
4706 | if test "$enableval" = yes; then | |
4707 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4708 | else | |
4709 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4710 | fi | |
4711 | ||
4712 | else | |
4713 | ||
4714 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4722 | ||
4723 | fi | |
4724 | ||
4725 | ||
4726 | eval "$ac_cv_use_protocol_ftp" | |
4727 | if test "$no_cache" != 1; then | |
4728 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4729 | fi | |
4730 | ||
4731 | if test "$wxUSE_PROTOCOL_FTP" = 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_file""... $ac_c" 1>&6 | |
986ecc86 | 4739 | echo "configure:4740: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4740 | no_cache=0 |
4741 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4742 | if test "${enable_protocol_file+set}" = set; then | |
4743 | enableval="$enable_protocol_file" | |
4744 | ||
4745 | if test "$enableval" = yes; then | |
4746 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4747 | else | |
4748 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4749 | fi | |
4750 | ||
4751 | else | |
4752 | ||
4753 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4761 | ||
4762 | fi | |
4763 | ||
4764 | ||
4765 | eval "$ac_cv_use_protocol_file" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4771 | echo "$ac_t""yes" 1>&6 | |
4772 | else | |
4773 | echo "$ac_t""no" 1>&6 | |
4774 | fi | |
4775 | ||
4776 | ||
4777 | ||
4778 | ||
698dcdb6 VZ |
4779 | |
4780 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
986ecc86 | 4781 | echo "configure:4782: checking for --enable-threads" >&5 |
10f2d63a VZ |
4782 | no_cache=0 |
4783 | # Check whether --enable-threads or --disable-threads was given. | |
4784 | if test "${enable_threads+set}" = set; then | |
4785 | enableval="$enable_threads" | |
698dcdb6 | 4786 | |
10f2d63a VZ |
4787 | if test "$enableval" = yes; then |
4788 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4789 | else | |
4790 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4791 | fi | |
698dcdb6 | 4792 | |
10f2d63a | 4793 | else |
698dcdb6 | 4794 | |
10f2d63a VZ |
4795 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4796 | if test "x$LINE" != x ; then | |
4797 | eval "DEFAULT_$LINE" | |
4798 | else | |
4799 | no_cache=1 | |
4800 | fi | |
4801 | ||
4802 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4803 | |
4804 | fi | |
10f2d63a VZ |
4805 | |
4806 | ||
4807 | eval "$ac_cv_use_threads" | |
4808 | if test "$no_cache" != 1; then | |
4809 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4810 | fi | |
4811 | ||
4812 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4813 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4814 | else |
698dcdb6 | 4815 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4816 | fi |
698dcdb6 | 4817 | |
10f2d63a | 4818 | |
b12915c1 VZ |
4819 | if test "$wxUSE_GUI" = "yes"; then |
4820 | ||
698dcdb6 VZ |
4821 | |
4822 | ||
4823 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
986ecc86 | 4824 | echo "configure:4825: checking for --enable-docview" >&5 |
10f2d63a VZ |
4825 | no_cache=0 |
4826 | # Check whether --enable-docview or --disable-docview was given. | |
4827 | if test "${enable_docview+set}" = set; then | |
4828 | enableval="$enable_docview" | |
698dcdb6 | 4829 | |
10f2d63a VZ |
4830 | if test "$enableval" = yes; then |
4831 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4832 | else | |
4833 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4834 | fi | |
698dcdb6 | 4835 | |
10f2d63a | 4836 | else |
698dcdb6 | 4837 | |
10f2d63a VZ |
4838 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4839 | if test "x$LINE" != x ; then | |
4840 | eval "DEFAULT_$LINE" | |
4841 | else | |
4842 | no_cache=1 | |
4843 | fi | |
4844 | ||
4845 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4846 | |
4847 | fi | |
10f2d63a VZ |
4848 | |
4849 | ||
4850 | eval "$ac_cv_use_docview" | |
4851 | if test "$no_cache" != 1; then | |
4852 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4853 | fi | |
4854 | ||
4855 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4856 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4857 | else |
698dcdb6 | 4858 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4859 | fi |
698dcdb6 | 4860 | |
10f2d63a | 4861 | |
698dcdb6 | 4862 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
986ecc86 | 4863 | echo "configure:4864: checking for --enable-help" >&5 |
10f2d63a VZ |
4864 | no_cache=0 |
4865 | # Check whether --enable-help or --disable-help was given. | |
4866 | if test "${enable_help+set}" = set; then | |
4867 | enableval="$enable_help" | |
698dcdb6 | 4868 | |
10f2d63a VZ |
4869 | if test "$enableval" = yes; then |
4870 | ac_cv_use_help='wxUSE_HELP=yes' | |
4871 | else | |
4872 | ac_cv_use_help='wxUSE_HELP=no' | |
4873 | fi | |
698dcdb6 | 4874 | |
10f2d63a | 4875 | else |
698dcdb6 | 4876 | |
10f2d63a VZ |
4877 | LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4885 | |
4886 | fi | |
10f2d63a VZ |
4887 | |
4888 | ||
4889 | eval "$ac_cv_use_help" | |
4890 | if test "$no_cache" != 1; then | |
4891 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4892 | fi | |
4893 | ||
4894 | if test "$wxUSE_HELP" = 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 | |
29fd3c0c | 4901 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
986ecc86 | 4902 | echo "configure:4903: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4903 | no_cache=0 |
4904 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4905 | if test "${enable_mshtmlhelp+set}" = set; then | |
4906 | enableval="$enable_mshtmlhelp" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4910 | else | |
4911 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_MS_HTML_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_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4924 | ||
4925 | fi | |
4926 | ||
4927 | ||
4928 | eval "$ac_cv_use_mshtmlhelp" | |
4929 | if test "$no_cache" != 1; then | |
4930 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4931 | fi | |
4932 | ||
4933 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4934 | echo "$ac_t""yes" 1>&6 | |
4935 | else | |
4936 | echo "$ac_t""no" 1>&6 | |
4937 | fi | |
4938 | ||
4939 | ||
3379ed37 | 4940 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
986ecc86 | 4941 | echo "configure:4942: checking for --enable-html" >&5 |
3379ed37 VZ |
4942 | no_cache=0 |
4943 | # Check whether --enable-html or --disable-html was given. | |
4944 | if test "${enable_html+set}" = set; then | |
4945 | enableval="$enable_html" | |
4946 | ||
4947 | if test "$enableval" = yes; then | |
4948 | ac_cv_use_html='wxUSE_HTML=yes' | |
4949 | else | |
4950 | ac_cv_use_html='wxUSE_HTML=no' | |
4951 | fi | |
4952 | ||
4953 | else | |
4954 | ||
4955 | LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4963 | ||
4964 | fi | |
4965 | ||
4966 | ||
4967 | eval "$ac_cv_use_html" | |
4968 | if test "$no_cache" != 1; then | |
4969 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4970 | fi | |
4971 | ||
4972 | if test "$wxUSE_HTML" = yes; then | |
4973 | echo "$ac_t""yes" 1>&6 | |
4974 | else | |
4975 | echo "$ac_t""no" 1>&6 | |
4976 | fi | |
4977 | ||
4978 | ||
4979 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
986ecc86 | 4980 | echo "configure:4981: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4981 | no_cache=0 |
4982 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4983 | if test "${enable_htmlhelp+set}" = set; then | |
4984 | enableval="$enable_htmlhelp" | |
4985 | ||
4986 | if test "$enableval" = yes; then | |
4987 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4988 | else | |
4989 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4990 | fi | |
4991 | ||
4992 | else | |
4993 | ||
4994 | LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5002 | ||
5003 | fi | |
5004 | ||
5005 | ||
5006 | eval "$ac_cv_use_htmlhelp" | |
5007 | if test "$no_cache" != 1; then | |
5008 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5009 | fi | |
5010 | ||
5011 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5012 | echo "$ac_t""yes" 1>&6 | |
5013 | else | |
5014 | echo "$ac_t""no" 1>&6 | |
5015 | fi | |
5016 | ||
5017 | ||
698dcdb6 | 5018 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
986ecc86 | 5019 | echo "configure:5020: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5020 | no_cache=0 |
5021 | # Check whether --enable-constraints or --disable-constraints was given. | |
5022 | if test "${enable_constraints+set}" = set; then | |
5023 | enableval="$enable_constraints" | |
698dcdb6 | 5024 | |
10f2d63a VZ |
5025 | if test "$enableval" = yes; then |
5026 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5027 | else | |
5028 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5029 | fi | |
698dcdb6 | 5030 | |
10f2d63a | 5031 | else |
698dcdb6 | 5032 | |
10f2d63a VZ |
5033 | LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5041 | |
5042 | fi | |
10f2d63a VZ |
5043 | |
5044 | ||
5045 | eval "$ac_cv_use_constraints" | |
5046 | if test "$no_cache" != 1; then | |
5047 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5048 | fi | |
5049 | ||
5050 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5051 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5052 | else |
698dcdb6 | 5053 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5054 | fi |
698dcdb6 | 5055 | |
10f2d63a | 5056 | |
698dcdb6 | 5057 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
986ecc86 | 5058 | echo "configure:5059: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5059 | no_cache=0 |
5060 | # Check whether --enable-printarch or --disable-printarch was given. | |
5061 | if test "${enable_printarch+set}" = set; then | |
5062 | enableval="$enable_printarch" | |
698dcdb6 | 5063 | |
10f2d63a VZ |
5064 | if test "$enableval" = yes; then |
5065 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5066 | else | |
5067 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5068 | fi | |
698dcdb6 | 5069 | |
10f2d63a | 5070 | else |
698dcdb6 | 5071 | |
10f2d63a VZ |
5072 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5080 | |
5081 | fi | |
10f2d63a VZ |
5082 | |
5083 | ||
5084 | eval "$ac_cv_use_printarch" | |
5085 | if test "$no_cache" != 1; then | |
5086 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5087 | fi | |
5088 | ||
5089 | if test "$wxUSE_PRINTING_ARCHITECTURE" = 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-mdi""... $ac_c" 1>&6 |
986ecc86 | 5097 | echo "configure:5098: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5098 | no_cache=0 |
5099 | # Check whether --enable-mdi or --disable-mdi was given. | |
5100 | if test "${enable_mdi+set}" = set; then | |
5101 | enableval="$enable_mdi" | |
698dcdb6 | 5102 | |
10f2d63a VZ |
5103 | if test "$enableval" = yes; then |
5104 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5105 | else | |
5106 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5107 | fi | |
698dcdb6 | 5108 | |
10f2d63a | 5109 | else |
698dcdb6 | 5110 | |
10f2d63a VZ |
5111 | LINE=`grep "wxUSE_MDI_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_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5119 | |
5120 | fi | |
10f2d63a VZ |
5121 | |
5122 | ||
5123 | eval "$ac_cv_use_mdi" | |
5124 | if test "$no_cache" != 1; then | |
5125 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5126 | fi | |
5127 | ||
5128 | if test "$wxUSE_MDI_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 VZ |
5133 | |
5134 | ||
1e6feb95 | 5135 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
986ecc86 | 5136 | echo "configure:5137: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5137 | no_cache=0 |
5138 | # Check whether --enable-loggui or --disable-loggui was given. | |
5139 | if test "${enable_loggui+set}" = set; then | |
5140 | enableval="$enable_loggui" | |
5141 | ||
5142 | if test "$enableval" = yes; then | |
5143 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5144 | else | |
5145 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5146 | fi | |
5147 | ||
5148 | else | |
5149 | ||
5150 | LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5158 | ||
5159 | fi | |
5160 | ||
5161 | ||
5162 | eval "$ac_cv_use_loggui" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_LOGGUI" = yes; then | |
5168 | echo "$ac_t""yes" 1>&6 | |
5169 | else | |
5170 | echo "$ac_t""no" 1>&6 | |
5171 | fi | |
5172 | ||
5173 | ||
5174 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
986ecc86 | 5175 | echo "configure:5176: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5176 | no_cache=0 |
5177 | # Check whether --enable-logwin or --disable-logwin was given. | |
5178 | if test "${enable_logwin+set}" = set; then | |
5179 | enableval="$enable_logwin" | |
5180 | ||
5181 | if test "$enableval" = yes; then | |
5182 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5183 | else | |
5184 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5185 | fi | |
5186 | ||
5187 | else | |
5188 | ||
5189 | LINE=`grep "wxUSE_LOGWINDOW" ${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_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5197 | ||
5198 | fi | |
5199 | ||
5200 | ||
5201 | eval "$ac_cv_use_logwin" | |
5202 | if test "$no_cache" != 1; then | |
5203 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5204 | fi | |
5205 | ||
5206 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5207 | echo "$ac_t""yes" 1>&6 | |
5208 | else | |
5209 | echo "$ac_t""no" 1>&6 | |
5210 | fi | |
5211 | ||
5212 | ||
69d27ff7 | 5213 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
986ecc86 | 5214 | echo "configure:5215: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5215 | no_cache=0 |
5216 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5217 | if test "${enable_logdialog+set}" = set; then | |
5218 | enableval="$enable_logdialog" | |
5219 | ||
5220 | if test "$enableval" = yes; then | |
5221 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5222 | else | |
5223 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5224 | fi | |
5225 | ||
5226 | else | |
5227 | ||
5228 | LINE=`grep "wxUSE_LOGDIALOG" ${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_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5236 | ||
5237 | fi | |
5238 | ||
5239 | ||
5240 | eval "$ac_cv_use_logdialog" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5246 | echo "$ac_t""yes" 1>&6 | |
5247 | else | |
5248 | echo "$ac_t""no" 1>&6 | |
5249 | fi | |
5250 | ||
5251 | ||
10f2d63a | 5252 | |
698dcdb6 | 5253 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
986ecc86 | 5254 | echo "configure:5255: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5255 | no_cache=0 |
5256 | # Check whether --enable-postscript or --disable-postscript was given. | |
5257 | if test "${enable_postscript+set}" = set; then | |
5258 | enableval="$enable_postscript" | |
698dcdb6 | 5259 | |
10f2d63a VZ |
5260 | if test "$enableval" = yes; then |
5261 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5262 | else | |
5263 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5264 | fi | |
698dcdb6 | 5265 | |
10f2d63a | 5266 | else |
698dcdb6 | 5267 | |
10f2d63a VZ |
5268 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5276 | |
5277 | fi | |
10f2d63a VZ |
5278 | |
5279 | ||
5280 | eval "$ac_cv_use_postscript" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5286 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5287 | else |
698dcdb6 | 5288 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5289 | fi |
698dcdb6 VZ |
5290 | |
5291 | ||
5292 | ||
10f2d63a | 5293 | |
1e6feb95 | 5294 | |
698dcdb6 | 5295 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
986ecc86 | 5296 | echo "configure:5297: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-prologio or --disable-prologio was given. | |
5299 | if test "${enable_prologio+set}" = set; then | |
5300 | enableval="$enable_prologio" | |
698dcdb6 | 5301 | |
10f2d63a VZ |
5302 | if test "$enableval" = yes; then |
5303 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5304 | else | |
5305 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5306 | fi | |
698dcdb6 | 5307 | |
10f2d63a | 5308 | else |
698dcdb6 | 5309 | |
10f2d63a VZ |
5310 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5318 | |
5319 | fi | |
10f2d63a VZ |
5320 | |
5321 | ||
5322 | eval "$ac_cv_use_prologio" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5329 | else |
698dcdb6 | 5330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5331 | fi |
698dcdb6 | 5332 | |
10f2d63a | 5333 | |
698dcdb6 | 5334 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
986ecc86 | 5335 | echo "configure:5336: checking for --enable-resources" >&5 |
10f2d63a VZ |
5336 | no_cache=0 |
5337 | # Check whether --enable-resources or --disable-resources was given. | |
5338 | if test "${enable_resources+set}" = set; then | |
5339 | enableval="$enable_resources" | |
698dcdb6 | 5340 | |
10f2d63a VZ |
5341 | if test "$enableval" = yes; then |
5342 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5343 | else | |
5344 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5345 | fi | |
698dcdb6 | 5346 | |
10f2d63a | 5347 | else |
698dcdb6 | 5348 | |
10f2d63a VZ |
5349 | LINE=`grep "wxUSE_RESOURCES" ${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_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5357 | |
5358 | fi | |
10f2d63a VZ |
5359 | |
5360 | ||
5361 | eval "$ac_cv_use_resources" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_RESOURCES" = 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 VZ |
5373 | |
5374 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
986ecc86 | 5375 | echo "configure:5376: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5376 | no_cache=0 |
5377 | # Check whether --enable-xresources or --disable-xresources was given. | |
5378 | if test "${enable_xresources+set}" = set; then | |
5379 | enableval="$enable_xresources" | |
698dcdb6 | 5380 | |
10f2d63a VZ |
5381 | if test "$enableval" = yes; then |
5382 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5383 | else | |
5384 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5385 | fi | |
698dcdb6 | 5386 | |
10f2d63a | 5387 | else |
698dcdb6 | 5388 | |
10f2d63a VZ |
5389 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5390 | if test "x$LINE" != x ; then | |
5391 | eval "DEFAULT_$LINE" | |
5392 | else | |
5393 | no_cache=1 | |
5394 | fi | |
5395 | ||
5396 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5397 | |
5398 | fi | |
10f2d63a VZ |
5399 | |
5400 | ||
5401 | eval "$ac_cv_use_xresources" | |
5402 | if test "$no_cache" != 1; then | |
5403 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5404 | fi | |
5405 | ||
5406 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5407 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5408 | else |
698dcdb6 | 5409 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5410 | fi |
698dcdb6 VZ |
5411 | |
5412 | ||
10f2d63a | 5413 | |
698dcdb6 VZ |
5414 | |
5415 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
986ecc86 | 5416 | echo "configure:5417: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5417 | no_cache=0 |
5418 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5419 | if test "${enable_clipboard+set}" = set; then | |
5420 | enableval="$enable_clipboard" | |
698dcdb6 | 5421 | |
10f2d63a VZ |
5422 | if test "$enableval" = yes; then |
5423 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5424 | else | |
5425 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5426 | fi | |
698dcdb6 | 5427 | |
10f2d63a | 5428 | else |
698dcdb6 | 5429 | |
10f2d63a VZ |
5430 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5431 | if test "x$LINE" != x ; then | |
5432 | eval "DEFAULT_$LINE" | |
5433 | else | |
5434 | no_cache=1 | |
5435 | fi | |
5436 | ||
5437 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5438 | |
5439 | fi | |
10f2d63a VZ |
5440 | |
5441 | ||
5442 | eval "$ac_cv_use_clipboard" | |
5443 | if test "$no_cache" != 1; then | |
5444 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5445 | fi | |
5446 | ||
5447 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5448 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5449 | else |
698dcdb6 | 5450 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5451 | fi |
698dcdb6 | 5452 | |
10f2d63a | 5453 | |
698dcdb6 | 5454 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
986ecc86 | 5455 | echo "configure:5456: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5456 | no_cache=0 |
5457 | # Check whether --enable-dnd or --disable-dnd was given. | |
5458 | if test "${enable_dnd+set}" = set; then | |
5459 | enableval="$enable_dnd" | |
698dcdb6 | 5460 | |
10f2d63a VZ |
5461 | if test "$enableval" = yes; then |
5462 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5463 | else | |
5464 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5465 | fi | |
698dcdb6 | 5466 | |
10f2d63a | 5467 | else |
698dcdb6 | 5468 | |
10f2d63a VZ |
5469 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5477 | |
5478 | fi | |
10f2d63a VZ |
5479 | |
5480 | ||
5481 | eval "$ac_cv_use_dnd" | |
5482 | if test "$no_cache" != 1; then | |
5483 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5484 | fi | |
5485 | ||
5486 | if test "$wxUSE_DRAG_AND_DROP" = 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-metafile""... $ac_c" 1>&6 |
986ecc86 | 5494 | echo "configure:5495: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5495 | no_cache=0 |
5496 | # Check whether --enable-metafile or --disable-metafile was given. | |
5497 | if test "${enable_metafile+set}" = set; then | |
5498 | enableval="$enable_metafile" | |
698dcdb6 | 5499 | |
b64f0a5f RL |
5500 | if test "$enableval" = yes; then |
5501 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5502 | else | |
5503 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5504 | fi | |
698dcdb6 | 5505 | |
b64f0a5f | 5506 | else |
698dcdb6 | 5507 | |
b64f0a5f RL |
5508 | LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5516 | |
5517 | fi | |
b64f0a5f RL |
5518 | |
5519 | ||
5520 | eval "$ac_cv_use_metafile" | |
5521 | if test "$no_cache" != 1; then | |
5522 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5523 | fi | |
5524 | ||
5525 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5526 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5527 | else |
698dcdb6 | 5528 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5529 | fi |
698dcdb6 VZ |
5530 | |
5531 | ||
10f2d63a | 5532 | |
24176f2c | 5533 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
986ecc86 | 5534 | echo "configure:5535: checking for --enable-treelayout" >&5 |
10f2d63a | 5535 | no_cache=0 |
24176f2c GD |
5536 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5537 | if test "${enable_treelayout+set}" = set; then | |
5538 | enableval="$enable_treelayout" | |
698dcdb6 | 5539 | |
10f2d63a | 5540 | if test "$enableval" = yes; then |
24176f2c | 5541 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5542 | else |
24176f2c | 5543 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5544 | fi |
698dcdb6 | 5545 | |
10f2d63a | 5546 | else |
698dcdb6 | 5547 | |
24176f2c | 5548 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5549 | if test "x$LINE" != x ; then |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
24176f2c | 5555 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5556 | |
5557 | fi | |
10f2d63a VZ |
5558 | |
5559 | ||
24176f2c | 5560 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5561 | if test "$no_cache" != 1; then |
24176f2c | 5562 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5563 | fi |
5564 | ||
24176f2c | 5565 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5567 | else |
698dcdb6 | 5568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5569 | fi |
698dcdb6 | 5570 | |
10f2d63a | 5571 | |
698dcdb6 VZ |
5572 | |
5573 | ||
5574 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
986ecc86 | 5575 | echo "configure:5576: checking for --enable-controls" >&5 |
10f2d63a VZ |
5576 | no_cache=0 |
5577 | # Check whether --enable-controls or --disable-controls was given. | |
5578 | if test "${enable_controls+set}" = set; then | |
5579 | enableval="$enable_controls" | |
698dcdb6 | 5580 | |
10f2d63a VZ |
5581 | if test "$enableval" = yes; then |
5582 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5583 | else | |
5584 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5585 | fi | |
698dcdb6 | 5586 | |
10f2d63a | 5587 | else |
698dcdb6 | 5588 | |
10f2d63a VZ |
5589 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5590 | if test "x$LINE" != x ; then | |
5591 | eval "DEFAULT_$LINE" | |
5592 | else | |
5593 | no_cache=1 | |
5594 | fi | |
5595 | ||
5596 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5597 | |
5598 | fi | |
10f2d63a VZ |
5599 | |
5600 | ||
5601 | eval "$ac_cv_use_controls" | |
5602 | if test "$no_cache" != 1; then | |
5603 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5604 | fi | |
5605 | ||
5606 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5607 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5608 | else |
698dcdb6 | 5609 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5610 | fi |
698dcdb6 | 5611 | |
10f2d63a VZ |
5612 | |
5613 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5614 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5615 | DEFAULT_wxUSE_BMPBUTTON=yes |
5616 | DEFAULT_wxUSE_BUTTON=yes | |
5617 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5618 | DEFAULT_wxUSE_CARET=yes |
5619 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5620 | DEFAULT_wxUSE_CHECKBOX=yes |
5621 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5622 | DEFAULT_wxUSE_CHOICE=yes | |
5623 | DEFAULT_wxUSE_GAUGE=yes | |
5624 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5625 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5626 | DEFAULT_wxUSE_IMAGLIST=yes |
5627 | DEFAULT_wxUSE_LISTBOX=yes | |
5628 | DEFAULT_wxUSE_LISTCTRL=yes | |
5629 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5630 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5631 | DEFAULT_wxUSE_RADIOBOX=yes |
5632 | DEFAULT_wxUSE_RADIOBTN=yes | |
5633 | DEFAULT_wxUSE_SASH=yes | |
5634 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5635 | DEFAULT_wxUSE_SLIDER=yes | |
5636 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5637 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5638 | DEFAULT_wxUSE_SPLITTER=yes |
5639 | DEFAULT_wxUSE_STATBMP=yes | |
5640 | DEFAULT_wxUSE_STATBOX=yes | |
5641 | DEFAULT_wxUSE_STATLINE=yes | |
5642 | DEFAULT_wxUSE_STATUSBAR=yes | |
5643 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5644 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5645 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5646 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5647 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5648 | DEFAULT_wxUSE_TOOLTIPS=yes |
5649 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5650 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5651 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5652 | elif test "$wxUSE_CONTROLS" = "no"; then |
5653 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5654 | DEFAULT_wxUSE_BMPBUTTON=no |
5655 | DEFAULT_wxUSE_BUTTON=no | |
5656 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5657 | DEFAULT_wxUSE_CARET=no |
5658 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5659 | DEFAULT_wxUSE_CHECKBOX=no |
5660 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5661 | DEFAULT_wxUSE_CHOICE=no | |
5662 | DEFAULT_wxUSE_GAUGE=no | |
5663 | DEFAULT_wxUSE_GRID=no | |
5664 | DEFAULT_wxUSE_NEW_GRID=no | |
5665 | DEFAULT_wxUSE_IMAGLIST=no | |
5666 | DEFAULT_wxUSE_LISTBOX=no | |
5667 | DEFAULT_wxUSE_LISTCTRL=no | |
5668 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5669 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5670 | DEFAULT_wxUSE_RADIOBOX=no |
5671 | DEFAULT_wxUSE_RADIOBTN=no | |
5672 | DEFAULT_wxUSE_SASH=no | |
5673 | DEFAULT_wxUSE_SCROLLBAR=no | |
5674 | DEFAULT_wxUSE_SLIDER=no | |
5675 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5676 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5677 | DEFAULT_wxUSE_SPLITTER=no |
5678 | DEFAULT_wxUSE_STATBMP=no | |
5679 | DEFAULT_wxUSE_STATBOX=no | |
5680 | DEFAULT_wxUSE_STATLINE=no | |
5681 | DEFAULT_wxUSE_STATUSBAR=no | |
5682 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5683 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5684 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5685 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5686 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5687 | DEFAULT_wxUSE_TOOLTIPS=no |
5688 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5689 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5690 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5691 | fi |
5692 | ||
698dcdb6 VZ |
5693 | |
5694 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
986ecc86 | 5695 | echo "configure:5696: checking for --enable-accel" >&5 |
10f2d63a VZ |
5696 | no_cache=0 |
5697 | # Check whether --enable-accel or --disable-accel was given. | |
5698 | if test "${enable_accel+set}" = set; then | |
5699 | enableval="$enable_accel" | |
698dcdb6 | 5700 | |
10f2d63a VZ |
5701 | if test "$enableval" = yes; then |
5702 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5703 | else | |
5704 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5705 | fi | |
698dcdb6 | 5706 | |
10f2d63a | 5707 | else |
698dcdb6 | 5708 | |
10f2d63a VZ |
5709 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5710 | if test "x$LINE" != x ; then | |
5711 | eval "DEFAULT_$LINE" | |
5712 | else | |
5713 | no_cache=1 | |
5714 | fi | |
5715 | ||
5716 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5717 | |
5718 | fi | |
10f2d63a VZ |
5719 | |
5720 | ||
5721 | eval "$ac_cv_use_accel" | |
5722 | if test "$no_cache" != 1; then | |
5723 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5724 | fi | |
5725 | ||
5726 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5728 | else |
698dcdb6 | 5729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5730 | fi |
698dcdb6 | 5731 | |
10f2d63a | 5732 | |
1e6feb95 | 5733 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
986ecc86 | 5734 | echo "configure:5735: checking for --enable-button" >&5 |
10f2d63a | 5735 | no_cache=0 |
1e6feb95 VZ |
5736 | # Check whether --enable-button or --disable-button was given. |
5737 | if test "${enable_button+set}" = set; then | |
5738 | enableval="$enable_button" | |
698dcdb6 | 5739 | |
10f2d63a | 5740 | if test "$enableval" = yes; then |
1e6feb95 | 5741 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5742 | else |
1e6feb95 | 5743 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5744 | fi |
698dcdb6 | 5745 | |
10f2d63a | 5746 | else |
698dcdb6 | 5747 | |
1e6feb95 | 5748 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5749 | if test "x$LINE" != x ; then |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
1e6feb95 | 5755 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5756 | |
5757 | fi | |
10f2d63a VZ |
5758 | |
5759 | ||
1e6feb95 | 5760 | eval "$ac_cv_use_button" |
10f2d63a | 5761 | if test "$no_cache" != 1; then |
1e6feb95 | 5762 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5763 | fi |
5764 | ||
1e6feb95 | 5765 | if test "$wxUSE_BUTTON" = 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 | |
698dcdb6 | 5772 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
986ecc86 | 5773 | echo "configure:5774: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5774 | no_cache=0 |
5775 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5776 | if test "${enable_bmpbutton+set}" = set; then | |
5777 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5778 | |
10f2d63a VZ |
5779 | if test "$enableval" = yes; then |
5780 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5781 | else | |
5782 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5783 | fi | |
698dcdb6 | 5784 | |
10f2d63a | 5785 | else |
698dcdb6 | 5786 | |
10f2d63a VZ |
5787 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5788 | if test "x$LINE" != x ; then | |
5789 | eval "DEFAULT_$LINE" | |
5790 | else | |
5791 | no_cache=1 | |
5792 | fi | |
5793 | ||
5794 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5795 | |
5796 | fi | |
10f2d63a VZ |
5797 | |
5798 | ||
5799 | eval "$ac_cv_use_bmpbutton" | |
5800 | if test "$no_cache" != 1; then | |
5801 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5802 | fi | |
5803 | ||
5804 | if test "$wxUSE_BMPBUTTON" = 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 | |
1e6feb95 | 5811 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
986ecc86 | 5812 | echo "configure:5813: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5813 | no_cache=0 |
5814 | # Check whether --enable-calendar or --disable-calendar was given. | |
5815 | if test "${enable_calendar+set}" = set; then | |
5816 | enableval="$enable_calendar" | |
5817 | ||
5818 | if test "$enableval" = yes; then | |
5819 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5820 | else | |
5821 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5822 | fi | |
5823 | ||
5824 | else | |
5825 | ||
5826 | LINE=`grep "wxUSE_CALCTRL" ${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_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5834 | ||
5835 | fi | |
5836 | ||
5837 | ||
5838 | eval "$ac_cv_use_calendar" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_CALCTRL" = yes; then | |
5844 | echo "$ac_t""yes" 1>&6 | |
5845 | else | |
5846 | echo "$ac_t""no" 1>&6 | |
5847 | fi | |
5848 | ||
5849 | ||
5850 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
986ecc86 | 5851 | echo "configure:5852: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5852 | no_cache=0 |
5853 | # Check whether --enable-caret or --disable-caret was given. | |
5854 | if test "${enable_caret+set}" = set; then | |
5855 | enableval="$enable_caret" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5859 | else | |
5860 | ac_cv_use_caret='wxUSE_CARET=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_CARET" ${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_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5873 | ||
5874 | fi | |
5875 | ||
5876 | ||
5877 | eval "$ac_cv_use_caret" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_CARET" = yes; then | |
5883 | echo "$ac_t""yes" 1>&6 | |
5884 | else | |
5885 | echo "$ac_t""no" 1>&6 | |
5886 | fi | |
5887 | ||
5888 | ||
698dcdb6 | 5889 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
986ecc86 | 5890 | echo "configure:5891: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5893 | if test "${enable_checkbox+set}" = set; then | |
5894 | enableval="$enable_checkbox" | |
698dcdb6 | 5895 | |
10f2d63a VZ |
5896 | if test "$enableval" = yes; then |
5897 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5898 | else | |
5899 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5900 | fi | |
698dcdb6 | 5901 | |
10f2d63a | 5902 | else |
698dcdb6 | 5903 | |
10f2d63a VZ |
5904 | LINE=`grep "wxUSE_CHECKBOX" ${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_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5912 | |
5913 | fi | |
10f2d63a VZ |
5914 | |
5915 | ||
5916 | eval "$ac_cv_use_checkbox" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5923 | else |
698dcdb6 | 5924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5925 | fi |
698dcdb6 | 5926 | |
10f2d63a | 5927 | |
698dcdb6 | 5928 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
986ecc86 | 5929 | echo "configure:5930: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5930 | no_cache=0 |
5931 | # Check whether --enable-checklst or --disable-checklst was given. | |
5932 | if test "${enable_checklst+set}" = set; then | |
5933 | enableval="$enable_checklst" | |
698dcdb6 | 5934 | |
10f2d63a VZ |
5935 | if test "$enableval" = yes; then |
5936 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5937 | else | |
5938 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5939 | fi | |
698dcdb6 | 5940 | |
10f2d63a | 5941 | else |
698dcdb6 | 5942 | |
10f2d63a VZ |
5943 | LINE=`grep "wxUSE_CHECKLST" ${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_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5951 | |
5952 | fi | |
10f2d63a VZ |
5953 | |
5954 | ||
5955 | eval "$ac_cv_use_checklst" | |
5956 | if test "$no_cache" != 1; then | |
5957 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5958 | fi | |
5959 | ||
5960 | if test "$wxUSE_CHECKLST" = 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-choice""... $ac_c" 1>&6 |
986ecc86 | 5968 | echo "configure:5969: checking for --enable-choice" >&5 |
10f2d63a VZ |
5969 | no_cache=0 |
5970 | # Check whether --enable-choice or --disable-choice was given. | |
5971 | if test "${enable_choice+set}" = set; then | |
5972 | enableval="$enable_choice" | |
698dcdb6 | 5973 | |
10f2d63a VZ |
5974 | if test "$enableval" = yes; then |
5975 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5976 | else | |
5977 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5978 | fi | |
698dcdb6 | 5979 | |
10f2d63a | 5980 | else |
698dcdb6 | 5981 | |
10f2d63a VZ |
5982 | LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5990 | |
5991 | fi | |
10f2d63a VZ |
5992 | |
5993 | ||
5994 | eval "$ac_cv_use_choice" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_CHOICE" = 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-combobox""... $ac_c" 1>&6 |
986ecc86 | 6007 | echo "configure:6008: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6008 | no_cache=0 |
6009 | # Check whether --enable-combobox or --disable-combobox was given. | |
6010 | if test "${enable_combobox+set}" = set; then | |
6011 | enableval="$enable_combobox" | |
698dcdb6 | 6012 | |
10f2d63a VZ |
6013 | if test "$enableval" = yes; then |
6014 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6015 | else | |
6016 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6017 | fi | |
698dcdb6 | 6018 | |
10f2d63a | 6019 | else |
698dcdb6 | 6020 | |
10f2d63a VZ |
6021 | LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6029 | |
6030 | fi | |
10f2d63a VZ |
6031 | |
6032 | ||
6033 | eval "$ac_cv_use_combobox" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_COMBOBOX" = 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-gauge""... $ac_c" 1>&6 |
986ecc86 | 6046 | echo "configure:6047: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6047 | no_cache=0 |
6048 | # Check whether --enable-gauge or --disable-gauge was given. | |
6049 | if test "${enable_gauge+set}" = set; then | |
6050 | enableval="$enable_gauge" | |
698dcdb6 | 6051 | |
10f2d63a VZ |
6052 | if test "$enableval" = yes; then |
6053 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6054 | else | |
6055 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6056 | fi | |
698dcdb6 | 6057 | |
10f2d63a | 6058 | else |
698dcdb6 | 6059 | |
10f2d63a VZ |
6060 | LINE=`grep "wxUSE_GAUGE" ${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_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6068 | |
6069 | fi | |
10f2d63a VZ |
6070 | |
6071 | ||
6072 | eval "$ac_cv_use_gauge" | |
6073 | if test "$no_cache" != 1; then | |
6074 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6075 | fi | |
6076 | ||
6077 | if test "$wxUSE_GAUGE" = 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-grid""... $ac_c" 1>&6 |
986ecc86 | 6085 | echo "configure:6086: checking for --enable-grid" >&5 |
10f2d63a VZ |
6086 | no_cache=0 |
6087 | # Check whether --enable-grid or --disable-grid was given. | |
6088 | if test "${enable_grid+set}" = set; then | |
6089 | enableval="$enable_grid" | |
698dcdb6 | 6090 | |
10f2d63a VZ |
6091 | if test "$enableval" = yes; then |
6092 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6093 | else | |
6094 | ac_cv_use_grid='wxUSE_GRID=no' | |
6095 | fi | |
698dcdb6 | 6096 | |
10f2d63a | 6097 | else |
698dcdb6 | 6098 | |
10f2d63a VZ |
6099 | LINE=`grep "wxUSE_GRID" ${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_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6107 | |
6108 | fi | |
10f2d63a VZ |
6109 | |
6110 | ||
6111 | eval "$ac_cv_use_grid" | |
6112 | if test "$no_cache" != 1; then | |
6113 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6114 | fi | |
6115 | ||
6116 | if test "$wxUSE_GRID" = 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-newgrid""... $ac_c" 1>&6 |
986ecc86 | 6124 | echo "configure:6125: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6125 | no_cache=0 |
6126 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6127 | if test "${enable_newgrid+set}" = set; then | |
6128 | enableval="$enable_newgrid" | |
698dcdb6 | 6129 | |
10f2d63a VZ |
6130 | if test "$enableval" = yes; then |
6131 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6132 | else | |
6133 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6134 | fi | |
698dcdb6 | 6135 | |
10f2d63a | 6136 | else |
698dcdb6 | 6137 | |
10f2d63a VZ |
6138 | LINE=`grep "wxUSE_NEW_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_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6146 | |
6147 | fi | |
10f2d63a VZ |
6148 | |
6149 | ||
6150 | eval "$ac_cv_use_newgrid" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_NEW_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-imaglist""... $ac_c" 1>&6 |
986ecc86 | 6163 | echo "configure:6164: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6164 | no_cache=0 |
6165 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6166 | if test "${enable_imaglist+set}" = set; then | |
6167 | enableval="$enable_imaglist" | |
698dcdb6 | 6168 | |
10f2d63a VZ |
6169 | if test "$enableval" = yes; then |
6170 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6171 | else | |
6172 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6173 | fi | |
698dcdb6 | 6174 | |
10f2d63a | 6175 | else |
698dcdb6 | 6176 | |
10f2d63a VZ |
6177 | LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6185 | |
6186 | fi | |
10f2d63a VZ |
6187 | |
6188 | ||
6189 | eval "$ac_cv_use_imaglist" | |
6190 | if test "$no_cache" != 1; then | |
6191 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6192 | fi | |
6193 | ||
6194 | if test "$wxUSE_IMAGLIST" = 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-listbox""... $ac_c" 1>&6 |
986ecc86 | 6202 | echo "configure:6203: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6203 | no_cache=0 |
6204 | # Check whether --enable-listbox or --disable-listbox was given. | |
6205 | if test "${enable_listbox+set}" = set; then | |
6206 | enableval="$enable_listbox" | |
698dcdb6 | 6207 | |
10f2d63a VZ |
6208 | if test "$enableval" = yes; then |
6209 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6210 | else | |
6211 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6212 | fi | |
698dcdb6 | 6213 | |
10f2d63a | 6214 | else |
698dcdb6 | 6215 | |
10f2d63a VZ |
6216 | LINE=`grep "wxUSE_LISTBOX" ${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_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6224 | |
6225 | fi | |
10f2d63a VZ |
6226 | |
6227 | ||
6228 | eval "$ac_cv_use_listbox" | |
6229 | if test "$no_cache" != 1; then | |
6230 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6231 | fi | |
6232 | ||
6233 | if test "$wxUSE_LISTBOX" = 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-listctrl""... $ac_c" 1>&6 |
986ecc86 | 6241 | echo "configure:6242: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6242 | no_cache=0 |
6243 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6244 | if test "${enable_listctrl+set}" = set; then | |
6245 | enableval="$enable_listctrl" | |
698dcdb6 | 6246 | |
10f2d63a VZ |
6247 | if test "$enableval" = yes; then |
6248 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6249 | else | |
6250 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6251 | fi | |
698dcdb6 | 6252 | |
10f2d63a | 6253 | else |
698dcdb6 | 6254 | |
10f2d63a VZ |
6255 | LINE=`grep "wxUSE_LISTCTRL" ${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_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6263 | |
6264 | fi | |
10f2d63a VZ |
6265 | |
6266 | ||
6267 | eval "$ac_cv_use_listctrl" | |
6268 | if test "$no_cache" != 1; then | |
6269 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6270 | fi | |
6271 | ||
6272 | if test "$wxUSE_LISTCTRL" = 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-notebook""... $ac_c" 1>&6 |
986ecc86 | 6280 | echo "configure:6281: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6281 | no_cache=0 |
6282 | # Check whether --enable-notebook or --disable-notebook was given. | |
6283 | if test "${enable_notebook+set}" = set; then | |
6284 | enableval="$enable_notebook" | |
698dcdb6 | 6285 | |
10f2d63a VZ |
6286 | if test "$enableval" = yes; then |
6287 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6288 | else | |
6289 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6290 | fi | |
698dcdb6 | 6291 | |
10f2d63a | 6292 | else |
698dcdb6 | 6293 | |
10f2d63a VZ |
6294 | LINE=`grep "wxUSE_NOTEBOOK" ${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_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6302 | |
6303 | fi | |
10f2d63a VZ |
6304 | |
6305 | ||
6306 | eval "$ac_cv_use_notebook" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_NOTEBOOK" = 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 | |
24176f2c | 6318 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
986ecc86 | 6319 | echo "configure:6320: checking for --enable-propsheet" >&5 |
24176f2c GD |
6320 | no_cache=0 |
6321 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6322 | if test "${enable_propsheet+set}" = set; then | |
6323 | enableval="$enable_propsheet" | |
6324 | ||
6325 | if test "$enableval" = yes; then | |
6326 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6327 | else | |
6328 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6329 | fi | |
6330 | ||
6331 | else | |
6332 | ||
6333 | LINE=`grep "wxUSE_PROPSHEET" ${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_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6341 | ||
6342 | fi | |
6343 | ||
6344 | ||
6345 | eval "$ac_cv_use_propsheet" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_PROPSHEET" = yes; then | |
6351 | echo "$ac_t""yes" 1>&6 | |
6352 | else | |
6353 | echo "$ac_t""no" 1>&6 | |
6354 | fi | |
6355 | ||
6356 | ||
698dcdb6 | 6357 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
986ecc86 | 6358 | echo "configure:6359: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6359 | no_cache=0 |
6360 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6361 | if test "${enable_radiobox+set}" = set; then | |
6362 | enableval="$enable_radiobox" | |
698dcdb6 | 6363 | |
10f2d63a VZ |
6364 | if test "$enableval" = yes; then |
6365 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6366 | else | |
6367 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6368 | fi | |
698dcdb6 | 6369 | |
10f2d63a | 6370 | else |
698dcdb6 | 6371 | |
10f2d63a VZ |
6372 | LINE=`grep "wxUSE_RADIOBOX" ${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_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6380 | |
6381 | fi | |
10f2d63a VZ |
6382 | |
6383 | ||
6384 | eval "$ac_cv_use_radiobox" | |
6385 | if test "$no_cache" != 1; then | |
6386 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6387 | fi | |
6388 | ||
6389 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6391 | else |
698dcdb6 | 6392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6393 | fi |
698dcdb6 | 6394 | |
10f2d63a | 6395 | |
698dcdb6 | 6396 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
986ecc86 | 6397 | echo "configure:6398: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6398 | no_cache=0 |
6399 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6400 | if test "${enable_radiobtn+set}" = set; then | |
6401 | enableval="$enable_radiobtn" | |
698dcdb6 | 6402 | |
10f2d63a VZ |
6403 | if test "$enableval" = yes; then |
6404 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6405 | else | |
6406 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6407 | fi | |
698dcdb6 | 6408 | |
10f2d63a | 6409 | else |
698dcdb6 | 6410 | |
10f2d63a VZ |
6411 | LINE=`grep "wxUSE_RADIOBTN" ${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_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6419 | |
6420 | fi | |
10f2d63a VZ |
6421 | |
6422 | ||
6423 | eval "$ac_cv_use_radiobtn" | |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_RADIOBTN" = 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-sash""... $ac_c" 1>&6 |
986ecc86 | 6436 | echo "configure:6437: checking for --enable-sash" >&5 |
10f2d63a VZ |
6437 | no_cache=0 |
6438 | # Check whether --enable-sash or --disable-sash was given. | |
6439 | if test "${enable_sash+set}" = set; then | |
6440 | enableval="$enable_sash" | |
698dcdb6 | 6441 | |
10f2d63a VZ |
6442 | if test "$enableval" = yes; then |
6443 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6444 | else | |
6445 | ac_cv_use_sash='wxUSE_SASH=no' | |
6446 | fi | |
698dcdb6 | 6447 | |
10f2d63a | 6448 | else |
698dcdb6 | 6449 | |
10f2d63a VZ |
6450 | LINE=`grep "wxUSE_SASH" ${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_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6458 | |
6459 | fi | |
10f2d63a VZ |
6460 | |
6461 | ||
6462 | eval "$ac_cv_use_sash" | |
6463 | if test "$no_cache" != 1; then | |
6464 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6465 | fi | |
6466 | ||
6467 | if test "$wxUSE_SASH" = 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-scrollbar""... $ac_c" 1>&6 |
986ecc86 | 6475 | echo "configure:6476: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6476 | no_cache=0 |
6477 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6478 | if test "${enable_scrollbar+set}" = set; then | |
6479 | enableval="$enable_scrollbar" | |
698dcdb6 | 6480 | |
10f2d63a VZ |
6481 | if test "$enableval" = yes; then |
6482 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6483 | else | |
6484 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6485 | fi | |
698dcdb6 | 6486 | |
10f2d63a | 6487 | else |
698dcdb6 | 6488 | |
10f2d63a VZ |
6489 | LINE=`grep "wxUSE_SCROLLBAR" ${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_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6497 | |
6498 | fi | |
10f2d63a VZ |
6499 | |
6500 | ||
6501 | eval "$ac_cv_use_scrollbar" | |
6502 | if test "$no_cache" != 1; then | |
6503 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6504 | fi | |
6505 | ||
6506 | if test "$wxUSE_SCROLLBAR" = 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-slider""... $ac_c" 1>&6 |
986ecc86 | 6514 | echo "configure:6515: checking for --enable-slider" >&5 |
10f2d63a VZ |
6515 | no_cache=0 |
6516 | # Check whether --enable-slider or --disable-slider was given. | |
6517 | if test "${enable_slider+set}" = set; then | |
6518 | enableval="$enable_slider" | |
698dcdb6 | 6519 | |
10f2d63a VZ |
6520 | if test "$enableval" = yes; then |
6521 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6522 | else | |
6523 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6524 | fi | |
698dcdb6 | 6525 | |
10f2d63a | 6526 | else |
698dcdb6 | 6527 | |
10f2d63a VZ |
6528 | LINE=`grep "wxUSE_SLIDER" ${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_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6536 | |
6537 | fi | |
10f2d63a VZ |
6538 | |
6539 | ||
6540 | eval "$ac_cv_use_slider" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
6545 | if test "$wxUSE_SLIDER" = 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-spinbtn""... $ac_c" 1>&6 |
986ecc86 | 6553 | echo "configure:6554: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6554 | no_cache=0 |
6555 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6556 | if test "${enable_spinbtn+set}" = set; then | |
6557 | enableval="$enable_spinbtn" | |
698dcdb6 | 6558 | |
10f2d63a VZ |
6559 | if test "$enableval" = yes; then |
6560 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6561 | else | |
6562 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6563 | fi | |
698dcdb6 | 6564 | |
10f2d63a | 6565 | else |
698dcdb6 | 6566 | |
10f2d63a VZ |
6567 | LINE=`grep "wxUSE_SPINBTN" ${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_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6575 | |
6576 | fi | |
10f2d63a VZ |
6577 | |
6578 | ||
6579 | eval "$ac_cv_use_spinbtn" | |
6580 | if test "$no_cache" != 1; then | |
6581 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6582 | fi | |
6583 | ||
6584 | if test "$wxUSE_SPINBTN" = 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-spinctrl""... $ac_c" 1>&6 |
986ecc86 | 6592 | echo "configure:6593: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6593 | no_cache=0 |
6594 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6595 | if test "${enable_spinctrl+set}" = set; then | |
6596 | enableval="$enable_spinctrl" | |
698dcdb6 | 6597 | |
56cfaa52 RR |
6598 | if test "$enableval" = yes; then |
6599 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6600 | else | |
6601 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6602 | fi | |
698dcdb6 | 6603 | |
56cfaa52 | 6604 | else |
698dcdb6 | 6605 | |
56cfaa52 RR |
6606 | LINE=`grep "wxUSE_SPINCTRL" ${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_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6614 | |
6615 | fi | |
56cfaa52 RR |
6616 | |
6617 | ||
6618 | eval "$ac_cv_use_spinctrl" | |
6619 | if test "$no_cache" != 1; then | |
6620 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6621 | fi | |
6622 | ||
6623 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6624 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6625 | else |
698dcdb6 | 6626 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6627 | fi |
698dcdb6 | 6628 | |
56cfaa52 | 6629 | |
698dcdb6 | 6630 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
986ecc86 | 6631 | echo "configure:6632: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6632 | no_cache=0 |
6633 | # Check whether --enable-splitter or --disable-splitter was given. | |
6634 | if test "${enable_splitter+set}" = set; then | |
6635 | enableval="$enable_splitter" | |
698dcdb6 | 6636 | |
10f2d63a VZ |
6637 | if test "$enableval" = yes; then |
6638 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6639 | else | |
6640 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6641 | fi | |
698dcdb6 | 6642 | |
10f2d63a | 6643 | else |
698dcdb6 | 6644 | |
10f2d63a VZ |
6645 | LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6653 | |
6654 | fi | |
10f2d63a VZ |
6655 | |
6656 | ||
6657 | eval "$ac_cv_use_splitter" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6663 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6664 | else |
698dcdb6 | 6665 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6666 | fi |
698dcdb6 | 6667 | |
10f2d63a | 6668 | |
698dcdb6 | 6669 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
986ecc86 | 6670 | echo "configure:6671: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6671 | no_cache=0 |
6672 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6673 | if test "${enable_statbmp+set}" = set; then | |
6674 | enableval="$enable_statbmp" | |
698dcdb6 | 6675 | |
10f2d63a VZ |
6676 | if test "$enableval" = yes; then |
6677 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6678 | else | |
6679 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6680 | fi | |
698dcdb6 | 6681 | |
10f2d63a | 6682 | else |
698dcdb6 | 6683 | |
10f2d63a VZ |
6684 | LINE=`grep "wxUSE_STATBMP" ${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_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6692 | |
6693 | fi | |
10f2d63a VZ |
6694 | |
6695 | ||
6696 | eval "$ac_cv_use_statbmp" | |
6697 | if test "$no_cache" != 1; then | |
6698 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6699 | fi | |
6700 | ||
6701 | if test "$wxUSE_STATBMP" = 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-statbox""... $ac_c" 1>&6 |
986ecc86 | 6709 | echo "configure:6710: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6710 | no_cache=0 |
6711 | # Check whether --enable-statbox or --disable-statbox was given. | |
6712 | if test "${enable_statbox+set}" = set; then | |
6713 | enableval="$enable_statbox" | |
698dcdb6 | 6714 | |
10f2d63a VZ |
6715 | if test "$enableval" = yes; then |
6716 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6717 | else | |
6718 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6719 | fi | |
698dcdb6 | 6720 | |
10f2d63a | 6721 | else |
698dcdb6 | 6722 | |
10f2d63a VZ |
6723 | LINE=`grep "wxUSE_STATBOX" ${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_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6731 | |
6732 | fi | |
10f2d63a VZ |
6733 | |
6734 | ||
6735 | eval "$ac_cv_use_statbox" | |
6736 | if test "$no_cache" != 1; then | |
6737 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6738 | fi | |
6739 | ||
6740 | if test "$wxUSE_STATBOX" = 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-statline""... $ac_c" 1>&6 |
986ecc86 | 6748 | echo "configure:6749: checking for --enable-statline" >&5 |
10f2d63a VZ |
6749 | no_cache=0 |
6750 | # Check whether --enable-statline or --disable-statline was given. | |
6751 | if test "${enable_statline+set}" = set; then | |
6752 | enableval="$enable_statline" | |
698dcdb6 | 6753 | |
10f2d63a VZ |
6754 | if test "$enableval" = yes; then |
6755 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6756 | else | |
6757 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6758 | fi | |
698dcdb6 | 6759 | |
10f2d63a | 6760 | else |
698dcdb6 | 6761 | |
10f2d63a VZ |
6762 | LINE=`grep "wxUSE_STATLINE" ${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_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6770 | |
6771 | fi | |
10f2d63a VZ |
6772 | |
6773 | ||
6774 | eval "$ac_cv_use_statline" | |
6775 | if test "$no_cache" != 1; then | |
6776 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6777 | fi | |
6778 | ||
6779 | if test "$wxUSE_STATLINE" = 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 | |
1e6feb95 | 6786 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
986ecc86 | 6787 | echo "configure:6788: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6788 | no_cache=0 |
6789 | # Check whether --enable-stattext or --disable-stattext was given. | |
6790 | if test "${enable_stattext+set}" = set; then | |
6791 | enableval="$enable_stattext" | |
6792 | ||
6793 | if test "$enableval" = yes; then | |
6794 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6795 | else | |
6796 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6797 | fi | |
6798 | ||
6799 | else | |
6800 | ||
6801 | LINE=`grep "wxUSE_STATTEXT" ${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_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6809 | ||
6810 | fi | |
6811 | ||
6812 | ||
6813 | eval "$ac_cv_use_stattext" | |
6814 | if test "$no_cache" != 1; then | |
6815 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6816 | fi | |
6817 | ||
6818 | if test "$wxUSE_STATTEXT" = yes; then | |
6819 | echo "$ac_t""yes" 1>&6 | |
6820 | else | |
6821 | echo "$ac_t""no" 1>&6 | |
6822 | fi | |
6823 | ||
6824 | ||
698dcdb6 | 6825 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
986ecc86 | 6826 | echo "configure:6827: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6827 | no_cache=0 |
6828 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6829 | if test "${enable_statusbar+set}" = set; then | |
6830 | enableval="$enable_statusbar" | |
698dcdb6 | 6831 | |
10f2d63a VZ |
6832 | if test "$enableval" = yes; then |
6833 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6834 | else | |
6835 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6836 | fi | |
698dcdb6 | 6837 | |
10f2d63a | 6838 | else |
698dcdb6 | 6839 | |
10f2d63a VZ |
6840 | LINE=`grep "wxUSE_STATUSBAR" ${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_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6848 | |
6849 | fi | |
10f2d63a VZ |
6850 | |
6851 | ||
6852 | eval "$ac_cv_use_statusbar" | |
6853 | if test "$no_cache" != 1; then | |
6854 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6855 | fi | |
6856 | ||
6857 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6858 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6859 | else |
698dcdb6 | 6860 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6861 | fi |
698dcdb6 | 6862 | |
10f2d63a | 6863 | |
698dcdb6 | 6864 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
986ecc86 | 6865 | echo "configure:6866: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6866 | no_cache=0 |
6867 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6868 | if test "${enable_tabdialog+set}" = set; then | |
6869 | enableval="$enable_tabdialog" | |
698dcdb6 | 6870 | |
10f2d63a VZ |
6871 | if test "$enableval" = yes; then |
6872 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6873 | else | |
6874 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6875 | fi | |
698dcdb6 | 6876 | |
10f2d63a | 6877 | else |
698dcdb6 | 6878 | |
10f2d63a VZ |
6879 | LINE=`grep "wxUSE_TABDIALOG" ${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_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6887 | |
6888 | fi | |
10f2d63a VZ |
6889 | |
6890 | ||
6891 | eval "$ac_cv_use_tabdialog" | |
6892 | if test "$no_cache" != 1; then | |
6893 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6894 | fi | |
6895 | ||
6896 | if test "$wxUSE_TABDIALOG" = 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 | |
1e6feb95 | 6903 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
986ecc86 | 6904 | echo "configure:6905: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6905 | no_cache=0 |
6906 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6907 | if test "${enable_textctrl+set}" = set; then | |
6908 | enableval="$enable_textctrl" | |
6909 | ||
6910 | if test "$enableval" = yes; then | |
6911 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6912 | else | |
6913 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6914 | fi | |
6915 | ||
6916 | else | |
6917 | ||
6918 | LINE=`grep "wxUSE_TEXTCTRL" ${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_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6926 | ||
6927 | fi | |
6928 | ||
6929 | ||
6930 | eval "$ac_cv_use_textctrl" | |
6931 | if test "$no_cache" != 1; then | |
6932 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6933 | fi | |
6934 | ||
6935 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6936 | echo "$ac_t""yes" 1>&6 | |
6937 | else | |
6938 | echo "$ac_t""no" 1>&6 | |
6939 | fi | |
6940 | ||
6941 | ||
698dcdb6 | 6942 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
986ecc86 | 6943 | echo "configure:6944: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6944 | no_cache=0 |
6945 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6946 | if test "${enable_togglebtn+set}" = set; then | |
6947 | enableval="$enable_togglebtn" | |
698dcdb6 | 6948 | |
1db8dc4a VZ |
6949 | if test "$enableval" = yes; then |
6950 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6951 | else | |
6952 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6953 | fi | |
698dcdb6 | 6954 | |
1db8dc4a | 6955 | else |
698dcdb6 | 6956 | |
1db8dc4a VZ |
6957 | LINE=`grep "wxUSE_TOGGLEBTN" ${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_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6965 | |
6966 | fi | |
1db8dc4a VZ |
6967 | |
6968 | ||
6969 | eval "$ac_cv_use_togglebtn" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6975 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6976 | else |
698dcdb6 | 6977 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6978 | fi |
698dcdb6 | 6979 | |
1db8dc4a | 6980 | |
698dcdb6 | 6981 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
986ecc86 | 6982 | echo "configure:6983: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6983 | no_cache=0 |
6984 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6985 | if test "${enable_toolbar+set}" = set; then | |
6986 | enableval="$enable_toolbar" | |
698dcdb6 | 6987 | |
10f2d63a VZ |
6988 | if test "$enableval" = yes; then |
6989 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6990 | else | |
6991 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6992 | fi | |
698dcdb6 | 6993 | |
10f2d63a | 6994 | else |
698dcdb6 | 6995 | |
10f2d63a VZ |
6996 | LINE=`grep "wxUSE_TOOLBAR" ${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_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7004 | |
7005 | fi | |
10f2d63a VZ |
7006 | |
7007 | ||
7008 | eval "$ac_cv_use_toolbar" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7014 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7015 | else |
698dcdb6 | 7016 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7017 | fi |
698dcdb6 | 7018 | |
10f2d63a | 7019 | |
698dcdb6 | 7020 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
986ecc86 | 7021 | echo "configure:7022: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7022 | no_cache=0 |
7023 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7024 | if test "${enable_tbarnative+set}" = set; then | |
7025 | enableval="$enable_tbarnative" | |
698dcdb6 | 7026 | |
360d6699 VZ |
7027 | if test "$enableval" = yes; then |
7028 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7029 | else | |
7030 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7031 | fi | |
698dcdb6 | 7032 | |
360d6699 | 7033 | else |
698dcdb6 | 7034 | |
360d6699 VZ |
7035 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${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_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7043 | |
7044 | fi | |
360d6699 VZ |
7045 | |
7046 | ||
7047 | eval "$ac_cv_use_tbarnative" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7053 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7054 | else |
698dcdb6 | 7055 | echo "$ac_t""no" 1>&6 |
360d6699 | 7056 | fi |
698dcdb6 | 7057 | |
360d6699 | 7058 | |
698dcdb6 | 7059 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
986ecc86 | 7060 | echo "configure:7061: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7061 | no_cache=0 |
7062 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7063 | if test "${enable_tbarsmpl+set}" = set; then | |
7064 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7065 | |
360d6699 VZ |
7066 | if test "$enableval" = yes; then |
7067 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7068 | else | |
7069 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7070 | fi | |
698dcdb6 | 7071 | |
360d6699 | 7072 | else |
698dcdb6 | 7073 | |
360d6699 VZ |
7074 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${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_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7082 | |
7083 | fi | |
360d6699 VZ |
7084 | |
7085 | ||
7086 | eval "$ac_cv_use_tbarsmpl" | |
7087 | if test "$no_cache" != 1; then | |
7088 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7089 | fi | |
7090 | ||
7091 | if test "$wxUSE_TOOLBAR_SIMPLE" = 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-treectrl""... $ac_c" 1>&6 |
986ecc86 | 7099 | echo "configure:7100: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7100 | no_cache=0 |
7101 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7102 | if test "${enable_treectrl+set}" = set; then | |
7103 | enableval="$enable_treectrl" | |
698dcdb6 | 7104 | |
10f2d63a VZ |
7105 | if test "$enableval" = yes; then |
7106 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7107 | else | |
7108 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7109 | fi | |
698dcdb6 | 7110 | |
10f2d63a | 7111 | else |
698dcdb6 | 7112 | |
10f2d63a VZ |
7113 | LINE=`grep "wxUSE_TREECTRL" ${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_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7121 | |
7122 | fi | |
10f2d63a VZ |
7123 | |
7124 | ||
1e6feb95 VZ |
7125 | eval "$ac_cv_use_treectrl" |
7126 | if test "$no_cache" != 1; then | |
7127 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7128 | fi | |
7129 | ||
7130 | if test "$wxUSE_TREECTRL" = yes; then | |
7131 | echo "$ac_t""yes" 1>&6 | |
7132 | else | |
7133 | echo "$ac_t""no" 1>&6 | |
7134 | fi | |
7135 | ||
7136 | ||
9926e4a4 | 7137 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
986ecc86 | 7138 | echo "configure:7139: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7139 | no_cache=0 |
7140 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7141 | if test "${enable_tipwindow+set}" = set; then | |
7142 | enableval="$enable_tipwindow" | |
7143 | ||
7144 | if test "$enableval" = yes; then | |
7145 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7146 | else | |
7147 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7148 | fi | |
7149 | ||
7150 | else | |
7151 | ||
7152 | LINE=`grep "wxUSE_TIPWINDOW" ${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_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7160 | ||
7161 | fi | |
7162 | ||
7163 | ||
7164 | eval "$ac_cv_use_tipwindow" | |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7170 | echo "$ac_t""yes" 1>&6 | |
7171 | else | |
7172 | echo "$ac_t""no" 1>&6 | |
7173 | fi | |
7174 | ||
7175 | ||
9f41d601 | 7176 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
986ecc86 | 7177 | echo "configure:7178: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7178 | no_cache=0 |
7179 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7180 | if test "${enable_popupwin+set}" = set; then | |
7181 | enableval="$enable_popupwin" | |
7182 | ||
7183 | if test "$enableval" = yes; then | |
7184 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7185 | else | |
7186 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7187 | fi | |
7188 | ||
7189 | else | |
7190 | ||
7191 | LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7199 | ||
7200 | fi | |
7201 | ||
7202 | ||
7203 | eval "$ac_cv_use_popupwin" | |
7204 | if test "$no_cache" != 1; then | |
7205 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7206 | fi | |
7207 | ||
7208 | if test "$wxUSE_POPUPWIN" = yes; then | |
7209 | echo "$ac_t""yes" 1>&6 | |
7210 | else | |
7211 | echo "$ac_t""no" 1>&6 | |
7212 | fi | |
7213 | ||
7214 | ||
1e6feb95 VZ |
7215 | |
7216 | ||
7217 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
986ecc86 | 7218 | echo "configure:7219: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7219 | no_cache=0 |
7220 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7221 | if test "${enable_commondlg+set}" = set; then | |
7222 | enableval="$enable_commondlg" | |
7223 | ||
7224 | if test "$enableval" = yes; then | |
7225 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7226 | else | |
7227 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7228 | fi | |
7229 | ||
7230 | else | |
7231 | ||
7232 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7233 | if test "x$LINE" != x ; then | |
7234 | eval "DEFAULT_$LINE" | |
7235 | else | |
7236 | no_cache=1 | |
7237 | fi | |
7238 | ||
7239 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7240 | ||
7241 | fi | |
7242 | ||
7243 | ||
7244 | eval "$ac_cv_use_commondlg" | |
7245 | if test "$no_cache" != 1; then | |
7246 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7247 | fi | |
7248 | ||
7249 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7250 | echo "$ac_t""yes" 1>&6 | |
7251 | else | |
7252 | echo "$ac_t""no" 1>&6 | |
7253 | fi | |
7254 | ||
7255 | ||
7256 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
986ecc86 | 7257 | echo "configure:7258: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7258 | no_cache=0 |
7259 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7260 | if test "${enable_choicedlg+set}" = set; then | |
7261 | enableval="$enable_choicedlg" | |
7262 | ||
7263 | if test "$enableval" = yes; then | |
7264 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7265 | else | |
7266 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7267 | fi | |
7268 | ||
7269 | else | |
7270 | ||
7271 | LINE=`grep "wxUSE_CHOICEDLG" ${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_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7279 | ||
7280 | fi | |
7281 | ||
7282 | ||
7283 | eval "$ac_cv_use_choicedlg" | |
7284 | if test "$no_cache" != 1; then | |
7285 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7286 | fi | |
7287 | ||
7288 | if test "$wxUSE_CHOICEDLG" = 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-coldlg""... $ac_c" 1>&6 | |
986ecc86 | 7296 | echo "configure:7297: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7297 | no_cache=0 |
7298 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7299 | if test "${enable_coldlg+set}" = set; then | |
7300 | enableval="$enable_coldlg" | |
7301 | ||
7302 | if test "$enableval" = yes; then | |
7303 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7304 | else | |
7305 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7306 | fi | |
7307 | ||
7308 | else | |
7309 | ||
7310 | LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7318 | ||
7319 | fi | |
7320 | ||
7321 | ||
7322 | eval "$ac_cv_use_coldlg" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_COLOURDLG" = 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-filedlg""... $ac_c" 1>&6 | |
986ecc86 | 7335 | echo "configure:7336: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7336 | no_cache=0 |
7337 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7338 | if test "${enable_filedlg+set}" = set; then | |
7339 | enableval="$enable_filedlg" | |
7340 | ||
7341 | if test "$enableval" = yes; then | |
7342 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7343 | else | |
7344 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7345 | fi | |
7346 | ||
7347 | else | |
7348 | ||
7349 | LINE=`grep "wxUSE_FILEDLG" ${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_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7357 | ||
7358 | fi | |
7359 | ||
7360 | ||
7361 | eval "$ac_cv_use_filedlg" | |
7362 | if test "$no_cache" != 1; then | |
7363 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7364 | fi | |
7365 | ||
7366 | if test "$wxUSE_FILEDLG" = yes; then | |
7367 | echo "$ac_t""yes" 1>&6 | |
7368 | else | |
7369 | echo "$ac_t""no" 1>&6 | |
7370 | fi | |
7371 | ||
7372 | ||
69d27ff7 | 7373 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
986ecc86 | 7374 | echo "configure:7375: checking for --enable-finddlg" >&5 |
8db37e06 | 7375 | no_cache=0 |
69d27ff7 MB |
7376 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7377 | if test "${enable_finddlg+set}" = set; then | |
7378 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7379 | |
7380 | if test "$enableval" = yes; then | |
69d27ff7 | 7381 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7382 | else |
69d27ff7 | 7383 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7384 | fi |
7385 | ||
7386 | else | |
7387 | ||
7388 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7389 | if test "x$LINE" != x ; then | |
7390 | eval "DEFAULT_$LINE" | |
7391 | else | |
7392 | no_cache=1 | |
7393 | fi | |
7394 | ||
69d27ff7 | 7395 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7396 | |
7397 | fi | |
7398 | ||
7399 | ||
69d27ff7 | 7400 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7401 | if test "$no_cache" != 1; then |
69d27ff7 | 7402 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7403 | fi |
7404 | ||
7405 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7406 | echo "$ac_t""yes" 1>&6 | |
7407 | else | |
7408 | echo "$ac_t""no" 1>&6 | |
7409 | fi | |
7410 | ||
7411 | ||
1e6feb95 | 7412 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
986ecc86 | 7413 | echo "configure:7414: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7414 | no_cache=0 |
7415 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7416 | if test "${enable_fontdlg+set}" = set; then | |
7417 | enableval="$enable_fontdlg" | |
7418 | ||
7419 | if test "$enableval" = yes; then | |
7420 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7421 | else | |
7422 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7423 | fi | |
7424 | ||
7425 | else | |
7426 | ||
7427 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7428 | if test "x$LINE" != x ; then | |
7429 | eval "DEFAULT_$LINE" | |
7430 | else | |
7431 | no_cache=1 | |
7432 | fi | |
7433 | ||
7434 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7435 | ||
7436 | fi | |
7437 | ||
7438 | ||
7439 | eval "$ac_cv_use_fontdlg" | |
7440 | if test "$no_cache" != 1; then | |
7441 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7442 | fi | |
7443 | ||
7444 | if test "$wxUSE_FONTDLG" = yes; then | |
7445 | echo "$ac_t""yes" 1>&6 | |
7446 | else | |
7447 | echo "$ac_t""no" 1>&6 | |
7448 | fi | |
7449 | ||
7450 | ||
7451 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
986ecc86 | 7452 | echo "configure:7453: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7453 | no_cache=0 |
7454 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7455 | if test "${enable_dirdlg+set}" = set; then | |
7456 | enableval="$enable_dirdlg" | |
7457 | ||
7458 | if test "$enableval" = yes; then | |
7459 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7460 | else | |
7461 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7462 | fi | |
7463 | ||
7464 | else | |
7465 | ||
7466 | LINE=`grep "wxUSE_DIRDLG" ${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_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7474 | ||
7475 | fi | |
7476 | ||
7477 | ||
7478 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7479 | if test "$no_cache" != 1; then |
1e6feb95 | 7480 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7481 | fi |
7482 | ||
1e6feb95 | 7483 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7484 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7485 | else |
698dcdb6 | 7486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7487 | fi |
698dcdb6 VZ |
7488 | |
7489 | ||
1e6feb95 | 7490 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
986ecc86 | 7491 | echo "configure:7492: checking for --enable-msgdlg" >&5 |
10f2d63a | 7492 | no_cache=0 |
1e6feb95 VZ |
7493 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7494 | if test "${enable_msgdlg+set}" = set; then | |
7495 | enableval="$enable_msgdlg" | |
698dcdb6 | 7496 | |
10f2d63a | 7497 | if test "$enableval" = yes; then |
1e6feb95 | 7498 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7499 | else |
1e6feb95 | 7500 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7501 | fi |
698dcdb6 | 7502 | |
10f2d63a | 7503 | else |
698dcdb6 | 7504 | |
1e6feb95 | 7505 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7506 | if test "x$LINE" != x ; then |
7507 | eval "DEFAULT_$LINE" | |
7508 | else | |
7509 | no_cache=1 | |
7510 | fi | |
7511 | ||
1e6feb95 | 7512 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7513 | |
7514 | fi | |
10f2d63a VZ |
7515 | |
7516 | ||
1e6feb95 | 7517 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7518 | if test "$no_cache" != 1; then |
1e6feb95 | 7519 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7520 | fi |
7521 | ||
1e6feb95 | 7522 | if test "$wxUSE_MSGDLG" = 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 | 7527 | |
10f2d63a | 7528 | |
1e6feb95 | 7529 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
986ecc86 | 7530 | echo "configure:7531: checking for --enable-numberdlg" >&5 |
10f2d63a | 7531 | no_cache=0 |
1e6feb95 VZ |
7532 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7533 | if test "${enable_numberdlg+set}" = set; then | |
7534 | enableval="$enable_numberdlg" | |
698dcdb6 | 7535 | |
10f2d63a | 7536 | if test "$enableval" = yes; then |
1e6feb95 | 7537 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7538 | else |
1e6feb95 | 7539 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7540 | fi |
698dcdb6 | 7541 | |
10f2d63a | 7542 | else |
698dcdb6 | 7543 | |
1e6feb95 | 7544 | LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7552 | |
7553 | fi | |
10f2d63a VZ |
7554 | |
7555 | ||
1e6feb95 | 7556 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7557 | if test "$no_cache" != 1; then |
1e6feb95 | 7558 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7559 | fi |
7560 | ||
1e6feb95 | 7561 | if test "$wxUSE_NUMBERDLG" = 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 | |
cbca9943 | 7568 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
986ecc86 | 7569 | echo "configure:7570: checking for --enable-splash" >&5 |
cbca9943 VZ |
7570 | no_cache=0 |
7571 | # Check whether --enable-splash or --disable-splash was given. | |
7572 | if test "${enable_splash+set}" = set; then | |
7573 | enableval="$enable_splash" | |
7574 | ||
7575 | if test "$enableval" = yes; then | |
7576 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7577 | else | |
7578 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7579 | fi | |
7580 | ||
7581 | else | |
7582 | ||
7583 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7584 | if test "x$LINE" != x ; then | |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
7590 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7591 | ||
7592 | fi | |
7593 | ||
7594 | ||
7595 | eval "$ac_cv_use_splash" | |
7596 | if test "$no_cache" != 1; then | |
7597 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7598 | fi | |
7599 | ||
7600 | if test "$wxUSE_SPLASH" = yes; then | |
7601 | echo "$ac_t""yes" 1>&6 | |
7602 | else | |
7603 | echo "$ac_t""no" 1>&6 | |
7604 | fi | |
7605 | ||
7606 | ||
698dcdb6 | 7607 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
986ecc86 | 7608 | echo "configure:7609: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7609 | no_cache=0 |
7610 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7611 | if test "${enable_textdlg+set}" = set; then | |
7612 | enableval="$enable_textdlg" | |
698dcdb6 | 7613 | |
10f2d63a VZ |
7614 | if test "$enableval" = yes; then |
7615 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7616 | else | |
7617 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7618 | fi | |
698dcdb6 | 7619 | |
10f2d63a | 7620 | else |
698dcdb6 | 7621 | |
10f2d63a VZ |
7622 | LINE=`grep "wxUSE_TEXTDLG" ${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_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7630 | |
7631 | fi | |
10f2d63a VZ |
7632 | |
7633 | ||
7634 | eval "$ac_cv_use_textdlg" | |
7635 | if test "$no_cache" != 1; then | |
7636 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7637 | fi | |
7638 | ||
7639 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7640 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7641 | else |
698dcdb6 | 7642 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7643 | fi |
698dcdb6 | 7644 | |
10f2d63a | 7645 | |
698dcdb6 | 7646 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
986ecc86 | 7647 | echo "configure:7648: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7648 | no_cache=0 |
7649 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7650 | if test "${enable_tipdlg+set}" = set; then | |
7651 | enableval="$enable_tipdlg" | |
698dcdb6 | 7652 | |
10f2d63a VZ |
7653 | if test "$enableval" = yes; then |
7654 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7655 | else | |
7656 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7657 | fi | |
698dcdb6 | 7658 | |
10f2d63a | 7659 | else |
698dcdb6 | 7660 | |
10f2d63a VZ |
7661 | LINE=`grep "wxUSE_STARTUP_TIPS" ${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_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7669 | |
7670 | fi | |
10f2d63a VZ |
7671 | |
7672 | ||
7673 | eval "$ac_cv_use_tipdlg" | |
7674 | if test "$no_cache" != 1; then | |
7675 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7676 | fi | |
7677 | ||
7678 | if test "$wxUSE_STARTUP_TIPS" = 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-progressdlg""... $ac_c" 1>&6 |
986ecc86 | 7686 | echo "configure:7687: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7687 | no_cache=0 |
7688 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7689 | if test "${enable_progressdlg+set}" = set; then | |
7690 | enableval="$enable_progressdlg" | |
698dcdb6 | 7691 | |
10f2d63a VZ |
7692 | if test "$enableval" = yes; then |
7693 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7694 | else | |
7695 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7696 | fi | |
698dcdb6 | 7697 | |
10f2d63a | 7698 | else |
698dcdb6 | 7699 | |
10f2d63a VZ |
7700 | LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7708 | |
7709 | fi | |
10f2d63a VZ |
7710 | |
7711 | ||
7712 | eval "$ac_cv_use_progressdlg" | |
7713 | if test "$no_cache" != 1; then | |
7714 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7715 | fi | |
7716 | ||
7717 | if test "$wxUSE_PROGRESSDLG" = 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 | |
b1f5d087 | 7724 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
986ecc86 | 7725 | echo "configure:7726: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7726 | no_cache=0 |
7727 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7728 | if test "${enable_wizarddlg+set}" = set; then | |
7729 | enableval="$enable_wizarddlg" | |
7730 | ||
7731 | if test "$enableval" = yes; then | |
7732 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7733 | else | |
7734 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7735 | fi | |
7736 | ||
7737 | else | |
7738 | ||
7739 | LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7747 | ||
7748 | fi | |
7749 | ||
7750 | ||
7751 | eval "$ac_cv_use_wizarddlg" | |
7752 | if test "$no_cache" != 1; then | |
7753 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7754 | fi | |
7755 | ||
7756 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7757 | echo "$ac_t""yes" 1>&6 | |
7758 | else | |
7759 | echo "$ac_t""no" 1>&6 | |
7760 | fi | |
7761 | ||
7762 | ||
7763 | ||
7764 | ||
1e6feb95 | 7765 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
986ecc86 | 7766 | echo "configure:7767: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7767 | no_cache=0 |
7768 | # Check whether --enable-menus or --disable-menus was given. | |
7769 | if test "${enable_menus+set}" = set; then | |
7770 | enableval="$enable_menus" | |
7771 | ||
7772 | if test "$enableval" = yes; then | |
7773 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7774 | else | |
7775 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7776 | fi | |
7777 | ||
7778 | else | |
7779 | ||
7780 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7781 | if test "x$LINE" != x ; then | |
7782 | eval "DEFAULT_$LINE" | |
7783 | else | |
7784 | no_cache=1 | |
7785 | fi | |
7786 | ||
7787 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7788 | ||
7789 | fi | |
7790 | ||
7791 | ||
7792 | eval "$ac_cv_use_menus" | |
7793 | if test "$no_cache" != 1; then | |
7794 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7795 | fi | |
7796 | ||
7797 | if test "$wxUSE_MENUS" = yes; then | |
7798 | echo "$ac_t""yes" 1>&6 | |
7799 | else | |
7800 | echo "$ac_t""no" 1>&6 | |
7801 | fi | |
7802 | ||
7803 | ||
698dcdb6 | 7804 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
986ecc86 | 7805 | echo "configure:7806: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7806 | no_cache=0 |
7807 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7808 | if test "${enable_miniframe+set}" = set; then | |
7809 | enableval="$enable_miniframe" | |
698dcdb6 | 7810 | |
10f2d63a VZ |
7811 | if test "$enableval" = yes; then |
7812 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7813 | else | |
7814 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7815 | fi | |
698dcdb6 | 7816 | |
10f2d63a | 7817 | else |
698dcdb6 | 7818 | |
10f2d63a VZ |
7819 | LINE=`grep "wxUSE_MINIFRAME" ${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_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7827 | |
7828 | fi | |
10f2d63a VZ |
7829 | |
7830 | ||
7831 | eval "$ac_cv_use_miniframe" | |
7832 | if test "$no_cache" != 1; then | |
7833 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7834 | fi | |
7835 | ||
7836 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7837 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7838 | else |
698dcdb6 | 7839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7840 | fi |
698dcdb6 | 7841 | |
10f2d63a | 7842 | |
698dcdb6 | 7843 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
986ecc86 | 7844 | echo "configure:7845: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7845 | no_cache=0 |
7846 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7847 | if test "${enable_tooltips+set}" = set; then | |
7848 | enableval="$enable_tooltips" | |
698dcdb6 | 7849 | |
10f2d63a VZ |
7850 | if test "$enableval" = yes; then |
7851 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7852 | else | |
7853 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7854 | fi | |
698dcdb6 | 7855 | |
10f2d63a | 7856 | else |
698dcdb6 | 7857 | |
10f2d63a VZ |
7858 | LINE=`grep "wxUSE_TOOLTIPS" ${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_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7866 | |
7867 | fi | |
10f2d63a VZ |
7868 | |
7869 | ||
7870 | eval "$ac_cv_use_tooltips" | |
7871 | if test "$no_cache" != 1; then | |
7872 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7873 | fi | |
7874 | ||
7875 | if test "$wxUSE_TOOLTIPS" = 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-splines""... $ac_c" 1>&6 |
986ecc86 | 7883 | echo "configure:7884: checking for --enable-splines" >&5 |
10f2d63a VZ |
7884 | no_cache=0 |
7885 | # Check whether --enable-splines or --disable-splines was given. | |
7886 | if test "${enable_splines+set}" = set; then | |
7887 | enableval="$enable_splines" | |
698dcdb6 | 7888 | |
10f2d63a VZ |
7889 | if test "$enableval" = yes; then |
7890 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7891 | else | |
7892 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7893 | fi | |
698dcdb6 | 7894 | |
10f2d63a | 7895 | else |
698dcdb6 | 7896 | |
10f2d63a VZ |
7897 | LINE=`grep "wxUSE_SPLINES" ${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_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7905 | |
7906 | fi | |
10f2d63a VZ |
7907 | |
7908 | ||
7909 | eval "$ac_cv_use_splines" | |
7910 | if test "$no_cache" != 1; then | |
7911 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7912 | fi | |
7913 | ||
7914 | if test "$wxUSE_SPLINES" = 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-validators""... $ac_c" 1>&6 |
986ecc86 | 7922 | echo "configure:7923: checking for --enable-validators" >&5 |
10f2d63a VZ |
7923 | no_cache=0 |
7924 | # Check whether --enable-validators or --disable-validators was given. | |
7925 | if test "${enable_validators+set}" = set; then | |
7926 | enableval="$enable_validators" | |
698dcdb6 | 7927 | |
10f2d63a VZ |
7928 | if test "$enableval" = yes; then |
7929 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7930 | else | |
7931 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7932 | fi | |
698dcdb6 | 7933 | |
10f2d63a | 7934 | else |
698dcdb6 | 7935 | |
10f2d63a VZ |
7936 | LINE=`grep "wxUSE_VALIDATORS" ${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_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7944 | |
7945 | fi | |
10f2d63a VZ |
7946 | |
7947 | ||
7948 | eval "$ac_cv_use_validators" | |
7949 | if test "$no_cache" != 1; then | |
7950 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7951 | fi | |
7952 | ||
7953 | if test "$wxUSE_VALIDATORS" = 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-busyinfo""... $ac_c" 1>&6 |
986ecc86 | 7961 | echo "configure:7962: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7962 | no_cache=0 |
7963 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7964 | if test "${enable_busyinfo+set}" = set; then | |
7965 | enableval="$enable_busyinfo" | |
698dcdb6 | 7966 | |
10f2d63a VZ |
7967 | if test "$enableval" = yes; then |
7968 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7969 | else | |
7970 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7971 | fi | |
698dcdb6 | 7972 | |
10f2d63a | 7973 | else |
698dcdb6 | 7974 | |
10f2d63a VZ |
7975 | LINE=`grep "wxUSE_BUSYINFO" ${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_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7983 | |
7984 | fi | |
10f2d63a VZ |
7985 | |
7986 | ||
7987 | eval "$ac_cv_use_busyinfo" | |
7988 | if test "$no_cache" != 1; then | |
7989 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7990 | fi | |
7991 | ||
7992 | if test "$wxUSE_BUSYINFO" = 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-joystick""... $ac_c" 1>&6 |
986ecc86 | 8000 | echo "configure:8001: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8001 | no_cache=0 |
8002 | # Check whether --enable-joystick or --disable-joystick was given. | |
8003 | if test "${enable_joystick+set}" = set; then | |
8004 | enableval="$enable_joystick" | |
698dcdb6 | 8005 | |
f6bcfd97 BP |
8006 | if test "$enableval" = yes; then |
8007 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8008 | else | |
8009 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8010 | fi | |
698dcdb6 | 8011 | |
f6bcfd97 | 8012 | else |
698dcdb6 | 8013 | |
f6bcfd97 BP |
8014 | LINE=`grep "wxUSE_JOYSTICK" ${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_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8022 | |
8023 | fi | |
f6bcfd97 BP |
8024 | |
8025 | ||
8026 | eval "$ac_cv_use_joystick" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8032 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8033 | else |
698dcdb6 | 8034 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8035 | fi |
698dcdb6 VZ |
8036 | |
8037 | ||
1e6feb95 | 8038 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
986ecc86 | 8039 | echo "configure:8040: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8040 | no_cache=0 |
8041 | # Check whether --enable-metafile or --disable-metafile was given. | |
8042 | if test "${enable_metafile+set}" = set; then | |
8043 | enableval="$enable_metafile" | |
8044 | ||
8045 | if test "$enableval" = yes; then | |
8046 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8047 | else | |
8048 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8049 | fi | |
8050 | ||
8051 | else | |
8052 | ||
8053 | LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8061 | ||
8062 | fi | |
8063 | ||
8064 | ||
8065 | eval "$ac_cv_use_metafile" | |
8066 | if test "$no_cache" != 1; then | |
8067 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8068 | fi | |
8069 | ||
8070 | if test "$wxUSE_METAFILE" = yes; then | |
8071 | echo "$ac_t""yes" 1>&6 | |
8072 | else | |
8073 | echo "$ac_t""no" 1>&6 | |
8074 | fi | |
8075 | ||
8076 | ||
24fd6d87 | 8077 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
986ecc86 | 8078 | echo "configure:8079: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8079 | no_cache=0 |
8080 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8081 | if test "${enable_dragimage+set}" = set; then | |
8082 | enableval="$enable_dragimage" | |
8083 | ||
8084 | if test "$enableval" = yes; then | |
8085 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8086 | else | |
8087 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8088 | fi | |
8089 | ||
8090 | else | |
8091 | ||
8092 | LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8100 | ||
8101 | fi | |
8102 | ||
8103 | ||
8104 | eval "$ac_cv_use_dragimage" | |
8105 | if test "$no_cache" != 1; then | |
8106 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8107 | fi | |
8108 | ||
8109 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8110 | echo "$ac_t""yes" 1>&6 | |
8111 | else | |
8112 | echo "$ac_t""no" 1>&6 | |
8113 | fi | |
8114 | ||
8115 | ||
10f2d63a | 8116 | |
698dcdb6 | 8117 | |
edae8572 | 8118 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
986ecc86 | 8119 | echo "configure:8120: checking for --enable-palette" >&5 |
edae8572 VZ |
8120 | no_cache=0 |
8121 | # Check whether --enable-palette or --disable-palette was given. | |
8122 | if test "${enable_palette+set}" = set; then | |
8123 | enableval="$enable_palette" | |
8124 | ||
8125 | if test "$enableval" = yes; then | |
8126 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8127 | else | |
8128 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8129 | fi | |
8130 | ||
8131 | else | |
8132 | ||
8133 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8134 | if test "x$LINE" != x ; then | |
8135 | eval "DEFAULT_$LINE" | |
8136 | else | |
8137 | no_cache=1 | |
8138 | fi | |
8139 | ||
8140 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8141 | ||
8142 | fi | |
8143 | ||
8144 | ||
8145 | eval "$ac_cv_use_palette" | |
8146 | if test "$no_cache" != 1; then | |
8147 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8148 | fi | |
8149 | ||
8150 | if test "$wxUSE_PALETTE" = yes; then | |
8151 | echo "$ac_t""yes" 1>&6 | |
8152 | else | |
8153 | echo "$ac_t""no" 1>&6 | |
8154 | fi | |
8155 | ||
8156 | ||
698dcdb6 | 8157 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
986ecc86 | 8158 | echo "configure:8159: checking for --enable-image" >&5 |
0046ff7c VS |
8159 | no_cache=0 |
8160 | # Check whether --enable-image or --disable-image was given. | |
8161 | if test "${enable_image+set}" = set; then | |
8162 | enableval="$enable_image" | |
698dcdb6 | 8163 | |
0046ff7c VS |
8164 | if test "$enableval" = yes; then |
8165 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8166 | else | |
8167 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8168 | fi | |
698dcdb6 | 8169 | |
0046ff7c | 8170 | else |
698dcdb6 | 8171 | |
0046ff7c VS |
8172 | LINE=`grep "wxUSE_IMAGE" ${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_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8180 | |
8181 | fi | |
0046ff7c VS |
8182 | |
8183 | ||
8184 | eval "$ac_cv_use_image" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8190 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8191 | else |
698dcdb6 | 8192 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8193 | fi |
698dcdb6 | 8194 | |
0046ff7c | 8195 | |
698dcdb6 | 8196 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
986ecc86 | 8197 | echo "configure:8198: checking for --enable-gif" >&5 |
10f2d63a VZ |
8198 | no_cache=0 |
8199 | # Check whether --enable-gif or --disable-gif was given. | |
8200 | if test "${enable_gif+set}" = set; then | |
8201 | enableval="$enable_gif" | |
698dcdb6 | 8202 | |
10f2d63a VZ |
8203 | if test "$enableval" = yes; then |
8204 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8205 | else | |
8206 | ac_cv_use_gif='wxUSE_GIF=no' | |
8207 | fi | |
698dcdb6 | 8208 | |
10f2d63a | 8209 | else |
698dcdb6 | 8210 | |
10f2d63a VZ |
8211 | LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8219 | |
8220 | fi | |
10f2d63a VZ |
8221 | |
8222 | ||
8223 | eval "$ac_cv_use_gif" | |
8224 | if test "$no_cache" != 1; then | |
8225 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8226 | fi | |
8227 | ||
8228 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8229 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8230 | else |
698dcdb6 | 8231 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8232 | fi |
698dcdb6 | 8233 | |
10f2d63a | 8234 | |
698dcdb6 | 8235 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
986ecc86 | 8236 | echo "configure:8237: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8237 | no_cache=0 |
8238 | # Check whether --enable-pcx or --disable-pcx was given. | |
8239 | if test "${enable_pcx+set}" = set; then | |
8240 | enableval="$enable_pcx" | |
698dcdb6 | 8241 | |
10f2d63a VZ |
8242 | if test "$enableval" = yes; then |
8243 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8244 | else | |
8245 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8246 | fi | |
698dcdb6 | 8247 | |
10f2d63a | 8248 | else |
698dcdb6 | 8249 | |
10f2d63a VZ |
8250 | LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8258 | |
8259 | fi | |
10f2d63a VZ |
8260 | |
8261 | ||
8262 | eval "$ac_cv_use_pcx" | |
8263 | if test "$no_cache" != 1; then | |
8264 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8265 | fi | |
8266 | ||
8267 | if test "$wxUSE_PCX" = 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 | |
4b6b4dfc | 8274 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
986ecc86 | 8275 | echo "configure:8276: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8276 | no_cache=0 |
8277 | # Check whether --enable-iff or --disable-iff was given. | |
8278 | if test "${enable_iff+set}" = set; then | |
8279 | enableval="$enable_iff" | |
8280 | ||
8281 | if test "$enableval" = yes; then | |
8282 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8283 | else | |
8284 | ac_cv_use_iff='wxUSE_IFF=no' | |
8285 | fi | |
8286 | ||
8287 | else | |
8288 | ||
8289 | LINE=`grep "wxUSE_IFF" ${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_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8297 | ||
8298 | fi | |
8299 | ||
8300 | ||
8301 | eval "$ac_cv_use_iff" | |
8302 | if test "$no_cache" != 1; then | |
8303 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8304 | fi | |
8305 | ||
8306 | if test "$wxUSE_IFF" = yes; then | |
8307 | echo "$ac_t""yes" 1>&6 | |
8308 | else | |
8309 | echo "$ac_t""no" 1>&6 | |
8310 | fi | |
8311 | ||
8312 | ||
698dcdb6 | 8313 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
986ecc86 | 8314 | echo "configure:8315: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8315 | no_cache=0 |
8316 | # Check whether --enable-pnm or --disable-pnm was given. | |
8317 | if test "${enable_pnm+set}" = set; then | |
8318 | enableval="$enable_pnm" | |
698dcdb6 | 8319 | |
10f2d63a VZ |
8320 | if test "$enableval" = yes; then |
8321 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8322 | else | |
8323 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8324 | fi | |
698dcdb6 | 8325 | |
10f2d63a | 8326 | else |
698dcdb6 | 8327 | |
10f2d63a VZ |
8328 | LINE=`grep "wxUSE_PNM" ${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_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8336 | |
8337 | fi | |
10f2d63a VZ |
8338 | |
8339 | ||
8340 | eval "$ac_cv_use_pnm" | |
8341 | if test "$no_cache" != 1; then | |
8342 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8343 | fi | |
8344 | ||
8345 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8346 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8347 | else |
698dcdb6 | 8348 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8349 | fi |
698dcdb6 | 8350 | |
10f2d63a | 8351 | |
69d27ff7 | 8352 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
986ecc86 | 8353 | echo "configure:8354: checking for --enable-xpm" >&5 |
0046ff7c | 8354 | no_cache=0 |
69d27ff7 MB |
8355 | # Check whether --enable-xpm or --disable-xpm was given. |
8356 | if test "${enable_xpm+set}" = set; then | |
8357 | enableval="$enable_xpm" | |
698dcdb6 | 8358 | |
0046ff7c | 8359 | if test "$enableval" = yes; then |
69d27ff7 | 8360 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8361 | else |
69d27ff7 | 8362 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8363 | fi |
698dcdb6 | 8364 | |
0046ff7c | 8365 | else |
698dcdb6 | 8366 | |
0046ff7c VS |
8367 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8368 | if test "x$LINE" != x ; then | |
8369 | eval "DEFAULT_$LINE" | |
8370 | else | |
8371 | no_cache=1 | |
8372 | fi | |
8373 | ||
69d27ff7 | 8374 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8375 | |
8376 | fi | |
0046ff7c VS |
8377 | |
8378 | ||
69d27ff7 | 8379 | eval "$ac_cv_use_xpm" |
0046ff7c | 8380 | if test "$no_cache" != 1; then |
69d27ff7 | 8381 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8382 | fi |
8383 | ||
8384 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8385 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8386 | else |
698dcdb6 | 8387 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8388 | fi |
698dcdb6 | 8389 | |
0046ff7c | 8390 | |
c7206e64 | 8391 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
986ecc86 | 8392 | echo "configure:8393: checking for --enable-ico_cur" >&5 |
658974ae | 8393 | no_cache=0 |
c7206e64 VS |
8394 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8395 | if test "${enable_ico_cur+set}" = set; then | |
8396 | enableval="$enable_ico_cur" | |
658974ae VS |
8397 | |
8398 | if test "$enableval" = yes; then | |
c7206e64 | 8399 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8400 | else |
c7206e64 | 8401 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8402 | fi |
8403 | ||
8404 | else | |
8405 | ||
8406 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8407 | if test "x$LINE" != x ; then | |
8408 | eval "DEFAULT_$LINE" | |
8409 | else | |
8410 | no_cache=1 | |
8411 | fi | |
8412 | ||
c7206e64 | 8413 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8414 | |
8415 | fi | |
8416 | ||
8417 | ||
c7206e64 | 8418 | eval "$ac_cv_use_ico_cur" |
658974ae | 8419 | if test "$no_cache" != 1; then |
c7206e64 | 8420 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8421 | fi |
8422 | ||
8423 | if test "$wxUSE_ICO_CUR" = yes; then | |
8424 | echo "$ac_t""yes" 1>&6 | |
8425 | else | |
8426 | echo "$ac_t""no" 1>&6 | |
8427 | fi | |
8428 | ||
8429 | ||
b12915c1 VZ |
8430 | fi |
8431 | ||
d558c907 VS |
8432 | case "${host}" in |
8433 | *-pc-os2_emx | *-pc-os2-emx ) | |
8434 | LEX_STEM="lexyy" | |
8435 | ;; | |
8436 | *) | |
8437 | PATH_IFS=':' | |
8438 | LEX_STEM="lex.yy" | |
8439 | ;; | |
8440 | esac | |
8441 | ||
8442 | ||
698dcdb6 | 8443 | |
10f2d63a VZ |
8444 | echo "saving argument cache $wx_arg_cache_file" |
8445 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8446 | |
10f2d63a | 8447 | |
698dcdb6 VZ |
8448 | |
8449 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
986ecc86 | 8450 | echo "configure:8451: checking for toolkit" >&5 |
10f2d63a VZ |
8451 | |
8452 | if test "$wxUSE_GUI" = "yes"; then | |
8453 | ||
3a922bb4 RL |
8454 | if test "$USE_BEOS" = 1; then |
8455 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8456 | fi | |
b12915c1 | 8457 | |
3a922bb4 RL |
8458 | if test "$TOOLKIT_GIVEN" = 1; then |
8459 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8460 | var=wxUSE_$toolkit | |
8461 | eval "value=\$${var}" | |
8462 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8463 | done | |
10f2d63a | 8464 | else |
3a922bb4 RL |
8465 | for toolkit in `echo $ALL_TOOLKITS`; do |
8466 | if test "$has_toolkit_in_cache" != 1; then | |
8467 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8468 | else | |
8469 | var=DEFAULT_wxUSE_$toolkit | |
8470 | fi | |
8471 | eval "wxUSE_$toolkit=\$${var}" | |
8472 | done | |
10f2d63a | 8473 | fi |
10f2d63a | 8474 | |
3a922bb4 | 8475 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8476 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8477 | |
d558c907 | 8478 | case "${host}" in |
6fa882bd | 8479 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8480 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8481 | esac |
10f2d63a | 8482 | |
3a922bb4 RL |
8483 | case "$NUM_TOOLKITS" in |
8484 | 1) | |
8485 | ;; | |
8486 | 0) | |
8487 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8488 | ;; | |
8489 | *) | |
8490 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8491 | esac | |
10f2d63a | 8492 | |
3a922bb4 RL |
8493 | for toolkit in `echo $ALL_TOOLKITS`; do |
8494 | var=wxUSE_$toolkit | |
8495 | eval "value=\$${var}" | |
8496 | if test "x$value" != x; then | |
8497 | cache_var=CACHE_$toolkit | |
8498 | eval "cache=\$${cache_var}" | |
8499 | if test "$cache" = 1; then | |
8500 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8501 | fi | |
8502 | if test "$value" = 1; then | |
8503 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8504 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8505 | fi | |
8506 | fi | |
8507 | done | |
10f2d63a | 8508 | else |
3a922bb4 | 8509 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8510 | fi |
8511 | ||
698dcdb6 VZ |
8512 | |
8513 | cat > confcache <<\EOF | |
10f2d63a VZ |
8514 | # This file is a shell script that caches the results of configure |
8515 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8516 | # scripts and configure runs. It is not useful on other systems. |
8517 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8518 | # |
698dcdb6 VZ |
8519 | # By default, configure uses ./config.cache as the cache file, |
8520 | # creating it if it does not exist already. You can give configure | |
8521 | # the --cache-file=FILE option to use a different cache file; that is | |
8522 | # what configure does when it calls configure scripts in | |
8523 | # subdirectories, so they share the cache. | |
8524 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8525 | # config.status only pays attention to the cache file if you give it the | |
8526 | # --recheck option to rerun configure. | |
10f2d63a | 8527 | # |
698dcdb6 | 8528 | EOF |
10f2d63a VZ |
8529 | # The following way of writing the cache mishandles newlines in values, |
8530 | # but we know of no workaround that is simple, portable, and efficient. | |
8531 | # So, don't put newlines in cache variables' values. | |
8532 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8533 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8534 | (set) 2>&1 | |
8535 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8536 | *ac_space=\ *) | |
8537 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8538 | # turns \\\\ into \\, and sed turns \\ into \). | |
8539 | sed -n \ | |
8540 | -e "s/'/'\\\\''/g" \ | |
8541 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8542 | ;; | |
8543 | *) | |
8544 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8545 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8546 | ;; | |
8547 | esac >> confcache | |
8548 | if cmp -s $cache_file confcache; then | |
8549 | : | |
8550 | else | |
10f2d63a | 8551 | if test -w $cache_file; then |
698dcdb6 VZ |
8552 | echo "updating cache $cache_file" |
8553 | cat confcache > $cache_file | |
10f2d63a VZ |
8554 | else |
8555 | echo "not updating unwritable cache $cache_file" | |
8556 | fi | |
8557 | fi | |
8558 | rm -f confcache | |
8559 | ||
698dcdb6 | 8560 | |
e59890c3 | 8561 | if test "$build" != "$host" ; then |
9d353d4a | 8562 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8563 | CC=$host_alias-gcc |
8564 | CXX=$host_alias-c++ | |
8565 | AR=$host_alias-ar | |
8566 | RANLIB=$host_alias-ranlib | |
8567 | DLLTOOL=$host_alias-dlltool | |
8568 | RESCOMP=$host_alias-windres | |
8569 | LD=$host_alias-ld | |
8570 | NM=$host_alias-nm | |
8571 | STRIP=$host_alias-strip | |
8572 | else | |
8573 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8574 | fi | |
10f2d63a VZ |
8575 | fi |
8576 | ||
ec603395 | 8577 | CFLAGS=${CFLAGS:=} |
698dcdb6 | 8578 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8579 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8580 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
986ecc86 | 8581 | echo "configure:8582: checking for $ac_word" >&5 |
698dcdb6 VZ |
8582 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8584 | else |
8585 | if test -n "$CC"; then | |
8586 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8587 | else |
698dcdb6 VZ |
8588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8589 | ac_dummy="$PATH" | |
8590 | for ac_dir in $ac_dummy; do | |
8591 | test -z "$ac_dir" && ac_dir=. | |
8592 | if test -f $ac_dir/$ac_word; then | |
8593 | ac_cv_prog_CC="gcc" | |
8594 | break | |
8595 | fi | |
8596 | done | |
8597 | IFS="$ac_save_ifs" | |
10f2d63a | 8598 | fi |
6232543b | 8599 | fi |
698dcdb6 | 8600 | CC="$ac_cv_prog_CC" |
6232543b | 8601 | if test -n "$CC"; then |
698dcdb6 | 8602 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8603 | else |
698dcdb6 | 8604 | echo "$ac_t""no" 1>&6 |
1e487827 | 8605 | fi |
6232543b | 8606 | |
1e487827 VS |
8607 | if test -z "$CC"; then |
8608 | # Extract the first word of "cc", so it can be a program name with args. | |
8609 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
986ecc86 | 8611 | echo "configure:8612: checking for $ac_word" >&5 |
698dcdb6 VZ |
8612 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8614 | else |
8615 | if test -n "$CC"; then | |
8616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8617 | else | |
698dcdb6 | 8618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8619 | ac_prog_rejected=no |
698dcdb6 VZ |
8620 | ac_dummy="$PATH" |
8621 | for ac_dir in $ac_dummy; do | |
8622 | test -z "$ac_dir" && ac_dir=. | |
8623 | if test -f $ac_dir/$ac_word; then | |
8624 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8625 | ac_prog_rejected=yes | |
8626 | continue | |
8627 | fi | |
8628 | ac_cv_prog_CC="cc" | |
8629 | break | |
8630 | fi | |
8631 | done | |
8632 | IFS="$ac_save_ifs" | |
1e487827 VS |
8633 | if test $ac_prog_rejected = yes; then |
8634 | # We found a bogon in the path, so make sure we never use it. | |
8635 | set dummy $ac_cv_prog_CC | |
8636 | shift | |
698dcdb6 | 8637 | if test $# -gt 0; then |
1e487827 VS |
8638 | # We chose a different compiler from the bogus one. |
8639 | # However, it has the same basename, so the bogon will be chosen | |
8640 | # first if we set CC to just the basename; use the full file name. | |
8641 | shift | |
698dcdb6 | 8642 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8643 | shift |
8644 | ac_cv_prog_CC="$@" | |
703e0a69 | 8645 | fi |
1e487827 VS |
8646 | fi |
8647 | fi | |
8648 | fi | |
698dcdb6 | 8649 | CC="$ac_cv_prog_CC" |
1e487827 | 8650 | if test -n "$CC"; then |
698dcdb6 | 8651 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8652 | else |
698dcdb6 | 8653 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8654 | fi |
1e487827 | 8655 | |
698dcdb6 VZ |
8656 | if test -z "$CC"; then |
8657 | case "`uname -s`" in | |
8658 | *win32* | *WIN32*) | |
8659 | # Extract the first word of "cl", so it can be a program name with args. | |
8660 | set dummy cl; ac_word=$2 | |
8661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 8662 | echo "configure:8663: checking for $ac_word" >&5 |
698dcdb6 VZ |
8663 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8665 | else |
8666 | if test -n "$CC"; then | |
8667 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8668 | else |
698dcdb6 VZ |
8669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8670 | ac_dummy="$PATH" | |
8671 | for ac_dir in $ac_dummy; do | |
8672 | test -z "$ac_dir" && ac_dir=. | |
8673 | if test -f $ac_dir/$ac_word; then | |
8674 | ac_cv_prog_CC="cl" | |
8675 | break | |
8676 | fi | |
8677 | done | |
8678 | IFS="$ac_save_ifs" | |
703e0a69 | 8679 | fi |
1e487827 | 8680 | fi |
698dcdb6 | 8681 | CC="$ac_cv_prog_CC" |
1e487827 | 8682 | if test -n "$CC"; then |
698dcdb6 | 8683 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8684 | else |
698dcdb6 | 8685 | echo "$ac_t""no" 1>&6 |
1e487827 | 8686 | fi |
698dcdb6 VZ |
8687 | ;; |
8688 | esac | |
8689 | fi | |
8690 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8691 | fi |
8692 | ||
698dcdb6 | 8693 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
986ecc86 | 8694 | echo "configure:8695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8695 | |
698dcdb6 VZ |
8696 | ac_ext=c |
8697 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8698 | ac_cpp='$CPP $CPPFLAGS' | |
8699 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8700 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8701 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8702 | |
698dcdb6 | 8703 | cat > conftest.$ac_ext << EOF |
1e487827 | 8704 | |
986ecc86 | 8705 | #line 8706 "configure" |
1e487827 VS |
8706 | #include "confdefs.h" |
8707 | ||
698dcdb6 VZ |
8708 | main(){return(0);} |
8709 | EOF | |
986ecc86 | 8710 | if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8711 | ac_cv_prog_cc_works=yes |
8712 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8713 | if (./conftest; exit) 2>/dev/null; then | |
8714 | ac_cv_prog_cc_cross=no | |
8715 | else | |
8716 | ac_cv_prog_cc_cross=yes | |
8717 | fi | |
8718 | else | |
8719 | echo "configure: failed program was:" >&5 | |
8720 | cat conftest.$ac_ext >&5 | |
8721 | ac_cv_prog_cc_works=no | |
8722 | fi | |
8723 | rm -fr conftest* | |
8724 | ac_ext=c | |
8725 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8726 | ac_cpp='$CPP $CPPFLAGS' | |
8727 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8728 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8729 | cross_compiling=$ac_cv_prog_cc_cross | |
8730 | ||
8731 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8732 | if test $ac_cv_prog_cc_works = no; then | |
8733 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8734 | fi | |
8735 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
986ecc86 | 8736 | echo "configure:8737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8737 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8738 | cross_compiling=$ac_cv_prog_cc_cross | |
8739 | ||
8740 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
986ecc86 | 8741 | echo "configure:8742: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8742 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8744 | else | |
8745 | cat > conftest.c <<EOF | |
8746 | #ifdef __GNUC__ | |
8747 | yes; | |
1e487827 | 8748 | #endif |
698dcdb6 | 8749 | EOF |
986ecc86 | 8750 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8751 | ac_cv_prog_gcc=yes |
8752 | else | |
8753 | ac_cv_prog_gcc=no | |
8754 | fi | |
8755 | fi | |
1e487827 | 8756 | |
698dcdb6 | 8757 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8758 | |
698dcdb6 VZ |
8759 | if test $ac_cv_prog_gcc = yes; then |
8760 | GCC=yes | |
8761 | else | |
8762 | GCC= | |
8763 | fi | |
1e487827 | 8764 | |
698dcdb6 VZ |
8765 | ac_test_CFLAGS="${CFLAGS+set}" |
8766 | ac_save_CFLAGS="$CFLAGS" | |
8767 | CFLAGS= | |
8768 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
986ecc86 | 8769 | echo "configure:8770: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8770 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8772 | else | |
8773 | echo 'void f(){}' > conftest.c | |
8774 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8775 | ac_cv_prog_cc_g=yes |
8776 | else | |
698dcdb6 | 8777 | ac_cv_prog_cc_g=no |
10f2d63a | 8778 | fi |
698dcdb6 VZ |
8779 | rm -f conftest* |
8780 | ||
10f2d63a | 8781 | fi |
698dcdb6 VZ |
8782 | |
8783 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8784 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8785 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8786 | elif test $ac_cv_prog_cc_g = yes; then |
8787 | if test "$GCC" = yes; then | |
8788 | CFLAGS="-g -O2" | |
8789 | else | |
8790 | CFLAGS="-g" | |
8791 | fi | |
8792 | else | |
8793 | if test "$GCC" = yes; then | |
8794 | CFLAGS="-O2" | |
8795 | else | |
8796 | CFLAGS= | |
8797 | fi | |
8798 | fi | |
8799 | ||
8800 | ||
698dcdb6 | 8801 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
986ecc86 | 8802 | echo "configure:8803: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8803 | # On Suns, sometimes $CPP names a directory. |
8804 | if test -n "$CPP" && test -d "$CPP"; then | |
8805 | CPP= | |
8806 | fi | |
8807 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8808 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8810 | else | |
8811 | # This must be in double quotes, not single quotes, because CPP may get | |
8812 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8813 | CPP="${CC-cc} -E" | |
10f2d63a | 8814 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8815 | # not just through cpp. |
8816 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 8817 | #line 8818 "configure" |
10f2d63a VZ |
8818 | #include "confdefs.h" |
8819 | #include <assert.h> | |
698dcdb6 VZ |
8820 | Syntax Error |
8821 | EOF | |
8822 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 8823 | { (eval echo configure:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8824 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8825 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8826 | : |
8827 | else | |
698dcdb6 VZ |
8828 | echo "$ac_err" >&5 |
8829 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8830 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8831 | rm -rf conftest* |
8832 | CPP="${CC-cc} -E -traditional-cpp" | |
8833 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 8834 | #line 8835 "configure" |
10f2d63a | 8835 | #include "confdefs.h" |
698dcdb6 VZ |
8836 | #include <assert.h> |
8837 | Syntax Error | |
8838 | EOF | |
8839 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 8840 | { (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8841 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8842 | if test -z "$ac_err"; then | |
8843 | : | |
10f2d63a | 8844 | else |
698dcdb6 VZ |
8845 | echo "$ac_err" >&5 |
8846 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8847 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8848 | rm -rf conftest* |
8849 | CPP="${CC-cc} -nologo -E" | |
8850 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 8851 | #line 8852 "configure" |
10f2d63a VZ |
8852 | #include "confdefs.h" |
8853 | #include <assert.h> | |
698dcdb6 VZ |
8854 | Syntax Error |
8855 | EOF | |
8856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 8857 | { (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8858 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8859 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8860 | : |
8861 | else | |
698dcdb6 VZ |
8862 | echo "$ac_err" >&5 |
8863 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8864 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8865 | rm -rf conftest* |
8866 | CPP=/lib/cpp | |
10f2d63a | 8867 | fi |
698dcdb6 | 8868 | rm -f conftest* |
10f2d63a | 8869 | fi |
698dcdb6 | 8870 | rm -f conftest* |
703e0a69 | 8871 | fi |
698dcdb6 VZ |
8872 | rm -f conftest* |
8873 | ac_cv_prog_CPP="$CPP" | |
8874 | fi | |
8875 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8876 | else |
698dcdb6 | 8877 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8878 | fi |
698dcdb6 | 8879 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8880 | |
698dcdb6 VZ |
8881 | if test $ac_cv_prog_gcc = yes; then |
8882 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
986ecc86 | 8883 | echo "configure:8884: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8884 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8886 | else |
8887 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8888 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 8889 | #line 8890 "configure" |
10f2d63a VZ |
8890 | #include "confdefs.h" |
8891 | #include <sgtty.h> | |
8892 | Autoconf TIOCGETP | |
698dcdb6 | 8893 | EOF |
10f2d63a VZ |
8894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8895 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8896 | rm -rf conftest* |
10f2d63a VZ |
8897 | ac_cv_prog_gcc_traditional=yes |
8898 | else | |
698dcdb6 | 8899 | rm -rf conftest* |
10f2d63a VZ |
8900 | ac_cv_prog_gcc_traditional=no |
8901 | fi | |
8902 | rm -f conftest* | |
8903 | ||
698dcdb6 | 8904 | |
10f2d63a | 8905 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8906 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 8907 | #line 8908 "configure" |
10f2d63a VZ |
8908 | #include "confdefs.h" |
8909 | #include <termio.h> | |
8910 | Autoconf TCGETA | |
698dcdb6 | 8911 | EOF |
10f2d63a VZ |
8912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8913 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8914 | rm -rf conftest* |
10f2d63a VZ |
8915 | ac_cv_prog_gcc_traditional=yes |
8916 | fi | |
8917 | rm -f conftest* | |
8918 | ||
8919 | fi | |
8920 | fi | |
698dcdb6 VZ |
8921 | |
8922 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8923 | if test $ac_cv_prog_gcc_traditional = yes; then |
8924 | CC="$CC -traditional" | |
8925 | fi | |
8926 | fi | |
8927 | ||
703e0a69 | 8928 | |
698dcdb6 VZ |
8929 | |
8930 | ac_ext=C | |
8931 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8932 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8933 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8934 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8935 | cross_compiling=$ac_cv_prog_cxx_cross | |
8936 | ||
8937 | ||
ec603395 | 8938 | CXXFLAGS=${CXXFLAGS:=} |
698dcdb6 VZ |
8939 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8940 | do | |
8941 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8942 | set dummy $ac_prog; ac_word=$2 | |
8943 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 8944 | echo "configure:8945: checking for $ac_word" >&5 |
698dcdb6 VZ |
8945 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8947 | else |
8948 | if test -n "$CXX"; then | |
8949 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8950 | else | |
698dcdb6 VZ |
8951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8952 | ac_dummy="$PATH" | |
8953 | for ac_dir in $ac_dummy; do | |
8954 | test -z "$ac_dir" && ac_dir=. | |
8955 | if test -f $ac_dir/$ac_word; then | |
8956 | ac_cv_prog_CXX="$ac_prog" | |
8957 | break | |
8958 | fi | |
8959 | done | |
8960 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8961 | fi |
8962 | fi | |
698dcdb6 | 8963 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8964 | if test -n "$CXX"; then |
698dcdb6 | 8965 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8966 | else |
698dcdb6 | 8967 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8968 | fi |
8969 | ||
698dcdb6 | 8970 | test -n "$CXX" && break |
10f2d63a | 8971 | done |
698dcdb6 | 8972 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8973 | |
8974 | ||
698dcdb6 | 8975 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
986ecc86 | 8976 | echo "configure:8977: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8977 | |
698dcdb6 VZ |
8978 | ac_ext=C |
8979 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8980 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8981 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8982 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8983 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8984 | |
698dcdb6 VZ |
8985 | cat > conftest.$ac_ext << EOF |
8986 | ||
986ecc86 | 8987 | #line 8988 "configure" |
10f2d63a VZ |
8988 | #include "confdefs.h" |
8989 | ||
698dcdb6 VZ |
8990 | int main(){return(0);} |
8991 | EOF | |
986ecc86 | 8992 | if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8993 | ac_cv_prog_cxx_works=yes |
8994 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8995 | if (./conftest; exit) 2>/dev/null; then | |
8996 | ac_cv_prog_cxx_cross=no | |
8997 | else | |
8998 | ac_cv_prog_cxx_cross=yes | |
8999 | fi | |
9000 | else | |
9001 | echo "configure: failed program was:" >&5 | |
9002 | cat conftest.$ac_ext >&5 | |
9003 | ac_cv_prog_cxx_works=no | |
9004 | fi | |
9005 | rm -fr conftest* | |
9006 | ac_ext=C | |
9007 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9008 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9009 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9010 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9011 | cross_compiling=$ac_cv_prog_cxx_cross | |
9012 | ||
9013 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9014 | if test $ac_cv_prog_cxx_works = no; then | |
9015 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9016 | fi | |
9017 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
986ecc86 | 9018 | echo "configure:9019: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9019 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9020 | cross_compiling=$ac_cv_prog_cxx_cross | |
9021 | ||
9022 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
986ecc86 | 9023 | echo "configure:9024: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9024 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9026 | else | |
9027 | cat > conftest.C <<EOF | |
9028 | #ifdef __GNUC__ | |
9029 | yes; | |
10f2d63a | 9030 | #endif |
698dcdb6 | 9031 | EOF |
986ecc86 | 9032 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9033 | ac_cv_prog_gxx=yes |
9034 | else | |
9035 | ac_cv_prog_gxx=no | |
9036 | fi | |
9037 | fi | |
10f2d63a | 9038 | |
698dcdb6 | 9039 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9040 | |
698dcdb6 VZ |
9041 | if test $ac_cv_prog_gxx = yes; then |
9042 | GXX=yes | |
9043 | else | |
9044 | GXX= | |
9045 | fi | |
10f2d63a | 9046 | |
698dcdb6 VZ |
9047 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9048 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9049 | CXXFLAGS= | |
9050 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
986ecc86 | 9051 | echo "configure:9052: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9052 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9054 | else | |
9055 | echo 'void f(){}' > conftest.cc | |
9056 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9057 | ac_cv_prog_cxx_g=yes |
9058 | else | |
698dcdb6 | 9059 | ac_cv_prog_cxx_g=no |
10f2d63a | 9060 | fi |
698dcdb6 VZ |
9061 | rm -f conftest* |
9062 | ||
10f2d63a | 9063 | fi |
698dcdb6 VZ |
9064 | |
9065 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9066 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9067 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9068 | elif test $ac_cv_prog_cxx_g = yes; then |
9069 | if test "$GXX" = yes; then | |
9070 | CXXFLAGS="-g -O2" | |
9071 | else | |
9072 | CXXFLAGS="-g" | |
9073 | fi | |
9074 | else | |
9075 | if test "$GXX" = yes; then | |
9076 | CXXFLAGS="-O2" | |
9077 | else | |
9078 | CXXFLAGS= | |
9079 | fi | |
9080 | fi | |
9081 | ||
9082 | ||
10f2d63a | 9083 | ac_ext=c |
698dcdb6 | 9084 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9085 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9086 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9087 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9088 | cross_compiling=$ac_cv_prog_cc_cross | |
9089 | ||
9090 | ||
9091 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9092 | set dummy ranlib; ac_word=$2 | |
9093 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 9094 | echo "configure:9095: checking for $ac_word" >&5 |
698dcdb6 VZ |
9095 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9096 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9097 | else |
9098 | if test -n "$RANLIB"; then | |
9099 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9100 | else | |
698dcdb6 VZ |
9101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9102 | ac_dummy="$PATH" | |
9103 | for ac_dir in $ac_dummy; do | |
9104 | test -z "$ac_dir" && ac_dir=. | |
9105 | if test -f $ac_dir/$ac_word; then | |
9106 | ac_cv_prog_RANLIB="ranlib" | |
9107 | break | |
9108 | fi | |
9109 | done | |
9110 | IFS="$ac_save_ifs" | |
9111 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9112 | fi |
9113 | fi | |
698dcdb6 | 9114 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9115 | if test -n "$RANLIB"; then |
698dcdb6 | 9116 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9117 | else |
698dcdb6 | 9118 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9119 | fi |
9120 | ||
9121 | ||
9122 | # Extract the first word of "ar", so it can be a program name with args. | |
9123 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9124 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
986ecc86 | 9125 | echo "configure:9126: checking for $ac_word" >&5 |
698dcdb6 VZ |
9126 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9128 | else |
9129 | if test -n "$AR"; then | |
9130 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9131 | else | |
698dcdb6 VZ |
9132 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9133 | ac_dummy="$PATH" | |
9134 | for ac_dir in $ac_dummy; do | |
9135 | test -z "$ac_dir" && ac_dir=. | |
9136 | if test -f $ac_dir/$ac_word; then | |
9137 | ac_cv_prog_AR="ar" | |
9138 | break | |
9139 | fi | |
9140 | done | |
9141 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9142 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9143 | fi | |
9144 | fi | |
698dcdb6 | 9145 | AR="$ac_cv_prog_AR" |
10f2d63a | 9146 | if test -n "$AR"; then |
698dcdb6 | 9147 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9148 | else |
698dcdb6 | 9149 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9150 | fi |
9151 | ||
698dcdb6 | 9152 | |
6054113a | 9153 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9154 | # so one script is as good as another. But avoid the broken or |
9155 | # incompatible versions: | |
9156 | # SysV /etc/install, /usr/sbin/install | |
9157 | # SunOS /usr/etc/install | |
9158 | # IRIX /sbin/install | |
9159 | # AIX /bin/install | |
9160 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9161 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9162 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9163 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9164 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
986ecc86 | 9165 | echo "configure:9166: checking for a BSD compatible install" >&5 |
10f2d63a | 9166 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9167 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9169 | else |
698dcdb6 | 9170 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9171 | for ac_dir in $PATH; do |
9172 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9173 | case "$ac_dir/" in |
9174 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9175 | *) |
9176 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9177 | # Don't use installbsd from OSF since it installs stuff as root | |
9178 | # by default. | |
9179 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9180 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9181 | if test $ac_prog = install && |
698dcdb6 | 9182 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9183 | # AIX install. It has an incompatible calling convention. |
9184 | : | |
9185 | else | |
9186 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9187 | break 2 | |
9188 | fi | |
9189 | fi | |
9190 | done | |
9191 | ;; | |
9192 | esac | |
9193 | done | |
698dcdb6 | 9194 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9195 | |
9196 | fi | |
9197 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9198 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9199 | else |
9200 | # As a last resort, use the slow shell script. We don't cache a | |
9201 | # path for INSTALL within a source directory, because that will | |
9202 | # break other packages using the cache if that directory is | |
9203 | # removed, or if the path is relative. | |
698dcdb6 | 9204 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9205 | fi |
9206 | fi | |
698dcdb6 | 9207 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9208 | |
9209 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9210 | # It thinks the first close brace ends the variable substitution. | |
9211 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9212 | ||
698dcdb6 | 9213 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9214 | |
9215 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9216 | ||
1d1b75ac VZ |
9217 | |
9218 | case ${INSTALL} in | |
9219 | /* ) # Absolute | |
9220 | ;; | |
9221 | *) | |
9222 | INSTALL=`pwd`/${INSTALL} ;; | |
9223 | esac | |
9224 | ||
9225 | ||
6054113a GD |
9226 | case "${host}" in |
9227 | ||
b5853384 | 9228 | powerpc-*-darwin* ) |
eb99ae0b GD |
9229 | INSTALL_PROGRAM="cp -fp" |
9230 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9231 | ;; |
9232 | *) | |
9233 | ;; | |
d6853540 | 9234 | esac |
698dcdb6 | 9235 | |
10f2d63a VZ |
9236 | # Extract the first word of "strip", so it can be a program name with args. |
9237 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9238 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
986ecc86 | 9239 | echo "configure:9240: checking for $ac_word" >&5 |
698dcdb6 VZ |
9240 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9242 | else |
9243 | if test -n "$STRIP"; then | |
9244 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9245 | else | |
698dcdb6 VZ |
9246 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9247 | ac_dummy="$PATH" | |
9248 | for ac_dir in $ac_dummy; do | |
9249 | test -z "$ac_dir" && ac_dir=. | |
9250 | if test -f $ac_dir/$ac_word; then | |
9251 | ac_cv_prog_STRIP="strip" | |
9252 | break | |
9253 | fi | |
9254 | done | |
9255 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9256 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9257 | fi | |
9258 | fi | |
698dcdb6 | 9259 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9260 | if test -n "$STRIP"; then |
698dcdb6 | 9261 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9262 | else |
698dcdb6 | 9263 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9264 | fi |
9265 | ||
698dcdb6 | 9266 | |
414eab6d | 9267 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
986ecc86 | 9268 | echo "configure:9269: checking if make is GNU make" >&5 |
414eab6d VZ |
9269 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9271 | else | |
9272 | ||
9273 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9274 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9275 | wx_cv_prog_makeisgnu="yes" |
9276 | else | |
9277 | wx_cv_prog_makeisgnu="no" | |
9278 | fi | |
9279 | ||
9280 | fi | |
9281 | ||
9282 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9283 | ||
9284 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9285 | IF_GNU_MAKE="" | |
9286 | else | |
9287 | IF_GNU_MAKE="#" | |
9288 | fi | |
9289 | ||
9290 | ||
9291 | ||
9292 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9293 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
986ecc86 | 9294 | echo "configure:9295: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9295 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9297 | else | |
9298 | ||
10f2d63a VZ |
9299 | cat - << EOF > confMake |
9300 | check : file | |
9301 | cp \$? \$@ | |
9302 | cp \$? final_file | |
9303 | EOF | |
9304 | ||
9305 | if test ! -d sub ; then | |
9306 | mkdir sub | |
9307 | fi | |
9308 | echo dummy > sub/file | |
f6bcfd97 | 9309 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9310 | RESULT=$? |
9311 | rm -f sub/file check final_file confMake | |
9312 | rmdir sub | |
9313 | if test "$RESULT" = 0; then | |
04e7a216 | 9314 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9315 | else |
04e7a216 VZ |
9316 | wx_cv_prog_makevpath="no" |
9317 | fi | |
9318 | ||
9319 | fi | |
9320 | ||
9321 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9322 | ||
9323 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9324 | { echo "configure: error: | |
1e487827 VS |
9325 | You need a make-utility that is able to use the variable |
9326 | VPATH correctly. | |
9327 | If your version of make does not support VPATH correctly, | |
9328 | please install GNU-make (possibly as gmake), and start | |
9329 | configure with the following command: | |
9330 | export MAKE=gmake; ./configure for sh-type shells | |
9331 | setenv MAKE gmake; ./configure for csh-type shells | |
9332 | Also please do remember to use gmake in this case every time | |
9333 | you are trying to compile. | |
698dcdb6 | 9334 | " 1>&2; exit 1; } |
414eab6d | 9335 | fi fi |
10f2d63a VZ |
9336 | for ac_prog in 'bison -y' byacc |
9337 | do | |
698dcdb6 | 9338 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9339 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9340 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
986ecc86 | 9341 | echo "configure:9342: checking for $ac_word" >&5 |
698dcdb6 VZ |
9342 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9344 | else |
9345 | if test -n "$YACC"; then | |
9346 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9347 | else | |
698dcdb6 VZ |
9348 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9349 | ac_dummy="$PATH" | |
9350 | for ac_dir in $ac_dummy; do | |
9351 | test -z "$ac_dir" && ac_dir=. | |
9352 | if test -f $ac_dir/$ac_word; then | |
9353 | ac_cv_prog_YACC="$ac_prog" | |
9354 | break | |
9355 | fi | |
9356 | done | |
9357 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9358 | fi |
9359 | fi | |
698dcdb6 | 9360 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9361 | if test -n "$YACC"; then |
698dcdb6 | 9362 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9363 | else |
698dcdb6 | 9364 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9365 | fi |
9366 | ||
698dcdb6 | 9367 | test -n "$YACC" && break |
10f2d63a VZ |
9368 | done |
9369 | test -n "$YACC" || YACC="yacc" | |
9370 | ||
698dcdb6 VZ |
9371 | |
9372 | # Extract the first word of "flex", so it can be a program name with args. | |
9373 | set dummy flex; ac_word=$2 | |
9374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 9375 | echo "configure:9376: checking for $ac_word" >&5 |
698dcdb6 VZ |
9376 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9378 | else |
9379 | if test -n "$LEX"; then | |
9380 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9381 | else | |
698dcdb6 VZ |
9382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9383 | ac_dummy="$PATH" | |
9384 | for ac_dir in $ac_dummy; do | |
9385 | test -z "$ac_dir" && ac_dir=. | |
9386 | if test -f $ac_dir/$ac_word; then | |
9387 | ac_cv_prog_LEX="flex" | |
9388 | break | |
9389 | fi | |
9390 | done | |
9391 | IFS="$ac_save_ifs" | |
9392 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9393 | fi |
9394 | fi | |
698dcdb6 | 9395 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9396 | if test -n "$LEX"; then |
698dcdb6 | 9397 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9398 | else |
698dcdb6 | 9399 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9400 | fi |
9401 | ||
9402 | if test -z "$LEXLIB" | |
9403 | then | |
698dcdb6 VZ |
9404 | case "$LEX" in |
9405 | flex*) ac_lib=fl ;; | |
9406 | *) ac_lib=l ;; | |
9407 | esac | |
9408 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
986ecc86 | 9409 | echo "configure:9410: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9410 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9411 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9413 | else | |
9414 | ac_save_LIBS="$LIBS" | |
9415 | LIBS="-l$ac_lib $LIBS" | |
9416 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9417 | #line 9418 "configure" |
10f2d63a VZ |
9418 | #include "confdefs.h" |
9419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9420 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9421 | builtin and then its argument prototype would still apply. */ |
9422 | char yywrap(); | |
10f2d63a | 9423 | |
698dcdb6 VZ |
9424 | int main() { |
9425 | yywrap() | |
9426 | ; return 0; } | |
9427 | EOF | |
986ecc86 | 9428 | if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9429 | rm -rf conftest* |
9430 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9431 | else |
698dcdb6 VZ |
9432 | echo "configure: failed program was:" >&5 |
9433 | cat conftest.$ac_ext >&5 | |
9434 | rm -rf conftest* | |
9435 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9436 | fi |
698dcdb6 VZ |
9437 | rm -f conftest* |
9438 | LIBS="$ac_save_LIBS" | |
9439 | ||
10f2d63a | 9440 | fi |
698dcdb6 VZ |
9441 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9442 | echo "$ac_t""yes" 1>&6 | |
9443 | LEXLIB="-l$ac_lib" | |
9444 | else | |
9445 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9446 | fi |
9447 | ||
9448 | fi | |
9449 | ||
9450 | ||
698dcdb6 | 9451 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
986ecc86 | 9452 | echo "configure:9453: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9453 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9455 | else |
698dcdb6 VZ |
9456 | rm -f conftestdata |
9457 | if ln -s X conftestdata 2>/dev/null | |
9458 | then | |
9459 | rm -f conftestdata | |
9460 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9461 | else |
698dcdb6 | 9462 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9463 | fi |
9464 | fi | |
698dcdb6 VZ |
9465 | LN_S="$ac_cv_prog_LN_S" |
9466 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9467 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9468 | else |
698dcdb6 | 9469 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9470 | fi |
9471 | ||
9472 | ||
9473 | ||
21d1c967 GD |
9474 | if test "$wxUSE_MAC" != 1; then |
9475 | for ac_hdr in strings.h | |
9476 | do | |
9477 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9478 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9479 | echo "configure:9480: checking for $ac_hdr" >&5 |
21d1c967 | 9480 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19bc6aad VZ |
9481 | echo $ac_n "(cached) $ac_c" 1>&6 |
9482 | else | |
90dd450c | 9483 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 9484 | #line 9485 "configure" |
19bc6aad | 9485 | #include "confdefs.h" |
21d1c967 | 9486 | #include <$ac_hdr> |
19bc6aad | 9487 | EOF |
21d1c967 | 9488 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9489 | { (eval echo configure:9490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9490 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9491 | if test -z "$ac_err"; then | |
19bc6aad | 9492 | rm -rf conftest* |
21d1c967 | 9493 | eval "ac_cv_header_$ac_safe=yes" |
19bc6aad | 9494 | else |
21d1c967 | 9495 | echo "$ac_err" >&5 |
19bc6aad VZ |
9496 | echo "configure: failed program was:" >&5 |
9497 | cat conftest.$ac_ext >&5 | |
9498 | rm -rf conftest* | |
21d1c967 | 9499 | eval "ac_cv_header_$ac_safe=no" |
19bc6aad VZ |
9500 | fi |
9501 | rm -f conftest* | |
19bc6aad | 9502 | fi |
21d1c967 GD |
9503 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9504 | echo "$ac_t""yes" 1>&6 | |
9505 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9506 | cat >> confdefs.h <<EOF | |
9507 | #define $ac_tr_hdr 1 | |
19bc6aad | 9508 | EOF |
21d1c967 GD |
9509 | |
9510 | else | |
9511 | echo "$ac_t""no" 1>&6 | |
9512 | fi | |
9513 | done | |
19bc6aad | 9514 | |
19bc6aad VZ |
9515 | fi |
9516 | ||
21d1c967 GD |
9517 | for ac_hdr in stdlib.h |
9518 | do | |
9519 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9520 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9521 | echo "configure:9522: checking for $ac_hdr" >&5 |
21d1c967 | 9522 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18dbb1f6 VZ |
9523 | echo $ac_n "(cached) $ac_c" 1>&6 |
9524 | else | |
9525 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9526 | #line 9527 "configure" |
18dbb1f6 | 9527 | #include "confdefs.h" |
21d1c967 | 9528 | #include <$ac_hdr> |
18dbb1f6 | 9529 | EOF |
21d1c967 | 9530 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9531 | { (eval echo configure:9532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9532 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9533 | if test -z "$ac_err"; then | |
18dbb1f6 | 9534 | rm -rf conftest* |
21d1c967 | 9535 | eval "ac_cv_header_$ac_safe=yes" |
18dbb1f6 | 9536 | else |
21d1c967 | 9537 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9538 | echo "configure: failed program was:" >&5 |
9539 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9540 | rm -rf conftest* |
9541 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 VZ |
9542 | fi |
9543 | rm -f conftest* | |
90dd450c | 9544 | fi |
21d1c967 GD |
9545 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9546 | echo "$ac_t""yes" 1>&6 | |
9547 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9548 | cat >> confdefs.h <<EOF | |
9549 | #define $ac_tr_hdr 1 | |
90dd450c | 9550 | EOF |
21d1c967 GD |
9551 | |
9552 | else | |
9553 | echo "$ac_t""no" 1>&6 | |
9554 | fi | |
9555 | done | |
90dd450c | 9556 | |
21d1c967 GD |
9557 | for ac_hdr in malloc.h |
9558 | do | |
9559 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9560 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9561 | echo "configure:9562: checking for $ac_hdr" >&5 |
21d1c967 | 9562 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9563 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9564 | else |
9565 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9566 | #line 9567 "configure" |
90dd450c | 9567 | #include "confdefs.h" |
21d1c967 | 9568 | #include <$ac_hdr> |
18dbb1f6 | 9569 | EOF |
21d1c967 | 9570 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9571 | { (eval echo configure:9572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9572 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9573 | if test -z "$ac_err"; then | |
9574 | rm -rf conftest* | |
9575 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9576 | else |
21d1c967 | 9577 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9578 | echo "configure: failed program was:" >&5 |
9579 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9580 | rm -rf conftest* |
9581 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9582 | fi |
21d1c967 | 9583 | rm -f conftest* |
18dbb1f6 | 9584 | fi |
21d1c967 GD |
9585 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9586 | echo "$ac_t""yes" 1>&6 | |
9587 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9588 | cat >> confdefs.h <<EOF | |
9589 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9590 | EOF |
21d1c967 GD |
9591 | |
9592 | else | |
9593 | echo "$ac_t""no" 1>&6 | |
9594 | fi | |
9595 | done | |
dad6c0ea | 9596 | |
21d1c967 GD |
9597 | for ac_hdr in unistd.h |
9598 | do | |
9599 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9600 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9601 | echo "configure:9602: checking for $ac_hdr" >&5 |
21d1c967 | 9602 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3a922bb4 RL |
9603 | echo $ac_n "(cached) $ac_c" 1>&6 |
9604 | else | |
9605 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9606 | #line 9607 "configure" |
3a922bb4 | 9607 | #include "confdefs.h" |
21d1c967 | 9608 | #include <$ac_hdr> |
3a922bb4 | 9609 | EOF |
21d1c967 | 9610 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9611 | { (eval echo configure:9612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9612 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9613 | if test -z "$ac_err"; then | |
9614 | rm -rf conftest* | |
9615 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9616 | else |
21d1c967 | 9617 | echo "$ac_err" >&5 |
3a922bb4 RL |
9618 | echo "configure: failed program was:" >&5 |
9619 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9620 | rm -rf conftest* |
9621 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9622 | fi |
21d1c967 | 9623 | rm -f conftest* |
90dd450c | 9624 | fi |
21d1c967 GD |
9625 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9626 | echo "$ac_t""yes" 1>&6 | |
9627 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9628 | cat >> confdefs.h <<EOF | |
9629 | #define $ac_tr_hdr 1 | |
90dd450c | 9630 | EOF |
21d1c967 GD |
9631 | |
9632 | else | |
9633 | echo "$ac_t""no" 1>&6 | |
9634 | fi | |
9635 | done | |
90dd450c | 9636 | |
21d1c967 GD |
9637 | for ac_hdr in wchar.h |
9638 | do | |
9639 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9640 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9641 | echo "configure:9642: checking for $ac_hdr" >&5 |
21d1c967 | 9642 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4f14bcd8 | 9643 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9644 | else |
9645 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9646 | #line 9647 "configure" |
4f14bcd8 | 9647 | #include "confdefs.h" |
21d1c967 | 9648 | #include <$ac_hdr> |
3a922bb4 | 9649 | EOF |
21d1c967 | 9650 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9651 | { (eval echo configure:9652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9652 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9653 | if test -z "$ac_err"; then | |
9654 | rm -rf conftest* | |
9655 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 9656 | else |
21d1c967 | 9657 | echo "$ac_err" >&5 |
4f14bcd8 GD |
9658 | echo "configure: failed program was:" >&5 |
9659 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9660 | rm -rf conftest* |
9661 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9662 | fi |
21d1c967 | 9663 | rm -f conftest* |
4f14bcd8 | 9664 | fi |
21d1c967 GD |
9665 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9666 | echo "$ac_t""yes" 1>&6 | |
9667 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9668 | cat >> confdefs.h <<EOF | |
9669 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9670 | EOF |
21d1c967 GD |
9671 | |
9672 | else | |
9673 | echo "$ac_t""no" 1>&6 | |
9674 | fi | |
9675 | done | |
4f14bcd8 | 9676 | |
4f14bcd8 | 9677 | |
21d1c967 GD |
9678 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9679 | for ac_hdr in wcstr.h | |
9680 | do | |
9681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9683 | echo "configure:9684: checking for $ac_hdr" >&5 |
21d1c967 | 9684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d4158b5d VS |
9685 | echo $ac_n "(cached) $ac_c" 1>&6 |
9686 | else | |
9687 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9688 | #line 9689 "configure" |
d4158b5d | 9689 | #include "confdefs.h" |
21d1c967 | 9690 | #include <$ac_hdr> |
d4158b5d | 9691 | EOF |
21d1c967 | 9692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9693 | { (eval echo configure:9694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9695 | if test -z "$ac_err"; then | |
9696 | rm -rf conftest* | |
9697 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9698 | else |
21d1c967 | 9699 | echo "$ac_err" >&5 |
d4158b5d VS |
9700 | echo "configure: failed program was:" >&5 |
9701 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9702 | rm -rf conftest* |
9703 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9704 | fi |
21d1c967 GD |
9705 | rm -f conftest* |
9706 | fi | |
9707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9708 | echo "$ac_t""yes" 1>&6 | |
9709 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9710 | cat >> confdefs.h <<EOF | |
9711 | #define $ac_tr_hdr 1 | |
9712 | EOF | |
9713 | ||
9714 | else | |
9715 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9716 | fi |
21d1c967 | 9717 | done |
f6bcfd97 | 9718 | |
90dd450c | 9719 | fi |
90dd450c VZ |
9720 | |
9721 | ||
21d1c967 GD |
9722 | for ac_hdr in fnmatch.h |
9723 | do | |
9724 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9725 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9726 | echo "configure:9727: checking for $ac_hdr" >&5 |
21d1c967 | 9727 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9728 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9729 | else |
9730 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9731 | #line 9732 "configure" |
90dd450c | 9732 | #include "confdefs.h" |
21d1c967 | 9733 | #include <$ac_hdr> |
90dd450c | 9734 | EOF |
21d1c967 | 9735 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9736 | { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9737 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9738 | if test -z "$ac_err"; then | |
9739 | rm -rf conftest* | |
9740 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9741 | else |
21d1c967 | 9742 | echo "$ac_err" >&5 |
3a922bb4 RL |
9743 | echo "configure: failed program was:" >&5 |
9744 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9745 | rm -rf conftest* |
9746 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9747 | fi |
21d1c967 | 9748 | rm -f conftest* |
4f14bcd8 | 9749 | fi |
21d1c967 GD |
9750 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9751 | echo "$ac_t""yes" 1>&6 | |
9752 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9753 | cat >> confdefs.h <<EOF | |
9754 | #define $ac_tr_hdr 1 | |
90dd450c | 9755 | EOF |
21d1c967 GD |
9756 | |
9757 | else | |
9758 | echo "$ac_t""no" 1>&6 | |
9759 | fi | |
9760 | done | |
90dd450c VZ |
9761 | |
9762 | ||
21d1c967 GD |
9763 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9764 | for ac_func in fnmatch | |
9765 | do | |
9766 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 9767 | echo "configure:9768: checking for $ac_func" >&5 |
21d1c967 | 9768 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
90dd450c | 9769 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9770 | else |
9771 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9772 | #line 9773 "configure" |
90dd450c | 9773 | #include "confdefs.h" |
21d1c967 GD |
9774 | /* System header to define __stub macros and hopefully few prototypes, |
9775 | which can conflict with char $ac_func(); below. */ | |
9776 | #include <assert.h> | |
9777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9778 | /* We use char because int might match the return type of a gcc2 | |
9779 | builtin and then its argument prototype would still apply. */ | |
9780 | char $ac_func(); | |
9781 | ||
9782 | int main() { | |
9783 | ||
9784 | /* The GNU C library defines this for functions which it implements | |
9785 | to always fail with ENOSYS. Some functions are actually named | |
9786 | something starting with __ and the normal name is an alias. */ | |
9787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9788 | choke me | |
9789 | #else | |
9790 | $ac_func(); | |
9791 | #endif | |
9792 | ||
9793 | ; return 0; } | |
90dd450c | 9794 | EOF |
986ecc86 | 9795 | if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
9796 | rm -rf conftest* |
9797 | eval "ac_cv_func_$ac_func=yes" | |
90dd450c VZ |
9798 | else |
9799 | echo "configure: failed program was:" >&5 | |
9800 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9801 | rm -rf conftest* |
9802 | eval "ac_cv_func_$ac_func=no" | |
90dd450c | 9803 | fi |
21d1c967 | 9804 | rm -f conftest* |
4f14bcd8 | 9805 | fi |
32832908 | 9806 | |
21d1c967 GD |
9807 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9808 | echo "$ac_t""yes" 1>&6 | |
9809 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9810 | cat >> confdefs.h <<EOF | |
9811 | #define $ac_tr_func 1 | |
90dd450c | 9812 | EOF |
21d1c967 GD |
9813 | |
9814 | else | |
9815 | echo "$ac_t""no" 1>&6 | |
9816 | fi | |
9817 | done | |
90dd450c | 9818 | |
21d1c967 | 9819 | fi |
90dd450c | 9820 | |
21d1c967 GD |
9821 | for ac_hdr in langinfo.h |
9822 | do | |
9823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9825 | echo "configure:9826: checking for $ac_hdr" >&5 |
21d1c967 | 9826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9827 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9828 | else |
9829 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9830 | #line 9831 "configure" |
90dd450c | 9831 | #include "confdefs.h" |
21d1c967 | 9832 | #include <$ac_hdr> |
90dd450c | 9833 | EOF |
21d1c967 | 9834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9835 | { (eval echo configure:9836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9837 | if test -z "$ac_err"; then | |
9838 | rm -rf conftest* | |
9839 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9840 | else |
21d1c967 | 9841 | echo "$ac_err" >&5 |
90dd450c VZ |
9842 | echo "configure: failed program was:" >&5 |
9843 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9844 | rm -rf conftest* |
9845 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9846 | fi |
21d1c967 | 9847 | rm -f conftest* |
4f14bcd8 | 9848 | fi |
21d1c967 GD |
9849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9850 | echo "$ac_t""yes" 1>&6 | |
9851 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9852 | cat >> confdefs.h <<EOF | |
9853 | #define $ac_tr_hdr 1 | |
90dd450c | 9854 | EOF |
21d1c967 GD |
9855 | |
9856 | else | |
9857 | echo "$ac_t""no" 1>&6 | |
9858 | fi | |
9859 | done | |
3a922bb4 | 9860 | |
7b7a7637 | 9861 | |
21d1c967 GD |
9862 | if test "$wxUSE_GUI" = "yes"; then |
9863 | if test "$wxUSE_UNIX" = "yes"; then | |
9864 | for ac_hdr in X11/XKBlib.h | |
9865 | do | |
9866 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9867 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 9868 | echo "configure:9869: checking for $ac_hdr" >&5 |
21d1c967 | 9869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9870 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9871 | else |
9872 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9873 | #line 9874 "configure" |
90dd450c | 9874 | #include "confdefs.h" |
21d1c967 | 9875 | #include <$ac_hdr> |
90dd450c | 9876 | EOF |
21d1c967 | 9877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 9878 | { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9880 | if test -z "$ac_err"; then | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9883 | else |
21d1c967 | 9884 | echo "$ac_err" >&5 |
90dd450c VZ |
9885 | echo "configure: failed program was:" >&5 |
9886 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9887 | rm -rf conftest* |
9888 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9889 | fi |
21d1c967 | 9890 | rm -f conftest* |
90dd450c | 9891 | fi |
21d1c967 GD |
9892 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9893 | echo "$ac_t""yes" 1>&6 | |
9894 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9895 | cat >> confdefs.h <<EOF | |
9896 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9897 | EOF |
21d1c967 GD |
9898 | |
9899 | else | |
9900 | echo "$ac_t""no" 1>&6 | |
9901 | fi | |
9902 | done | |
10f2d63a | 9903 | |
21d1c967 | 9904 | fi |
90dd450c | 9905 | fi |
81809c07 | 9906 | |
21d1c967 GD |
9907 | |
9908 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
986ecc86 | 9909 | echo "configure:9910: checking for working const" >&5 |
21d1c967 | 9910 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8168de4c VZ |
9911 | echo $ac_n "(cached) $ac_c" 1>&6 |
9912 | else | |
21d1c967 | 9913 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 9914 | #line 9915 "configure" |
4f14bcd8 | 9915 | #include "confdefs.h" |
21d1c967 | 9916 | |
4f14bcd8 | 9917 | int main() { |
21d1c967 GD |
9918 | |
9919 | /* Ultrix mips cc rejects this. */ | |
9920 | typedef int charset[2]; const charset x; | |
9921 | /* SunOS 4.1.1 cc rejects this. */ | |
9922 | char const *const *ccp; | |
9923 | char **p; | |
9924 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9925 | struct point {int x, y;}; | |
9926 | static struct point const zero = {0,0}; | |
9927 | /* AIX XL C 1.02.0.0 rejects this. | |
9928 | It does not let you subtract one const X* pointer from another in an arm | |
9929 | of an if-expression whose if-part is not a constant expression */ | |
9930 | const char *g = "string"; | |
9931 | ccp = &g + (g ? g-g : 0); | |
9932 | /* HPUX 7.0 cc rejects these. */ | |
9933 | ++ccp; | |
9934 | p = (char**) ccp; | |
9935 | ccp = (char const *const *) p; | |
9936 | { /* SCO 3.2v4 cc rejects this. */ | |
9937 | char *t; | |
9938 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9939 | ||
9940 | *t++ = 0; | |
9941 | } | |
9942 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9943 | int x[] = {25, 17}; | |
9944 | const int *foo = &x[0]; | |
9945 | ++foo; | |
9946 | } | |
9947 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9948 | typedef const int *iptr; | |
9949 | iptr p = 0; | |
9950 | ++p; | |
9951 | } | |
9952 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9953 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9954 | struct s { int j; const int *ap[3]; }; | |
9955 | struct s *b; b->j = 5; | |
9956 | } | |
9957 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9958 | const int foo = 10; | |
9959 | } | |
4f14bcd8 | 9960 | |
4f14bcd8 GD |
9961 | ; return 0; } |
9962 | EOF | |
986ecc86 | 9963 | if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9964 | rm -rf conftest* |
21d1c967 | 9965 | ac_cv_c_const=yes |
6f72b082 | 9966 | else |
4f14bcd8 GD |
9967 | echo "configure: failed program was:" >&5 |
9968 | cat conftest.$ac_ext >&5 | |
9969 | rm -rf conftest* | |
21d1c967 | 9970 | ac_cv_c_const=no |
4f14bcd8 GD |
9971 | fi |
9972 | rm -f conftest* | |
698dcdb6 | 9973 | fi |
6f72b082 | 9974 | |
21d1c967 GD |
9975 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
9976 | if test $ac_cv_c_const = no; then | |
9977 | cat >> confdefs.h <<\EOF | |
9978 | #define const | |
90dd450c VZ |
9979 | EOF |
9980 | ||
21d1c967 | 9981 | fi |
90dd450c | 9982 | |
21d1c967 | 9983 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
986ecc86 | 9984 | echo "configure:9985: checking for inline" >&5 |
21d1c967 | 9985 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
4f14bcd8 | 9986 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 9987 | else |
21d1c967 GD |
9988 | ac_cv_c_inline=no |
9989 | for ac_kw in inline __inline__ __inline; do | |
9990 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 9991 | #line 9992 "configure" |
4f14bcd8 | 9992 | #include "confdefs.h" |
90dd450c | 9993 | |
21d1c967 GD |
9994 | int main() { |
9995 | } $ac_kw foo() { | |
4f14bcd8 GD |
9996 | ; return 0; } |
9997 | EOF | |
986ecc86 | 9998 | if { (eval echo configure:9999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9999 | rm -rf conftest* |
21d1c967 | 10000 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 10001 | else |
4f14bcd8 GD |
10002 | echo "configure: failed program was:" >&5 |
10003 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 10004 | fi |
4f14bcd8 | 10005 | rm -f conftest* |
21d1c967 | 10006 | done |
4f14bcd8 | 10007 | |
21d1c967 | 10008 | fi |
4f14bcd8 | 10009 | |
21d1c967 GD |
10010 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10011 | case "$ac_cv_c_inline" in | |
10012 | inline | yes) ;; | |
10013 | no) cat >> confdefs.h <<\EOF | |
10014 | #define inline | |
90dd450c | 10015 | EOF |
21d1c967 GD |
10016 | ;; |
10017 | *) cat >> confdefs.h <<EOF | |
10018 | #define inline $ac_cv_c_inline | |
4f14bcd8 | 10019 | EOF |
21d1c967 GD |
10020 | ;; |
10021 | esac | |
4f14bcd8 | 10022 | |
90dd450c | 10023 | |
21d1c967 | 10024 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
986ecc86 | 10025 | echo "configure:10026: checking size of char" >&5 |
21d1c967 | 10026 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
4f14bcd8 GD |
10027 | echo $ac_n "(cached) $ac_c" 1>&6 |
10028 | else | |
21d1c967 GD |
10029 | if test "$cross_compiling" = yes; then |
10030 | ac_cv_sizeof_char=1 | |
4f14bcd8 | 10031 | else |
90dd450c | 10032 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10033 | #line 10034 "configure" |
4f14bcd8 | 10034 | #include "confdefs.h" |
21d1c967 GD |
10035 | #include <stdio.h> |
10036 | main() | |
10037 | { | |
10038 | FILE *f=fopen("conftestval", "w"); | |
10039 | if (!f) exit(1); | |
10040 | fprintf(f, "%d\n", sizeof(char)); | |
10041 | exit(0); | |
90dd450c | 10042 | } |
4f14bcd8 | 10043 | EOF |
986ecc86 | 10044 | if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c | 10045 | then |
21d1c967 | 10046 | ac_cv_sizeof_char=`cat conftestval` |
4f14bcd8 GD |
10047 | else |
10048 | echo "configure: failed program was:" >&5 | |
10049 | cat conftest.$ac_ext >&5 | |
90dd450c | 10050 | rm -fr conftest* |
21d1c967 | 10051 | ac_cv_sizeof_char=0 |
90dd450c VZ |
10052 | fi |
10053 | rm -fr conftest* | |
4f14bcd8 | 10054 | fi |
4f14bcd8 GD |
10055 | |
10056 | fi | |
21d1c967 GD |
10057 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10058 | cat >> confdefs.h <<EOF | |
10059 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10060 | EOF | |
4f14bcd8 | 10061 | |
21d1c967 GD |
10062 | |
10063 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
986ecc86 | 10064 | echo "configure:10065: checking size of short" >&5 |
21d1c967 GD |
10065 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10067 | else | |
10068 | if test "$cross_compiling" = yes; then | |
10069 | ac_cv_sizeof_short=2 | |
10070 | else | |
10071 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10072 | #line 10073 "configure" |
21d1c967 GD |
10073 | #include "confdefs.h" |
10074 | #include <stdio.h> | |
10075 | main() | |
10076 | { | |
10077 | FILE *f=fopen("conftestval", "w"); | |
10078 | if (!f) exit(1); | |
10079 | fprintf(f, "%d\n", sizeof(short)); | |
10080 | exit(0); | |
10081 | } | |
90dd450c | 10082 | EOF |
986ecc86 | 10083 | if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10084 | then |
10085 | ac_cv_sizeof_short=`cat conftestval` | |
10086 | else | |
10087 | echo "configure: failed program was:" >&5 | |
10088 | cat conftest.$ac_ext >&5 | |
10089 | rm -fr conftest* | |
10090 | ac_cv_sizeof_short=0 | |
10091 | fi | |
10092 | rm -fr conftest* | |
10093 | fi | |
4f14bcd8 | 10094 | |
4f14bcd8 | 10095 | fi |
21d1c967 GD |
10096 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10097 | cat >> confdefs.h <<EOF | |
10098 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10099 | EOF | |
4f14bcd8 GD |
10100 | |
10101 | ||
21d1c967 | 10102 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
986ecc86 | 10103 | echo "configure:10104: checking size of void *" >&5 |
21d1c967 | 10104 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
4f14bcd8 GD |
10105 | echo $ac_n "(cached) $ac_c" 1>&6 |
10106 | else | |
21d1c967 GD |
10107 | if test "$cross_compiling" = yes; then |
10108 | ac_cv_sizeof_void_p=4 | |
10109 | else | |
4f14bcd8 | 10110 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10111 | #line 10112 "configure" |
4f14bcd8 | 10112 | #include "confdefs.h" |
21d1c967 GD |
10113 | #include <stdio.h> |
10114 | main() | |
10115 | { | |
10116 | FILE *f=fopen("conftestval", "w"); | |
10117 | if (!f) exit(1); | |
10118 | fprintf(f, "%d\n", sizeof(void *)); | |
10119 | exit(0); | |
10120 | } | |
4f14bcd8 | 10121 | EOF |
986ecc86 | 10122 | if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10123 | then |
10124 | ac_cv_sizeof_void_p=`cat conftestval` | |
4f14bcd8 | 10125 | else |
4f14bcd8 GD |
10126 | echo "configure: failed program was:" >&5 |
10127 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10128 | rm -fr conftest* |
10129 | ac_cv_sizeof_void_p=0 | |
4f14bcd8 | 10130 | fi |
21d1c967 | 10131 | rm -fr conftest* |
4f14bcd8 | 10132 | fi |
4f14bcd8 | 10133 | |
21d1c967 GD |
10134 | fi |
10135 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10136 | cat >> confdefs.h <<EOF | |
10137 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
90dd450c VZ |
10138 | EOF |
10139 | ||
90dd450c | 10140 | |
21d1c967 | 10141 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
986ecc86 | 10142 | echo "configure:10143: checking size of int" >&5 |
21d1c967 | 10143 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4f14bcd8 | 10144 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10145 | else |
10146 | if test "$cross_compiling" = yes; then | |
10147 | ac_cv_sizeof_int=4 | |
4f14bcd8 GD |
10148 | else |
10149 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10150 | #line 10151 "configure" |
4f14bcd8 | 10151 | #include "confdefs.h" |
21d1c967 GD |
10152 | #include <stdio.h> |
10153 | main() | |
10154 | { | |
10155 | FILE *f=fopen("conftestval", "w"); | |
10156 | if (!f) exit(1); | |
10157 | fprintf(f, "%d\n", sizeof(int)); | |
10158 | exit(0); | |
10159 | } | |
4f14bcd8 | 10160 | EOF |
986ecc86 | 10161 | if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10162 | then |
10163 | ac_cv_sizeof_int=`cat conftestval` | |
4f14bcd8 | 10164 | else |
4f14bcd8 GD |
10165 | echo "configure: failed program was:" >&5 |
10166 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10167 | rm -fr conftest* |
10168 | ac_cv_sizeof_int=0 | |
4f14bcd8 | 10169 | fi |
21d1c967 | 10170 | rm -fr conftest* |
4f14bcd8 | 10171 | fi |
4f14bcd8 | 10172 | |
21d1c967 GD |
10173 | fi |
10174 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10175 | cat >> confdefs.h <<EOF | |
10176 | #define SIZEOF_INT $ac_cv_sizeof_int | |
90dd450c VZ |
10177 | EOF |
10178 | ||
90dd450c | 10179 | |
21d1c967 | 10180 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
986ecc86 | 10181 | echo "configure:10182: checking size of long" >&5 |
21d1c967 | 10182 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10183 | echo $ac_n "(cached) $ac_c" 1>&6 |
10184 | else | |
21d1c967 GD |
10185 | if test "$cross_compiling" = yes; then |
10186 | ac_cv_sizeof_long=4 | |
10187 | else | |
10188 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10189 | #line 10190 "configure" |
90dd450c | 10190 | #include "confdefs.h" |
21d1c967 GD |
10191 | #include <stdio.h> |
10192 | main() | |
10193 | { | |
10194 | FILE *f=fopen("conftestval", "w"); | |
10195 | if (!f) exit(1); | |
10196 | fprintf(f, "%d\n", sizeof(long)); | |
10197 | exit(0); | |
10198 | } | |
4f14bcd8 | 10199 | EOF |
986ecc86 | 10200 | if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10201 | then |
10202 | ac_cv_sizeof_long=`cat conftestval` | |
4f14bcd8 GD |
10203 | else |
10204 | echo "configure: failed program was:" >&5 | |
10205 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10206 | rm -fr conftest* |
10207 | ac_cv_sizeof_long=0 | |
4f14bcd8 | 10208 | fi |
21d1c967 | 10209 | rm -fr conftest* |
90dd450c | 10210 | fi |
4f14bcd8 | 10211 | |
21d1c967 GD |
10212 | fi |
10213 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10214 | cat >> confdefs.h <<EOF | |
10215 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
90dd450c | 10216 | EOF |
4f14bcd8 | 10217 | |
4f14bcd8 | 10218 | |
4f14bcd8 | 10219 | |
21d1c967 GD |
10220 | case "${host}" in |
10221 | arm-*-linux* ) | |
10222 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
986ecc86 | 10223 | echo "configure:10224: checking size of long long" >&5 |
21d1c967 GD |
10224 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10226 | else | |
10227 | if test "$cross_compiling" = yes; then | |
10228 | ac_cv_sizeof_long_long=8 | |
10229 | else | |
10230 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10231 | #line 10232 "configure" |
21d1c967 GD |
10232 | #include "confdefs.h" |
10233 | #include <stdio.h> | |
10234 | main() | |
10235 | { | |
10236 | FILE *f=fopen("conftestval", "w"); | |
10237 | if (!f) exit(1); | |
10238 | fprintf(f, "%d\n", sizeof(long long)); | |
10239 | exit(0); | |
10240 | } | |
90dd450c | 10241 | EOF |
986ecc86 | 10242 | if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10243 | then |
10244 | ac_cv_sizeof_long_long=`cat conftestval` | |
90dd450c | 10245 | else |
21d1c967 GD |
10246 | echo "configure: failed program was:" >&5 |
10247 | cat conftest.$ac_ext >&5 | |
10248 | rm -fr conftest* | |
10249 | ac_cv_sizeof_long_long=0 | |
10250 | fi | |
10251 | rm -fr conftest* | |
90dd450c | 10252 | fi |
4f14bcd8 | 10253 | |
21d1c967 GD |
10254 | fi |
10255 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10256 | cat >> confdefs.h <<EOF | |
10257 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10258 | EOF | |
90dd450c | 10259 | |
21d1c967 GD |
10260 | |
10261 | ;; | |
10262 | * ) | |
10263 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
986ecc86 | 10264 | echo "configure:10265: checking size of long long" >&5 |
21d1c967 | 10265 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10266 | echo $ac_n "(cached) $ac_c" 1>&6 |
10267 | else | |
21d1c967 GD |
10268 | if test "$cross_compiling" = yes; then |
10269 | ac_cv_sizeof_long_long=0 | |
10270 | else | |
10271 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10272 | #line 10273 "configure" |
90dd450c | 10273 | #include "confdefs.h" |
21d1c967 GD |
10274 | #include <stdio.h> |
10275 | main() | |
10276 | { | |
10277 | FILE *f=fopen("conftestval", "w"); | |
10278 | if (!f) exit(1); | |
10279 | fprintf(f, "%d\n", sizeof(long long)); | |
10280 | exit(0); | |
10281 | } | |
90dd450c | 10282 | EOF |
986ecc86 | 10283 | if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10284 | then |
10285 | ac_cv_sizeof_long_long=`cat conftestval` | |
4f14bcd8 | 10286 | else |
90dd450c VZ |
10287 | echo "configure: failed program was:" >&5 |
10288 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10289 | rm -fr conftest* |
10290 | ac_cv_sizeof_long_long=0 | |
90dd450c | 10291 | fi |
21d1c967 | 10292 | rm -fr conftest* |
4f14bcd8 GD |
10293 | fi |
10294 | ||
90dd450c | 10295 | fi |
21d1c967 GD |
10296 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10297 | cat >> confdefs.h <<EOF | |
10298 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
90dd450c | 10299 | EOF |
9e691f46 | 10300 | |
9e691f46 | 10301 | |
21d1c967 GD |
10302 | esac |
10303 | ||
10304 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
986ecc86 | 10305 | echo "configure:10306: checking size of wchar_t" >&5 |
21d1c967 | 10306 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
90dd450c | 10307 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10308 | else |
10309 | ||
10310 | if test "$cross_compiling" = yes; then | |
10311 | wx_cv_sizeof_wchar_t=4 | |
10312 | ||
6f72b082 | 10313 | else |
698dcdb6 | 10314 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10315 | #line 10316 "configure" |
6f72b082 | 10316 | #include "confdefs.h" |
21d1c967 GD |
10317 | |
10318 | #ifdef HAVE_WCHAR_H | |
10319 | # ifdef __CYGWIN__ | |
10320 | # include <stddef.h> | |
10321 | # endif | |
10322 | # include <wchar.h> | |
10323 | #endif | |
10324 | #ifdef HAVE_STDLIB_H | |
10325 | # include <stdlib.h> | |
10326 | #endif | |
10327 | #include <stdio.h> | |
10328 | int main() | |
10329 | { | |
10330 | FILE *f=fopen("conftestval", "w"); | |
10331 | if (!f) exit(1); | |
10332 | fprintf(f, "%i", sizeof(wchar_t)); | |
10333 | exit(0); | |
10334 | } | |
10335 | ||
698dcdb6 | 10336 | EOF |
986ecc86 | 10337 | if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10338 | then |
10339 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
6f72b082 | 10340 | else |
698dcdb6 VZ |
10341 | echo "configure: failed program was:" >&5 |
10342 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10343 | rm -fr conftest* |
10344 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10345 | fi |
21d1c967 | 10346 | rm -fr conftest* |
6f72b082 | 10347 | fi |
6f72b082 | 10348 | |
90dd450c | 10349 | |
3f345b47 VZ |
10350 | fi |
10351 | ||
21d1c967 | 10352 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
3f345b47 | 10353 | |
21d1c967 GD |
10354 | cat >> confdefs.h <<EOF |
10355 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10356 | EOF | |
90dd450c | 10357 | |
90dd450c | 10358 | |
21d1c967 GD |
10359 | # Check whether --enable-largefile or --disable-largefile was given. |
10360 | if test "${enable_largefile+set}" = set; then | |
10361 | enableval="$enable_largefile" | |
10362 | : | |
3f345b47 VZ |
10363 | fi |
10364 | ||
21d1c967 GD |
10365 | if test "$enable_largefile" != no; then |
10366 | wx_largefile=no | |
10367 | ||
10368 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
986ecc86 | 10369 | echo "configure:10370: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
21d1c967 | 10370 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
698dcdb6 | 10371 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10372 | else |
21d1c967 GD |
10373 | |
10374 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10375 | #line 10376 "configure" |
90dd450c | 10376 | #include "confdefs.h" |
21d1c967 GD |
10377 | #define _FILE_OFFSET_BITS 64 |
10378 | #include <sys/types.h> | |
10379 | int main() { | |
10380 | typedef struct { | |
10381 | unsigned int field: sizeof(off_t) == 8; | |
10382 | } wxlf; | |
10383 | ||
10384 | ; return 0; } | |
90dd450c | 10385 | EOF |
986ecc86 | 10386 | if { (eval echo configure:10387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10387 | rm -rf conftest* |
21d1c967 | 10388 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10389 | else |
90dd450c VZ |
10390 | echo "configure: failed program was:" >&5 |
10391 | cat conftest.$ac_ext >&5 | |
10392 | rm -rf conftest* | |
21d1c967 | 10393 | ac_cv_sys_file_offset_bits=no |
f6bcfd97 | 10394 | fi |
90dd450c | 10395 | rm -f conftest* |
21d1c967 GD |
10396 | |
10397 | ||
90dd450c | 10398 | fi |
21d1c967 GD |
10399 | |
10400 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10401 | ||
10402 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10403 | wx_largefile=yes | |
10404 | cat >> confdefs.h <<EOF | |
10405 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10406 | EOF | |
10407 | ||
10408 | fi | |
10409 | ||
10410 | if test "x$wx_largefile" != "xyes"; then | |
10411 | ||
10412 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
986ecc86 | 10413 | echo "configure:10414: checking for _LARGE_FILES value needed for large files" >&5 |
21d1c967 | 10414 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
90dd450c | 10415 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10416 | else |
21d1c967 GD |
10417 | |
10418 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10419 | #line 10420 "configure" |
f6bcfd97 | 10420 | #include "confdefs.h" |
21d1c967 GD |
10421 | #define _LARGE_FILES 1 |
10422 | #include <sys/types.h> | |
90dd450c | 10423 | int main() { |
21d1c967 GD |
10424 | typedef struct { |
10425 | unsigned int field: sizeof(off_t) == 8; | |
10426 | } wxlf; | |
10427 | ||
90dd450c | 10428 | ; return 0; } |
698dcdb6 | 10429 | EOF |
986ecc86 | 10430 | if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10431 | rm -rf conftest* |
21d1c967 | 10432 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10433 | else |
698dcdb6 VZ |
10434 | echo "configure: failed program was:" >&5 |
10435 | cat conftest.$ac_ext >&5 | |
90dd450c | 10436 | rm -rf conftest* |
21d1c967 | 10437 | ac_cv_sys_large_files=no |
f6bcfd97 | 10438 | fi |
90dd450c | 10439 | rm -f conftest* |
21d1c967 GD |
10440 | |
10441 | ||
f6bcfd97 | 10442 | fi |
698dcdb6 | 10443 | |
21d1c967 | 10444 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
3f345b47 | 10445 | |
21d1c967 GD |
10446 | if test "$ac_cv_sys_large_files" != no; then |
10447 | wx_largefile=yes | |
10448 | cat >> confdefs.h <<EOF | |
10449 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10450 | EOF | |
90dd450c | 10451 | |
90dd450c VZ |
10452 | fi |
10453 | ||
90dd450c | 10454 | fi |
90dd450c | 10455 | |
21d1c967 | 10456 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
986ecc86 | 10457 | echo "configure:10458: checking if large file support is available" >&5 |
21d1c967 GD |
10458 | if test "x$wx_largefile" = "xyes"; then |
10459 | cat >> confdefs.h <<\EOF | |
10460 | #define HAVE_LARGEFILE_SUPPORT 1 | |
90dd450c VZ |
10461 | EOF |
10462 | ||
90dd450c | 10463 | fi |
21d1c967 GD |
10464 | echo "$ac_t""$wx_largefile" 1>&6 |
10465 | fi | |
90dd450c | 10466 | |
90dd450c | 10467 | |
21d1c967 | 10468 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
986ecc86 | 10469 | echo "configure:10470: checking whether byte ordering is bigendian" >&5 |
21d1c967 | 10470 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
90dd450c VZ |
10471 | echo $ac_n "(cached) $ac_c" 1>&6 |
10472 | else | |
21d1c967 GD |
10473 | ac_cv_c_bigendian=unknown |
10474 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10475 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10476 | #line 10477 "configure" |
90dd450c | 10477 | #include "confdefs.h" |
21d1c967 GD |
10478 | #include <sys/types.h> |
10479 | #include <sys/param.h> | |
10480 | int main() { | |
10481 | ||
10482 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10483 | bogus endian macros | |
10484 | #endif | |
10485 | ; return 0; } | |
90dd450c | 10486 | EOF |
986ecc86 | 10487 | if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10488 | rm -rf conftest* |
21d1c967 | 10489 | # It does; now see whether it defined to BIG_ENDIAN or not. |
90dd450c | 10490 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10491 | #line 10492 "configure" |
90dd450c | 10492 | #include "confdefs.h" |
21d1c967 GD |
10493 | #include <sys/types.h> |
10494 | #include <sys/param.h> | |
3f345b47 | 10495 | int main() { |
21d1c967 GD |
10496 | |
10497 | #if BYTE_ORDER != BIG_ENDIAN | |
10498 | not big endian | |
10499 | #endif | |
3f345b47 VZ |
10500 | ; return 0; } |
10501 | EOF | |
986ecc86 | 10502 | if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f345b47 | 10503 | rm -rf conftest* |
21d1c967 | 10504 | ac_cv_c_bigendian=yes |
3f345b47 VZ |
10505 | else |
10506 | echo "configure: failed program was:" >&5 | |
10507 | cat conftest.$ac_ext >&5 | |
10508 | rm -rf conftest* | |
21d1c967 | 10509 | ac_cv_c_bigendian=no |
3f345b47 VZ |
10510 | fi |
10511 | rm -f conftest* | |
3f345b47 | 10512 | else |
21d1c967 GD |
10513 | echo "configure: failed program was:" >&5 |
10514 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10515 | fi |
21d1c967 GD |
10516 | rm -f conftest* |
10517 | if test $ac_cv_c_bigendian = unknown; then | |
10518 | if test "$cross_compiling" = yes; then | |
10519 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10520 | else |
90dd450c | 10521 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10522 | #line 10523 "configure" |
90dd450c | 10523 | #include "confdefs.h" |
21d1c967 GD |
10524 | main () { |
10525 | /* Are we little or big endian? From Harbison&Steele. */ | |
10526 | union | |
10527 | { | |
10528 | long l; | |
10529 | char c[sizeof (long)]; | |
10530 | } u; | |
10531 | u.l = 1; | |
10532 | exit (u.c[sizeof (long) - 1] == 1); | |
10533 | } | |
3f345b47 | 10534 | EOF |
986ecc86 | 10535 | if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10536 | then |
10537 | ac_cv_c_bigendian=no | |
3f345b47 VZ |
10538 | else |
10539 | echo "configure: failed program was:" >&5 | |
10540 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10541 | rm -fr conftest* |
10542 | ac_cv_c_bigendian=yes | |
3f345b47 | 10543 | fi |
21d1c967 | 10544 | rm -fr conftest* |
8168de4c | 10545 | fi |
703e0a69 | 10546 | |
21d1c967 GD |
10547 | fi |
10548 | fi | |
698dcdb6 | 10549 | |
21d1c967 GD |
10550 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
10551 | if test $ac_cv_c_bigendian = unknown; then | |
10552 | 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 | |
10553 | fi | |
10554 | if test $ac_cv_c_bigendian = yes; then | |
10555 | cat >> confdefs.h <<\EOF | |
10556 | #define WORDS_BIGENDIAN 1 | |
10557 | EOF | |
10558 | ||
10559 | fi | |
10560 | ||
10561 | ||
10562 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
986ecc86 | 10563 | echo "configure:10564: checking how to run the C++ preprocessor" >&5 |
21d1c967 GD |
10564 | if test -z "$CXXCPP"; then |
10565 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 | 10566 | echo $ac_n "(cached) $ac_c" 1>&6 |
7ec2881a | 10567 | else |
21d1c967 GD |
10568 | ac_ext=C |
10569 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10570 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10571 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10572 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10573 | cross_compiling=$ac_cv_prog_cxx_cross | |
10574 | CXXCPP="${CXX-g++} -E" | |
10575 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10576 | #line 10577 "configure" |
7ec2881a | 10577 | #include "confdefs.h" |
21d1c967 | 10578 | #include <stdlib.h> |
698dcdb6 | 10579 | EOF |
21d1c967 | 10580 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 10581 | { (eval echo configure:10582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
10582 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10583 | if test -z "$ac_err"; then | |
10584 | : | |
698dcdb6 | 10585 | else |
21d1c967 | 10586 | echo "$ac_err" >&5 |
698dcdb6 VZ |
10587 | echo "configure: failed program was:" >&5 |
10588 | cat conftest.$ac_ext >&5 | |
10589 | rm -rf conftest* | |
21d1c967 | 10590 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
10591 | fi |
10592 | rm -f conftest* | |
21d1c967 GD |
10593 | ac_cv_prog_CXXCPP="$CXXCPP" |
10594 | ac_ext=C | |
10595 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10596 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10597 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10598 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10599 | cross_compiling=$ac_cv_prog_cxx_cross | |
7ec2881a | 10600 | fi |
90dd450c | 10601 | fi |
21d1c967 GD |
10602 | CXXCPP="$ac_cv_prog_CXXCPP" |
10603 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10604 | |
1725144d | 10605 | |
21d1c967 | 10606 | if test "$cross_compiling" = "yes"; then |
90dd450c | 10607 | cat >> confdefs.h <<\EOF |
21d1c967 | 10608 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10609 | EOF |
ab9b9eab | 10610 | |
21d1c967 GD |
10611 | else |
10612 | ||
10613 | ac_ext=C | |
10614 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10615 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10616 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10617 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10618 | cross_compiling=$ac_cv_prog_cxx_cross | |
10619 | ||
ba337fe7 | 10620 | |
21d1c967 GD |
10621 | for ac_hdr in iostream |
10622 | do | |
10623 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10624 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 10625 | echo "configure:10626: checking for $ac_hdr" >&5 |
90dd450c | 10626 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10627 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10628 | else |
90dd450c | 10629 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10630 | #line 10631 "configure" |
ab9b9eab | 10631 | #include "confdefs.h" |
21d1c967 | 10632 | #include <$ac_hdr> |
698dcdb6 VZ |
10633 | EOF |
10634 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 10635 | { (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10636 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10637 | if test -z "$ac_err"; then | |
10638 | rm -rf conftest* | |
90dd450c | 10639 | eval "ac_cv_header_$ac_safe=yes" |
ab9b9eab | 10640 | else |
698dcdb6 VZ |
10641 | echo "$ac_err" >&5 |
10642 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10643 | cat conftest.$ac_ext >&5 |
698dcdb6 | 10644 | rm -rf conftest* |
90dd450c | 10645 | eval "ac_cv_header_$ac_safe=no" |
ab9b9eab | 10646 | fi |
698dcdb6 | 10647 | rm -f conftest* |
90dd450c VZ |
10648 | fi |
10649 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10650 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
10651 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
10652 | cat >> confdefs.h <<EOF | |
10653 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10654 | EOF |
21d1c967 | 10655 | |
ab9b9eab | 10656 | else |
90dd450c VZ |
10657 | echo "$ac_t""no" 1>&6 |
10658 | fi | |
21d1c967 | 10659 | done |
10f2d63a | 10660 | |
10f2d63a | 10661 | |
21d1c967 GD |
10662 | if test "$ac_cv_header_iostream" = "yes" ; then |
10663 | : | |
10664 | else | |
10665 | cat >> confdefs.h <<\EOF | |
10666 | #define wxUSE_IOSTREAMH 1 | |
10667 | EOF | |
788deba1 | 10668 | |
90dd450c | 10669 | fi |
ab9b9eab | 10670 | |
21d1c967 GD |
10671 | ac_ext=c |
10672 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10673 | ac_cpp='$CPP $CPPFLAGS' | |
10674 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10675 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10676 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10677 | |
21d1c967 | 10678 | fi |
ab9b9eab | 10679 | |
21d1c967 GD |
10680 | |
10681 | ||
10682 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
986ecc86 | 10683 | echo "configure:10684: checking if C++ compiler supports bool" >&5 |
21d1c967 | 10684 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 | 10685 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10686 | else |
21d1c967 GD |
10687 | |
10688 | ||
10689 | ac_ext=C | |
10690 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10692 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10693 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10694 | cross_compiling=$ac_cv_prog_cxx_cross | |
10695 | ||
10696 | ||
10697 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 10698 | #line 10699 "configure" |
ab9b9eab | 10699 | #include "confdefs.h" |
21d1c967 GD |
10700 | |
10701 | ||
10702 | int main() { | |
10703 | ||
10704 | bool b = true; | |
10705 | ||
10706 | return 0; | |
10707 | ||
10708 | ; return 0; } | |
698dcdb6 | 10709 | EOF |
986ecc86 | 10710 | if { (eval echo configure:10711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10711 | rm -rf conftest* |
21d1c967 GD |
10712 | |
10713 | wx_cv_cpp_bool=yes | |
10714 | ||
698dcdb6 VZ |
10715 | else |
10716 | echo "configure: failed program was:" >&5 | |
10717 | cat conftest.$ac_ext >&5 | |
10718 | rm -rf conftest* | |
21d1c967 GD |
10719 | |
10720 | wx_cv_cpp_bool=no | |
10721 | ||
10722 | ||
698dcdb6 VZ |
10723 | fi |
10724 | rm -f conftest* | |
21d1c967 GD |
10725 | |
10726 | ac_ext=c | |
10727 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10728 | ac_cpp='$CPP $CPPFLAGS' | |
10729 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10730 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10731 | cross_compiling=$ac_cv_prog_cc_cross | |
10732 | ||
10733 | ||
698dcdb6 | 10734 | fi |
21d1c967 GD |
10735 | |
10736 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10737 | ||
10738 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10739 | cat >> confdefs.h <<\EOF | |
10740 | #define HAVE_BOOL 1 | |
90dd450c | 10741 | EOF |
ab9b9eab | 10742 | |
21d1c967 GD |
10743 | fi |
10744 | ||
10745 | ||
10746 | ||
986ecc86 VZ |
10747 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
10748 | echo "configure:10749: checking if C++ compiler supports the explicit keyword" >&5 | |
10749 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then | |
10750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10751 | else | |
10752 | ||
10753 | ||
10754 | ac_ext=C | |
10755 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10756 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10757 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10758 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10759 | cross_compiling=$ac_cv_prog_cxx_cross | |
10760 | ||
10761 | ||
10762 | cat > conftest.$ac_ext <<EOF | |
10763 | #line 10764 "configure" | |
10764 | #include "confdefs.h" | |
10765 | ||
10766 | class Foo { public: explicit Foo(int) {} }; | |
10767 | ||
10768 | int main() { | |
10769 | ||
10770 | return 0; | |
10771 | ||
10772 | ; return 0; } | |
10773 | EOF | |
10774 | if { (eval echo configure:10775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10775 | rm -rf conftest* | |
10776 | ||
10777 | cat > conftest.$ac_ext <<EOF | |
10778 | #line 10779 "configure" | |
10779 | #include "confdefs.h" | |
10780 | ||
10781 | class Foo { public: explicit Foo(int) {} }; | |
10782 | static void TakeFoo(const Foo& foo) { } | |
10783 | ||
10784 | int main() { | |
10785 | ||
10786 | TakeFoo(17); | |
10787 | return 0; | |
10788 | ||
10789 | ; return 0; } | |
10790 | EOF | |
10791 | if { (eval echo configure:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10792 | rm -rf conftest* | |
10793 | wx_cv_explicit=no | |
10794 | else | |
10795 | echo "configure: failed program was:" >&5 | |
10796 | cat conftest.$ac_ext >&5 | |
10797 | rm -rf conftest* | |
10798 | wx_cv_explicit=yes | |
10799 | ||
10800 | fi | |
10801 | rm -f conftest* | |
10802 | ||
10803 | else | |
10804 | echo "configure: failed program was:" >&5 | |
10805 | cat conftest.$ac_ext >&5 | |
10806 | rm -rf conftest* | |
10807 | wx_cv_explicit=no | |
10808 | ||
10809 | fi | |
10810 | rm -f conftest* | |
10811 | ||
10812 | ac_ext=c | |
10813 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10814 | ac_cpp='$CPP $CPPFLAGS' | |
10815 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10816 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10817 | cross_compiling=$ac_cv_prog_cc_cross | |
10818 | ||
10819 | ||
10820 | fi | |
10821 | ||
10822 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
10823 | ||
10824 | if test "$wx_cv_explicit" = "yes"; then | |
10825 | cat >> confdefs.h <<\EOF | |
10826 | #define HAVE_EXPLICIT 1 | |
10827 | EOF | |
10828 | ||
10829 | fi | |
10830 | ||
10831 | ||
10832 | ||
21d1c967 GD |
10833 | SEARCH_INCLUDE="\ |
10834 | /usr/local/include \ | |
10835 | \ | |
10836 | /usr/Motif-1.2/include \ | |
10837 | /usr/Motif-2.1/include \ | |
10838 | \ | |
10839 | /usr/include/Motif1.2 \ | |
10840 | /opt/xpm/include/X11 \ | |
10841 | /opt/GBxpm/include/ \ | |
10842 | /opt/GBxpm/X11/include/ \ | |
10843 | \ | |
10844 | /usr/Motif1.2/include \ | |
10845 | /usr/dt/include \ | |
10846 | /usr/openwin/include \ | |
10847 | \ | |
10848 | /usr/include/Xm \ | |
10849 | \ | |
10850 | /usr/X11R6/include \ | |
10851 | /usr/X11R6.4/include \ | |
10852 | /usr/X11R5/include \ | |
10853 | /usr/X11R4/include \ | |
10854 | \ | |
10855 | /usr/include/X11R6 \ | |
10856 | /usr/include/X11R5 \ | |
10857 | /usr/include/X11R4 \ | |
10858 | \ | |
10859 | /usr/local/X11R6/include \ | |
10860 | /usr/local/X11R5/include \ | |
10861 | /usr/local/X11R4/include \ | |
10862 | \ | |
10863 | /usr/local/include/X11R6 \ | |
10864 | /usr/local/include/X11R5 \ | |
10865 | /usr/local/include/X11R4 \ | |
10866 | \ | |
10867 | /usr/X11/include \ | |
10868 | /usr/include/X11 \ | |
10869 | /usr/local/X11/include \ | |
10870 | /usr/local/include/X11 \ | |
10871 | \ | |
10872 | /usr/X386/include \ | |
10873 | /usr/x386/include \ | |
10874 | /usr/XFree86/include/X11 \ | |
10875 | \ | |
10876 | X:/XFree86/include \ | |
10877 | X:/XFree86/include/X11 \ | |
10878 | \ | |
10879 | /usr/include/gtk \ | |
10880 | /usr/local/include/gtk \ | |
10881 | /usr/include/glib \ | |
10882 | /usr/local/include/glib \ | |
10883 | \ | |
10884 | /usr/include/qt \ | |
10885 | /usr/local/include/qt \ | |
10886 | \ | |
10887 | /usr/include/windows \ | |
10888 | /usr/include/wine \ | |
10889 | /usr/local/include/wine \ | |
10890 | \ | |
10891 | /usr/unsupported/include \ | |
10892 | /usr/athena/include \ | |
10893 | /usr/local/x11r5/include \ | |
10894 | /usr/lpp/Xamples/include \ | |
10895 | \ | |
10896 | /usr/openwin/share/include \ | |
10897 | \ | |
10898 | /usr/include" | |
10899 | ||
10900 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10901 | ||
10902 | ||
10903 | cat > confcache <<\EOF | |
10904 | # This file is a shell script that caches the results of configure | |
10905 | # tests run on this system so they can be shared between configure | |
10906 | # scripts and configure runs. It is not useful on other systems. | |
10907 | # If it contains results you don't want to keep, you may remove or edit it. | |
10908 | # | |
10909 | # By default, configure uses ./config.cache as the cache file, | |
10910 | # creating it if it does not exist already. You can give configure | |
10911 | # the --cache-file=FILE option to use a different cache file; that is | |
10912 | # what configure does when it calls configure scripts in | |
10913 | # subdirectories, so they share the cache. | |
10914 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10915 | # config.status only pays attention to the cache file if you give it the | |
10916 | # --recheck option to rerun configure. | |
10917 | # | |
698dcdb6 | 10918 | EOF |
21d1c967 GD |
10919 | # The following way of writing the cache mishandles newlines in values, |
10920 | # but we know of no workaround that is simple, portable, and efficient. | |
10921 | # So, don't put newlines in cache variables' values. | |
10922 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10923 | # and sets the high bit in the cache file unless we assign to the vars. | |
10924 | (set) 2>&1 | | |
10925 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10926 | *ac_space=\ *) | |
10927 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10928 | # turns \\\\ into \\, and sed turns \\ into \). | |
10929 | sed -n \ | |
10930 | -e "s/'/'\\\\''/g" \ | |
10931 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10932 | ;; | |
10933 | *) | |
10934 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10935 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10936 | ;; | |
10937 | esac >> confcache | |
10938 | if cmp -s $cache_file confcache; then | |
90dd450c | 10939 | : |
698dcdb6 | 10940 | else |
21d1c967 GD |
10941 | if test -w $cache_file; then |
10942 | echo "updating cache $cache_file" | |
10943 | cat confcache > $cache_file | |
10944 | else | |
10945 | echo "not updating unwritable cache $cache_file" | |
10946 | fi | |
ab9b9eab | 10947 | fi |
21d1c967 | 10948 | rm -f confcache |
ab9b9eab | 10949 | |
ab9b9eab | 10950 | |
21d1c967 GD |
10951 | if test "$USE_LINUX" = 1; then |
10952 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
986ecc86 | 10953 | echo "configure:10954: checking for glibc 2.1 or later" >&5 |
21d1c967 | 10954 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
698dcdb6 VZ |
10955 | echo $ac_n "(cached) $ac_c" 1>&6 |
10956 | else | |
90dd450c | 10957 | |
21d1c967 | 10958 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 10959 | #line 10960 "configure" |
ab9b9eab | 10960 | #include "confdefs.h" |
21d1c967 | 10961 | #include <features.h> |
698dcdb6 | 10962 | int main() { |
ab9b9eab | 10963 | |
21d1c967 GD |
10964 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
10965 | #error not glibc2.1 | |
10966 | #endif | |
10967 | ||
698dcdb6 VZ |
10968 | ; return 0; } |
10969 | EOF | |
986ecc86 | 10970 | if { (eval echo configure:10971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10971 | rm -rf conftest* |
90dd450c | 10972 | |
21d1c967 GD |
10973 | wx_cv_lib_glibc21=yes |
10974 | ||
698dcdb6 VZ |
10975 | else |
10976 | echo "configure: failed program was:" >&5 | |
10977 | cat conftest.$ac_ext >&5 | |
10978 | rm -rf conftest* | |
90dd450c | 10979 | |
21d1c967 GD |
10980 | wx_cv_lib_glibc21=no |
10981 | ||
10982 | ||
698dcdb6 VZ |
10983 | fi |
10984 | rm -f conftest* | |
90dd450c | 10985 | |
698dcdb6 VZ |
10986 | fi |
10987 | ||
21d1c967 GD |
10988 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
10989 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
10990 | cat >> confdefs.h <<\EOF | |
10991 | #define wxHAVE_GLIBC2 1 | |
10992 | EOF | |
1e487827 | 10993 | |
90dd450c | 10994 | fi |
ab9b9eab VZ |
10995 | fi |
10996 | ||
ab9b9eab | 10997 | |
ab9b9eab | 10998 | |
21d1c967 GD |
10999 | REGEX_INCLUDE= |
11000 | if test "$wxUSE_REGEX" != "no"; then | |
11001 | cat >> confdefs.h <<\EOF | |
11002 | #define wxUSE_REGEX 1 | |
11003 | EOF | |
698dcdb6 | 11004 | |
ab9b9eab | 11005 | |
21d1c967 GD |
11006 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
11007 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
11008 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
986ecc86 | 11009 | echo "configure:11010: checking for regex.h" >&5 |
21d1c967 | 11010 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 11011 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11012 | else |
21d1c967 | 11013 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11014 | #line 11015 "configure" |
21d1c967 GD |
11015 | #include "confdefs.h" |
11016 | #include <regex.h> | |
11017 | EOF | |
11018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 11019 | { (eval echo configure:11020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11021 | if test -z "$ac_err"; then | |
11022 | rm -rf conftest* | |
11023 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11024 | else |
21d1c967 GD |
11025 | echo "$ac_err" >&5 |
11026 | echo "configure: failed program was:" >&5 | |
11027 | cat conftest.$ac_ext >&5 | |
11028 | rm -rf conftest* | |
11029 | eval "ac_cv_header_$ac_safe=no" | |
11030 | fi | |
11031 | rm -f conftest* | |
698dcdb6 | 11032 | fi |
21d1c967 GD |
11033 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11034 | echo "$ac_t""yes" 1>&6 | |
11035 | for ac_func in regcomp | |
11036 | do | |
11037 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 11038 | echo "configure:11039: checking for $ac_func" >&5 |
21d1c967 GD |
11039 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11041 | else | |
11042 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11043 | #line 11044 "configure" |
21d1c967 GD |
11044 | #include "confdefs.h" |
11045 | /* System header to define __stub macros and hopefully few prototypes, | |
11046 | which can conflict with char $ac_func(); below. */ | |
11047 | #include <assert.h> | |
11048 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11049 | /* We use char because int might match the return type of a gcc2 | |
11050 | builtin and then its argument prototype would still apply. */ | |
11051 | char $ac_func(); | |
698dcdb6 | 11052 | |
21d1c967 | 11053 | int main() { |
90dd450c | 11054 | |
21d1c967 GD |
11055 | /* The GNU C library defines this for functions which it implements |
11056 | to always fail with ENOSYS. Some functions are actually named | |
11057 | something starting with __ and the normal name is an alias. */ | |
11058 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11059 | choke me | |
11060 | #else | |
11061 | $ac_func(); | |
11062 | #endif | |
90dd450c | 11063 | |
21d1c967 GD |
11064 | ; return 0; } |
11065 | EOF | |
986ecc86 | 11066 | if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
11067 | rm -rf conftest* |
11068 | eval "ac_cv_func_$ac_func=yes" | |
11069 | else | |
11070 | echo "configure: failed program was:" >&5 | |
11071 | cat conftest.$ac_ext >&5 | |
11072 | rm -rf conftest* | |
11073 | eval "ac_cv_func_$ac_func=no" | |
11074 | fi | |
11075 | rm -f conftest* | |
11076 | fi | |
90dd450c | 11077 | |
21d1c967 GD |
11078 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11079 | echo "$ac_t""yes" 1>&6 | |
11080 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11081 | cat >> confdefs.h <<EOF | |
11082 | #define $ac_tr_func 1 | |
11083 | EOF | |
11084 | ||
90dd450c | 11085 | else |
21d1c967 | 11086 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11087 | fi |
21d1c967 GD |
11088 | done |
11089 | ||
698dcdb6 VZ |
11090 | else |
11091 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11092 | fi |
11093 | ||
90dd450c | 11094 | |
21d1c967 GD |
11095 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11096 | if test "$wxUSE_REGEX" = "sys" ; then | |
11097 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11098 | else | |
11099 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11100 | wxUSE_REGEX=builtin | |
11101 | fi | |
11102 | else | |
11103 | wxUSE_REGEX=sys | |
11104 | fi | |
ab9b9eab | 11105 | fi |
90dd450c | 11106 | |
21d1c967 GD |
11107 | if test "$wxUSE_REGEX" = "builtin" ; then |
11108 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11109 | fi |
21d1c967 | 11110 | fi |
90dd450c | 11111 | |
90dd450c | 11112 | |
21d1c967 GD |
11113 | ZLIB_INCLUDE= |
11114 | ZLIB_LINK= | |
11115 | if test "$wxUSE_ZLIB" != "no" ; then | |
11116 | cat >> confdefs.h <<\EOF | |
11117 | #define wxUSE_ZLIB 1 | |
11118 | EOF | |
11119 | ||
11120 | ||
11121 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11122 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11123 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
986ecc86 | 11124 | echo "configure:11125: checking for zlib.h" >&5 |
21d1c967 GD |
11125 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11127 | else |
698dcdb6 | 11128 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11129 | #line 11130 "configure" |
ab9b9eab | 11130 | #include "confdefs.h" |
21d1c967 | 11131 | #include <zlib.h> |
698dcdb6 | 11132 | EOF |
21d1c967 | 11133 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 11134 | { (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11135 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11136 | if test -z "$ac_err"; then | |
11137 | rm -rf conftest* | |
11138 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11139 | else |
21d1c967 | 11140 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11141 | echo "configure: failed program was:" >&5 |
11142 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11143 | rm -rf conftest* |
11144 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11145 | fi |
21d1c967 | 11146 | rm -f conftest* |
ab9b9eab | 11147 | fi |
21d1c967 GD |
11148 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11149 | echo "$ac_t""yes" 1>&6 | |
11150 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
986ecc86 | 11151 | echo "configure:11152: checking for deflate in -lz" >&5 |
21d1c967 GD |
11152 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11153 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11155 | else | |
11156 | ac_save_LIBS="$LIBS" | |
11157 | LIBS="-lz $LIBS" | |
11158 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11159 | #line 11160 "configure" |
ab9b9eab | 11160 | #include "confdefs.h" |
21d1c967 GD |
11161 | /* Override any gcc2 internal prototype to avoid an error. */ |
11162 | /* We use char because int might match the return type of a gcc2 | |
11163 | builtin and then its argument prototype would still apply. */ | |
11164 | char deflate(); | |
ab9b9eab | 11165 | |
90dd450c | 11166 | int main() { |
21d1c967 | 11167 | deflate() |
698dcdb6 VZ |
11168 | ; return 0; } |
11169 | EOF | |
986ecc86 | 11170 | if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11171 | rm -rf conftest* |
21d1c967 | 11172 | eval "ac_cv_lib_$ac_lib_var=yes" |
698dcdb6 VZ |
11173 | else |
11174 | echo "configure: failed program was:" >&5 | |
11175 | cat conftest.$ac_ext >&5 | |
11176 | rm -rf conftest* | |
21d1c967 | 11177 | eval "ac_cv_lib_$ac_lib_var=no" |
698dcdb6 VZ |
11178 | fi |
11179 | rm -f conftest* | |
21d1c967 | 11180 | LIBS="$ac_save_LIBS" |
ab9b9eab | 11181 | |
21d1c967 GD |
11182 | fi |
11183 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11184 | echo "$ac_t""yes" 1>&6 | |
11185 | ZLIB_LINK=" -lz" | |
ab9b9eab | 11186 | else |
21d1c967 | 11187 | echo "$ac_t""no" 1>&6 |
90dd450c | 11188 | fi |
698dcdb6 | 11189 | |
698dcdb6 | 11190 | else |
21d1c967 | 11191 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11192 | fi |
698dcdb6 | 11193 | |
21d1c967 GD |
11194 | |
11195 | if test "x$ZLIB_LINK" = "x" ; then | |
11196 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11197 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11198 | else | |
11199 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
11200 | wxUSE_ZLIB=builtin | |
11201 | fi | |
11202 | else | |
11203 | wxUSE_ZLIB=sys | |
11204 | fi | |
11205 | fi | |
11206 | ||
11207 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11208 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11209 | fi | |
ab9b9eab VZ |
11210 | fi |
11211 | ||
ab9b9eab | 11212 | |
21d1c967 GD |
11213 | PNG_INCLUDE= |
11214 | PNG_LINK= | |
11215 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11216 | cat >> confdefs.h <<\EOF | |
11217 | #define wxUSE_LIBPNG 1 | |
11218 | EOF | |
90dd450c | 11219 | |
21d1c967 GD |
11220 | |
11221 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
11222 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11223 | wxUSE_LIBPNG=sys | |
11224 | fi | |
90dd450c | 11225 | |
21d1c967 GD |
11226 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
11227 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11228 | wxUSE_LIBPNG=builtin | |
11229 | fi | |
11230 | ||
11231 | if test "$wxUSE_MGL" != 1 ; then | |
11232 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11233 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11234 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
986ecc86 | 11235 | echo "configure:11236: checking for png.h" >&5 |
21d1c967 | 11236 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c VZ |
11237 | echo $ac_n "(cached) $ac_c" 1>&6 |
11238 | else | |
21d1c967 | 11239 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11240 | #line 11241 "configure" |
21d1c967 GD |
11241 | #include "confdefs.h" |
11242 | #include <png.h> | |
11243 | EOF | |
11244 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 11245 | { (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11246 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11247 | if test -z "$ac_err"; then | |
11248 | rm -rf conftest* | |
11249 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11250 | else |
21d1c967 | 11251 | echo "$ac_err" >&5 |
90dd450c VZ |
11252 | echo "configure: failed program was:" >&5 |
11253 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11254 | rm -rf conftest* |
11255 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11256 | fi |
21d1c967 | 11257 | rm -f conftest* |
90dd450c | 11258 | fi |
21d1c967 GD |
11259 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11260 | echo "$ac_t""yes" 1>&6 | |
11261 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
986ecc86 | 11262 | echo "configure:11263: checking for png_check_sig in -lpng" >&5 |
21d1c967 GD |
11263 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11264 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11266 | else | |
11267 | ac_save_LIBS="$LIBS" | |
11268 | LIBS="-lpng -lz -lm $LIBS" | |
11269 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11270 | #line 11271 "configure" |
90dd450c | 11271 | #include "confdefs.h" |
21d1c967 GD |
11272 | /* Override any gcc2 internal prototype to avoid an error. */ |
11273 | /* We use char because int might match the return type of a gcc2 | |
11274 | builtin and then its argument prototype would still apply. */ | |
11275 | char png_check_sig(); | |
90dd450c VZ |
11276 | |
11277 | int main() { | |
21d1c967 | 11278 | png_check_sig() |
90dd450c VZ |
11279 | ; return 0; } |
11280 | EOF | |
986ecc86 | 11281 | if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11282 | rm -rf conftest* |
21d1c967 | 11283 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11284 | else |
11285 | echo "configure: failed program was:" >&5 | |
11286 | cat conftest.$ac_ext >&5 | |
11287 | rm -rf conftest* | |
21d1c967 | 11288 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11289 | fi |
11290 | rm -f conftest* | |
21d1c967 | 11291 | LIBS="$ac_save_LIBS" |
90dd450c | 11292 | |
90dd450c | 11293 | fi |
21d1c967 GD |
11294 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11295 | echo "$ac_t""yes" 1>&6 | |
11296 | PNG_LINK=" -lpng" | |
90dd450c | 11297 | else |
21d1c967 | 11298 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11299 | fi |
11300 | ||
21d1c967 | 11301 | |
90dd450c | 11302 | else |
21d1c967 | 11303 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11304 | fi |
11305 | ||
11306 | ||
21d1c967 GD |
11307 | if test "x$PNG_LINK" = "x" ; then |
11308 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
11309 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
11310 | else | |
11311 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
11312 | wxUSE_LIBPNG=builtin | |
11313 | fi | |
11314 | else | |
11315 | wxUSE_LIBPNG=yes | |
11316 | fi | |
11317 | fi | |
11318 | fi | |
90dd450c | 11319 | |
21d1c967 GD |
11320 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11321 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11322 | fi | |
90dd450c | 11323 | |
21d1c967 | 11324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11325 | fi |
11326 | ||
90dd450c | 11327 | |
21d1c967 GD |
11328 | JPEG_INCLUDE= |
11329 | JPEG_LINK= | |
11330 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
11331 | cat >> confdefs.h <<\EOF | |
11332 | #define wxUSE_LIBJPEG 1 | |
11333 | EOF | |
90dd450c | 11334 | |
90dd450c | 11335 | |
21d1c967 GD |
11336 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
11337 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
11338 | wxUSE_LIBJPEG=sys | |
11339 | fi | |
90dd450c | 11340 | |
21d1c967 GD |
11341 | if test "$wxUSE_MGL" != 1 ; then |
11342 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
11343 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
986ecc86 | 11344 | echo "configure:11345: checking for jpeglib.h" >&5 |
21d1c967 GD |
11345 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11347 | else | |
11348 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11349 | #line 11350 "configure" |
21d1c967 | 11350 | #include "confdefs.h" |
90dd450c | 11351 | |
21d1c967 GD |
11352 | #undef HAVE_STDLIB_H |
11353 | #include <stdio.h> | |
11354 | #include <jpeglib.h> | |
11355 | ||
11356 | int main() { | |
90dd450c | 11357 | |
21d1c967 GD |
11358 | |
11359 | ; return 0; } | |
90dd450c | 11360 | EOF |
986ecc86 | 11361 | if { (eval echo configure:11362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
11362 | rm -rf conftest* |
11363 | ac_cv_header_jpeglib_h=yes | |
90dd450c VZ |
11364 | else |
11365 | echo "configure: failed program was:" >&5 | |
11366 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11367 | rm -rf conftest* |
11368 | ac_cv_header_jpeglib_h=no | |
11369 | ||
90dd450c | 11370 | fi |
21d1c967 GD |
11371 | rm -f conftest* |
11372 | ||
90dd450c VZ |
11373 | fi |
11374 | ||
21d1c967 | 11375 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11376 | |
21d1c967 GD |
11377 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
11378 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
986ecc86 | 11379 | echo "configure:11380: checking for jpeg_read_header in -ljpeg" >&5 |
21d1c967 GD |
11380 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11381 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11383 | else | |
11384 | ac_save_LIBS="$LIBS" | |
11385 | LIBS="-ljpeg $LIBS" | |
11386 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11387 | #line 11388 "configure" |
21d1c967 GD |
11388 | #include "confdefs.h" |
11389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11390 | /* We use char because int might match the return type of a gcc2 | |
11391 | builtin and then its argument prototype would still apply. */ | |
11392 | char jpeg_read_header(); | |
90dd450c VZ |
11393 | |
11394 | int main() { | |
21d1c967 | 11395 | jpeg_read_header() |
90dd450c VZ |
11396 | ; return 0; } |
11397 | EOF | |
986ecc86 | 11398 | if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11399 | rm -rf conftest* |
21d1c967 | 11400 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11401 | else |
11402 | echo "configure: failed program was:" >&5 | |
11403 | cat conftest.$ac_ext >&5 | |
11404 | rm -rf conftest* | |
21d1c967 | 11405 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11406 | fi |
11407 | rm -f conftest* | |
21d1c967 | 11408 | LIBS="$ac_save_LIBS" |
90dd450c | 11409 | |
21d1c967 GD |
11410 | fi |
11411 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11412 | echo "$ac_t""yes" 1>&6 | |
11413 | JPEG_LINK=" -ljpeg" | |
11414 | else | |
11415 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11416 | fi |
11417 | ||
21d1c967 | 11418 | fi |
90dd450c | 11419 | |
21d1c967 GD |
11420 | if test "x$JPEG_LINK" = "x" ; then |
11421 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
11422 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
11423 | else | |
11424 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
11425 | wxUSE_LIBJPEG=builtin | |
11426 | fi | |
11427 | else | |
11428 | wxUSE_LIBJPEG=sys | |
11429 | fi | |
11430 | fi | |
11431 | fi | |
90dd450c | 11432 | |
21d1c967 GD |
11433 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11434 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11435 | fi | |
11436 | fi | |
90dd450c | 11437 | |
90dd450c | 11438 | |
21d1c967 GD |
11439 | TIFF_INCLUDE= |
11440 | TIFF_LINK= | |
11441 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
11442 | cat >> confdefs.h <<\EOF | |
11443 | #define wxUSE_LIBTIFF 1 | |
11444 | EOF | |
11445 | ||
11446 | ||
11447 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
11448 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11449 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
986ecc86 | 11450 | echo "configure:11451: checking for tiffio.h" >&5 |
21d1c967 GD |
11451 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11453 | else | |
11454 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11455 | #line 11456 "configure" |
21d1c967 GD |
11456 | #include "confdefs.h" |
11457 | #include <tiffio.h> | |
11458 | EOF | |
11459 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 11460 | { (eval echo configure:11461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11461 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11462 | if test -z "$ac_err"; then | |
11463 | rm -rf conftest* | |
11464 | eval "ac_cv_header_$ac_safe=yes" | |
11465 | else | |
11466 | echo "$ac_err" >&5 | |
11467 | echo "configure: failed program was:" >&5 | |
11468 | cat conftest.$ac_ext >&5 | |
11469 | rm -rf conftest* | |
11470 | eval "ac_cv_header_$ac_safe=no" | |
11471 | fi | |
11472 | rm -f conftest* | |
11473 | fi | |
11474 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11475 | echo "$ac_t""yes" 1>&6 | |
11476 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
986ecc86 | 11477 | echo "configure:11478: checking for TIFFError in -ltiff" >&5 |
21d1c967 | 11478 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
11479 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11481 | else | |
11482 | ac_save_LIBS="$LIBS" | |
21d1c967 | 11483 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 11484 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11485 | #line 11486 "configure" |
ab9b9eab VZ |
11486 | #include "confdefs.h" |
11487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11488 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 11489 | builtin and then its argument prototype would still apply. */ |
21d1c967 | 11490 | char TIFFError(); |
698dcdb6 VZ |
11491 | |
11492 | int main() { | |
21d1c967 | 11493 | TIFFError() |
698dcdb6 VZ |
11494 | ; return 0; } |
11495 | EOF | |
986ecc86 | 11496 | if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11497 | rm -rf conftest* |
11498 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11499 | else | |
11500 | echo "configure: failed program was:" >&5 | |
11501 | cat conftest.$ac_ext >&5 | |
11502 | rm -rf conftest* | |
11503 | eval "ac_cv_lib_$ac_lib_var=no" | |
11504 | fi | |
11505 | rm -f conftest* | |
11506 | LIBS="$ac_save_LIBS" | |
11507 | ||
11508 | fi | |
11509 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11510 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11511 | TIFF_LINK=" -ltiff" |
698dcdb6 VZ |
11512 | else |
11513 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11514 | fi |
11515 | ||
21d1c967 GD |
11516 | |
11517 | else | |
11518 | echo "$ac_t""no" 1>&6 | |
11519 | fi | |
cd6d6d5b | 11520 | |
c79a329d | 11521 | |
21d1c967 GD |
11522 | if test "x$TIFF_LINK" = "x" ; then |
11523 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
11524 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
90dd450c | 11525 | else |
21d1c967 GD |
11526 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
11527 | wxUSE_LIBTIFF=builtin | |
d8356fa3 | 11528 | fi |
d8356fa3 | 11529 | else |
21d1c967 | 11530 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11531 | fi |
21d1c967 | 11532 | fi |
d8356fa3 | 11533 | |
21d1c967 GD |
11534 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11535 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11536 | fi |
21d1c967 | 11537 | fi |
10f2d63a | 11538 | |
90dd450c | 11539 | |
21d1c967 | 11540 | AFMINSTALL= |
90dd450c | 11541 | |
21d1c967 GD |
11542 | TOOLKIT= |
11543 | TOOLKIT_INCLUDE= | |
11544 | WIDGET_SET= | |
11545 | ||
11546 | if test "$USE_WIN32" = 1 ; then | |
11547 | for ac_hdr in w32api.h | |
11548 | do | |
11549 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11550 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 11551 | echo "configure:11552: checking for $ac_hdr" >&5 |
21d1c967 | 11552 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
f79bd02d JS |
11553 | echo $ac_n "(cached) $ac_c" 1>&6 |
11554 | else | |
21d1c967 | 11555 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11556 | #line 11557 "configure" |
f79bd02d | 11557 | #include "confdefs.h" |
21d1c967 | 11558 | #include <$ac_hdr> |
f79bd02d JS |
11559 | EOF |
11560 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 11561 | { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
11562 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11563 | if test -z "$ac_err"; then | |
11564 | rm -rf conftest* | |
21d1c967 | 11565 | eval "ac_cv_header_$ac_safe=yes" |
f79bd02d JS |
11566 | else |
11567 | echo "$ac_err" >&5 | |
11568 | echo "configure: failed program was:" >&5 | |
11569 | cat conftest.$ac_ext >&5 | |
11570 | rm -rf conftest* | |
21d1c967 | 11571 | eval "ac_cv_header_$ac_safe=no" |
f79bd02d JS |
11572 | fi |
11573 | rm -f conftest* | |
21d1c967 GD |
11574 | fi |
11575 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11576 | echo "$ac_t""yes" 1>&6 | |
11577 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11578 | cat >> confdefs.h <<EOF | |
11579 | #define $ac_tr_hdr 1 | |
11580 | EOF | |
11581 | ||
11582 | else | |
11583 | echo "$ac_t""no" 1>&6 | |
11584 | fi | |
11585 | done | |
f79bd02d | 11586 | |
21d1c967 GD |
11587 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11588 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
986ecc86 | 11589 | echo "configure:11590: checking for windows.h" >&5 |
21d1c967 GD |
11590 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11592 | else | |
11593 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11594 | #line 11595 "configure" |
90dd450c | 11595 | #include "confdefs.h" |
21d1c967 | 11596 | #include <windows.h> |
f79bd02d | 11597 | EOF |
21d1c967 | 11598 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 11599 | { (eval echo configure:11600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11600 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11601 | if test -z "$ac_err"; then | |
90dd450c | 11602 | rm -rf conftest* |
21d1c967 | 11603 | eval "ac_cv_header_$ac_safe=yes" |
90dd450c | 11604 | else |
21d1c967 | 11605 | echo "$ac_err" >&5 |
90dd450c VZ |
11606 | echo "configure: failed program was:" >&5 |
11607 | cat conftest.$ac_ext >&5 | |
11608 | rm -rf conftest* | |
21d1c967 | 11609 | eval "ac_cv_header_$ac_safe=no" |
90dd450c VZ |
11610 | fi |
11611 | rm -f conftest* | |
90dd450c | 11612 | fi |
21d1c967 GD |
11613 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11614 | echo "$ac_t""yes" 1>&6 | |
11615 | : | |
90dd450c | 11616 | else |
21d1c967 GD |
11617 | echo "$ac_t""no" 1>&6 |
11618 | ||
11619 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11620 | ||
90dd450c | 11621 | fi |
f79bd02d | 11622 | |
f79bd02d | 11623 | |
21d1c967 | 11624 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
986ecc86 | 11625 | echo "configure:11626: checking if w32api has good enough MSIE support" >&5 |
21d1c967 GD |
11626 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11628 | else |
21d1c967 | 11629 | |
f79bd02d | 11630 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11631 | #line 11632 "configure" |
f79bd02d | 11632 | #include "confdefs.h" |
21d1c967 | 11633 | #include <w32api.h> |
f79bd02d JS |
11634 | int main() { |
11635 | ||
21d1c967 GD |
11636 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11637 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11638 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11639 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11640 | ||
11641 | #if !wxCHECK_W32API_VERSION(1,1) | |
11642 | #error You need w32api 1.1 or newer | |
11643 | #endif | |
11644 | ||
f79bd02d JS |
11645 | ; return 0; } |
11646 | EOF | |
986ecc86 | 11647 | if { (eval echo configure:11648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d | 11648 | rm -rf conftest* |
21d1c967 GD |
11649 | |
11650 | wx_cv_w32api_win32_ie=yes | |
11651 | ||
f79bd02d JS |
11652 | else |
11653 | echo "configure: failed program was:" >&5 | |
11654 | cat conftest.$ac_ext >&5 | |
11655 | rm -rf conftest* | |
21d1c967 GD |
11656 | |
11657 | wx_cv_w32api_win32_ie=no | |
11658 | ||
f79bd02d JS |
11659 | fi |
11660 | rm -f conftest* | |
21d1c967 GD |
11661 | |
11662 | fi | |
f79bd02d | 11663 | |
21d1c967 GD |
11664 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
11665 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11666 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11667 | fi | |
f79bd02d | 11668 | |
21d1c967 GD |
11669 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11670 | ||
11671 | case "${host}" in | |
11672 | *-*-cygwin* ) | |
11673 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11674 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11675 | esac |
f79bd02d | 11676 | |
21d1c967 GD |
11677 | if test "$wxUSE_ODBC" = "yes" ; then |
11678 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11679 | fi | |
f79bd02d | 11680 | |
21d1c967 GD |
11681 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11682 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11683 | fi |
f79bd02d | 11684 | |
21d1c967 GD |
11685 | if test "$wxUSE_GUI" = "yes"; then |
11686 | USE_GUI=1 | |
f79bd02d | 11687 | |
21d1c967 | 11688 | GUI_TK_LIBRARY= |
f79bd02d | 11689 | |
21d1c967 GD |
11690 | WXGTK12= |
11691 | WXGTK127= | |
11692 | WXGTK20= | |
f79bd02d | 11693 | |
21d1c967 GD |
11694 | if test "$wxUSE_MSW" = 1 ; then |
11695 | TOOLKIT=MSW | |
11696 | GUIDIST=MSW_DIST | |
f79bd02d | 11697 | |
21d1c967 GD |
11698 | case "${host}" in |
11699 | *-*-mingw32* ) | |
11700 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11701 | esac | |
f79bd02d JS |
11702 | fi |
11703 | ||
21d1c967 GD |
11704 | if test "$wxUSE_GTK" = 1; then |
11705 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
986ecc86 | 11706 | echo "configure:11707: checking for GTK+ version" >&5 |
21d1c967 GD |
11707 | |
11708 | gtk_version_cached=1 | |
11709 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
f79bd02d JS |
11710 | echo $ac_n "(cached) $ac_c" 1>&6 |
11711 | else | |
21d1c967 GD |
11712 | |
11713 | gtk_version_cached=0 | |
11714 | echo "$ac_t""" 1>&6 | |
f79bd02d | 11715 | |
21d1c967 GD |
11716 | GTK_MODULES= |
11717 | if test "$wxUSE_THREADS" = "yes"; then | |
11718 | GTK_MODULES=gthread | |
11719 | fi | |
f79bd02d | 11720 | |
21d1c967 GD |
11721 | wx_cv_lib_gtk= |
11722 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11723 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11724 | if test "${enable_gtktest+set}" = set; then | |
11725 | enableval="$enable_gtktest" | |
f79bd02d JS |
11726 | : |
11727 | else | |
21d1c967 | 11728 | enable_gtktest=yes |
f79bd02d JS |
11729 | fi |
11730 | ||
f79bd02d | 11731 | |
21d1c967 GD |
11732 | pkg_config_args=gtk+-2.0 |
11733 | for module in . $GTK_MODULES | |
11734 | do | |
11735 | case "$module" in | |
11736 | gthread) | |
11737 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11738 | ;; | |
11739 | esac | |
11740 | done | |
11741 | ||
11742 | no_gtk="" | |
f79bd02d | 11743 | |
21d1c967 GD |
11744 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11745 | set dummy pkg-config; ac_word=$2 | |
11746 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 11747 | echo "configure:11748: checking for $ac_word" >&5 |
21d1c967 GD |
11748 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11750 | else | |
11751 | case "$PKG_CONFIG" in | |
11752 | /*) | |
11753 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11754 | ;; | |
11755 | ?:/*) | |
11756 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11757 | ;; | |
11758 | *) | |
11759 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11760 | ac_dummy="$PATH" | |
11761 | for ac_dir in $ac_dummy; do | |
11762 | test -z "$ac_dir" && ac_dir=. | |
11763 | if test -f $ac_dir/$ac_word; then | |
11764 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11765 | break | |
11766 | fi | |
11767 | done | |
11768 | IFS="$ac_save_ifs" | |
11769 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11770 | ;; | |
11771 | esac | |
f79bd02d | 11772 | fi |
21d1c967 GD |
11773 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11774 | if test -n "$PKG_CONFIG"; then | |
11775 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
f79bd02d JS |
11776 | else |
11777 | echo "$ac_t""no" 1>&6 | |
11778 | fi | |
11779 | ||
f79bd02d | 11780 | |
21d1c967 GD |
11781 | if test x$PKG_CONFIG != xno ; then |
11782 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11783 | : | |
11784 | else | |
11785 | echo *** pkg-config too old; version 0.7 or better required. | |
11786 | no_gtk=yes | |
11787 | PKG_CONFIG=no | |
11788 | fi | |
11789 | else | |
11790 | no_gtk=yes | |
11791 | fi | |
f79bd02d | 11792 | |
21d1c967 GD |
11793 | min_gtk_version=2.0.0 |
11794 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
986ecc86 | 11795 | echo "configure:11796: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11796 | |
21d1c967 GD |
11797 | if test x$PKG_CONFIG != xno ; then |
11798 | ## don't try to run the test against uninstalled libtool libs | |
11799 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11800 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11801 | enable_gtktest=no | |
11802 | fi | |
f79bd02d | 11803 | |
21d1c967 GD |
11804 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11805 | : | |
11806 | else | |
11807 | no_gtk=yes | |
11808 | fi | |
11809 | fi | |
f79bd02d | 11810 | |
21d1c967 GD |
11811 | if test x"$no_gtk" = x ; then |
11812 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11813 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11814 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11815 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11816 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11817 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11818 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11819 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11820 | if test "x$enable_gtktest" = "xyes" ; then | |
11821 | ac_save_CFLAGS="$CFLAGS" | |
11822 | ac_save_LIBS="$LIBS" | |
11823 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11824 | LIBS="$GTK_LIBS $LIBS" | |
11825 | rm -f conf.gtktest | |
11826 | if test "$cross_compiling" = yes; then | |
11827 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11828 | else |
21d1c967 | 11829 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 11830 | #line 11831 "configure" |
f79bd02d | 11831 | #include "confdefs.h" |
f79bd02d | 11832 | |
21d1c967 GD |
11833 | #include <gtk/gtk.h> |
11834 | #include <stdio.h> | |
11835 | #include <stdlib.h> | |
f79bd02d | 11836 | |
21d1c967 GD |
11837 | int |
11838 | main () | |
11839 | { | |
11840 | int major, minor, micro; | |
11841 | char *tmp_version; | |
f79bd02d | 11842 | |
21d1c967 | 11843 | system ("touch conf.gtktest"); |
f79bd02d | 11844 | |
21d1c967 GD |
11845 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11846 | tmp_version = g_strdup("$min_gtk_version"); | |
11847 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11848 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11849 | exit(1); | |
11850 | } | |
f79bd02d | 11851 | |
21d1c967 GD |
11852 | if ((gtk_major_version != $gtk_config_major_version) || |
11853 | (gtk_minor_version != $gtk_config_minor_version) || | |
11854 | (gtk_micro_version != $gtk_config_micro_version)) | |
11855 | { | |
11856 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11857 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11858 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11859 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11860 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11861 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11862 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11863 | printf("*** required on your system.\n"); | |
11864 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11865 | printf("*** to point to the correct configuration files\n"); | |
11866 | } | |
11867 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11868 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11869 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11870 | { | |
11871 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11872 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11873 | printf("*** library (version %d.%d.%d)\n", | |
11874 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11875 | } | |
11876 | else | |
11877 | { | |
11878 | if ((gtk_major_version > major) || | |
11879 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11880 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11881 | { | |
11882 | return 0; | |
11883 | } | |
11884 | else | |
11885 | { | |
11886 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11887 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11888 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11889 | major, minor, micro); | |
11890 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11891 | printf("***\n"); | |
11892 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11893 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11894 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11895 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11896 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11897 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11898 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11899 | } | |
11900 | } | |
11901 | return 1; | |
11902 | } | |
f79bd02d | 11903 | |
f79bd02d | 11904 | EOF |
986ecc86 | 11905 | if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
11906 | then |
11907 | : | |
f79bd02d JS |
11908 | else |
11909 | echo "configure: failed program was:" >&5 | |
11910 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11911 | rm -fr conftest* |
11912 | no_gtk=yes | |
f79bd02d | 11913 | fi |
21d1c967 | 11914 | rm -fr conftest* |
f79bd02d JS |
11915 | fi |
11916 | ||
21d1c967 GD |
11917 | CFLAGS="$ac_save_CFLAGS" |
11918 | LIBS="$ac_save_LIBS" | |
11919 | fi | |
11920 | fi | |
11921 | if test "x$no_gtk" = x ; then | |
11922 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11923 | wx_cv_lib_gtk=2.0 | |
11924 | else | |
11925 | echo "$ac_t""no" 1>&6 | |
11926 | if test "$PKG_CONFIG" = "no" ; then | |
11927 | echo "*** A new enough version of pkg-config was not found." | |
11928 | echo "*** See http://pkgconfig.sourceforge.net" | |
11929 | else | |
11930 | if test -f conf.gtktest ; then | |
11931 | : | |
11932 | else | |
11933 | echo "*** Could not run GTK+ test program, checking why..." | |
11934 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11935 | LIBS="$LIBS $GTK_LIBS" | |
11936 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 11937 | #line 11938 "configure" |
f79bd02d | 11938 | #include "confdefs.h" |
21d1c967 GD |
11939 | |
11940 | #include <gtk/gtk.h> | |
11941 | #include <stdio.h> | |
f79bd02d JS |
11942 | |
11943 | int main() { | |
21d1c967 | 11944 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
11945 | ; return 0; } |
11946 | EOF | |
986ecc86 | 11947 | if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 11948 | rm -rf conftest* |
21d1c967 GD |
11949 | echo "*** The test program compiled, but did not run. This usually means" |
11950 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11951 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11952 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11953 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11954 | echo "*** is required on your system" | |
11955 | echo "***" | |
11956 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11957 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
f79bd02d JS |
11958 | else |
11959 | echo "configure: failed program was:" >&5 | |
11960 | cat conftest.$ac_ext >&5 | |
11961 | rm -rf conftest* | |
21d1c967 GD |
11962 | echo "*** The test program failed to compile or link. See the file config.log for the" |
11963 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
11964 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
11965 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
f79bd02d JS |
11966 | fi |
11967 | rm -f conftest* | |
21d1c967 GD |
11968 | CFLAGS="$ac_save_CFLAGS" |
11969 | LIBS="$ac_save_LIBS" | |
11970 | fi | |
11971 | fi | |
11972 | GTK_CFLAGS="" | |
11973 | GTK_LIBS="" | |
11974 | : | |
11975 | fi | |
11976 | ||
11977 | ||
11978 | rm -f conf.gtktest | |
f79bd02d | 11979 | |
21d1c967 | 11980 | fi |
f79bd02d | 11981 | |
21d1c967 GD |
11982 | if test -z "$wx_cv_lib_gtk"; then |
11983 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
11984 | if test "${with_gtk_prefix+set}" = set; then | |
11985 | withval="$with_gtk_prefix" | |
11986 | gtk_config_prefix="$withval" | |
11987 | else | |
11988 | gtk_config_prefix="" | |
11989 | fi | |
f79bd02d | 11990 | |
21d1c967 GD |
11991 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
11992 | if test "${with_gtk_exec_prefix+set}" = set; then | |
11993 | withval="$with_gtk_exec_prefix" | |
11994 | gtk_config_exec_prefix="$withval" | |
11995 | else | |
11996 | gtk_config_exec_prefix="" | |
11997 | fi | |
11998 | ||
11999 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12000 | if test "${enable_gtktest+set}" = set; then | |
12001 | enableval="$enable_gtktest" | |
12002 | : | |
12003 | else | |
12004 | enable_gtktest=yes | |
12005 | fi | |
12006 | ||
12007 | ||
12008 | for module in . $GTK_MODULES | |
12009 | do | |
12010 | case "$module" in | |
12011 | gthread) | |
12012 | gtk_config_args="$gtk_config_args gthread" | |
12013 | ;; | |
12014 | esac | |
12015 | done | |
12016 | ||
12017 | if test x$gtk_config_exec_prefix != x ; then | |
12018 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12019 | if test x${GTK_CONFIG+set} != xset ; then | |
12020 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12021 | fi | |
12022 | fi | |
12023 | if test x$gtk_config_prefix != x ; then | |
12024 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12025 | if test x${GTK_CONFIG+set} != xset ; then | |
12026 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12027 | fi | |
12028 | fi | |
12029 | ||
12030 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12031 | set dummy gtk-config; ac_word=$2 | |
12032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 12033 | echo "configure:12034: checking for $ac_word" >&5 |
21d1c967 | 12034 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
f79bd02d | 12035 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
12036 | else |
12037 | case "$GTK_CONFIG" in | |
12038 | /*) | |
12039 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12040 | ;; | |
12041 | ?:/*) | |
12042 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12043 | ;; | |
12044 | *) | |
12045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12046 | ac_dummy="$PATH" | |
12047 | for ac_dir in $ac_dummy; do | |
12048 | test -z "$ac_dir" && ac_dir=. | |
12049 | if test -f $ac_dir/$ac_word; then | |
12050 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12051 | break | |
12052 | fi | |
12053 | done | |
12054 | IFS="$ac_save_ifs" | |
12055 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12056 | ;; | |
12057 | esac | |
12058 | fi | |
12059 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12060 | if test -n "$GTK_CONFIG"; then | |
12061 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12062 | else | |
12063 | echo "$ac_t""no" 1>&6 | |
12064 | fi | |
12065 | ||
12066 | min_gtk_version=1.2.7 | |
12067 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
986ecc86 | 12068 | echo "configure:12069: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12069 | no_gtk="" |
12070 | if test "$GTK_CONFIG" = "no" ; then | |
12071 | no_gtk=yes | |
12072 | else | |
12073 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12074 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12075 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12076 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12077 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12078 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12079 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12080 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12081 | if test "x$enable_gtktest" = "xyes" ; then | |
12082 | ac_save_CFLAGS="$CFLAGS" | |
12083 | ac_save_LIBS="$LIBS" | |
12084 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12085 | LIBS="$GTK_LIBS $LIBS" | |
12086 | rm -f conf.gtktest | |
12087 | if test "$cross_compiling" = yes; then | |
12088 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12089 | else |
90dd450c | 12090 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 12091 | #line 12092 "configure" |
f79bd02d JS |
12092 | #include "confdefs.h" |
12093 | ||
21d1c967 GD |
12094 | #include <gtk/gtk.h> |
12095 | #include <stdio.h> | |
12096 | #include <stdlib.h> | |
f79bd02d | 12097 | |
21d1c967 GD |
12098 | int |
12099 | main () | |
12100 | { | |
12101 | int major, minor, micro; | |
12102 | char *tmp_version; | |
12103 | ||
12104 | system ("touch conf.gtktest"); | |
12105 | ||
12106 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12107 | tmp_version = g_strdup("$min_gtk_version"); | |
12108 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12109 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12110 | exit(1); | |
12111 | } | |
90dd450c | 12112 | |
21d1c967 GD |
12113 | if ((gtk_major_version != $gtk_config_major_version) || |
12114 | (gtk_minor_version != $gtk_config_minor_version) || | |
12115 | (gtk_micro_version != $gtk_config_micro_version)) | |
12116 | { | |
12117 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12118 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12119 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12120 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12121 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12122 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12123 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12124 | printf("*** required on your system.\n"); | |
12125 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12126 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12127 | printf("*** before re-running configure\n"); | |
12128 | } | |
12129 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12130 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12131 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12132 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12133 | { | |
12134 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12135 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12136 | printf("*** library (version %d.%d.%d)\n", | |
12137 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12138 | } | |
12139 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12140 | else | |
12141 | { | |
12142 | if ((gtk_major_version > major) || | |
12143 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12144 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12145 | { | |
12146 | return 0; | |
12147 | } | |
12148 | else | |
12149 | { | |
12150 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12151 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12152 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12153 | major, minor, micro); | |
12154 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12155 | printf("***\n"); | |
12156 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12157 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12158 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12159 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12160 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12161 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12162 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12163 | } | |
12164 | } | |
12165 | return 1; | |
12166 | } | |
12167 | ||
12168 | EOF | |
986ecc86 | 12169 | if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12170 | then |
12171 | : | |
12172 | else | |
12173 | echo "configure: failed program was:" >&5 | |
12174 | cat conftest.$ac_ext >&5 | |
12175 | rm -fr conftest* | |
12176 | no_gtk=yes | |
12177 | fi | |
12178 | rm -fr conftest* | |
12179 | fi | |
12180 | ||
12181 | CFLAGS="$ac_save_CFLAGS" | |
12182 | LIBS="$ac_save_LIBS" | |
12183 | fi | |
12184 | fi | |
12185 | if test "x$no_gtk" = x ; then | |
12186 | echo "$ac_t""yes" 1>&6 | |
12187 | wx_cv_lib_gtk=1.2.7 | |
12188 | else | |
12189 | echo "$ac_t""no" 1>&6 | |
12190 | if test "$GTK_CONFIG" = "no" ; then | |
12191 | echo "*** The gtk-config script installed by GTK could not be found" | |
12192 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12193 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12194 | echo "*** full path to gtk-config." | |
12195 | else | |
12196 | if test -f conf.gtktest ; then | |
12197 | : | |
12198 | else | |
12199 | echo "*** Could not run GTK test program, checking why..." | |
12200 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12201 | LIBS="$LIBS $GTK_LIBS" | |
12202 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12203 | #line 12204 "configure" |
21d1c967 GD |
12204 | #include "confdefs.h" |
12205 | ||
12206 | #include <gtk/gtk.h> | |
12207 | #include <stdio.h> | |
12208 | ||
12209 | int main() { | |
12210 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
f79bd02d JS |
12211 | ; return 0; } |
12212 | EOF | |
986ecc86 | 12213 | if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12214 | rm -rf conftest* |
21d1c967 GD |
12215 | echo "*** The test program compiled, but did not run. This usually means" |
12216 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12217 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12218 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12219 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12220 | echo "*** is required on your system" | |
12221 | echo "***" | |
12222 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12223 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12224 | echo "***" | |
12225 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12226 | echo "*** came with the system with the command" | |
12227 | echo "***" | |
12228 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12229 | else |
12230 | echo "configure: failed program was:" >&5 | |
12231 | cat conftest.$ac_ext >&5 | |
12232 | rm -rf conftest* | |
21d1c967 GD |
12233 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12234 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12235 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12236 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12237 | fi |
12238 | rm -f conftest* | |
21d1c967 GD |
12239 | CFLAGS="$ac_save_CFLAGS" |
12240 | LIBS="$ac_save_LIBS" | |
12241 | fi | |
12242 | fi | |
12243 | GTK_CFLAGS="" | |
12244 | GTK_LIBS="" | |
12245 | : | |
12246 | fi | |
12247 | ||
12248 | ||
12249 | rm -f conf.gtktest | |
12250 | ||
12251 | fi | |
12252 | ||
12253 | if test -z "$wx_cv_lib_gtk"; then | |
12254 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12255 | if test "${with_gtk_prefix+set}" = set; then | |
12256 | withval="$with_gtk_prefix" | |
12257 | gtk_config_prefix="$withval" | |
12258 | else | |
12259 | gtk_config_prefix="" | |
90dd450c | 12260 | fi |
f79bd02d | 12261 | |
21d1c967 GD |
12262 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12263 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12264 | withval="$with_gtk_exec_prefix" | |
12265 | gtk_config_exec_prefix="$withval" | |
12266 | else | |
12267 | gtk_config_exec_prefix="" | |
12268 | fi | |
12269 | ||
12270 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12271 | if test "${enable_gtktest+set}" = set; then | |
12272 | enableval="$enable_gtktest" | |
90dd450c VZ |
12273 | : |
12274 | else | |
21d1c967 | 12275 | enable_gtktest=yes |
90dd450c | 12276 | fi |
f79bd02d | 12277 | |
21d1c967 GD |
12278 | |
12279 | for module in . $GTK_MODULES | |
12280 | do | |
12281 | case "$module" in | |
12282 | gthread) | |
12283 | gtk_config_args="$gtk_config_args gthread" | |
12284 | ;; | |
12285 | esac | |
12286 | done | |
12287 | ||
12288 | if test x$gtk_config_exec_prefix != x ; then | |
12289 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12290 | if test x${GTK_CONFIG+set} != xset ; then | |
12291 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12292 | fi | |
12293 | fi | |
12294 | if test x$gtk_config_prefix != x ; then | |
12295 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12296 | if test x${GTK_CONFIG+set} != xset ; then | |
12297 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12298 | fi | |
12299 | fi | |
12300 | ||
12301 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12302 | set dummy gtk-config; ac_word=$2 | |
12303 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 12304 | echo "configure:12305: checking for $ac_word" >&5 |
21d1c967 | 12305 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
90dd450c VZ |
12306 | echo $ac_n "(cached) $ac_c" 1>&6 |
12307 | else | |
21d1c967 GD |
12308 | case "$GTK_CONFIG" in |
12309 | /*) | |
12310 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12311 | ;; | |
12312 | ?:/*) | |
12313 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12314 | ;; | |
12315 | *) | |
12316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12317 | ac_dummy="$PATH" | |
12318 | for ac_dir in $ac_dummy; do | |
12319 | test -z "$ac_dir" && ac_dir=. | |
12320 | if test -f $ac_dir/$ac_word; then | |
12321 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12322 | break | |
12323 | fi | |
12324 | done | |
12325 | IFS="$ac_save_ifs" | |
12326 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12327 | ;; | |
12328 | esac | |
12329 | fi | |
12330 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12331 | if test -n "$GTK_CONFIG"; then | |
12332 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12333 | else | |
12334 | echo "$ac_t""no" 1>&6 | |
12335 | fi | |
12336 | ||
12337 | min_gtk_version=1.2.3 | |
12338 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
986ecc86 | 12339 | echo "configure:12340: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12340 | no_gtk="" |
12341 | if test "$GTK_CONFIG" = "no" ; then | |
12342 | no_gtk=yes | |
12343 | else | |
12344 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12345 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12346 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12347 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12348 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12349 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12350 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12351 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12352 | if test "x$enable_gtktest" = "xyes" ; then | |
12353 | ac_save_CFLAGS="$CFLAGS" | |
12354 | ac_save_LIBS="$LIBS" | |
12355 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12356 | LIBS="$GTK_LIBS $LIBS" | |
12357 | rm -f conf.gtktest | |
12358 | if test "$cross_compiling" = yes; then | |
12359 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12360 | else | |
12361 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12362 | #line 12363 "configure" |
f79bd02d | 12363 | #include "confdefs.h" |
21d1c967 GD |
12364 | |
12365 | #include <gtk/gtk.h> | |
12366 | #include <stdio.h> | |
12367 | #include <stdlib.h> | |
12368 | ||
12369 | int | |
12370 | main () | |
12371 | { | |
12372 | int major, minor, micro; | |
12373 | char *tmp_version; | |
12374 | ||
12375 | system ("touch conf.gtktest"); | |
12376 | ||
12377 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12378 | tmp_version = g_strdup("$min_gtk_version"); | |
12379 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12380 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12381 | exit(1); | |
12382 | } | |
12383 | ||
12384 | if ((gtk_major_version != $gtk_config_major_version) || | |
12385 | (gtk_minor_version != $gtk_config_minor_version) || | |
12386 | (gtk_micro_version != $gtk_config_micro_version)) | |
12387 | { | |
12388 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12389 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12390 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12391 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12392 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12393 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12394 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12395 | printf("*** required on your system.\n"); | |
12396 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12397 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12398 | printf("*** before re-running configure\n"); | |
12399 | } | |
12400 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12401 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12402 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12403 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12404 | { | |
12405 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12406 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12407 | printf("*** library (version %d.%d.%d)\n", | |
12408 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12409 | } | |
12410 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12411 | else | |
12412 | { | |
12413 | if ((gtk_major_version > major) || | |
12414 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12415 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12416 | { | |
12417 | return 0; | |
12418 | } | |
12419 | else | |
12420 | { | |
12421 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12422 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12423 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12424 | major, minor, micro); | |
12425 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12426 | printf("***\n"); | |
12427 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12428 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12429 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12430 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12431 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12432 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12433 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12434 | } | |
12435 | } | |
12436 | return 1; | |
12437 | } | |
12438 | ||
12439 | EOF | |
986ecc86 | 12440 | if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12441 | then |
12442 | : | |
12443 | else | |
12444 | echo "configure: failed program was:" >&5 | |
12445 | cat conftest.$ac_ext >&5 | |
12446 | rm -fr conftest* | |
12447 | no_gtk=yes | |
12448 | fi | |
12449 | rm -fr conftest* | |
12450 | fi | |
12451 | ||
12452 | CFLAGS="$ac_save_CFLAGS" | |
12453 | LIBS="$ac_save_LIBS" | |
12454 | fi | |
12455 | fi | |
12456 | if test "x$no_gtk" = x ; then | |
12457 | echo "$ac_t""yes" 1>&6 | |
12458 | wx_cv_lib_gtk=1.2.3 | |
12459 | else | |
12460 | echo "$ac_t""no" 1>&6 | |
12461 | if test "$GTK_CONFIG" = "no" ; then | |
12462 | echo "*** The gtk-config script installed by GTK could not be found" | |
12463 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12464 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12465 | echo "*** full path to gtk-config." | |
12466 | else | |
12467 | if test -f conf.gtktest ; then | |
12468 | : | |
12469 | else | |
12470 | echo "*** Could not run GTK test program, checking why..." | |
12471 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12472 | LIBS="$LIBS $GTK_LIBS" | |
12473 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12474 | #line 12475 "configure" |
21d1c967 GD |
12475 | #include "confdefs.h" |
12476 | ||
12477 | #include <gtk/gtk.h> | |
12478 | #include <stdio.h> | |
f79bd02d | 12479 | |
f79bd02d | 12480 | int main() { |
21d1c967 | 12481 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
12482 | ; return 0; } |
12483 | EOF | |
986ecc86 | 12484 | if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12485 | rm -rf conftest* |
21d1c967 GD |
12486 | echo "*** The test program compiled, but did not run. This usually means" |
12487 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12488 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12489 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12490 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12491 | echo "*** is required on your system" | |
12492 | echo "***" | |
12493 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12494 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12495 | echo "***" | |
12496 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12497 | echo "*** came with the system with the command" | |
12498 | echo "***" | |
12499 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12500 | else |
12501 | echo "configure: failed program was:" >&5 | |
12502 | cat conftest.$ac_ext >&5 | |
12503 | rm -rf conftest* | |
21d1c967 GD |
12504 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12505 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12506 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12507 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12508 | fi |
12509 | rm -f conftest* | |
21d1c967 GD |
12510 | CFLAGS="$ac_save_CFLAGS" |
12511 | LIBS="$ac_save_LIBS" | |
12512 | fi | |
12513 | fi | |
12514 | GTK_CFLAGS="" | |
12515 | GTK_LIBS="" | |
12516 | : | |
12517 | fi | |
12518 | ||
12519 | ||
12520 | rm -f conf.gtktest | |
f79bd02d | 12521 | |
21d1c967 GD |
12522 | fi |
12523 | ||
12524 | if test -z "$wx_cv_lib_gtk"; then | |
12525 | wx_cv_lib_gtk=none | |
12526 | else | |
12527 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12528 | wx_cv_libs_gtk=$GTK_LIBS | |
12529 | fi | |
12530 | ||
12531 | ||
90dd450c | 12532 | fi |
b4085ce6 | 12533 | |
e07802fc | 12534 | |
21d1c967 GD |
12535 | if test "$gtk_version_cached" = 1; then |
12536 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12537 | fi | |
12538 | ||
12539 | case "$wx_cv_lib_gtk" in | |
12540 | 2.0) WXGTK20=1 | |
12541 | ;; | |
12542 | 1.2.7) WXGTK127=1 | |
12543 | WXGTK12=1 | |
12544 | ;; | |
12545 | 1.2.3) WXGTK12=1 | |
12546 | ;; | |
12547 | *) { echo "configure: error: | |
12548 | Please check that gtk-config is in path, the directory | |
12549 | where GTK+ libraries are installed (returned by | |
12550 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12551 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12552 | " 1>&2; exit 1; } | |
12553 | ;; | |
12554 | esac | |
12555 | ||
12556 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12557 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12558 | ||
12559 | AFMINSTALL=afminstall | |
12560 | TOOLKIT=GTK | |
12561 | GUIDIST=GTK_DIST | |
12562 | ||
12563 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
986ecc86 | 12564 | echo "configure:12565: checking for gdk_im_open in -lgdk" >&5 |
21d1c967 | 12565 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
90dd450c VZ |
12566 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12568 | else | |
12569 | ac_save_LIBS="$LIBS" | |
21d1c967 | 12570 | LIBS="-lgdk $LIBS" |
90dd450c | 12571 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 12572 | #line 12573 "configure" |
90dd450c VZ |
12573 | #include "confdefs.h" |
12574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12575 | /* We use char because int might match the return type of a gcc2 | |
12576 | builtin and then its argument prototype would still apply. */ | |
21d1c967 | 12577 | char gdk_im_open(); |
9b695262 | 12578 | |
90dd450c | 12579 | int main() { |
21d1c967 | 12580 | gdk_im_open() |
90dd450c VZ |
12581 | ; return 0; } |
12582 | EOF | |
986ecc86 | 12583 | if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12584 | rm -rf conftest* |
12585 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12586 | else | |
12587 | echo "configure: failed program was:" >&5 | |
12588 | cat conftest.$ac_ext >&5 | |
12589 | rm -rf conftest* | |
12590 | eval "ac_cv_lib_$ac_lib_var=no" | |
12591 | fi | |
12592 | rm -f conftest* | |
12593 | LIBS="$ac_save_LIBS" | |
9b695262 | 12594 | |
90dd450c VZ |
12595 | fi |
12596 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12597 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
12598 | cat >> confdefs.h <<\EOF |
12599 | #define HAVE_XIM 1 | |
12600 | EOF | |
12601 | ||
90dd450c VZ |
12602 | else |
12603 | echo "$ac_t""no" 1>&6 | |
12604 | fi | |
1e6feb95 | 12605 | |
21d1c967 | 12606 | fi |
1e6feb95 | 12607 | |
21d1c967 GD |
12608 | if test "$wxUSE_MGL" = 1; then |
12609 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
986ecc86 | 12610 | echo "configure:12611: checking for SciTech MGL library" >&5 |
21d1c967 GD |
12611 | if test "x$MGL_ROOT" = x ; then |
12612 | echo "$ac_t""not found" 1>&6 | |
12613 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12614 | else | |
12615 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
12616 | fi | |
12617 | ||
12618 | case "${host}" in | |
12619 | *-*-linux* ) | |
12620 | mgl_os=linux/gcc/glibc | |
12621 | ;; | |
12622 | *-pc-msdosdjgpp ) | |
12623 | mgl_os=dos32/dj2 | |
12624 | ;; | |
12625 | *) | |
12626 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12627 | esac | |
1e6feb95 | 12628 | |
21d1c967 | 12629 | mgl_lib_type="" |
3fcdd07b | 12630 | |
21d1c967 GD |
12631 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12632 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12633 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12634 | mgl_lib_type=debug | |
12635 | fi | |
12636 | fi | |
12637 | if test "x$mgl_lib_type" = x ; then | |
12638 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12639 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12640 | mgl_lib_type=release | |
12641 | else | |
12642 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
12643 | fi | |
90dd450c | 12644 | fi |
2224580a | 12645 | |
1d1b75ac VZ |
12646 | wxUSE_UNIVERSAL="yes" |
12647 | ||
21d1c967 GD |
12648 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12649 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12650 | ||
90dd450c | 12651 | AFMINSTALL=afminstall |
21d1c967 GD |
12652 | TOOLKIT=MGL |
12653 | GUIDIST=MGL_DIST | |
12654 | fi | |
dad6c0ea | 12655 | |
21d1c967 GD |
12656 | if test "$wxUSE_MICROWIN" = 1; then |
12657 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
986ecc86 | 12658 | echo "configure:12659: checking for MicroWindows" >&5 |
21d1c967 GD |
12659 | if test "x$MICROWINDOWS" = x ; then |
12660 | echo "$ac_t""not found" 1>&6 | |
12661 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
12662 | else | |
12663 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
12664 | fi | |
f6bcfd97 | 12665 | |
21d1c967 GD |
12666 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
12667 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
12668 | else | |
12669 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
90dd450c | 12670 | fi |
0b2effe9 | 12671 | |
21d1c967 GD |
12672 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12673 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12674 | ||
1d1b75ac VZ |
12675 | wxUSE_UNIVERSAL="yes" |
12676 | ||
21d1c967 GD |
12677 | AFMINSTALL=afminstall |
12678 | TOOLKIT=MICROWIN | |
12679 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12680 | |
12681 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12682 | fi |
f6bcfd97 | 12683 | |
21d1c967 GD |
12684 | if test "$wxUSE_X11" = 1; then |
12685 | # If we find X, set shell vars x_includes and x_libraries to the | |
12686 | # paths, otherwise set no_x=yes. | |
12687 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12688 | # --without-x overrides everything else, but does not touch the cache. | |
12689 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
986ecc86 | 12690 | echo "configure:12691: checking for X" >&5 |
d8356fa3 | 12691 | |
21d1c967 GD |
12692 | # Check whether --with-x or --without-x was given. |
12693 | if test "${with_x+set}" = set; then | |
12694 | withval="$with_x" | |
12695 | : | |
12696 | fi | |
2224580a | 12697 | |
21d1c967 GD |
12698 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12699 | if test "x$with_x" = xno; then | |
12700 | # The user explicitly disabled X. | |
12701 | have_x=disabled | |
12702 | else | |
12703 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12704 | # Both variables are already set. | |
12705 | have_x=yes | |
12706 | else | |
12707 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
12708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12709 | else | |
12710 | # One or both of the vars are not set, and there is no cached value. | |
12711 | ac_x_includes=NO ac_x_libraries=NO | |
12712 | rm -fr conftestdir | |
12713 | if mkdir conftestdir; then | |
12714 | cd conftestdir | |
12715 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12716 | cat > Imakefile <<'EOF' | |
12717 | acfindx: | |
12718 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12719 | EOF | |
12720 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12721 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12722 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12723 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12724 | for ac_extension in a so sl; do | |
12725 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12726 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12727 | ac_im_usrlibdir=$ac_im_libdir; break | |
12728 | fi | |
12729 | done | |
12730 | # Screen out bogus values from the imake configuration. They are | |
12731 | # bogus both because they are the default anyway, and because | |
12732 | # using them would break gcc on systems where it needs fixed includes. | |
12733 | case "$ac_im_incroot" in | |
12734 | /usr/include) ;; | |
12735 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12736 | esac | |
12737 | case "$ac_im_usrlibdir" in | |
12738 | /usr/lib | /lib) ;; | |
12739 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12740 | esac | |
12741 | fi | |
12742 | cd .. | |
12743 | rm -fr conftestdir | |
12744 | fi | |
10f2d63a | 12745 | |
21d1c967 GD |
12746 | if test "$ac_x_includes" = NO; then |
12747 | # Guess where to find include files, by looking for this one X11 .h file. | |
12748 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
e45387bf | 12749 | |
21d1c967 GD |
12750 | # First, try using that file with no special directory specified. |
12751 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12752 | #line 12753 "configure" |
21d1c967 GD |
12753 | #include "confdefs.h" |
12754 | #include <$x_direct_test_include> | |
90dd450c | 12755 | EOF |
21d1c967 | 12756 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 12757 | { (eval echo configure:12758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
12758 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12759 | if test -z "$ac_err"; then | |
90dd450c | 12760 | rm -rf conftest* |
21d1c967 GD |
12761 | # We can compile using X headers with no special include directory. |
12762 | ac_x_includes= | |
90dd450c | 12763 | else |
21d1c967 | 12764 | echo "$ac_err" >&5 |
90dd450c VZ |
12765 | echo "configure: failed program was:" >&5 |
12766 | cat conftest.$ac_ext >&5 | |
12767 | rm -rf conftest* | |
21d1c967 GD |
12768 | # Look for the header file in a standard set of common directories. |
12769 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12770 | for ac_dir in \ | |
12771 | /usr/X11/include \ | |
12772 | /usr/X11R6/include \ | |
12773 | /usr/X11R5/include \ | |
12774 | /usr/X11R4/include \ | |
12775 | \ | |
12776 | /usr/include/X11 \ | |
12777 | /usr/include/X11R6 \ | |
12778 | /usr/include/X11R5 \ | |
12779 | /usr/include/X11R4 \ | |
12780 | \ | |
12781 | /usr/local/X11/include \ | |
12782 | /usr/local/X11R6/include \ | |
12783 | /usr/local/X11R5/include \ | |
12784 | /usr/local/X11R4/include \ | |
12785 | \ | |
12786 | /usr/local/include/X11 \ | |
12787 | /usr/local/include/X11R6 \ | |
12788 | /usr/local/include/X11R5 \ | |
12789 | /usr/local/include/X11R4 \ | |
12790 | \ | |
12791 | /usr/X386/include \ | |
12792 | /usr/x386/include \ | |
12793 | /usr/XFree86/include/X11 \ | |
12794 | \ | |
12795 | /usr/include \ | |
12796 | /usr/local/include \ | |
12797 | /usr/unsupported/include \ | |
12798 | /usr/athena/include \ | |
12799 | /usr/local/x11r5/include \ | |
12800 | /usr/lpp/Xamples/include \ | |
12801 | \ | |
12802 | /usr/openwin/include \ | |
12803 | /usr/openwin/share/include \ | |
12804 | ; \ | |
12805 | do | |
12806 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12807 | ac_x_includes=$ac_dir | |
12808 | break | |
12809 | fi | |
12810 | done | |
3a922bb4 | 12811 | fi |
90dd450c | 12812 | rm -f conftest* |
21d1c967 | 12813 | fi # $ac_x_includes = NO |
10f2d63a | 12814 | |
21d1c967 GD |
12815 | if test "$ac_x_libraries" = NO; then |
12816 | # Check for the libraries. | |
be505a65 | 12817 | |
21d1c967 GD |
12818 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
12819 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
90dd450c | 12820 | |
21d1c967 GD |
12821 | # See if we find them without any special options. |
12822 | # Don't add to $LIBS permanently. | |
12823 | ac_save_LIBS="$LIBS" | |
12824 | LIBS="-l$x_direct_test_library $LIBS" | |
12825 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12826 | #line 12827 "configure" |
3a922bb4 | 12827 | #include "confdefs.h" |
21d1c967 GD |
12828 | |
12829 | int main() { | |
12830 | ${x_direct_test_function}() | |
12831 | ; return 0; } | |
3a922bb4 | 12832 | EOF |
986ecc86 | 12833 | if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 12834 | rm -rf conftest* |
21d1c967 GD |
12835 | LIBS="$ac_save_LIBS" |
12836 | # We can link X programs with no special library path. | |
12837 | ac_x_libraries= | |
3a922bb4 | 12838 | else |
3a922bb4 RL |
12839 | echo "configure: failed program was:" >&5 |
12840 | cat conftest.$ac_ext >&5 | |
12841 | rm -rf conftest* | |
21d1c967 GD |
12842 | LIBS="$ac_save_LIBS" |
12843 | # First see if replacing the include by lib works. | |
12844 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12845 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12846 | /usr/X11/lib \ | |
12847 | /usr/X11R6/lib \ | |
12848 | /usr/X11R5/lib \ | |
12849 | /usr/X11R4/lib \ | |
12850 | \ | |
12851 | /usr/lib/X11 \ | |
12852 | /usr/lib/X11R6 \ | |
12853 | /usr/lib/X11R5 \ | |
12854 | /usr/lib/X11R4 \ | |
12855 | \ | |
12856 | /usr/local/X11/lib \ | |
12857 | /usr/local/X11R6/lib \ | |
12858 | /usr/local/X11R5/lib \ | |
12859 | /usr/local/X11R4/lib \ | |
12860 | \ | |
12861 | /usr/local/lib/X11 \ | |
12862 | /usr/local/lib/X11R6 \ | |
12863 | /usr/local/lib/X11R5 \ | |
12864 | /usr/local/lib/X11R4 \ | |
12865 | \ | |
12866 | /usr/X386/lib \ | |
12867 | /usr/x386/lib \ | |
12868 | /usr/XFree86/lib/X11 \ | |
12869 | \ | |
12870 | /usr/lib \ | |
12871 | /usr/local/lib \ | |
12872 | /usr/unsupported/lib \ | |
12873 | /usr/athena/lib \ | |
12874 | /usr/local/x11r5/lib \ | |
12875 | /usr/lpp/Xamples/lib \ | |
12876 | /lib/usr/lib/X11 \ | |
12877 | \ | |
12878 | /usr/openwin/lib \ | |
12879 | /usr/openwin/share/lib \ | |
12880 | ; \ | |
12881 | do | |
12882 | for ac_extension in a so sl; do | |
12883 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12884 | ac_x_libraries=$ac_dir | |
12885 | break 2 | |
12886 | fi | |
12887 | done | |
12888 | done | |
3a922bb4 RL |
12889 | fi |
12890 | rm -f conftest* | |
21d1c967 | 12891 | fi # $ac_x_libraries = NO |
90dd450c | 12892 | |
21d1c967 GD |
12893 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
12894 | # Didn't find X anywhere. Cache the known absence of X. | |
12895 | ac_cv_have_x="have_x=no" | |
12896 | else | |
12897 | # Record where we found X for the cache. | |
12898 | ac_cv_have_x="have_x=yes \ | |
12899 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 12900 | fi |
21d1c967 GD |
12901 | fi |
12902 | fi | |
12903 | eval "$ac_cv_have_x" | |
12904 | fi # $with_x != no | |
90dd450c | 12905 | |
21d1c967 GD |
12906 | if test "$have_x" != yes; then |
12907 | echo "$ac_t""$have_x" 1>&6 | |
12908 | no_x=yes | |
12909 | else | |
12910 | # If each of the values was on the command line, it overrides each guess. | |
12911 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12912 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12913 | # Update the cache value to reflect the command line values. | |
12914 | ac_cv_have_x="have_x=yes \ | |
12915 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12916 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12917 | fi | |
90dd450c | 12918 | |
21d1c967 | 12919 | if test "$no_x" = yes; then |
90dd450c VZ |
12920 | # Not all programs may use this symbol, but it does not hurt to define it. |
12921 | cat >> confdefs.h <<\EOF | |
12922 | #define X_DISPLAY_MISSING 1 | |
12923 | EOF | |
12924 | ||
12925 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12926 | else | |
12927 | if test -n "$x_includes"; then | |
12928 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 12929 | fi |
3a922bb4 | 12930 | |
90dd450c VZ |
12931 | # It would also be nice to do this for all -L options, not just this one. |
12932 | if test -n "$x_libraries"; then | |
12933 | X_LIBS="$X_LIBS -L$x_libraries" | |
12934 | # For Solaris; some versions of Sun CC require a space after -R and | |
12935 | # others require no space. Words are not sufficient . . . . | |
12936 | case "`(uname -sr) 2>/dev/null`" in | |
12937 | "SunOS 5"*) | |
12938 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
986ecc86 | 12939 | echo "configure:12940: checking whether -R must be followed by a space" >&5 |
90dd450c VZ |
12940 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12941 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12942 | #line 12943 "configure" |
90dd450c VZ |
12943 | #include "confdefs.h" |
12944 | ||
12945 | int main() { | |
12946 | ||
12947 | ; return 0; } | |
12948 | EOF | |
986ecc86 | 12949 | if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12950 | rm -rf conftest* |
12951 | ac_R_nospace=yes | |
3a922bb4 | 12952 | else |
90dd450c VZ |
12953 | echo "configure: failed program was:" >&5 |
12954 | cat conftest.$ac_ext >&5 | |
12955 | rm -rf conftest* | |
12956 | ac_R_nospace=no | |
3a922bb4 | 12957 | fi |
90dd450c VZ |
12958 | rm -f conftest* |
12959 | if test $ac_R_nospace = yes; then | |
12960 | echo "$ac_t""no" 1>&6 | |
12961 | X_LIBS="$X_LIBS -R$x_libraries" | |
12962 | else | |
12963 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12964 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 12965 | #line 12966 "configure" |
90dd450c | 12966 | #include "confdefs.h" |
3a922bb4 | 12967 | |
90dd450c | 12968 | int main() { |
6f754473 | 12969 | |
90dd450c VZ |
12970 | ; return 0; } |
12971 | EOF | |
986ecc86 | 12972 | if { (eval echo configure:12973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12973 | rm -rf conftest* |
12974 | ac_R_space=yes | |
12975 | else | |
12976 | echo "configure: failed program was:" >&5 | |
12977 | cat conftest.$ac_ext >&5 | |
12978 | rm -rf conftest* | |
12979 | ac_R_space=no | |
12980 | fi | |
12981 | rm -f conftest* | |
12982 | if test $ac_R_space = yes; then | |
12983 | echo "$ac_t""yes" 1>&6 | |
12984 | X_LIBS="$X_LIBS -R $x_libraries" | |
12985 | else | |
12986 | echo "$ac_t""neither works" 1>&6 | |
12987 | fi | |
12988 | fi | |
12989 | LIBS="$ac_xsave_LIBS" | |
12990 | esac | |
12991 | fi | |
12992 | ||
12993 | # Check for system-dependent libraries X programs must link with. | |
12994 | # Do this before checking for the system-independent R6 libraries | |
12995 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 12996 | |
90dd450c VZ |
12997 | if test "$ISC" = yes; then |
12998 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12999 | else | |
13000 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13001 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13002 | # the Alpha needs dnet_stub (dnet does not exist). | |
13003 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
986ecc86 | 13004 | echo "configure:13005: checking for dnet_ntoa in -ldnet" >&5 |
90dd450c VZ |
13005 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13008 | else | |
13009 | ac_save_LIBS="$LIBS" | |
13010 | LIBS="-ldnet $LIBS" | |
13011 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13012 | #line 13013 "configure" |
90dd450c VZ |
13013 | #include "confdefs.h" |
13014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13015 | /* We use char because int might match the return type of a gcc2 | |
13016 | builtin and then its argument prototype would still apply. */ | |
13017 | char dnet_ntoa(); | |
6f754473 | 13018 | |
90dd450c VZ |
13019 | int main() { |
13020 | dnet_ntoa() | |
13021 | ; return 0; } | |
6f754473 | 13022 | EOF |
986ecc86 | 13023 | if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13024 | rm -rf conftest* |
13025 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13026 | else | |
13027 | echo "configure: failed program was:" >&5 | |
13028 | cat conftest.$ac_ext >&5 | |
13029 | rm -rf conftest* | |
13030 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13031 | fi |
90dd450c VZ |
13032 | rm -f conftest* |
13033 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13034 | |
3a922bb4 | 13035 | fi |
90dd450c VZ |
13036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13037 | echo "$ac_t""yes" 1>&6 | |
13038 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13039 | else | |
13040 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13041 | fi |
13042 | ||
90dd450c VZ |
13043 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13044 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
986ecc86 | 13045 | echo "configure:13046: checking for dnet_ntoa in -ldnet_stub" >&5 |
90dd450c VZ |
13046 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13047 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13049 | else | |
13050 | ac_save_LIBS="$LIBS" | |
13051 | LIBS="-ldnet_stub $LIBS" | |
13052 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13053 | #line 13054 "configure" |
90dd450c VZ |
13054 | #include "confdefs.h" |
13055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13056 | /* We use char because int might match the return type of a gcc2 | |
13057 | builtin and then its argument prototype would still apply. */ | |
13058 | char dnet_ntoa(); | |
f676c7ff | 13059 | |
90dd450c VZ |
13060 | int main() { |
13061 | dnet_ntoa() | |
13062 | ; return 0; } | |
13063 | EOF | |
986ecc86 | 13064 | if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13065 | rm -rf conftest* |
13066 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13067 | else | |
13068 | echo "configure: failed program was:" >&5 | |
13069 | cat conftest.$ac_ext >&5 | |
13070 | rm -rf conftest* | |
13071 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13072 | fi |
90dd450c VZ |
13073 | rm -f conftest* |
13074 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13075 | |
90dd450c VZ |
13076 | fi |
13077 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13078 | echo "$ac_t""yes" 1>&6 | |
13079 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13080 | else | |
13081 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13082 | fi |
13083 | ||
90dd450c | 13084 | fi |
978f1259 | 13085 | |
90dd450c VZ |
13086 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13087 | # to get the SysV transport functions. | |
13088 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13089 | # needs -lnsl. | |
13090 | # The nsl library prevents programs from opening the X display | |
13091 | # on Irix 5.2, according to dickey@clark.net. | |
13092 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
986ecc86 | 13093 | echo "configure:13094: checking for gethostbyname" >&5 |
90dd450c VZ |
13094 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13096 | else | |
13097 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13098 | #line 13099 "configure" |
90dd450c VZ |
13099 | #include "confdefs.h" |
13100 | /* System header to define __stub macros and hopefully few prototypes, | |
13101 | which can conflict with char gethostbyname(); below. */ | |
13102 | #include <assert.h> | |
13103 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13104 | /* We use char because int might match the return type of a gcc2 | |
13105 | builtin and then its argument prototype would still apply. */ | |
13106 | char gethostbyname(); | |
978f1259 | 13107 | |
90dd450c | 13108 | int main() { |
978f1259 | 13109 | |
90dd450c VZ |
13110 | /* The GNU C library defines this for functions which it implements |
13111 | to always fail with ENOSYS. Some functions are actually named | |
13112 | something starting with __ and the normal name is an alias. */ | |
13113 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13114 | choke me | |
13115 | #else | |
13116 | gethostbyname(); | |
13117 | #endif | |
978f1259 | 13118 | |
90dd450c VZ |
13119 | ; return 0; } |
13120 | EOF | |
986ecc86 | 13121 | if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13122 | rm -rf conftest* |
13123 | eval "ac_cv_func_gethostbyname=yes" | |
13124 | else | |
13125 | echo "configure: failed program was:" >&5 | |
13126 | cat conftest.$ac_ext >&5 | |
13127 | rm -rf conftest* | |
13128 | eval "ac_cv_func_gethostbyname=no" | |
978f1259 | 13129 | fi |
90dd450c | 13130 | rm -f conftest* |
4222829b VS |
13131 | fi |
13132 | ||
90dd450c VZ |
13133 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13134 | echo "$ac_t""yes" 1>&6 | |
13135 | : | |
13136 | else | |
13137 | echo "$ac_t""no" 1>&6 | |
13138 | fi | |
698dcdb6 | 13139 | |
90dd450c VZ |
13140 | if test $ac_cv_func_gethostbyname = no; then |
13141 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
986ecc86 | 13142 | echo "configure:13143: checking for gethostbyname in -lnsl" >&5 |
90dd450c VZ |
13143 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13144 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13146 | else | |
13147 | ac_save_LIBS="$LIBS" | |
13148 | LIBS="-lnsl $LIBS" | |
13149 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13150 | #line 13151 "configure" |
90dd450c VZ |
13151 | #include "confdefs.h" |
13152 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13153 | /* We use char because int might match the return type of a gcc2 | |
13154 | builtin and then its argument prototype would still apply. */ | |
13155 | char gethostbyname(); | |
f6bcfd97 | 13156 | |
90dd450c VZ |
13157 | int main() { |
13158 | gethostbyname() | |
13159 | ; return 0; } | |
13160 | EOF | |
986ecc86 | 13161 | if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13162 | rm -rf conftest* |
13163 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13164 | else | |
13165 | echo "configure: failed program was:" >&5 | |
13166 | cat conftest.$ac_ext >&5 | |
13167 | rm -rf conftest* | |
13168 | eval "ac_cv_lib_$ac_lib_var=no" | |
13169 | fi | |
13170 | rm -f conftest* | |
13171 | LIBS="$ac_save_LIBS" | |
55e80573 | 13172 | |
90dd450c VZ |
13173 | fi |
13174 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13175 | echo "$ac_t""yes" 1>&6 | |
13176 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13177 | else | |
13178 | echo "$ac_t""no" 1>&6 | |
13179 | fi | |
b12915c1 | 13180 | |
90dd450c VZ |
13181 | fi |
13182 | ||
13183 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13184 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13185 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13186 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13187 | # gethostby* variants that don't use the nameserver (or something). | |
13188 | # -lsocket must be given before -lnsl if both are needed. | |
13189 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13190 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
986ecc86 | 13191 | echo "configure:13192: checking for connect" >&5 |
90dd450c | 13192 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
55e80573 VZ |
13193 | echo $ac_n "(cached) $ac_c" 1>&6 |
13194 | else | |
90dd450c | 13195 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 13196 | #line 13197 "configure" |
55e80573 | 13197 | #include "confdefs.h" |
90dd450c VZ |
13198 | /* System header to define __stub macros and hopefully few prototypes, |
13199 | which can conflict with char connect(); below. */ | |
13200 | #include <assert.h> | |
13201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13202 | /* We use char because int might match the return type of a gcc2 | |
13203 | builtin and then its argument prototype would still apply. */ | |
13204 | char connect(); | |
55e80573 VZ |
13205 | |
13206 | int main() { | |
13207 | ||
90dd450c VZ |
13208 | /* The GNU C library defines this for functions which it implements |
13209 | to always fail with ENOSYS. Some functions are actually named | |
13210 | something starting with __ and the normal name is an alias. */ | |
13211 | #if defined (__stub_connect) || defined (__stub___connect) | |
13212 | choke me | |
13213 | #else | |
13214 | connect(); | |
13215 | #endif | |
13216 | ||
55e80573 VZ |
13217 | ; return 0; } |
13218 | EOF | |
986ecc86 | 13219 | if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55e80573 | 13220 | rm -rf conftest* |
90dd450c | 13221 | eval "ac_cv_func_connect=yes" |
55e80573 VZ |
13222 | else |
13223 | echo "configure: failed program was:" >&5 | |
13224 | cat conftest.$ac_ext >&5 | |
13225 | rm -rf conftest* | |
90dd450c | 13226 | eval "ac_cv_func_connect=no" |
55e80573 VZ |
13227 | fi |
13228 | rm -f conftest* | |
55e80573 VZ |
13229 | fi |
13230 | ||
90dd450c VZ |
13231 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13232 | echo "$ac_t""yes" 1>&6 | |
13233 | : | |
13234 | else | |
13235 | echo "$ac_t""no" 1>&6 | |
13236 | fi | |
55e80573 | 13237 | |
90dd450c VZ |
13238 | if test $ac_cv_func_connect = no; then |
13239 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
986ecc86 | 13240 | echo "configure:13241: checking for connect in -lsocket" >&5 |
90dd450c VZ |
13241 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13242 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13244 | else | |
13245 | ac_save_LIBS="$LIBS" | |
13246 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13247 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13248 | #line 13249 "configure" |
90dd450c VZ |
13249 | #include "confdefs.h" |
13250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13251 | /* We use char because int might match the return type of a gcc2 | |
13252 | builtin and then its argument prototype would still apply. */ | |
13253 | char connect(); | |
55e80573 | 13254 | |
90dd450c VZ |
13255 | int main() { |
13256 | connect() | |
13257 | ; return 0; } | |
13258 | EOF | |
986ecc86 | 13259 | if { (eval echo configure:13260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13260 | rm -rf conftest* |
13261 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13262 | else | |
13263 | echo "configure: failed program was:" >&5 | |
13264 | cat conftest.$ac_ext >&5 | |
13265 | rm -rf conftest* | |
13266 | eval "ac_cv_lib_$ac_lib_var=no" | |
13267 | fi | |
13268 | rm -f conftest* | |
13269 | LIBS="$ac_save_LIBS" | |
77e13408 | 13270 | |
90dd450c VZ |
13271 | fi |
13272 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13273 | echo "$ac_t""yes" 1>&6 | |
13274 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13275 | else | |
13276 | echo "$ac_t""no" 1>&6 | |
13277 | fi | |
77e13408 | 13278 | |
90dd450c | 13279 | fi |
25d0687a | 13280 | |
90dd450c VZ |
13281 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13282 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
986ecc86 | 13283 | echo "configure:13284: checking for remove" >&5 |
90dd450c VZ |
13284 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13286 | else | |
13287 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13288 | #line 13289 "configure" |
90dd450c VZ |
13289 | #include "confdefs.h" |
13290 | /* System header to define __stub macros and hopefully few prototypes, | |
13291 | which can conflict with char remove(); below. */ | |
13292 | #include <assert.h> | |
13293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13294 | /* We use char because int might match the return type of a gcc2 | |
13295 | builtin and then its argument prototype would still apply. */ | |
13296 | char remove(); | |
7b7a7637 | 13297 | |
90dd450c | 13298 | int main() { |
55e80573 | 13299 | |
90dd450c VZ |
13300 | /* The GNU C library defines this for functions which it implements |
13301 | to always fail with ENOSYS. Some functions are actually named | |
13302 | something starting with __ and the normal name is an alias. */ | |
13303 | #if defined (__stub_remove) || defined (__stub___remove) | |
13304 | choke me | |
13305 | #else | |
13306 | remove(); | |
13307 | #endif | |
55e80573 | 13308 | |
90dd450c VZ |
13309 | ; return 0; } |
13310 | EOF | |
986ecc86 | 13311 | if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13312 | rm -rf conftest* |
13313 | eval "ac_cv_func_remove=yes" | |
13314 | else | |
13315 | echo "configure: failed program was:" >&5 | |
13316 | cat conftest.$ac_ext >&5 | |
13317 | rm -rf conftest* | |
13318 | eval "ac_cv_func_remove=no" | |
13319 | fi | |
13320 | rm -f conftest* | |
13321 | fi | |
55e80573 | 13322 | |
90dd450c VZ |
13323 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
13324 | echo "$ac_t""yes" 1>&6 | |
13325 | : | |
13326 | else | |
13327 | echo "$ac_t""no" 1>&6 | |
13328 | fi | |
10f2d63a | 13329 | |
90dd450c VZ |
13330 | if test $ac_cv_func_remove = no; then |
13331 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
986ecc86 | 13332 | echo "configure:13333: checking for remove in -lposix" >&5 |
90dd450c VZ |
13333 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13334 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13336 | else | |
13337 | ac_save_LIBS="$LIBS" | |
13338 | LIBS="-lposix $LIBS" | |
13339 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13340 | #line 13341 "configure" |
90dd450c VZ |
13341 | #include "confdefs.h" |
13342 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13343 | /* We use char because int might match the return type of a gcc2 | |
13344 | builtin and then its argument prototype would still apply. */ | |
13345 | char remove(); | |
55e80573 | 13346 | |
90dd450c VZ |
13347 | int main() { |
13348 | remove() | |
13349 | ; return 0; } | |
13350 | EOF | |
986ecc86 | 13351 | if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13352 | rm -rf conftest* |
13353 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13354 | else | |
13355 | echo "configure: failed program was:" >&5 | |
13356 | cat conftest.$ac_ext >&5 | |
13357 | rm -rf conftest* | |
13358 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13359 | fi |
90dd450c VZ |
13360 | rm -f conftest* |
13361 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 13362 | |
90dd450c VZ |
13363 | fi |
13364 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13365 | echo "$ac_t""yes" 1>&6 | |
13366 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13367 | else | |
13368 | echo "$ac_t""no" 1>&6 | |
13369 | fi | |
f6bcfd97 | 13370 | |
6fa882bd RR |
13371 | fi |
13372 | ||
90dd450c VZ |
13373 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
13374 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
986ecc86 | 13375 | echo "configure:13376: checking for shmat" >&5 |
90dd450c VZ |
13376 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13378 | else | |
13379 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13380 | #line 13381 "configure" |
90dd450c VZ |
13381 | #include "confdefs.h" |
13382 | /* System header to define __stub macros and hopefully few prototypes, | |
13383 | which can conflict with char shmat(); below. */ | |
13384 | #include <assert.h> | |
13385 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13386 | /* We use char because int might match the return type of a gcc2 | |
13387 | builtin and then its argument prototype would still apply. */ | |
13388 | char shmat(); | |
698dcdb6 | 13389 | |
90dd450c | 13390 | int main() { |
3a922bb4 | 13391 | |
90dd450c VZ |
13392 | /* The GNU C library defines this for functions which it implements |
13393 | to always fail with ENOSYS. Some functions are actually named | |
13394 | something starting with __ and the normal name is an alias. */ | |
13395 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13396 | choke me | |
13397 | #else | |
13398 | shmat(); | |
13399 | #endif | |
10f2d63a | 13400 | |
90dd450c VZ |
13401 | ; return 0; } |
13402 | EOF | |
986ecc86 | 13403 | if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13404 | rm -rf conftest* |
13405 | eval "ac_cv_func_shmat=yes" | |
d08b457b | 13406 | else |
90dd450c VZ |
13407 | echo "configure: failed program was:" >&5 |
13408 | cat conftest.$ac_ext >&5 | |
13409 | rm -rf conftest* | |
13410 | eval "ac_cv_func_shmat=no" | |
d08b457b | 13411 | fi |
90dd450c | 13412 | rm -f conftest* |
d08b457b | 13413 | fi |
90dd450c VZ |
13414 | |
13415 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13416 | echo "$ac_t""yes" 1>&6 | |
13417 | : | |
d08b457b GD |
13418 | else |
13419 | echo "$ac_t""no" 1>&6 | |
13420 | fi | |
13421 | ||
90dd450c VZ |
13422 | if test $ac_cv_func_shmat = no; then |
13423 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
986ecc86 | 13424 | echo "configure:13425: checking for shmat in -lipc" >&5 |
90dd450c VZ |
13425 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13426 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
d08b457b GD |
13427 | echo $ac_n "(cached) $ac_c" 1>&6 |
13428 | else | |
90dd450c VZ |
13429 | ac_save_LIBS="$LIBS" |
13430 | LIBS="-lipc $LIBS" | |
13431 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13432 | #line 13433 "configure" |
90dd450c VZ |
13433 | #include "confdefs.h" |
13434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13435 | /* We use char because int might match the return type of a gcc2 | |
13436 | builtin and then its argument prototype would still apply. */ | |
13437 | char shmat(); | |
13438 | ||
13439 | int main() { | |
13440 | shmat() | |
13441 | ; return 0; } | |
13442 | EOF | |
986ecc86 | 13443 | if { (eval echo configure:13444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13444 | rm -rf conftest* |
13445 | eval "ac_cv_lib_$ac_lib_var=yes" | |
d08b457b | 13446 | else |
90dd450c VZ |
13447 | echo "configure: failed program was:" >&5 |
13448 | cat conftest.$ac_ext >&5 | |
13449 | rm -rf conftest* | |
13450 | eval "ac_cv_lib_$ac_lib_var=no" | |
d08b457b | 13451 | fi |
90dd450c VZ |
13452 | rm -f conftest* |
13453 | LIBS="$ac_save_LIBS" | |
13454 | ||
d08b457b | 13455 | fi |
90dd450c VZ |
13456 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13457 | echo "$ac_t""yes" 1>&6 | |
13458 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
d08b457b GD |
13459 | else |
13460 | echo "$ac_t""no" 1>&6 | |
13461 | fi | |
13462 | ||
d558c907 | 13463 | fi |
90dd450c | 13464 | fi |
3a922bb4 | 13465 | |
90dd450c VZ |
13466 | # Check for libraries that X11R6 Xt/Xaw programs need. |
13467 | ac_save_LDFLAGS="$LDFLAGS" | |
13468 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13469 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13470 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13471 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13472 | # These have to be linked with before -lX11, unlike the other | |
13473 | # libraries we check for below, so use a different variable. | |
13474 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13475 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
986ecc86 | 13476 | echo "configure:13477: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
13477 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13478 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13479 | echo $ac_n "(cached) $ac_c" 1>&6 |
13480 | else | |
90dd450c VZ |
13481 | ac_save_LIBS="$LIBS" |
13482 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13483 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13484 | #line 13485 "configure" |
9cfadba2 | 13485 | #include "confdefs.h" |
90dd450c VZ |
13486 | /* Override any gcc2 internal prototype to avoid an error. */ |
13487 | /* We use char because int might match the return type of a gcc2 | |
13488 | builtin and then its argument prototype would still apply. */ | |
13489 | char IceConnectionNumber(); | |
13490 | ||
13491 | int main() { | |
13492 | IceConnectionNumber() | |
13493 | ; return 0; } | |
698dcdb6 | 13494 | EOF |
986ecc86 | 13495 | if { (eval echo configure:13496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13496 | rm -rf conftest* |
90dd450c | 13497 | eval "ac_cv_lib_$ac_lib_var=yes" |
6232543b | 13498 | else |
698dcdb6 | 13499 | echo "configure: failed program was:" >&5 |
9cfadba2 | 13500 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13501 | rm -rf conftest* |
90dd450c | 13502 | eval "ac_cv_lib_$ac_lib_var=no" |
9cfadba2 | 13503 | fi |
698dcdb6 | 13504 | rm -f conftest* |
90dd450c VZ |
13505 | LIBS="$ac_save_LIBS" |
13506 | ||
9cfadba2 | 13507 | fi |
90dd450c | 13508 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 13509 | echo "$ac_t""yes" 1>&6 |
90dd450c | 13510 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
13511 | else |
13512 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13513 | fi |
10f2d63a | 13514 | |
90dd450c VZ |
13515 | LDFLAGS="$ac_save_LDFLAGS" |
13516 | ||
13517 | fi | |
13518 | ||
13519 | ||
13520 | if test "$no_x" = "yes"; then | |
13521 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13522 | fi | |
13523 | ||
13524 | GUI_TK_LIBRARY="$X_LIBS" | |
13525 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13526 | AFMINSTALL=afminstall | |
13527 | COMPILED_X_PROGRAM=0 | |
13528 | ||
21d1c967 GD |
13529 | if test "$wxUSE_NANOX" = "yes"; then |
13530 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
986ecc86 | 13531 | echo "configure:13532: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 GD |
13532 | if test "x$MICROWIN" = x ; then |
13533 | echo "$ac_t""not found" 1>&6 | |
13534 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13535 | else |
21d1c967 GD |
13536 | echo "$ac_t""$MICROWIN" 1>&6 |
13537 | cat >> confdefs.h <<\EOF | |
13538 | #define wxUSE_NANOX 1 | |
698dcdb6 | 13539 | EOF |
21d1c967 | 13540 | |
90dd450c VZ |
13541 | fi |
13542 | fi | |
13543 | ||
13544 | xpm_link= | |
13545 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
986ecc86 | 13546 | echo "configure:13547: checking for Xpm library" >&5 |
90dd450c VZ |
13547 | |
13548 | ac_find_libraries= | |
13549 | for ac_dir in $SEARCH_LIB; | |
13550 | do | |
13551 | for ac_extension in a so sl dylib; do | |
13552 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13553 | ac_find_libraries=$ac_dir | |
13554 | break 2 | |
13555 | fi | |
13556 | done | |
13557 | done | |
13558 | ||
13559 | if test "$ac_find_libraries" != "" ; then | |
13560 | ||
13561 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13562 | result=$? | |
13563 | if test $result = 0; then | |
13564 | ac_path_to_link="" | |
13565 | else | |
13566 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13567 | fi |
90dd450c | 13568 | |
21d1c967 GD |
13569 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13570 | xpm_link=" -lXpm" | |
13571 | cat >> confdefs.h <<\EOF | |
13572 | #define wxHAVE_LIB_XPM 1 | |
13573 | EOF | |
90dd450c | 13574 | |
21d1c967 GD |
13575 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13576 | else | |
13577 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13578 | #line 13579 "configure" |
21d1c967 | 13579 | #include "confdefs.h" |
90dd450c | 13580 | |
21d1c967 GD |
13581 | #include <X11/xpm.h> |
13582 | ||
13583 | int main() { | |
6f72b082 | 13584 | |
21d1c967 GD |
13585 | int version; |
13586 | version = XpmLibraryVersion(); | |
13587 | ||
13588 | ; return 0; } | |
13589 | EOF | |
986ecc86 | 13590 | if { (eval echo configure:13591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
13591 | rm -rf conftest* |
13592 | ||
13593 | xpm_link=" -lXpm" | |
13594 | cat >> confdefs.h <<\EOF | |
13595 | #define wxHAVE_LIB_XPM 1 | |
13596 | EOF | |
90dd450c | 13597 | |
21d1c967 GD |
13598 | echo "$ac_t""found in default search path" 1>&6 |
13599 | COMPILED_X_PROGRAM=0 | |
13600 | ||
13601 | else | |
13602 | echo "configure: failed program was:" >&5 | |
13603 | cat conftest.$ac_ext >&5 | |
13604 | rm -rf conftest* | |
13605 | ||
13606 | echo "$ac_t""no" 1>&6 | |
13607 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13608 | ||
13609 | ||
6f72b082 | 13610 | fi |
21d1c967 GD |
13611 | rm -f conftest* |
13612 | fi | |
90dd450c | 13613 | |
1d1b75ac VZ |
13614 | wxUSE_UNIVERSAL="yes" |
13615 | ||
21d1c967 GD |
13616 | if test "$wxUSE_NANOX" = "yes"; then |
13617 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13618 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
13619 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13620 | else | |
13621 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13622 | fi | |
6f72b082 | 13623 | |
21d1c967 GD |
13624 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13625 | TOOLKIT=X11 | |
13626 | GUIDIST=X11_DIST | |
13627 | fi | |
90dd450c | 13628 | |
21d1c967 GD |
13629 | if test "$wxUSE_WINE" = 1; then |
13630 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13631 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
986ecc86 | 13632 | echo "configure:13633: checking for windows.h" >&5 |
698dcdb6 VZ |
13633 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13635 | else | |
13636 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13637 | #line 13638 "configure" |
6f72b082 | 13638 | #include "confdefs.h" |
21d1c967 | 13639 | #include <windows.h> |
698dcdb6 VZ |
13640 | EOF |
13641 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 13642 | { (eval echo configure:13643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13643 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13644 | if test -z "$ac_err"; then | |
13645 | rm -rf conftest* | |
13646 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13647 | else |
698dcdb6 VZ |
13648 | echo "$ac_err" >&5 |
13649 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13650 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13651 | rm -rf conftest* |
13652 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13653 | fi |
698dcdb6 | 13654 | rm -f conftest* |
10f2d63a | 13655 | fi |
698dcdb6 VZ |
13656 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13657 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13658 | : |
13659 | else | |
13660 | echo "$ac_t""no" 1>&6 | |
13661 | ||
13662 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13663 | ||
13664 | fi | |
13665 | ||
13666 | ||
13667 | xpm_link= | |
13668 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
986ecc86 | 13669 | echo "configure:13670: checking for Xpm library" >&5 |
21d1c967 | 13670 | |
90dd450c VZ |
13671 | ac_find_libraries= |
13672 | for ac_dir in $SEARCH_LIB; | |
13673 | do | |
13674 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13675 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13676 | ac_find_libraries=$ac_dir |
13677 | break 2 | |
13678 | fi | |
13679 | done | |
13680 | done | |
13681 | ||
21d1c967 GD |
13682 | if test "$ac_find_libraries" != "" ; then |
13683 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13684 | xpm_link=" -lXpm" | |
13685 | cat >> confdefs.h <<\EOF | |
13686 | #define wxHAVE_LIB_XPM 1 | |
13687 | EOF | |
90dd450c | 13688 | |
21d1c967 GD |
13689 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13690 | else | |
13691 | echo "$ac_t""no" 1>&6 | |
13692 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13693 | fi | |
13694 | ||
13695 | mesa_link= | |
13696 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
986ecc86 | 13697 | echo "configure:13698: checking for Mesa library" >&5 |
21d1c967 | 13698 | |
90dd450c VZ |
13699 | ac_find_libraries= |
13700 | for ac_dir in $SEARCH_LIB; | |
13701 | do | |
13702 | for ac_extension in a so sl dylib; do | |
13703 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13704 | ac_find_libraries=$ac_dir | |
13705 | break 2 | |
13706 | fi | |
13707 | done | |
13708 | done | |
13709 | ||
21d1c967 GD |
13710 | if test "$ac_find_libraries" != "" ; then |
13711 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13712 | mesa_link=" -lMesaGL" | |
13713 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13714 | else | |
13715 | { echo "configure: error: no" 1>&2; exit 1; } | |
13716 | fi | |
13717 | ||
13718 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13719 | TOOLKIT=MSW | |
13720 | GUIDIST=MSW_DIST | |
13721 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13722 | fi | |
13723 | ||
13724 | if test "$wxUSE_MOTIF" = 1; then | |
13725 | if test "$no_x" = yes; then | |
13726 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13727 | cat >> confdefs.h <<\EOF | |
13728 | #define X_DISPLAY_MISSING 1 | |
13729 | EOF | |
13730 | ||
13731 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13732 | else | |
13733 | if test -n "$x_includes"; then | |
13734 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13735 | fi |
13736 | ||
21d1c967 GD |
13737 | # It would also be nice to do this for all -L options, not just this one. |
13738 | if test -n "$x_libraries"; then | |
13739 | X_LIBS="$X_LIBS -L$x_libraries" | |
13740 | # For Solaris; some versions of Sun CC require a space after -R and | |
13741 | # others require no space. Words are not sufficient . . . . | |
13742 | case "`(uname -sr) 2>/dev/null`" in | |
13743 | "SunOS 5"*) | |
13744 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
986ecc86 | 13745 | echo "configure:13746: checking whether -R must be followed by a space" >&5 |
21d1c967 GD |
13746 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13747 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13748 | #line 13749 "configure" |
21d1c967 GD |
13749 | #include "confdefs.h" |
13750 | ||
13751 | int main() { | |
13752 | ||
13753 | ; return 0; } | |
13754 | EOF | |
986ecc86 | 13755 | if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13756 | rm -rf conftest* |
13757 | ac_R_nospace=yes | |
698dcdb6 | 13758 | else |
21d1c967 GD |
13759 | echo "configure: failed program was:" >&5 |
13760 | cat conftest.$ac_ext >&5 | |
13761 | rm -rf conftest* | |
13762 | ac_R_nospace=no | |
10f2d63a | 13763 | fi |
21d1c967 GD |
13764 | rm -f conftest* |
13765 | if test $ac_R_nospace = yes; then | |
13766 | echo "$ac_t""no" 1>&6 | |
13767 | X_LIBS="$X_LIBS -R$x_libraries" | |
13768 | else | |
13769 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13770 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13771 | #line 13772 "configure" |
21d1c967 | 13772 | #include "confdefs.h" |
10f2d63a | 13773 | |
21d1c967 | 13774 | int main() { |
f0c87536 | 13775 | |
21d1c967 | 13776 | ; return 0; } |
698dcdb6 | 13777 | EOF |
986ecc86 | 13778 | if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13779 | rm -rf conftest* |
13780 | ac_R_space=yes | |
13781 | else | |
13782 | echo "configure: failed program was:" >&5 | |
13783 | cat conftest.$ac_ext >&5 | |
13784 | rm -rf conftest* | |
13785 | ac_R_space=no | |
13786 | fi | |
13787 | rm -f conftest* | |
13788 | if test $ac_R_space = yes; then | |
13789 | echo "$ac_t""yes" 1>&6 | |
13790 | X_LIBS="$X_LIBS -R $x_libraries" | |
13791 | else | |
13792 | echo "$ac_t""neither works" 1>&6 | |
13793 | fi | |
13794 | fi | |
13795 | LIBS="$ac_xsave_LIBS" | |
13796 | esac | |
13797 | fi | |
90dd450c | 13798 | |
21d1c967 GD |
13799 | # Check for system-dependent libraries X programs must link with. |
13800 | # Do this before checking for the system-independent R6 libraries | |
13801 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13802 | ||
13803 | if test "$ISC" = yes; then | |
13804 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13805 | else | |
13806 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13807 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13808 | # the Alpha needs dnet_stub (dnet does not exist). | |
13809 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
986ecc86 | 13810 | echo "configure:13811: checking for dnet_ntoa in -ldnet" >&5 |
21d1c967 GD |
13811 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13812 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13814 | else | |
13815 | ac_save_LIBS="$LIBS" | |
13816 | LIBS="-ldnet $LIBS" | |
13817 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13818 | #line 13819 "configure" |
21d1c967 GD |
13819 | #include "confdefs.h" |
13820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13821 | /* We use char because int might match the return type of a gcc2 | |
13822 | builtin and then its argument prototype would still apply. */ | |
13823 | char dnet_ntoa(); | |
13824 | ||
13825 | int main() { | |
13826 | dnet_ntoa() | |
13827 | ; return 0; } | |
90dd450c | 13828 | EOF |
986ecc86 | 13829 | if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13830 | rm -rf conftest* |
13831 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13832 | else | |
13833 | echo "configure: failed program was:" >&5 | |
13834 | cat conftest.$ac_ext >&5 | |
13835 | rm -rf conftest* | |
13836 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fb0dd83 | 13837 | fi |
21d1c967 GD |
13838 | rm -f conftest* |
13839 | LIBS="$ac_save_LIBS" | |
90dd450c | 13840 | |
0fb0dd83 | 13841 | fi |
21d1c967 GD |
13842 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13843 | echo "$ac_t""yes" 1>&6 | |
13844 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13845 | else | |
13846 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 13847 | fi |
0fb0dd83 | 13848 | |
21d1c967 GD |
13849 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13850 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
986ecc86 | 13851 | echo "configure:13852: checking for dnet_ntoa in -ldnet_stub" >&5 |
21d1c967 GD |
13852 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13853 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13855 | else | |
13856 | ac_save_LIBS="$LIBS" | |
13857 | LIBS="-ldnet_stub $LIBS" | |
13858 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13859 | #line 13860 "configure" |
21d1c967 GD |
13860 | #include "confdefs.h" |
13861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13862 | /* We use char because int might match the return type of a gcc2 | |
13863 | builtin and then its argument prototype would still apply. */ | |
13864 | char dnet_ntoa(); | |
90dd450c | 13865 | |
21d1c967 GD |
13866 | int main() { |
13867 | dnet_ntoa() | |
13868 | ; return 0; } | |
13869 | EOF | |
986ecc86 | 13870 | if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13871 | rm -rf conftest* |
13872 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13873 | else | |
13874 | echo "configure: failed program was:" >&5 | |
13875 | cat conftest.$ac_ext >&5 | |
13876 | rm -rf conftest* | |
13877 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 13878 | fi |
21d1c967 GD |
13879 | rm -f conftest* |
13880 | LIBS="$ac_save_LIBS" | |
90dd450c | 13881 | |
21d1c967 GD |
13882 | fi |
13883 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13884 | echo "$ac_t""yes" 1>&6 | |
13885 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13886 | else | |
13887 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
13888 | fi |
13889 | ||
21d1c967 | 13890 | fi |
90dd450c | 13891 | |
21d1c967 GD |
13892 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13893 | # to get the SysV transport functions. | |
13894 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13895 | # needs -lnsl. | |
13896 | # The nsl library prevents programs from opening the X display | |
13897 | # on Irix 5.2, according to dickey@clark.net. | |
13898 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
986ecc86 | 13899 | echo "configure:13900: checking for gethostbyname" >&5 |
21d1c967 GD |
13900 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13902 | else | |
13903 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13904 | #line 13905 "configure" |
21d1c967 GD |
13905 | #include "confdefs.h" |
13906 | /* System header to define __stub macros and hopefully few prototypes, | |
13907 | which can conflict with char gethostbyname(); below. */ | |
13908 | #include <assert.h> | |
13909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13910 | /* We use char because int might match the return type of a gcc2 | |
13911 | builtin and then its argument prototype would still apply. */ | |
13912 | char gethostbyname(); | |
90dd450c | 13913 | |
21d1c967 | 13914 | int main() { |
90dd450c | 13915 | |
21d1c967 GD |
13916 | /* The GNU C library defines this for functions which it implements |
13917 | to always fail with ENOSYS. Some functions are actually named | |
13918 | something starting with __ and the normal name is an alias. */ | |
13919 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13920 | choke me | |
13921 | #else | |
13922 | gethostbyname(); | |
13923 | #endif | |
90dd450c | 13924 | |
21d1c967 GD |
13925 | ; return 0; } |
13926 | EOF | |
986ecc86 | 13927 | if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13928 | rm -rf conftest* |
13929 | eval "ac_cv_func_gethostbyname=yes" | |
13930 | else | |
13931 | echo "configure: failed program was:" >&5 | |
13932 | cat conftest.$ac_ext >&5 | |
13933 | rm -rf conftest* | |
13934 | eval "ac_cv_func_gethostbyname=no" | |
13935 | fi | |
13936 | rm -f conftest* | |
90dd450c VZ |
13937 | fi |
13938 | ||
21d1c967 GD |
13939 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13940 | echo "$ac_t""yes" 1>&6 | |
13941 | : | |
13942 | else | |
13943 | echo "$ac_t""no" 1>&6 | |
13944 | fi | |
90dd450c | 13945 | |
21d1c967 GD |
13946 | if test $ac_cv_func_gethostbyname = no; then |
13947 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
986ecc86 | 13948 | echo "configure:13949: checking for gethostbyname in -lnsl" >&5 |
21d1c967 GD |
13949 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13950 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13952 | else | |
13953 | ac_save_LIBS="$LIBS" | |
13954 | LIBS="-lnsl $LIBS" | |
13955 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 13956 | #line 13957 "configure" |
21d1c967 GD |
13957 | #include "confdefs.h" |
13958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13959 | /* We use char because int might match the return type of a gcc2 | |
13960 | builtin and then its argument prototype would still apply. */ | |
13961 | char gethostbyname(); | |
90dd450c | 13962 | |
21d1c967 GD |
13963 | int main() { |
13964 | gethostbyname() | |
13965 | ; return 0; } | |
13966 | EOF | |
986ecc86 | 13967 | if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13968 | rm -rf conftest* |
13969 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13970 | else | |
13971 | echo "configure: failed program was:" >&5 | |
13972 | cat conftest.$ac_ext >&5 | |
13973 | rm -rf conftest* | |
13974 | eval "ac_cv_lib_$ac_lib_var=no" | |
1f8ae82f | 13975 | fi |
21d1c967 GD |
13976 | rm -f conftest* |
13977 | LIBS="$ac_save_LIBS" | |
f0c87536 | 13978 | |
21d1c967 GD |
13979 | fi |
13980 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13981 | echo "$ac_t""yes" 1>&6 | |
13982 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13983 | else | |
13984 | echo "$ac_t""no" 1>&6 | |
13985 | fi | |
90dd450c | 13986 | |
90dd450c VZ |
13987 | fi |
13988 | ||
21d1c967 GD |
13989 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
13990 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13991 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13992 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13993 | # gethostby* variants that don't use the nameserver (or something). | |
13994 | # -lsocket must be given before -lnsl if both are needed. | |
13995 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13996 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
986ecc86 | 13997 | echo "configure:13998: checking for connect" >&5 |
21d1c967 GD |
13998 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14000 | else | |
14001 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14002 | #line 14003 "configure" |
21d1c967 GD |
14003 | #include "confdefs.h" |
14004 | /* System header to define __stub macros and hopefully few prototypes, | |
14005 | which can conflict with char connect(); below. */ | |
14006 | #include <assert.h> | |
14007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14008 | /* We use char because int might match the return type of a gcc2 | |
14009 | builtin and then its argument prototype would still apply. */ | |
14010 | char connect(); | |
90dd450c | 14011 | |
21d1c967 | 14012 | int main() { |
90dd450c | 14013 | |
21d1c967 GD |
14014 | /* The GNU C library defines this for functions which it implements |
14015 | to always fail with ENOSYS. Some functions are actually named | |
14016 | something starting with __ and the normal name is an alias. */ | |
14017 | #if defined (__stub_connect) || defined (__stub___connect) | |
14018 | choke me | |
14019 | #else | |
14020 | connect(); | |
14021 | #endif | |
90dd450c | 14022 | |
21d1c967 GD |
14023 | ; return 0; } |
14024 | EOF | |
986ecc86 | 14025 | if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14026 | rm -rf conftest* |
14027 | eval "ac_cv_func_connect=yes" | |
14028 | else | |
14029 | echo "configure: failed program was:" >&5 | |
14030 | cat conftest.$ac_ext >&5 | |
14031 | rm -rf conftest* | |
14032 | eval "ac_cv_func_connect=no" | |
14033 | fi | |
14034 | rm -f conftest* | |
14035 | fi | |
90dd450c | 14036 | |
21d1c967 GD |
14037 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
14038 | echo "$ac_t""yes" 1>&6 | |
14039 | : | |
14040 | else | |
14041 | echo "$ac_t""no" 1>&6 | |
14042 | fi | |
1f8ae82f | 14043 | |
21d1c967 GD |
14044 | if test $ac_cv_func_connect = no; then |
14045 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
986ecc86 | 14046 | echo "configure:14047: checking for connect in -lsocket" >&5 |
21d1c967 GD |
14047 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14048 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
0fbb762e MB |
14049 | echo $ac_n "(cached) $ac_c" 1>&6 |
14050 | else | |
21d1c967 GD |
14051 | ac_save_LIBS="$LIBS" |
14052 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
14053 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14054 | #line 14055 "configure" |
0fbb762e | 14055 | #include "confdefs.h" |
21d1c967 GD |
14056 | /* Override any gcc2 internal prototype to avoid an error. */ |
14057 | /* We use char because int might match the return type of a gcc2 | |
14058 | builtin and then its argument prototype would still apply. */ | |
14059 | char connect(); | |
90dd450c VZ |
14060 | |
14061 | int main() { | |
21d1c967 | 14062 | connect() |
90dd450c | 14063 | ; return 0; } |
0fbb762e | 14064 | EOF |
986ecc86 | 14065 | if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0fbb762e | 14066 | rm -rf conftest* |
21d1c967 | 14067 | eval "ac_cv_lib_$ac_lib_var=yes" |
0fbb762e | 14068 | else |
0fbb762e MB |
14069 | echo "configure: failed program was:" >&5 |
14070 | cat conftest.$ac_ext >&5 | |
14071 | rm -rf conftest* | |
21d1c967 | 14072 | eval "ac_cv_lib_$ac_lib_var=no" |
0fbb762e MB |
14073 | fi |
14074 | rm -f conftest* | |
21d1c967 | 14075 | LIBS="$ac_save_LIBS" |
90dd450c | 14076 | |
21d1c967 GD |
14077 | fi |
14078 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14079 | echo "$ac_t""yes" 1>&6 | |
14080 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
14081 | else | |
14082 | echo "$ac_t""no" 1>&6 | |
14083 | fi | |
90dd450c | 14084 | |
21d1c967 | 14085 | fi |
90dd450c | 14086 | |
21d1c967 GD |
14087 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14088 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
986ecc86 | 14089 | echo "configure:14090: checking for remove" >&5 |
21d1c967 GD |
14090 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14092 | else | |
14093 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14094 | #line 14095 "configure" |
21d1c967 GD |
14095 | #include "confdefs.h" |
14096 | /* System header to define __stub macros and hopefully few prototypes, | |
14097 | which can conflict with char remove(); below. */ | |
14098 | #include <assert.h> | |
14099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14100 | /* We use char because int might match the return type of a gcc2 | |
14101 | builtin and then its argument prototype would still apply. */ | |
14102 | char remove(); | |
90dd450c | 14103 | |
21d1c967 | 14104 | int main() { |
90dd450c | 14105 | |
21d1c967 GD |
14106 | /* The GNU C library defines this for functions which it implements |
14107 | to always fail with ENOSYS. Some functions are actually named | |
14108 | something starting with __ and the normal name is an alias. */ | |
14109 | #if defined (__stub_remove) || defined (__stub___remove) | |
14110 | choke me | |
14111 | #else | |
14112 | remove(); | |
14113 | #endif | |
90dd450c | 14114 | |
21d1c967 GD |
14115 | ; return 0; } |
14116 | EOF | |
986ecc86 | 14117 | if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14118 | rm -rf conftest* |
14119 | eval "ac_cv_func_remove=yes" | |
14120 | else | |
14121 | echo "configure: failed program was:" >&5 | |
14122 | cat conftest.$ac_ext >&5 | |
14123 | rm -rf conftest* | |
14124 | eval "ac_cv_func_remove=no" | |
14125 | fi | |
14126 | rm -f conftest* | |
14127 | fi | |
90dd450c | 14128 | |
21d1c967 GD |
14129 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
14130 | echo "$ac_t""yes" 1>&6 | |
14131 | : | |
14132 | else | |
14133 | echo "$ac_t""no" 1>&6 | |
14134 | fi | |
90dd450c | 14135 | |
21d1c967 GD |
14136 | if test $ac_cv_func_remove = no; then |
14137 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
986ecc86 | 14138 | echo "configure:14139: checking for remove in -lposix" >&5 |
21d1c967 GD |
14139 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14142 | else | |
14143 | ac_save_LIBS="$LIBS" | |
14144 | LIBS="-lposix $LIBS" | |
14145 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14146 | #line 14147 "configure" |
21d1c967 GD |
14147 | #include "confdefs.h" |
14148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14149 | /* We use char because int might match the return type of a gcc2 | |
14150 | builtin and then its argument prototype would still apply. */ | |
14151 | char remove(); | |
90dd450c | 14152 | |
21d1c967 GD |
14153 | int main() { |
14154 | remove() | |
14155 | ; return 0; } | |
14156 | EOF | |
986ecc86 | 14157 | if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14158 | rm -rf conftest* |
14159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14160 | else | |
14161 | echo "configure: failed program was:" >&5 | |
14162 | cat conftest.$ac_ext >&5 | |
14163 | rm -rf conftest* | |
14164 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fbb762e | 14165 | fi |
21d1c967 GD |
14166 | rm -f conftest* |
14167 | LIBS="$ac_save_LIBS" | |
0fbb762e | 14168 | |
21d1c967 GD |
14169 | fi |
14170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14171 | echo "$ac_t""yes" 1>&6 | |
14172 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14173 | else | |
14174 | echo "$ac_t""no" 1>&6 | |
14175 | fi | |
19bc6aad | 14176 | |
90dd450c | 14177 | fi |
19bc6aad | 14178 | |
21d1c967 GD |
14179 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
14180 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
986ecc86 | 14181 | echo "configure:14182: checking for shmat" >&5 |
21d1c967 GD |
14182 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14184 | else | |
14185 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14186 | #line 14187 "configure" |
21d1c967 GD |
14187 | #include "confdefs.h" |
14188 | /* System header to define __stub macros and hopefully few prototypes, | |
14189 | which can conflict with char shmat(); below. */ | |
14190 | #include <assert.h> | |
14191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14192 | /* We use char because int might match the return type of a gcc2 | |
14193 | builtin and then its argument prototype would still apply. */ | |
14194 | char shmat(); | |
19bc6aad | 14195 | |
21d1c967 | 14196 | int main() { |
90dd450c | 14197 | |
21d1c967 GD |
14198 | /* The GNU C library defines this for functions which it implements |
14199 | to always fail with ENOSYS. Some functions are actually named | |
14200 | something starting with __ and the normal name is an alias. */ | |
14201 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14202 | choke me | |
14203 | #else | |
14204 | shmat(); | |
14205 | #endif | |
90dd450c | 14206 | |
21d1c967 GD |
14207 | ; return 0; } |
14208 | EOF | |
986ecc86 | 14209 | if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14210 | rm -rf conftest* |
14211 | eval "ac_cv_func_shmat=yes" | |
90dd450c | 14212 | else |
21d1c967 GD |
14213 | echo "configure: failed program was:" >&5 |
14214 | cat conftest.$ac_ext >&5 | |
14215 | rm -rf conftest* | |
14216 | eval "ac_cv_func_shmat=no" | |
19bc6aad | 14217 | fi |
21d1c967 | 14218 | rm -f conftest* |
19bc6aad | 14219 | fi |
21d1c967 GD |
14220 | |
14221 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14222 | echo "$ac_t""yes" 1>&6 | |
14223 | : | |
19bc6aad VZ |
14224 | else |
14225 | echo "$ac_t""no" 1>&6 | |
14226 | fi | |
19bc6aad | 14227 | |
21d1c967 GD |
14228 | if test $ac_cv_func_shmat = no; then |
14229 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
986ecc86 | 14230 | echo "configure:14231: checking for shmat in -lipc" >&5 |
21d1c967 GD |
14231 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9f8148b1 GD |
14233 | echo $ac_n "(cached) $ac_c" 1>&6 |
14234 | else | |
21d1c967 GD |
14235 | ac_save_LIBS="$LIBS" |
14236 | LIBS="-lipc $LIBS" | |
14237 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14238 | #line 14239 "configure" |
21d1c967 GD |
14239 | #include "confdefs.h" |
14240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14241 | /* We use char because int might match the return type of a gcc2 | |
14242 | builtin and then its argument prototype would still apply. */ | |
14243 | char shmat(); | |
14244 | ||
14245 | int main() { | |
14246 | shmat() | |
14247 | ; return 0; } | |
14248 | EOF | |
986ecc86 | 14249 | if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14250 | rm -rf conftest* |
14251 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9f8148b1 | 14252 | else |
21d1c967 GD |
14253 | echo "configure: failed program was:" >&5 |
14254 | cat conftest.$ac_ext >&5 | |
14255 | rm -rf conftest* | |
14256 | eval "ac_cv_lib_$ac_lib_var=no" | |
9f8148b1 | 14257 | fi |
21d1c967 GD |
14258 | rm -f conftest* |
14259 | LIBS="$ac_save_LIBS" | |
14260 | ||
9f8148b1 | 14261 | fi |
21d1c967 GD |
14262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14263 | echo "$ac_t""yes" 1>&6 | |
14264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
9f8148b1 GD |
14265 | else |
14266 | echo "$ac_t""no" 1>&6 | |
14267 | fi | |
90dd450c | 14268 | |
90dd450c | 14269 | fi |
21d1c967 | 14270 | fi |
10f2d63a | 14271 | |
21d1c967 GD |
14272 | # Check for libraries that X11R6 Xt/Xaw programs need. |
14273 | ac_save_LDFLAGS="$LDFLAGS" | |
14274 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14275 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14276 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14277 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14278 | # These have to be linked with before -lX11, unlike the other | |
14279 | # libraries we check for below, so use a different variable. | |
14280 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14281 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
986ecc86 | 14282 | echo "configure:14283: checking for IceConnectionNumber in -lICE" >&5 |
21d1c967 GD |
14283 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
29fd3c0c VS |
14285 | echo $ac_n "(cached) $ac_c" 1>&6 |
14286 | else | |
21d1c967 GD |
14287 | ac_save_LIBS="$LIBS" |
14288 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14289 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14290 | #line 14291 "configure" |
29fd3c0c | 14291 | #include "confdefs.h" |
21d1c967 GD |
14292 | /* Override any gcc2 internal prototype to avoid an error. */ |
14293 | /* We use char because int might match the return type of a gcc2 | |
14294 | builtin and then its argument prototype would still apply. */ | |
14295 | char IceConnectionNumber(); | |
14296 | ||
14297 | int main() { | |
14298 | IceConnectionNumber() | |
14299 | ; return 0; } | |
29fd3c0c | 14300 | EOF |
986ecc86 | 14301 | if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29fd3c0c | 14302 | rm -rf conftest* |
21d1c967 | 14303 | eval "ac_cv_lib_$ac_lib_var=yes" |
29fd3c0c | 14304 | else |
29fd3c0c VS |
14305 | echo "configure: failed program was:" >&5 |
14306 | cat conftest.$ac_ext >&5 | |
14307 | rm -rf conftest* | |
21d1c967 | 14308 | eval "ac_cv_lib_$ac_lib_var=no" |
29fd3c0c VS |
14309 | fi |
14310 | rm -f conftest* | |
21d1c967 GD |
14311 | LIBS="$ac_save_LIBS" |
14312 | ||
29fd3c0c | 14313 | fi |
21d1c967 | 14314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
29fd3c0c | 14315 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14316 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c VS |
14317 | else |
14318 | echo "$ac_t""no" 1>&6 | |
14319 | fi | |
21d1c967 GD |
14320 | |
14321 | LDFLAGS="$ac_save_LDFLAGS" | |
29fd3c0c | 14322 | |
10f2d63a VZ |
14323 | fi |
14324 | ||
21d1c967 GD |
14325 | |
14326 | if test "$no_x" = "yes"; then | |
14327 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14328 | fi | |
14329 | ||
14330 | GUI_TK_LIBRARY="$X_LIBS" | |
14331 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14332 | AFMINSTALL=afminstall | |
14333 | COMPILED_X_PROGRAM=0 | |
14334 | ||
14335 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
986ecc86 | 14336 | echo "configure:14337: checking for Motif/Lesstif headers" >&5 |
21d1c967 GD |
14337 | |
14338 | ac_find_includes= | |
14339 | for ac_dir in $SEARCH_INCLUDE; | |
14340 | do | |
14341 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14342 | ac_find_includes=$ac_dir | |
14343 | break | |
14344 | fi | |
14345 | done | |
14346 | ||
14347 | if test "$ac_find_includes" != "" ; then | |
14348 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
14349 | else | |
14350 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14351 | #line 14352 "configure" |
10f2d63a | 14352 | #include "confdefs.h" |
21d1c967 GD |
14353 | |
14354 | #include <Xm/Xm.h> | |
14355 | ||
14356 | int main() { | |
14357 | ||
14358 | int version; | |
14359 | version = xmUseVersion; | |
14360 | ||
14361 | ; return 0; } | |
698dcdb6 | 14362 | EOF |
986ecc86 | 14363 | if { (eval echo configure:14364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14364 | rm -rf conftest* |
21d1c967 GD |
14365 | |
14366 | echo "$ac_t""found in default search path" 1>&6 | |
14367 | COMPILED_X_PROGRAM=1 | |
14368 | ||
10f2d63a | 14369 | else |
90dd450c VZ |
14370 | echo "configure: failed program was:" >&5 |
14371 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 14372 | rm -rf conftest* |
21d1c967 GD |
14373 | |
14374 | echo "$ac_t""no" 1>&6 | |
14375 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14376 | ||
14377 | ||
10f2d63a VZ |
14378 | fi |
14379 | rm -f conftest* | |
21d1c967 | 14380 | fi |
10f2d63a | 14381 | |
21d1c967 GD |
14382 | if test "$COMPILED_X_PROGRAM" = 0; then |
14383 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
986ecc86 | 14384 | echo "configure:14385: checking for Motif/Lesstif library" >&5 |
21d1c967 GD |
14385 | |
14386 | ac_find_libraries= | |
14387 | for ac_dir in $SEARCH_LIB; | |
14388 | do | |
14389 | for ac_extension in a so sl dylib; do | |
14390 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14391 | ac_find_libraries=$ac_dir | |
14392 | break 2 | |
14393 | fi | |
14394 | done | |
14395 | done | |
14396 | ||
14397 | if test "$ac_find_libraries" != "" ; then | |
14398 | ||
14399 | ac_path_to_include=$ac_find_includes | |
14400 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14401 | result=$? | |
14402 | if test $result = 0; then | |
14403 | ac_path_to_include="" | |
14404 | else | |
14405 | ac_path_to_include=" -I$ac_find_includes" | |
14406 | fi | |
14407 | ||
14408 | ||
14409 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14410 | result=$? | |
14411 | if test $result = 0; then | |
14412 | ac_path_to_link="" | |
14413 | else | |
14414 | ac_path_to_link=" -L$ac_find_libraries" | |
14415 | fi | |
14416 | ||
14417 | ||
14418 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14419 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
14420 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14421 | else | |
14422 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14423 | #line 14424 "configure" |
d836ee96 | 14424 | #include "confdefs.h" |
21d1c967 GD |
14425 | |
14426 | #include <Xm/Xm.h> | |
14427 | ||
14428 | int main() { | |
14429 | ||
14430 | int version; | |
14431 | version = xmUseVersion; | |
14432 | ||
14433 | ; return 0; } | |
d836ee96 | 14434 | EOF |
986ecc86 | 14435 | if { (eval echo configure:14436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14436 | rm -rf conftest* |
21d1c967 GD |
14437 | |
14438 | echo "$ac_t""found in default search path" 1>&6 | |
14439 | COMPILED_X_PROGRAM=1 | |
14440 | ||
d836ee96 VZ |
14441 | else |
14442 | echo "configure: failed program was:" >&5 | |
14443 | cat conftest.$ac_ext >&5 | |
14444 | rm -rf conftest* | |
21d1c967 GD |
14445 | |
14446 | echo "$ac_t""no" 1>&6 | |
14447 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14448 | ||
14449 | ||
d836ee96 VZ |
14450 | fi |
14451 | rm -f conftest* | |
21d1c967 GD |
14452 | fi |
14453 | fi | |
14454 | ||
14455 | xpm_link= | |
14456 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
986ecc86 | 14457 | echo "configure:14458: checking for Xpm library" >&5 |
21d1c967 GD |
14458 | |
14459 | ac_find_libraries= | |
14460 | for ac_dir in $SEARCH_LIB; | |
14461 | do | |
14462 | for ac_extension in a so sl dylib; do | |
14463 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14464 | ac_find_libraries=$ac_dir | |
14465 | break 2 | |
14466 | fi | |
14467 | done | |
14468 | done | |
14469 | ||
14470 | if test "$ac_find_libraries" != "" ; then | |
14471 | ||
14472 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14473 | result=$? | |
14474 | if test $result = 0; then | |
14475 | ac_path_to_link="" | |
14476 | else | |
14477 | ac_path_to_link=" -L$ac_find_libraries" | |
14478 | fi | |
14479 | ||
14480 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14481 | xpm_link=" -lXpm" | |
14482 | cat >> confdefs.h <<\EOF | |
14483 | #define wxHAVE_LIB_XPM 1 | |
d836ee96 | 14484 | EOF |
90dd450c | 14485 | |
21d1c967 GD |
14486 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
14487 | else | |
14488 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14489 | #line 14490 "configure" |
d836ee96 | 14490 | #include "confdefs.h" |
21d1c967 GD |
14491 | |
14492 | #include <X11/xpm.h> | |
14493 | ||
14494 | int main() { | |
14495 | ||
14496 | int version; | |
14497 | version = XpmLibraryVersion(); | |
14498 | ||
14499 | ; return 0; } | |
d836ee96 | 14500 | EOF |
986ecc86 | 14501 | if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14502 | rm -rf conftest* |
21d1c967 GD |
14503 | |
14504 | xpm_link=" -lXpm" | |
14505 | cat >> confdefs.h <<\EOF | |
14506 | #define wxHAVE_LIB_XPM 1 | |
14507 | EOF | |
14508 | ||
14509 | echo "$ac_t""found in default search path" 1>&6 | |
14510 | COMPILED_X_PROGRAM=0 | |
14511 | ||
d836ee96 VZ |
14512 | else |
14513 | echo "configure: failed program was:" >&5 | |
14514 | cat conftest.$ac_ext >&5 | |
14515 | rm -rf conftest* | |
21d1c967 GD |
14516 | |
14517 | echo "$ac_t""no" 1>&6 | |
14518 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14519 | ||
14520 | ||
d836ee96 VZ |
14521 | fi |
14522 | rm -f conftest* | |
21d1c967 GD |
14523 | fi |
14524 | ||
14525 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
14526 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
14527 | TOOLKIT=MOTIF | |
14528 | GUIDIST=MOTIF_DIST | |
14529 | fi | |
14530 | ||
14531 | if test "$wxUSE_MAC" = 1; then | |
14532 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14533 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14534 | else | |
14535 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14536 | fi | |
14537 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14538 | CFLAGS="$CFLAGS -fpascal-strings" | |
14539 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14540 | ||
14541 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14542 | TOOLKIT=MAC | |
14543 | GUIDIST=MACX_DIST | |
14544 | fi | |
14545 | ||
14546 | if test "$wxUSE_PM" = 1; then | |
14547 | TOOLKIT=PM | |
14548 | GUIDIST=GTK_DIST | |
14549 | fi | |
14550 | ||
14551 | if test "$TOOLKIT" = "PM" ; then | |
14552 | TOOLKIT_DIR="os2" | |
14553 | else | |
14554 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14555 | fi | |
14556 | ||
14557 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14558 | ||
14559 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14560 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14561 | ||
14562 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14563 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14564 | ||
14565 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14566 | if test "$wxUSE_X11" = 1; then | |
14567 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14568 | else | |
14569 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14570 | fi | |
14571 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14572 | WIDGET_SET=univ | |
14573 | else | |
14574 | ALL_OBJECTS="\$(GUIOBJS)" | |
14575 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14576 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14577 | fi | |
14578 | ||
14579 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14580 | ||
14581 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14582 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14583 | fi | |
14584 | ||
14585 | if test "$wxUSE_HTML" = "yes"; then | |
14586 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14587 | fi | |
14588 | ||
14589 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14590 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14591 | fi | |
14592 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14593 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14594 | fi | |
14595 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14596 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14597 | fi | |
14598 | ||
14599 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14600 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14601 | else |
21d1c967 GD |
14602 | USE_GUI=0 |
14603 | ||
14604 | TOOLKIT_DIR="base" | |
14605 | ||
14606 | if test "$USE_WIN32" = 1 ; then | |
14607 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14608 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14609 | ||
14610 | TOOLKIT="MSW" | |
14611 | else | |
14612 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14613 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14614 | fi | |
14615 | ||
14616 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14617 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14618 | ||
14619 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14620 | ||
14621 | GUIDIST="BASE_DIST" | |
14622 | DISTDIR="wxBase" | |
d836ee96 VZ |
14623 | fi |
14624 | ||
21d1c967 GD |
14625 | |
14626 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14627 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14628 | fi |
21d1c967 GD |
14629 | |
14630 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14631 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14632 | fi |
21d1c967 GD |
14633 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14634 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14635 | fi |
14636 | ||
698dcdb6 | 14637 | |
21d1c967 GD |
14638 | if test "$wxUSE_OPENGL" = "yes"; then |
14639 | if test "$wxUSE_MAC" = 1; then | |
14640 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14641 | elif test "$wxUSE_MSW" = 1; then | |
14642 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14643 | else | |
14644 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14645 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
986ecc86 | 14646 | echo "configure:14647: checking for GL/gl.h" >&5 |
90dd450c | 14647 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14648 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14649 | else |
698dcdb6 | 14650 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 14651 | #line 14652 "configure" |
10f2d63a | 14652 | #include "confdefs.h" |
21d1c967 | 14653 | #include <GL/gl.h> |
698dcdb6 | 14654 | EOF |
90dd450c | 14655 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 14656 | { (eval echo configure:14657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14657 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14658 | if test -z "$ac_err"; then | |
4f14bcd8 | 14659 | rm -rf conftest* |
90dd450c | 14660 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14661 | else |
90dd450c | 14662 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14663 | echo "configure: failed program was:" >&5 |
14664 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 14665 | rm -rf conftest* |
90dd450c | 14666 | eval "ac_cv_header_$ac_safe=no" |
703e0a69 | 14667 | fi |
4f14bcd8 | 14668 | rm -f conftest* |
698dcdb6 | 14669 | fi |
90dd450c VZ |
14670 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14671 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14672 | |
14673 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
986ecc86 | 14674 | echo "configure:14675: checking for -lGL" >&5 |
21d1c967 GD |
14675 | |
14676 | ac_find_libraries= | |
14677 | for ac_dir in $SEARCH_LIB; | |
14678 | do | |
14679 | for ac_extension in a so sl dylib; do | |
14680 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14681 | ac_find_libraries=$ac_dir | |
14682 | break 2 | |
14683 | fi | |
14684 | done | |
14685 | done | |
14686 | ||
14687 | if test "$ac_find_libraries" != "" ; then | |
14688 | ||
14689 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14690 | result=$? | |
14691 | if test $result = 0; then | |
14692 | ac_path_to_link="" | |
14693 | else | |
14694 | ac_path_to_link=" -L$ac_find_libraries" | |
14695 | fi | |
14696 | ||
14697 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14698 | LDFLAGS_GL="$LDFLAGS" | |
14699 | else | |
14700 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14701 | fi | |
14702 | OPENGL_LIBS="-lGL -lGLU" | |
14703 | echo "$ac_t""yes" 1>&6 | |
14704 | else | |
14705 | echo "$ac_t""no" 1>&6 | |
14706 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
986ecc86 | 14707 | echo "configure:14708: checking for -lMesaGL" >&5 |
21d1c967 GD |
14708 | |
14709 | ac_find_libraries= | |
14710 | for ac_dir in $SEARCH_LIB; | |
14711 | do | |
14712 | for ac_extension in a so sl dylib; do | |
14713 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14714 | ac_find_libraries=$ac_dir | |
14715 | break 2 | |
14716 | fi | |
14717 | done | |
14718 | done | |
14719 | ||
14720 | if test "$ac_find_libraries" != "" ; then | |
14721 | ||
14722 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14723 | result=$? | |
14724 | if test $result = 0; then | |
14725 | ac_path_to_link="" | |
14726 | else | |
14727 | ac_path_to_link=" -L$ac_find_libraries" | |
14728 | fi | |
14729 | ||
14730 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14731 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14732 | echo "$ac_t""yes" 1>&6 | |
14733 | else | |
14734 | echo "$ac_t""no" 1>&6 | |
14735 | fi | |
14736 | fi | |
14737 | ||
90dd450c VZ |
14738 | else |
14739 | echo "$ac_t""no" 1>&6 | |
14740 | fi | |
698dcdb6 VZ |
14741 | |
14742 | ||
21d1c967 GD |
14743 | if test "x$OPENGL_LIBS" = "x"; then |
14744 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14745 | fi | |
14746 | fi | |
90dd450c | 14747 | |
21d1c967 GD |
14748 | if test "$wxUSE_OPENGL" = "yes"; then |
14749 | cat >> confdefs.h <<\EOF | |
14750 | #define wxUSE_OPENGL 1 | |
698dcdb6 | 14751 | EOF |
21d1c967 GD |
14752 | |
14753 | cat >> confdefs.h <<\EOF | |
14754 | #define wxUSE_GLCANVAS 1 | |
14755 | EOF | |
14756 | ||
14757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14758 | fi | |
10f2d63a | 14759 | fi |
21d1c967 GD |
14760 | |
14761 | if test -z "$TOOLKIT_VPATH" ; then | |
14762 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14763 | fi |
21d1c967 GD |
14764 | |
14765 | if test -n "$TOOLKIT" ; then | |
14766 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14767 | fi | |
14768 | ||
14769 | lib_unicode_suffix= | |
14770 | if test "$wxUSE_UNICODE" = "yes"; then | |
14771 | lib_unicode_suffix=u | |
90dd450c | 14772 | fi |
698dcdb6 | 14773 | |
21d1c967 GD |
14774 | lib_debug_suffix= |
14775 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14776 | lib_debug_suffix=d | |
14777 | fi | |
698dcdb6 | 14778 | |
21d1c967 GD |
14779 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
14780 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14781 | ||
14782 | if test "$cross_compiling" = "yes"; then | |
14783 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14784 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14785 | fi | |
14786 | ||
14787 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14788 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14789 | ||
14790 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14791 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14792 | ||
14793 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14794 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14795 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14796 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14797 | ||
14798 | case "${host}" in | |
14799 | *-*-cygwin* | *-*-mingw32* ) | |
14800 | ||
14801 | ||
14802 | ||
14803 | if test "$cross_compiling" != "yes"; then | |
14804 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14805 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14806 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14807 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14808 | else | |
14809 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14810 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14811 | fi | |
14812 | ;; | |
14813 | ||
14814 | *-*-darwin* ) | |
14815 | if test "$wxUSE_MAC" = 1; then | |
14816 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
14817 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
14818 | fi | |
14819 | ;; | |
14820 | esac | |
14821 | ||
14822 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14823 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14824 | ||
14825 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14826 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14827 | ||
14828 | if test "$wxUSE_OPENGL" = "yes"; then | |
14829 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14830 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14831 | fi | |
14832 | ||
14833 | ||
14834 | ||
14835 | if test "$wxUSE_SHARED" = "yes"; then | |
14836 | case "${host}" in | |
14837 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14838 | *-pc-msdosdjgpp ) | |
14839 | wxUSE_SHARED=no | |
14840 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14841 | ;; | |
14842 | esac | |
14843 | fi | |
14844 | ||
14845 | if test "$wxUSE_SHARED" = "yes"; then | |
14846 | ||
14847 | if test "$wxUSE_OPENGL" = "yes"; then | |
14848 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14849 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14850 | else | |
14851 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14852 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14853 | fi | |
14854 | ||
14855 | if test "$GCC" = "yes"; then | |
14856 | PIC_FLAG="-fPIC" | |
14857 | fi | |
14858 | ||
14859 | SHARED_LD="${CXX} -shared -o" | |
14860 | ||
14861 | case "${host}" in | |
14862 | *-hp-hpux* ) | |
14863 | if test "$GCC" == "yes"; then | |
14864 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14865 | else | |
14866 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14867 | ||
14868 | SHARED_LD="${CXX} -b -o" | |
14869 | PIC_FLAG="+Z" | |
14870 | fi | |
14871 | ||
14872 | if test "$wxUSE_OPENGL" = "yes"; then | |
14873 | WX_ALL_INSTALLED="preinstall_gl" | |
14874 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14875 | else | |
14876 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14877 | fi | |
14878 | ;; | |
14879 | ||
14880 | *-*-linux* ) | |
14881 | if test "$GCC" != "yes"; then | |
14882 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
986ecc86 | 14883 | echo "configure:14884: checking for Intel compiler" >&5 |
21d1c967 | 14884 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
698dcdb6 | 14885 | echo $ac_n "(cached) $ac_c" 1>&6 |
698dcdb6 | 14886 | else |
21d1c967 GD |
14887 | |
14888 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 14889 | #line 14890 "configure" |
698dcdb6 | 14890 | #include "confdefs.h" |
90dd450c VZ |
14891 | |
14892 | int main() { | |
14893 | ||
21d1c967 GD |
14894 | #ifndef __INTEL_COMPILER |
14895 | #error Not icc | |
14896 | #endif | |
14897 | ||
90dd450c | 14898 | ; return 0; } |
698dcdb6 | 14899 | EOF |
986ecc86 | 14900 | if { (eval echo configure:14901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 14901 | rm -rf conftest* |
21d1c967 | 14902 | wx_cv_prog_icc=yes |
6232543b | 14903 | else |
698dcdb6 VZ |
14904 | echo "configure: failed program was:" >&5 |
14905 | cat conftest.$ac_ext >&5 | |
90dd450c | 14906 | rm -rf conftest* |
21d1c967 GD |
14907 | wx_cv_prog_icc=no |
14908 | ||
6232543b | 14909 | fi |
90dd450c | 14910 | rm -f conftest* |
21d1c967 | 14911 | |
698dcdb6 VZ |
14912 | fi |
14913 | ||
21d1c967 GD |
14914 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 |
14915 | if test "$wx_cv_prog_icc" = "yes"; then | |
14916 | PIC_FLAG="-KPIC" | |
14917 | fi | |
14918 | fi | |
14919 | ||
14920 | if test "$wxUSE_SONAME" = "yes" ; then | |
14921 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
14922 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
14923 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
14924 | fi | |
14925 | ;; | |
14926 | ||
14927 | *-*-solaris2* ) | |
14928 | if test "$GCC" = yes ; then | |
14929 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
14930 | else | |
14931 | SHARED_LD="${CXX} -G -o" | |
14932 | PIC_FLAG="-KPIC" | |
14933 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
14934 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
14935 | fi | |
14936 | ;; | |
14937 | ||
14938 | *-*-darwin* ) | |
14939 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
14940 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
14941 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
14942 | PIC_FLAG="-dynamic -fPIC" | |
14943 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
14944 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
14945 | ;; | |
14946 | ||
14947 | *-*-aix* ) | |
321d2b14 VZ |
14948 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
14949 | set dummy makeC++SharedLib; ac_word=$2 | |
14950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 14951 | echo "configure:14952: checking for $ac_word" >&5 |
321d2b14 VZ |
14952 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
14953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14954 | else | |
14955 | if test -n "$AIX_CXX_LD"; then | |
14956 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
14957 | else | |
14958 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14959 | ac_dummy="$PATH" | |
14960 | for ac_dir in $ac_dummy; do | |
14961 | test -z "$ac_dir" && ac_dir=. | |
14962 | if test -f $ac_dir/$ac_word; then | |
14963 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
14964 | break | |
14965 | fi | |
14966 | done | |
14967 | IFS="$ac_save_ifs" | |
14968 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
14969 | fi | |
14970 | fi | |
14971 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
14972 | if test -n "$AIX_CXX_LD"; then | |
14973 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
14974 | else | |
14975 | echo "$ac_t""no" 1>&6 | |
14976 | fi | |
14977 | ||
14978 | ||
14979 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
21d1c967 GD |
14980 | ;; |
14981 | ||
14982 | *-*-cygwin* | *-*-mingw32* ) | |
14983 | ||
14984 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
14985 | ||
14986 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
14987 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
14988 | ||
14989 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
14990 | ||
14991 | if test "$wxUSE_OPENGL" = "yes"; then | |
14992 | WX_ALL_INSTALLED="preinstall_gl" | |
14993 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14994 | else | |
14995 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14996 | fi | |
14997 | ;; | |
14998 | ||
14999 | *-*-beos* ) | |
15000 | SHARED_LD="${LD} -shared -o" | |
15001 | ;; | |
15002 | ||
15003 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15004 | *-*-sunos4* | \ | |
15005 | *-*-irix5* | *-*-irix6* | \ | |
15006 | *-*-osf* | \ | |
15007 | *-*-dgux5* | \ | |
15008 | *-*-sysv5* ) | |
15009 | ;; | |
15010 | ||
15011 | *) | |
15012 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
15013 | esac | |
15014 | ||
15015 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15016 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15017 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15018 | fi | |
15019 | ||
15020 | WX_TARGET_LIBRARY_TYPE="so" | |
15021 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15022 | fi |
10f2d63a | 15023 | |
21d1c967 GD |
15024 | if test "$wxUSE_SHARED" = "no"; then |
15025 | ||
15026 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15027 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15028 | fi | |
15029 | ||
15030 | if test "$wxUSE_MAC" = 1; then | |
15031 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15032 | fi | |
15033 | ||
15034 | if test "$wxUSE_OPENGL" = "yes"; then | |
15035 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15036 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15037 | else | |
15038 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15039 | fi | |
15040 | ||
15041 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15042 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15043 | ||
15044 | WX_TARGET_LIBRARY_TYPE="a" | |
15045 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15046 | fi |
1e487827 | 15047 | |
21d1c967 GD |
15048 | if test "$wxUSE_MAC" = 1; then |
15049 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15050 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15051 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15052 | # Extract the first word of "Rez", so it can be a program name with args. | |
15053 | set dummy Rez; ac_word=$2 | |
15054 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 15055 | echo "configure:15056: checking for $ac_word" >&5 |
21d1c967 | 15056 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
698dcdb6 | 15057 | echo $ac_n "(cached) $ac_c" 1>&6 |
b93d0d08 | 15058 | else |
21d1c967 GD |
15059 | if test -n "$RESCOMP"; then |
15060 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15061 | else |
21d1c967 GD |
15062 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15063 | ac_dummy="$PATH" | |
15064 | for ac_dir in $ac_dummy; do | |
15065 | test -z "$ac_dir" && ac_dir=. | |
15066 | if test -f $ac_dir/$ac_word; then | |
15067 | ac_cv_prog_RESCOMP="Rez" | |
15068 | break | |
15069 | fi | |
15070 | done | |
15071 | IFS="$ac_save_ifs" | |
15072 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
b93d0d08 | 15073 | fi |
b93d0d08 | 15074 | fi |
21d1c967 GD |
15075 | RESCOMP="$ac_cv_prog_RESCOMP" |
15076 | if test -n "$RESCOMP"; then | |
15077 | echo "$ac_t""$RESCOMP" 1>&6 | |
90dd450c VZ |
15078 | else |
15079 | echo "$ac_t""no" 1>&6 | |
15080 | fi | |
b93d0d08 | 15081 | |
21d1c967 GD |
15082 | # Extract the first word of "DeRez", so it can be a program name with args. |
15083 | set dummy DeRez; ac_word=$2 | |
15084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
986ecc86 | 15085 | echo "configure:15086: checking for $ac_word" >&5 |
21d1c967 | 15086 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
698dcdb6 | 15087 | echo $ac_n "(cached) $ac_c" 1>&6 |
3a922bb4 | 15088 | else |
21d1c967 GD |
15089 | if test -n "$DEREZ"; then |
15090 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15091 | else |
21d1c967 GD |
15092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15093 | ac_dummy="$PATH" | |
15094 | for ac_dir in $ac_dummy; do | |
15095 | test -z "$ac_dir" && ac_dir=. | |
15096 | if test -f $ac_dir/$ac_word; then | |
15097 | ac_cv_prog_DEREZ="DeRez" | |
15098 | break | |
15099 | fi | |
15100 | done | |
15101 | IFS="$ac_save_ifs" | |
15102 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
3a922bb4 | 15103 | fi |
90dd450c | 15104 | fi |
21d1c967 GD |
15105 | DEREZ="$ac_cv_prog_DEREZ" |
15106 | if test -n "$DEREZ"; then | |
15107 | echo "$ac_t""$DEREZ" 1>&6 | |
90dd450c VZ |
15108 | else |
15109 | echo "$ac_t""no" 1>&6 | |
3a922bb4 | 15110 | fi |
698dcdb6 | 15111 | |
21d1c967 GD |
15112 | MACOSX_BUNDLE="bundle" |
15113 | if test "$wxUSE_SHARED" = "yes"; then | |
15114 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15115 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15116 | else | |
15117 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15118 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15119 | fi | |
15120 | else | |
15121 | if test "$wxUSE_PM" = 1; then | |
15122 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15123 | fi |
4f14bcd8 | 15124 | fi |
10f2d63a | 15125 | |
703e0a69 | 15126 | |
90dd450c | 15127 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
986ecc86 | 15128 | echo "configure:15129: checking for ANSI C header files" >&5 |
90dd450c | 15129 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
698dcdb6 VZ |
15130 | echo $ac_n "(cached) $ac_c" 1>&6 |
15131 | else | |
15132 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15133 | #line 15134 "configure" |
10f2d63a | 15134 | #include "confdefs.h" |
90dd450c VZ |
15135 | #include <stdlib.h> |
15136 | #include <stdarg.h> | |
15137 | #include <string.h> | |
15138 | #include <float.h> | |
698dcdb6 | 15139 | EOF |
90dd450c | 15140 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 15141 | { (eval echo configure:15142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
15142 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15143 | if test -z "$ac_err"; then | |
15144 | rm -rf conftest* | |
15145 | ac_cv_header_stdc=yes | |
10f2d63a | 15146 | else |
90dd450c | 15147 | echo "$ac_err" >&5 |
698dcdb6 | 15148 | echo "configure: failed program was:" >&5 |
10f2d63a | 15149 | cat conftest.$ac_ext >&5 |
90dd450c VZ |
15150 | rm -rf conftest* |
15151 | ac_cv_header_stdc=no | |
10f2d63a | 15152 | fi |
90dd450c VZ |
15153 | rm -f conftest* |
15154 | ||
15155 | if test $ac_cv_header_stdc = yes; then | |
15156 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15157 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15158 | #line 15159 "configure" |
90dd450c VZ |
15159 | #include "confdefs.h" |
15160 | #include <string.h> | |
15161 | EOF | |
15162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15163 | egrep "memchr" >/dev/null 2>&1; then | |
15164 | : | |
15165 | else | |
15166 | rm -rf conftest* | |
15167 | ac_cv_header_stdc=no | |
10f2d63a | 15168 | fi |
90dd450c | 15169 | rm -f conftest* |
10f2d63a | 15170 | |
4f14bcd8 | 15171 | fi |
90dd450c VZ |
15172 | |
15173 | if test $ac_cv_header_stdc = yes; then | |
15174 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15175 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15176 | #line 15177 "configure" |
90dd450c VZ |
15177 | #include "confdefs.h" |
15178 | #include <stdlib.h> | |
10f2d63a | 15179 | EOF |
90dd450c VZ |
15180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15181 | egrep "free" >/dev/null 2>&1; then | |
15182 | : | |
15183 | else | |
15184 | rm -rf conftest* | |
15185 | ac_cv_header_stdc=no | |
15186 | fi | |
15187 | rm -f conftest* | |
10f2d63a | 15188 | |
90dd450c | 15189 | fi |
698dcdb6 | 15190 | |
90dd450c VZ |
15191 | if test $ac_cv_header_stdc = yes; then |
15192 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15193 | if test "$cross_compiling" = yes; then | |
15194 | : | |
4f14bcd8 GD |
15195 | else |
15196 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15197 | #line 15198 "configure" |
10f2d63a | 15198 | #include "confdefs.h" |
90dd450c VZ |
15199 | #include <ctype.h> |
15200 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15201 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15202 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15203 | int main () { int i; for (i = 0; i < 256; i++) | |
15204 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15205 | exit (0); } | |
15206 | ||
698dcdb6 | 15207 | EOF |
986ecc86 | 15208 | if { (eval echo configure:15209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 15209 | then |
90dd450c | 15210 | : |
10f2d63a | 15211 | else |
698dcdb6 VZ |
15212 | echo "configure: failed program was:" >&5 |
15213 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 15214 | rm -fr conftest* |
90dd450c | 15215 | ac_cv_header_stdc=no |
10f2d63a | 15216 | fi |
4f14bcd8 | 15217 | rm -fr conftest* |
10f2d63a | 15218 | fi |
698dcdb6 | 15219 | |
4f14bcd8 | 15220 | fi |
90dd450c | 15221 | fi |
10f2d63a | 15222 | |
90dd450c VZ |
15223 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
15224 | if test $ac_cv_header_stdc = yes; then | |
15225 | cat >> confdefs.h <<\EOF | |
15226 | #define STDC_HEADERS 1 | |
15227 | EOF | |
698dcdb6 | 15228 | |
90dd450c | 15229 | fi |
9d353d4a | 15230 | |
90dd450c | 15231 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
986ecc86 | 15232 | echo "configure:15233: checking for mode_t" >&5 |
90dd450c | 15233 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9d353d4a | 15234 | echo $ac_n "(cached) $ac_c" 1>&6 |
9d353d4a RR |
15235 | else |
15236 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15237 | #line 15238 "configure" |
9d353d4a | 15238 | #include "confdefs.h" |
90dd450c VZ |
15239 | #include <sys/types.h> |
15240 | #if STDC_HEADERS | |
15241 | #include <stdlib.h> | |
15242 | #include <stddef.h> | |
15243 | #endif | |
9d353d4a | 15244 | EOF |
90dd450c VZ |
15245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15246 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15247 | rm -rf conftest* | |
15248 | ac_cv_type_mode_t=yes | |
9d353d4a | 15249 | else |
90dd450c VZ |
15250 | rm -rf conftest* |
15251 | ac_cv_type_mode_t=no | |
9d353d4a | 15252 | fi |
90dd450c | 15253 | rm -f conftest* |
9d353d4a RR |
15254 | |
15255 | fi | |
90dd450c VZ |
15256 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15257 | if test $ac_cv_type_mode_t = no; then | |
15258 | cat >> confdefs.h <<\EOF | |
15259 | #define mode_t int | |
9d353d4a RR |
15260 | EOF |
15261 | ||
90dd450c | 15262 | fi |
9d353d4a | 15263 | |
90dd450c | 15264 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
986ecc86 | 15265 | echo "configure:15266: checking for off_t" >&5 |
90dd450c | 15266 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
698dcdb6 | 15267 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15268 | else |
15269 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15270 | #line 15271 "configure" |
10f2d63a | 15271 | #include "confdefs.h" |
90dd450c VZ |
15272 | #include <sys/types.h> |
15273 | #if STDC_HEADERS | |
15274 | #include <stdlib.h> | |
15275 | #include <stddef.h> | |
15276 | #endif | |
698dcdb6 | 15277 | EOF |
90dd450c VZ |
15278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15279 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15280 | rm -rf conftest* | |
15281 | ac_cv_type_off_t=yes | |
698dcdb6 | 15282 | else |
90dd450c VZ |
15283 | rm -rf conftest* |
15284 | ac_cv_type_off_t=no | |
698dcdb6 | 15285 | fi |
90dd450c | 15286 | rm -f conftest* |
698dcdb6 VZ |
15287 | |
15288 | fi | |
90dd450c VZ |
15289 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
15290 | if test $ac_cv_type_off_t = no; then | |
15291 | cat >> confdefs.h <<\EOF | |
15292 | #define off_t long | |
10f2d63a VZ |
15293 | EOF |
15294 | ||
90dd450c | 15295 | fi |
10f2d63a | 15296 | |
90dd450c | 15297 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
986ecc86 | 15298 | echo "configure:15299: checking for pid_t" >&5 |
90dd450c | 15299 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
698dcdb6 | 15300 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15301 | else |
15302 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15303 | #line 15304 "configure" |
10f2d63a | 15304 | #include "confdefs.h" |
90dd450c VZ |
15305 | #include <sys/types.h> |
15306 | #if STDC_HEADERS | |
15307 | #include <stdlib.h> | |
15308 | #include <stddef.h> | |
15309 | #endif | |
698dcdb6 | 15310 | EOF |
90dd450c VZ |
15311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15312 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15313 | rm -rf conftest* | |
15314 | ac_cv_type_pid_t=yes | |
698dcdb6 | 15315 | else |
90dd450c VZ |
15316 | rm -rf conftest* |
15317 | ac_cv_type_pid_t=no | |
4f14bcd8 | 15318 | fi |
90dd450c | 15319 | rm -f conftest* |
698dcdb6 VZ |
15320 | |
15321 | fi | |
90dd450c VZ |
15322 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
15323 | if test $ac_cv_type_pid_t = no; then | |
15324 | cat >> confdefs.h <<\EOF | |
15325 | #define pid_t int | |
10f2d63a VZ |
15326 | EOF |
15327 | ||
90dd450c | 15328 | fi |
18dbb1f6 | 15329 | |
90dd450c | 15330 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
986ecc86 | 15331 | echo "configure:15332: checking for size_t" >&5 |
90dd450c | 15332 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
18dbb1f6 | 15333 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
15334 | else |
15335 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15336 | #line 15337 "configure" |
4f14bcd8 GD |
15337 | #include "confdefs.h" |
15338 | #include <sys/types.h> | |
90dd450c VZ |
15339 | #if STDC_HEADERS |
15340 | #include <stdlib.h> | |
15341 | #include <stddef.h> | |
4f14bcd8 | 15342 | #endif |
18dbb1f6 | 15343 | EOF |
90dd450c VZ |
15344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15345 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
18dbb1f6 | 15346 | rm -rf conftest* |
90dd450c | 15347 | ac_cv_type_size_t=yes |
18dbb1f6 | 15348 | else |
18dbb1f6 | 15349 | rm -rf conftest* |
90dd450c | 15350 | ac_cv_type_size_t=no |
18dbb1f6 VZ |
15351 | fi |
15352 | rm -f conftest* | |
90dd450c | 15353 | |
1e487827 | 15354 | fi |
90dd450c VZ |
15355 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
15356 | if test $ac_cv_type_size_t = no; then | |
15357 | cat >> confdefs.h <<\EOF | |
15358 | #define size_t unsigned | |
15359 | EOF | |
15360 | ||
15361 | fi | |
15362 | ||
15363 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
986ecc86 | 15364 | echo "configure:15365: checking for uid_t in sys/types.h" >&5 |
90dd450c VZ |
15365 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a VZ |
15367 | else |
15368 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15369 | #line 15370 "configure" |
b3e8d00a | 15370 | #include "confdefs.h" |
90dd450c | 15371 | #include <sys/types.h> |
b3e8d00a | 15372 | EOF |
90dd450c VZ |
15373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15374 | egrep "uid_t" >/dev/null 2>&1; then | |
15375 | rm -rf conftest* | |
15376 | ac_cv_type_uid_t=yes | |
b3e8d00a | 15377 | else |
90dd450c VZ |
15378 | rm -rf conftest* |
15379 | ac_cv_type_uid_t=no | |
b3e8d00a | 15380 | fi |
90dd450c | 15381 | rm -f conftest* |
b3e8d00a | 15382 | |
4f14bcd8 GD |
15383 | fi |
15384 | ||
90dd450c VZ |
15385 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15386 | if test $ac_cv_type_uid_t = no; then | |
4f14bcd8 | 15387 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
15388 | #define uid_t int |
15389 | EOF | |
15390 | ||
15391 | cat >> confdefs.h <<\EOF | |
15392 | #define gid_t int | |
b3e8d00a | 15393 | EOF |
4f14bcd8 | 15394 | |
b3e8d00a | 15395 | fi |
b3e8d00a VZ |
15396 | |
15397 | ||
90dd450c VZ |
15398 | |
15399 | ac_ext=C | |
4f14bcd8 GD |
15400 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15401 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15402 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15403 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15404 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c VZ |
15405 | |
15406 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
986ecc86 | 15407 | echo "configure:15408: checking if size_t is unsigned int" >&5 |
90dd450c VZ |
15408 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15410 | else | |
15411 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15412 | #line 15413 "configure" |
10f2d63a | 15413 | #include "confdefs.h" |
90dd450c VZ |
15414 | #include <stddef.h> |
15415 | int main() { | |
15416 | ||
15417 | return 0; } | |
15418 | ||
15419 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15420 | ||
15421 | int bar() { | |
15422 | ||
15423 | ; return 0; } | |
698dcdb6 | 15424 | EOF |
986ecc86 | 15425 | if { (eval echo configure:15426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
15426 | rm -rf conftest* |
15427 | wx_cv_size_t_is_uint=no | |
698dcdb6 VZ |
15428 | else |
15429 | echo "configure: failed program was:" >&5 | |
15430 | cat conftest.$ac_ext >&5 | |
15431 | rm -rf conftest* | |
90dd450c VZ |
15432 | wx_cv_size_t_is_uint=yes |
15433 | ||
698dcdb6 VZ |
15434 | fi |
15435 | rm -f conftest* | |
90dd450c | 15436 | |
698dcdb6 VZ |
15437 | fi |
15438 | ||
90dd450c | 15439 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 |
4f14bcd8 | 15440 | |
90dd450c | 15441 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
4f14bcd8 | 15442 | cat >> confdefs.h <<\EOF |
90dd450c | 15443 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15444 | EOF |
15445 | ||
90dd450c VZ |
15446 | else |
15447 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
986ecc86 | 15448 | echo "configure:15449: checking if size_t is unsigned long" >&5 |
90dd450c | 15449 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
698dcdb6 VZ |
15450 | echo $ac_n "(cached) $ac_c" 1>&6 |
15451 | else | |
15452 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15453 | #line 15454 "configure" |
10f2d63a | 15454 | #include "confdefs.h" |
90dd450c VZ |
15455 | #include <stddef.h> |
15456 | int main() { | |
15457 | ||
15458 | return 0; } | |
15459 | ||
15460 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15461 | ||
15462 | int bar() { | |
15463 | ||
15464 | ; return 0; } | |
698dcdb6 | 15465 | EOF |
986ecc86 | 15466 | if { (eval echo configure:15467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15467 | rm -rf conftest* |
90dd450c | 15468 | wx_cv_size_t_is_ulong=no |
698dcdb6 VZ |
15469 | else |
15470 | echo "configure: failed program was:" >&5 | |
15471 | cat conftest.$ac_ext >&5 | |
15472 | rm -rf conftest* | |
90dd450c VZ |
15473 | wx_cv_size_t_is_ulong=yes |
15474 | ||
698dcdb6 VZ |
15475 | fi |
15476 | rm -f conftest* | |
90dd450c | 15477 | |
698dcdb6 | 15478 | fi |
10f2d63a | 15479 | |
90dd450c | 15480 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 |
10f2d63a | 15481 | |
90dd450c VZ |
15482 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
15483 | cat >> confdefs.h <<\EOF | |
15484 | #define wxSIZE_T_IS_ULONG 1 | |
4f14bcd8 GD |
15485 | EOF |
15486 | ||
15487 | fi | |
90dd450c | 15488 | fi |
1e487827 | 15489 | |
90dd450c | 15490 | ac_ext=c |
4f14bcd8 GD |
15491 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15492 | ac_cpp='$CPP $CPPFLAGS' | |
15493 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15494 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15495 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15496 | |
698dcdb6 VZ |
15497 | |
15498 | ||
90dd450c | 15499 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
986ecc86 | 15500 | echo "configure:15501: checking for pw_gecos in struct passwd" >&5 |
90dd450c | 15501 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
698dcdb6 VZ |
15502 | echo $ac_n "(cached) $ac_c" 1>&6 |
15503 | else | |
15504 | ||
90dd450c | 15505 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15506 | #line 15507 "configure" |
4f14bcd8 | 15507 | #include "confdefs.h" |
90dd450c | 15508 | #include <pwd.h> |
4f14bcd8 | 15509 | int main() { |
f6bcfd97 | 15510 | |
90dd450c VZ |
15511 | char *p; |
15512 | struct passwd *pw; | |
15513 | p = pw->pw_gecos; | |
15514 | ||
698dcdb6 VZ |
15515 | ; return 0; } |
15516 | EOF | |
986ecc86 | 15517 | if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15518 | rm -rf conftest* |
15519 | ||
90dd450c VZ |
15520 | wx_cv_struct_pw_gecos=yes |
15521 | ||
10f2d63a | 15522 | else |
698dcdb6 VZ |
15523 | echo "configure: failed program was:" >&5 |
15524 | cat conftest.$ac_ext >&5 | |
15525 | rm -rf conftest* | |
15526 | ||
90dd450c VZ |
15527 | wx_cv_struct_pw_gecos=no |
15528 | ||
15529 | ||
4f14bcd8 GD |
15530 | fi |
15531 | rm -f conftest* | |
90dd450c | 15532 | |
c521c494 | 15533 | |
4f14bcd8 | 15534 | fi |
c521c494 | 15535 | |
90dd450c | 15536 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 |
c521c494 | 15537 | |
90dd450c | 15538 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
4f14bcd8 | 15539 | cat >> confdefs.h <<\EOF |
90dd450c | 15540 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15541 | EOF |
c521c494 | 15542 | |
90dd450c | 15543 | fi |
4f14bcd8 GD |
15544 | |
15545 | ||
d29b553b VZ |
15546 | WCHAR_OK=0 |
15547 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15548 | WCHAR_LINK= | |
7a30264c VZ |
15549 | for ac_func in wcslen |
15550 | do | |
15551 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 15552 | echo "configure:15553: checking for $ac_func" >&5 |
7a30264c | 15553 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4f14bcd8 GD |
15554 | echo $ac_n "(cached) $ac_c" 1>&6 |
15555 | else | |
7a30264c | 15556 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15557 | #line 15558 "configure" |
4f14bcd8 | 15558 | #include "confdefs.h" |
7a30264c VZ |
15559 | /* System header to define __stub macros and hopefully few prototypes, |
15560 | which can conflict with char $ac_func(); below. */ | |
15561 | #include <assert.h> | |
4f14bcd8 GD |
15562 | /* Override any gcc2 internal prototype to avoid an error. */ |
15563 | /* We use char because int might match the return type of a gcc2 | |
15564 | builtin and then its argument prototype would still apply. */ | |
7a30264c | 15565 | char $ac_func(); |
4f14bcd8 GD |
15566 | |
15567 | int main() { | |
7a30264c VZ |
15568 | |
15569 | /* The GNU C library defines this for functions which it implements | |
15570 | to always fail with ENOSYS. Some functions are actually named | |
15571 | something starting with __ and the normal name is an alias. */ | |
15572 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15573 | choke me | |
15574 | #else | |
15575 | $ac_func(); | |
15576 | #endif | |
15577 | ||
698dcdb6 VZ |
15578 | ; return 0; } |
15579 | EOF | |
986ecc86 | 15580 | if { (eval echo configure:15581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15581 | rm -rf conftest* |
7a30264c | 15582 | eval "ac_cv_func_$ac_func=yes" |
c521c494 | 15583 | else |
698dcdb6 VZ |
15584 | echo "configure: failed program was:" >&5 |
15585 | cat conftest.$ac_ext >&5 | |
15586 | rm -rf conftest* | |
7a30264c | 15587 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15588 | fi |
698dcdb6 | 15589 | rm -f conftest* |
1e487827 | 15590 | fi |
7a30264c VZ |
15591 | |
15592 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4f14bcd8 | 15593 | echo "$ac_t""yes" 1>&6 |
7a30264c VZ |
15594 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15595 | cat >> confdefs.h <<EOF | |
15596 | #define $ac_tr_func 1 | |
15597 | EOF | |
15598 | ||
15599 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15600 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15601 | EOF |
15602 | ||
7a30264c VZ |
15603 | WCHAR_OK=1 |
15604 | ||
9d8deca0 | 15605 | else |
4f14bcd8 | 15606 | echo "$ac_t""no" 1>&6 |
7a30264c VZ |
15607 | fi |
15608 | done | |
9d8deca0 | 15609 | |
7a30264c VZ |
15610 | |
15611 | if test "$WCHAR_OK" = 0; then | |
15612 | if test "$TOOLKIT" = "MSW"; then | |
15613 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
986ecc86 | 15614 | echo "configure:15615: checking for wcslen in -lmsvcrt" >&5 |
7a30264c | 15615 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 | 15617 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15618 | else |
4f14bcd8 | 15619 | ac_save_LIBS="$LIBS" |
7a30264c | 15620 | LIBS="-lmsvcrt $LIBS" |
4f14bcd8 | 15621 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15622 | #line 15623 "configure" |
10f2d63a | 15623 | #include "confdefs.h" |
4f14bcd8 GD |
15624 | /* Override any gcc2 internal prototype to avoid an error. */ |
15625 | /* We use char because int might match the return type of a gcc2 | |
15626 | builtin and then its argument prototype would still apply. */ | |
15627 | char wcslen(); | |
10f2d63a | 15628 | |
698dcdb6 | 15629 | int main() { |
4f14bcd8 | 15630 | wcslen() |
698dcdb6 VZ |
15631 | ; return 0; } |
15632 | EOF | |
986ecc86 | 15633 | if { (eval echo configure:15634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15634 | rm -rf conftest* |
4f14bcd8 | 15635 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15636 | else |
698dcdb6 VZ |
15637 | echo "configure: failed program was:" >&5 |
15638 | cat conftest.$ac_ext >&5 | |
15639 | rm -rf conftest* | |
4f14bcd8 | 15640 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15641 | fi |
698dcdb6 | 15642 | rm -f conftest* |
4f14bcd8 | 15643 | LIBS="$ac_save_LIBS" |
703e0a69 | 15644 | |
1e487827 | 15645 | fi |
4f14bcd8 GD |
15646 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15647 | echo "$ac_t""yes" 1>&6 | |
15648 | ||
7a30264c | 15649 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15650 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15651 | EOF |
15652 | ||
7a30264c VZ |
15653 | WCHAR_OK=1 |
15654 | ||
4f14bcd8 GD |
15655 | else |
15656 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15657 | fi |
698dcdb6 | 15658 | |
7a30264c VZ |
15659 | else |
15660 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
986ecc86 | 15661 | echo "configure:15662: checking for wcslen in -lw" >&5 |
7a30264c | 15662 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15663 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 VZ |
15664 | echo $ac_n "(cached) $ac_c" 1>&6 |
15665 | else | |
4f14bcd8 | 15666 | ac_save_LIBS="$LIBS" |
7a30264c | 15667 | LIBS="-lw $LIBS" |
4f14bcd8 | 15668 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15669 | #line 15670 "configure" |
95c8801c | 15670 | #include "confdefs.h" |
4f14bcd8 GD |
15671 | /* Override any gcc2 internal prototype to avoid an error. */ |
15672 | /* We use char because int might match the return type of a gcc2 | |
15673 | builtin and then its argument prototype would still apply. */ | |
15674 | char wcslen(); | |
95c8801c | 15675 | |
4f14bcd8 GD |
15676 | int main() { |
15677 | wcslen() | |
698dcdb6 VZ |
15678 | ; return 0; } |
15679 | EOF | |
986ecc86 | 15680 | if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15681 | rm -rf conftest* |
4f14bcd8 | 15682 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15683 | else |
698dcdb6 VZ |
15684 | echo "configure: failed program was:" >&5 |
15685 | cat conftest.$ac_ext >&5 | |
15686 | rm -rf conftest* | |
4f14bcd8 | 15687 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15688 | fi |
698dcdb6 | 15689 | rm -f conftest* |
4f14bcd8 | 15690 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15691 | |
15692 | fi | |
4f14bcd8 GD |
15693 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15694 | echo "$ac_t""yes" 1>&6 | |
15695 | ||
7a30264c | 15696 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
15697 | #define HAVE_WCSLEN 1 |
15698 | EOF | |
698dcdb6 | 15699 | |
7a30264c VZ |
15700 | WCHAR_LINK=" -lw" |
15701 | WCHAR_OK=1 | |
15702 | ||
4f14bcd8 GD |
15703 | else |
15704 | echo "$ac_t""no" 1>&6 | |
15705 | fi | |
10f2d63a | 15706 | |
7a30264c | 15707 | fi |
d29b553b | 15708 | fi |
4f14bcd8 | 15709 | fi |
95c8801c | 15710 | |
d29b553b VZ |
15711 | if test "$WCHAR_OK" = 1; then |
15712 | cat >> confdefs.h <<\EOF | |
15713 | #define wxUSE_WCHAR_T 1 | |
15714 | EOF | |
10f2d63a | 15715 | |
1e487827 | 15716 | |
d29b553b | 15717 | for ac_func in wcsrtombs |
eb4efbdc | 15718 | do |
698dcdb6 | 15719 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 15720 | echo "configure:15721: checking for $ac_func" >&5 |
698dcdb6 VZ |
15721 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15723 | else | |
15724 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15725 | #line 15726 "configure" |
eb4efbdc VZ |
15726 | #include "confdefs.h" |
15727 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15728 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15729 | #include <assert.h> |
15730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15731 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15732 | builtin and then its argument prototype would still apply. */ |
15733 | char $ac_func(); | |
15734 | ||
15735 | int main() { | |
eb4efbdc VZ |
15736 | |
15737 | /* The GNU C library defines this for functions which it implements | |
15738 | to always fail with ENOSYS. Some functions are actually named | |
15739 | something starting with __ and the normal name is an alias. */ | |
15740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15741 | choke me | |
15742 | #else | |
698dcdb6 | 15743 | $ac_func(); |
eb4efbdc VZ |
15744 | #endif |
15745 | ||
698dcdb6 | 15746 | ; return 0; } |
eb4efbdc | 15747 | EOF |
986ecc86 | 15748 | if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15749 | rm -rf conftest* |
15750 | eval "ac_cv_func_$ac_func=yes" | |
15751 | else | |
15752 | echo "configure: failed program was:" >&5 | |
15753 | cat conftest.$ac_ext >&5 | |
15754 | rm -rf conftest* | |
15755 | eval "ac_cv_func_$ac_func=no" | |
15756 | fi | |
15757 | rm -f conftest* | |
15758 | fi | |
eb4efbdc | 15759 | |
698dcdb6 VZ |
15760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15761 | echo "$ac_t""yes" 1>&6 | |
15762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15763 | cat >> confdefs.h <<EOF | |
15764 | #define $ac_tr_func 1 | |
15765 | EOF | |
15766 | ||
15767 | else | |
15768 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15769 | fi |
15770 | done | |
15771 | ||
d29b553b | 15772 | else |
a1ea5055 GD |
15773 | if test "$USE_DARWIN" = 1; then |
15774 | cat >> confdefs.h <<\EOF | |
15775 | #define wxUSE_WCHAR_T 1 | |
15776 | EOF | |
15777 | ||
15778 | else | |
15779 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15780 | fi | |
d29b553b | 15781 | fi |
698dcdb6 | 15782 | |
4f14bcd8 | 15783 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
986ecc86 | 15784 | echo "configure:15785: checking for vprintf" >&5 |
4f14bcd8 | 15785 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15786 | echo $ac_n "(cached) $ac_c" 1>&6 |
15787 | else | |
4f14bcd8 | 15788 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15789 | #line 15790 "configure" |
f6bcfd97 | 15790 | #include "confdefs.h" |
4f14bcd8 GD |
15791 | /* System header to define __stub macros and hopefully few prototypes, |
15792 | which can conflict with char vprintf(); below. */ | |
15793 | #include <assert.h> | |
15794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15795 | /* We use char because int might match the return type of a gcc2 | |
15796 | builtin and then its argument prototype would still apply. */ | |
15797 | char vprintf(); | |
15798 | ||
698dcdb6 | 15799 | int main() { |
f6bcfd97 | 15800 | |
4f14bcd8 GD |
15801 | /* The GNU C library defines this for functions which it implements |
15802 | to always fail with ENOSYS. Some functions are actually named | |
15803 | something starting with __ and the normal name is an alias. */ | |
15804 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15805 | choke me | |
15806 | #else | |
15807 | vprintf(); | |
15808 | #endif | |
f6bcfd97 | 15809 | |
698dcdb6 VZ |
15810 | ; return 0; } |
15811 | EOF | |
986ecc86 | 15812 | if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15813 | rm -rf conftest* |
4f14bcd8 | 15814 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15815 | else |
698dcdb6 VZ |
15816 | echo "configure: failed program was:" >&5 |
15817 | cat conftest.$ac_ext >&5 | |
15818 | rm -rf conftest* | |
4f14bcd8 | 15819 | eval "ac_cv_func_vprintf=no" |
6232543b | 15820 | fi |
698dcdb6 | 15821 | rm -f conftest* |
1e487827 | 15822 | fi |
698dcdb6 | 15823 | |
4f14bcd8 GD |
15824 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15825 | echo "$ac_t""yes" 1>&6 | |
15826 | cat >> confdefs.h <<\EOF | |
15827 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15828 | EOF |
15829 | ||
4f14bcd8 GD |
15830 | else |
15831 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15832 | fi |
15833 | ||
4f14bcd8 GD |
15834 | if test "$ac_cv_func_vprintf" != yes; then |
15835 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
986ecc86 | 15836 | echo "configure:15837: checking for _doprnt" >&5 |
4f14bcd8 | 15837 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15838 | echo $ac_n "(cached) $ac_c" 1>&6 |
15839 | else | |
15840 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 15841 | #line 15842 "configure" |
10f2d63a VZ |
15842 | #include "confdefs.h" |
15843 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15844 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15845 | #include <assert.h> |
15846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15847 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15848 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15849 | char _doprnt(); |
698dcdb6 VZ |
15850 | |
15851 | int main() { | |
10f2d63a VZ |
15852 | |
15853 | /* The GNU C library defines this for functions which it implements | |
15854 | to always fail with ENOSYS. Some functions are actually named | |
15855 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15856 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15857 | choke me |
15858 | #else | |
4f14bcd8 | 15859 | _doprnt(); |
10f2d63a VZ |
15860 | #endif |
15861 | ||
698dcdb6 | 15862 | ; return 0; } |
10f2d63a | 15863 | EOF |
986ecc86 | 15864 | if { (eval echo configure:15865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15865 | rm -rf conftest* |
4f14bcd8 | 15866 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15867 | else |
15868 | echo "configure: failed program was:" >&5 | |
15869 | cat conftest.$ac_ext >&5 | |
15870 | rm -rf conftest* | |
4f14bcd8 | 15871 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15872 | fi |
15873 | rm -f conftest* | |
15874 | fi | |
270a909e | 15875 | |
4f14bcd8 | 15876 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15877 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15878 | cat >> confdefs.h <<\EOF |
15879 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15880 | EOF |
4f14bcd8 | 15881 | |
698dcdb6 VZ |
15882 | else |
15883 | echo "$ac_t""no" 1>&6 | |
270a909e | 15884 | fi |
270a909e | 15885 | |
4f14bcd8 | 15886 | fi |
1e487827 | 15887 | |
52e8b690 | 15888 | |
52e8b690 | 15889 | |
52e8b690 | 15890 | |
52e8b690 | 15891 | |
52e8b690 | 15892 | |
4f14bcd8 | 15893 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
986ecc86 | 15894 | echo "configure:15895: checking for vsnprintf" >&5 |
4f14bcd8 | 15895 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15896 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15897 | else |
4f14bcd8 | 15898 | |
af15babd | 15899 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15900 | #line 15901 "configure" |
c63c7106 | 15901 | #include "confdefs.h" |
698dcdb6 | 15902 | |
4f14bcd8 GD |
15903 | #include <stdio.h> |
15904 | #include <stdarg.h> | |
15905 | ||
af15babd VZ |
15906 | int main() { |
15907 | ||
4f14bcd8 GD |
15908 | int wx_test_vsnprintf(const char *, ...); |
15909 | ||
15910 | wx_test_vsnprintf("%s"); | |
15911 | return 0; | |
15912 | } | |
15913 | ||
15914 | int wx_test_vsnprintf(const char *fmt, ...) | |
15915 | { | |
15916 | char *s; | |
15917 | ||
15918 | va_list argp; | |
15919 | va_start(argp, fmt); | |
15920 | vsnprintf(s, 42, fmt, argp); | |
15921 | va_end(argp); | |
15922 | ||
af15babd VZ |
15923 | ; return 0; } |
15924 | EOF | |
986ecc86 | 15925 | if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15926 | rm -rf conftest* |
15927 | ||
4f14bcd8 GD |
15928 | wx_cv_func_vsnprintf=yes |
15929 | ||
af15babd VZ |
15930 | else |
15931 | echo "configure: failed program was:" >&5 | |
15932 | cat conftest.$ac_ext >&5 | |
15933 | rm -rf conftest* | |
15934 | ||
4f14bcd8 | 15935 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15936 | #line 15937 "configure" |
af15babd | 15937 | #include "confdefs.h" |
af15babd | 15938 | |
4f14bcd8 GD |
15939 | #include <stdio.h> |
15940 | #include <stdarg.h> | |
15941 | ||
af15babd VZ |
15942 | int main() { |
15943 | ||
4f14bcd8 GD |
15944 | int wx_test_vsnprintf(const char *, ...); |
15945 | ||
15946 | wx_test_vsnprintf("%s"); | |
15947 | return 0; | |
15948 | } | |
15949 | ||
15950 | int wx_test_vsnprintf(const char *fmt, ...) | |
15951 | { | |
15952 | char *s; | |
af15babd | 15953 | |
4f14bcd8 GD |
15954 | va_list argp; |
15955 | va_start(argp, fmt); | |
15956 | _vsnprintf(s, 42, fmt, argp); | |
15957 | va_end(argp); | |
15958 | ||
af15babd VZ |
15959 | ; return 0; } |
15960 | EOF | |
986ecc86 | 15961 | if { (eval echo configure:15962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15962 | rm -rf conftest* |
4f14bcd8 GD |
15963 | |
15964 | wx_cv_func_vsnprintf=yes | |
15965 | ||
af15babd VZ |
15966 | else |
15967 | echo "configure: failed program was:" >&5 | |
15968 | cat conftest.$ac_ext >&5 | |
15969 | rm -rf conftest* | |
4f14bcd8 GD |
15970 | |
15971 | wx_cv_func_vsnprintf=no | |
15972 | ||
af15babd VZ |
15973 | fi |
15974 | rm -f conftest* | |
4f14bcd8 | 15975 | |
af15babd | 15976 | fi |
4f14bcd8 | 15977 | rm -f conftest* |
af15babd | 15978 | |
af15babd | 15979 | fi |
af15babd | 15980 | |
4f14bcd8 | 15981 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15982 | |
4f14bcd8 GD |
15983 | if test "$wx_cv_func_vsnprintf" = yes; then |
15984 | cat >> confdefs.h <<\EOF | |
15985 | #define HAVE_VSNPRINTF 1 | |
15986 | EOF | |
15987 | ||
15988 | else | |
f9bc1684 | 15989 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15990 | fi |
15991 | ||
4f14bcd8 | 15992 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
986ecc86 | 15993 | echo "configure:15994: checking for vsscanf" >&5 |
4f14bcd8 | 15994 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15995 | echo $ac_n "(cached) $ac_c" 1>&6 |
15996 | else | |
4f14bcd8 | 15997 | |
af15babd | 15998 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 15999 | #line 16000 "configure" |
af15babd | 16000 | #include "confdefs.h" |
af15babd | 16001 | |
4f14bcd8 GD |
16002 | #include <stdio.h> |
16003 | #include <stdarg.h> | |
16004 | ||
af15babd VZ |
16005 | int main() { |
16006 | ||
4f14bcd8 GD |
16007 | int wx_test_vsscanf(const char *, ...); |
16008 | ||
16009 | wx_test_vsscanf("%d"); | |
16010 | return 0; | |
16011 | } | |
af15babd | 16012 | |
4f14bcd8 GD |
16013 | int wx_test_vsscanf(const char *fmt, ...) |
16014 | { | |
16015 | va_list argp; | |
16016 | va_start(argp, fmt); | |
16017 | vsscanf("42", fmt, argp); | |
16018 | va_end(argp); | |
16019 | ||
af15babd VZ |
16020 | ; return 0; } |
16021 | EOF | |
986ecc86 | 16022 | if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16023 | rm -rf conftest* |
4f14bcd8 GD |
16024 | |
16025 | wx_cv_func_vsscanf=yes | |
16026 | ||
af15babd VZ |
16027 | else |
16028 | echo "configure: failed program was:" >&5 | |
16029 | cat conftest.$ac_ext >&5 | |
16030 | rm -rf conftest* | |
4f14bcd8 GD |
16031 | |
16032 | wx_cv_func_vsscanf=no | |
16033 | ||
af15babd VZ |
16034 | fi |
16035 | rm -f conftest* | |
4f14bcd8 | 16036 | |
af15babd VZ |
16037 | fi |
16038 | ||
4f14bcd8 GD |
16039 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
16040 | ||
16041 | if test "$wx_cv_func_vsscanf" = yes; then | |
16042 | cat >> confdefs.h <<\EOF | |
16043 | #define HAVE_VSSCANF 1 | |
af15babd | 16044 | EOF |
4f14bcd8 | 16045 | |
af15babd | 16046 | fi |
af15babd | 16047 | |
4f14bcd8 | 16048 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16049 | |
4f14bcd8 GD |
16050 | |
16051 | ||
16052 | ac_ext=C | |
16053 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16054 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16055 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16056 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16057 | cross_compiling=$ac_cv_prog_cxx_cross | |
16058 | ||
b040e242 VS |
16059 | |
16060 | ||
16061 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
16062 | if test "${with_libiconv_prefix+set}" = set; then | |
16063 | withval="$with_libiconv_prefix" | |
16064 | ||
16065 | for dir in `echo "$withval" | tr : ' '`; do | |
16066 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16067 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16068 | done | |
16069 | ||
16070 | fi | |
16071 | ||
16072 | ||
16073 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
986ecc86 | 16074 | echo "configure:16075: checking for iconv" >&5 |
b040e242 | 16075 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
16076 | echo $ac_n "(cached) $ac_c" 1>&6 |
16077 | else | |
4f14bcd8 | 16078 | |
b040e242 VS |
16079 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16080 | am_cv_lib_iconv=no | |
4f14bcd8 | 16081 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 16082 | #line 16083 "configure" |
af15babd | 16083 | #include "confdefs.h" |
b040e242 | 16084 | #include <stdlib.h> |
4f14bcd8 | 16085 | #include <iconv.h> |
af15babd | 16086 | int main() { |
b040e242 VS |
16087 | iconv_t cd = iconv_open("",""); |
16088 | iconv(cd,NULL,NULL,NULL,NULL); | |
16089 | iconv_close(cd); | |
af15babd VZ |
16090 | ; return 0; } |
16091 | EOF | |
986ecc86 | 16092 | if { (eval echo configure:16093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16093 | rm -rf conftest* |
b040e242 | 16094 | am_cv_func_iconv=yes |
af15babd VZ |
16095 | else |
16096 | echo "configure: failed program was:" >&5 | |
16097 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
16098 | fi |
16099 | rm -f conftest* | |
16100 | if test "$am_cv_func_iconv" != yes; then | |
16101 | am_save_LIBS="$LIBS" | |
16102 | LIBS="$LIBS -liconv" | |
16103 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16104 | #line 16105 "configure" |
b040e242 VS |
16105 | #include "confdefs.h" |
16106 | #include <stdlib.h> | |
16107 | #include <iconv.h> | |
16108 | int main() { | |
16109 | iconv_t cd = iconv_open("",""); | |
16110 | iconv(cd,NULL,NULL,NULL,NULL); | |
16111 | iconv_close(cd); | |
16112 | ; return 0; } | |
16113 | EOF | |
986ecc86 | 16114 | if { (eval echo configure:16115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16115 | rm -rf conftest* |
b040e242 VS |
16116 | am_cv_lib_iconv=yes |
16117 | am_cv_func_iconv=yes | |
16118 | else | |
16119 | echo "configure: failed program was:" >&5 | |
16120 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
16121 | fi |
16122 | rm -f conftest* | |
b040e242 VS |
16123 | LIBS="$am_save_LIBS" |
16124 | fi | |
16125 | ||
16126 | fi | |
16127 | ||
16128 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
16129 | if test "$am_cv_func_iconv" = yes; then | |
16130 | cat >> confdefs.h <<\EOF | |
16131 | #define HAVE_ICONV 1 | |
16132 | EOF | |
16133 | ||
b7043674 | 16134 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
986ecc86 | 16135 | echo "configure:16136: checking if iconv needs const" >&5 |
b7043674 | 16136 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
16137 | echo $ac_n "(cached) $ac_c" 1>&6 |
16138 | else | |
b7043674 | 16139 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 16140 | #line 16141 "configure" |
b040e242 VS |
16141 | #include "confdefs.h" |
16142 | ||
16143 | #include <stdlib.h> | |
16144 | #include <iconv.h> | |
16145 | extern | |
16146 | #ifdef __cplusplus | |
16147 | "C" | |
16148 | #endif | |
16149 | #if defined(__STDC__) || defined(__cplusplus) | |
16150 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16151 | #else | |
16152 | size_t iconv(); | |
16153 | #endif | |
b7043674 | 16154 | |
b040e242 | 16155 | int main() { |
af15babd | 16156 | |
b040e242 VS |
16157 | ; return 0; } |
16158 | EOF | |
986ecc86 | 16159 | if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 16160 | rm -rf conftest* |
b7043674 | 16161 | wx_cv_func_iconv_const="no" |
b040e242 VS |
16162 | else |
16163 | echo "configure: failed program was:" >&5 | |
16164 | cat conftest.$ac_ext >&5 | |
16165 | rm -rf conftest* | |
b7043674 VZ |
16166 | wx_cv_func_iconv_const="yes" |
16167 | ||
b040e242 VS |
16168 | fi |
16169 | rm -f conftest* | |
b7043674 | 16170 | |
af15babd | 16171 | fi |
af15babd | 16172 | |
b7043674 VZ |
16173 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
16174 | ||
16175 | iconv_const= | |
1c405bb5 | 16176 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16177 | iconv_const="const" |
16178 | fi | |
16179 | ||
b040e242 | 16180 | cat >> confdefs.h <<EOF |
b7043674 | 16181 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16182 | EOF |
16183 | ||
16184 | fi | |
16185 | LIBICONV= | |
16186 | if test "$am_cv_lib_iconv" = yes; then | |
16187 | LIBICONV="-liconv" | |
16188 | fi | |
16189 | ||
16190 | ||
16191 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
16192 | ac_ext=c |
16193 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16194 | ac_cpp='$CPP $CPPFLAGS' | |
16195 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16196 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16197 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16198 | |
af15babd | 16199 | |
4f14bcd8 GD |
16200 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16201 | for ac_func in sigaction | |
af15babd VZ |
16202 | do |
16203 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16204 | echo "configure:16205: checking for $ac_func" >&5 |
af15babd VZ |
16205 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16207 | else | |
16208 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16209 | #line 16210 "configure" |
af15babd VZ |
16210 | #include "confdefs.h" |
16211 | /* System header to define __stub macros and hopefully few prototypes, | |
16212 | which can conflict with char $ac_func(); below. */ | |
16213 | #include <assert.h> | |
16214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16215 | /* We use char because int might match the return type of a gcc2 | |
16216 | builtin and then its argument prototype would still apply. */ | |
16217 | char $ac_func(); | |
16218 | ||
16219 | int main() { | |
16220 | ||
16221 | /* The GNU C library defines this for functions which it implements | |
16222 | to always fail with ENOSYS. Some functions are actually named | |
16223 | something starting with __ and the normal name is an alias. */ | |
16224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16225 | choke me | |
16226 | #else | |
16227 | $ac_func(); | |
16228 | #endif | |
16229 | ||
16230 | ; return 0; } | |
16231 | EOF | |
986ecc86 | 16232 | if { (eval echo configure:16233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16233 | rm -rf conftest* |
16234 | eval "ac_cv_func_$ac_func=yes" | |
16235 | else | |
16236 | echo "configure: failed program was:" >&5 | |
16237 | cat conftest.$ac_ext >&5 | |
16238 | rm -rf conftest* | |
16239 | eval "ac_cv_func_$ac_func=no" | |
16240 | fi | |
16241 | rm -f conftest* | |
16242 | fi | |
16243 | ||
16244 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16245 | echo "$ac_t""yes" 1>&6 | |
16246 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16247 | cat >> confdefs.h <<EOF | |
16248 | #define $ac_tr_func 1 | |
16249 | EOF | |
4f14bcd8 | 16250 | |
af15babd VZ |
16251 | else |
16252 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16253 | fi |
16254 | done | |
16255 | ||
16256 | ||
16257 | if test "$ac_cv_func_sigaction" = "no"; then | |
16258 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16259 | wxUSE_ON_FATAL_EXCEPTION=no | |
16260 | fi | |
16261 | ||
16262 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16263 | ||
16264 | ac_ext=C | |
16265 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16267 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16268 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16269 | cross_compiling=$ac_cv_prog_cxx_cross | |
16270 | ||
16271 | ||
16272 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
986ecc86 | 16273 | echo "configure:16274: checking for sa_handler type" >&5 |
4f14bcd8 | 16274 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
16275 | echo $ac_n "(cached) $ac_c" 1>&6 |
16276 | else | |
4f14bcd8 GD |
16277 | |
16278 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16279 | #line 16280 "configure" |
af15babd | 16280 | #include "confdefs.h" |
4f14bcd8 | 16281 | #include <signal.h> |
af15babd | 16282 | int main() { |
4f14bcd8 GD |
16283 | |
16284 | extern void testSigHandler(int); | |
16285 | ||
16286 | struct sigaction sa; | |
16287 | sa.sa_handler = testSigHandler; | |
16288 | ||
af15babd VZ |
16289 | ; return 0; } |
16290 | EOF | |
986ecc86 | 16291 | if { (eval echo configure:16292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16292 | rm -rf conftest* |
4f14bcd8 GD |
16293 | |
16294 | wx_cv_type_sa_handler=int | |
16295 | ||
af15babd VZ |
16296 | else |
16297 | echo "configure: failed program was:" >&5 | |
16298 | cat conftest.$ac_ext >&5 | |
16299 | rm -rf conftest* | |
4f14bcd8 GD |
16300 | |
16301 | wx_cv_type_sa_handler=void | |
16302 | ||
af15babd VZ |
16303 | fi |
16304 | rm -f conftest* | |
4f14bcd8 GD |
16305 | |
16306 | fi | |
16307 | ||
16308 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16309 | ||
16310 | ac_ext=c | |
16311 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16312 | ac_cpp='$CPP $CPPFLAGS' | |
16313 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16314 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16315 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16316 | |
4f14bcd8 GD |
16317 | |
16318 | cat >> confdefs.h <<EOF | |
16319 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16320 | EOF |
16321 | ||
4f14bcd8 GD |
16322 | fi |
16323 | fi | |
af15babd | 16324 | |
4f14bcd8 | 16325 | for ac_func in vfork |
af15babd VZ |
16326 | do |
16327 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16328 | echo "configure:16329: checking for $ac_func" >&5 |
af15babd VZ |
16329 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16331 | else | |
16332 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16333 | #line 16334 "configure" |
af15babd VZ |
16334 | #include "confdefs.h" |
16335 | /* System header to define __stub macros and hopefully few prototypes, | |
16336 | which can conflict with char $ac_func(); below. */ | |
16337 | #include <assert.h> | |
16338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16339 | /* We use char because int might match the return type of a gcc2 | |
16340 | builtin and then its argument prototype would still apply. */ | |
16341 | char $ac_func(); | |
16342 | ||
16343 | int main() { | |
16344 | ||
16345 | /* The GNU C library defines this for functions which it implements | |
16346 | to always fail with ENOSYS. Some functions are actually named | |
16347 | something starting with __ and the normal name is an alias. */ | |
16348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16349 | choke me | |
16350 | #else | |
16351 | $ac_func(); | |
16352 | #endif | |
16353 | ||
16354 | ; return 0; } | |
16355 | EOF | |
986ecc86 | 16356 | if { (eval echo configure:16357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16357 | rm -rf conftest* |
16358 | eval "ac_cv_func_$ac_func=yes" | |
16359 | else | |
16360 | echo "configure: failed program was:" >&5 | |
16361 | cat conftest.$ac_ext >&5 | |
16362 | rm -rf conftest* | |
16363 | eval "ac_cv_func_$ac_func=no" | |
16364 | fi | |
16365 | rm -f conftest* | |
16366 | fi | |
16367 | ||
16368 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16369 | echo "$ac_t""yes" 1>&6 | |
16370 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16371 | cat >> confdefs.h <<EOF | |
16372 | #define $ac_tr_func 1 | |
16373 | EOF | |
4f14bcd8 | 16374 | |
af15babd VZ |
16375 | else |
16376 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16377 | fi |
16378 | done | |
16379 | ||
af15babd | 16380 | |
ade35f11 VZ |
16381 | for ac_func in mkstemp mktemp |
16382 | do | |
16383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16384 | echo "configure:16385: checking for $ac_func" >&5 |
ade35f11 VZ |
16385 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16387 | else | |
16388 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16389 | #line 16390 "configure" |
ade35f11 VZ |
16390 | #include "confdefs.h" |
16391 | /* System header to define __stub macros and hopefully few prototypes, | |
16392 | which can conflict with char $ac_func(); below. */ | |
16393 | #include <assert.h> | |
16394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16395 | /* We use char because int might match the return type of a gcc2 | |
16396 | builtin and then its argument prototype would still apply. */ | |
16397 | char $ac_func(); | |
16398 | ||
16399 | int main() { | |
16400 | ||
16401 | /* The GNU C library defines this for functions which it implements | |
16402 | to always fail with ENOSYS. Some functions are actually named | |
16403 | something starting with __ and the normal name is an alias. */ | |
16404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16405 | choke me | |
16406 | #else | |
16407 | $ac_func(); | |
16408 | #endif | |
16409 | ||
16410 | ; return 0; } | |
16411 | EOF | |
986ecc86 | 16412 | if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16413 | rm -rf conftest* |
16414 | eval "ac_cv_func_$ac_func=yes" | |
16415 | else | |
16416 | echo "configure: failed program was:" >&5 | |
16417 | cat conftest.$ac_ext >&5 | |
16418 | rm -rf conftest* | |
16419 | eval "ac_cv_func_$ac_func=no" | |
16420 | fi | |
16421 | rm -f conftest* | |
16422 | fi | |
16423 | ||
16424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16425 | echo "$ac_t""yes" 1>&6 | |
16426 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16427 | cat >> confdefs.h <<EOF | |
16428 | #define $ac_tr_func 1 | |
16429 | EOF | |
16430 | break | |
16431 | else | |
16432 | echo "$ac_t""no" 1>&6 | |
16433 | fi | |
16434 | done | |
16435 | ||
16436 | ||
4f14bcd8 | 16437 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
986ecc86 | 16438 | echo "configure:16439: checking for statfs" >&5 |
4f14bcd8 GD |
16439 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16441 | else | |
16442 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16443 | #line 16444 "configure" |
4f14bcd8 GD |
16444 | #include "confdefs.h" |
16445 | ||
16446 | #if defined(__BSD__) | |
16447 | #include <sys/param.h> | |
16448 | #include <sys/mount.h> | |
16449 | #else | |
16450 | #include <sys/vfs.h> | |
16451 | #endif | |
16452 | ||
16453 | int main() { | |
16454 | ||
16455 | long l; | |
16456 | struct statfs fs; | |
16457 | statfs("/", &fs); | |
16458 | l = fs.f_bsize; | |
16459 | l += fs.f_blocks; | |
16460 | l += fs.f_bavail; | |
16461 | ||
16462 | ; return 0; } | |
16463 | EOF | |
986ecc86 | 16464 | if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16465 | rm -rf conftest* |
16466 | ||
16467 | wx_cv_func_statfs=yes | |
16468 | ||
16469 | else | |
16470 | echo "configure: failed program was:" >&5 | |
16471 | cat conftest.$ac_ext >&5 | |
16472 | rm -rf conftest* | |
16473 | ||
16474 | wx_cv_func_statfs=no | |
af15babd VZ |
16475 | |
16476 | ||
16477 | fi | |
4f14bcd8 | 16478 | rm -f conftest* |
af15babd VZ |
16479 | |
16480 | fi | |
16481 | ||
4f14bcd8 GD |
16482 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16483 | ||
16484 | if test "$wx_cv_func_statfs" = "yes"; then | |
16485 | cat >> confdefs.h <<\EOF | |
16486 | #define HAVE_STATFS 1 | |
16487 | EOF | |
16488 | ||
16489 | else | |
16490 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
986ecc86 | 16491 | echo "configure:16492: checking for statvfs" >&5 |
4f14bcd8 | 16492 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16493 | echo $ac_n "(cached) $ac_c" 1>&6 |
16494 | else | |
16495 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16496 | #line 16497 "configure" |
af15babd | 16497 | #include "confdefs.h" |
af15babd | 16498 | |
4f14bcd8 GD |
16499 | #include <sys/statvfs.h> |
16500 | ||
af15babd VZ |
16501 | int main() { |
16502 | ||
4f14bcd8 GD |
16503 | long l; |
16504 | struct statvfs fs; | |
16505 | statvfs("/", &fs); | |
16506 | l = fs.f_bsize; | |
16507 | l += fs.f_blocks; | |
16508 | l += fs.f_bavail; | |
16509 | ||
af15babd VZ |
16510 | ; return 0; } |
16511 | EOF | |
986ecc86 | 16512 | if { (eval echo configure:16513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16513 | rm -rf conftest* |
4f14bcd8 GD |
16514 | |
16515 | wx_cv_func_statvfs=yes | |
16516 | ||
af15babd VZ |
16517 | else |
16518 | echo "configure: failed program was:" >&5 | |
16519 | cat conftest.$ac_ext >&5 | |
16520 | rm -rf conftest* | |
4f14bcd8 GD |
16521 | |
16522 | wx_cv_func_statvfs=no | |
16523 | ||
16524 | ||
af15babd VZ |
16525 | fi |
16526 | rm -f conftest* | |
4f14bcd8 | 16527 | |
af15babd VZ |
16528 | fi |
16529 | ||
4f14bcd8 | 16530 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16531 | |
4f14bcd8 GD |
16532 | if test "$wx_cv_func_statvfs" = "yes"; then |
16533 | cat >> confdefs.h <<\EOF | |
16534 | #define HAVE_STATVFS 1 | |
16535 | EOF | |
af15babd | 16536 | |
4f14bcd8 GD |
16537 | else |
16538 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16539 | fi | |
16540 | fi | |
af15babd | 16541 | |
4f14bcd8 GD |
16542 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16543 | for ac_func in fcntl flock | |
af15babd VZ |
16544 | do |
16545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16546 | echo "configure:16547: checking for $ac_func" >&5 |
af15babd VZ |
16547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16549 | else | |
16550 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16551 | #line 16552 "configure" |
af15babd VZ |
16552 | #include "confdefs.h" |
16553 | /* System header to define __stub macros and hopefully few prototypes, | |
16554 | which can conflict with char $ac_func(); below. */ | |
16555 | #include <assert.h> | |
16556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16557 | /* We use char because int might match the return type of a gcc2 |
16558 | builtin and then its argument prototype would still apply. */ | |
16559 | char $ac_func(); | |
16560 | ||
16561 | int main() { | |
16562 | ||
16563 | /* The GNU C library defines this for functions which it implements | |
16564 | to always fail with ENOSYS. Some functions are actually named | |
16565 | something starting with __ and the normal name is an alias. */ | |
16566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16567 | choke me | |
16568 | #else | |
16569 | $ac_func(); | |
16570 | #endif | |
16571 | ||
16572 | ; return 0; } | |
16573 | EOF | |
986ecc86 | 16574 | if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16575 | rm -rf conftest* |
16576 | eval "ac_cv_func_$ac_func=yes" | |
16577 | else | |
16578 | echo "configure: failed program was:" >&5 | |
16579 | cat conftest.$ac_ext >&5 | |
16580 | rm -rf conftest* | |
16581 | eval "ac_cv_func_$ac_func=no" | |
16582 | fi | |
16583 | rm -f conftest* | |
16584 | fi | |
16585 | ||
16586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16587 | echo "$ac_t""yes" 1>&6 | |
16588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16589 | cat >> confdefs.h <<EOF | |
16590 | #define $ac_tr_func 1 | |
16591 | EOF | |
4f14bcd8 | 16592 | break |
af15babd VZ |
16593 | else |
16594 | echo "$ac_t""no" 1>&6 | |
16595 | fi | |
16596 | done | |
16597 | ||
16598 | ||
4f14bcd8 GD |
16599 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16600 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16601 | wxUSE_SNGLINST_CHECKER=no | |
16602 | fi | |
16603 | fi | |
af15babd | 16604 | |
4f14bcd8 | 16605 | for ac_func in timegm |
af15babd VZ |
16606 | do |
16607 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16608 | echo "configure:16609: checking for $ac_func" >&5 |
af15babd VZ |
16609 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16611 | else | |
16612 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16613 | #line 16614 "configure" |
af15babd VZ |
16614 | #include "confdefs.h" |
16615 | /* System header to define __stub macros and hopefully few prototypes, | |
16616 | which can conflict with char $ac_func(); below. */ | |
16617 | #include <assert.h> | |
16618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16619 | /* We use char because int might match the return type of a gcc2 | |
16620 | builtin and then its argument prototype would still apply. */ | |
16621 | char $ac_func(); | |
16622 | ||
698dcdb6 | 16623 | int main() { |
698dcdb6 | 16624 | |
af15babd VZ |
16625 | /* The GNU C library defines this for functions which it implements |
16626 | to always fail with ENOSYS. Some functions are actually named | |
16627 | something starting with __ and the normal name is an alias. */ | |
16628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16629 | choke me | |
16630 | #else | |
16631 | $ac_func(); | |
16632 | #endif | |
16633 | ||
698dcdb6 VZ |
16634 | ; return 0; } |
16635 | EOF | |
986ecc86 | 16636 | if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16637 | rm -rf conftest* |
af15babd | 16638 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16639 | else |
16640 | echo "configure: failed program was:" >&5 | |
16641 | cat conftest.$ac_ext >&5 | |
16642 | rm -rf conftest* | |
af15babd | 16643 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16644 | fi |
9952adac | 16645 | rm -f conftest* |
af15babd | 16646 | fi |
703e0a69 | 16647 | |
af15babd VZ |
16648 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16649 | echo "$ac_t""yes" 1>&6 | |
16650 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16651 | cat >> confdefs.h <<EOF |
16652 | #define $ac_tr_func 1 | |
16653 | EOF | |
16654 | ||
16655 | else | |
16656 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16657 | fi |
16658 | done | |
16659 | ||
16660 | ||
4f14bcd8 | 16661 | for ac_func in putenv setenv |
10f2d63a | 16662 | do |
698dcdb6 | 16663 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 16664 | echo "configure:16665: checking for $ac_func" >&5 |
698dcdb6 VZ |
16665 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16667 | else | |
16668 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16669 | #line 16670 "configure" |
af15babd VZ |
16670 | #include "confdefs.h" |
16671 | /* System header to define __stub macros and hopefully few prototypes, | |
16672 | which can conflict with char $ac_func(); below. */ | |
16673 | #include <assert.h> | |
16674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16675 | /* We use char because int might match the return type of a gcc2 | |
16676 | builtin and then its argument prototype would still apply. */ | |
16677 | char $ac_func(); | |
16678 | ||
16679 | int main() { | |
16680 | ||
16681 | /* The GNU C library defines this for functions which it implements | |
16682 | to always fail with ENOSYS. Some functions are actually named | |
16683 | something starting with __ and the normal name is an alias. */ | |
16684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16685 | choke me | |
16686 | #else | |
16687 | $ac_func(); | |
16688 | #endif | |
16689 | ||
16690 | ; return 0; } | |
16691 | EOF | |
986ecc86 | 16692 | if { (eval echo configure:16693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16693 | rm -rf conftest* |
16694 | eval "ac_cv_func_$ac_func=yes" | |
16695 | else | |
16696 | echo "configure: failed program was:" >&5 | |
16697 | cat conftest.$ac_ext >&5 | |
16698 | rm -rf conftest* | |
16699 | eval "ac_cv_func_$ac_func=no" | |
16700 | fi | |
16701 | rm -f conftest* | |
16702 | fi | |
16703 | ||
16704 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16705 | echo "$ac_t""yes" 1>&6 | |
16706 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16707 | cat >> confdefs.h <<EOF | |
16708 | #define $ac_tr_func 1 | |
16709 | EOF | |
4f14bcd8 | 16710 | break |
af15babd VZ |
16711 | else |
16712 | echo "$ac_t""no" 1>&6 | |
16713 | fi | |
af15babd VZ |
16714 | done |
16715 | ||
16716 | ||
4f14bcd8 GD |
16717 | HAVE_SOME_SLEEP_FUNC=0 |
16718 | if test "$USE_BEOS" = 1; then | |
16719 | cat >> confdefs.h <<\EOF | |
16720 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16721 | EOF |
16722 | ||
4f14bcd8 | 16723 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16724 | fi |
16725 | ||
4f14bcd8 GD |
16726 | if test "$USE_DARWIN" = 1; then |
16727 | cat >> confdefs.h <<\EOF | |
16728 | #define HAVE_USLEEP 1 | |
af15babd | 16729 | EOF |
10f2d63a | 16730 | |
4f14bcd8 | 16731 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16732 | fi |
16733 | ||
4f14bcd8 GD |
16734 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16735 | POSIX4_LINK= | |
16736 | for ac_func in nanosleep | |
16737 | do | |
16738 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16739 | echo "configure:16740: checking for $ac_func" >&5 |
4f14bcd8 | 16740 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16741 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16742 | else |
4f14bcd8 | 16743 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 16744 | #line 16745 "configure" |
10f2d63a | 16745 | #include "confdefs.h" |
4f14bcd8 GD |
16746 | /* System header to define __stub macros and hopefully few prototypes, |
16747 | which can conflict with char $ac_func(); below. */ | |
16748 | #include <assert.h> | |
10f2d63a VZ |
16749 | /* Override any gcc2 internal prototype to avoid an error. */ |
16750 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16751 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16752 | char $ac_func(); |
698dcdb6 VZ |
16753 | |
16754 | int main() { | |
4f14bcd8 GD |
16755 | |
16756 | /* The GNU C library defines this for functions which it implements | |
16757 | to always fail with ENOSYS. Some functions are actually named | |
16758 | something starting with __ and the normal name is an alias. */ | |
16759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16760 | choke me | |
16761 | #else | |
16762 | $ac_func(); | |
16763 | #endif | |
16764 | ||
698dcdb6 VZ |
16765 | ; return 0; } |
16766 | EOF | |
986ecc86 | 16767 | if { (eval echo configure:16768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16768 | rm -rf conftest* |
4f14bcd8 | 16769 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16770 | else |
16771 | echo "configure: failed program was:" >&5 | |
16772 | cat conftest.$ac_ext >&5 | |
16773 | rm -rf conftest* | |
4f14bcd8 | 16774 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16775 | fi |
16776 | rm -f conftest* | |
698dcdb6 | 16777 | fi |
4f14bcd8 GD |
16778 | |
16779 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16780 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16781 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16782 | cat >> confdefs.h <<EOF | |
16783 | #define $ac_tr_func 1 | |
16784 | EOF | |
16785 | cat >> confdefs.h <<\EOF | |
16786 | #define HAVE_NANOSLEEP 1 | |
16787 | EOF | |
16788 | ||
10f2d63a | 16789 | else |
698dcdb6 | 16790 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16791 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
986ecc86 | 16792 | echo "configure:16793: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16793 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16794 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16796 | else |
698dcdb6 | 16797 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16798 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16799 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 16800 | #line 16801 "configure" |
10f2d63a VZ |
16801 | #include "confdefs.h" |
16802 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16803 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16804 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16805 | char nanosleep(); |
698dcdb6 VZ |
16806 | |
16807 | int main() { | |
4f14bcd8 | 16808 | nanosleep() |
698dcdb6 VZ |
16809 | ; return 0; } |
16810 | EOF | |
986ecc86 | 16811 | if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16812 | rm -rf conftest* |
16813 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16814 | else | |
16815 | echo "configure: failed program was:" >&5 | |
16816 | cat conftest.$ac_ext >&5 | |
16817 | rm -rf conftest* | |
16818 | eval "ac_cv_lib_$ac_lib_var=no" | |
16819 | fi | |
16820 | rm -f conftest* | |
16821 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16822 | |
698dcdb6 VZ |
16823 | fi |
16824 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16825 | echo "$ac_t""yes" 1>&6 | |
16826 | ||
4f14bcd8 GD |
16827 | cat >> confdefs.h <<\EOF |
16828 | #define HAVE_NANOSLEEP 1 | |
16829 | EOF | |
16830 | ||
3d63bc3a | 16831 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16832 | |
10f2d63a | 16833 | else |
698dcdb6 | 16834 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16835 | |
4f14bcd8 GD |
16836 | for ac_func in usleep |
16837 | do | |
16838 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 16839 | echo "configure:16840: checking for $ac_func" >&5 |
4f14bcd8 | 16840 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16841 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16842 | else |
698dcdb6 | 16843 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 16844 | #line 16845 "configure" |
10f2d63a | 16845 | #include "confdefs.h" |
4f14bcd8 GD |
16846 | /* System header to define __stub macros and hopefully few prototypes, |
16847 | which can conflict with char $ac_func(); below. */ | |
16848 | #include <assert.h> | |
16849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16850 | /* We use char because int might match the return type of a gcc2 | |
16851 | builtin and then its argument prototype would still apply. */ | |
16852 | char $ac_func(); | |
16853 | ||
16854 | int main() { | |
16855 | ||
16856 | /* The GNU C library defines this for functions which it implements | |
16857 | to always fail with ENOSYS. Some functions are actually named | |
16858 | something starting with __ and the normal name is an alias. */ | |
16859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16860 | choke me | |
16861 | #else | |
16862 | $ac_func(); | |
16863 | #endif | |
16864 | ||
16865 | ; return 0; } | |
698dcdb6 | 16866 | EOF |
986ecc86 | 16867 | if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16868 | rm -rf conftest* |
4f14bcd8 | 16869 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16870 | else |
698dcdb6 | 16871 | echo "configure: failed program was:" >&5 |
10f2d63a | 16872 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16873 | rm -rf conftest* |
4f14bcd8 | 16874 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16875 | fi |
698dcdb6 | 16876 | rm -f conftest* |
10f2d63a | 16877 | fi |
4f14bcd8 GD |
16878 | |
16879 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16880 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16881 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16882 | cat >> confdefs.h <<EOF | |
16883 | #define $ac_tr_func 1 | |
16884 | EOF | |
16885 | cat >> confdefs.h <<\EOF | |
16886 | #define HAVE_USLEEP 1 | |
16887 | EOF | |
16888 | ||
698dcdb6 VZ |
16889 | else |
16890 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16891 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16892 | ||
10f2d63a | 16893 | fi |
4f14bcd8 | 16894 | done |
10f2d63a | 16895 | |
4f14bcd8 | 16896 | |
698dcdb6 | 16897 | |
6232543b | 16898 | fi |
10f2d63a | 16899 | |
698dcdb6 | 16900 | |
4f14bcd8 | 16901 | |
1e487827 | 16902 | fi |
4f14bcd8 | 16903 | done |
703e0a69 | 16904 | |
10f2d63a VZ |
16905 | fi |
16906 | ||
4f14bcd8 | 16907 | for ac_func in uname gethostname |
70846f0a | 16908 | do |
698dcdb6 | 16909 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 16910 | echo "configure:16911: checking for $ac_func" >&5 |
698dcdb6 VZ |
16911 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16912 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16913 | else | |
16914 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16915 | #line 16916 "configure" |
70846f0a VZ |
16916 | #include "confdefs.h" |
16917 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16918 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16919 | #include <assert.h> |
16920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16921 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16922 | builtin and then its argument prototype would still apply. */ |
16923 | char $ac_func(); | |
16924 | ||
16925 | int main() { | |
70846f0a VZ |
16926 | |
16927 | /* The GNU C library defines this for functions which it implements | |
16928 | to always fail with ENOSYS. Some functions are actually named | |
16929 | something starting with __ and the normal name is an alias. */ | |
16930 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16931 | choke me | |
16932 | #else | |
698dcdb6 | 16933 | $ac_func(); |
70846f0a VZ |
16934 | #endif |
16935 | ||
698dcdb6 | 16936 | ; return 0; } |
70846f0a | 16937 | EOF |
986ecc86 | 16938 | if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16939 | rm -rf conftest* |
16940 | eval "ac_cv_func_$ac_func=yes" | |
16941 | else | |
16942 | echo "configure: failed program was:" >&5 | |
16943 | cat conftest.$ac_ext >&5 | |
16944 | rm -rf conftest* | |
16945 | eval "ac_cv_func_$ac_func=no" | |
16946 | fi | |
16947 | rm -f conftest* | |
16948 | fi | |
70846f0a | 16949 | |
698dcdb6 VZ |
16950 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16951 | echo "$ac_t""yes" 1>&6 | |
16952 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16953 | cat >> confdefs.h <<EOF | |
16954 | #define $ac_tr_func 1 | |
16955 | EOF | |
4f14bcd8 | 16956 | break |
698dcdb6 VZ |
16957 | else |
16958 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16959 | fi |
16960 | done | |
16961 | ||
698dcdb6 | 16962 | |
4f14bcd8 GD |
16963 | |
16964 | ac_ext=C | |
16965 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16966 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16967 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16968 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16969 | cross_compiling=$ac_cv_prog_cxx_cross | |
16970 | ||
16971 | ||
16972 | for ac_func in strtok_r | |
10f2d63a | 16973 | do |
4f14bcd8 | 16974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 16975 | echo "configure:16976: checking for $ac_func" >&5 |
4f14bcd8 | 16976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16977 | echo $ac_n "(cached) $ac_c" 1>&6 |
16978 | else | |
16979 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 16980 | #line 16981 "configure" |
10f2d63a | 16981 | #include "confdefs.h" |
4f14bcd8 GD |
16982 | /* System header to define __stub macros and hopefully few prototypes, |
16983 | which can conflict with char $ac_func(); below. */ | |
16984 | #include <assert.h> | |
16985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16986 | #ifdef __cplusplus | |
16987 | extern "C" | |
16988 | #endif | |
16989 | /* We use char because int might match the return type of a gcc2 | |
16990 | builtin and then its argument prototype would still apply. */ | |
16991 | char $ac_func(); | |
16992 | ||
16993 | int main() { | |
16994 | ||
16995 | /* The GNU C library defines this for functions which it implements | |
16996 | to always fail with ENOSYS. Some functions are actually named | |
16997 | something starting with __ and the normal name is an alias. */ | |
16998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16999 | choke me | |
17000 | #else | |
17001 | $ac_func(); | |
17002 | #endif | |
17003 | ||
17004 | ; return 0; } | |
698dcdb6 | 17005 | EOF |
986ecc86 | 17006 | if { (eval echo configure:17007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17007 | rm -rf conftest* |
4f14bcd8 | 17008 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 17009 | else |
698dcdb6 | 17010 | echo "configure: failed program was:" >&5 |
10f2d63a | 17011 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17012 | rm -rf conftest* |
4f14bcd8 | 17013 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 17014 | fi |
698dcdb6 | 17015 | rm -f conftest* |
10f2d63a | 17016 | fi |
4f14bcd8 GD |
17017 | |
17018 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17019 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17020 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 17021 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17022 | #define $ac_tr_func 1 |
10f2d63a | 17023 | EOF |
698dcdb6 VZ |
17024 | |
17025 | else | |
17026 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17027 | fi |
17028 | done | |
17029 | ||
698dcdb6 | 17030 | |
4f14bcd8 GD |
17031 | ac_ext=c |
17032 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17033 | ac_cpp='$CPP $CPPFLAGS' | |
17034 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17035 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17036 | cross_compiling=$ac_cv_prog_cc_cross | |
17037 | ||
17038 | ||
17039 | INET_LINK= | |
17040 | for ac_func in inet_addr | |
17041 | do | |
17042 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 17043 | echo "configure:17044: checking for $ac_func" >&5 |
4f14bcd8 | 17044 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 17045 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 17046 | else |
4f14bcd8 | 17047 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17048 | #line 17049 "configure" |
10f2d63a | 17049 | #include "confdefs.h" |
4f14bcd8 GD |
17050 | /* System header to define __stub macros and hopefully few prototypes, |
17051 | which can conflict with char $ac_func(); below. */ | |
17052 | #include <assert.h> | |
10f2d63a VZ |
17053 | /* Override any gcc2 internal prototype to avoid an error. */ |
17054 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17055 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17056 | char $ac_func(); |
698dcdb6 VZ |
17057 | |
17058 | int main() { | |
4f14bcd8 GD |
17059 | |
17060 | /* The GNU C library defines this for functions which it implements | |
17061 | to always fail with ENOSYS. Some functions are actually named | |
17062 | something starting with __ and the normal name is an alias. */ | |
17063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17064 | choke me | |
17065 | #else | |
17066 | $ac_func(); | |
17067 | #endif | |
17068 | ||
698dcdb6 VZ |
17069 | ; return 0; } |
17070 | EOF | |
986ecc86 | 17071 | if { (eval echo configure:17072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17072 | rm -rf conftest* |
4f14bcd8 | 17073 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17074 | else |
17075 | echo "configure: failed program was:" >&5 | |
17076 | cat conftest.$ac_ext >&5 | |
17077 | rm -rf conftest* | |
4f14bcd8 | 17078 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17079 | fi |
17080 | rm -f conftest* | |
698dcdb6 | 17081 | fi |
4f14bcd8 GD |
17082 | |
17083 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17084 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17085 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17086 | cat >> confdefs.h <<EOF | |
17087 | #define $ac_tr_func 1 | |
17088 | EOF | |
17089 | cat >> confdefs.h <<\EOF | |
17090 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
17091 | EOF |
17092 | ||
17093 | else | |
698dcdb6 | 17094 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17095 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
986ecc86 | 17096 | echo "configure:17097: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 17097 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17098 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17100 | else |
698dcdb6 | 17101 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17102 | LIBS="-lnsl $LIBS" |
698dcdb6 | 17103 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17104 | #line 17105 "configure" |
10f2d63a VZ |
17105 | #include "confdefs.h" |
17106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17107 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17108 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17109 | char inet_addr(); |
698dcdb6 VZ |
17110 | |
17111 | int main() { | |
4f14bcd8 | 17112 | inet_addr() |
698dcdb6 VZ |
17113 | ; return 0; } |
17114 | EOF | |
986ecc86 | 17115 | if { (eval echo configure:17116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17116 | rm -rf conftest* |
17117 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17118 | else | |
17119 | echo "configure: failed program was:" >&5 | |
17120 | cat conftest.$ac_ext >&5 | |
17121 | rm -rf conftest* | |
17122 | eval "ac_cv_lib_$ac_lib_var=no" | |
17123 | fi | |
17124 | rm -f conftest* | |
17125 | LIBS="$ac_save_LIBS" | |
17126 | ||
17127 | fi | |
17128 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17129 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17130 | INET_LINK="nsl" |
10f2d63a | 17131 | else |
698dcdb6 | 17132 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17133 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
986ecc86 | 17134 | echo "configure:17135: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 17135 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17136 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17138 | else |
698dcdb6 | 17139 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17140 | LIBS="-lresolv $LIBS" |
698dcdb6 | 17141 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17142 | #line 17143 "configure" |
10f2d63a VZ |
17143 | #include "confdefs.h" |
17144 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17145 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17146 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17147 | char inet_addr(); |
698dcdb6 VZ |
17148 | |
17149 | int main() { | |
4f14bcd8 | 17150 | inet_addr() |
698dcdb6 VZ |
17151 | ; return 0; } |
17152 | EOF | |
986ecc86 | 17153 | if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17154 | rm -rf conftest* |
17155 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17156 | else | |
17157 | echo "configure: failed program was:" >&5 | |
17158 | cat conftest.$ac_ext >&5 | |
17159 | rm -rf conftest* | |
17160 | eval "ac_cv_lib_$ac_lib_var=no" | |
17161 | fi | |
17162 | rm -f conftest* | |
17163 | LIBS="$ac_save_LIBS" | |
17164 | ||
17165 | fi | |
17166 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17167 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17168 | INET_LINK="resolv" |
698dcdb6 | 17169 | else |
4f14bcd8 | 17170 | echo "$ac_t""no" 1>&6 |
3c011993 | 17171 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
986ecc86 | 17172 | echo "configure:17173: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
17173 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17174 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17176 | else | |
17177 | ac_save_LIBS="$LIBS" | |
17178 | LIBS="-lsocket $LIBS" | |
17179 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 17180 | #line 17181 "configure" |
3c011993 VZ |
17181 | #include "confdefs.h" |
17182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17183 | /* We use char because int might match the return type of a gcc2 | |
17184 | builtin and then its argument prototype would still apply. */ | |
17185 | char inet_addr(); | |
17186 | ||
17187 | int main() { | |
17188 | inet_addr() | |
17189 | ; return 0; } | |
17190 | EOF | |
986ecc86 | 17191 | if { (eval echo configure:17192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
17192 | rm -rf conftest* |
17193 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17194 | else | |
17195 | echo "configure: failed program was:" >&5 | |
17196 | cat conftest.$ac_ext >&5 | |
17197 | rm -rf conftest* | |
17198 | eval "ac_cv_lib_$ac_lib_var=no" | |
17199 | fi | |
17200 | rm -f conftest* | |
17201 | LIBS="$ac_save_LIBS" | |
17202 | ||
17203 | fi | |
17204 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17205 | echo "$ac_t""yes" 1>&6 | |
17206 | INET_LINK="socket" | |
17207 | ||
17208 | else | |
17209 | echo "$ac_t""no" 1>&6 | |
17210 | fi | |
17211 | ||
17212 | ||
4f14bcd8 | 17213 | fi |
698dcdb6 | 17214 | |
4f14bcd8 | 17215 | |
698dcdb6 | 17216 | fi |
4f14bcd8 GD |
17217 | |
17218 | ||
698dcdb6 VZ |
17219 | |
17220 | fi | |
4f14bcd8 GD |
17221 | done |
17222 | ||
17223 | ||
17224 | for ac_func in inet_aton | |
17225 | do | |
17226 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 17227 | echo "configure:17228: checking for $ac_func" >&5 |
4f14bcd8 | 17228 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17229 | echo $ac_n "(cached) $ac_c" 1>&6 |
17230 | else | |
4f14bcd8 | 17231 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17232 | #line 17233 "configure" |
f6bcfd97 | 17233 | #include "confdefs.h" |
4f14bcd8 GD |
17234 | /* System header to define __stub macros and hopefully few prototypes, |
17235 | which can conflict with char $ac_func(); below. */ | |
17236 | #include <assert.h> | |
f6bcfd97 BP |
17237 | /* Override any gcc2 internal prototype to avoid an error. */ |
17238 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17239 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17240 | char $ac_func(); |
698dcdb6 VZ |
17241 | |
17242 | int main() { | |
4f14bcd8 GD |
17243 | |
17244 | /* The GNU C library defines this for functions which it implements | |
17245 | to always fail with ENOSYS. Some functions are actually named | |
17246 | something starting with __ and the normal name is an alias. */ | |
17247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17248 | choke me | |
17249 | #else | |
17250 | $ac_func(); | |
17251 | #endif | |
17252 | ||
698dcdb6 VZ |
17253 | ; return 0; } |
17254 | EOF | |
986ecc86 | 17255 | if { (eval echo configure:17256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17256 | rm -rf conftest* |
4f14bcd8 | 17257 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17258 | else |
17259 | echo "configure: failed program was:" >&5 | |
17260 | cat conftest.$ac_ext >&5 | |
17261 | rm -rf conftest* | |
4f14bcd8 | 17262 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17263 | fi |
17264 | rm -f conftest* | |
698dcdb6 | 17265 | fi |
4f14bcd8 GD |
17266 | |
17267 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17268 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17269 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17270 | cat >> confdefs.h <<EOF | |
17271 | #define $ac_tr_func 1 | |
17272 | EOF | |
17273 | cat >> confdefs.h <<\EOF | |
17274 | #define HAVE_INET_ATON 1 | |
17275 | EOF | |
17276 | ||
10f2d63a | 17277 | else |
698dcdb6 | 17278 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17279 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
986ecc86 | 17280 | echo "configure:17281: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 17281 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17284 | else |
698dcdb6 | 17285 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17286 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17287 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17288 | #line 17289 "configure" |
10f2d63a | 17289 | #include "confdefs.h" |
6232543b | 17290 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17291 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17292 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17293 | char inet_aton(); |
698dcdb6 VZ |
17294 | |
17295 | int main() { | |
4f14bcd8 | 17296 | inet_aton() |
698dcdb6 VZ |
17297 | ; return 0; } |
17298 | EOF | |
986ecc86 | 17299 | if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17300 | rm -rf conftest* |
17301 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17302 | else | |
17303 | echo "configure: failed program was:" >&5 | |
17304 | cat conftest.$ac_ext >&5 | |
17305 | rm -rf conftest* | |
17306 | eval "ac_cv_lib_$ac_lib_var=no" | |
17307 | fi | |
17308 | rm -f conftest* | |
17309 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17310 | |
698dcdb6 VZ |
17311 | fi |
17312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17313 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17314 | cat >> confdefs.h <<\EOF |
17315 | #define HAVE_INET_ATON 1 | |
17316 | EOF | |
17317 | ||
698dcdb6 VZ |
17318 | else |
17319 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17320 | fi |
17321 | ||
4f14bcd8 | 17322 | |
10f2d63a | 17323 | fi |
4f14bcd8 | 17324 | done |
10f2d63a | 17325 | |
4f14bcd8 GD |
17326 | |
17327 | if test "x$INET_LINK" != "x"; then | |
17328 | cat >> confdefs.h <<\EOF | |
17329 | #define HAVE_INET_ADDR 1 | |
17330 | EOF | |
17331 | ||
3d63bc3a | 17332 | INET_LINK=" -l$INET_LINK" |
6232543b | 17333 | fi |
10f2d63a | 17334 | |
1e487827 | 17335 | fi |
703e0a69 | 17336 | |
698dcdb6 | 17337 | |
4f14bcd8 GD |
17338 | cat > confcache <<\EOF |
17339 | # This file is a shell script that caches the results of configure | |
17340 | # tests run on this system so they can be shared between configure | |
17341 | # scripts and configure runs. It is not useful on other systems. | |
17342 | # If it contains results you don't want to keep, you may remove or edit it. | |
17343 | # | |
17344 | # By default, configure uses ./config.cache as the cache file, | |
17345 | # creating it if it does not exist already. You can give configure | |
17346 | # the --cache-file=FILE option to use a different cache file; that is | |
17347 | # what configure does when it calls configure scripts in | |
17348 | # subdirectories, so they share the cache. | |
17349 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17350 | # config.status only pays attention to the cache file if you give it the | |
17351 | # --recheck option to rerun configure. | |
17352 | # | |
f6bcfd97 | 17353 | EOF |
4f14bcd8 GD |
17354 | # The following way of writing the cache mishandles newlines in values, |
17355 | # but we know of no workaround that is simple, portable, and efficient. | |
17356 | # So, don't put newlines in cache variables' values. | |
17357 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17358 | # and sets the high bit in the cache file unless we assign to the vars. | |
17359 | (set) 2>&1 | | |
17360 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17361 | *ac_space=\ *) | |
17362 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17363 | # turns \\\\ into \\, and sed turns \\ into \). | |
17364 | sed -n \ | |
17365 | -e "s/'/'\\\\''/g" \ | |
17366 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17367 | ;; | |
17368 | *) | |
17369 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17370 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17371 | ;; | |
17372 | esac >> confcache | |
17373 | if cmp -s $cache_file confcache; then | |
17374 | : | |
17375 | else | |
17376 | if test -w $cache_file; then | |
17377 | echo "updating cache $cache_file" | |
17378 | cat confcache > $cache_file | |
f6bcfd97 | 17379 | else |
4f14bcd8 | 17380 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17381 | fi |
4f14bcd8 GD |
17382 | fi |
17383 | rm -f confcache | |
f6bcfd97 | 17384 | |
4f14bcd8 GD |
17385 | |
17386 | ||
009fead0 | 17387 | CPP_MT_FLAG= |
4f14bcd8 GD |
17388 | if test "$TOOLKIT" != "MSW"; then |
17389 | ||
009fead0 | 17390 | |
7274f1c7 | 17391 | THREADS_LINK= |
009fead0 | 17392 | THREADS_CFLAGS= |
7274f1c7 RL |
17393 | |
17394 | if test "$wxUSE_THREADS" = "yes" ; then | |
17395 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17396 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17397 | wxUSE_THREADS="no" |
17398 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17399 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17400 | wxUSE_THREADS="no" |
17401 | fi | |
4f14bcd8 | 17402 | fi |
4f14bcd8 | 17403 | |
7274f1c7 | 17404 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17405 | |
3010d50a | 17406 | |
009fead0 VZ |
17407 | THREAD_OPTS="-pthread" |
17408 | case "${host}" in | |
17409 | *-*-solaris2* | *-*-sunos4* ) | |
17410 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17411 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17412 | else |
17413 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17414 | fi | |
17415 | ;; | |
17416 | *-*-freebsd*) | |
17417 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17418 | ;; | |
4101db81 | 17419 | *-*-darwin*) |
8f4a9a10 | 17420 | THREAD_OPTS="" |
4101db81 | 17421 | ;; |
8f4a9a10 | 17422 | *-*-aix*) |
009fead0 VZ |
17423 | THREAD_OPTS="pthreads" |
17424 | ;; | |
009fead0 | 17425 | esac |
4f14bcd8 | 17426 | |
02a1dfba | 17427 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17428 | |
009fead0 VZ |
17429 | THREADS_OK=no |
17430 | for flag in $THREAD_OPTS; do | |
17431 | case $flag in | |
17432 | none) | |
17433 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
986ecc86 | 17434 | echo "configure:17435: checking whether pthreads work without any flags" >&5 |
009fead0 | 17435 | ;; |
698dcdb6 | 17436 | |
009fead0 VZ |
17437 | -*) |
17438 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
986ecc86 | 17439 | echo "configure:17440: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17440 | THREADS_CFLAGS="$flag" |
17441 | ;; | |
698dcdb6 | 17442 | |
009fead0 VZ |
17443 | *) |
17444 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
986ecc86 | 17445 | echo "configure:17446: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17446 | THREADS_LINK="-l$flag" |
17447 | ;; | |
17448 | esac | |
10f2d63a | 17449 | |
009fead0 VZ |
17450 | save_LIBS="$LIBS" |
17451 | save_CFLAGS="$CFLAGS" | |
17452 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17453 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17454 | |
009fead0 | 17455 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17456 | #line 17457 "configure" |
009fead0 VZ |
17457 | #include "confdefs.h" |
17458 | #include <pthread.h> | |
4f14bcd8 | 17459 | int main() { |
009fead0 | 17460 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17461 | ; return 0; } |
17462 | EOF | |
986ecc86 | 17463 | if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17464 | rm -rf conftest* |
009fead0 | 17465 | THREADS_OK=yes |
10f2d63a | 17466 | else |
698dcdb6 VZ |
17467 | echo "configure: failed program was:" >&5 |
17468 | cat conftest.$ac_ext >&5 | |
6232543b | 17469 | fi |
698dcdb6 | 17470 | rm -f conftest* |
698dcdb6 | 17471 | |
009fead0 VZ |
17472 | LIBS="$save_LIBS" |
17473 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17474 | |
009fead0 VZ |
17475 | echo "$ac_t""$THREADS_OK" 1>&6 |
17476 | if test "x$THREADS_OK" = "xyes"; then | |
17477 | break; | |
17478 | fi | |
d9b9876f | 17479 | |
009fead0 VZ |
17480 | THREADS_LINK="" |
17481 | THREADS_CFLAGS="" | |
17482 | done | |
4f14bcd8 | 17483 | |
009fead0 VZ |
17484 | if test "x$THREADS_OK" != "xyes"; then |
17485 | wxUSE_THREADS=no | |
17486 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17487 | else | |
fe5a9cab VZ |
17488 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17489 | ||
009fead0 | 17490 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
986ecc86 | 17491 | echo "configure:17492: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17492 | flag=no |
17493 | case "${host}" in | |
17494 | *-aix* | *-freebsd*) | |
17495 | flag="-D_THREAD_SAFE" | |
17496 | ;; | |
17497 | *solaris* | alpha*-osf*) | |
17498 | flag="-D_REENTRANT" | |
17499 | ;; | |
17500 | esac | |
17501 | echo "$ac_t""${flag}" 1>&6 | |
17502 | if test "x$flag" != xno; then | |
04727afd | 17503 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17504 | fi |
17505 | ||
009fead0 | 17506 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17507 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17508 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17509 | fi | |
17510 | fi | |
4f14bcd8 | 17511 | fi |
4f14bcd8 | 17512 | |
7274f1c7 RL |
17513 | if test "$wxUSE_THREADS" = "yes" ; then |
17514 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17515 | do |
17516 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
986ecc86 | 17517 | echo "configure:17518: checking for $ac_func" >&5 |
4f14bcd8 | 17518 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17519 | echo $ac_n "(cached) $ac_c" 1>&6 |
17520 | else | |
4f14bcd8 | 17521 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17522 | #line 17523 "configure" |
d9b9876f | 17523 | #include "confdefs.h" |
4f14bcd8 GD |
17524 | /* System header to define __stub macros and hopefully few prototypes, |
17525 | which can conflict with char $ac_func(); below. */ | |
17526 | #include <assert.h> | |
17527 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17528 | /* We use char because int might match the return type of a gcc2 | |
17529 | builtin and then its argument prototype would still apply. */ | |
17530 | char $ac_func(); | |
17531 | ||
698dcdb6 | 17532 | int main() { |
d9b9876f | 17533 | |
4f14bcd8 GD |
17534 | /* The GNU C library defines this for functions which it implements |
17535 | to always fail with ENOSYS. Some functions are actually named | |
17536 | something starting with __ and the normal name is an alias. */ | |
17537 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17538 | choke me | |
17539 | #else | |
17540 | $ac_func(); | |
17541 | #endif | |
17542 | ||
698dcdb6 VZ |
17543 | ; return 0; } |
17544 | EOF | |
986ecc86 | 17545 | if { (eval echo configure:17546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17546 | rm -rf conftest* |
4f14bcd8 | 17547 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17548 | else |
698dcdb6 VZ |
17549 | echo "configure: failed program was:" >&5 |
17550 | cat conftest.$ac_ext >&5 | |
17551 | rm -rf conftest* | |
4f14bcd8 | 17552 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17553 | fi |
698dcdb6 | 17554 | rm -f conftest* |
1e487827 | 17555 | fi |
698dcdb6 | 17556 | |
4f14bcd8 GD |
17557 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17558 | echo "$ac_t""yes" 1>&6 | |
17559 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17560 | cat >> confdefs.h <<EOF | |
17561 | #define $ac_tr_func 1 | |
d9b9876f | 17562 | EOF |
4f14bcd8 GD |
17563 | |
17564 | else | |
17565 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17566 | fi |
4f14bcd8 | 17567 | done |
10f2d63a | 17568 | |
10f2d63a | 17569 | |
7274f1c7 | 17570 | for ac_hdr in sched.h |
4f14bcd8 GD |
17571 | do |
17572 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17573 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 17574 | echo "configure:17575: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17575 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17577 | else |
4f14bcd8 | 17578 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17579 | #line 17580 "configure" |
4f14bcd8 GD |
17580 | #include "confdefs.h" |
17581 | #include <$ac_hdr> | |
13111b2a | 17582 | EOF |
4f14bcd8 | 17583 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
986ecc86 | 17584 | { (eval echo configure:17585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17585 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17586 | if test -z "$ac_err"; then | |
17587 | rm -rf conftest* | |
17588 | eval "ac_cv_header_$ac_safe=yes" | |
17589 | else | |
17590 | echo "$ac_err" >&5 | |
17591 | echo "configure: failed program was:" >&5 | |
17592 | cat conftest.$ac_ext >&5 | |
17593 | rm -rf conftest* | |
17594 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17595 | fi |
4f14bcd8 | 17596 | rm -f conftest* |
10f2d63a | 17597 | fi |
4f14bcd8 GD |
17598 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17599 | echo "$ac_t""yes" 1>&6 | |
17600 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17601 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17602 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17603 | EOF |
4f14bcd8 GD |
17604 | |
17605 | else | |
17606 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17607 | fi |
4f14bcd8 | 17608 | done |
f6bcfd97 | 17609 | |
009fead0 VZ |
17610 | if test "$ac_cv_header_sched_h" = "yes"; then |
17611 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
986ecc86 | 17612 | echo "configure:17613: checking for sched_yield" >&5 |
009fead0 | 17613 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17614 | echo $ac_n "(cached) $ac_c" 1>&6 |
17615 | else | |
009fead0 | 17616 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17617 | #line 17618 "configure" |
4f14bcd8 | 17618 | #include "confdefs.h" |
009fead0 VZ |
17619 | /* System header to define __stub macros and hopefully few prototypes, |
17620 | which can conflict with char sched_yield(); below. */ | |
17621 | #include <assert.h> | |
4f14bcd8 GD |
17622 | /* Override any gcc2 internal prototype to avoid an error. */ |
17623 | /* We use char because int might match the return type of a gcc2 | |
17624 | builtin and then its argument prototype would still apply. */ | |
17625 | char sched_yield(); | |
10f2d63a | 17626 | |
4f14bcd8 | 17627 | int main() { |
009fead0 VZ |
17628 | |
17629 | /* The GNU C library defines this for functions which it implements | |
17630 | to always fail with ENOSYS. Some functions are actually named | |
17631 | something starting with __ and the normal name is an alias. */ | |
17632 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17633 | choke me | |
17634 | #else | |
17635 | sched_yield(); | |
17636 | #endif | |
17637 | ||
4f14bcd8 | 17638 | ; return 0; } |
10f2d63a | 17639 | EOF |
986ecc86 | 17640 | if { (eval echo configure:17641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17641 | rm -rf conftest* |
009fead0 | 17642 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17643 | else |
4f14bcd8 GD |
17644 | echo "configure: failed program was:" >&5 |
17645 | cat conftest.$ac_ext >&5 | |
17646 | rm -rf conftest* | |
009fead0 | 17647 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17648 | fi |
4f14bcd8 | 17649 | rm -f conftest* |
4f14bcd8 | 17650 | fi |
009fead0 VZ |
17651 | |
17652 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17653 | echo "$ac_t""yes" 1>&6 |
17654 | cat >> confdefs.h <<\EOF | |
17655 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17656 | EOF |
17657 | ||
4f14bcd8 GD |
17658 | else |
17659 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17660 | |
17661 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
986ecc86 | 17662 | echo "configure:17663: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17663 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17664 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17666 | else | |
17667 | ac_save_LIBS="$LIBS" | |
17668 | LIBS="-lposix4 $LIBS" | |
17669 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 17670 | #line 17671 "configure" |
4f14bcd8 GD |
17671 | #include "confdefs.h" |
17672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17673 | /* We use char because int might match the return type of a gcc2 | |
17674 | builtin and then its argument prototype would still apply. */ | |
17675 | char sched_yield(); | |
47c13eb7 | 17676 | |
4f14bcd8 GD |
17677 | int main() { |
17678 | sched_yield() | |
17679 | ; return 0; } | |
10f2d63a | 17680 | EOF |
986ecc86 | 17681 | if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17682 | rm -rf conftest* |
17683 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17684 | else |
4f14bcd8 GD |
17685 | echo "configure: failed program was:" >&5 |
17686 | cat conftest.$ac_ext >&5 | |
17687 | rm -rf conftest* | |
17688 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17689 | fi |
4f14bcd8 GD |
17690 | rm -f conftest* |
17691 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17692 | |
54276ccf | 17693 | fi |
4f14bcd8 GD |
17694 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17695 | echo "$ac_t""yes" 1>&6 | |
17696 | cat >> confdefs.h <<\EOF | |
17697 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17698 | EOF |
3d63bc3a | 17699 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17700 | else |
17701 | echo "$ac_t""no" 1>&6 | |
17702 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17703 | |
54276ccf VZ |
17704 | fi |
17705 | ||
009fead0 VZ |
17706 | |
17707 | ||
4f14bcd8 | 17708 | fi |
698dcdb6 | 17709 | |
009fead0 | 17710 | fi |
10f2d63a | 17711 | |
7274f1c7 | 17712 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17713 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
986ecc86 | 17714 | echo "configure:17715: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17715 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17716 | echo $ac_n "(cached) $ac_c" 1>&6 |
17717 | else | |
009fead0 | 17718 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17719 | #line 17720 "configure" |
422107f9 | 17720 | #include "confdefs.h" |
009fead0 VZ |
17721 | /* System header to define __stub macros and hopefully few prototypes, |
17722 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17723 | #include <assert.h> | |
4f14bcd8 GD |
17724 | /* Override any gcc2 internal prototype to avoid an error. */ |
17725 | /* We use char because int might match the return type of a gcc2 | |
17726 | builtin and then its argument prototype would still apply. */ | |
17727 | char pthread_attr_getschedpolicy(); | |
17728 | ||
17729 | int main() { | |
009fead0 VZ |
17730 | |
17731 | /* The GNU C library defines this for functions which it implements | |
17732 | to always fail with ENOSYS. Some functions are actually named | |
17733 | something starting with __ and the normal name is an alias. */ | |
17734 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17735 | choke me | |
17736 | #else | |
17737 | pthread_attr_getschedpolicy(); | |
17738 | #endif | |
17739 | ||
4f14bcd8 | 17740 | ; return 0; } |
698dcdb6 | 17741 | EOF |
986ecc86 | 17742 | if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17743 | rm -rf conftest* |
009fead0 | 17744 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17745 | else |
698dcdb6 | 17746 | echo "configure: failed program was:" >&5 |
422107f9 | 17747 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17748 | rm -rf conftest* |
009fead0 | 17749 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17750 | fi |
698dcdb6 | 17751 | rm -f conftest* |
422107f9 | 17752 | fi |
009fead0 VZ |
17753 | |
17754 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17755 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17756 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
986ecc86 | 17757 | echo "configure:17758: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17758 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17759 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17760 | else |
009fead0 | 17761 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17762 | #line 17763 "configure" |
422107f9 | 17763 | #include "confdefs.h" |
009fead0 VZ |
17764 | /* System header to define __stub macros and hopefully few prototypes, |
17765 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17766 | #include <assert.h> | |
422107f9 VZ |
17767 | /* Override any gcc2 internal prototype to avoid an error. */ |
17768 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17769 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17770 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17771 | |
17772 | int main() { | |
009fead0 VZ |
17773 | |
17774 | /* The GNU C library defines this for functions which it implements | |
17775 | to always fail with ENOSYS. Some functions are actually named | |
17776 | something starting with __ and the normal name is an alias. */ | |
17777 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17778 | choke me | |
17779 | #else | |
17780 | pthread_attr_setschedparam(); | |
17781 | #endif | |
17782 | ||
698dcdb6 VZ |
17783 | ; return 0; } |
17784 | EOF | |
986ecc86 | 17785 | if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17786 | rm -rf conftest* |
009fead0 | 17787 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17788 | else |
17789 | echo "configure: failed program was:" >&5 | |
17790 | cat conftest.$ac_ext >&5 | |
17791 | rm -rf conftest* | |
009fead0 | 17792 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17793 | fi |
17794 | rm -f conftest* | |
698dcdb6 | 17795 | fi |
009fead0 VZ |
17796 | |
17797 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17798 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17799 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
986ecc86 | 17800 | echo "configure:17801: checking for sched_get_priority_max" >&5 |
009fead0 | 17801 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17802 | echo $ac_n "(cached) $ac_c" 1>&6 |
17803 | else | |
009fead0 | 17804 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17805 | #line 17806 "configure" |
422107f9 | 17806 | #include "confdefs.h" |
009fead0 VZ |
17807 | /* System header to define __stub macros and hopefully few prototypes |
17808 | else | |
17809 | echo "$ac_t""no" 1>&6 | |
17810 | which can conflict with char sched_get_priority_max(); below. */ | |
17811 | #include <assert.h> | |
4f14bcd8 GD |
17812 | /* Override any gcc2 internal prototype to avoid an error. */ |
17813 | /* We use char because int might match the return type of a gcc2 | |
17814 | builtin and then its argument prototype would still apply. */ | |
17815 | char sched_get_priority_max(); | |
17816 | ||
17817 | int main() { | |
009fead0 VZ |
17818 | |
17819 | /* The GNU C library defines this for functions which it implements | |
17820 | to always fail with ENOSYS. Some functions are actually named | |
17821 | something starting with __ and the normal name is an alias. */ | |
17822 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17823 | choke me | |
17824 | #else | |
17825 | sched_get_priority_max(); | |
17826 | #endif | |
17827 | ||
4f14bcd8 | 17828 | ; return 0; } |
698dcdb6 | 17829 | EOF |
986ecc86 | 17830 | if { (eval echo configure:17831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17831 | rm -rf conftest* |
009fead0 | 17832 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17833 | else |
698dcdb6 | 17834 | echo "configure: failed program was:" >&5 |
422107f9 | 17835 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17836 | rm -rf conftest* |
009fead0 | 17837 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17838 | fi |
698dcdb6 | 17839 | rm -f conftest* |
422107f9 | 17840 | fi |
009fead0 VZ |
17841 | |
17842 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
698dcdb6 | 17843 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17844 | HAVE_PRIOR_FUNCS=1 |
17845 | else | |
17846 | echo "$ac_t""no" 1>&6 | |
17847 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
986ecc86 | 17848 | echo "configure:17849: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17849 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17852 | else |
698dcdb6 | 17853 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17854 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17855 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17856 | #line 17857 "configure" |
422107f9 VZ |
17857 | #include "confdefs.h" |
17858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17859 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17860 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17861 | char sched_get_priority_max(); |
698dcdb6 VZ |
17862 | |
17863 | int main() { | |
4f14bcd8 | 17864 | sched_get_priority_max() |
698dcdb6 VZ |
17865 | ; return 0; } |
17866 | EOF | |
986ecc86 | 17867 | if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17868 | rm -rf conftest* |
17869 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17870 | else | |
17871 | echo "configure: failed program was:" >&5 | |
17872 | cat conftest.$ac_ext >&5 | |
17873 | rm -rf conftest* | |
17874 | eval "ac_cv_lib_$ac_lib_var=no" | |
17875 | fi | |
17876 | rm -f conftest* | |
17877 | LIBS="$ac_save_LIBS" | |
17878 | ||
17879 | fi | |
17880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17881 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17882 | |
7274f1c7 RL |
17883 | HAVE_PRIOR_FUNCS=1 |
17884 | POSIX4_LINK=" -lposix4" | |
17885 | ||
698dcdb6 VZ |
17886 | else |
17887 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17888 | fi |
17889 | ||
7274f1c7 | 17890 | |
422107f9 VZ |
17891 | fi |
17892 | ||
7274f1c7 | 17893 | |
4f14bcd8 GD |
17894 | else |
17895 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17896 | fi |
17897 | ||
7274f1c7 | 17898 | |
4f14bcd8 | 17899 | fi |
463abc64 | 17900 | |
463abc64 | 17901 | |
7274f1c7 RL |
17902 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17903 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17904 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17905 | EOF |
463abc64 | 17906 | |
7274f1c7 RL |
17907 | else |
17908 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17909 | fi | |
463abc64 | 17910 | |
009fead0 | 17911 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
986ecc86 | 17912 | echo "configure:17913: checking for pthread_cancel" >&5 |
009fead0 | 17913 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 17914 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17915 | else |
009fead0 | 17916 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17917 | #line 17918 "configure" |
422107f9 | 17918 | #include "confdefs.h" |
009fead0 VZ |
17919 | /* System header to define __stub macros and hopefully few prototypes, |
17920 | which can conflict with char pthread_cancel(); below. */ | |
17921 | #include <assert.h> | |
422107f9 VZ |
17922 | /* Override any gcc2 internal prototype to avoid an error. */ |
17923 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17924 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17925 | char pthread_cancel(); |
698dcdb6 VZ |
17926 | |
17927 | int main() { | |
009fead0 VZ |
17928 | |
17929 | /* The GNU C library defines this for functions which it implements | |
17930 | to always fail with ENOSYS. Some functions are actually named | |
17931 | something starting with __ and the normal name is an alias. */ | |
17932 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17933 | choke me | |
17934 | #else | |
17935 | pthread_cancel(); | |
17936 | #endif | |
17937 | ||
698dcdb6 VZ |
17938 | ; return 0; } |
17939 | EOF | |
986ecc86 | 17940 | if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17941 | rm -rf conftest* |
009fead0 | 17942 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
17943 | else |
17944 | echo "configure: failed program was:" >&5 | |
17945 | cat conftest.$ac_ext >&5 | |
17946 | rm -rf conftest* | |
009fead0 | 17947 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
17948 | fi |
17949 | rm -f conftest* | |
698dcdb6 | 17950 | fi |
009fead0 VZ |
17951 | |
17952 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 17953 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17954 | cat >> confdefs.h <<\EOF |
17955 | #define HAVE_PTHREAD_CANCEL 1 | |
17956 | EOF | |
17957 | ||
698dcdb6 VZ |
17958 | else |
17959 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17960 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17961 | fi |
17962 | ||
422107f9 | 17963 | |
7274f1c7 | 17964 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
986ecc86 | 17965 | echo "configure:17966: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17966 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17968 | else | |
17969 | ||
7274f1c7 | 17970 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 17971 | #line 17972 "configure" |
4f14bcd8 GD |
17972 | #include "confdefs.h" |
17973 | #include <pthread.h> | |
17974 | int main() { | |
17975 | ||
7274f1c7 RL |
17976 | pthread_cleanup_push(NULL, NULL); |
17977 | pthread_cleanup_pop(0); | |
17978 | ||
4f14bcd8 GD |
17979 | ; return 0; } |
17980 | EOF | |
986ecc86 | 17981 | if { (eval echo configure:17982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17982 | rm -rf conftest* |
17983 | ||
7274f1c7 RL |
17984 | wx_cv_func_pthread_cleanup_push=yes |
17985 | ||
4f14bcd8 GD |
17986 | else |
17987 | echo "configure: failed program was:" >&5 | |
17988 | cat conftest.$ac_ext >&5 | |
17989 | rm -rf conftest* | |
17990 | ||
7274f1c7 RL |
17991 | wx_cv_func_pthread_cleanup_push=no |
17992 | ||
4f14bcd8 GD |
17993 | fi |
17994 | rm -f conftest* | |
7274f1c7 | 17995 | |
10f2d63a VZ |
17996 | fi |
17997 | ||
4f14bcd8 GD |
17998 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17999 | ||
7274f1c7 RL |
18000 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
18001 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18002 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18003 | EOF |
18004 | ||
7274f1c7 | 18005 | fi |
4f14bcd8 | 18006 | |
7274f1c7 | 18007 | |
19bc6aad | 18008 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
7274f1c7 RL |
18009 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
18010 | fi | |
4f14bcd8 | 18011 | |
7274f1c7 | 18012 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
986ecc86 | 18013 | echo "configure:18014: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 18014 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
18015 | echo $ac_n "(cached) $ac_c" 1>&6 |
18016 | else | |
4f14bcd8 | 18017 | |
7274f1c7 | 18018 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 18019 | #line 18020 "configure" |
0dcf9893 | 18020 | #include "confdefs.h" |
4f14bcd8 GD |
18021 | #include <pthread.h> |
18022 | int main() { | |
18023 | ||
7274f1c7 RL |
18024 | pthread_mutexattr_t attr; |
18025 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
18026 | ||
4f14bcd8 | 18027 | ; return 0; } |
698dcdb6 | 18028 | EOF |
986ecc86 | 18029 | if { (eval echo configure:18030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18030 | rm -rf conftest* |
4f14bcd8 | 18031 | |
7274f1c7 RL |
18032 | wx_cv_type_pthread_mutexattr_t=yes |
18033 | ||
3fed1840 | 18034 | else |
698dcdb6 | 18035 | echo "configure: failed program was:" >&5 |
3fed1840 | 18036 | cat conftest.$ac_ext >&5 |
698dcdb6 | 18037 | rm -rf conftest* |
4f14bcd8 | 18038 | |
7274f1c7 RL |
18039 | wx_cv_type_pthread_mutexattr_t=no |
18040 | ||
4f14bcd8 | 18041 | |
3fed1840 | 18042 | fi |
698dcdb6 | 18043 | rm -f conftest* |
7274f1c7 | 18044 | |
3fed1840 | 18045 | fi |
4f14bcd8 GD |
18046 | |
18047 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
18048 | ||
7274f1c7 RL |
18049 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
18050 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18051 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18052 | EOF | |
18053 | ||
7274f1c7 RL |
18054 | else |
18055 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
986ecc86 | 18056 | echo "configure:18057: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 18057 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 18058 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 18059 | else |
4f14bcd8 | 18060 | |
7274f1c7 | 18061 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 18062 | #line 18063 "configure" |
3fed1840 | 18063 | #include "confdefs.h" |
4f14bcd8 | 18064 | #include <pthread.h> |
698dcdb6 | 18065 | int main() { |
4f14bcd8 | 18066 | |
7274f1c7 RL |
18067 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
18068 | ||
698dcdb6 VZ |
18069 | ; return 0; } |
18070 | EOF | |
986ecc86 | 18071 | if { (eval echo configure:18072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18072 | rm -rf conftest* |
4f14bcd8 | 18073 | |
7274f1c7 RL |
18074 | wx_cv_type_pthread_rec_mutex_init=yes |
18075 | ||
698dcdb6 VZ |
18076 | else |
18077 | echo "configure: failed program was:" >&5 | |
18078 | cat conftest.$ac_ext >&5 | |
18079 | rm -rf conftest* | |
4f14bcd8 | 18080 | |
7274f1c7 RL |
18081 | wx_cv_type_pthread_rec_mutex_init=no |
18082 | ||
4f14bcd8 | 18083 | |
698dcdb6 VZ |
18084 | fi |
18085 | rm -f conftest* | |
7274f1c7 | 18086 | |
3fed1840 RR |
18087 | fi |
18088 | ||
4f14bcd8 | 18089 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
18090 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
18091 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18092 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18093 | EOF | |
3fed1840 | 18094 | |
7274f1c7 RL |
18095 | else |
18096 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
18097 | fi | |
18098 | fi | |
7274f1c7 | 18099 | fi |
3fed1840 | 18100 | |
4f14bcd8 GD |
18101 | fi |
18102 | ||
18103 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 18104 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18105 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18106 | EOF |
18107 | ||
4f14bcd8 | 18108 | |
4f14bcd8 | 18109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18110 | else |
4f14bcd8 GD |
18111 | if test "$ac_cv_func_strtok_r" = "yes"; then |
18112 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
986ecc86 | 18113 | echo "configure:18114: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18114 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18115 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
18116 | echo "$ac_t""yes" 1>&6 | |
18117 | else | |
18118 | echo "$ac_t""no" 1>&6 | |
18119 | fi | |
18120 | fi | |
18121 | fi | |
18122 | ||
18123 | if test "$WXGTK20" = 1 ; then | |
18124 | cat >> confdefs.h <<EOF | |
18125 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 18126 | EOF |
4f14bcd8 GD |
18127 | |
18128 | WXGTK12=1 | |
10f2d63a | 18129 | fi |
4f14bcd8 GD |
18130 | |
18131 | if test "$WXGTK12" = 1 ; then | |
18132 | cat >> confdefs.h <<EOF | |
18133 | #define __WXGTK12__ $WXGTK12 | |
18134 | EOF | |
18135 | ||
10f2d63a | 18136 | fi |
698dcdb6 | 18137 | |
4f14bcd8 GD |
18138 | if test "$WXGTK127" = 1 ; then |
18139 | cat >> confdefs.h <<EOF | |
18140 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 18141 | EOF |
4f14bcd8 | 18142 | |
698dcdb6 | 18143 | fi |
10f2d63a | 18144 | |
4f14bcd8 GD |
18145 | WXDEBUG= |
18146 | ||
18147 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18148 | WXDEBUG="-g" | |
18149 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18150 | fi |
4f14bcd8 GD |
18151 | |
18152 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18153 | wxUSE_DEBUG_INFO=yes | |
18154 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18155 | fi |
18156 | ||
4f14bcd8 GD |
18157 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
18158 | cat >> confdefs.h <<\EOF | |
18159 | #define WXDEBUG 1 | |
18160 | EOF | |
18161 | ||
18162 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18163 | else |
4f14bcd8 GD |
18164 | if test "$wxUSE_GTK" = 1 ; then |
18165 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18166 | fi | |
18167 | fi | |
18168 | ||
18169 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18170 | cat >> confdefs.h <<\EOF | |
18171 | #define wxUSE_MEMORY_TRACING 1 | |
18172 | EOF | |
18173 | ||
18174 | cat >> confdefs.h <<\EOF | |
18175 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18176 | EOF | |
18177 | ||
18178 | cat >> confdefs.h <<\EOF | |
18179 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18180 | EOF | |
18181 | ||
18182 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18183 | fi | |
18184 | ||
18185 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18186 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18187 | fi |
18188 | ||
18189 | PROFILE= | |
18190 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18191 | PROFILE=" -pg" |
10f2d63a VZ |
18192 | fi |
18193 | ||
009fead0 VZ |
18194 | CODE_GEN_FLAGS= |
18195 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18196 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18197 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18198 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18199 | fi |
4f14bcd8 GD |
18200 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18201 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18202 | fi | |
18203 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18204 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18205 | fi | |
4f14bcd8 GD |
18206 | if test "$USE_WIN32" = 1 ; then |
18207 | # I'm not even really sure what this was ever added to solve, | |
18208 | # but someone added it for mingw native builds, so I guess | |
18209 | # they had a reason, right?? | |
18210 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18211 | fi | |
1d1b75ac VZ |
18212 | |
18213 | case "${host}" in | |
18214 | powerpc*-*-aix* ) | |
18215 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18216 | ;; | |
18217 | esac | |
4f14bcd8 GD |
18218 | fi |
18219 | ||
4f14bcd8 GD |
18220 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18221 | OPTIMISE= | |
18222 | else | |
18223 | if test "$GCC" = yes ; then | |
18224 | OPTIMISE="-O2" | |
18225 | case "${host}" in | |
18226 | i586-*-*|i686-*-* ) | |
18227 | OPTIMISE="${OPTIMISE} " | |
18228 | ;; | |
18229 | esac | |
18230 | else | |
18231 | OPTIMISE="-O" | |
18232 | fi | |
18233 | fi | |
18234 | ||
18235 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18236 | cat >> confdefs.h <<\EOF | |
18237 | #define WXWIN_COMPATIBILITY_2 1 | |
18238 | EOF | |
18239 | ||
18240 | ||
18241 | WXWIN_COMPATIBILITY_2_2="yes" | |
18242 | fi | |
18243 | ||
0c9a1c32 | 18244 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
18245 | cat >> confdefs.h <<\EOF |
18246 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18247 | EOF | |
18248 | ||
10f2d63a VZ |
18249 | fi |
18250 | ||
698dcdb6 | 18251 | |
10f2d63a | 18252 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 18253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18254 | #define wxUSE_GUI 1 |
18255 | EOF | |
18256 | ||
698dcdb6 | 18257 | |
10f2d63a | 18258 | else |
698dcdb6 | 18259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18260 | #define wxUSE_NOGUI 1 |
18261 | EOF | |
18262 | ||
18263 | fi | |
18264 | ||
698dcdb6 | 18265 | |
10f2d63a | 18266 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 18267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18268 | #define wxUSE_UNIX 1 |
18269 | EOF | |
18270 | ||
18271 | fi | |
18272 | ||
698dcdb6 | 18273 | |
10f2d63a | 18274 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 18275 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18276 | #define wxUSE_APPLE_IEEE 1 |
18277 | EOF | |
18278 | ||
18279 | fi | |
18280 | ||
1e6feb95 VZ |
18281 | if test "$wxUSE_TIMER" = "yes"; then |
18282 | cat >> confdefs.h <<\EOF | |
18283 | #define wxUSE_TIMER 1 | |
18284 | EOF | |
18285 | ||
18286 | fi | |
18287 | ||
10f2d63a | 18288 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18289 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18290 | #define wxUSE_WAVE 1 |
18291 | EOF | |
18292 | ||
18293 | fi | |
18294 | ||
1e6feb95 VZ |
18295 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18296 | cat >> confdefs.h <<\EOF | |
18297 | #define wxUSE_CMDLINE_PARSER 1 | |
18298 | EOF | |
18299 | ||
18300 | fi | |
18301 | ||
18302 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18303 | cat >> confdefs.h <<\EOF | |
18304 | #define wxUSE_STOPWATCH 1 | |
18305 | EOF | |
18306 | ||
18307 | fi | |
18308 | ||
18309 | if test "$wxUSE_DATETIME" = "yes"; then | |
18310 | cat >> confdefs.h <<\EOF | |
18311 | #define wxUSE_DATETIME 1 | |
18312 | EOF | |
18313 | ||
18314 | fi | |
18315 | ||
18316 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18317 | cat >> confdefs.h <<\EOF | |
18318 | #define wxUSE_TIMEDATE 1 | |
18319 | EOF | |
18320 | ||
18321 | fi | |
18322 | ||
10f2d63a | 18323 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18325 | #define wxUSE_FILE 1 |
18326 | EOF | |
18327 | ||
18328 | fi | |
18329 | ||
1e6feb95 VZ |
18330 | if test "$wxUSE_FFILE" = "yes"; then |
18331 | cat >> confdefs.h <<\EOF | |
18332 | #define wxUSE_FFILE 1 | |
18333 | EOF | |
18334 | ||
18335 | fi | |
18336 | ||
24528b0c | 18337 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18338 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18339 | #define wxUSE_FILESYSTEM 1 |
18340 | EOF | |
18341 | ||
18342 | fi | |
18343 | ||
10f2d63a | 18344 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18345 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18346 | #define wxUSE_FS_INET 1 |
18347 | EOF | |
18348 | ||
18349 | fi | |
18350 | ||
18351 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18352 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18353 | #define wxUSE_FS_ZIP 1 |
18354 | EOF | |
18355 | ||
18356 | fi | |
18357 | ||
18358 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18359 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18360 | #define wxUSE_ZIPSTREAM 1 |
18361 | EOF | |
18362 | ||
18363 | fi | |
18364 | ||
eb4efbdc | 18365 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18366 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18367 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18368 | EOF | |
18369 | ||
18370 | fi | |
18371 | ||
4f3c5f06 | 18372 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18373 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18374 | #define wxUSE_SNGLINST_CHECKER 1 |
18375 | EOF | |
18376 | ||
18377 | fi | |
18378 | ||
10f2d63a | 18379 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18380 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18381 | #define wxUSE_BUSYINFO 1 |
18382 | EOF | |
18383 | ||
18384 | fi | |
18385 | ||
18386 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18387 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18388 | #define wxUSE_STD_IOSTREAM 1 |
18389 | EOF | |
18390 | ||
18391 | fi | |
18392 | ||
a3a584a7 VZ |
18393 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18394 | cat >> confdefs.h <<\EOF | |
18395 | #define wxUSE_TEXTBUFFER 1 | |
18396 | EOF | |
18397 | ||
18398 | fi | |
18399 | ||
10f2d63a | 18400 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18401 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18402 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18403 | else |
698dcdb6 | 18404 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18405 | #define wxUSE_TEXTFILE 1 |
18406 | EOF | |
18407 | ||
18408 | fi | |
18409 | fi | |
18410 | ||
18411 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18412 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18413 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18414 | else |
698dcdb6 | 18415 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18416 | #define wxUSE_CONFIG 1 |
18417 | EOF | |
18418 | ||
18419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18420 | fi | |
18421 | fi | |
18422 | ||
18423 | if test "$wxUSE_INTL" = "yes" ; then | |
18424 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18425 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18426 | else |
698dcdb6 | 18427 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18428 | #define wxUSE_INTL 1 |
18429 | EOF | |
18430 | ||
18431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18432 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18433 | fi |
18434 | fi | |
18435 | ||
18436 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18437 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18438 | #define wxUSE_LOG 1 |
18439 | EOF | |
18440 | ||
d73be714 VZ |
18441 | |
18442 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18443 | cat >> confdefs.h <<\EOF | |
18444 | #define wxUSE_LOGGUI 1 | |
18445 | EOF | |
18446 | ||
18447 | fi | |
18448 | ||
18449 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18450 | cat >> confdefs.h <<\EOF | |
18451 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18452 | EOF |
18453 | ||
18454 | fi | |
18455 | ||
18456 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18457 | cat >> confdefs.h <<\EOF | |
18458 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18459 | EOF |
18460 | ||
18461 | fi | |
10f2d63a VZ |
18462 | fi |
18463 | ||
18464 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18465 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18466 | #define wxUSE_LONGLONG 1 |
18467 | EOF | |
18468 | ||
18469 | fi | |
18470 | ||
e8f65ba6 | 18471 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18472 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18473 | #define wxUSE_GEOMETRY 1 |
18474 | EOF | |
18475 | ||
18476 | fi | |
18477 | ||
10f2d63a | 18478 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18479 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18480 | #define wxUSE_DIALUP_MANAGER 1 |
18481 | EOF | |
18482 | ||
70f7a477 | 18483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18484 | fi |
18485 | ||
18486 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18487 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18488 | #define wxUSE_STREAMS 1 |
18489 | EOF | |
18490 | ||
18491 | fi | |
18492 | ||
1e487827 | 18493 | |
1e6feb95 | 18494 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18495 | for ac_func in strptime |
83307f33 | 18496 | do |
698dcdb6 | 18497 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 18498 | echo "configure:18499: checking for $ac_func" >&5 |
698dcdb6 VZ |
18499 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18501 | else | |
18502 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18503 | #line 18504 "configure" |
83307f33 VZ |
18504 | #include "confdefs.h" |
18505 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18506 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18507 | #include <assert.h> |
18508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18509 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18510 | builtin and then its argument prototype would still apply. */ |
18511 | char $ac_func(); | |
18512 | ||
18513 | int main() { | |
83307f33 VZ |
18514 | |
18515 | /* The GNU C library defines this for functions which it implements | |
18516 | to always fail with ENOSYS. Some functions are actually named | |
18517 | something starting with __ and the normal name is an alias. */ | |
18518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18519 | choke me | |
18520 | #else | |
698dcdb6 | 18521 | $ac_func(); |
83307f33 VZ |
18522 | #endif |
18523 | ||
698dcdb6 | 18524 | ; return 0; } |
83307f33 | 18525 | EOF |
986ecc86 | 18526 | if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18527 | rm -rf conftest* |
18528 | eval "ac_cv_func_$ac_func=yes" | |
18529 | else | |
18530 | echo "configure: failed program was:" >&5 | |
18531 | cat conftest.$ac_ext >&5 | |
18532 | rm -rf conftest* | |
18533 | eval "ac_cv_func_$ac_func=no" | |
18534 | fi | |
18535 | rm -f conftest* | |
18536 | fi | |
83307f33 | 18537 | |
698dcdb6 VZ |
18538 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18539 | echo "$ac_t""yes" 1>&6 | |
18540 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18541 | cat >> confdefs.h <<EOF | |
18542 | #define $ac_tr_func 1 | |
18543 | EOF | |
18544 | ||
18545 | else | |
18546 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18547 | fi |
18548 | done | |
18549 | ||
1e487827 | 18550 | |
62cc730f | 18551 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
986ecc86 | 18552 | echo "configure:18553: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18553 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18555 | else | |
18556 | ||
18557 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18558 | #line 18559 "configure" |
360d6699 VZ |
18559 | #include "confdefs.h" |
18560 | ||
b4085ce6 | 18561 | #include <time.h> |
698dcdb6 VZ |
18562 | |
18563 | int main() { | |
360d6699 VZ |
18564 | |
18565 | int tz; | |
4f11a343 | 18566 | tz = timezone; |
698dcdb6 VZ |
18567 | |
18568 | ; return 0; } | |
18569 | EOF | |
986ecc86 | 18570 | if { (eval echo configure:18571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18571 | rm -rf conftest* |
18572 | ||
4f11a343 | 18573 | wx_cv_var_timezone=timezone |
698dcdb6 | 18574 | |
360d6699 | 18575 | else |
698dcdb6 VZ |
18576 | echo "configure: failed program was:" >&5 |
18577 | cat conftest.$ac_ext >&5 | |
18578 | rm -rf conftest* | |
18579 | ||
18580 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18581 | #line 18582 "configure" |
360d6699 VZ |
18582 | #include "confdefs.h" |
18583 | ||
b4085ce6 | 18584 | #include <time.h> |
698dcdb6 VZ |
18585 | |
18586 | int main() { | |
360d6699 VZ |
18587 | |
18588 | int tz; | |
18589 | tz = _timezone; | |
698dcdb6 VZ |
18590 | |
18591 | ; return 0; } | |
18592 | EOF | |
986ecc86 | 18593 | if { (eval echo configure:18594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18594 | rm -rf conftest* |
18595 | ||
360d6699 | 18596 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18597 | |
5357c8e8 | 18598 | else |
698dcdb6 VZ |
18599 | echo "configure: failed program was:" >&5 |
18600 | cat conftest.$ac_ext >&5 | |
18601 | rm -rf conftest* | |
18602 | ||
18603 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18604 | #line 18605 "configure" |
5357c8e8 VZ |
18605 | #include "confdefs.h" |
18606 | ||
b4085ce6 | 18607 | #include <time.h> |
698dcdb6 VZ |
18608 | |
18609 | int main() { | |
5357c8e8 VZ |
18610 | |
18611 | int tz; | |
4f11a343 | 18612 | tz = __timezone; |
698dcdb6 VZ |
18613 | |
18614 | ; return 0; } | |
18615 | EOF | |
986ecc86 | 18616 | if { (eval echo configure:18617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18617 | rm -rf conftest* |
18618 | ||
4f11a343 | 18619 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18620 | |
360d6699 | 18621 | else |
698dcdb6 VZ |
18622 | echo "configure: failed program was:" >&5 |
18623 | cat conftest.$ac_ext >&5 | |
18624 | rm -rf conftest* | |
f9bc1684 VS |
18625 | |
18626 | if test "$USE_DOS" = 0 ; then | |
62cc730f | 18627 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 VS |
18628 | fi |
18629 | ||
698dcdb6 | 18630 | |
360d6699 | 18631 | fi |
698dcdb6 VZ |
18632 | rm -f conftest* |
18633 | ||
18634 | ||
360d6699 | 18635 | fi |
698dcdb6 VZ |
18636 | rm -f conftest* |
18637 | ||
18638 | ||
6232543b | 18639 | fi |
698dcdb6 VZ |
18640 | rm -f conftest* |
18641 | ||
18642 | ||
1e487827 | 18643 | fi |
703e0a69 | 18644 | |
698dcdb6 VZ |
18645 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18646 | ||
f9bc1684 | 18647 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18648 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18649 | #define WX_TIMEZONE $wx_cv_var_timezone |
18650 | EOF | |
18651 | ||
f9bc1684 | 18652 | fi |
698dcdb6 VZ |
18653 | |
18654 | for ac_func in localtime | |
afc31813 | 18655 | do |
698dcdb6 | 18656 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 18657 | echo "configure:18658: checking for $ac_func" >&5 |
698dcdb6 VZ |
18658 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18660 | else | |
18661 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18662 | #line 18663 "configure" |
10f2d63a | 18663 | #include "confdefs.h" |
afc31813 | 18664 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18665 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18666 | #include <assert.h> |
18667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18668 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18669 | builtin and then its argument prototype would still apply. */ |
18670 | char $ac_func(); | |
18671 | ||
18672 | int main() { | |
afc31813 VZ |
18673 | |
18674 | /* The GNU C library defines this for functions which it implements | |
18675 | to always fail with ENOSYS. Some functions are actually named | |
18676 | something starting with __ and the normal name is an alias. */ | |
18677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18678 | choke me | |
18679 | #else | |
698dcdb6 | 18680 | $ac_func(); |
afc31813 VZ |
18681 | #endif |
18682 | ||
698dcdb6 | 18683 | ; return 0; } |
10f2d63a | 18684 | EOF |
986ecc86 | 18685 | if { (eval echo configure:18686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18686 | rm -rf conftest* |
18687 | eval "ac_cv_func_$ac_func=yes" | |
18688 | else | |
18689 | echo "configure: failed program was:" >&5 | |
18690 | cat conftest.$ac_ext >&5 | |
18691 | rm -rf conftest* | |
18692 | eval "ac_cv_func_$ac_func=no" | |
18693 | fi | |
18694 | rm -f conftest* | |
18695 | fi | |
afc31813 | 18696 | |
698dcdb6 VZ |
18697 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18698 | echo "$ac_t""yes" 1>&6 | |
18699 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18700 | cat >> confdefs.h <<EOF | |
18701 | #define $ac_tr_func 1 | |
18702 | EOF | |
18703 | ||
18704 | else | |
18705 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18706 | fi |
18707 | done | |
18708 | ||
1e487827 | 18709 | |
698dcdb6 VZ |
18710 | if test "$ac_cv_func_localtime" = "yes"; then |
18711 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
986ecc86 | 18712 | echo "configure:18713: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18713 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18715 | else | |
18716 | ||
18717 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18718 | #line 18719 "configure" |
0470b1e6 VZ |
18719 | #include "confdefs.h" |
18720 | ||
b4085ce6 | 18721 | #include <time.h> |
698dcdb6 VZ |
18722 | |
18723 | int main() { | |
0470b1e6 VZ |
18724 | |
18725 | struct tm tm; | |
18726 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18727 | |
18728 | ; return 0; } | |
18729 | EOF | |
986ecc86 | 18730 | if { (eval echo configure:18731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18731 | rm -rf conftest* |
18732 | ||
f03a98d8 | 18733 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18734 | |
0470b1e6 | 18735 | else |
698dcdb6 VZ |
18736 | echo "configure: failed program was:" >&5 |
18737 | cat conftest.$ac_ext >&5 | |
18738 | rm -rf conftest* | |
18739 | wx_cv_struct_tm_has_gmtoff=no | |
18740 | ||
0470b1e6 | 18741 | fi |
698dcdb6 VZ |
18742 | rm -f conftest* |
18743 | ||
1e487827 | 18744 | fi |
698dcdb6 VZ |
18745 | |
18746 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18747 | fi |
18748 | ||
18749 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18750 | cat >> confdefs.h <<\EOF |
6232543b VS |
18751 | #define WX_GMTOFF_IN_TM 1 |
18752 | EOF | |
0470b1e6 | 18753 | |
3fcdd07b VZ |
18754 | fi |
18755 | ||
698dcdb6 | 18756 | for ac_func in gettimeofday ftime |
3fcdd07b | 18757 | do |
698dcdb6 | 18758 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 18759 | echo "configure:18760: checking for $ac_func" >&5 |
698dcdb6 VZ |
18760 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18762 | else | |
18763 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18764 | #line 18765 "configure" |
3fcdd07b VZ |
18765 | #include "confdefs.h" |
18766 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18767 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18768 | #include <assert.h> |
18769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18770 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18771 | builtin and then its argument prototype would still apply. */ |
18772 | char $ac_func(); | |
18773 | ||
18774 | int main() { | |
3fcdd07b VZ |
18775 | |
18776 | /* The GNU C library defines this for functions which it implements | |
18777 | to always fail with ENOSYS. Some functions are actually named | |
18778 | something starting with __ and the normal name is an alias. */ | |
18779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18780 | choke me | |
18781 | #else | |
698dcdb6 | 18782 | $ac_func(); |
3fcdd07b VZ |
18783 | #endif |
18784 | ||
698dcdb6 VZ |
18785 | ; return 0; } |
18786 | EOF | |
986ecc86 | 18787 | if { (eval echo configure:18788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18788 | rm -rf conftest* |
18789 | eval "ac_cv_func_$ac_func=yes" | |
18790 | else | |
18791 | echo "configure: failed program was:" >&5 | |
18792 | cat conftest.$ac_ext >&5 | |
18793 | rm -rf conftest* | |
18794 | eval "ac_cv_func_$ac_func=no" | |
18795 | fi | |
18796 | rm -f conftest* | |
18797 | fi | |
18798 | ||
18799 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18800 | echo "$ac_t""yes" 1>&6 | |
18801 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18802 | cat >> confdefs.h <<EOF | |
18803 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18804 | EOF |
18805 | break | |
698dcdb6 VZ |
18806 | else |
18807 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18808 | fi |
18809 | done | |
18810 | ||
afc31813 | 18811 | |
698dcdb6 VZ |
18812 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18813 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
986ecc86 | 18814 | echo "configure:18815: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18815 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18817 | else | |
18818 | ||
18819 | ||
18820 | ac_ext=C | |
18821 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18822 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18823 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18824 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18825 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18826 | |
698dcdb6 VZ |
18827 | |
18828 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18829 | #line 18830 "configure" |
10f2d63a | 18830 | #include "confdefs.h" |
afc31813 VZ |
18831 | |
18832 | #include <sys/time.h> | |
18833 | #include <unistd.h> | |
698dcdb6 VZ |
18834 | |
18835 | int main() { | |
afc31813 VZ |
18836 | |
18837 | struct timeval tv; | |
776862b4 | 18838 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18839 | |
18840 | ; return 0; } | |
18841 | EOF | |
986ecc86 | 18842 | if { (eval echo configure:18843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18843 | rm -rf conftest* |
afc31813 | 18844 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18845 | else |
698dcdb6 VZ |
18846 | echo "configure: failed program was:" >&5 |
18847 | cat conftest.$ac_ext >&5 | |
18848 | rm -rf conftest* | |
18849 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 18850 | #line 18851 "configure" |
10f2d63a | 18851 | #include "confdefs.h" |
afc31813 VZ |
18852 | |
18853 | #include <sys/time.h> | |
18854 | #include <unistd.h> | |
698dcdb6 VZ |
18855 | |
18856 | int main() { | |
afc31813 VZ |
18857 | |
18858 | struct timeval tv; | |
18859 | gettimeofday(&tv); | |
698dcdb6 VZ |
18860 | |
18861 | ; return 0; } | |
18862 | EOF | |
986ecc86 | 18863 | if { (eval echo configure:18864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18864 | rm -rf conftest* |
afc31813 | 18865 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18866 | else |
698dcdb6 VZ |
18867 | echo "configure: failed program was:" >&5 |
18868 | cat conftest.$ac_ext >&5 | |
18869 | rm -rf conftest* | |
776862b4 VZ |
18870 | |
18871 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18872 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18873 | ||
698dcdb6 | 18874 | |
10f2d63a | 18875 | fi |
698dcdb6 VZ |
18876 | rm -f conftest* |
18877 | ||
10f2d63a | 18878 | fi |
698dcdb6 | 18879 | rm -f conftest* |
afc31813 | 18880 | ac_ext=c |
698dcdb6 | 18881 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18882 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18883 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18884 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18885 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18886 | |
698dcdb6 | 18887 | |
afc31813 | 18888 | fi |
698dcdb6 VZ |
18889 | |
18890 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18891 | |
afc31813 | 18892 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18893 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18894 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18895 | EOF | |
18896 | ||
18897 | fi | |
18898 | fi | |
18899 | ||
698dcdb6 | 18900 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18901 | #define wxUSE_TIMEDATE 1 |
18902 | EOF | |
18903 | ||
18904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18905 | fi | |
18906 | ||
698dcdb6 | 18907 | |
0feee163 | 18908 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 18909 | if test "$wxUSE_X11" = "1"; then |
0feee163 VZ |
18910 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 |
18911 | wxUSE_SOCKETS="no" | |
18912 | fi | |
6c657b52 VS |
18913 | |
18914 | if test "$wxUSE_MGL" = "1"; then | |
18915 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 | |
18916 | wxUSE_SOCKETS="no" | |
18917 | fi | |
0feee163 | 18918 | fi |
b089607b | 18919 | |
0feee163 VZ |
18920 | if test "$wxUSE_SOCKETS" = "yes"; then |
18921 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18922 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
986ecc86 | 18923 | echo "configure:18924: checking for socket" >&5 |
698dcdb6 VZ |
18924 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18926 | else |
698dcdb6 | 18927 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 18928 | #line 18929 "configure" |
c63c7106 VZ |
18929 | #include "confdefs.h" |
18930 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18931 | which can conflict with char socket(); below. */ |
c63c7106 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 socket(); | |
18937 | ||
18938 | int main() { | |
c63c7106 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_socket) || defined (__stub___socket) | |
18944 | choke me | |
18945 | #else | |
698dcdb6 | 18946 | socket(); |
c63c7106 VZ |
18947 | #endif |
18948 | ||
698dcdb6 VZ |
18949 | ; return 0; } |
18950 | EOF | |
986ecc86 | 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_socket=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_socket=no" | |
18959 | fi | |
18960 | rm -f conftest* | |
18961 | fi | |
18962 | ||
18963 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18964 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18965 | : |
18966 | else | |
698dcdb6 VZ |
18967 | echo "$ac_t""no" 1>&6 |
18968 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
986ecc86 | 18969 | echo "configure:18970: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18970 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18971 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18973 | else |
698dcdb6 | 18974 | ac_save_LIBS="$LIBS" |
c63c7106 | 18975 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18976 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 18977 | #line 18978 "configure" |
c63c7106 VZ |
18978 | #include "confdefs.h" |
18979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18980 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18981 | builtin and then its argument prototype would still apply. */ |
18982 | char socket(); | |
18983 | ||
18984 | int main() { | |
18985 | socket() | |
18986 | ; return 0; } | |
18987 | EOF | |
986ecc86 | 18988 | if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18989 | rm -rf conftest* |
18990 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18991 | else | |
18992 | echo "configure: failed program was:" >&5 | |
18993 | cat conftest.$ac_ext >&5 | |
18994 | rm -rf conftest* | |
18995 | eval "ac_cv_lib_$ac_lib_var=no" | |
18996 | fi | |
18997 | rm -f conftest* | |
18998 | LIBS="$ac_save_LIBS" | |
18999 | ||
19000 | fi | |
19001 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19002 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19003 | if test "$INET_LINK" != " -lsocket"; then |
19004 | INET_LINK="$INET_LINK -lsocket" | |
19005 | fi | |
c63c7106 | 19006 | else |
698dcdb6 | 19007 | echo "$ac_t""no" 1>&6 |
afc31813 | 19008 | |
3a922bb4 RL |
19009 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
19010 | wxUSE_SOCKETS=no | |
19011 | ||
698dcdb6 | 19012 | |
6232543b | 19013 | fi |
b089607b | 19014 | |
3a922bb4 | 19015 | |
1e487827 | 19016 | fi |
afc31813 | 19017 | |
3a922bb4 | 19018 | fi |
0feee163 | 19019 | fi |
51a9faba | 19020 | |
0feee163 VZ |
19021 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19022 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 19023 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
986ecc86 | 19024 | echo "configure:19025: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
19025 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19027 | else | |
19028 | ||
3a922bb4 RL |
19029 | |
19030 | ac_ext=C | |
698dcdb6 | 19031 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 19032 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
19033 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19034 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19035 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 19036 | |
698dcdb6 | 19037 | |
3a922bb4 | 19038 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 19039 | #line 19040 "configure" |
afc31813 | 19040 | #include "confdefs.h" |
51a9faba | 19041 | |
3a922bb4 RL |
19042 | #include <sys/types.h> |
19043 | #include <sys/socket.h> | |
19044 | ||
698dcdb6 | 19045 | int main() { |
51a9faba | 19046 | |
3a922bb4 RL |
19047 | socklen_t len; |
19048 | getsockname(0, 0, &len); | |
19049 | ||
698dcdb6 VZ |
19050 | ; return 0; } |
19051 | EOF | |
986ecc86 | 19052 | if { (eval echo configure:19053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19053 | rm -rf conftest* |
51a9faba | 19054 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19055 | else |
698dcdb6 VZ |
19056 | echo "configure: failed program was:" >&5 |
19057 | cat conftest.$ac_ext >&5 | |
19058 | rm -rf conftest* | |
19059 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19060 | #line 19061 "configure" |
afc31813 | 19061 | #include "confdefs.h" |
51a9faba | 19062 | |
3a922bb4 RL |
19063 | #include <sys/types.h> |
19064 | #include <sys/socket.h> | |
19065 | ||
698dcdb6 | 19066 | int main() { |
51a9faba | 19067 | |
3a922bb4 RL |
19068 | size_t len; |
19069 | getsockname(0, 0, &len); | |
19070 | ||
698dcdb6 VZ |
19071 | ; return 0; } |
19072 | EOF | |
986ecc86 | 19073 | if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19074 | rm -rf conftest* |
51a9faba | 19075 | wx_cv_type_getsockname3=size_t |
afc31813 | 19076 | else |
698dcdb6 VZ |
19077 | echo "configure: failed program was:" >&5 |
19078 | cat conftest.$ac_ext >&5 | |
19079 | rm -rf conftest* | |
19080 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19081 | #line 19082 "configure" |
afc31813 | 19082 | #include "confdefs.h" |
51a9faba | 19083 | |
3a922bb4 RL |
19084 | #include <sys/types.h> |
19085 | #include <sys/socket.h> | |
19086 | ||
698dcdb6 | 19087 | int main() { |
51a9faba | 19088 | |
3a922bb4 RL |
19089 | int len; |
19090 | getsockname(0, 0, &len); | |
19091 | ||
698dcdb6 VZ |
19092 | ; return 0; } |
19093 | EOF | |
986ecc86 | 19094 | if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19095 | rm -rf conftest* |
51a9faba | 19096 | wx_cv_type_getsockname3=int |
afc31813 | 19097 | else |
698dcdb6 VZ |
19098 | echo "configure: failed program was:" >&5 |
19099 | cat conftest.$ac_ext >&5 | |
19100 | rm -rf conftest* | |
19101 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 19102 | |
afc31813 | 19103 | fi |
698dcdb6 | 19104 | rm -f conftest* |
3a922bb4 | 19105 | |
afc31813 | 19106 | fi |
698dcdb6 | 19107 | rm -f conftest* |
3a922bb4 | 19108 | |
afc31813 | 19109 | fi |
698dcdb6 | 19110 | rm -f conftest* |
51a9faba | 19111 | |
3a922bb4 | 19112 | ac_ext=c |
698dcdb6 | 19113 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19114 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
19115 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19116 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19117 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19118 | |
3a922bb4 | 19119 | |
51a9faba | 19120 | fi |
698dcdb6 VZ |
19121 | |
19122 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19123 | |
3a922bb4 RL |
19124 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19125 | wxUSE_SOCKETS=no | |
19126 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
19127 | else | |
19128 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
19129 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19130 | EOF | |
19131 | ||
3a922bb4 | 19132 | fi |
51a9faba VZ |
19133 | fi |
19134 | fi | |
afc31813 | 19135 | |
51a9faba | 19136 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 19137 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19138 | #define wxUSE_SOCKETS 1 |
19139 | EOF | |
19140 | ||
70f7a477 | 19141 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19142 | fi |
19143 | ||
698dcdb6 | 19144 | |
dc3d889d VZ |
19145 | if test "$wxUSE_GUI" = "yes"; then |
19146 | ||
156b2523 GD |
19147 | if test "$TOOLKIT" = "MAC"; then |
19148 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19149 | wxUSE_JOYSTICK=no | |
19150 | fi | |
19151 | if test "$TOOLKIT" = "MOTIF"; then | |
19152 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19153 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
19154 | fi |
19155 | if test "$TOOLKIT" = "X11"; then | |
19156 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19157 | wxUSE_JOYSTICK=no | |
156b2523 GD |
19158 | fi |
19159 | ||
3a922bb4 RL |
19160 | if test "$TOOLKIT" != "MSW"; then |
19161 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19162 | for ac_hdr in linux/joystick.h | |
10f2d63a | 19163 | do |
698dcdb6 VZ |
19164 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19165 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 19166 | echo "configure:19167: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19167 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19169 | else | |
19170 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19171 | #line 19172 "configure" |
10f2d63a | 19172 | #include "confdefs.h" |
698dcdb6 VZ |
19173 | #include <$ac_hdr> |
19174 | EOF | |
19175 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 19176 | { (eval echo configure:19177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19177 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19178 | if test -z "$ac_err"; then | |
19179 | rm -rf conftest* | |
19180 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19181 | else |
698dcdb6 VZ |
19182 | echo "$ac_err" >&5 |
19183 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19184 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19185 | rm -rf conftest* |
19186 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19187 | fi |
698dcdb6 | 19188 | rm -f conftest* |
10f2d63a | 19189 | fi |
698dcdb6 VZ |
19190 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19191 | echo "$ac_t""yes" 1>&6 | |
19192 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19193 | cat >> confdefs.h <<EOF | |
19194 | #define $ac_tr_hdr 1 | |
10f2d63a | 19195 | EOF |
698dcdb6 VZ |
19196 | |
19197 | else | |
19198 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19199 | fi |
19200 | done | |
19201 | ||
3a922bb4 RL |
19202 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19203 | wxUSE_JOYSTICK=no | |
156b2523 | 19204 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19205 | fi |
19206 | fi | |
19207 | fi | |
b089607b | 19208 | |
3a922bb4 RL |
19209 | if test "$wxUSE_JOYSTICK" = "yes"; then |
19210 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19211 | #define wxUSE_JOYSTICK 1 |
19212 | EOF | |
19213 | ||
3a922bb4 RL |
19214 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19215 | fi | |
dc3d889d VZ |
19216 | fi |
19217 | ||
698dcdb6 | 19218 | |
b089607b VZ |
19219 | if test "$TOOLKIT" != "MSW"; then |
19220 | ||
3a922bb4 RL |
19221 | HAVE_DL_FUNCS=0 |
19222 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19223 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19224 | if test "$USE_DARWIN" = 1; then |
19225 | HAVE_DL_FUNCS=1 | |
19226 | else | |
19227 | for ac_func in dlopen | |
10f2d63a | 19228 | do |
698dcdb6 | 19229 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 19230 | echo "configure:19231: checking for $ac_func" >&5 |
698dcdb6 VZ |
19231 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19233 | else | |
19234 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19235 | #line 19236 "configure" |
10f2d63a VZ |
19236 | #include "confdefs.h" |
19237 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19238 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19239 | #include <assert.h> |
19240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19241 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19242 | builtin and then its argument prototype would still apply. */ |
19243 | char $ac_func(); | |
19244 | ||
19245 | int main() { | |
10f2d63a VZ |
19246 | |
19247 | /* The GNU C library defines this for functions which it implements | |
19248 | to always fail with ENOSYS. Some functions are actually named | |
19249 | something starting with __ and the normal name is an alias. */ | |
19250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19251 | choke me | |
19252 | #else | |
698dcdb6 | 19253 | $ac_func(); |
10f2d63a VZ |
19254 | #endif |
19255 | ||
698dcdb6 VZ |
19256 | ; return 0; } |
19257 | EOF | |
986ecc86 | 19258 | if { (eval echo configure:19259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19259 | rm -rf conftest* |
19260 | eval "ac_cv_func_$ac_func=yes" | |
19261 | else | |
19262 | echo "configure: failed program was:" >&5 | |
19263 | cat conftest.$ac_ext >&5 | |
19264 | rm -rf conftest* | |
19265 | eval "ac_cv_func_$ac_func=no" | |
19266 | fi | |
19267 | rm -f conftest* | |
19268 | fi | |
19269 | ||
19270 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19271 | echo "$ac_t""yes" 1>&6 | |
19272 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19273 | cat >> confdefs.h <<EOF | |
19274 | #define $ac_tr_func 1 | |
19275 | EOF | |
19276 | ||
3a922bb4 | 19277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19278 | #define HAVE_DLOPEN 1 |
19279 | EOF | |
19280 | ||
3a922bb4 RL |
19281 | HAVE_DL_FUNCS=1 |
19282 | ||
10f2d63a | 19283 | else |
698dcdb6 VZ |
19284 | echo "$ac_t""no" 1>&6 |
19285 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
986ecc86 | 19286 | echo "configure:19287: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
19287 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19288 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19290 | else |
698dcdb6 | 19291 | ac_save_LIBS="$LIBS" |
10f2d63a | 19292 | LIBS="-ldl $LIBS" |
698dcdb6 | 19293 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 19294 | #line 19295 "configure" |
10f2d63a VZ |
19295 | #include "confdefs.h" |
19296 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19297 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19298 | builtin and then its argument prototype would still apply. */ |
19299 | char dlopen(); | |
19300 | ||
19301 | int main() { | |
19302 | dlopen() | |
19303 | ; return 0; } | |
19304 | EOF | |
986ecc86 | 19305 | if { (eval echo configure:19306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19306 | rm -rf conftest* |
19307 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19308 | else | |
19309 | echo "configure: failed program was:" >&5 | |
19310 | cat conftest.$ac_ext >&5 | |
19311 | rm -rf conftest* | |
19312 | eval "ac_cv_lib_$ac_lib_var=no" | |
19313 | fi | |
19314 | rm -f conftest* | |
19315 | LIBS="$ac_save_LIBS" | |
19316 | ||
19317 | fi | |
19318 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19319 | echo "$ac_t""yes" 1>&6 | |
19320 | ||
3a922bb4 | 19321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19322 | #define HAVE_DLOPEN 1 |
19323 | EOF | |
19324 | ||
3a922bb4 | 19325 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19326 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19327 | |
10f2d63a | 19328 | else |
698dcdb6 | 19329 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19330 | |
3a922bb4 | 19331 | for ac_func in shl_load |
10f2d63a | 19332 | do |
698dcdb6 | 19333 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 19334 | echo "configure:19335: checking for $ac_func" >&5 |
698dcdb6 VZ |
19335 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19337 | else | |
19338 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19339 | #line 19340 "configure" |
10f2d63a VZ |
19340 | #include "confdefs.h" |
19341 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19342 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19343 | #include <assert.h> |
19344 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19345 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19346 | builtin and then its argument prototype would still apply. */ |
19347 | char $ac_func(); | |
19348 | ||
19349 | int main() { | |
10f2d63a VZ |
19350 | |
19351 | /* The GNU C library defines this for functions which it implements | |
19352 | to always fail with ENOSYS. Some functions are actually named | |
19353 | something starting with __ and the normal name is an alias. */ | |
19354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19355 | choke me | |
19356 | #else | |
698dcdb6 | 19357 | $ac_func(); |
10f2d63a VZ |
19358 | #endif |
19359 | ||
698dcdb6 VZ |
19360 | ; return 0; } |
19361 | EOF | |
986ecc86 | 19362 | if { (eval echo configure:19363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19363 | rm -rf conftest* |
19364 | eval "ac_cv_func_$ac_func=yes" | |
19365 | else | |
19366 | echo "configure: failed program was:" >&5 | |
19367 | cat conftest.$ac_ext >&5 | |
19368 | rm -rf conftest* | |
19369 | eval "ac_cv_func_$ac_func=no" | |
19370 | fi | |
19371 | rm -f conftest* | |
19372 | fi | |
19373 | ||
19374 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19375 | echo "$ac_t""yes" 1>&6 | |
19376 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19377 | cat >> confdefs.h <<EOF | |
19378 | #define $ac_tr_func 1 | |
19379 | EOF | |
19380 | ||
3a922bb4 | 19381 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19382 | #define HAVE_SHL_LOAD 1 |
19383 | EOF | |
19384 | ||
3a922bb4 RL |
19385 | HAVE_SHL_FUNCS=1 |
19386 | ||
10f2d63a | 19387 | else |
698dcdb6 VZ |
19388 | echo "$ac_t""no" 1>&6 |
19389 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
986ecc86 | 19390 | echo "configure:19391: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19391 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19394 | else |
698dcdb6 | 19395 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19396 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19397 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 19398 | #line 19399 "configure" |
f6bcfd97 BP |
19399 | #include "confdefs.h" |
19400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19401 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19402 | builtin and then its argument prototype would still apply. */ |
19403 | char dld(); | |
19404 | ||
19405 | int main() { | |
19406 | dld() | |
19407 | ; return 0; } | |
19408 | EOF | |
986ecc86 | 19409 | if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19410 | rm -rf conftest* |
19411 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19412 | else | |
19413 | echo "configure: failed program was:" >&5 | |
19414 | cat conftest.$ac_ext >&5 | |
19415 | rm -rf conftest* | |
19416 | eval "ac_cv_lib_$ac_lib_var=no" | |
19417 | fi | |
19418 | rm -f conftest* | |
19419 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19420 | |
698dcdb6 VZ |
19421 | fi |
19422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19423 | echo "$ac_t""yes" 1>&6 | |
19424 | ||
3a922bb4 | 19425 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19426 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19427 | |
698dcdb6 VZ |
19428 | else |
19429 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19430 | fi |
19431 | ||
3a922bb4 | 19432 | |
10f2d63a VZ |
19433 | fi |
19434 | done | |
19435 | ||
3a922bb4 | 19436 | |
10f2d63a VZ |
19437 | fi |
19438 | ||
3a922bb4 | 19439 | |
10f2d63a VZ |
19440 | fi |
19441 | done | |
19442 | ||
1e487827 | 19443 | |
3a922bb4 RL |
19444 | if test "$HAVE_DL_FUNCS" = 1; then |
19445 | for ac_func in dlerror | |
f6bcfd97 | 19446 | do |
698dcdb6 | 19447 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
986ecc86 | 19448 | echo "configure:19449: checking for $ac_func" >&5 |
698dcdb6 VZ |
19449 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19451 | else | |
19452 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19453 | #line 19454 "configure" |
f6bcfd97 BP |
19454 | #include "confdefs.h" |
19455 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19456 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19457 | #include <assert.h> |
19458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19459 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19460 | builtin and then its argument prototype would still apply. */ |
19461 | char $ac_func(); | |
19462 | ||
19463 | int main() { | |
f6bcfd97 BP |
19464 | |
19465 | /* The GNU C library defines this for functions which it implements | |
19466 | to always fail with ENOSYS. Some functions are actually named | |
19467 | something starting with __ and the normal name is an alias. */ | |
19468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19469 | choke me | |
19470 | #else | |
698dcdb6 | 19471 | $ac_func(); |
f6bcfd97 BP |
19472 | #endif |
19473 | ||
698dcdb6 VZ |
19474 | ; return 0; } |
19475 | EOF | |
986ecc86 | 19476 | if { (eval echo configure:19477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19477 | rm -rf conftest* |
19478 | eval "ac_cv_func_$ac_func=yes" | |
19479 | else | |
19480 | echo "configure: failed program was:" >&5 | |
19481 | cat conftest.$ac_ext >&5 | |
19482 | rm -rf conftest* | |
19483 | eval "ac_cv_func_$ac_func=no" | |
19484 | fi | |
19485 | rm -f conftest* | |
19486 | fi | |
19487 | ||
19488 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19489 | echo "$ac_t""yes" 1>&6 | |
19490 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19491 | cat >> confdefs.h <<EOF | |
19492 | #define $ac_tr_func 1 | |
19493 | EOF | |
19494 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19495 | #define HAVE_DLERROR 1 |
19496 | EOF | |
19497 | ||
19498 | else | |
698dcdb6 VZ |
19499 | echo "$ac_t""no" 1>&6 |
19500 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
986ecc86 | 19501 | echo "configure:19502: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19502 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19503 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19505 | else |
698dcdb6 | 19506 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19507 | LIBS="-ldl $LIBS" |
698dcdb6 | 19508 | cat > conftest.$ac_ext <<EOF |
986ecc86 | 19509 | #line 19510 "configure" |
f6bcfd97 BP |
19510 | #include "confdefs.h" |
19511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19512 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19513 | builtin and then its argument prototype would still apply. */ |
19514 | char dlerror(); | |
19515 | ||
19516 | int main() { | |
19517 | dlerror() | |
19518 | ; return 0; } | |
19519 | EOF | |
986ecc86 | 19520 | if { (eval echo configure:19521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19521 | rm -rf conftest* |
19522 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19523 | else | |
19524 | echo "configure: failed program was:" >&5 | |
19525 | cat conftest.$ac_ext >&5 | |
19526 | rm -rf conftest* | |
19527 | eval "ac_cv_lib_$ac_lib_var=no" | |
19528 | fi | |
19529 | rm -f conftest* | |
19530 | LIBS="$ac_save_LIBS" | |
19531 | ||
19532 | fi | |
19533 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19534 | echo "$ac_t""yes" 1>&6 | |
19535 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19536 | #define HAVE_DLERROR 1 |
19537 | EOF | |
19538 | ||
698dcdb6 VZ |
19539 | else |
19540 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19541 | fi |
19542 | ||
19543 | fi | |
19544 | done | |
19545 | ||
3a922bb4 RL |
19546 | fi |
19547 | fi | |
f6bcfd97 | 19548 | |
3a922bb4 RL |
19549 | if test "$HAVE_DL_FUNCS" = 0; then |
19550 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19551 | if test "$USE_UNIX" = 1; then | |
19552 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19553 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19554 | wxUSE_DYNLIB_CLASS=no |
19555 | else | |
19556 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19557 | fi | |
19558 | fi | |
10f2d63a VZ |
19559 | fi |
19560 | fi | |
19561 | fi | |
19562 | ||
0b9ab0bd RL |
19563 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19564 | cat >> confdefs.h <<\EOF | |
19565 | #define wxUSE_DYNAMIC_LOADER 1 | |
19566 | EOF | |
19567 | ||
19568 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19569 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19570 | #define wxUSE_DYNLIB_CLASS 1 |
19571 | EOF | |
19572 | ||
19573 | fi | |
19574 | ||
698dcdb6 | 19575 | |
1e6feb95 VZ |
19576 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19577 | cat >> confdefs.h <<\EOF | |
19578 | #define wxUSE_FONTMAP 1 | |
19579 | EOF | |
19580 | ||
19581 | fi | |
19582 | ||
10f2d63a | 19583 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19584 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19585 | #define wxUSE_UNICODE 1 |
19586 | EOF | |
19587 | ||
bbc3925a VS |
19588 | |
19589 | if test "$wxUSE_MSW" != 1; then | |
19590 | wxUSE_UNICODE_MSLU=no | |
19591 | fi | |
a72a4bfa VS |
19592 | |
19593 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19594 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
986ecc86 | 19595 | echo "configure:19596: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19596 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19597 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19599 | else | |
19600 | ac_save_LIBS="$LIBS" | |
19601 | LIBS="-lunicows $LIBS" | |
19602 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19603 | #line 19604 "configure" |
a72a4bfa VS |
19604 | #include "confdefs.h" |
19605 | ||
19606 | int main() { | |
19607 | main() | |
19608 | ; return 0; } | |
19609 | EOF | |
986ecc86 | 19610 | if { (eval echo configure:19611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19611 | rm -rf conftest* |
19612 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19613 | else | |
19614 | echo "configure: failed program was:" >&5 | |
19615 | cat conftest.$ac_ext >&5 | |
19616 | rm -rf conftest* | |
19617 | eval "ac_cv_lib_$ac_lib_var=no" | |
19618 | fi | |
19619 | rm -f conftest* | |
19620 | LIBS="$ac_save_LIBS" | |
19621 | ||
19622 | fi | |
19623 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19624 | echo "$ac_t""yes" 1>&6 | |
19625 | ||
19626 | cat >> confdefs.h <<\EOF | |
19627 | #define wxUSE_UNICODE_MSLU 1 | |
19628 | EOF | |
19629 | ||
19630 | ||
19631 | else | |
19632 | echo "$ac_t""no" 1>&6 | |
19633 | ||
19634 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19635 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19636 | wxUSE_UNICODE_MSLU=no | |
19637 | ||
19638 | fi | |
19639 | ||
19640 | fi | |
10f2d63a VZ |
19641 | fi |
19642 | ||
10f2d63a | 19643 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19644 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19645 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19646 | EOF | |
19647 | ||
19648 | fi | |
19649 | ||
698dcdb6 | 19650 | |
698dcdb6 | 19651 | |
10f2d63a VZ |
19652 | IODBC_C_SRC="" |
19653 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19654 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19655 | #define wxUSE_ODBC 1 |
19656 | EOF | |
19657 | ||
19658 | WXODBCFLAG="-D_IODBC_" | |
19659 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19660 | fi |
19661 | ||
698dcdb6 | 19662 | |
10f2d63a | 19663 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19664 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19665 | #define wxUSE_POSTSCRIPT 1 |
19666 | EOF | |
19667 | ||
19668 | fi | |
19669 | ||
698dcdb6 | 19670 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19671 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19672 | EOF | |
19673 | ||
698dcdb6 VZ |
19674 | |
19675 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19676 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19677 | EOF | |
19678 | ||
698dcdb6 VZ |
19679 | |
19680 | ||
10f2d63a | 19681 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19683 | #define wxUSE_CONSTRAINTS 1 |
19684 | EOF | |
19685 | ||
19686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19687 | fi | |
19688 | ||
19689 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19690 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19691 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19692 | wxUSE_MDI_ARCHITECTURE=no |
19693 | fi | |
19694 | ||
19695 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19696 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19697 | #define wxUSE_MDI_ARCHITECTURE 1 |
19698 | EOF | |
19699 | ||
fc26f4ab RL |
19700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19701 | fi | |
10f2d63a VZ |
19702 | fi |
19703 | ||
19704 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19705 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19706 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19707 | EOF | |
19708 | ||
19709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19710 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19712 | fi | |
19713 | fi | |
19714 | ||
19715 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19716 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19717 | #define wxUSE_HELP 1 |
19718 | EOF | |
19719 | ||
19720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19721 | |
77e13408 | 19722 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19723 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19724 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19725 | #define wxUSE_MS_HTML_HELP 1 |
19726 | EOF | |
19727 | ||
3e44f09d | 19728 | fi |
3379ed37 | 19729 | fi |
031d8228 VS |
19730 | |
19731 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19732 | if test "$wxUSE_HTML" = "yes"; then | |
19733 | cat >> confdefs.h <<\EOF | |
19734 | #define wxUSE_WXHTML_HELP 1 | |
19735 | EOF | |
19736 | ||
19737 | else | |
19738 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19739 | wxUSE_WXHTML_HELP=no | |
19740 | fi | |
19741 | fi | |
10f2d63a VZ |
19742 | fi |
19743 | ||
19744 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19745 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19746 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19747 | else |
698dcdb6 | 19748 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19749 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19750 | EOF | |
19751 | ||
19752 | fi | |
19753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19754 | fi | |
19755 | ||
19756 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19757 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19758 | #define wxUSE_PROLOGIO 1 |
19759 | EOF | |
19760 | ||
19761 | fi | |
19762 | ||
19763 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19764 | if test "$wxUSE_NANOX" = "yes"; then |
19765 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19766 | else | |
19767 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19768 | #define wxUSE_RESOURCES 1 |
19769 | EOF | |
19770 | ||
e334d0ea JS |
19771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19772 | fi | |
10f2d63a VZ |
19773 | fi |
19774 | ||
19775 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19776 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19777 | #define wxUSE_X_RESOURCES 1 |
19778 | EOF | |
19779 | ||
19780 | fi | |
19781 | ||
698dcdb6 | 19782 | |
77e13408 RL |
19783 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19784 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19785 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19786 | for ac_hdr in ole2.h |
10f2d63a | 19787 | do |
698dcdb6 VZ |
19788 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19789 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
986ecc86 | 19790 | echo "configure:19791: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19791 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19793 | else | |
19794 | cat > conftest.$ac_ext <<EOF | |
986ecc86 | 19795 | #line 19796 "configure" |
10f2d63a | 19796 | #include "confdefs.h" |
698dcdb6 VZ |
19797 | #include <$ac_hdr> |
19798 | EOF | |
19799 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
986ecc86 | 19800 | { (eval echo configure:19801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19801 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19802 | if test -z "$ac_err"; then | |
19803 | rm -rf conftest* | |
19804 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19805 | else |
698dcdb6 VZ |
19806 | echo "$ac_err" >&5 |
19807 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19808 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19809 | rm -rf conftest* |
19810 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19811 | fi |
698dcdb6 | 19812 | rm -f conftest* |
10f2d63a | 19813 | fi |
698dcdb6 VZ |
19814 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19815 | echo "$ac_t""yes" 1>&6 | |
19816 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19817 | cat >> confdefs.h <<EOF | |
19818 | #define $ac_tr_hdr 1 | |
10f2d63a | 19819 | EOF |
698dcdb6 VZ |
19820 | |
19821 | else | |
19822 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19823 | fi |
19824 | done | |
19825 | ||
698dcdb6 | 19826 | |
2b9bdf71 VZ |
19827 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19828 | if test "$GCC" = yes ; then | |
19829 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19830 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19831 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19832 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19833 | #define wxUSE_OLE 1 |
19834 | EOF | |
19835 | ||
b64f0a5f | 19836 | |
2b9bdf71 VZ |
19837 | fi |
19838 | ||
19839 | cat >> confdefs.h <<\EOF | |
19840 | #define wxUSE_DATAOBJ 1 | |
19841 | EOF | |
19842 | ||
19843 | else | |
19844 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19845 | ||
19846 | wxUSE_CLIPBOARD=no | |
19847 | wxUSE_DRAG_AND_DROP=no | |
19848 | wxUSE_DATAOBJ=no | |
19849 | fi | |
19850 | ||
77e13408 | 19851 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19852 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19853 | #define wxUSE_METAFILE 1 |
19854 | EOF | |
19855 | ||
2b9bdf71 VZ |
19856 | |
19857 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19858 | #define wxUSE_ENH_METAFILE 1 |
19859 | EOF | |
19860 | ||
2b9bdf71 VZ |
19861 | fi |
19862 | fi | |
19863 | ||
19864 | if test "$wxUSE_IPC" = "yes"; then | |
19865 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19866 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19867 | fi |
19868 | ||
19869 | cat >> confdefs.h <<\EOF | |
19870 | #define wxUSE_IPC 1 | |
19871 | EOF | |
19872 | ||
19873 | fi | |
19874 | ||
19875 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 VS |
19876 | if test "$wxUSE_MGL" = 1; then |
19877 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 | |
19878 | wxUSE_CLIPBOARD=no | |
19879 | fi | |
19880 | ||
19881 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19882 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19883 | #define wxUSE_CLIPBOARD 1 |
19884 | EOF | |
19885 | ||
673f4220 | 19886 | |
6c657b52 | 19887 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19888 | #define wxUSE_DATAOBJ 1 |
19889 | EOF | |
19890 | ||
6c657b52 | 19891 | fi |
2b9bdf71 VZ |
19892 | fi |
19893 | ||
19894 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19895 | if test "$wxUSE_GTK" = 1; then | |
19896 | if test "$WXGTK12" != 1; then | |
156b2523 | 19897 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19898 | wxUSE_DRAG_AND_DROP=no |
19899 | fi | |
19900 | fi | |
19901 | ||
2b9bdf71 | 19902 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19903 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19904 | wxUSE_DRAG_AND_DROP=no |
19905 | fi | |
19906 | ||
f79bd02d JS |
19907 | if test "$wxUSE_X11" = 1; then |
19908 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19909 | wxUSE_DRAG_AND_DROP=no | |
19910 | fi | |
19911 | ||
6c657b52 VS |
19912 | if test "$wxUSE_MGL" = 1; then |
19913 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 | |
19914 | wxUSE_DRAG_AND_DROP=no | |
19915 | fi | |
19916 | ||
10f2d63a | 19917 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19918 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19919 | #define wxUSE_DRAG_AND_DROP 1 |
19920 | EOF | |
19921 | ||
19922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19923 | fi | |
19924 | ||
19925 | fi | |
19926 | ||
19927 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19928 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19929 | #define wxUSE_SPLINES 1 |
19930 | EOF | |
19931 | ||
19932 | fi | |
19933 | ||
698dcdb6 | 19934 | |
1e6feb95 VZ |
19935 | USES_CONTROLS=0 |
19936 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19937 | USES_CONTROLS=1 | |
19938 | fi | |
19939 | ||
10f2d63a | 19940 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19941 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19942 | #define wxUSE_ACCEL 1 |
19943 | EOF | |
19944 | ||
1e6feb95 VZ |
19945 | USES_CONTROLS=1 |
19946 | fi | |
19947 | ||
19948 | if test "$wxUSE_BUTTON" = "yes"; then | |
19949 | cat >> confdefs.h <<\EOF | |
19950 | #define wxUSE_BUTTON 1 | |
19951 | EOF | |
19952 | ||
19953 | USES_CONTROLS=1 | |
19954 | fi | |
19955 | ||
19956 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19957 | cat >> confdefs.h <<\EOF | |
19958 | #define wxUSE_BMPBUTTON 1 | |
19959 | EOF | |
19960 | ||
19961 | USES_CONTROLS=1 | |
19962 | fi | |
19963 | ||
19964 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19965 | cat >> confdefs.h <<\EOF | |
19966 | #define wxUSE_CALENDARCTRL 1 | |
19967 | EOF | |
19968 | ||
19969 | USES_CONTROLS=1 | |
19970 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19971 | fi |
19972 | ||
19973 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19974 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19975 | #define wxUSE_CARET 1 |
19976 | EOF | |
19977 | ||
1e6feb95 | 19978 | USES_CONTROLS=1 |
10f2d63a VZ |
19979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19980 | fi | |
19981 | ||
19982 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19983 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19984 | #define wxUSE_COMBOBOX 1 |
19985 | EOF | |
19986 | ||
1e6feb95 | 19987 | USES_CONTROLS=1 |
10f2d63a VZ |
19988 | fi |
19989 | ||
19990 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19991 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19992 | #define wxUSE_CHOICE 1 |
19993 | EOF | |
19994 | ||
1e6feb95 | 19995 | USES_CONTROLS=1 |
10f2d63a VZ |
19996 | fi |
19997 | ||
19998 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19999 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20000 | #define wxUSE_CHECKBOX 1 |
20001 | EOF | |
20002 | ||
1e6feb95 | 20003 | USES_CONTROLS=1 |
10f2d63a VZ |
20004 | fi |
20005 | ||
20006 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 20007 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20008 | #define wxUSE_CHECKLISTBOX 1 |
20009 | EOF | |
20010 | ||
1e6feb95 | 20011 | USES_CONTROLS=1 |
10f2d63a VZ |
20012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20013 | fi | |
20014 | ||
20015 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 20016 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20017 | #define wxUSE_GAUGE 1 |
20018 | EOF | |
20019 | ||
1e6feb95 | 20020 | USES_CONTROLS=1 |
10f2d63a VZ |
20021 | fi |
20022 | ||
d6a55c4b VZ |
20023 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20024 | wxUSE_GRID="yes" | |
698dcdb6 | 20025 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20026 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20027 | EOF |
20028 | ||
1e6feb95 | 20029 | USES_CONTROLS=1 |
d6a55c4b | 20030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20031 | fi |
20032 | ||
d6a55c4b | 20033 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 20034 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20035 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20036 | EOF |
20037 | ||
1e6feb95 | 20038 | USES_CONTROLS=1 |
d6a55c4b | 20039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20040 | fi |
20041 | ||
20042 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20044 | #define wxUSE_IMAGLIST 1 |
20045 | EOF | |
20046 | ||
20047 | fi | |
20048 | ||
20049 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 20050 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20051 | #define wxUSE_LISTBOX 1 |
20052 | EOF | |
20053 | ||
1e6feb95 | 20054 | USES_CONTROLS=1 |
10f2d63a VZ |
20055 | fi |
20056 | ||
20057 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20058 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20059 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20060 | #define wxUSE_LISTCTRL 1 |
20061 | EOF | |
20062 | ||
1e6feb95 | 20063 | USES_CONTROLS=1 |
10f2d63a VZ |
20064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20065 | else | |
698dcdb6 | 20066 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20067 | fi |
20068 | fi | |
20069 | ||
20070 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 20071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20072 | #define wxUSE_NOTEBOOK 1 |
20073 | EOF | |
20074 | ||
1e6feb95 | 20075 | USES_CONTROLS=1 |
10f2d63a VZ |
20076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20077 | fi | |
20078 | ||
24176f2c GD |
20079 | if test "$wxUSE_PROPSHEET" = "yes"; then |
20080 | cat >> confdefs.h <<\EOF | |
20081 | #define wxUSE_PROPSHEET 1 | |
20082 | EOF | |
20083 | ||
20084 | USES_CONTROLS=1 | |
20085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20086 | fi | |
20087 | ||
10f2d63a | 20088 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 20089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20090 | #define wxUSE_RADIOBOX 1 |
20091 | EOF | |
20092 | ||
1e6feb95 | 20093 | USES_CONTROLS=1 |
10f2d63a VZ |
20094 | fi |
20095 | ||
20096 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 20097 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20098 | #define wxUSE_RADIOBTN 1 |
20099 | EOF | |
20100 | ||
1e6feb95 | 20101 | USES_CONTROLS=1 |
10f2d63a VZ |
20102 | fi |
20103 | ||
20104 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 20105 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20106 | #define wxUSE_SASH 1 |
20107 | EOF | |
20108 | ||
20109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20110 | fi | |
20111 | ||
20112 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 20113 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20114 | #define wxUSE_SCROLLBAR 1 |
20115 | EOF | |
20116 | ||
1e6feb95 | 20117 | USES_CONTROLS=1 |
741a9306 | 20118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20119 | fi |
20120 | ||
20121 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 20122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20123 | #define wxUSE_SLIDER 1 |
20124 | EOF | |
20125 | ||
1e6feb95 | 20126 | USES_CONTROLS=1 |
10f2d63a VZ |
20127 | fi |
20128 | ||
20129 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 20130 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20131 | #define wxUSE_SPINBTN 1 |
20132 | EOF | |
20133 | ||
1e6feb95 | 20134 | USES_CONTROLS=1 |
10f2d63a VZ |
20135 | fi |
20136 | ||
56cfaa52 | 20137 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 20138 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20139 | #define wxUSE_SPINCTRL 1 |
20140 | EOF | |
20141 | ||
1e6feb95 | 20142 | USES_CONTROLS=1 |
56cfaa52 RR |
20143 | fi |
20144 | ||
10f2d63a | 20145 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 20146 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20147 | #define wxUSE_SPLITTER 1 |
20148 | EOF | |
20149 | ||
20150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20151 | fi | |
20152 | ||
20153 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 20154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20155 | #define wxUSE_STATBMP 1 |
20156 | EOF | |
20157 | ||
1e6feb95 | 20158 | USES_CONTROLS=1 |
10f2d63a VZ |
20159 | fi |
20160 | ||
20161 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 20162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20163 | #define wxUSE_STATBOX 1 |
20164 | EOF | |
20165 | ||
1e6feb95 VZ |
20166 | USES_CONTROLS=1 |
20167 | fi | |
20168 | ||
20169 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20170 | cat >> confdefs.h <<\EOF | |
20171 | #define wxUSE_STATTEXT 1 | |
20172 | EOF | |
20173 | ||
20174 | USES_CONTROLS=1 | |
10f2d63a VZ |
20175 | fi |
20176 | ||
20177 | if test "$wxUSE_STATLINE" = "yes"; then | |
20178 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 20179 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20180 | else |
698dcdb6 | 20181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20182 | #define wxUSE_STATLINE 1 |
20183 | EOF | |
20184 | ||
1e6feb95 | 20185 | USES_CONTROLS=1 |
10f2d63a VZ |
20186 | fi |
20187 | fi | |
20188 | ||
20189 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 20190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20191 | #define wxUSE_STATUSBAR 1 |
20192 | EOF | |
20193 | ||
1e6feb95 | 20194 | USES_CONTROLS=1 |
698dcdb6 | 20195 | |
2286341c | 20196 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20197 | fi |
20198 | ||
20199 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 20200 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20201 | #define wxUSE_TAB_DIALOG 1 |
20202 | EOF | |
20203 | ||
20204 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20205 | fi | |
20206 | ||
1e6feb95 VZ |
20207 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
20208 | cat >> confdefs.h <<\EOF | |
20209 | #define wxUSE_TEXTCTRL 1 | |
20210 | EOF | |
20211 | ||
20212 | USES_CONTROLS=1 | |
20213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20214 | fi | |
20215 | ||
1db8dc4a | 20216 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
20217 | if test "$wxUSE_MAC" = 1; then |
20218 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20219 | wxUSE_TOGGLEBTN=no | |
20220 | fi | |
20221 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 20222 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20223 | wxUSE_TOGGLEBTN=no |
20224 | fi | |
20225 | ||
20226 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20227 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
20228 | #define wxUSE_TOGGLEBTN 1 |
20229 | EOF | |
20230 | ||
1e6feb95 | 20231 | USES_CONTROLS=1 |
a45d7ab7 | 20232 | fi |
1db8dc4a VZ |
20233 | fi |
20234 | ||
360d6699 | 20235 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 20236 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20237 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20238 | EOF | |
20239 | ||
20240 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20241 | USES_CONTROLS=1 |
360d6699 VZ |
20242 | fi |
20243 | ||
10f2d63a | 20244 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 20245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20246 | #define wxUSE_TOOLBAR 1 |
20247 | EOF | |
20248 | ||
1e6feb95 | 20249 | USES_CONTROLS=1 |
698dcdb6 | 20250 | |
360d6699 VZ |
20251 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20252 | wxUSE_TOOLBAR_NATIVE="yes" | |
20253 | fi | |
20254 | ||
1e6feb95 VZ |
20255 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
20256 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
20257 | #define wxUSE_TOOLBAR_NATIVE 1 |
20258 | EOF | |
20259 | ||
1e6feb95 VZ |
20260 | USES_CONTROLS=1 |
20261 | fi | |
20262 | ||
20263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20264 | fi |
20265 | ||
10f2d63a VZ |
20266 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20267 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 20268 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20269 | else |
20270 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 20271 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20272 | else |
69d27ff7 | 20273 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 20274 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20275 | else |
3c011993 | 20276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20277 | #define wxUSE_TOOLTIPS 1 |
20278 | EOF | |
20279 | ||
69d27ff7 | 20280 | fi |
10f2d63a VZ |
20281 | fi |
20282 | fi | |
20283 | fi | |
20284 | ||
20285 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20286 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20288 | #define wxUSE_TREECTRL 1 |
20289 | EOF | |
20290 | ||
1e6feb95 | 20291 | USES_CONTROLS=1 |
10f2d63a VZ |
20292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20293 | else | |
698dcdb6 | 20294 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20295 | fi |
20296 | fi | |
20297 | ||
9f41d601 | 20298 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20299 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20300 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20301 | else |
485cf710 VZ |
20302 | if test "$wxUSE_MOTIF" = 1; then |
20303 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20304 | else | |
3c011993 VZ |
20305 | if test "$wxUSE_PM" = 1; then |
20306 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20307 | else | |
20308 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20309 | #define wxUSE_POPUPWIN 1 |
20310 | EOF | |
20311 | ||
9926e4a4 | 20312 | |
3c011993 VZ |
20313 | USES_CONTROLS=1 |
20314 | fi | |
485cf710 | 20315 | fi |
6abe4b65 | 20316 | fi |
9f41d601 RR |
20317 | fi |
20318 | ||
dd964dcc | 20319 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20320 | if test "$wxUSE_PM" = 1; then |
20321 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20322 | else | |
20323 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20324 | #define wxUSE_TIPWINDOW 1 |
20325 | EOF | |
20326 | ||
3c011993 | 20327 | fi |
dd964dcc VZ |
20328 | fi |
20329 | ||
1e6feb95 VZ |
20330 | if test "$USES_CONTROLS" = 1; then |
20331 | cat >> confdefs.h <<\EOF | |
20332 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20333 | EOF |
20334 | ||
10f2d63a VZ |
20335 | fi |
20336 | ||
1e6feb95 | 20337 | |
24176f2c GD |
20338 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20339 | cat >> confdefs.h <<\EOF | |
20340 | #define wxUSE_TREELAYOUT 1 | |
20341 | EOF | |
20342 | ||
20343 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20344 | fi | |
1e6feb95 | 20345 | |
24fd6d87 VZ |
20346 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20347 | cat >> confdefs.h <<\EOF | |
20348 | #define wxUSE_DRAGIMAGE 1 | |
20349 | EOF | |
20350 | ||
20351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20352 | fi | |
20353 | ||
1e6feb95 | 20354 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20355 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20356 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20357 | EOF |
20358 | ||
1e6feb95 | 20359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20360 | fi |
20361 | ||
1e6feb95 VZ |
20362 | if test "$wxUSE_METAFILE" = "yes"; then |
20363 | cat >> confdefs.h <<\EOF | |
20364 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20365 | EOF |
20366 | ||
10f2d63a VZ |
20367 | fi |
20368 | ||
1e6feb95 VZ |
20369 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20370 | cat >> confdefs.h <<\EOF | |
20371 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20372 | EOF |
20373 | ||
10f2d63a VZ |
20374 | fi |
20375 | ||
3e44f09d VZ |
20376 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20377 | cat >> confdefs.h <<\EOF | |
20378 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20379 | EOF | |
20380 | ||
321d2b14 VZ |
20381 | if test "$TOOLKIT" = "MSW"; then |
20382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20383 | fi | |
20384 | ||
3e44f09d VZ |
20385 | fi |
20386 | ||
4cdb0ab0 | 20387 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20388 | if test "$wxUSE_SOCKETS" != "yes"; then |
20389 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20390 | wxUSE_PROTOCOL=no | |
20391 | fi | |
20392 | ||
20393 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20394 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20395 | #define wxUSE_PROTOCOL 1 |
20396 | EOF | |
20397 | ||
20398 | ||
3954f9ca VS |
20399 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20400 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20401 | #define wxUSE_PROTOCOL_HTTP 1 |
20402 | EOF | |
20403 | ||
3954f9ca VS |
20404 | fi |
20405 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20406 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20407 | #define wxUSE_PROTOCOL_FTP 1 |
20408 | EOF | |
20409 | ||
3954f9ca VS |
20410 | fi |
20411 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20412 | cat >> confdefs.h <<\EOF | |
20413 | #define wxUSE_PROTOCOL_FILE 1 | |
20414 | EOF | |
20415 | ||
20416 | fi | |
4cdb0ab0 | 20417 | fi |
3954f9ca VS |
20418 | fi |
20419 | ||
20420 | if test "$wxUSE_URL" = "yes"; then | |
20421 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20422 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20423 | wxUSE_URL=no | |
20424 | fi | |
20425 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20426 | cat >> confdefs.h <<\EOF |
3954f9ca | 20427 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20428 | EOF |
20429 | ||
20430 | fi | |
20431 | fi | |
20432 | ||
10f2d63a | 20433 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20434 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20435 | #define wxUSE_MINIFRAME 1 |
20436 | EOF | |
20437 | ||
20438 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20439 | fi | |
20440 | ||
20441 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20442 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20443 | #define wxUSE_HTML 1 |
20444 | EOF | |
20445 | ||
20446 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20447 | fi |
20448 | ||
20449 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20450 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20451 | #define wxUSE_VALIDATORS 1 |
20452 | EOF | |
703e0a69 | 20453 | |
698dcdb6 VZ |
20454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20455 | fi | |
20456 | ||
edae8572 VZ |
20457 | if test "$wxUSE_PALETTE" = "yes" ; then |
20458 | cat >> confdefs.h <<\EOF | |
20459 | #define wxUSE_PALETTE 1 | |
20460 | EOF | |
20461 | ||
20462 | fi | |
20463 | ||
698dcdb6 VZ |
20464 | if test "$wxUSE_IMAGE" = "yes" ; then |
20465 | cat >> confdefs.h <<\EOF | |
20466 | #define wxUSE_IMAGE 1 | |
20467 | EOF | |
20468 | ||
20469 | fi | |
20470 | ||
20471 | if test "$wxUSE_GIF" = "yes" ; then | |
20472 | cat >> confdefs.h <<\EOF | |
20473 | #define wxUSE_GIF 1 | |
20474 | EOF | |
20475 | ||
20476 | fi | |
20477 | ||
20478 | if test "$wxUSE_PCX" = "yes" ; then | |
20479 | cat >> confdefs.h <<\EOF | |
20480 | #define wxUSE_PCX 1 | |
20481 | EOF | |
20482 | ||
20483 | fi | |
20484 | ||
4b6b4dfc RR |
20485 | if test "$wxUSE_IFF" = "yes" ; then |
20486 | cat >> confdefs.h <<\EOF | |
20487 | #define wxUSE_IFF 1 | |
20488 | EOF | |
20489 | ||
20490 | fi | |
20491 | ||
698dcdb6 VZ |
20492 | if test "$wxUSE_PNM" = "yes" ; then |
20493 | cat >> confdefs.h <<\EOF | |
20494 | #define wxUSE_PNM 1 | |
20495 | EOF | |
20496 | ||
20497 | fi | |
20498 | ||
20499 | if test "$wxUSE_XPM" = "yes" ; then | |
20500 | cat >> confdefs.h <<\EOF | |
20501 | #define wxUSE_XPM 1 | |
20502 | EOF | |
20503 | ||
20504 | fi | |
20505 | ||
658974ae VS |
20506 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20507 | cat >> confdefs.h <<\EOF | |
20508 | #define wxUSE_ICO_CUR 1 | |
20509 | EOF | |
20510 | ||
20511 | fi | |
20512 | ||
a72a4bfa VS |
20513 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20514 | LIBS=" -lunicows $LIBS" | |
20515 | fi | |
20516 | ||
698dcdb6 | 20517 | |
1e6feb95 VZ |
20518 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20519 | cat >> confdefs.h <<\EOF | |
20520 | #define wxUSE_CHOICEDLG 1 | |
20521 | EOF | |
20522 | ||
20523 | fi | |
20524 | ||
20525 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20526 | cat >> confdefs.h <<\EOF | |
20527 | #define wxUSE_COLOURDLG 1 | |
20528 | EOF | |
20529 | ||
20530 | fi | |
20531 | ||
20532 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20533 | cat >> confdefs.h <<\EOF | |
20534 | #define wxUSE_FILEDLG 1 | |
20535 | EOF | |
20536 | ||
20537 | fi | |
20538 | ||
8db37e06 VZ |
20539 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20540 | cat >> confdefs.h <<\EOF | |
20541 | #define wxUSE_FINDREPLDLG 1 | |
20542 | EOF | |
20543 | ||
20544 | fi | |
20545 | ||
1e6feb95 VZ |
20546 | if test "$wxUSE_FONTDLG" = "yes"; then |
20547 | cat >> confdefs.h <<\EOF | |
20548 | #define wxUSE_FONTDLG 1 | |
20549 | EOF | |
20550 | ||
20551 | fi | |
20552 | ||
20553 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20554 | if test "$wxUSE_TREECTRL" != "yes"; then |
20555 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20556 | else |
ae1daed0 | 20557 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20558 | #define wxUSE_DIRDLG 1 |
20559 | EOF | |
20560 | ||
1e6feb95 VZ |
20561 | fi |
20562 | fi | |
20563 | ||
20564 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20565 | cat >> confdefs.h <<\EOF | |
20566 | #define wxUSE_MSGDLG 1 | |
20567 | EOF | |
20568 | ||
20569 | fi | |
20570 | ||
20571 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20572 | cat >> confdefs.h <<\EOF | |
20573 | #define wxUSE_NUMBERDLG 1 | |
20574 | EOF | |
20575 | ||
20576 | fi | |
20577 | ||
20578 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20579 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20580 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20581 | else | |
20582 | cat >> confdefs.h <<\EOF | |
20583 | #define wxUSE_PROGRESSDLG 1 | |
20584 | EOF | |
20585 | ||
20586 | fi | |
20587 | fi | |
20588 | ||
cbca9943 VZ |
20589 | if test "$wxUSE_SPLASH" = "yes"; then |
20590 | cat >> confdefs.h <<\EOF | |
20591 | #define wxUSE_SPLASH 1 | |
20592 | EOF | |
20593 | ||
20594 | fi | |
20595 | ||
1e6feb95 VZ |
20596 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20597 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20598 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20599 | else | |
20600 | cat >> confdefs.h <<\EOF | |
20601 | #define wxUSE_STARTUP_TIPS 1 | |
20602 | EOF | |
20603 | ||
20604 | fi | |
20605 | fi | |
20606 | ||
20607 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20608 | cat >> confdefs.h <<\EOF | |
20609 | #define wxUSE_TEXTDLG 1 | |
20610 | EOF | |
20611 | ||
20612 | fi | |
20613 | ||
b1f5d087 VZ |
20614 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20615 | cat >> confdefs.h <<\EOF | |
20616 | #define wxUSE_WIZARDDLG 1 | |
20617 | EOF | |
20618 | ||
20619 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20620 | fi | |
20621 | ||
1e6feb95 | 20622 | |
698dcdb6 VZ |
20623 | if test "$cross_compiling" = "yes"; then |
20624 | OSINFO="\"$host\"" | |
20625 | else | |
20626 | OSINFO=`uname -s -r -m` | |
20627 | OSINFO="\"$OSINFO\"" | |
20628 | fi | |
20629 | ||
20630 | cat >> confdefs.h <<EOF | |
20631 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20632 | EOF | |
20633 | ||
20634 | ||
20635 | ||
06dda230 VZ |
20636 | if test "x$prefix" != "xNONE"; then |
20637 | wxPREFIX=$prefix | |
20638 | else | |
20639 | wxPREFIX=$ac_default_prefix | |
20640 | fi | |
20641 | ||
7e67ed0d | 20642 | cat >> confdefs.h <<EOF |
06dda230 | 20643 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20644 | EOF |
20645 | ||
20646 | ||
20647 | ||
698dcdb6 | 20648 | |
3a922bb4 | 20649 | |
f11bdd03 | 20650 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20651 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20652 | fi |
3a922bb4 | 20653 | |
3d63bc3a | 20654 | |
009fead0 | 20655 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20656 | |
698dcdb6 | 20657 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20658 | |
cb61c62d | 20659 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20660 | |
20661 | ||
867a54b6 | 20662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20663 | drawing dynamic erase event exec font image \ |
20664 | minimal richedit rotate widgets" | |
20665 | ||
3a922bb4 RL |
20666 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20667 | else | |
20668 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20669 | fi |
20670 | ||
698dcdb6 | 20671 | |
57973b9c VZ |
20672 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ |
20673 | -I\${top_srcdir}/include \ | |
20674 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20675 | $TOOLKIT_INCLUDE" | |
698dcdb6 | 20676 | |
63e7762e | 20677 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20678 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20679 | else |
20680 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20681 | fi | |
20682 | ||
20683 | if test "$GXX" = yes ; then | |
20684 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20685 | |
20686 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20687 | CFLAGS="-MMD $CFLAGS" | |
20688 | CXXFLAGS="-MMD $CXXFLAGS" | |
20689 | fi | |
20690 | fi | |
20691 | ||
1725144d | 20692 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20693 | |
20694 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20695 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
fe5a9cab | 20696 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
698dcdb6 | 20697 | |
fe5a9cab | 20698 | LDFLAGS="$LDFLAGS $PROFILE" |
698dcdb6 | 20699 | |
698dcdb6 VZ |
20700 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20701 | ||
20702 | ||
20703 | ||
20704 | ||
20705 | ||
20706 | ||
20707 | ||
20708 | ||
20709 | ||
20710 | ||
20711 | ||
20712 | ||
20713 | ||
20714 | ||
20715 | ||
20716 | ||
20717 | ||
20718 | ||
20719 | ||
20720 | ||
20721 | ||
20722 | ||
20723 | ||
20724 | ||
20725 | ||
20726 | ||
20727 | ||
20728 | ||
20729 | ||
20730 | ||
20731 | ||
20732 | ||
20733 | ||
20734 | ||
20735 | ||
20736 | ||
20737 | ||
20738 | ||
20739 | ||
20740 | ||
20741 | ||
20742 | ||
20743 | ||
20744 | ||
20745 | ||
20746 | ||
20747 | ||
20748 | ||
20749 | ||
20750 | ||
20751 | ||
20752 | ||
20753 | ||
20754 | ||
20755 | ||
20756 | ||
20757 | ||
20758 | ||
20759 | ||
20760 | ||
20761 | ||
20762 | ||
20763 | ||
20764 | ||
20765 | ||
20766 | ||
20767 | ||
32832908 | 20768 | |
2f51a9ec GD |
20769 | |
20770 | ||
20771 | ||
20772 | ||
f6bcfd97 | 20773 | |
dad6c0ea | 20774 | |
caa2c79b | 20775 | |
3711412e | 20776 | |
1e6feb95 VZ |
20777 | |
20778 | ||
885d4bf5 VS |
20779 | |
20780 | ||
20781 | ||
20782 | ||
9b695262 VZ |
20783 | |
20784 | ||
62d0491b | 20785 | |
ef7f2189 | 20786 | |
40f7145c | 20787 | |
10f2d63a VZ |
20788 | |
20789 | ||
698dcdb6 | 20790 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
986ecc86 | 20791 | echo "configure:20792: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20792 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20793 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20795 | else |
698dcdb6 | 20796 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20797 | all: |
20798 | @echo 'ac_maketemp="${MAKE}"' | |
20799 | EOF | |
20800 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20801 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20802 | if test -n "$ac_maketemp"; then |
20803 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20804 | else | |
20805 | eval ac_cv_prog_make_${ac_make}_set=no | |
20806 | fi | |
698dcdb6 | 20807 | rm -f conftestmake |
10f2d63a VZ |
20808 | fi |
20809 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20810 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20811 | SET_MAKE= |
20812 | else | |
698dcdb6 | 20813 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20814 | SET_MAKE="MAKE=${MAKE-make}" |
20815 | fi | |
20816 | ||
698dcdb6 | 20817 | |
3a922bb4 RL |
20818 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20819 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20820 | fi |
665bbe97 | 20821 | |
698dcdb6 | 20822 | |
10f2d63a | 20823 | |
57973b9c VZ |
20824 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20825 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20826 | wx_cv_path_ifs=$PATH_IFS | |
20827 | wx_cv_program_ext=$PROGRAM_EXT | |
20828 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20829 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20830 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20831 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20832 | wx_cv_path_ifs wx_cv_program_ext \ | |
20833 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20834 | ||
20835 | subdirs="demos samples utils contrib" | |
2224580a | 20836 | |
10f2d63a | 20837 | |
698dcdb6 VZ |
20838 | trap '' 1 2 15 |
20839 | cat > confcache <<\EOF | |
10f2d63a VZ |
20840 | # This file is a shell script that caches the results of configure |
20841 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20842 | # scripts and configure runs. It is not useful on other systems. |
20843 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20844 | # |
698dcdb6 VZ |
20845 | # By default, configure uses ./config.cache as the cache file, |
20846 | # creating it if it does not exist already. You can give configure | |
20847 | # the --cache-file=FILE option to use a different cache file; that is | |
20848 | # what configure does when it calls configure scripts in | |
20849 | # subdirectories, so they share the cache. | |
20850 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20851 | # config.status only pays attention to the cache file if you give it the | |
20852 | # --recheck option to rerun configure. | |
10f2d63a | 20853 | # |
698dcdb6 | 20854 | EOF |
10f2d63a VZ |
20855 | # The following way of writing the cache mishandles newlines in values, |
20856 | # but we know of no workaround that is simple, portable, and efficient. | |
20857 | # So, don't put newlines in cache variables' values. | |
20858 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20859 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20860 | (set) 2>&1 | |
20861 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20862 | *ac_space=\ *) | |
20863 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20864 | # turns \\\\ into \\, and sed turns \\ into \). | |
20865 | sed -n \ | |
20866 | -e "s/'/'\\\\''/g" \ | |
20867 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20868 | ;; | |
20869 | *) | |
20870 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20871 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20872 | ;; | |
20873 | esac >> confcache | |
20874 | if cmp -s $cache_file confcache; then | |
20875 | : | |
20876 | else | |
10f2d63a | 20877 | if test -w $cache_file; then |
698dcdb6 VZ |
20878 | echo "updating cache $cache_file" |
20879 | cat confcache > $cache_file | |
10f2d63a VZ |
20880 | else |
20881 | echo "not updating unwritable cache $cache_file" | |
20882 | fi | |
20883 | fi | |
20884 | rm -f confcache | |
20885 | ||
698dcdb6 VZ |
20886 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20887 | ||
10f2d63a VZ |
20888 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20889 | # Let make expand exec_prefix. | |
20890 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20891 | ||
698dcdb6 VZ |
20892 | # Any assignment to VPATH causes Sun make to only execute |
20893 | # the first set of double-colon rules, so remove it if not needed. | |
20894 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20895 | if test "x$srcdir" = x.; then |
698dcdb6 | 20896 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20897 | fi |
20898 | ||
698dcdb6 VZ |
20899 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20900 | ||
10f2d63a VZ |
20901 | DEFS=-DHAVE_CONFIG_H |
20902 | ||
698dcdb6 | 20903 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20904 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20905 | |
20906 | echo creating $CONFIG_STATUS | |
20907 | rm -f $CONFIG_STATUS | |
20908 | cat > $CONFIG_STATUS <<EOF | |
20909 | #! /bin/sh | |
10f2d63a VZ |
20910 | # Generated automatically by configure. |
20911 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20912 | # This directory was configured as follows, |
20913 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20914 | # | |
20915 | # $0 $ac_configure_args | |
20916 | # | |
10f2d63a | 20917 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20918 | # configure, is in ./config.log if it exists. |
1e487827 | 20919 | |
698dcdb6 VZ |
20920 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20921 | for ac_option | |
10f2d63a | 20922 | do |
698dcdb6 | 20923 | case "\$ac_option" in |
10f2d63a | 20924 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20925 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20926 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20927 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20928 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20929 | exit 0 ;; | |
20930 | -help | --help | --hel | --he | --h) | |
20931 | echo "\$ac_cs_usage"; exit 0 ;; | |
20932 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20933 | esac |
20934 | done | |
20935 | ||
698dcdb6 VZ |
20936 | ac_given_srcdir=$srcdir |
20937 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20938 | |
698dcdb6 VZ |
20939 | trap 'rm -fr `echo " |
20940 | wx-config | |
20941 | src/make.env | |
20942 | src/makeprog.env | |
20943 | src/makelib.env | |
20944 | Makefile | |
20945 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20946 | EOF |
698dcdb6 | 20947 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20948 | |
698dcdb6 VZ |
20949 | # Protect against being on the right side of a sed subst in config.status. |
20950 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20951 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20952 | $ac_vpsub | |
20953 | $extrasub | |
20954 | s%@SHELL@%$SHELL%g | |
20955 | s%@CFLAGS@%$CFLAGS%g | |
20956 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20957 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20958 | s%@FFLAGS@%$FFLAGS%g | |
20959 | s%@DEFS@%$DEFS%g | |
20960 | s%@LDFLAGS@%$LDFLAGS%g | |
20961 | s%@LIBS@%$LIBS%g | |
20962 | s%@exec_prefix@%$exec_prefix%g | |
20963 | s%@prefix@%$prefix%g | |
20964 | s%@program_transform_name@%$program_transform_name%g | |
20965 | s%@bindir@%$bindir%g | |
20966 | s%@sbindir@%$sbindir%g | |
20967 | s%@libexecdir@%$libexecdir%g | |
20968 | s%@datadir@%$datadir%g | |
20969 | s%@sysconfdir@%$sysconfdir%g | |
20970 | s%@sharedstatedir@%$sharedstatedir%g | |
20971 | s%@localstatedir@%$localstatedir%g | |
20972 | s%@libdir@%$libdir%g | |
20973 | s%@includedir@%$includedir%g | |
20974 | s%@oldincludedir@%$oldincludedir%g | |
20975 | s%@infodir@%$infodir%g | |
20976 | s%@mandir@%$mandir%g | |
20977 | s%@host@%$host%g | |
20978 | s%@host_alias@%$host_alias%g | |
20979 | s%@host_cpu@%$host_cpu%g | |
20980 | s%@host_vendor@%$host_vendor%g | |
20981 | s%@host_os@%$host_os%g | |
20982 | s%@target@%$target%g | |
20983 | s%@target_alias@%$target_alias%g | |
20984 | s%@target_cpu@%$target_cpu%g | |
20985 | s%@target_vendor@%$target_vendor%g | |
20986 | s%@target_os@%$target_os%g | |
20987 | s%@build@%$build%g | |
20988 | s%@build_alias@%$build_alias%g | |
20989 | s%@build_cpu@%$build_cpu%g | |
20990 | s%@build_vendor@%$build_vendor%g | |
20991 | s%@build_os@%$build_os%g | |
20992 | s%@CC@%$CC%g | |
20993 | s%@CPP@%$CPP%g | |
20994 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20995 | s%@RANLIB@%$RANLIB%g |
20996 | s%@AR@%$AR%g | |
20997 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20998 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20999 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 21000 | s%@STRIP@%$STRIP%g |
613d0995 | 21001 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
21002 | s%@YACC@%$YACC%g |
21003 | s%@LEX@%$LEX%g | |
21004 | s%@LEXLIB@%$LEXLIB%g | |
21005 | s%@LN_S@%$LN_S%g | |
90dd450c | 21006 | s%@CXXCPP@%$CXXCPP%g |
9e691f46 | 21007 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
21008 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
21009 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 21010 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
21011 | s%@X_CFLAGS@%$X_CFLAGS%g |
21012 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21013 | s%@X_LIBS@%$X_LIBS%g | |
21014 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
321d2b14 | 21015 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
3a922bb4 | 21016 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 21017 | s%@DEREZ@%$DEREZ%g |
b040e242 | 21018 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
21019 | s%@LEX_STEM@%$LEX_STEM%g |
21020 | s%@PATH_IFS@%$PATH_IFS%g | |
21021 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21022 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21023 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
21024 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
21025 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 21026 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
21027 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
21028 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21029 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 21030 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
21031 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
21032 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
21033 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
21034 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21035 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
21036 | s%@WX_ALL@%$WX_ALL%g |
21037 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21038 | s%@SHARED_LD@%$SHARED_LD%g | |
21039 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
21040 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
21041 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
21042 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
21043 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
21044 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
21045 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21046 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21047 | s%@USE_GUI@%$USE_GUI%g | |
21048 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21049 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 21050 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 21051 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
21052 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
21053 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 21054 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
21055 | s%@cross_compiling@%$cross_compiling%g |
21056 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21057 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
21058 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
21059 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
21060 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
21061 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
21062 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
21063 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
21064 | s%@GUIDIST@%$GUIDIST%g |
21065 | s%@PORT_FILES@%$PORT_FILES%g | |
21066 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 21067 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 21068 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
40f7145c | 21069 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
698dcdb6 | 21070 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 21071 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 21072 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 21073 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 21074 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
e95edd8d GD |
21075 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g |
21076 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
ef7f2189 | 21077 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
21078 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
21079 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 21080 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
21081 | s%@DLLTOOL@%$DLLTOOL%g |
21082 | s%@AS@%$AS%g | |
21083 | s%@NM@%$NM%g | |
21084 | s%@LD@%$LD%g | |
21085 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 21086 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
21087 | s%@SET_MAKE@%$SET_MAKE%g |
21088 | s%@subdirs@%$subdirs%g | |
1e487827 | 21089 | |
1e487827 | 21090 | CEOF |
1e487827 VS |
21091 | EOF |
21092 | ||
698dcdb6 VZ |
21093 | cat >> $CONFIG_STATUS <<\EOF |
21094 | ||
21095 | # Split the substitutions into bite-sized pieces for seds with | |
21096 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21097 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21098 | ac_file=1 # Number of current file. | |
21099 | ac_beg=1 # First line for current file. | |
21100 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21101 | ac_more_lines=: | |
21102 | ac_sed_cmds="" | |
21103 | while $ac_more_lines; do | |
21104 | if test $ac_beg -gt 1; then | |
21105 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21106 | else | |
21107 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21108 | fi | |
21109 | if test ! -s conftest.s$ac_file; then | |
21110 | ac_more_lines=false | |
21111 | rm -f conftest.s$ac_file | |
21112 | else | |
21113 | if test -z "$ac_sed_cmds"; then | |
21114 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 21115 | else |
698dcdb6 | 21116 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 21117 | fi |
698dcdb6 VZ |
21118 | ac_file=`expr $ac_file + 1` |
21119 | ac_beg=$ac_end | |
21120 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21121 | fi |
698dcdb6 VZ |
21122 | done |
21123 | if test -z "$ac_sed_cmds"; then | |
21124 | ac_sed_cmds=cat | |
21125 | fi | |
21126 | EOF | |
10f2d63a | 21127 | |
698dcdb6 VZ |
21128 | cat >> $CONFIG_STATUS <<EOF |
21129 | ||
21130 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
21131 | src/make.env | |
21132 | src/makeprog.env | |
21133 | src/makelib.env | |
21134 | Makefile | |
21135 | "} | |
10f2d63a | 21136 | EOF |
698dcdb6 VZ |
21137 | cat >> $CONFIG_STATUS <<\EOF |
21138 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21139 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21140 | case "$ac_file" in |
21141 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21142 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21143 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21144 | esac |
21145 | ||
698dcdb6 | 21146 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 21147 | |
698dcdb6 VZ |
21148 | # Remove last slash and all that follows it. Not all systems have dirname. |
21149 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21150 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21151 | # The file is in a subdirectory. | |
21152 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21153 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21154 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 21155 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21156 | else |
21157 | ac_dir_suffix= ac_dots= | |
21158 | fi | |
21159 | ||
698dcdb6 VZ |
21160 | case "$ac_given_srcdir" in |
21161 | .) srcdir=. | |
21162 | if test -z "$ac_dots"; then top_srcdir=. | |
21163 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21164 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21165 | *) # Relative path. |
698dcdb6 VZ |
21166 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21167 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21168 | esac |
21169 | ||
698dcdb6 VZ |
21170 | case "$ac_given_INSTALL" in |
21171 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21172 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21173 | esac |
21174 | ||
698dcdb6 VZ |
21175 | echo creating "$ac_file" |
21176 | rm -f "$ac_file" | |
21177 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21178 | case "$ac_file" in | |
21179 | *Makefile*) ac_comsub="1i\\ | |
21180 | # $configure_input" ;; | |
21181 | *) ac_comsub= ;; | |
21182 | esac | |
10f2d63a | 21183 | |
698dcdb6 VZ |
21184 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21185 | sed -e "$ac_comsub | |
21186 | s%@configure_input@%$configure_input%g | |
21187 | s%@srcdir@%$srcdir%g | |
21188 | s%@top_srcdir@%$top_srcdir%g | |
21189 | s%@INSTALL@%$INSTALL%g | |
21190 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21191 | fi; done | |
21192 | rm -f conftest.s* | |
10f2d63a VZ |
21193 | |
21194 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21195 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21196 | # | |
21197 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
21198 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21199 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21200 | ac_dC='\3' | |
21201 | ac_dD='%g' | |
21202 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21203 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21204 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21205 | ac_uC=' ' |
698dcdb6 VZ |
21206 | ac_uD='\4%g' |
21207 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21208 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21209 | ac_eB='$%\1#\2define\3' | |
21210 | ac_eC=' ' | |
21211 | ac_eD='%g' | |
10f2d63a | 21212 | |
698dcdb6 VZ |
21213 | if test "${CONFIG_HEADERS+set}" != set; then |
21214 | EOF | |
21215 | cat >> $CONFIG_STATUS <<EOF | |
21216 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21217 | EOF | |
21218 | cat >> $CONFIG_STATUS <<\EOF | |
21219 | fi | |
21220 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21221 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21222 | case "$ac_file" in |
21223 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21224 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21225 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21226 | esac |
21227 | ||
698dcdb6 VZ |
21228 | echo creating $ac_file |
21229 | ||
21230 | rm -f conftest.frag conftest.in conftest.out | |
21231 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21232 | cat $ac_file_inputs > conftest.in | |
21233 | ||
21234 | EOF | |
21235 | ||
21236 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21237 | # the proper values into config.h.in to produce config.h. And first: | |
21238 | # Protect against being on the right side of a sed subst in config.status. | |
21239 | # Protect against being in an unquoted here document in config.status. | |
21240 | rm -f conftest.vals | |
21241 | cat > conftest.hdr <<\EOF | |
21242 | s/[\\&%]/\\&/g | |
21243 | s%[\\$`]%\\&%g | |
21244 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21245 | s%ac_d%ac_u%gp | |
21246 | s%ac_u%ac_e%gp | |
21247 | EOF | |
21248 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21249 | rm -f conftest.hdr | |
10f2d63a VZ |
21250 | |
21251 | # This sed command replaces #undef with comments. This is necessary, for | |
21252 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21253 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
21254 | cat >> conftest.vals <<\EOF |
21255 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21256 | EOF |
21257 | ||
698dcdb6 VZ |
21258 | # Break up conftest.vals because some shells have a limit on |
21259 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21260 | |
21261 | rm -f conftest.tail | |
698dcdb6 | 21262 | while : |
10f2d63a | 21263 | do |
698dcdb6 VZ |
21264 | ac_lines=`grep -c . conftest.vals` |
21265 | # grep -c gives empty output for an empty file on some AIX systems. | |
21266 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21267 | # Write a limited-size here document to conftest.frag. | |
21268 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21269 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21270 | echo 'CEOF |
698dcdb6 VZ |
21271 | sed -f conftest.frag conftest.in > conftest.out |
21272 | rm -f conftest.in | |
21273 | mv conftest.out conftest.in | |
21274 | ' >> $CONFIG_STATUS | |
21275 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21276 | rm -f conftest.vals | |
21277 | mv conftest.tail conftest.vals | |
10f2d63a | 21278 | done |
698dcdb6 VZ |
21279 | rm -f conftest.vals |
21280 | ||
21281 | cat >> $CONFIG_STATUS <<\EOF | |
21282 | rm -f conftest.frag conftest.h | |
21283 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21284 | cat conftest.in >> conftest.h | |
21285 | rm -f conftest.in | |
21286 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21287 | echo "$ac_file is unchanged" | |
21288 | rm -f conftest.h | |
10f2d63a | 21289 | else |
698dcdb6 VZ |
21290 | # Remove last slash and all that follows it. Not all systems have dirname. |
21291 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21292 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21293 | # The file is in a subdirectory. |
21294 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21295 | fi |
698dcdb6 VZ |
21296 | rm -f $ac_file |
21297 | mv conftest.h $ac_file | |
10f2d63a | 21298 | fi |
698dcdb6 VZ |
21299 | fi; done |
21300 | ||
10f2d63a | 21301 | EOF |
698dcdb6 | 21302 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21303 | |
3a922bb4 | 21304 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21305 | LN_S="${LN_S}" |
21306 | ||
21307 | ||
21308 | EOF | |
21309 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21310 | |
652d930d | 21311 | if test ! -h wx-config; then |
991a5759 | 21312 | chmod +x wx-config |
3a922bb4 RL |
21313 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21314 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21315 | fi |
665bbe97 | 21316 | |
00cf1208 RR |
21317 | if test ! -d lib; then |
21318 | mkdir lib | |
21319 | fi | |
21320 | if test ! -d lib/wx; then | |
21321 | mkdir lib/wx | |
21322 | fi | |
21323 | if test ! -d lib/wx/include; then | |
21324 | mkdir lib/wx/include | |
21325 | fi | |
3a922bb4 RL |
21326 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21327 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21328 | fi |
3a922bb4 RL |
21329 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21330 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21331 | fi |
21332 | if test -f setup.h; then | |
3a922bb4 | 21333 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21334 | fi |
698dcdb6 VZ |
21335 | |
21336 | exit 0 | |
10f2d63a VZ |
21337 | EOF |
21338 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21339 | rm -fr confdefs* $ac_clean_files |
21340 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21341 | |
2224580a VZ |
21342 | if test "$no_recursion" != yes; then |
21343 | ||
21344 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21345 | ac_sub_configure_args= | |
21346 | ac_prev= | |
21347 | for ac_arg in $ac_configure_args; do | |
21348 | if test -n "$ac_prev"; then | |
21349 | ac_prev= | |
21350 | continue | |
21351 | fi | |
698dcdb6 | 21352 | case "$ac_arg" in |
2224580a VZ |
21353 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21354 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21355 | ac_prev=cache_file ;; | |
21356 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21357 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21358 | ;; |
21359 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21360 | ac_prev=srcdir ;; | |
21361 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21362 | ;; | |
21363 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21364 | esac | |
21365 | done | |
21366 | ||
8f4a9a10 | 21367 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21368 | |
21369 | # Do not complain, so a configure script can configure whichever | |
21370 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21371 | if test ! -d $srcdir/$ac_config_dir; then |
21372 | continue | |
21373 | fi | |
21374 | ||
21375 | echo configuring in $ac_config_dir | |
2224580a | 21376 | |
698dcdb6 | 21377 | case "$srcdir" in |
2224580a VZ |
21378 | .) ;; |
21379 | *) | |
698dcdb6 VZ |
21380 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21381 | else | |
21382 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21383 | fi | |
21384 | ;; | |
2224580a VZ |
21385 | esac |
21386 | ||
21387 | ac_popdir=`pwd` | |
698dcdb6 | 21388 | cd $ac_config_dir |
2224580a | 21389 | |
698dcdb6 VZ |
21390 | # A "../" for each directory in /$ac_config_dir. |
21391 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21392 | |
698dcdb6 | 21393 | case "$srcdir" in |
2224580a VZ |
21394 | .) # No --srcdir option. We are building in place. |
21395 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21396 | /*) # Absolute path. |
21397 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21398 | *) # Relative path. |
698dcdb6 | 21399 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21400 | esac |
21401 | ||
21402 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21403 | if test -f $ac_sub_srcdir/configure; then |
21404 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21405 | elif test -f $ac_sub_srcdir/configure.in; then |
21406 | ac_sub_configure=$ac_configure | |
21407 | else | |
698dcdb6 | 21408 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21409 | ac_sub_configure= |
21410 | fi | |
21411 | ||
21412 | # The recursion is here. | |
21413 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21414 | |
2224580a | 21415 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21416 | case "$cache_file" in |
21417 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21418 | *) # Relative path. |
698dcdb6 | 21419 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21420 | esac |
698dcdb6 VZ |
21421 | case "$ac_given_INSTALL" in |
21422 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21423 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21424 | esac | |
2224580a | 21425 | |
698dcdb6 | 21426 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21427 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21428 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21429 | then : | |
21430 | else | |
21431 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21432 | fi | |
2224580a VZ |
21433 | fi |
21434 | ||
21435 | cd $ac_popdir | |
21436 | done | |
21437 | fi | |
21438 | ||
698dcdb6 | 21439 |