]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
b040e242 VS |
41 | |
42 | ||
43 | ||
44 | ||
45 | #serial AM2 | |
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | # Configure paths for GTK+ | |
55 | # Owen Taylor 97-11-3 | |
698dcdb6 | 56 | |
698dcdb6 VZ |
57 | |
58 | ||
59 | # Guess values for system-dependent variables and create Makefiles. | |
60 | # Generated automatically using autoconf version 2.13 | |
61 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
62 | # | |
63 | # This configure script is free software; the Free Software Foundation | |
64 | # gives unlimited permission to copy, distribute and modify it. | |
65 | ||
66 | # Defaults: | |
67 | ac_help= | |
68 | ac_default_prefix=/usr/local | |
69 | # Any additions from configure.in: | |
70 | ac_help="$ac_help | |
8168de4c | 71 | --enable-gui use GUI classes" |
1e6feb95 | 72 | ac_help="$ac_help |
8168de4c | 73 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
74 | ac_help="$ac_help |
75 | --with-gtk use GTK+" | |
76 | ac_help="$ac_help | |
77 | --with-motif use Motif/Lesstif" | |
78 | ac_help="$ac_help | |
79 | --with-mac use Mac OS X" | |
80 | ac_help="$ac_help | |
81 | --with-wine use WINE" | |
82 | ac_help="$ac_help | |
77e13408 | 83 | --with-msw use MS-Windows" |
698dcdb6 VZ |
84 | ac_help="$ac_help |
85 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 86 | ac_help="$ac_help |
b3e8d00a | 87 | --with-mgl use SciTech MGL" |
1725144d RR |
88 | ac_help="$ac_help |
89 | --with-microwin use MicroWindows" | |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 102 | ac_help="$ac_help |
d0e9b150 | 103 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
104 | ac_help="$ac_help |
105 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-shared create shared library code" |
698dcdb6 | 112 | ac_help="$ac_help |
3a922bb4 | 113 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-optimise create optimised code" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
118 | ac_help="$ac_help |
119 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-debug_info create code with debugging information" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-profile create code with profiling information" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 134 | ac_help="$ac_help |
b3e8d00a | 135 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-no_deps create code without dependency information" |
54276ccf | 140 | ac_help="$ac_help |
b3e8d00a | 141 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 142 | ac_help="$ac_help |
b3e8d00a | 143 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-intl use internationalization system" |
698dcdb6 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
148 | ac_help="$ac_help |
149 | --enable-protocols use wxProtocol and derived classes" | |
150 | ac_help="$ac_help | |
151 | --enable-ftp use wxFTP (requires wxProtocol" | |
152 | ac_help="$ac_help | |
153 | --enable-http use wxHTTP (requires wxProtocol" | |
154 | ac_help="$ac_help | |
155 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-sockets use socket/network classes" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-datetime use wxDateTime class" |
1e6feb95 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-dialupman use dialup network classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-timer use wxTimer class" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-wave use wxWave class" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-fraction use wxFraction class" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
180 | ac_help="$ac_help |
181 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-longlong use wxLongLong class" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-geometry use geometry class" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-log use logging system" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-streams use wxStream etc classes" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-file use wxFile classes" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-ffile use wxFFile classes" |
1e6feb95 | 194 | ac_help="$ac_help |
a3a584a7 VZ |
195 | --enable-textbuf use wxTextBuffer class" |
196 | ac_help="$ac_help | |
197 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
202 | ac_help="$ac_help |
203 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 220 | ac_help="$ac_help |
69d27ff7 | 221 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 222 | ac_help="$ac_help |
b3e8d00a | 223 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
224 | ac_help="$ac_help |
225 | --enable-url use wxURL class" | |
226 | ac_help="$ac_help | |
227 | --enable-protocol use wxProtocol class" | |
228 | ac_help="$ac_help | |
229 | --enable-protocol-http HTTP support in wxProtocol" | |
230 | ac_help="$ac_help | |
231 | --enable-protocol-ftp FTP support in wxProtocol" | |
232 | ac_help="$ac_help | |
233 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-threads use threads" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-docview use document view architecture" |
698dcdb6 | 238 | ac_help="$ac_help |
3379ed37 | 239 | --enable-help use help subsystem" |
29fd3c0c VS |
240 | ac_help="$ac_help |
241 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
242 | ac_help="$ac_help |
243 | --enable-html use wxHTML sub-library" | |
244 | ac_help="$ac_help | |
245 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-constraints use layout-constraints system" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-printarch use printing architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-loggui use standard GUI logger" |
1e6feb95 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
256 | ac_help="$ac_help |
257 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-prologio use Prolog IO library" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-resources use wxWindows resources" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-metafile use win32 metafiles" |
698dcdb6 | 272 | ac_help="$ac_help |
24176f2c | 273 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-controls use all usual controls" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-accel use accelerators" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-button use wxButton class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-caret use wxCaret class" |
1e6feb95 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-choice use wxChoice class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-gauge use wxGauge class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-grid use wxGrid class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-imaglist use wxImageList class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-listbox use wxListBox class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-notebook use wxNotebook class" |
24176f2c GD |
308 | ac_help="$ac_help |
309 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-sash use wxSashWindow class" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-slider use wxSlider class" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-statline use wxStaticLine class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-stattext use wxStaticText class" |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
350 | ac_help="$ac_help |
351 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
352 | ac_help="$ac_help |
353 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 354 | ac_help="$ac_help |
b3e8d00a | 355 | --enable-commondlg use all common dialogs" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
362 | ac_help="$ac_help |
363 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
372 | ac_help="$ac_help |
373 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 374 | ac_help="$ac_help |
8168de4c | 375 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-tipdlg use startup tips" |
698dcdb6 | 378 | ac_help="$ac_help |
8168de4c | 379 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
380 | ac_help="$ac_help |
381 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 384 | ac_help="$ac_help |
8168de4c | 385 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-splines use spline drawing code" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 392 | ac_help="$ac_help |
8168de4c | 393 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 394 | ac_help="$ac_help |
b3e8d00a | 395 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 396 | ac_help="$ac_help |
8168de4c | 397 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
398 | ac_help="$ac_help |
399 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
400 | ac_help="$ac_help |
401 | --enable-palette use wxPalette class" | |
1e6feb95 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-image use wxImage class" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 406 | ac_help="$ac_help |
8168de4c | 407 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
408 | ac_help="$ac_help |
409 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 410 | ac_help="$ac_help |
8168de4c | 411 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 412 | ac_help="$ac_help |
8168de4c | 413 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
414 | ac_help="$ac_help |
415 | --enable-icocur use Windows ICO and CUR formats" | |
698dcdb6 VZ |
416 | ac_help="$ac_help |
417 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
418 | ac_help="$ac_help | |
419 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
420 | ac_help="$ac_help | |
421 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
422 | ac_help="$ac_help |
423 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
424 | ac_help="$ac_help | |
425 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
426 | ac_help="$ac_help | |
427 | --disable-gtktest Do not try to compile and run a test GTK program" | |
428 | ac_help="$ac_help | |
429 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
430 | ac_help="$ac_help | |
431 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
432 | ac_help="$ac_help | |
433 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
434 | ac_help="$ac_help |
435 | --with-x use the X Window System" | |
b040e242 VS |
436 | ac_help="$ac_help |
437 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
438 | |
439 | # Initialize some variables set by options. | |
440 | # The variables have the same names as the options, with | |
441 | # dashes changed to underlines. | |
698dcdb6 VZ |
442 | build=NONE |
443 | cache_file=./config.cache | |
10f2d63a | 444 | exec_prefix=NONE |
698dcdb6 | 445 | host=NONE |
10f2d63a | 446 | no_create= |
698dcdb6 | 447 | nonopt=NONE |
10f2d63a VZ |
448 | no_recursion= |
449 | prefix=NONE | |
450 | program_prefix=NONE | |
451 | program_suffix=NONE | |
452 | program_transform_name=s,x,x, | |
453 | silent= | |
454 | site= | |
455 | srcdir= | |
698dcdb6 | 456 | target=NONE |
10f2d63a VZ |
457 | verbose= |
458 | x_includes=NONE | |
459 | x_libraries=NONE | |
460 | bindir='${exec_prefix}/bin' | |
461 | sbindir='${exec_prefix}/sbin' | |
462 | libexecdir='${exec_prefix}/libexec' | |
463 | datadir='${prefix}/share' | |
464 | sysconfdir='${prefix}/etc' | |
465 | sharedstatedir='${prefix}/com' | |
466 | localstatedir='${prefix}/var' | |
467 | libdir='${exec_prefix}/lib' | |
468 | includedir='${prefix}/include' | |
469 | oldincludedir='/usr/include' | |
470 | infodir='${prefix}/info' | |
471 | mandir='${prefix}/man' | |
472 | ||
698dcdb6 VZ |
473 | # Initialize some other variables. |
474 | subdirs= | |
475 | MFLAGS= MAKEFLAGS= | |
476 | SHELL=${CONFIG_SHELL-/bin/sh} | |
477 | # Maximum number of lines to put in a shell here document. | |
478 | ac_max_here_lines=12 | |
10f2d63a VZ |
479 | |
480 | ac_prev= | |
481 | for ac_option | |
482 | do | |
698dcdb6 | 483 | |
10f2d63a VZ |
484 | # If the previous option needs an argument, assign it. |
485 | if test -n "$ac_prev"; then | |
486 | eval "$ac_prev=\$ac_option" | |
487 | ac_prev= | |
488 | continue | |
489 | fi | |
490 | ||
698dcdb6 VZ |
491 | case "$ac_option" in |
492 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
493 | *) ac_optarg= ;; | |
494 | esac | |
10f2d63a VZ |
495 | |
496 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
497 | ||
698dcdb6 | 498 | case "$ac_option" in |
10f2d63a VZ |
499 | |
500 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
501 | ac_prev=bindir ;; | |
502 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 503 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
504 | |
505 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 506 | ac_prev=build ;; |
10f2d63a | 507 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 508 | build="$ac_optarg" ;; |
10f2d63a VZ |
509 | |
510 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
511 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
512 | ac_prev=cache_file ;; | |
513 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
514 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 515 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
516 | |
517 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
518 | ac_prev=datadir ;; | |
519 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
520 | | --da=*) | |
698dcdb6 | 521 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
522 | |
523 | -disable-* | --disable-*) | |
698dcdb6 | 524 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 525 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
526 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
527 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
528 | fi | |
529 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
530 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
531 | |
532 | -enable-* | --enable-*) | |
698dcdb6 | 533 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 534 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
535 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
536 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
537 | fi | |
538 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
539 | case "$ac_option" in | |
540 | *=*) ;; | |
10f2d63a VZ |
541 | *) ac_optarg=yes ;; |
542 | esac | |
698dcdb6 | 543 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
544 | |
545 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
546 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
547 | | --exec | --exe | --ex) | |
548 | ac_prev=exec_prefix ;; | |
549 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
550 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
551 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 552 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
553 | |
554 | -gas | --gas | --ga | --g) | |
555 | # Obsolete; use --with-gas. | |
556 | with_gas=yes ;; | |
557 | ||
698dcdb6 VZ |
558 | -help | --help | --hel | --he) |
559 | # Omit some internal or obsolete options to make the list less imposing. | |
560 | # This message is too long to be a string in the A/UX 3.1 sh. | |
561 | cat << EOF | |
562 | Usage: configure [options] [host] | |
563 | Options: [defaults in brackets after descriptions] | |
564 | Configuration: | |
565 | --cache-file=FILE cache test results in FILE | |
566 | --help print this message | |
567 | --no-create do not create output files | |
568 | --quiet, --silent do not print \`checking...' messages | |
569 | --version print the version of autoconf that created configure | |
570 | Directory and file names: | |
571 | --prefix=PREFIX install architecture-independent files in PREFIX | |
572 | [$ac_default_prefix] | |
573 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
574 | [same as prefix] | |
575 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
576 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
577 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
578 | --datadir=DIR read-only architecture-independent data in DIR | |
579 | [PREFIX/share] | |
580 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
581 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
582 | [PREFIX/com] | |
583 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
584 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
585 | --includedir=DIR C header files in DIR [PREFIX/include] | |
586 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
587 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
588 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
589 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
590 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
591 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
592 | --program-transform-name=PROGRAM | |
593 | run sed PROGRAM on installed program names | |
594 | EOF | |
595 | cat << EOF | |
596 | Host type: | |
597 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
598 | --host=HOST configure for HOST [guessed] | |
599 | --target=TARGET configure for TARGET [TARGET=HOST] | |
600 | Features and packages: | |
601 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
602 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
603 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
604 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
605 | --x-includes=DIR X include files are in DIR | |
606 | --x-libraries=DIR X library files are in DIR | |
607 | EOF | |
608 | if test -n "$ac_help"; then | |
609 | echo "--enable and --with options recognized:$ac_help" | |
610 | fi | |
611 | exit 0 ;; | |
10f2d63a VZ |
612 | |
613 | -host | --host | --hos | --ho) | |
698dcdb6 | 614 | ac_prev=host ;; |
10f2d63a | 615 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 616 | host="$ac_optarg" ;; |
10f2d63a VZ |
617 | |
618 | -includedir | --includedir | --includedi | --included | --include \ | |
619 | | --includ | --inclu | --incl | --inc) | |
620 | ac_prev=includedir ;; | |
621 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
622 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 623 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
624 | |
625 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
626 | ac_prev=infodir ;; | |
627 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 628 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
629 | |
630 | -libdir | --libdir | --libdi | --libd) | |
631 | ac_prev=libdir ;; | |
632 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 633 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
636 | | --libexe | --libex | --libe) | |
637 | ac_prev=libexecdir ;; | |
638 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
639 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 640 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
643 | | --localstate | --localstat | --localsta | --localst \ | |
644 | | --locals | --local | --loca | --loc | --lo) | |
645 | ac_prev=localstatedir ;; | |
646 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
647 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
648 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 649 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
652 | ac_prev=mandir ;; | |
653 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 654 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -nfp | --nfp | --nf) | |
657 | # Obsolete; use --without-fp. | |
658 | with_fp=no ;; | |
659 | ||
660 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
661 | | --no-cr | --no-c) | |
662 | no_create=yes ;; | |
663 | ||
664 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
665 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
666 | no_recursion=yes ;; | |
667 | ||
668 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
669 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
670 | | --oldin | --oldi | --old | --ol | --o) | |
671 | ac_prev=oldincludedir ;; | |
672 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
673 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
674 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 675 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
678 | ac_prev=prefix ;; | |
679 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 680 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
683 | | --program-pre | --program-pr | --program-p) | |
684 | ac_prev=program_prefix ;; | |
685 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
686 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 687 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
690 | | --program-suf | --program-su | --program-s) | |
691 | ac_prev=program_suffix ;; | |
692 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
693 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 694 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -program-transform-name | --program-transform-name \ | |
697 | | --program-transform-nam | --program-transform-na \ | |
698 | | --program-transform-n | --program-transform- \ | |
699 | | --program-transform | --program-transfor \ | |
700 | | --program-transfo | --program-transf \ | |
701 | | --program-trans | --program-tran \ | |
702 | | --progr-tra | --program-tr | --program-t) | |
703 | ac_prev=program_transform_name ;; | |
704 | -program-transform-name=* | --program-transform-name=* \ | |
705 | | --program-transform-nam=* | --program-transform-na=* \ | |
706 | | --program-transform-n=* | --program-transform-=* \ | |
707 | | --program-transform=* | --program-transfor=* \ | |
708 | | --program-transfo=* | --program-transf=* \ | |
709 | | --program-trans=* | --program-tran=* \ | |
710 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 711 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
714 | | -silent | --silent | --silen | --sile | --sil) | |
715 | silent=yes ;; | |
716 | ||
717 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
718 | ac_prev=sbindir ;; | |
719 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
720 | | --sbi=* | --sb=*) | |
698dcdb6 | 721 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
722 | |
723 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
724 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
725 | | --sharedst | --shareds | --shared | --share | --shar \ | |
726 | | --sha | --sh) | |
727 | ac_prev=sharedstatedir ;; | |
728 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
729 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
730 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
731 | | --sha=* | --sh=*) | |
698dcdb6 | 732 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
733 | |
734 | -site | --site | --sit) | |
735 | ac_prev=site ;; | |
736 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 737 | site="$ac_optarg" ;; |
10f2d63a VZ |
738 | |
739 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
740 | ac_prev=srcdir ;; | |
741 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 742 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
745 | | --syscon | --sysco | --sysc | --sys | --sy) | |
746 | ac_prev=sysconfdir ;; | |
747 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
748 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 749 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
750 | |
751 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 752 | ac_prev=target ;; |
10f2d63a | 753 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 754 | target="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
757 | verbose=yes ;; | |
758 | ||
698dcdb6 VZ |
759 | -version | --version | --versio | --versi | --vers) |
760 | echo "configure generated by autoconf version 2.13" | |
761 | exit 0 ;; | |
10f2d63a VZ |
762 | |
763 | -with-* | --with-*) | |
698dcdb6 | 764 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 765 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
766 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
767 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
768 | fi | |
10f2d63a | 769 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
770 | case "$ac_option" in |
771 | *=*) ;; | |
10f2d63a VZ |
772 | *) ac_optarg=yes ;; |
773 | esac | |
698dcdb6 | 774 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
775 | |
776 | -without-* | --without-*) | |
698dcdb6 | 777 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 778 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
779 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
780 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
781 | fi | |
782 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
783 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
784 | |
785 | --x) | |
786 | # Obsolete; use --with-x. | |
787 | with_x=yes ;; | |
788 | ||
789 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
790 | | --x-incl | --x-inc | --x-in | --x-i) | |
791 | ac_prev=x_includes ;; | |
792 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
793 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 794 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
795 | |
796 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
797 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
798 | ac_prev=x_libraries ;; | |
799 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
800 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 801 | x_libraries="$ac_optarg" ;; |
10f2d63a | 802 | |
698dcdb6 | 803 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
804 | ;; |
805 | ||
806 | *) | |
698dcdb6 VZ |
807 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
808 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
809 | fi | |
810 | if test "x$nonopt" != xNONE; then | |
811 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
812 | fi | |
813 | nonopt="$ac_option" | |
10f2d63a VZ |
814 | ;; |
815 | ||
816 | esac | |
817 | done | |
818 | ||
819 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
820 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
821 | fi | |
822 | ||
823 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
824 | ||
825 | # File descriptor usage: | |
826 | # 0 standard input | |
827 | # 1 file creation | |
828 | # 2 errors and warnings | |
829 | # 3 some systems may open it to /dev/tty | |
830 | # 4 used on the Kubota Titan | |
831 | # 6 checking for... messages and results | |
832 | # 5 compiler messages saved in config.log | |
833 | if test "$silent" = yes; then | |
834 | exec 6>/dev/null | |
835 | else | |
836 | exec 6>&1 | |
10f2d63a | 837 | fi |
698dcdb6 VZ |
838 | exec 5>./config.log |
839 | ||
840 | echo "\ | |
841 | This file contains any messages produced by compilers while | |
842 | running configure, to aid debugging if configure makes a mistake. | |
843 | " 1>&5 | |
10f2d63a | 844 | |
698dcdb6 VZ |
845 | # Strip out --no-create and --no-recursion so they do not pile up. |
846 | # Also quote any args containing shell metacharacters. | |
847 | ac_configure_args= | |
848 | for ac_arg | |
10f2d63a | 849 | do |
698dcdb6 VZ |
850 | case "$ac_arg" in |
851 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
852 | | --no-cr | --no-c) ;; | |
853 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
854 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
855 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
856 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
857 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
858 | esac |
859 | done | |
860 | ||
698dcdb6 VZ |
861 | # NLS nuisances. |
862 | # Only set these to C if already set. These must not be set unconditionally | |
863 | # because not all systems understand e.g. LANG=C (notably SCO). | |
864 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
865 | # Non-C LC_CTYPE values break the ctype check. | |
866 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
867 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
868 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
869 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 870 | |
698dcdb6 VZ |
871 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
872 | rm -rf conftest* confdefs.h | |
873 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
874 | echo > confdefs.h | |
10f2d63a | 875 | |
698dcdb6 VZ |
876 | # A filename unique to this package, relative to the directory that |
877 | # configure is in, which we can look for to find out if srcdir is correct. | |
878 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
879 | |
880 | # Find the source files, if location was not specified. | |
881 | if test -z "$srcdir"; then | |
882 | ac_srcdir_defaulted=yes | |
883 | # Try the directory containing this script, then its parent. | |
884 | ac_prog=$0 | |
698dcdb6 | 885 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
886 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
887 | srcdir=$ac_confdir | |
888 | if test ! -r $srcdir/$ac_unique_file; then | |
889 | srcdir=.. | |
890 | fi | |
891 | else | |
892 | ac_srcdir_defaulted=no | |
893 | fi | |
894 | if test ! -r $srcdir/$ac_unique_file; then | |
895 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 896 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 897 | else |
698dcdb6 | 898 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
899 | fi |
900 | fi | |
698dcdb6 | 901 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
902 | |
903 | # Prefer explicitly selected file to automatically selected ones. | |
904 | if test -z "$CONFIG_SITE"; then | |
905 | if test "x$prefix" != xNONE; then | |
906 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
907 | else | |
908 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
909 | fi | |
910 | fi | |
911 | for ac_site_file in $CONFIG_SITE; do | |
912 | if test -r "$ac_site_file"; then | |
698dcdb6 | 913 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
914 | . "$ac_site_file" |
915 | fi | |
916 | done | |
917 | ||
918 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
919 | echo "loading cache $cache_file" |
920 | . $cache_file | |
10f2d63a | 921 | else |
698dcdb6 VZ |
922 | echo "creating cache $cache_file" |
923 | > $cache_file | |
10f2d63a VZ |
924 | fi |
925 | ||
926 | ac_ext=c | |
698dcdb6 | 927 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 928 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
929 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
930 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
931 | cross_compiling=$ac_cv_prog_cc_cross | |
932 | ||
933 | ac_exeext= | |
934 | ac_objext=o | |
935 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
936 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
937 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
938 | ac_n= ac_c=' | |
939 | ' ac_t=' ' | |
940 | else | |
941 | ac_n=-n ac_c= ac_t= | |
942 | fi | |
10f2d63a | 943 | else |
698dcdb6 | 944 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 945 | fi |
698dcdb6 VZ |
946 | |
947 | ||
10f2d63a | 948 | |
7c66a493 VZ |
949 | ac_aux_dir= |
950 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
951 | if test -f $ac_dir/install-sh; then | |
952 | ac_aux_dir=$ac_dir | |
953 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
954 | break | |
955 | elif test -f $ac_dir/install.sh; then | |
956 | ac_aux_dir=$ac_dir | |
957 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
958 | break | |
959 | fi | |
960 | done | |
961 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 962 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 963 | fi |
698dcdb6 VZ |
964 | ac_config_guess=$ac_aux_dir/config.guess |
965 | ac_config_sub=$ac_aux_dir/config.sub | |
966 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 967 | |
698dcdb6 VZ |
968 | |
969 | # Do some error checking and defaulting for the host and target type. | |
970 | # The inputs are: | |
971 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
972 | # | |
973 | # The rules are: | |
974 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
975 | # same time. | |
976 | # 2. Host defaults to nonopt. | |
977 | # 3. If nonopt is not specified, then host defaults to the current host, | |
978 | # as determined by config.guess. | |
979 | # 4. Target and build default to nonopt. | |
980 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
981 | |
982 | # The aliases save the names the user supplied, while $host etc. | |
983 | # will get canonicalized. | |
698dcdb6 VZ |
984 | case $host---$target---$nonopt in |
985 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
986 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
987 | esac | |
988 | ||
989 | ||
990 | # Make sure we can run config.sub. | |
991 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
992 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
993 | fi | |
994 | ||
995 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
b040e242 | 996 | echo "configure:997: checking host system type" >&5 |
698dcdb6 VZ |
997 | |
998 | host_alias=$host | |
999 | case "$host_alias" in | |
1000 | NONE) | |
1001 | case $nonopt in | |
1002 | NONE) | |
1003 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1004 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1005 | fi ;; | |
1006 | *) host_alias=$nonopt ;; | |
1007 | esac ;; | |
1008 | esac | |
1009 | ||
1010 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1011 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1012 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1013 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1014 | echo "$ac_t""$host" 1>&6 | |
1015 | ||
1016 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
b040e242 | 1017 | echo "configure:1018: checking target system type" >&5 |
698dcdb6 VZ |
1018 | |
1019 | target_alias=$target | |
1020 | case "$target_alias" in | |
1021 | NONE) | |
1022 | case $nonopt in | |
1023 | NONE) target_alias=$host_alias ;; | |
1024 | *) target_alias=$nonopt ;; | |
1025 | esac ;; | |
1026 | esac | |
1027 | ||
1028 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1029 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1030 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1031 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1032 | echo "$ac_t""$target" 1>&6 | |
1033 | ||
1034 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
b040e242 | 1035 | echo "configure:1036: checking build system type" >&5 |
698dcdb6 VZ |
1036 | |
1037 | build_alias=$build | |
1038 | case "$build_alias" in | |
1039 | NONE) | |
1040 | case $nonopt in | |
1041 | NONE) build_alias=$host_alias ;; | |
1042 | *) build_alias=$nonopt ;; | |
1043 | esac ;; | |
1044 | esac | |
1045 | ||
1046 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1047 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1048 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1049 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1050 | echo "$ac_t""$build" 1>&6 | |
1051 | ||
1052 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1053 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1054 | NONENONEs,x,x, && | |
1055 | program_prefix=${target_alias}- | |
1056 | ||
698dcdb6 VZ |
1057 | |
1058 | ||
10f2d63a | 1059 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1060 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1061 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1062 | |
10f2d63a | 1063 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1064 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1065 | |
978f1259 RL |
1066 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1067 | ||
a0d927d1 | 1068 | WX_CURRENT=2 |
6426998c RL |
1069 | WX_REVISION=0 |
1070 | WX_AGE=0 | |
1071 | ||
698dcdb6 VZ |
1072 | |
1073 | ||
10f2d63a VZ |
1074 | USE_UNIX=1 |
1075 | USE_WIN32=0 | |
f9bc1684 | 1076 | USE_DOS=0 |
b12915c1 | 1077 | USE_BEOS=0 |
1216f52d | 1078 | USE_MAC=0 |
b12915c1 | 1079 | |
10f2d63a VZ |
1080 | USE_LINUX= |
1081 | USE_SGI= | |
1082 | USE_HPUX= | |
1083 | USE_SYSV= | |
1084 | USE_SVR4= | |
1085 | USE_AIX= | |
1086 | USE_SUN= | |
1087 | USE_SOLARIS= | |
1088 | USE_SUNOS= | |
1089 | USE_ALPHA= | |
1090 | USE_OSF= | |
1091 | USE_BSD= | |
f11bdd03 | 1092 | USE_DARWIN= |
10f2d63a | 1093 | USE_FREEBSD= |
95c8801c | 1094 | USE_OPENBSD= |
f6bcfd97 | 1095 | USE_NETBSD= |
10f2d63a VZ |
1096 | USE_VMS= |
1097 | USE_ULTRIX= | |
10f2d63a VZ |
1098 | USE_DATA_GENERAL= |
1099 | ||
ab9b9eab VZ |
1100 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1101 | ||
3f345b47 VZ |
1102 | CPP_MT_FLAG=-D_REENTRANT |
1103 | ||
1725144d | 1104 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE" |
10f2d63a VZ |
1105 | |
1106 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1107 | DEFAULT_wxUSE_MAC=0 |
1108 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1109 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1110 | DEFAULT_wxUSE_MOTIF=0 |
1111 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1112 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1113 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1114 | |
1115 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1116 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1117 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1118 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1119 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1120 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1121 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1122 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1123 | |
d6a55c4b | 1124 | PROGRAM_EXT= |
3a922bb4 | 1125 | SO_SUFFIX=so |
d6a55c4b | 1126 | |
10f2d63a VZ |
1127 | case "${host}" in |
1128 | *-hp-hpux* ) | |
1129 | USE_HPUX=1 | |
1130 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1131 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1132 | SO_SUFFIX=sl |
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __HPUX__ 1 |
1135 | EOF | |
1136 | ||
1137 | ;; | |
1138 | *-*-linux* ) | |
1139 | USE_LINUX=1 | |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __LINUX__ 1 |
1142 | EOF | |
1143 | ||
1144 | TMP=`uname -m` | |
1145 | if test "x$TMP" = "xalpha"; then | |
1146 | USE_ALPHA=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __ALPHA__ 1 |
1149 | EOF | |
1150 | ||
1151 | fi | |
1152 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1153 | ;; | |
1154 | *-*-irix5* | *-*-irix6* ) | |
1155 | USE_SGI=1 | |
1156 | USE_SVR4=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __SGI__ 1 |
1159 | EOF | |
1160 | ||
698dcdb6 | 1161 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1162 | #define __SVR4__ 1 |
1163 | EOF | |
1164 | ||
1165 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1166 | ;; | |
1167 | *-*-solaris2* ) | |
1168 | USE_SUN=1 | |
1169 | USE_SOLARIS=1 | |
1170 | USE_SVR4=1 | |
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SUN__ 1 |
1173 | EOF | |
1174 | ||
698dcdb6 | 1175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1176 | #define __SOLARIS__ 1 |
1177 | EOF | |
1178 | ||
698dcdb6 | 1179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1180 | #define __SVR4__ 1 |
1181 | EOF | |
1182 | ||
1183 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1184 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1185 | ;; |
1186 | *-*-sunos4* ) | |
1187 | USE_SUN=1 | |
1188 | USE_SUNOS=1 | |
1189 | USE_BSD=1 | |
698dcdb6 | 1190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1191 | #define __SUN__ 1 |
1192 | EOF | |
1193 | ||
698dcdb6 | 1194 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1195 | #define __SUNOS__ 1 |
1196 | EOF | |
1197 | ||
698dcdb6 | 1198 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1199 | #define __BSD__ 1 |
1200 | EOF | |
1201 | ||
1202 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1203 | ;; | |
f6bcfd97 | 1204 | *-*-freebsd*) |
10f2d63a VZ |
1205 | USE_BSD=1 |
1206 | USE_FREEBSD=1 | |
3f345b47 | 1207 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __FREEBSD__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a | 1213 | #define __BSD__ 1 |
95c8801c VS |
1214 | EOF |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1217 | ;; | |
1218 | *-*-openbsd*) | |
1219 | USE_BSD=1 | |
1220 | USE_OPENBSD=1 | |
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1222 | #define __FREEBSD__ 1 |
1223 | EOF | |
1224 | ||
698dcdb6 | 1225 | cat >> confdefs.h <<\EOF |
95c8801c | 1226 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1227 | EOF |
1228 | ||
1229 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1230 | ;; | |
1231 | *-*-netbsd*) | |
1232 | USE_BSD=1 | |
1233 | USE_NETBSD=1 | |
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1235 | #define __FREEBSD__ 1 |
1236 | EOF | |
1237 | ||
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1239 | #define __NETBSD__ 1 |
10f2d63a VZ |
1240 | EOF |
1241 | ||
1242 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1243 | ;; | |
1244 | *-*-osf* ) | |
1245 | USE_ALPHA=1 | |
1246 | USE_OSF=1 | |
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define __ALPHA__ 1 |
1249 | EOF | |
1250 | ||
698dcdb6 | 1251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1252 | #define __OSF__ 1 |
1253 | EOF | |
1254 | ||
1255 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1256 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1257 | ;; |
1258 | *-*-dgux5* ) | |
1259 | USE_ALPHA=1 | |
1260 | USE_SVR4=1 | |
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __ALPHA__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define __SVR4__ 1 |
1267 | EOF | |
1268 | ||
1269 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1270 | ;; | |
1271 | *-*-sysv5* ) | |
1272 | USE_SYSV=1 | |
1273 | USE_SVR4=1 | |
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SYSV__ 1 |
1276 | EOF | |
1277 | ||
698dcdb6 | 1278 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1279 | #define __SVR4__ 1 |
1280 | EOF | |
1281 | ||
1282 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1283 | ;; | |
1284 | *-*-aix* ) | |
1285 | USE_AIX=1 | |
1286 | USE_SYSV=1 | |
1287 | USE_SVR4=1 | |
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define __AIX__ 1 |
1290 | EOF | |
1291 | ||
698dcdb6 | 1292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define __SYSV__ 1 |
1294 | EOF | |
1295 | ||
698dcdb6 | 1296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1297 | #define __SVR4__ 1 |
1298 | EOF | |
1299 | ||
1300 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1301 | ;; | |
1302 | ||
1c8183e2 | 1303 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1304 | USE_UNIX=0 |
1305 | USE_WIN32=1 | |
3a922bb4 | 1306 | SO_SUFFIX=dll |
698dcdb6 | 1307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1308 | #define __WIN32__ 1 |
1309 | EOF | |
1310 | ||
698dcdb6 | 1311 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1312 | #define __WIN95__ 1 |
1313 | EOF | |
1314 | ||
698dcdb6 | 1315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1316 | #define __WINDOWS__ 1 |
1317 | EOF | |
1318 | ||
698dcdb6 | 1319 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1320 | #define __GNUWIN32__ 1 |
1321 | EOF | |
1322 | ||
698dcdb6 | 1323 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1324 | #define STRICT 1 |
1325 | EOF | |
1326 | ||
698dcdb6 | 1327 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1328 | #define WINVER 0x0400 |
1329 | EOF | |
1330 | ||
cf27ef00 | 1331 | PROGRAM_EXT=".exe" |
7b7a7637 | 1332 | RESCOMP=windres |
10f2d63a VZ |
1333 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1334 | ;; | |
1335 | ||
f9bc1684 VS |
1336 | *-pc-msdosdjgpp ) |
1337 | USE_UNIX=0 | |
1338 | USE_DOS=1 | |
1339 | cat >> confdefs.h <<\EOF | |
1340 | #define __DOS__ 1 | |
1341 | EOF | |
1342 | ||
1343 | PROGRAM_EXT=".exe" | |
1344 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1345 | DEFAULT_DEFAULT_wxUSE_SHARED=0 | |
1346 | ;; | |
1347 | ||
6fa882bd | 1348 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1349 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1350 | #define __EMX__ 1 |
1351 | EOF | |
1352 | ||
cf27ef00 | 1353 | PROGRAM_EXT=".exe" |
e07802fc | 1354 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1355 | ;; |
1356 | ||
d08b457b GD |
1357 | powerpc-*-darwin* ) |
1358 | USE_BSD=1 | |
f11bdd03 | 1359 | USE_DARWIN=1 |
3f345b47 | 1360 | CPP_MT_FLAG= |
3a922bb4 | 1361 | SO_SUFFIX=dylib |
698dcdb6 | 1362 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1363 | #define __BSD__ 1 |
b4085ce6 GD |
1364 | EOF |
1365 | ||
698dcdb6 | 1366 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1367 | #define __DARWIN__ 1 |
d08b457b GD |
1368 | EOF |
1369 | ||
1370 | cat >> confdefs.h <<\EOF | |
1371 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1372 | EOF |
1373 | ||
1374 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1375 | ;; | |
1376 | ||
b12915c1 VZ |
1377 | *-*-beos* ) |
1378 | USE_BEOS=1 | |
698dcdb6 | 1379 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1380 | #define __BEOS__ 1 |
1381 | EOF | |
1382 | ||
1383 | ;; | |
1384 | ||
10f2d63a | 1385 | *) |
698dcdb6 | 1386 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1387 | esac |
1388 | ||
1389 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1390 | wxUSE_UNIX=yes |
698dcdb6 | 1391 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1392 | #define __UNIX__ 1 |
1393 | EOF | |
1394 | ||
10f2d63a VZ |
1395 | fi |
1396 | ||
2389f33b VZ |
1397 | if test "$USE_LINUX" = 1; then |
1398 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
b040e242 | 1399 | echo "configure:1400: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1400 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1402 | else | |
a72a4bfa VS |
1403 | |
1404 | cat > conftest.$ac_ext <<EOF | |
b040e242 | 1405 | #line 1406 "configure" |
2389f33b VZ |
1406 | #include "confdefs.h" |
1407 | #include <features.h> | |
1408 | int main() { | |
1409 | ||
1410 | #if !__GLIBC_PREREQ(2, 1) | |
1411 | #error not glibc2.1 | |
1412 | #endif | |
1413 | ||
1414 | ; return 0; } | |
1415 | EOF | |
b040e242 | 1416 | if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1417 | rm -rf conftest* |
1418 | ||
1419 | wx_lib_glibc21=yes | |
1420 | ||
1421 | else | |
1422 | echo "configure: failed program was:" >&5 | |
1423 | cat conftest.$ac_ext >&5 | |
1424 | rm -rf conftest* | |
1425 | ||
1426 | wx_lib_glibc21=no | |
1427 | ||
1428 | ||
1429 | fi | |
1430 | rm -f conftest* | |
1431 | ||
1432 | fi | |
1433 | ||
1434 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1435 | if test "$wx_lib_glibc21" = "yes"; then |
1436 | cat >> confdefs.h <<\EOF | |
1437 | #define wxHAVE_GLIBC2 1 | |
1438 | EOF | |
1439 | ||
1440 | fi | |
1441 | fi | |
10f2d63a | 1442 | |
1e487827 | 1443 | |
1e487827 | 1444 | |
6232543b | 1445 | |
10f2d63a VZ |
1446 | wx_arg_cache_file="configarg.cache" |
1447 | echo "loading argument cache $wx_arg_cache_file" | |
1448 | rm -f ${wx_arg_cache_file}.tmp | |
1449 | touch ${wx_arg_cache_file}.tmp | |
1450 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1451 | |
10f2d63a VZ |
1452 | |
1453 | DEBUG_CONFIGURE=0 | |
1454 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1455 | DEFAULT_wxUSE_UNIVERSAL=no |
1456 | ||
10f2d63a VZ |
1457 | DEFAULT_wxUSE_THREADS=yes |
1458 | ||
1459 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1460 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1461 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_PROFILE=no |
1463 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1464 | DEFAULT_wxUSE_NO_RTTI=yes |
1465 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_PERMISSIVE=no |
1467 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1468 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1469 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1470 | DEFAULT_wxUSE_MEM_TRACING=no | |
1471 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1472 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1473 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1474 | DEFAULT_wxUSE_APPLE_IEEE=no |
1475 | ||
1476 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1477 | DEFAULT_wxUSE_LOGWINDOW=no |
1478 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1479 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1480 | |
1481 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1482 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1483 | |
3e44f09d | 1484 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1485 | DEFAULT_wxUSE_ZLIB=no |
1486 | DEFAULT_wxUSE_LIBPNG=no | |
1487 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1488 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1489 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1490 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1491 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1492 | |
eb4efbdc | 1493 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1494 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1495 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1496 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1497 | DEFAULT_wxUSE_DATETIME=no | |
1498 | DEFAULT_wxUSE_TIMEDATE=no | |
1499 | DEFAULT_wxUSE_TIMER=no | |
1500 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1501 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1502 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1503 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1504 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_WAVE=no |
1506 | DEFAULT_wxUSE_INTL=no | |
1507 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1508 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1509 | DEFAULT_wxUSE_STREAMS=no |
1510 | DEFAULT_wxUSE_SOCKETS=no | |
1511 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1512 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1513 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1514 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1515 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1516 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1517 | |
1518 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1519 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1520 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1521 | ||
1522 | DEFAULT_wxUSE_X_RESOURCES=no | |
1523 | DEFAULT_wxUSE_CLIPBOARD=no | |
1524 | DEFAULT_wxUSE_TOOLTIPS=no | |
1525 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1526 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_SPLINES=no |
1528 | ||
1529 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1530 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1531 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1532 | ||
1533 | DEFAULT_wxUSE_PROLOGIO=no | |
1534 | DEFAULT_wxUSE_RESOURCES=no | |
1535 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1536 | DEFAULT_wxUSE_IPC=no | |
1537 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1538 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1539 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1540 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1541 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1542 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1543 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1544 | DEFAULT_wxUSE_PROTOCOL=no | |
1545 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1546 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1547 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1548 | DEFAULT_wxUSE_URL=no | |
1549 | ||
10f2d63a | 1550 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1551 | DEFAULT_wxUSE_CHOICEDLG=no |
1552 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1553 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1554 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1555 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1556 | DEFAULT_wxUSE_FONTDLG=no |
1557 | DEFAULT_wxUSE_MSGDLG=no | |
1558 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1559 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1560 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1561 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1562 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1563 | DEFAULT_wxUSE_WIZARDDLG=no |
1564 | ||
1e6feb95 | 1565 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1566 | DEFAULT_wxUSE_MINIFRAME=no |
1567 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1568 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1569 | DEFAULT_wxUSE_FS_INET=no |
1570 | DEFAULT_wxUSE_FS_ZIP=no | |
1571 | DEFAULT_wxUSE_BUSYINFO=no | |
1572 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1573 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1574 | |
1575 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1576 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1577 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1578 | DEFAULT_wxUSE_CALCTRL=no |
1579 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1580 | DEFAULT_wxUSE_CHECKBOX=no |
1581 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1582 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1583 | DEFAULT_wxUSE_COMBOBOX=no |
1584 | DEFAULT_wxUSE_GAUGE=no | |
1585 | DEFAULT_wxUSE_GRID=no | |
1586 | DEFAULT_wxUSE_NEW_GRID=no | |
1587 | DEFAULT_wxUSE_IMAGLIST=no | |
1588 | DEFAULT_wxUSE_LISTBOX=no | |
1589 | DEFAULT_wxUSE_LISTCTRL=no | |
1590 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1591 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1592 | DEFAULT_wxUSE_RADIOBOX=no |
1593 | DEFAULT_wxUSE_RADIOBTN=no | |
1594 | DEFAULT_wxUSE_SASH=no | |
1595 | DEFAULT_wxUSE_SCROLLBAR=no | |
1596 | DEFAULT_wxUSE_SLIDER=no | |
1597 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1598 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1599 | DEFAULT_wxUSE_SPLITTER=no |
1600 | DEFAULT_wxUSE_STATBMP=no | |
1601 | DEFAULT_wxUSE_STATBOX=no | |
1602 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1603 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1604 | DEFAULT_wxUSE_STATUSBAR=yes |
1605 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1606 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1607 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1608 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1609 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1610 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1611 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1612 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1613 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1614 | |
1615 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1616 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1617 | DEFAULT_wxUSE_WCSRTOMBS=no |
1618 | ||
edae8572 | 1619 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1620 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1621 | DEFAULT_wxUSE_GIF=no |
1622 | DEFAULT_wxUSE_PCX=no | |
1623 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1624 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1625 | DEFAULT_wxUSE_XPM=no |
658974ae | 1626 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1627 | else |
1e6feb95 VZ |
1628 | DEFAULT_wxUSE_UNIVERSAL=no |
1629 | ||
10f2d63a VZ |
1630 | DEFAULT_wxUSE_THREADS=yes |
1631 | ||
1632 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1633 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1634 | DEFAULT_wxUSE_OPTIMISE=yes |
1635 | DEFAULT_wxUSE_PROFILE=no | |
1636 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1637 | DEFAULT_wxUSE_NO_RTTI=yes |
1638 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_PERMISSIVE=no |
1640 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1641 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1642 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1643 | DEFAULT_wxUSE_MEM_TRACING=no | |
1644 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1645 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1646 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1647 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1648 | ||
1649 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1650 | DEFAULT_wxUSE_LOGWINDOW=yes |
1651 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1652 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1653 | |
1654 | DEFAULT_wxUSE_GUI=yes | |
1655 | ||
831b3152 | 1656 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1657 | DEFAULT_wxUSE_ZLIB=yes |
1658 | DEFAULT_wxUSE_LIBPNG=yes | |
1659 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1660 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1661 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1662 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1663 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1664 | |
eb4efbdc | 1665 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1666 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1667 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1668 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1669 | DEFAULT_wxUSE_DATETIME=yes | |
1670 | DEFAULT_wxUSE_TIMEDATE=no | |
1671 | DEFAULT_wxUSE_TIMER=yes | |
1672 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1673 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1674 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1675 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1676 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1677 | DEFAULT_wxUSE_WAVE=no |
1678 | DEFAULT_wxUSE_INTL=yes | |
1679 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1680 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1681 | DEFAULT_wxUSE_STREAMS=yes |
1682 | DEFAULT_wxUSE_SOCKETS=yes | |
1683 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1685 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1686 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1687 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1688 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1689 | |
1690 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1691 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1692 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1693 | ||
1694 | DEFAULT_wxUSE_X_RESOURCES=no | |
1695 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1696 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1697 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1698 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1699 | DEFAULT_wxUSE_SPLINES=yes |
1700 | ||
1701 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1702 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1703 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1704 | ||
1705 | DEFAULT_wxUSE_PROLOGIO=yes | |
1706 | DEFAULT_wxUSE_RESOURCES=yes | |
1707 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1708 | DEFAULT_wxUSE_IPC=yes | |
1709 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1710 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1711 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1712 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1713 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1714 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1715 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1716 | DEFAULT_wxUSE_PROTOCOL=yes |
1717 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1718 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1719 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1720 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1721 | |
1722 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1723 | DEFAULT_wxUSE_CHOICEDLG=yes |
1724 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1725 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1726 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1727 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1728 | DEFAULT_wxUSE_FONTDLG=yes |
1729 | DEFAULT_wxUSE_MSGDLG=yes | |
1730 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1731 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1732 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1733 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1734 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1735 | DEFAULT_wxUSE_WIZARDDLG=yes |
1736 | ||
1e6feb95 | 1737 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_MINIFRAME=yes |
1739 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1740 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1741 | DEFAULT_wxUSE_FS_INET=yes |
1742 | DEFAULT_wxUSE_FS_ZIP=yes | |
1743 | DEFAULT_wxUSE_BUSYINFO=yes | |
1744 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1745 | DEFAULT_wxUSE_VALIDATORS=yes | |
1746 | ||
1747 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1748 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1749 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1750 | DEFAULT_wxUSE_CALCTRL=yes |
1751 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1752 | DEFAULT_wxUSE_CHECKBOX=yes |
1753 | DEFAULT_wxUSE_CHECKLST=yes | |
1754 | DEFAULT_wxUSE_CHOICE=yes | |
1755 | DEFAULT_wxUSE_COMBOBOX=yes | |
1756 | DEFAULT_wxUSE_GAUGE=yes | |
1757 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1758 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1759 | DEFAULT_wxUSE_IMAGLIST=yes |
1760 | DEFAULT_wxUSE_LISTBOX=yes | |
1761 | DEFAULT_wxUSE_LISTCTRL=yes | |
1762 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1763 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1764 | DEFAULT_wxUSE_RADIOBOX=yes |
1765 | DEFAULT_wxUSE_RADIOBTN=yes | |
1766 | DEFAULT_wxUSE_SASH=yes | |
1767 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1768 | DEFAULT_wxUSE_SLIDER=yes | |
1769 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1770 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1771 | DEFAULT_wxUSE_SPLITTER=yes |
1772 | DEFAULT_wxUSE_STATBMP=yes | |
1773 | DEFAULT_wxUSE_STATBOX=yes | |
1774 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1775 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1776 | DEFAULT_wxUSE_STATUSBAR=yes |
1777 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1778 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1779 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1780 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1781 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1782 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1783 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1784 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1785 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1786 | |
1787 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1788 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1789 | DEFAULT_wxUSE_WCSRTOMBS=no |
1790 | ||
edae8572 | 1791 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1792 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1793 | DEFAULT_wxUSE_GIF=yes |
1794 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1795 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1796 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1797 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1798 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1799 | fi |
1800 | ||
698dcdb6 VZ |
1801 | |
1802 | ||
10f2d63a VZ |
1803 | for toolkit in `echo $ALL_TOOLKITS`; do |
1804 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1805 | if test "x$LINE" != x ; then | |
1806 | has_toolkit_in_cache=1 | |
1807 | eval "DEFAULT_$LINE" | |
1808 | eval "CACHE_$toolkit=1" | |
1809 | fi | |
1810 | done | |
1811 | ||
698dcdb6 VZ |
1812 | |
1813 | ||
1814 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
b040e242 | 1815 | echo "configure:1816: checking for --enable-gui" >&5 |
10f2d63a VZ |
1816 | no_cache=0 |
1817 | # Check whether --enable-gui or --disable-gui was given. | |
1818 | if test "${enable_gui+set}" = set; then | |
1819 | enableval="$enable_gui" | |
698dcdb6 | 1820 | |
10f2d63a VZ |
1821 | if test "$enableval" = yes; then |
1822 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1823 | else | |
1824 | ac_cv_use_gui='wxUSE_GUI=no' | |
1825 | fi | |
698dcdb6 | 1826 | |
10f2d63a | 1827 | else |
698dcdb6 | 1828 | |
10f2d63a VZ |
1829 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1830 | if test "x$LINE" != x ; then | |
1831 | eval "DEFAULT_$LINE" | |
1832 | else | |
1833 | no_cache=1 | |
1834 | fi | |
1835 | ||
1836 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1837 | |
1838 | fi | |
10f2d63a VZ |
1839 | |
1840 | ||
1841 | eval "$ac_cv_use_gui" | |
1842 | if test "$no_cache" != 1; then | |
1843 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1844 | fi | |
1845 | ||
1846 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1847 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1848 | else |
698dcdb6 | 1849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1850 | fi |
698dcdb6 | 1851 | |
10f2d63a | 1852 | |
b12915c1 | 1853 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1854 | |
1e6feb95 VZ |
1855 | |
1856 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
b040e242 | 1857 | echo "configure:1858: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1858 | no_cache=0 |
1859 | # Check whether --enable-universal or --disable-universal was given. | |
1860 | if test "${enable_universal+set}" = set; then | |
1861 | enableval="$enable_universal" | |
1862 | ||
1863 | if test "$enableval" = yes; then | |
1864 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1865 | else | |
1866 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1867 | fi | |
1868 | ||
1869 | else | |
1870 | ||
1871 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1872 | if test "x$LINE" != x ; then | |
1873 | eval "DEFAULT_$LINE" | |
1874 | else | |
1875 | no_cache=1 | |
1876 | fi | |
1877 | ||
1878 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1879 | ||
1880 | fi | |
1881 | ||
1882 | ||
1883 | eval "$ac_cv_use_universal" | |
1884 | if test "$no_cache" != 1; then | |
1885 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1886 | fi | |
1887 | ||
1888 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1889 | echo "$ac_t""yes" 1>&6 | |
1890 | else | |
1891 | echo "$ac_t""no" 1>&6 | |
1892 | fi | |
1893 | ||
10f2d63a VZ |
1894 | # Check whether --with-gtk or --without-gtk was given. |
1895 | if test "${with_gtk+set}" = set; then | |
1896 | withval="$with_gtk" | |
1897 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1898 | fi |
10f2d63a VZ |
1899 | |
1900 | # Check whether --with-motif or --without-motif was given. | |
1901 | if test "${with_motif+set}" = set; then | |
1902 | withval="$with_motif" | |
1903 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1904 | fi |
10f2d63a | 1905 | |
b4085ce6 GD |
1906 | # Check whether --with-mac or --without-mac was given. |
1907 | if test "${with_mac+set}" = set; then | |
1908 | withval="$with_mac" | |
1909 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1910 | fi |
b4085ce6 | 1911 | |
10f2d63a VZ |
1912 | # Check whether --with-wine or --without-wine was given. |
1913 | if test "${with_wine+set}" = set; then | |
1914 | withval="$with_wine" | |
1915 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1916 | fi |
10f2d63a | 1917 | |
77e13408 RL |
1918 | # Check whether --with-msw or --without-msw was given. |
1919 | if test "${with_msw+set}" = set; then | |
1920 | withval="$with_msw" | |
1921 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1922 | fi |
10f2d63a | 1923 | |
e07802fc VZ |
1924 | # Check whether --with-pm or --without-pm was given. |
1925 | if test "${with_pm+set}" = set; then | |
1926 | withval="$with_pm" | |
1927 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1928 | fi |
1929 | ||
1e6feb95 VZ |
1930 | # Check whether --with-mgl or --without-mgl was given. |
1931 | if test "${with_mgl+set}" = set; then | |
1932 | withval="$with_mgl" | |
1933 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1934 | fi | |
1935 | ||
1725144d RR |
1936 | # Check whether --with-microwin or --without-microwin was given. |
1937 | if test "${with_microwin+set}" = set; then | |
1938 | withval="$with_microwin" | |
1939 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1940 | fi | |
1941 | ||
10f2d63a | 1942 | |
8168de4c VZ |
1943 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1944 | if test "${enable_gtk2+set}" = set; then | |
1945 | enableval="$enable_gtk2" | |
1946 | wxUSE_GTK2=1 | |
10f2d63a | 1947 | else |
8168de4c | 1948 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1949 | fi |
1950 | ||
703e0a69 | 1951 | |
1e487827 | 1952 | |
698dcdb6 | 1953 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
b040e242 | 1954 | echo "configure:1955: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1955 | no_cache=0 |
1956 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1957 | if test "${with_libpng+set}" = set; then |
1958 | withval="$with_libpng" | |
698dcdb6 | 1959 | |
10f2d63a | 1960 | if test "$withval" = yes; then |
b12915c1 | 1961 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1962 | elif test "$withval" = no; then |
b12915c1 | 1963 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1964 | elif test "$withval" = sys; then |
1965 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1966 | elif test "$withval" = builtin; then |
1967 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1968 | else |
4f14bcd8 | 1969 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1970 | fi |
698dcdb6 | 1971 | |
10f2d63a | 1972 | else |
698dcdb6 | 1973 | |
b12915c1 | 1974 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1975 | if test "x$LINE" != x ; then |
1976 | eval "DEFAULT_$LINE" | |
1977 | else | |
1978 | no_cache=1 | |
1979 | fi | |
1980 | ||
b12915c1 | 1981 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1982 | |
1983 | fi | |
10f2d63a VZ |
1984 | |
1985 | ||
b12915c1 | 1986 | eval "$ac_cv_use_libpng" |
10f2d63a | 1987 | if test "$no_cache" != 1; then |
b12915c1 | 1988 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1989 | fi |
1990 | ||
b12915c1 | 1991 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1992 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1993 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1994 | echo "$ac_t""no" 1>&6 |
422107f9 | 1995 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1996 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1997 | elif test "$wxUSE_LIBPNG" = builtin; then |
1998 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1999 | else |
4f14bcd8 | 2000 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2001 | fi |
698dcdb6 | 2002 | |
10f2d63a | 2003 | |
698dcdb6 | 2004 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
b040e242 | 2005 | echo "configure:2006: checking for --with-libjpeg" >&5 |
10f2d63a | 2006 | no_cache=0 |
698dcdb6 | 2007 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2008 | if test "${with_libjpeg+set}" = set; then |
2009 | withval="$with_libjpeg" | |
698dcdb6 | 2010 | |
10f2d63a | 2011 | if test "$withval" = yes; then |
b12915c1 | 2012 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2013 | elif test "$withval" = no; then |
b12915c1 | 2014 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2015 | elif test "$withval" = sys; then |
2016 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2017 | elif test "$withval" = builtin; then |
2018 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2019 | else |
4f14bcd8 | 2020 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2021 | fi |
698dcdb6 | 2022 | |
10f2d63a | 2023 | else |
698dcdb6 | 2024 | |
b12915c1 | 2025 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2026 | if test "x$LINE" != x ; then |
2027 | eval "DEFAULT_$LINE" | |
2028 | else | |
2029 | no_cache=1 | |
2030 | fi | |
2031 | ||
b12915c1 | 2032 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2033 | |
2034 | fi | |
10f2d63a VZ |
2035 | |
2036 | ||
b12915c1 | 2037 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2038 | if test "$no_cache" != 1; then |
b12915c1 | 2039 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2040 | fi |
2041 | ||
b12915c1 | 2042 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2043 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2044 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2045 | echo "$ac_t""no" 1>&6 |
422107f9 | 2046 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2047 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2048 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2049 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2050 | else |
4f14bcd8 | 2051 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2052 | fi |
698dcdb6 | 2053 | |
10f2d63a | 2054 | |
698dcdb6 | 2055 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
b040e242 | 2056 | echo "configure:2057: checking for --with-libtiff" >&5 |
10f2d63a | 2057 | no_cache=0 |
698dcdb6 | 2058 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2059 | if test "${with_libtiff+set}" = set; then |
2060 | withval="$with_libtiff" | |
698dcdb6 | 2061 | |
10f2d63a | 2062 | if test "$withval" = yes; then |
b12915c1 | 2063 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2064 | elif test "$withval" = no; then |
b12915c1 | 2065 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2066 | elif test "$withval" = sys; then |
2067 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2068 | elif test "$withval" = builtin; then |
2069 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2070 | else |
4f14bcd8 | 2071 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2072 | fi |
698dcdb6 | 2073 | |
10f2d63a | 2074 | else |
698dcdb6 | 2075 | |
b12915c1 | 2076 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2077 | if test "x$LINE" != x ; then |
2078 | eval "DEFAULT_$LINE" | |
2079 | else | |
2080 | no_cache=1 | |
2081 | fi | |
2082 | ||
b12915c1 | 2083 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2084 | |
2085 | fi | |
10f2d63a VZ |
2086 | |
2087 | ||
b12915c1 | 2088 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2089 | if test "$no_cache" != 1; then |
b12915c1 | 2090 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2091 | fi |
2092 | ||
b12915c1 | 2093 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2094 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2095 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2096 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2097 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2098 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2099 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2100 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2101 | else |
4f14bcd8 | 2102 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2103 | fi |
698dcdb6 | 2104 | |
10f2d63a | 2105 | |
698dcdb6 | 2106 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
b040e242 | 2107 | echo "configure:2108: checking for --with-freetype" >&5 |
3fed1840 | 2108 | no_cache=0 |
698dcdb6 | 2109 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2110 | if test "${with_freetype+set}" = set; then |
2111 | withval="$with_freetype" | |
698dcdb6 | 2112 | |
3fed1840 RR |
2113 | if test "$withval" = yes; then |
2114 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2115 | elif test "$withval" = no; then | |
2116 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2117 | elif test "$withval" = sys; then | |
2118 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2119 | elif test "$withval" = builtin; then |
2120 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2121 | else |
4f14bcd8 | 2122 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2123 | fi |
698dcdb6 | 2124 | |
3fed1840 | 2125 | else |
698dcdb6 | 2126 | |
3fed1840 RR |
2127 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2128 | if test "x$LINE" != x ; then | |
2129 | eval "DEFAULT_$LINE" | |
2130 | else | |
2131 | no_cache=1 | |
2132 | fi | |
2133 | ||
2134 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2135 | |
2136 | fi | |
3fed1840 RR |
2137 | |
2138 | ||
2139 | eval "$ac_cv_use_freetype" | |
2140 | if test "$no_cache" != 1; then | |
2141 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2142 | fi | |
2143 | ||
2144 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2145 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2146 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2147 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2148 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2149 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2150 | elif test "$wxUSE_FREETYPE" = builtin; then |
2151 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2152 | else |
4f14bcd8 | 2153 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2154 | fi |
698dcdb6 | 2155 | |
3fed1840 | 2156 | |
698dcdb6 | 2157 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
b040e242 | 2158 | echo "configure:2159: checking for --with-opengl" >&5 |
10f2d63a | 2159 | no_cache=0 |
698dcdb6 | 2160 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2161 | if test "${with_opengl+set}" = set; then |
2162 | withval="$with_opengl" | |
698dcdb6 | 2163 | |
10f2d63a | 2164 | if test "$withval" = yes; then |
b12915c1 | 2165 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2166 | else |
b12915c1 | 2167 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2168 | fi |
698dcdb6 | 2169 | |
10f2d63a | 2170 | else |
698dcdb6 | 2171 | |
b12915c1 | 2172 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2173 | if test "x$LINE" != x ; then |
2174 | eval "DEFAULT_$LINE" | |
2175 | else | |
2176 | no_cache=1 | |
2177 | fi | |
2178 | ||
b12915c1 | 2179 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2180 | |
2181 | fi | |
10f2d63a VZ |
2182 | |
2183 | ||
b12915c1 | 2184 | eval "$ac_cv_use_opengl" |
10f2d63a | 2185 | if test "$no_cache" != 1; then |
b12915c1 | 2186 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2187 | fi |
2188 | ||
b12915c1 | 2189 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2190 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2191 | else |
698dcdb6 | 2192 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2193 | fi |
698dcdb6 | 2194 | |
10f2d63a | 2195 | |
b12915c1 VZ |
2196 | fi |
2197 | ||
1e487827 | 2198 | |
698dcdb6 | 2199 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
b040e242 | 2200 | echo "configure:2201: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2201 | no_cache=0 |
2202 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2203 | if test "${with_dmalloc+set}" = set; then |
2204 | withval="$with_dmalloc" | |
698dcdb6 | 2205 | |
c7a2bf27 | 2206 | if test "$withval" = yes; then |
b12915c1 | 2207 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2208 | else |
b12915c1 | 2209 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2210 | fi |
698dcdb6 | 2211 | |
c7a2bf27 | 2212 | else |
698dcdb6 | 2213 | |
b12915c1 | 2214 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2215 | if test "x$LINE" != x ; then |
2216 | eval "DEFAULT_$LINE" | |
2217 | else | |
2218 | no_cache=1 | |
2219 | fi | |
2220 | ||
b12915c1 | 2221 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2222 | |
2223 | fi | |
c7a2bf27 RR |
2224 | |
2225 | ||
b12915c1 | 2226 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2227 | if test "$no_cache" != 1; then |
b12915c1 | 2228 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2229 | fi |
2230 | ||
b12915c1 | 2231 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2232 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2233 | else |
698dcdb6 | 2234 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2235 | fi |
698dcdb6 | 2236 | |
c7a2bf27 | 2237 | |
3e44f09d | 2238 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
b040e242 | 2239 | echo "configure:2240: checking for --with-regex" >&5 |
3e44f09d VZ |
2240 | no_cache=0 |
2241 | # Check whether --with-regex or --without-regex was given. | |
2242 | if test "${with_regex+set}" = set; then | |
2243 | withval="$with_regex" | |
2244 | ||
2245 | if test "$withval" = yes; then | |
2246 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2247 | elif test "$withval" = no; then | |
2248 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2249 | elif test "$withval" = sys; then | |
2250 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2251 | elif test "$withval" = builtin; then |
2252 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2253 | else |
4f14bcd8 | 2254 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2255 | fi |
2256 | ||
2257 | else | |
2258 | ||
2259 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2260 | if test "x$LINE" != x ; then | |
2261 | eval "DEFAULT_$LINE" | |
2262 | else | |
2263 | no_cache=1 | |
2264 | fi | |
2265 | ||
2266 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2267 | ||
2268 | fi | |
2269 | ||
2270 | ||
2271 | eval "$ac_cv_use_regex" | |
2272 | if test "$no_cache" != 1; then | |
2273 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2274 | fi | |
2275 | ||
2276 | if test "$wxUSE_REGEX" = yes; then | |
2277 | echo "$ac_t""yes" 1>&6 | |
2278 | elif test "$wxUSE_REGEX" = no; then | |
2279 | echo "$ac_t""no" 1>&6 | |
2280 | elif test "$wxUSE_REGEX" = sys; then | |
2281 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2282 | elif test "$wxUSE_REGEX" = builtin; then |
2283 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2284 | else |
4f14bcd8 | 2285 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2286 | fi |
2287 | ||
2288 | ||
698dcdb6 | 2289 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
b040e242 | 2290 | echo "configure:2291: checking for --with-zlib" >&5 |
10f2d63a | 2291 | no_cache=0 |
698dcdb6 | 2292 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2293 | if test "${with_zlib+set}" = set; then |
2294 | withval="$with_zlib" | |
698dcdb6 | 2295 | |
10f2d63a | 2296 | if test "$withval" = yes; then |
b12915c1 | 2297 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2298 | elif test "$withval" = no; then |
b12915c1 | 2299 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2300 | elif test "$withval" = sys; then |
2301 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2302 | elif test "$withval" = builtin; then |
2303 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2304 | else |
4f14bcd8 | 2305 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2306 | fi |
698dcdb6 | 2307 | |
10f2d63a | 2308 | else |
698dcdb6 | 2309 | |
b12915c1 | 2310 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2311 | if test "x$LINE" != x ; then |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
b12915c1 | 2317 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2318 | |
2319 | fi | |
10f2d63a VZ |
2320 | |
2321 | ||
b12915c1 | 2322 | eval "$ac_cv_use_zlib" |
10f2d63a | 2323 | if test "$no_cache" != 1; then |
b12915c1 | 2324 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2325 | fi |
2326 | ||
b12915c1 | 2327 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2328 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2329 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2330 | echo "$ac_t""no" 1>&6 |
422107f9 | 2331 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2332 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2333 | elif test "$wxUSE_ZLIB" = builtin; then |
2334 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2335 | else |
4f14bcd8 | 2336 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2337 | fi |
698dcdb6 | 2338 | |
10f2d63a | 2339 | |
698dcdb6 | 2340 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
b040e242 | 2341 | echo "configure:2342: checking for --with-odbc" >&5 |
10f2d63a | 2342 | no_cache=0 |
698dcdb6 | 2343 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2344 | if test "${with_odbc+set}" = set; then |
2345 | withval="$with_odbc" | |
698dcdb6 | 2346 | |
10f2d63a VZ |
2347 | if test "$withval" = yes; then |
2348 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2349 | else | |
2350 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2351 | fi | |
698dcdb6 | 2352 | |
10f2d63a | 2353 | else |
698dcdb6 | 2354 | |
10f2d63a VZ |
2355 | LINE=`grep "wxUSE_ODBC" ${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_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2363 | |
2364 | fi | |
10f2d63a VZ |
2365 | |
2366 | ||
2367 | eval "$ac_cv_use_odbc" | |
2368 | if test "$no_cache" != 1; then | |
2369 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2370 | fi | |
2371 | ||
2372 | if test "$wxUSE_ODBC" = 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 VZ |
2377 | |
2378 | ||
10f2d63a | 2379 | |
698dcdb6 | 2380 | |
698dcdb6 | 2381 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
b040e242 | 2382 | echo "configure:2383: checking for --enable-shared" >&5 |
10f2d63a VZ |
2383 | no_cache=0 |
2384 | # Check whether --enable-shared or --disable-shared was given. | |
2385 | if test "${enable_shared+set}" = set; then | |
2386 | enableval="$enable_shared" | |
698dcdb6 | 2387 | |
10f2d63a VZ |
2388 | if test "$enableval" = yes; then |
2389 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2390 | else | |
2391 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2392 | fi | |
698dcdb6 | 2393 | |
10f2d63a | 2394 | else |
698dcdb6 | 2395 | |
10f2d63a VZ |
2396 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2397 | if test "x$LINE" != x ; then | |
2398 | eval "DEFAULT_$LINE" | |
2399 | else | |
2400 | no_cache=1 | |
2401 | fi | |
2402 | ||
2403 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2404 | |
2405 | fi | |
10f2d63a VZ |
2406 | |
2407 | ||
2408 | eval "$ac_cv_use_shared" | |
2409 | if test "$no_cache" != 1; then | |
2410 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2411 | fi | |
2412 | ||
2413 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2414 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2415 | else |
698dcdb6 | 2416 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2417 | fi |
698dcdb6 | 2418 | |
10f2d63a | 2419 | |
3a922bb4 | 2420 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
b040e242 | 2421 | echo "configure:2422: checking for --enable-soname" >&5 |
00cf1208 | 2422 | no_cache=0 |
3a922bb4 RL |
2423 | # Check whether --enable-soname or --disable-soname was given. |
2424 | if test "${enable_soname+set}" = set; then | |
2425 | enableval="$enable_soname" | |
698dcdb6 | 2426 | |
00cf1208 | 2427 | if test "$enableval" = yes; then |
3a922bb4 | 2428 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2429 | else |
3a922bb4 | 2430 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2431 | fi |
698dcdb6 | 2432 | |
00cf1208 | 2433 | else |
698dcdb6 | 2434 | |
3a922bb4 | 2435 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2436 | if test "x$LINE" != x ; then |
2437 | eval "DEFAULT_$LINE" | |
2438 | else | |
2439 | no_cache=1 | |
2440 | fi | |
2441 | ||
3a922bb4 | 2442 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2443 | |
2444 | fi | |
00cf1208 RR |
2445 | |
2446 | ||
3a922bb4 | 2447 | eval "$ac_cv_use_soname" |
00cf1208 | 2448 | if test "$no_cache" != 1; then |
3a922bb4 | 2449 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2450 | fi |
2451 | ||
3a922bb4 | 2452 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2453 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2454 | else |
698dcdb6 | 2455 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2456 | fi |
698dcdb6 | 2457 | |
00cf1208 | 2458 | |
698dcdb6 | 2459 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
b040e242 | 2460 | echo "configure:2461: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2461 | no_cache=0 |
2462 | # Check whether --enable-optimise or --disable-optimise was given. | |
2463 | if test "${enable_optimise+set}" = set; then | |
2464 | enableval="$enable_optimise" | |
698dcdb6 | 2465 | |
10f2d63a VZ |
2466 | if test "$enableval" = yes; then |
2467 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2468 | else | |
2469 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2470 | fi | |
698dcdb6 | 2471 | |
10f2d63a | 2472 | else |
698dcdb6 | 2473 | |
10f2d63a VZ |
2474 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2475 | if test "x$LINE" != x ; then | |
2476 | eval "DEFAULT_$LINE" | |
2477 | else | |
2478 | no_cache=1 | |
2479 | fi | |
2480 | ||
2481 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2482 | |
2483 | fi | |
10f2d63a VZ |
2484 | |
2485 | ||
2486 | eval "$ac_cv_use_optimise" | |
2487 | if test "$no_cache" != 1; then | |
2488 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2489 | fi | |
2490 | ||
2491 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2492 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2493 | else |
698dcdb6 | 2494 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2495 | fi |
698dcdb6 | 2496 | |
10f2d63a | 2497 | |
698dcdb6 | 2498 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
b040e242 | 2499 | echo "configure:2500: checking for --enable-debug" >&5 |
10f2d63a VZ |
2500 | no_cache=0 |
2501 | # Check whether --enable-debug or --disable-debug was given. | |
2502 | if test "${enable_debug+set}" = set; then | |
2503 | enableval="$enable_debug" | |
698dcdb6 | 2504 | |
10f2d63a VZ |
2505 | if test "$enableval" = yes; then |
2506 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2507 | else | |
2508 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2509 | fi | |
698dcdb6 | 2510 | |
10f2d63a | 2511 | else |
698dcdb6 | 2512 | |
10f2d63a VZ |
2513 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2514 | if test "x$LINE" != x ; then | |
2515 | eval "DEFAULT_$LINE" | |
2516 | else | |
2517 | no_cache=1 | |
2518 | fi | |
2519 | ||
2520 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2521 | |
2522 | fi | |
10f2d63a VZ |
2523 | |
2524 | ||
2525 | eval "$ac_cv_use_debug" | |
2526 | if test "$no_cache" != 1; then | |
2527 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2528 | fi | |
2529 | ||
2530 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2531 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2532 | else |
698dcdb6 | 2533 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2534 | fi |
698dcdb6 | 2535 | |
10f2d63a | 2536 | |
683dccda GD |
2537 | |
2538 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
b040e242 | 2539 | echo "configure:2540: checking for --enable-precomp" >&5 |
683dccda GD |
2540 | no_cache=0 |
2541 | # Check whether --enable-precomp or --disable-precomp was given. | |
2542 | if test "${enable_precomp+set}" = set; then | |
2543 | enableval="$enable_precomp" | |
2544 | ||
2545 | if test "$enableval" = yes; then | |
2546 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2547 | else | |
2548 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2549 | fi | |
2550 | ||
2551 | else | |
2552 | ||
2553 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2554 | if test "x$LINE" != x ; then | |
2555 | eval "DEFAULT_$LINE" | |
2556 | else | |
2557 | no_cache=1 | |
2558 | fi | |
2559 | ||
2560 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2561 | ||
2562 | fi | |
2563 | ||
2564 | ||
2565 | eval "$ac_cv_use_precomp" | |
2566 | if test "$no_cache" != 1; then | |
2567 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2568 | fi | |
2569 | ||
2570 | if test "$wxUSE_PRECOMP" = yes; then | |
2571 | echo "$ac_t""yes" 1>&6 | |
2572 | else | |
2573 | echo "$ac_t""no" 1>&6 | |
2574 | fi | |
2575 | ||
2576 | ||
10f2d63a VZ |
2577 | if test "$wxUSE_DEBUG" = "yes"; then |
2578 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2579 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2580 | elif test "$wxUSE_DEBUG" = "no"; then | |
2581 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2582 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2583 | fi | |
2584 | ||
698dcdb6 VZ |
2585 | |
2586 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
b040e242 | 2587 | echo "configure:2588: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2588 | no_cache=0 |
2589 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2590 | if test "${enable_debug_flag+set}" = set; then | |
2591 | enableval="$enable_debug_flag" | |
698dcdb6 | 2592 | |
10f2d63a VZ |
2593 | if test "$enableval" = yes; then |
2594 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2595 | else | |
2596 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2597 | fi | |
698dcdb6 | 2598 | |
10f2d63a | 2599 | else |
698dcdb6 | 2600 | |
10f2d63a VZ |
2601 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2602 | if test "x$LINE" != x ; then | |
2603 | eval "DEFAULT_$LINE" | |
2604 | else | |
2605 | no_cache=1 | |
2606 | fi | |
2607 | ||
2608 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2609 | |
2610 | fi | |
10f2d63a VZ |
2611 | |
2612 | ||
2613 | eval "$ac_cv_use_debug_flag" | |
2614 | if test "$no_cache" != 1; then | |
2615 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2616 | fi | |
2617 | ||
2618 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2619 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2620 | else |
698dcdb6 | 2621 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2622 | fi |
698dcdb6 | 2623 | |
10f2d63a | 2624 | |
698dcdb6 | 2625 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
b040e242 | 2626 | echo "configure:2627: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2627 | no_cache=0 |
2628 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2629 | if test "${enable_debug_info+set}" = set; then | |
2630 | enableval="$enable_debug_info" | |
698dcdb6 | 2631 | |
10f2d63a VZ |
2632 | if test "$enableval" = yes; then |
2633 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2634 | else | |
2635 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2636 | fi | |
698dcdb6 | 2637 | |
10f2d63a | 2638 | else |
698dcdb6 | 2639 | |
10f2d63a VZ |
2640 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2641 | if test "x$LINE" != x ; then | |
2642 | eval "DEFAULT_$LINE" | |
2643 | else | |
2644 | no_cache=1 | |
2645 | fi | |
2646 | ||
2647 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2648 | |
2649 | fi | |
10f2d63a VZ |
2650 | |
2651 | ||
2652 | eval "$ac_cv_use_debug_info" | |
2653 | if test "$no_cache" != 1; then | |
2654 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2655 | fi | |
2656 | ||
2657 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2658 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2659 | else |
698dcdb6 | 2660 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2661 | fi |
698dcdb6 | 2662 | |
10f2d63a | 2663 | |
698dcdb6 | 2664 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
b040e242 | 2665 | echo "configure:2666: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2666 | no_cache=0 |
2667 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2668 | if test "${enable_debug_gdb+set}" = set; then | |
2669 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2670 | |
10f2d63a VZ |
2671 | if test "$enableval" = yes; then |
2672 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2673 | else | |
2674 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2675 | fi | |
698dcdb6 | 2676 | |
10f2d63a | 2677 | else |
698dcdb6 | 2678 | |
10f2d63a VZ |
2679 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2680 | if test "x$LINE" != x ; then | |
2681 | eval "DEFAULT_$LINE" | |
2682 | else | |
2683 | no_cache=1 | |
2684 | fi | |
2685 | ||
2686 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2687 | |
2688 | fi | |
10f2d63a VZ |
2689 | |
2690 | ||
2691 | eval "$ac_cv_use_debug_gdb" | |
2692 | if test "$no_cache" != 1; then | |
2693 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2694 | fi | |
2695 | ||
2696 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2697 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2698 | else |
698dcdb6 | 2699 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2700 | fi |
698dcdb6 | 2701 | |
10f2d63a | 2702 | |
698dcdb6 | 2703 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
b040e242 | 2704 | echo "configure:2705: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2705 | no_cache=0 |
2706 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2707 | if test "${enable_debug_cntxt+set}" = set; then | |
2708 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2709 | |
10f2d63a VZ |
2710 | if test "$enableval" = yes; then |
2711 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2712 | else | |
2713 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2714 | fi | |
698dcdb6 | 2715 | |
10f2d63a | 2716 | else |
698dcdb6 | 2717 | |
10f2d63a VZ |
2718 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2719 | if test "x$LINE" != x ; then | |
2720 | eval "DEFAULT_$LINE" | |
2721 | else | |
2722 | no_cache=1 | |
2723 | fi | |
2724 | ||
2725 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2726 | |
2727 | fi | |
10f2d63a VZ |
2728 | |
2729 | ||
2730 | eval "$ac_cv_use_debug_cntxt" | |
2731 | if test "$no_cache" != 1; then | |
2732 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2733 | fi | |
2734 | ||
2735 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2736 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2737 | else |
698dcdb6 | 2738 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2739 | fi |
698dcdb6 | 2740 | |
10f2d63a | 2741 | |
698dcdb6 | 2742 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
b040e242 | 2743 | echo "configure:2744: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2744 | no_cache=0 |
2745 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2746 | if test "${enable_mem_tracing+set}" = set; then | |
2747 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2748 | |
10f2d63a VZ |
2749 | if test "$enableval" = yes; then |
2750 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2751 | else | |
2752 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2753 | fi | |
698dcdb6 | 2754 | |
10f2d63a | 2755 | else |
698dcdb6 | 2756 | |
10f2d63a VZ |
2757 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2758 | if test "x$LINE" != x ; then | |
2759 | eval "DEFAULT_$LINE" | |
2760 | else | |
2761 | no_cache=1 | |
2762 | fi | |
2763 | ||
2764 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2765 | |
2766 | fi | |
10f2d63a VZ |
2767 | |
2768 | ||
2769 | eval "$ac_cv_use_mem_tracing" | |
2770 | if test "$no_cache" != 1; then | |
2771 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2772 | fi | |
2773 | ||
2774 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2775 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2776 | else |
698dcdb6 | 2777 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2778 | fi |
698dcdb6 | 2779 | |
10f2d63a | 2780 | |
698dcdb6 | 2781 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
b040e242 | 2782 | echo "configure:2783: checking for --enable-profile" >&5 |
10f2d63a VZ |
2783 | no_cache=0 |
2784 | # Check whether --enable-profile or --disable-profile was given. | |
2785 | if test "${enable_profile+set}" = set; then | |
2786 | enableval="$enable_profile" | |
698dcdb6 | 2787 | |
10f2d63a VZ |
2788 | if test "$enableval" = yes; then |
2789 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2790 | else | |
2791 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2792 | fi | |
698dcdb6 | 2793 | |
10f2d63a | 2794 | else |
698dcdb6 | 2795 | |
10f2d63a VZ |
2796 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2797 | if test "x$LINE" != x ; then | |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
2803 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2804 | |
2805 | fi | |
10f2d63a VZ |
2806 | |
2807 | ||
2808 | eval "$ac_cv_use_profile" | |
2809 | if test "$no_cache" != 1; then | |
2810 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2811 | fi | |
2812 | ||
2813 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2814 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2815 | else |
698dcdb6 | 2816 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2817 | fi |
698dcdb6 | 2818 | |
10f2d63a | 2819 | |
698dcdb6 | 2820 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
b040e242 | 2821 | echo "configure:2822: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2822 | no_cache=0 |
2823 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2824 | if test "${enable_no_rtti+set}" = set; then | |
2825 | enableval="$enable_no_rtti" | |
698dcdb6 | 2826 | |
10f2d63a VZ |
2827 | if test "$enableval" = yes; then |
2828 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2829 | else | |
2830 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2831 | fi | |
698dcdb6 | 2832 | |
10f2d63a | 2833 | else |
698dcdb6 | 2834 | |
10f2d63a VZ |
2835 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2836 | if test "x$LINE" != x ; then | |
2837 | eval "DEFAULT_$LINE" | |
2838 | else | |
2839 | no_cache=1 | |
2840 | fi | |
2841 | ||
2842 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2843 | |
2844 | fi | |
10f2d63a VZ |
2845 | |
2846 | ||
2847 | eval "$ac_cv_use_no_rtti" | |
2848 | if test "$no_cache" != 1; then | |
2849 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2850 | fi | |
2851 | ||
2852 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2853 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2854 | else |
698dcdb6 | 2855 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2856 | fi |
698dcdb6 | 2857 | |
10f2d63a | 2858 | |
698dcdb6 | 2859 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
b040e242 | 2860 | echo "configure:2861: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2861 | no_cache=0 |
2862 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2863 | if test "${enable_no_exceptions+set}" = set; then | |
2864 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2865 | |
10f2d63a VZ |
2866 | if test "$enableval" = yes; then |
2867 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2868 | else | |
2869 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2870 | fi | |
698dcdb6 | 2871 | |
10f2d63a | 2872 | else |
698dcdb6 | 2873 | |
10f2d63a VZ |
2874 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2875 | if test "x$LINE" != x ; then | |
2876 | eval "DEFAULT_$LINE" | |
2877 | else | |
2878 | no_cache=1 | |
2879 | fi | |
2880 | ||
2881 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2882 | |
2883 | fi | |
10f2d63a VZ |
2884 | |
2885 | ||
2886 | eval "$ac_cv_use_no_exceptions" | |
2887 | if test "$no_cache" != 1; then | |
2888 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2889 | fi | |
2890 | ||
2891 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2892 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2893 | else |
698dcdb6 | 2894 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2895 | fi |
698dcdb6 | 2896 | |
10f2d63a | 2897 | |
698dcdb6 | 2898 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
b040e242 | 2899 | echo "configure:2900: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2900 | no_cache=0 |
2901 | # Check whether --enable-permissive or --disable-permissive was given. | |
2902 | if test "${enable_permissive+set}" = set; then | |
2903 | enableval="$enable_permissive" | |
698dcdb6 | 2904 | |
10f2d63a VZ |
2905 | if test "$enableval" = yes; then |
2906 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2907 | else | |
2908 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2909 | fi | |
698dcdb6 | 2910 | |
10f2d63a | 2911 | else |
698dcdb6 | 2912 | |
10f2d63a VZ |
2913 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2914 | if test "x$LINE" != x ; then | |
2915 | eval "DEFAULT_$LINE" | |
2916 | else | |
2917 | no_cache=1 | |
2918 | fi | |
2919 | ||
2920 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2921 | |
2922 | fi | |
10f2d63a VZ |
2923 | |
2924 | ||
2925 | eval "$ac_cv_use_permissive" | |
2926 | if test "$no_cache" != 1; then | |
2927 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2928 | fi | |
2929 | ||
2930 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2931 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2932 | else |
698dcdb6 | 2933 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2934 | fi |
698dcdb6 | 2935 | |
10f2d63a | 2936 | |
698dcdb6 | 2937 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
b040e242 | 2938 | echo "configure:2939: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2939 | no_cache=0 |
2940 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2941 | if test "${enable_no_deps+set}" = set; then | |
2942 | enableval="$enable_no_deps" | |
698dcdb6 | 2943 | |
10f2d63a VZ |
2944 | if test "$enableval" = yes; then |
2945 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2946 | else | |
2947 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2948 | fi | |
698dcdb6 | 2949 | |
10f2d63a | 2950 | else |
698dcdb6 | 2951 | |
10f2d63a VZ |
2952 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2953 | if test "x$LINE" != x ; then | |
2954 | eval "DEFAULT_$LINE" | |
2955 | else | |
2956 | no_cache=1 | |
2957 | fi | |
2958 | ||
2959 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2960 | |
2961 | fi | |
10f2d63a VZ |
2962 | |
2963 | ||
2964 | eval "$ac_cv_use_no_deps" | |
2965 | if test "$no_cache" != 1; then | |
2966 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2967 | fi | |
2968 | ||
2969 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2970 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2971 | else |
698dcdb6 | 2972 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2973 | fi |
698dcdb6 VZ |
2974 | |
2975 | ||
10f2d63a | 2976 | |
54276ccf | 2977 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
b040e242 | 2978 | echo "configure:2979: checking for --enable-compat20" >&5 |
54276ccf VZ |
2979 | no_cache=0 |
2980 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2981 | if test "${enable_compat20+set}" = set; then | |
2982 | enableval="$enable_compat20" | |
2983 | ||
2984 | if test "$enableval" = yes; then | |
2985 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2986 | else | |
2987 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2988 | fi | |
2989 | ||
2990 | else | |
2991 | ||
2992 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2993 | if test "x$LINE" != x ; then | |
2994 | eval "DEFAULT_$LINE" | |
2995 | else | |
2996 | no_cache=1 | |
2997 | fi | |
2998 | ||
2999 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
3000 | ||
3001 | fi | |
3002 | ||
3003 | ||
3004 | eval "$ac_cv_use_compat20" | |
3005 | if test "$no_cache" != 1; then | |
3006 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3007 | fi | |
3008 | ||
3009 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3010 | echo "$ac_t""yes" 1>&6 | |
3011 | else | |
3012 | echo "$ac_t""no" 1>&6 | |
3013 | fi | |
3014 | ||
3015 | ||
3016 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
b040e242 | 3017 | echo "configure:3018: checking for --enable-compat22" >&5 |
54276ccf VZ |
3018 | no_cache=0 |
3019 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3020 | if test "${enable_compat22+set}" = set; then | |
3021 | enableval="$enable_compat22" | |
3022 | ||
3023 | if test "$enableval" = yes; then | |
3024 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3025 | else | |
3026 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | ||
3031 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3039 | ||
3040 | fi | |
3041 | ||
3042 | ||
3043 | eval "$ac_cv_use_compat22" | |
3044 | if test "$no_cache" != 1; then | |
3045 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3046 | fi | |
3047 | ||
3048 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3049 | echo "$ac_t""yes" 1>&6 | |
3050 | else | |
3051 | echo "$ac_t""no" 1>&6 | |
3052 | fi | |
3053 | ||
3054 | ||
3055 | ||
698dcdb6 VZ |
3056 | |
3057 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
b040e242 | 3058 | echo "configure:3059: checking for --enable-intl" >&5 |
10f2d63a VZ |
3059 | no_cache=0 |
3060 | # Check whether --enable-intl or --disable-intl was given. | |
3061 | if test "${enable_intl+set}" = set; then | |
3062 | enableval="$enable_intl" | |
698dcdb6 | 3063 | |
10f2d63a VZ |
3064 | if test "$enableval" = yes; then |
3065 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3066 | else | |
3067 | ac_cv_use_intl='wxUSE_INTL=no' | |
3068 | fi | |
698dcdb6 | 3069 | |
10f2d63a | 3070 | else |
698dcdb6 | 3071 | |
10f2d63a VZ |
3072 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3073 | if test "x$LINE" != x ; then | |
3074 | eval "DEFAULT_$LINE" | |
3075 | else | |
3076 | no_cache=1 | |
3077 | fi | |
3078 | ||
3079 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3080 | |
3081 | fi | |
10f2d63a VZ |
3082 | |
3083 | ||
3084 | eval "$ac_cv_use_intl" | |
3085 | if test "$no_cache" != 1; then | |
3086 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3087 | fi | |
3088 | ||
3089 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3090 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3091 | else |
698dcdb6 | 3092 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3093 | fi |
698dcdb6 | 3094 | |
10f2d63a | 3095 | |
698dcdb6 | 3096 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
b040e242 | 3097 | echo "configure:3098: checking for --enable-config" >&5 |
10f2d63a VZ |
3098 | no_cache=0 |
3099 | # Check whether --enable-config or --disable-config was given. | |
3100 | if test "${enable_config+set}" = set; then | |
3101 | enableval="$enable_config" | |
698dcdb6 | 3102 | |
10f2d63a VZ |
3103 | if test "$enableval" = yes; then |
3104 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3105 | else | |
3106 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3107 | fi | |
698dcdb6 | 3108 | |
10f2d63a | 3109 | else |
698dcdb6 | 3110 | |
10f2d63a VZ |
3111 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3112 | if test "x$LINE" != x ; then | |
3113 | eval "DEFAULT_$LINE" | |
3114 | else | |
3115 | no_cache=1 | |
3116 | fi | |
3117 | ||
3118 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3119 | |
3120 | fi | |
10f2d63a VZ |
3121 | |
3122 | ||
3123 | eval "$ac_cv_use_config" | |
3124 | if test "$no_cache" != 1; then | |
3125 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3126 | fi | |
3127 | ||
3128 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3129 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3130 | else |
698dcdb6 | 3131 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3132 | fi |
698dcdb6 VZ |
3133 | |
3134 | ||
b12915c1 | 3135 | |
a1622950 | 3136 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
b040e242 | 3137 | echo "configure:3138: checking for --enable-protocols" >&5 |
a1622950 VZ |
3138 | no_cache=0 |
3139 | # Check whether --enable-protocols or --disable-protocols was given. | |
3140 | if test "${enable_protocols+set}" = set; then | |
3141 | enableval="$enable_protocols" | |
3142 | ||
3143 | if test "$enableval" = yes; then | |
3144 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3145 | else | |
3146 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3147 | fi | |
3148 | ||
3149 | else | |
3150 | ||
3151 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3152 | if test "x$LINE" != x ; then | |
3153 | eval "DEFAULT_$LINE" | |
3154 | else | |
3155 | no_cache=1 | |
3156 | fi | |
3157 | ||
3158 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3159 | ||
3160 | fi | |
3161 | ||
3162 | ||
3163 | eval "$ac_cv_use_protocols" | |
3164 | if test "$no_cache" != 1; then | |
3165 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3166 | fi | |
3167 | ||
3168 | if test "$wxUSE_PROTOCOL" = yes; then | |
3169 | echo "$ac_t""yes" 1>&6 | |
3170 | else | |
3171 | echo "$ac_t""no" 1>&6 | |
3172 | fi | |
3173 | ||
3174 | ||
3175 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
b040e242 | 3176 | echo "configure:3177: checking for --enable-ftp" >&5 |
a1622950 VZ |
3177 | no_cache=0 |
3178 | # Check whether --enable-ftp or --disable-ftp was given. | |
3179 | if test "${enable_ftp+set}" = set; then | |
3180 | enableval="$enable_ftp" | |
3181 | ||
3182 | if test "$enableval" = yes; then | |
3183 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3184 | else | |
3185 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3186 | fi | |
3187 | ||
3188 | else | |
3189 | ||
3190 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3191 | if test "x$LINE" != x ; then | |
3192 | eval "DEFAULT_$LINE" | |
3193 | else | |
3194 | no_cache=1 | |
3195 | fi | |
3196 | ||
3197 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3198 | ||
3199 | fi | |
3200 | ||
3201 | ||
3202 | eval "$ac_cv_use_ftp" | |
3203 | if test "$no_cache" != 1; then | |
3204 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3205 | fi | |
3206 | ||
3207 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3208 | echo "$ac_t""yes" 1>&6 | |
3209 | else | |
3210 | echo "$ac_t""no" 1>&6 | |
3211 | fi | |
3212 | ||
3213 | ||
3214 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
b040e242 | 3215 | echo "configure:3216: checking for --enable-http" >&5 |
a1622950 VZ |
3216 | no_cache=0 |
3217 | # Check whether --enable-http or --disable-http was given. | |
3218 | if test "${enable_http+set}" = set; then | |
3219 | enableval="$enable_http" | |
3220 | ||
3221 | if test "$enableval" = yes; then | |
3222 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3223 | else | |
3224 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3225 | fi | |
3226 | ||
3227 | else | |
3228 | ||
3229 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3237 | ||
3238 | fi | |
3239 | ||
3240 | ||
3241 | eval "$ac_cv_use_http" | |
3242 | if test "$no_cache" != 1; then | |
3243 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3244 | fi | |
3245 | ||
3246 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3247 | echo "$ac_t""yes" 1>&6 | |
3248 | else | |
3249 | echo "$ac_t""no" 1>&6 | |
3250 | fi | |
3251 | ||
3252 | ||
3253 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
b040e242 | 3254 | echo "configure:3255: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3255 | no_cache=0 |
3256 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3257 | if test "${enable_fileproto+set}" = set; then | |
3258 | enableval="$enable_fileproto" | |
3259 | ||
3260 | if test "$enableval" = yes; then | |
3261 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3262 | else | |
3263 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3264 | fi | |
3265 | ||
3266 | else | |
3267 | ||
3268 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3269 | if test "x$LINE" != x ; then | |
3270 | eval "DEFAULT_$LINE" | |
3271 | else | |
3272 | no_cache=1 | |
3273 | fi | |
3274 | ||
3275 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3276 | ||
3277 | fi | |
3278 | ||
3279 | ||
3280 | eval "$ac_cv_use_fileproto" | |
3281 | if test "$no_cache" != 1; then | |
3282 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3283 | fi | |
3284 | ||
3285 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3286 | echo "$ac_t""yes" 1>&6 | |
3287 | else | |
3288 | echo "$ac_t""no" 1>&6 | |
3289 | fi | |
3290 | ||
3291 | ||
698dcdb6 | 3292 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
b040e242 | 3293 | echo "configure:3294: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3294 | no_cache=0 |
3295 | # Check whether --enable-sockets or --disable-sockets was given. | |
3296 | if test "${enable_sockets+set}" = set; then | |
3297 | enableval="$enable_sockets" | |
698dcdb6 | 3298 | |
10f2d63a VZ |
3299 | if test "$enableval" = yes; then |
3300 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3301 | else | |
3302 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3303 | fi | |
698dcdb6 | 3304 | |
10f2d63a | 3305 | else |
698dcdb6 | 3306 | |
10f2d63a VZ |
3307 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3308 | if test "x$LINE" != x ; then | |
3309 | eval "DEFAULT_$LINE" | |
3310 | else | |
3311 | no_cache=1 | |
3312 | fi | |
3313 | ||
3314 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3315 | |
3316 | fi | |
10f2d63a VZ |
3317 | |
3318 | ||
3319 | eval "$ac_cv_use_sockets" | |
3320 | if test "$no_cache" != 1; then | |
3321 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3322 | fi | |
3323 | ||
3324 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3326 | else |
698dcdb6 | 3327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3328 | fi |
698dcdb6 | 3329 | |
b12915c1 | 3330 | |
698dcdb6 VZ |
3331 | |
3332 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
b040e242 | 3333 | echo "configure:3334: checking for --enable-ipc" >&5 |
10f2d63a | 3334 | no_cache=0 |
eb4efbdc VZ |
3335 | # Check whether --enable-ipc or --disable-ipc was given. |
3336 | if test "${enable_ipc+set}" = set; then | |
3337 | enableval="$enable_ipc" | |
698dcdb6 | 3338 | |
10f2d63a | 3339 | if test "$enableval" = yes; then |
eb4efbdc | 3340 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3341 | else |
eb4efbdc | 3342 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3343 | fi |
698dcdb6 | 3344 | |
10f2d63a | 3345 | else |
698dcdb6 | 3346 | |
eb4efbdc | 3347 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3348 | if test "x$LINE" != x ; then |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
eb4efbdc | 3354 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3355 | |
3356 | fi | |
10f2d63a VZ |
3357 | |
3358 | ||
eb4efbdc | 3359 | eval "$ac_cv_use_ipc" |
10f2d63a | 3360 | if test "$no_cache" != 1; then |
eb4efbdc | 3361 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3362 | fi |
3363 | ||
eb4efbdc | 3364 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3365 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3366 | else |
698dcdb6 | 3367 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3368 | fi |
698dcdb6 VZ |
3369 | |
3370 | ||
eb4efbdc | 3371 | |
1e6feb95 | 3372 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
b040e242 | 3373 | echo "configure:3374: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3374 | no_cache=0 |
3375 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3376 | if test "${enable_cmdline+set}" = set; then | |
3377 | enableval="$enable_cmdline" | |
3378 | ||
3379 | if test "$enableval" = yes; then | |
3380 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3381 | else | |
3382 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3383 | fi | |
3384 | ||
3385 | else | |
3386 | ||
3387 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3388 | if test "x$LINE" != x ; then | |
3389 | eval "DEFAULT_$LINE" | |
3390 | else | |
3391 | no_cache=1 | |
3392 | fi | |
3393 | ||
3394 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3395 | ||
3396 | fi | |
3397 | ||
3398 | ||
3399 | eval "$ac_cv_use_cmdline" | |
3400 | if test "$no_cache" != 1; then | |
3401 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3402 | fi | |
3403 | ||
3404 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3405 | echo "$ac_t""yes" 1>&6 | |
3406 | else | |
3407 | echo "$ac_t""no" 1>&6 | |
3408 | fi | |
3409 | ||
3410 | ||
3411 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
b040e242 | 3412 | echo "configure:3413: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3413 | no_cache=0 |
3414 | # Check whether --enable-datetime or --disable-datetime was given. | |
3415 | if test "${enable_datetime+set}" = set; then | |
3416 | enableval="$enable_datetime" | |
3417 | ||
3418 | if test "$enableval" = yes; then | |
3419 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3420 | else | |
3421 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3422 | fi | |
3423 | ||
3424 | else | |
3425 | ||
3426 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3427 | if test "x$LINE" != x ; then | |
3428 | eval "DEFAULT_$LINE" | |
3429 | else | |
3430 | no_cache=1 | |
3431 | fi | |
3432 | ||
3433 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3434 | ||
3435 | fi | |
3436 | ||
3437 | ||
3438 | eval "$ac_cv_use_datetime" | |
3439 | if test "$no_cache" != 1; then | |
3440 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3441 | fi | |
3442 | ||
3443 | if test "$wxUSE_DATETIME" = yes; then | |
3444 | echo "$ac_t""yes" 1>&6 | |
3445 | else | |
3446 | echo "$ac_t""no" 1>&6 | |
3447 | fi | |
3448 | ||
3449 | ||
3450 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
b040e242 | 3451 | echo "configure:3452: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3452 | no_cache=0 |
3453 | # Check whether --enable-timedate or --disable-timedate was given. | |
3454 | if test "${enable_timedate+set}" = set; then | |
3455 | enableval="$enable_timedate" | |
3456 | ||
3457 | if test "$enableval" = yes; then | |
3458 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3459 | else | |
3460 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3461 | fi | |
3462 | ||
3463 | else | |
3464 | ||
3465 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3466 | if test "x$LINE" != x ; then | |
3467 | eval "DEFAULT_$LINE" | |
3468 | else | |
3469 | no_cache=1 | |
3470 | fi | |
3471 | ||
3472 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3473 | ||
3474 | fi | |
3475 | ||
3476 | ||
3477 | eval "$ac_cv_use_timedate" | |
3478 | if test "$no_cache" != 1; then | |
3479 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3480 | fi | |
3481 | ||
3482 | if test "$wxUSE_TIMEDATE" = yes; then | |
3483 | echo "$ac_t""yes" 1>&6 | |
3484 | else | |
3485 | echo "$ac_t""no" 1>&6 | |
3486 | fi | |
3487 | ||
3488 | ||
3489 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
b040e242 | 3490 | echo "configure:3491: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3491 | no_cache=0 |
3492 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3493 | if test "${enable_stopwatch+set}" = set; then | |
3494 | enableval="$enable_stopwatch" | |
3495 | ||
3496 | if test "$enableval" = yes; then | |
3497 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3498 | else | |
3499 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3500 | fi | |
3501 | ||
3502 | else | |
3503 | ||
3504 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3505 | if test "x$LINE" != x ; then | |
3506 | eval "DEFAULT_$LINE" | |
3507 | else | |
3508 | no_cache=1 | |
3509 | fi | |
3510 | ||
3511 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3512 | ||
3513 | fi | |
3514 | ||
3515 | ||
3516 | eval "$ac_cv_use_stopwatch" | |
3517 | if test "$no_cache" != 1; then | |
3518 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3519 | fi | |
3520 | ||
3521 | if test "$wxUSE_STOPWATCH" = yes; then | |
3522 | echo "$ac_t""yes" 1>&6 | |
3523 | else | |
3524 | echo "$ac_t""no" 1>&6 | |
3525 | fi | |
3526 | ||
3527 | ||
698dcdb6 | 3528 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
b040e242 | 3529 | echo "configure:3530: checking for --enable-dialupman" >&5 |
10f2d63a | 3530 | no_cache=0 |
eb4efbdc VZ |
3531 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3532 | if test "${enable_dialupman+set}" = set; then | |
3533 | enableval="$enable_dialupman" | |
698dcdb6 | 3534 | |
10f2d63a | 3535 | if test "$enableval" = yes; then |
eb4efbdc | 3536 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3537 | else |
eb4efbdc | 3538 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3539 | fi |
698dcdb6 | 3540 | |
10f2d63a | 3541 | else |
698dcdb6 | 3542 | |
eb4efbdc | 3543 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3544 | if test "x$LINE" != x ; then |
3545 | eval "DEFAULT_$LINE" | |
3546 | else | |
3547 | no_cache=1 | |
3548 | fi | |
3549 | ||
eb4efbdc | 3550 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3551 | |
3552 | fi | |
10f2d63a VZ |
3553 | |
3554 | ||
eb4efbdc | 3555 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3556 | if test "$no_cache" != 1; then |
eb4efbdc | 3557 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3558 | fi |
3559 | ||
eb4efbdc | 3560 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3561 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3562 | else |
698dcdb6 | 3563 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3564 | fi |
698dcdb6 | 3565 | |
10f2d63a | 3566 | |
698dcdb6 | 3567 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
b040e242 | 3568 | echo "configure:3569: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3569 | no_cache=0 |
3570 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3571 | if test "${enable_apple_ieee+set}" = set; then | |
3572 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3573 | |
10f2d63a VZ |
3574 | if test "$enableval" = yes; then |
3575 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3576 | else | |
3577 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3578 | fi | |
698dcdb6 | 3579 | |
10f2d63a | 3580 | else |
698dcdb6 | 3581 | |
10f2d63a VZ |
3582 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3583 | if test "x$LINE" != x ; then | |
3584 | eval "DEFAULT_$LINE" | |
3585 | else | |
3586 | no_cache=1 | |
3587 | fi | |
3588 | ||
3589 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3590 | |
3591 | fi | |
10f2d63a VZ |
3592 | |
3593 | ||
3594 | eval "$ac_cv_use_apple_ieee" | |
3595 | if test "$no_cache" != 1; then | |
3596 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3597 | fi | |
3598 | ||
3599 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3601 | else |
698dcdb6 | 3602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3603 | fi |
698dcdb6 | 3604 | |
10f2d63a | 3605 | |
1e6feb95 | 3606 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
b040e242 | 3607 | echo "configure:3608: checking for --enable-timer" >&5 |
10f2d63a | 3608 | no_cache=0 |
1e6feb95 VZ |
3609 | # Check whether --enable-timer or --disable-timer was given. |
3610 | if test "${enable_timer+set}" = set; then | |
3611 | enableval="$enable_timer" | |
698dcdb6 | 3612 | |
10f2d63a | 3613 | if test "$enableval" = yes; then |
1e6feb95 | 3614 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3615 | else |
1e6feb95 | 3616 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3617 | fi |
698dcdb6 | 3618 | |
10f2d63a | 3619 | else |
698dcdb6 | 3620 | |
1e6feb95 | 3621 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3622 | if test "x$LINE" != x ; then |
3623 | eval "DEFAULT_$LINE" | |
3624 | else | |
3625 | no_cache=1 | |
3626 | fi | |
3627 | ||
1e6feb95 | 3628 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3629 | |
3630 | fi | |
10f2d63a VZ |
3631 | |
3632 | ||
1e6feb95 | 3633 | eval "$ac_cv_use_timer" |
10f2d63a | 3634 | if test "$no_cache" != 1; then |
1e6feb95 | 3635 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3636 | fi |
3637 | ||
1e6feb95 | 3638 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3639 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3640 | else |
698dcdb6 | 3641 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3642 | fi |
698dcdb6 | 3643 | |
10f2d63a | 3644 | |
698dcdb6 | 3645 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
b040e242 | 3646 | echo "configure:3647: checking for --enable-wave" >&5 |
10f2d63a VZ |
3647 | no_cache=0 |
3648 | # Check whether --enable-wave or --disable-wave was given. | |
3649 | if test "${enable_wave+set}" = set; then | |
3650 | enableval="$enable_wave" | |
698dcdb6 | 3651 | |
10f2d63a VZ |
3652 | if test "$enableval" = yes; then |
3653 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3654 | else | |
3655 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3656 | fi | |
698dcdb6 | 3657 | |
10f2d63a | 3658 | else |
698dcdb6 | 3659 | |
10f2d63a VZ |
3660 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3661 | if test "x$LINE" != x ; then | |
3662 | eval "DEFAULT_$LINE" | |
3663 | else | |
3664 | no_cache=1 | |
3665 | fi | |
3666 | ||
3667 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3668 | |
3669 | fi | |
10f2d63a VZ |
3670 | |
3671 | ||
3672 | eval "$ac_cv_use_wave" | |
3673 | if test "$no_cache" != 1; then | |
3674 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3675 | fi | |
3676 | ||
3677 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3679 | else |
698dcdb6 | 3680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3681 | fi |
698dcdb6 | 3682 | |
10f2d63a | 3683 | |
698dcdb6 | 3684 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
b040e242 | 3685 | echo "configure:3686: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3686 | no_cache=0 |
3687 | # Check whether --enable-fraction or --disable-fraction was given. | |
3688 | if test "${enable_fraction+set}" = set; then | |
3689 | enableval="$enable_fraction" | |
698dcdb6 | 3690 | |
10f2d63a VZ |
3691 | if test "$enableval" = yes; then |
3692 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3693 | else | |
3694 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3695 | fi | |
698dcdb6 | 3696 | |
10f2d63a | 3697 | else |
698dcdb6 | 3698 | |
10f2d63a VZ |
3699 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3700 | if test "x$LINE" != x ; then | |
3701 | eval "DEFAULT_$LINE" | |
3702 | else | |
3703 | no_cache=1 | |
3704 | fi | |
3705 | ||
3706 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3707 | |
3708 | fi | |
10f2d63a VZ |
3709 | |
3710 | ||
3711 | eval "$ac_cv_use_fraction" | |
3712 | if test "$no_cache" != 1; then | |
3713 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3714 | fi | |
3715 | ||
3716 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3717 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3718 | else |
698dcdb6 | 3719 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3720 | fi |
698dcdb6 | 3721 | |
10f2d63a | 3722 | |
698dcdb6 | 3723 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
b040e242 | 3724 | echo "configure:3725: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3725 | no_cache=0 |
3726 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3727 | if test "${enable_dynlib+set}" = set; then | |
3728 | enableval="$enable_dynlib" | |
698dcdb6 | 3729 | |
10f2d63a VZ |
3730 | if test "$enableval" = yes; then |
3731 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3732 | else | |
3733 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3734 | fi | |
698dcdb6 | 3735 | |
10f2d63a | 3736 | else |
698dcdb6 | 3737 | |
10f2d63a VZ |
3738 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3739 | if test "x$LINE" != x ; then | |
3740 | eval "DEFAULT_$LINE" | |
3741 | else | |
3742 | no_cache=1 | |
3743 | fi | |
3744 | ||
3745 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3746 | |
3747 | fi | |
10f2d63a VZ |
3748 | |
3749 | ||
3750 | eval "$ac_cv_use_dynlib" | |
3751 | if test "$no_cache" != 1; then | |
3752 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3753 | fi | |
3754 | ||
3755 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3756 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3757 | else |
698dcdb6 | 3758 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3759 | fi |
698dcdb6 | 3760 | |
10f2d63a | 3761 | |
0b9ab0bd | 3762 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
b040e242 | 3763 | echo "configure:3764: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3764 | no_cache=0 |
3765 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3766 | if test "${enable_dynamicloader+set}" = set; then | |
3767 | enableval="$enable_dynamicloader" | |
3768 | ||
3769 | if test "$enableval" = yes; then | |
3770 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3771 | else | |
3772 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3773 | fi | |
3774 | ||
3775 | else | |
3776 | ||
3777 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3778 | if test "x$LINE" != x ; then | |
3779 | eval "DEFAULT_$LINE" | |
3780 | else | |
3781 | no_cache=1 | |
3782 | fi | |
3783 | ||
3784 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3785 | ||
3786 | fi | |
3787 | ||
3788 | ||
3789 | eval "$ac_cv_use_dynamicloader" | |
3790 | if test "$no_cache" != 1; then | |
3791 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3792 | fi | |
3793 | ||
3794 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3795 | echo "$ac_t""yes" 1>&6 | |
3796 | else | |
3797 | echo "$ac_t""no" 1>&6 | |
3798 | fi | |
3799 | ||
3800 | ||
698dcdb6 | 3801 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
b040e242 | 3802 | echo "configure:3803: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3803 | no_cache=0 |
3804 | # Check whether --enable-longlong or --disable-longlong was given. | |
3805 | if test "${enable_longlong+set}" = set; then | |
3806 | enableval="$enable_longlong" | |
698dcdb6 | 3807 | |
10f2d63a VZ |
3808 | if test "$enableval" = yes; then |
3809 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3810 | else | |
3811 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3812 | fi | |
698dcdb6 | 3813 | |
10f2d63a | 3814 | else |
698dcdb6 | 3815 | |
10f2d63a VZ |
3816 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3817 | if test "x$LINE" != x ; then | |
3818 | eval "DEFAULT_$LINE" | |
3819 | else | |
3820 | no_cache=1 | |
3821 | fi | |
3822 | ||
3823 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3824 | |
3825 | fi | |
10f2d63a VZ |
3826 | |
3827 | ||
3828 | eval "$ac_cv_use_longlong" | |
3829 | if test "$no_cache" != 1; then | |
3830 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3831 | fi | |
3832 | ||
3833 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3834 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3835 | else |
698dcdb6 | 3836 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3837 | fi |
698dcdb6 | 3838 | |
10f2d63a | 3839 | |
698dcdb6 | 3840 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
b040e242 | 3841 | echo "configure:3842: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3842 | no_cache=0 |
3843 | # Check whether --enable-geometry or --disable-geometry was given. | |
3844 | if test "${enable_geometry+set}" = set; then | |
3845 | enableval="$enable_geometry" | |
698dcdb6 | 3846 | |
e8f65ba6 RR |
3847 | if test "$enableval" = yes; then |
3848 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3849 | else | |
3850 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3851 | fi | |
698dcdb6 | 3852 | |
e8f65ba6 | 3853 | else |
698dcdb6 | 3854 | |
e8f65ba6 RR |
3855 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3856 | if test "x$LINE" != x ; then | |
3857 | eval "DEFAULT_$LINE" | |
3858 | else | |
3859 | no_cache=1 | |
3860 | fi | |
3861 | ||
3862 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3863 | |
3864 | fi | |
e8f65ba6 RR |
3865 | |
3866 | ||
3867 | eval "$ac_cv_use_geometry" | |
3868 | if test "$no_cache" != 1; then | |
3869 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3870 | fi | |
3871 | ||
3872 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3873 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3874 | else |
698dcdb6 | 3875 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3876 | fi |
698dcdb6 | 3877 | |
e8f65ba6 | 3878 | |
698dcdb6 | 3879 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
b040e242 | 3880 | echo "configure:3881: checking for --enable-log" >&5 |
10f2d63a VZ |
3881 | no_cache=0 |
3882 | # Check whether --enable-log or --disable-log was given. | |
3883 | if test "${enable_log+set}" = set; then | |
3884 | enableval="$enable_log" | |
698dcdb6 | 3885 | |
10f2d63a VZ |
3886 | if test "$enableval" = yes; then |
3887 | ac_cv_use_log='wxUSE_LOG=yes' | |
3888 | else | |
3889 | ac_cv_use_log='wxUSE_LOG=no' | |
3890 | fi | |
698dcdb6 | 3891 | |
10f2d63a | 3892 | else |
698dcdb6 | 3893 | |
10f2d63a VZ |
3894 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3895 | if test "x$LINE" != x ; then | |
3896 | eval "DEFAULT_$LINE" | |
3897 | else | |
3898 | no_cache=1 | |
3899 | fi | |
3900 | ||
3901 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3902 | |
3903 | fi | |
10f2d63a VZ |
3904 | |
3905 | ||
3906 | eval "$ac_cv_use_log" | |
3907 | if test "$no_cache" != 1; then | |
3908 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3909 | fi | |
3910 | ||
3911 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3912 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3913 | else |
698dcdb6 | 3914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3915 | fi |
698dcdb6 | 3916 | |
10f2d63a | 3917 | |
698dcdb6 | 3918 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
b040e242 | 3919 | echo "configure:3920: checking for --enable-streams" >&5 |
10f2d63a VZ |
3920 | no_cache=0 |
3921 | # Check whether --enable-streams or --disable-streams was given. | |
3922 | if test "${enable_streams+set}" = set; then | |
3923 | enableval="$enable_streams" | |
698dcdb6 | 3924 | |
10f2d63a VZ |
3925 | if test "$enableval" = yes; then |
3926 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3927 | else | |
3928 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3929 | fi | |
698dcdb6 | 3930 | |
10f2d63a | 3931 | else |
698dcdb6 | 3932 | |
10f2d63a VZ |
3933 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3934 | if test "x$LINE" != x ; then | |
3935 | eval "DEFAULT_$LINE" | |
3936 | else | |
3937 | no_cache=1 | |
3938 | fi | |
3939 | ||
3940 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3941 | |
3942 | fi | |
10f2d63a VZ |
3943 | |
3944 | ||
3945 | eval "$ac_cv_use_streams" | |
3946 | if test "$no_cache" != 1; then | |
3947 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3948 | fi | |
3949 | ||
3950 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3951 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3952 | else |
698dcdb6 | 3953 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3954 | fi |
698dcdb6 | 3955 | |
10f2d63a | 3956 | |
698dcdb6 | 3957 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
b040e242 | 3958 | echo "configure:3959: checking for --enable-file" >&5 |
10f2d63a VZ |
3959 | no_cache=0 |
3960 | # Check whether --enable-file or --disable-file was given. | |
3961 | if test "${enable_file+set}" = set; then | |
3962 | enableval="$enable_file" | |
698dcdb6 | 3963 | |
10f2d63a VZ |
3964 | if test "$enableval" = yes; then |
3965 | ac_cv_use_file='wxUSE_FILE=yes' | |
3966 | else | |
3967 | ac_cv_use_file='wxUSE_FILE=no' | |
3968 | fi | |
698dcdb6 | 3969 | |
10f2d63a | 3970 | else |
698dcdb6 | 3971 | |
10f2d63a VZ |
3972 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3973 | if test "x$LINE" != x ; then | |
3974 | eval "DEFAULT_$LINE" | |
3975 | else | |
3976 | no_cache=1 | |
3977 | fi | |
3978 | ||
3979 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3980 | |
3981 | fi | |
10f2d63a VZ |
3982 | |
3983 | ||
3984 | eval "$ac_cv_use_file" | |
3985 | if test "$no_cache" != 1; then | |
3986 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3987 | fi | |
3988 | ||
3989 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3990 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3991 | else |
698dcdb6 | 3992 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3993 | fi |
698dcdb6 | 3994 | |
10f2d63a | 3995 | |
1e6feb95 | 3996 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
b040e242 | 3997 | echo "configure:3998: checking for --enable-ffile" >&5 |
10f2d63a | 3998 | no_cache=0 |
1e6feb95 VZ |
3999 | # Check whether --enable-ffile or --disable-ffile was given. |
4000 | if test "${enable_ffile+set}" = set; then | |
4001 | enableval="$enable_ffile" | |
698dcdb6 | 4002 | |
10f2d63a | 4003 | if test "$enableval" = yes; then |
1e6feb95 | 4004 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4005 | else |
1e6feb95 | 4006 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4007 | fi |
698dcdb6 | 4008 | |
10f2d63a | 4009 | else |
698dcdb6 | 4010 | |
1e6feb95 | 4011 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4012 | if test "x$LINE" != x ; then |
4013 | eval "DEFAULT_$LINE" | |
4014 | else | |
4015 | no_cache=1 | |
4016 | fi | |
4017 | ||
1e6feb95 | 4018 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
4019 | |
4020 | fi | |
10f2d63a VZ |
4021 | |
4022 | ||
1e6feb95 | 4023 | eval "$ac_cv_use_ffile" |
10f2d63a | 4024 | if test "$no_cache" != 1; then |
1e6feb95 | 4025 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4026 | fi |
4027 | ||
1e6feb95 | 4028 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 4029 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4030 | else |
698dcdb6 | 4031 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4032 | fi |
698dcdb6 | 4033 | |
10f2d63a | 4034 | |
a3a584a7 | 4035 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
b040e242 | 4036 | echo "configure:4037: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4037 | no_cache=0 |
4038 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4039 | if test "${enable_textbuf+set}" = set; then | |
4040 | enableval="$enable_textbuf" | |
4041 | ||
4042 | if test "$enableval" = yes; then | |
4043 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4044 | else | |
4045 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4046 | fi | |
4047 | ||
4048 | else | |
4049 | ||
4050 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4051 | if test "x$LINE" != x ; then | |
4052 | eval "DEFAULT_$LINE" | |
4053 | else | |
4054 | no_cache=1 | |
4055 | fi | |
4056 | ||
4057 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4058 | ||
4059 | fi | |
4060 | ||
4061 | ||
4062 | eval "$ac_cv_use_textbuf" | |
4063 | if test "$no_cache" != 1; then | |
4064 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4065 | fi | |
4066 | ||
4067 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4068 | echo "$ac_t""yes" 1>&6 | |
4069 | else | |
4070 | echo "$ac_t""no" 1>&6 | |
4071 | fi | |
4072 | ||
4073 | ||
1e6feb95 | 4074 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
b040e242 | 4075 | echo "configure:4076: checking for --enable-textfile" >&5 |
10f2d63a | 4076 | no_cache=0 |
1e6feb95 VZ |
4077 | # Check whether --enable-textfile or --disable-textfile was given. |
4078 | if test "${enable_textfile+set}" = set; then | |
4079 | enableval="$enable_textfile" | |
698dcdb6 | 4080 | |
10f2d63a | 4081 | if test "$enableval" = yes; then |
1e6feb95 | 4082 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4083 | else |
1e6feb95 | 4084 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4085 | fi |
698dcdb6 | 4086 | |
10f2d63a | 4087 | else |
698dcdb6 | 4088 | |
1e6feb95 | 4089 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4090 | if test "x$LINE" != x ; then |
4091 | eval "DEFAULT_$LINE" | |
4092 | else | |
4093 | no_cache=1 | |
4094 | fi | |
4095 | ||
1e6feb95 | 4096 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4097 | |
4098 | fi | |
10f2d63a VZ |
4099 | |
4100 | ||
1e6feb95 | 4101 | eval "$ac_cv_use_textfile" |
10f2d63a | 4102 | if test "$no_cache" != 1; then |
1e6feb95 | 4103 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4104 | fi |
4105 | ||
1e6feb95 | 4106 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4107 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4108 | else |
698dcdb6 | 4109 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4110 | fi |
698dcdb6 | 4111 | |
10f2d63a | 4112 | |
1e6feb95 | 4113 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
b040e242 | 4114 | echo "configure:4115: checking for --enable-fontmap" >&5 |
10f2d63a | 4115 | no_cache=0 |
1e6feb95 VZ |
4116 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4117 | if test "${enable_fontmap+set}" = set; then | |
4118 | enableval="$enable_fontmap" | |
698dcdb6 | 4119 | |
10f2d63a | 4120 | if test "$enableval" = yes; then |
1e6feb95 | 4121 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4122 | else |
1e6feb95 | 4123 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4124 | fi |
698dcdb6 | 4125 | |
10f2d63a | 4126 | else |
698dcdb6 | 4127 | |
1e6feb95 | 4128 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4129 | if test "x$LINE" != x ; then |
4130 | eval "DEFAULT_$LINE" | |
4131 | else | |
4132 | no_cache=1 | |
4133 | fi | |
4134 | ||
1e6feb95 | 4135 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4136 | |
4137 | fi | |
10f2d63a VZ |
4138 | |
4139 | ||
1e6feb95 | 4140 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4141 | if test "$no_cache" != 1; then |
1e6feb95 | 4142 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4143 | fi |
4144 | ||
1e6feb95 | 4145 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4146 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4147 | else |
698dcdb6 | 4148 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4149 | fi |
698dcdb6 | 4150 | |
10f2d63a | 4151 | |
1e6feb95 | 4152 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
b040e242 | 4153 | echo "configure:4154: checking for --enable-unicode" >&5 |
10f2d63a | 4154 | no_cache=0 |
1e6feb95 VZ |
4155 | # Check whether --enable-unicode or --disable-unicode was given. |
4156 | if test "${enable_unicode+set}" = set; then | |
4157 | enableval="$enable_unicode" | |
4158 | ||
4159 | if test "$enableval" = yes; then | |
4160 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4161 | else | |
4162 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4163 | fi | |
4164 | ||
4165 | else | |
4166 | ||
4167 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4168 | if test "x$LINE" != x ; then | |
4169 | eval "DEFAULT_$LINE" | |
4170 | else | |
4171 | no_cache=1 | |
4172 | fi | |
4173 | ||
4174 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4175 | ||
4176 | fi | |
4177 | ||
4178 | ||
4179 | eval "$ac_cv_use_unicode" | |
4180 | if test "$no_cache" != 1; then | |
4181 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4182 | fi | |
4183 | ||
4184 | if test "$wxUSE_UNICODE" = yes; then | |
4185 | echo "$ac_t""yes" 1>&6 | |
4186 | else | |
4187 | echo "$ac_t""no" 1>&6 | |
4188 | fi | |
4189 | ||
4190 | ||
a72a4bfa | 4191 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
b040e242 | 4192 | echo "configure:4193: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4193 | no_cache=0 |
4194 | # Check whether --enable-mslu or --disable-mslu was given. | |
4195 | if test "${enable_mslu+set}" = set; then | |
4196 | enableval="$enable_mslu" | |
4197 | ||
4198 | if test "$enableval" = yes; then | |
4199 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4200 | else | |
4201 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4202 | fi | |
4203 | ||
4204 | else | |
4205 | ||
4206 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4207 | if test "x$LINE" != x ; then | |
4208 | eval "DEFAULT_$LINE" | |
4209 | else | |
4210 | no_cache=1 | |
4211 | fi | |
4212 | ||
4213 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4214 | ||
4215 | fi | |
4216 | ||
4217 | ||
4218 | eval "$ac_cv_use_mslu" | |
4219 | if test "$no_cache" != 1; then | |
4220 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4221 | fi | |
4222 | ||
4223 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4224 | echo "$ac_t""yes" 1>&6 | |
4225 | else | |
4226 | echo "$ac_t""no" 1>&6 | |
4227 | fi | |
4228 | ||
4229 | ||
1e6feb95 | 4230 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
b040e242 | 4231 | echo "configure:4232: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4232 | no_cache=0 |
4233 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4234 | if test "${enable_wxprintfv+set}" = set; then | |
4235 | enableval="$enable_wxprintfv" | |
4236 | ||
4237 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4238 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4239 | else | |
4240 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4241 | fi | |
698dcdb6 | 4242 | |
10f2d63a | 4243 | else |
698dcdb6 | 4244 | |
10f2d63a VZ |
4245 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4246 | if test "x$LINE" != x ; then | |
4247 | eval "DEFAULT_$LINE" | |
4248 | else | |
4249 | no_cache=1 | |
4250 | fi | |
4251 | ||
4252 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4253 | |
4254 | fi | |
10f2d63a VZ |
4255 | |
4256 | ||
4257 | eval "$ac_cv_use_wxprintfv" | |
4258 | if test "$no_cache" != 1; then | |
4259 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4260 | fi | |
4261 | ||
4262 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4263 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4264 | else |
698dcdb6 | 4265 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4266 | fi |
698dcdb6 | 4267 | |
10f2d63a | 4268 | |
698dcdb6 | 4269 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
b040e242 | 4270 | echo "configure:4271: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4271 | no_cache=0 |
4272 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4273 | if test "${enable_std_iostreams+set}" = set; then | |
4274 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4275 | |
10f2d63a VZ |
4276 | if test "$enableval" = yes; then |
4277 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4278 | else | |
4279 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4280 | fi | |
698dcdb6 | 4281 | |
10f2d63a | 4282 | else |
698dcdb6 | 4283 | |
10f2d63a VZ |
4284 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4285 | if test "x$LINE" != x ; then | |
4286 | eval "DEFAULT_$LINE" | |
4287 | else | |
4288 | no_cache=1 | |
4289 | fi | |
4290 | ||
4291 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4292 | |
4293 | fi | |
10f2d63a VZ |
4294 | |
4295 | ||
4296 | eval "$ac_cv_use_std_iostreams" | |
4297 | if test "$no_cache" != 1; then | |
4298 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4299 | fi | |
4300 | ||
4301 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4302 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4303 | else |
698dcdb6 | 4304 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4305 | fi |
698dcdb6 | 4306 | |
10f2d63a | 4307 | |
698dcdb6 | 4308 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
b040e242 | 4309 | echo "configure:4310: checking for --enable-filesystem" >&5 |
24528b0c VS |
4310 | no_cache=0 |
4311 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4312 | if test "${enable_filesystem+set}" = set; then | |
4313 | enableval="$enable_filesystem" | |
698dcdb6 | 4314 | |
24528b0c VS |
4315 | if test "$enableval" = yes; then |
4316 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4317 | else | |
4318 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4319 | fi | |
698dcdb6 | 4320 | |
24528b0c | 4321 | else |
698dcdb6 | 4322 | |
24528b0c VS |
4323 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4324 | if test "x$LINE" != x ; then | |
4325 | eval "DEFAULT_$LINE" | |
4326 | else | |
4327 | no_cache=1 | |
4328 | fi | |
4329 | ||
4330 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4331 | |
4332 | fi | |
24528b0c VS |
4333 | |
4334 | ||
4335 | eval "$ac_cv_use_filesystem" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4341 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4342 | else |
698dcdb6 | 4343 | echo "$ac_t""no" 1>&6 |
24528b0c | 4344 | fi |
698dcdb6 | 4345 | |
24528b0c | 4346 | |
698dcdb6 | 4347 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
b040e242 | 4348 | echo "configure:4349: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4349 | no_cache=0 |
4350 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4351 | if test "${enable_fs_inet+set}" = set; then | |
4352 | enableval="$enable_fs_inet" | |
698dcdb6 | 4353 | |
10f2d63a VZ |
4354 | if test "$enableval" = yes; then |
4355 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4356 | else | |
4357 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4358 | fi | |
698dcdb6 | 4359 | |
10f2d63a | 4360 | else |
698dcdb6 | 4361 | |
10f2d63a VZ |
4362 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4363 | if test "x$LINE" != x ; then | |
4364 | eval "DEFAULT_$LINE" | |
4365 | else | |
4366 | no_cache=1 | |
4367 | fi | |
4368 | ||
4369 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4370 | |
4371 | fi | |
10f2d63a VZ |
4372 | |
4373 | ||
4374 | eval "$ac_cv_use_fs_inet" | |
4375 | if test "$no_cache" != 1; then | |
4376 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4377 | fi | |
4378 | ||
4379 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4380 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4381 | else |
698dcdb6 | 4382 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4383 | fi |
698dcdb6 | 4384 | |
10f2d63a | 4385 | |
698dcdb6 | 4386 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
b040e242 | 4387 | echo "configure:4388: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4388 | no_cache=0 |
4389 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4390 | if test "${enable_fs_zip+set}" = set; then | |
4391 | enableval="$enable_fs_zip" | |
698dcdb6 | 4392 | |
10f2d63a VZ |
4393 | if test "$enableval" = yes; then |
4394 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4395 | else | |
4396 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4397 | fi | |
698dcdb6 | 4398 | |
10f2d63a | 4399 | else |
698dcdb6 | 4400 | |
10f2d63a VZ |
4401 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4402 | if test "x$LINE" != x ; then | |
4403 | eval "DEFAULT_$LINE" | |
4404 | else | |
4405 | no_cache=1 | |
4406 | fi | |
4407 | ||
4408 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4409 | |
4410 | fi | |
10f2d63a VZ |
4411 | |
4412 | ||
4413 | eval "$ac_cv_use_fs_zip" | |
4414 | if test "$no_cache" != 1; then | |
4415 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4416 | fi | |
4417 | ||
4418 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4419 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4420 | else |
698dcdb6 | 4421 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4422 | fi |
698dcdb6 | 4423 | |
10f2d63a | 4424 | |
698dcdb6 | 4425 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
b040e242 | 4426 | echo "configure:4427: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4427 | no_cache=0 |
4428 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4429 | if test "${enable_zipstream+set}" = set; then | |
4430 | enableval="$enable_zipstream" | |
698dcdb6 | 4431 | |
10f2d63a VZ |
4432 | if test "$enableval" = yes; then |
4433 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4434 | else | |
4435 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4436 | fi | |
698dcdb6 | 4437 | |
10f2d63a | 4438 | else |
698dcdb6 | 4439 | |
10f2d63a VZ |
4440 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4441 | if test "x$LINE" != x ; then | |
4442 | eval "DEFAULT_$LINE" | |
4443 | else | |
4444 | no_cache=1 | |
4445 | fi | |
4446 | ||
4447 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4448 | |
4449 | fi | |
10f2d63a VZ |
4450 | |
4451 | ||
4452 | eval "$ac_cv_use_zipstream" | |
4453 | if test "$no_cache" != 1; then | |
4454 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4455 | fi | |
4456 | ||
4457 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4458 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4459 | else |
698dcdb6 | 4460 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4461 | fi |
698dcdb6 | 4462 | |
10f2d63a | 4463 | |
698dcdb6 VZ |
4464 | |
4465 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
b040e242 | 4466 | echo "configure:4467: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4467 | no_cache=0 |
4468 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4469 | if test "${enable_catch_segvs+set}" = set; then | |
4470 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4471 | |
eb4efbdc VZ |
4472 | if test "$enableval" = yes; then |
4473 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4474 | else | |
4475 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4476 | fi | |
698dcdb6 | 4477 | |
eb4efbdc | 4478 | else |
698dcdb6 | 4479 | |
eb4efbdc VZ |
4480 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4481 | if test "x$LINE" != x ; then | |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
4487 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4488 | |
4489 | fi | |
eb4efbdc VZ |
4490 | |
4491 | ||
4492 | eval "$ac_cv_use_catch_segvs" | |
4493 | if test "$no_cache" != 1; then | |
4494 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4495 | fi | |
4496 | ||
4497 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4498 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4499 | else |
698dcdb6 | 4500 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4501 | fi |
698dcdb6 | 4502 | |
eb4efbdc | 4503 | |
698dcdb6 | 4504 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
b040e242 | 4505 | echo "configure:4506: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4506 | no_cache=0 |
4507 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4508 | if test "${enable_snglinst+set}" = set; then | |
4509 | enableval="$enable_snglinst" | |
698dcdb6 | 4510 | |
4f3c5f06 VZ |
4511 | if test "$enableval" = yes; then |
4512 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4513 | else | |
4514 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4515 | fi | |
698dcdb6 | 4516 | |
4f3c5f06 | 4517 | else |
698dcdb6 | 4518 | |
4f3c5f06 VZ |
4519 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4520 | if test "x$LINE" != x ; then | |
4521 | eval "DEFAULT_$LINE" | |
4522 | else | |
4523 | no_cache=1 | |
4524 | fi | |
4525 | ||
4526 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4527 | |
4528 | fi | |
4f3c5f06 VZ |
4529 | |
4530 | ||
4531 | eval "$ac_cv_use_snglinst" | |
4532 | if test "$no_cache" != 1; then | |
4533 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4534 | fi | |
4535 | ||
4536 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4537 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4538 | else |
698dcdb6 | 4539 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4540 | fi |
698dcdb6 VZ |
4541 | |
4542 | ||
eb4efbdc | 4543 | |
1e6feb95 | 4544 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
b040e242 | 4545 | echo "configure:4546: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4546 | no_cache=0 |
4547 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4548 | if test "${enable_mimetype+set}" = set; then | |
4549 | enableval="$enable_mimetype" | |
4550 | ||
4551 | if test "$enableval" = yes; then | |
4552 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4553 | else | |
4554 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4555 | fi | |
4556 | ||
4557 | else | |
4558 | ||
4559 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4560 | if test "x$LINE" != x ; then | |
4561 | eval "DEFAULT_$LINE" | |
4562 | else | |
4563 | no_cache=1 | |
4564 | fi | |
4565 | ||
4566 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4567 | ||
4568 | fi | |
4569 | ||
4570 | ||
4571 | eval "$ac_cv_use_mimetype" | |
4572 | if test "$no_cache" != 1; then | |
4573 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4574 | fi | |
4575 | ||
4576 | if test "$wxUSE_MIMETYPE" = yes; then | |
4577 | echo "$ac_t""yes" 1>&6 | |
4578 | else | |
4579 | echo "$ac_t""no" 1>&6 | |
4580 | fi | |
4581 | ||
4582 | ||
3e44f09d | 4583 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
b040e242 | 4584 | echo "configure:4585: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4585 | no_cache=0 |
4586 | # Check whether --enable-system_options or --disable-system_options was given. | |
4587 | if test "${enable_system_options+set}" = set; then | |
4588 | enableval="$enable_system_options" | |
4589 | ||
4590 | if test "$enableval" = yes; then | |
4591 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4592 | else | |
4593 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4594 | fi | |
4595 | ||
4596 | else | |
4597 | ||
4598 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4599 | if test "x$LINE" != x ; then | |
4600 | eval "DEFAULT_$LINE" | |
4601 | else | |
4602 | no_cache=1 | |
4603 | fi | |
4604 | ||
4605 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4606 | ||
4607 | fi | |
4608 | ||
4609 | ||
4610 | eval "$ac_cv_use_system_options" | |
4611 | if test "$no_cache" != 1; then | |
4612 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4613 | fi | |
4614 | ||
4615 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4616 | echo "$ac_t""yes" 1>&6 | |
4617 | else | |
4618 | echo "$ac_t""no" 1>&6 | |
4619 | fi | |
4620 | ||
4621 | ||
1e6feb95 | 4622 | |
4cdb0ab0 | 4623 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
b040e242 | 4624 | echo "configure:4625: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4625 | no_cache=0 |
4626 | # Check whether --enable-url or --disable-url was given. | |
4627 | if test "${enable_url+set}" = set; then | |
4628 | enableval="$enable_url" | |
4629 | ||
4630 | if test "$enableval" = yes; then | |
4631 | ac_cv_use_url='wxUSE_URL=yes' | |
4632 | else | |
4633 | ac_cv_use_url='wxUSE_URL=no' | |
4634 | fi | |
4635 | ||
4636 | else | |
4637 | ||
4638 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4639 | if test "x$LINE" != x ; then | |
4640 | eval "DEFAULT_$LINE" | |
4641 | else | |
4642 | no_cache=1 | |
4643 | fi | |
4644 | ||
4645 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4646 | ||
4647 | fi | |
4648 | ||
4649 | ||
4650 | eval "$ac_cv_use_url" | |
4651 | if test "$no_cache" != 1; then | |
4652 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4653 | fi | |
4654 | ||
4655 | if test "$wxUSE_URL" = yes; then | |
4656 | echo "$ac_t""yes" 1>&6 | |
4657 | else | |
4658 | echo "$ac_t""no" 1>&6 | |
4659 | fi | |
4660 | ||
4661 | ||
4662 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
b040e242 | 4663 | echo "configure:4664: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4664 | no_cache=0 |
4665 | # Check whether --enable-protocol or --disable-protocol was given. | |
4666 | if test "${enable_protocol+set}" = set; then | |
4667 | enableval="$enable_protocol" | |
4668 | ||
4669 | if test "$enableval" = yes; then | |
4670 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4671 | else | |
4672 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4673 | fi | |
4674 | ||
4675 | else | |
4676 | ||
4677 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4678 | if test "x$LINE" != x ; then | |
4679 | eval "DEFAULT_$LINE" | |
4680 | else | |
4681 | no_cache=1 | |
4682 | fi | |
4683 | ||
4684 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4685 | ||
4686 | fi | |
4687 | ||
4688 | ||
4689 | eval "$ac_cv_use_protocol" | |
4690 | if test "$no_cache" != 1; then | |
4691 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4692 | fi | |
4693 | ||
4694 | if test "$wxUSE_PROTOCOL" = yes; then | |
4695 | echo "$ac_t""yes" 1>&6 | |
4696 | else | |
4697 | echo "$ac_t""no" 1>&6 | |
4698 | fi | |
4699 | ||
4700 | ||
4701 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
b040e242 | 4702 | echo "configure:4703: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4703 | no_cache=0 |
4704 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4705 | if test "${enable_protocol_http+set}" = set; then | |
4706 | enableval="$enable_protocol_http" | |
4707 | ||
4708 | if test "$enableval" = yes; then | |
4709 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4710 | else | |
4711 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4712 | fi | |
4713 | ||
4714 | else | |
4715 | ||
4716 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4717 | if test "x$LINE" != x ; then | |
4718 | eval "DEFAULT_$LINE" | |
4719 | else | |
4720 | no_cache=1 | |
4721 | fi | |
4722 | ||
4723 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4724 | ||
4725 | fi | |
4726 | ||
4727 | ||
4728 | eval "$ac_cv_use_protocol_http" | |
4729 | if test "$no_cache" != 1; then | |
4730 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4731 | fi | |
4732 | ||
4733 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4734 | echo "$ac_t""yes" 1>&6 | |
4735 | else | |
4736 | echo "$ac_t""no" 1>&6 | |
4737 | fi | |
4738 | ||
4739 | ||
4740 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
b040e242 | 4741 | echo "configure:4742: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4742 | no_cache=0 |
4743 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4744 | if test "${enable_protocol_ftp+set}" = set; then | |
4745 | enableval="$enable_protocol_ftp" | |
4746 | ||
4747 | if test "$enableval" = yes; then | |
4748 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4749 | else | |
4750 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4751 | fi | |
4752 | ||
4753 | else | |
4754 | ||
4755 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4756 | if test "x$LINE" != x ; then | |
4757 | eval "DEFAULT_$LINE" | |
4758 | else | |
4759 | no_cache=1 | |
4760 | fi | |
4761 | ||
4762 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4763 | ||
4764 | fi | |
4765 | ||
4766 | ||
4767 | eval "$ac_cv_use_protocol_ftp" | |
4768 | if test "$no_cache" != 1; then | |
4769 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4770 | fi | |
4771 | ||
4772 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4773 | echo "$ac_t""yes" 1>&6 | |
4774 | else | |
4775 | echo "$ac_t""no" 1>&6 | |
4776 | fi | |
4777 | ||
4778 | ||
4779 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
b040e242 | 4780 | echo "configure:4781: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4781 | no_cache=0 |
4782 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4783 | if test "${enable_protocol_file+set}" = set; then | |
4784 | enableval="$enable_protocol_file" | |
4785 | ||
4786 | if test "$enableval" = yes; then | |
4787 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4788 | else | |
4789 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4790 | fi | |
4791 | ||
4792 | else | |
4793 | ||
4794 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4802 | ||
4803 | fi | |
4804 | ||
4805 | ||
4806 | eval "$ac_cv_use_protocol_file" | |
4807 | if test "$no_cache" != 1; then | |
4808 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4809 | fi | |
4810 | ||
4811 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4812 | echo "$ac_t""yes" 1>&6 | |
4813 | else | |
4814 | echo "$ac_t""no" 1>&6 | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | ||
4819 | ||
698dcdb6 VZ |
4820 | |
4821 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
b040e242 | 4822 | echo "configure:4823: checking for --enable-threads" >&5 |
10f2d63a VZ |
4823 | no_cache=0 |
4824 | # Check whether --enable-threads or --disable-threads was given. | |
4825 | if test "${enable_threads+set}" = set; then | |
4826 | enableval="$enable_threads" | |
698dcdb6 | 4827 | |
10f2d63a VZ |
4828 | if test "$enableval" = yes; then |
4829 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4830 | else | |
4831 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4832 | fi | |
698dcdb6 | 4833 | |
10f2d63a | 4834 | else |
698dcdb6 | 4835 | |
10f2d63a VZ |
4836 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4837 | if test "x$LINE" != x ; then | |
4838 | eval "DEFAULT_$LINE" | |
4839 | else | |
4840 | no_cache=1 | |
4841 | fi | |
4842 | ||
4843 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4844 | |
4845 | fi | |
10f2d63a VZ |
4846 | |
4847 | ||
4848 | eval "$ac_cv_use_threads" | |
4849 | if test "$no_cache" != 1; then | |
4850 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4851 | fi | |
4852 | ||
4853 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4855 | else |
698dcdb6 | 4856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4857 | fi |
698dcdb6 | 4858 | |
10f2d63a | 4859 | |
b12915c1 VZ |
4860 | if test "$wxUSE_GUI" = "yes"; then |
4861 | ||
698dcdb6 VZ |
4862 | |
4863 | ||
4864 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
b040e242 | 4865 | echo "configure:4866: checking for --enable-docview" >&5 |
10f2d63a VZ |
4866 | no_cache=0 |
4867 | # Check whether --enable-docview or --disable-docview was given. | |
4868 | if test "${enable_docview+set}" = set; then | |
4869 | enableval="$enable_docview" | |
698dcdb6 | 4870 | |
10f2d63a VZ |
4871 | if test "$enableval" = yes; then |
4872 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4873 | else | |
4874 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4875 | fi | |
698dcdb6 | 4876 | |
10f2d63a | 4877 | else |
698dcdb6 | 4878 | |
10f2d63a VZ |
4879 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4880 | if test "x$LINE" != x ; then | |
4881 | eval "DEFAULT_$LINE" | |
4882 | else | |
4883 | no_cache=1 | |
4884 | fi | |
4885 | ||
4886 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4887 | |
4888 | fi | |
10f2d63a VZ |
4889 | |
4890 | ||
4891 | eval "$ac_cv_use_docview" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4898 | else |
698dcdb6 | 4899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4900 | fi |
698dcdb6 | 4901 | |
10f2d63a | 4902 | |
698dcdb6 | 4903 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
b040e242 | 4904 | echo "configure:4905: checking for --enable-help" >&5 |
10f2d63a VZ |
4905 | no_cache=0 |
4906 | # Check whether --enable-help or --disable-help was given. | |
4907 | if test "${enable_help+set}" = set; then | |
4908 | enableval="$enable_help" | |
698dcdb6 | 4909 | |
10f2d63a VZ |
4910 | if test "$enableval" = yes; then |
4911 | ac_cv_use_help='wxUSE_HELP=yes' | |
4912 | else | |
4913 | ac_cv_use_help='wxUSE_HELP=no' | |
4914 | fi | |
698dcdb6 | 4915 | |
10f2d63a | 4916 | else |
698dcdb6 | 4917 | |
10f2d63a VZ |
4918 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4919 | if test "x$LINE" != x ; then | |
4920 | eval "DEFAULT_$LINE" | |
4921 | else | |
4922 | no_cache=1 | |
4923 | fi | |
4924 | ||
4925 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4926 | |
4927 | fi | |
10f2d63a VZ |
4928 | |
4929 | ||
4930 | eval "$ac_cv_use_help" | |
4931 | if test "$no_cache" != 1; then | |
4932 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4933 | fi | |
4934 | ||
4935 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4936 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4937 | else |
698dcdb6 | 4938 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4939 | fi |
698dcdb6 | 4940 | |
10f2d63a | 4941 | |
29fd3c0c | 4942 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
b040e242 | 4943 | echo "configure:4944: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4944 | no_cache=0 |
4945 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4946 | if test "${enable_mshtmlhelp+set}" = set; then | |
4947 | enableval="$enable_mshtmlhelp" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4951 | else | |
4952 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4965 | ||
4966 | fi | |
4967 | ||
4968 | ||
4969 | eval "$ac_cv_use_mshtmlhelp" | |
4970 | if test "$no_cache" != 1; then | |
4971 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4972 | fi | |
4973 | ||
4974 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4975 | echo "$ac_t""yes" 1>&6 | |
4976 | else | |
4977 | echo "$ac_t""no" 1>&6 | |
4978 | fi | |
4979 | ||
4980 | ||
3379ed37 | 4981 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
b040e242 | 4982 | echo "configure:4983: checking for --enable-html" >&5 |
3379ed37 VZ |
4983 | no_cache=0 |
4984 | # Check whether --enable-html or --disable-html was given. | |
4985 | if test "${enable_html+set}" = set; then | |
4986 | enableval="$enable_html" | |
4987 | ||
4988 | if test "$enableval" = yes; then | |
4989 | ac_cv_use_html='wxUSE_HTML=yes' | |
4990 | else | |
4991 | ac_cv_use_html='wxUSE_HTML=no' | |
4992 | fi | |
4993 | ||
4994 | else | |
4995 | ||
4996 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4997 | if test "x$LINE" != x ; then | |
4998 | eval "DEFAULT_$LINE" | |
4999 | else | |
5000 | no_cache=1 | |
5001 | fi | |
5002 | ||
5003 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5004 | ||
5005 | fi | |
5006 | ||
5007 | ||
5008 | eval "$ac_cv_use_html" | |
5009 | if test "$no_cache" != 1; then | |
5010 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5011 | fi | |
5012 | ||
5013 | if test "$wxUSE_HTML" = yes; then | |
5014 | echo "$ac_t""yes" 1>&6 | |
5015 | else | |
5016 | echo "$ac_t""no" 1>&6 | |
5017 | fi | |
5018 | ||
5019 | ||
5020 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
b040e242 | 5021 | echo "configure:5022: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5022 | no_cache=0 |
5023 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5024 | if test "${enable_htmlhelp+set}" = set; then | |
5025 | enableval="$enable_htmlhelp" | |
5026 | ||
5027 | if test "$enableval" = yes; then | |
5028 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5029 | else | |
5030 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5031 | fi | |
5032 | ||
5033 | else | |
5034 | ||
5035 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5036 | if test "x$LINE" != x ; then | |
5037 | eval "DEFAULT_$LINE" | |
5038 | else | |
5039 | no_cache=1 | |
5040 | fi | |
5041 | ||
5042 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5043 | ||
5044 | fi | |
5045 | ||
5046 | ||
5047 | eval "$ac_cv_use_htmlhelp" | |
5048 | if test "$no_cache" != 1; then | |
5049 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5050 | fi | |
5051 | ||
5052 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5053 | echo "$ac_t""yes" 1>&6 | |
5054 | else | |
5055 | echo "$ac_t""no" 1>&6 | |
5056 | fi | |
5057 | ||
5058 | ||
698dcdb6 | 5059 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
b040e242 | 5060 | echo "configure:5061: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5061 | no_cache=0 |
5062 | # Check whether --enable-constraints or --disable-constraints was given. | |
5063 | if test "${enable_constraints+set}" = set; then | |
5064 | enableval="$enable_constraints" | |
698dcdb6 | 5065 | |
10f2d63a VZ |
5066 | if test "$enableval" = yes; then |
5067 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5068 | else | |
5069 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5070 | fi | |
698dcdb6 | 5071 | |
10f2d63a | 5072 | else |
698dcdb6 | 5073 | |
10f2d63a VZ |
5074 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5075 | if test "x$LINE" != x ; then | |
5076 | eval "DEFAULT_$LINE" | |
5077 | else | |
5078 | no_cache=1 | |
5079 | fi | |
5080 | ||
5081 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5082 | |
5083 | fi | |
10f2d63a VZ |
5084 | |
5085 | ||
5086 | eval "$ac_cv_use_constraints" | |
5087 | if test "$no_cache" != 1; then | |
5088 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5089 | fi | |
5090 | ||
5091 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5092 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5093 | else |
698dcdb6 | 5094 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5095 | fi |
698dcdb6 | 5096 | |
10f2d63a | 5097 | |
698dcdb6 | 5098 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
b040e242 | 5099 | echo "configure:5100: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5100 | no_cache=0 |
5101 | # Check whether --enable-printarch or --disable-printarch was given. | |
5102 | if test "${enable_printarch+set}" = set; then | |
5103 | enableval="$enable_printarch" | |
698dcdb6 | 5104 | |
10f2d63a VZ |
5105 | if test "$enableval" = yes; then |
5106 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5107 | else | |
5108 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5109 | fi | |
698dcdb6 | 5110 | |
10f2d63a | 5111 | else |
698dcdb6 | 5112 | |
10f2d63a VZ |
5113 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5114 | if test "x$LINE" != x ; then | |
5115 | eval "DEFAULT_$LINE" | |
5116 | else | |
5117 | no_cache=1 | |
5118 | fi | |
5119 | ||
5120 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5121 | |
5122 | fi | |
10f2d63a VZ |
5123 | |
5124 | ||
5125 | eval "$ac_cv_use_printarch" | |
5126 | if test "$no_cache" != 1; then | |
5127 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5128 | fi | |
5129 | ||
5130 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5131 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5132 | else |
698dcdb6 | 5133 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5134 | fi |
698dcdb6 | 5135 | |
10f2d63a | 5136 | |
698dcdb6 | 5137 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
b040e242 | 5138 | echo "configure:5139: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5139 | no_cache=0 |
5140 | # Check whether --enable-mdi or --disable-mdi was given. | |
5141 | if test "${enable_mdi+set}" = set; then | |
5142 | enableval="$enable_mdi" | |
698dcdb6 | 5143 | |
10f2d63a VZ |
5144 | if test "$enableval" = yes; then |
5145 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5146 | else | |
5147 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5148 | fi | |
698dcdb6 | 5149 | |
10f2d63a | 5150 | else |
698dcdb6 | 5151 | |
10f2d63a VZ |
5152 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5153 | if test "x$LINE" != x ; then | |
5154 | eval "DEFAULT_$LINE" | |
5155 | else | |
5156 | no_cache=1 | |
5157 | fi | |
5158 | ||
5159 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5160 | |
5161 | fi | |
10f2d63a VZ |
5162 | |
5163 | ||
5164 | eval "$ac_cv_use_mdi" | |
5165 | if test "$no_cache" != 1; then | |
5166 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5167 | fi | |
5168 | ||
5169 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5170 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5171 | else |
698dcdb6 | 5172 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5173 | fi |
698dcdb6 VZ |
5174 | |
5175 | ||
1e6feb95 | 5176 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
b040e242 | 5177 | echo "configure:5178: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5178 | no_cache=0 |
5179 | # Check whether --enable-loggui or --disable-loggui was given. | |
5180 | if test "${enable_loggui+set}" = set; then | |
5181 | enableval="$enable_loggui" | |
5182 | ||
5183 | if test "$enableval" = yes; then | |
5184 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5185 | else | |
5186 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5187 | fi | |
5188 | ||
5189 | else | |
5190 | ||
5191 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5192 | if test "x$LINE" != x ; then | |
5193 | eval "DEFAULT_$LINE" | |
5194 | else | |
5195 | no_cache=1 | |
5196 | fi | |
5197 | ||
5198 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5199 | ||
5200 | fi | |
5201 | ||
5202 | ||
5203 | eval "$ac_cv_use_loggui" | |
5204 | if test "$no_cache" != 1; then | |
5205 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5206 | fi | |
5207 | ||
5208 | if test "$wxUSE_LOGGUI" = yes; then | |
5209 | echo "$ac_t""yes" 1>&6 | |
5210 | else | |
5211 | echo "$ac_t""no" 1>&6 | |
5212 | fi | |
5213 | ||
5214 | ||
5215 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
b040e242 | 5216 | echo "configure:5217: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5217 | no_cache=0 |
5218 | # Check whether --enable-logwin or --disable-logwin was given. | |
5219 | if test "${enable_logwin+set}" = set; then | |
5220 | enableval="$enable_logwin" | |
5221 | ||
5222 | if test "$enableval" = yes; then | |
5223 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5224 | else | |
5225 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5226 | fi | |
5227 | ||
5228 | else | |
5229 | ||
5230 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5231 | if test "x$LINE" != x ; then | |
5232 | eval "DEFAULT_$LINE" | |
5233 | else | |
5234 | no_cache=1 | |
5235 | fi | |
5236 | ||
5237 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5238 | ||
5239 | fi | |
5240 | ||
5241 | ||
5242 | eval "$ac_cv_use_logwin" | |
5243 | if test "$no_cache" != 1; then | |
5244 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5245 | fi | |
5246 | ||
5247 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5248 | echo "$ac_t""yes" 1>&6 | |
5249 | else | |
5250 | echo "$ac_t""no" 1>&6 | |
5251 | fi | |
5252 | ||
5253 | ||
69d27ff7 | 5254 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
b040e242 | 5255 | echo "configure:5256: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5256 | no_cache=0 |
5257 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5258 | if test "${enable_logdialog+set}" = set; then | |
5259 | enableval="$enable_logdialog" | |
5260 | ||
5261 | if test "$enableval" = yes; then | |
5262 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5263 | else | |
5264 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5265 | fi | |
5266 | ||
5267 | else | |
5268 | ||
5269 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5270 | if test "x$LINE" != x ; then | |
5271 | eval "DEFAULT_$LINE" | |
5272 | else | |
5273 | no_cache=1 | |
5274 | fi | |
5275 | ||
5276 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5277 | ||
5278 | fi | |
5279 | ||
5280 | ||
5281 | eval "$ac_cv_use_logdialog" | |
5282 | if test "$no_cache" != 1; then | |
5283 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5284 | fi | |
5285 | ||
5286 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5287 | echo "$ac_t""yes" 1>&6 | |
5288 | else | |
5289 | echo "$ac_t""no" 1>&6 | |
5290 | fi | |
5291 | ||
5292 | ||
10f2d63a | 5293 | |
698dcdb6 | 5294 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
b040e242 | 5295 | echo "configure:5296: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5296 | no_cache=0 |
5297 | # Check whether --enable-postscript or --disable-postscript was given. | |
5298 | if test "${enable_postscript+set}" = set; then | |
5299 | enableval="$enable_postscript" | |
698dcdb6 | 5300 | |
10f2d63a VZ |
5301 | if test "$enableval" = yes; then |
5302 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5303 | else | |
5304 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5305 | fi | |
698dcdb6 | 5306 | |
10f2d63a | 5307 | else |
698dcdb6 | 5308 | |
10f2d63a VZ |
5309 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5310 | if test "x$LINE" != x ; then | |
5311 | eval "DEFAULT_$LINE" | |
5312 | else | |
5313 | no_cache=1 | |
5314 | fi | |
5315 | ||
5316 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5317 | |
5318 | fi | |
10f2d63a VZ |
5319 | |
5320 | ||
5321 | eval "$ac_cv_use_postscript" | |
5322 | if test "$no_cache" != 1; then | |
5323 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5324 | fi | |
5325 | ||
5326 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5327 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5328 | else |
698dcdb6 | 5329 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5330 | fi |
698dcdb6 VZ |
5331 | |
5332 | ||
5333 | ||
10f2d63a | 5334 | |
1e6feb95 | 5335 | |
698dcdb6 | 5336 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
b040e242 | 5337 | echo "configure:5338: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5338 | no_cache=0 |
5339 | # Check whether --enable-prologio or --disable-prologio was given. | |
5340 | if test "${enable_prologio+set}" = set; then | |
5341 | enableval="$enable_prologio" | |
698dcdb6 | 5342 | |
10f2d63a VZ |
5343 | if test "$enableval" = yes; then |
5344 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5345 | else | |
5346 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5347 | fi | |
698dcdb6 | 5348 | |
10f2d63a | 5349 | else |
698dcdb6 | 5350 | |
10f2d63a VZ |
5351 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5352 | if test "x$LINE" != x ; then | |
5353 | eval "DEFAULT_$LINE" | |
5354 | else | |
5355 | no_cache=1 | |
5356 | fi | |
5357 | ||
5358 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5359 | |
5360 | fi | |
10f2d63a VZ |
5361 | |
5362 | ||
5363 | eval "$ac_cv_use_prologio" | |
5364 | if test "$no_cache" != 1; then | |
5365 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5366 | fi | |
5367 | ||
5368 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5369 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5370 | else |
698dcdb6 | 5371 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5372 | fi |
698dcdb6 | 5373 | |
10f2d63a | 5374 | |
698dcdb6 | 5375 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
b040e242 | 5376 | echo "configure:5377: checking for --enable-resources" >&5 |
10f2d63a VZ |
5377 | no_cache=0 |
5378 | # Check whether --enable-resources or --disable-resources was given. | |
5379 | if test "${enable_resources+set}" = set; then | |
5380 | enableval="$enable_resources" | |
698dcdb6 | 5381 | |
10f2d63a VZ |
5382 | if test "$enableval" = yes; then |
5383 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5384 | else | |
5385 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5386 | fi | |
698dcdb6 | 5387 | |
10f2d63a | 5388 | else |
698dcdb6 | 5389 | |
10f2d63a VZ |
5390 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5391 | if test "x$LINE" != x ; then | |
5392 | eval "DEFAULT_$LINE" | |
5393 | else | |
5394 | no_cache=1 | |
5395 | fi | |
5396 | ||
5397 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5398 | |
5399 | fi | |
10f2d63a VZ |
5400 | |
5401 | ||
5402 | eval "$ac_cv_use_resources" | |
5403 | if test "$no_cache" != 1; then | |
5404 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5405 | fi | |
5406 | ||
5407 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5408 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5409 | else |
698dcdb6 | 5410 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5411 | fi |
698dcdb6 | 5412 | |
10f2d63a | 5413 | |
698dcdb6 VZ |
5414 | |
5415 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
b040e242 | 5416 | echo "configure:5417: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5417 | no_cache=0 |
5418 | # Check whether --enable-xresources or --disable-xresources was given. | |
5419 | if test "${enable_xresources+set}" = set; then | |
5420 | enableval="$enable_xresources" | |
698dcdb6 | 5421 | |
10f2d63a VZ |
5422 | if test "$enableval" = yes; then |
5423 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5424 | else | |
5425 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5426 | fi | |
698dcdb6 | 5427 | |
10f2d63a | 5428 | else |
698dcdb6 | 5429 | |
10f2d63a VZ |
5430 | LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5438 | |
5439 | fi | |
10f2d63a VZ |
5440 | |
5441 | ||
5442 | eval "$ac_cv_use_xresources" | |
5443 | if test "$no_cache" != 1; then | |
5444 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5445 | fi | |
5446 | ||
5447 | if test "$wxUSE_X_RESOURCES" = 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 VZ |
5452 | |
5453 | ||
10f2d63a | 5454 | |
698dcdb6 VZ |
5455 | |
5456 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
b040e242 | 5457 | echo "configure:5458: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5458 | no_cache=0 |
5459 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5460 | if test "${enable_clipboard+set}" = set; then | |
5461 | enableval="$enable_clipboard" | |
698dcdb6 | 5462 | |
10f2d63a VZ |
5463 | if test "$enableval" = yes; then |
5464 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5465 | else | |
5466 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5467 | fi | |
698dcdb6 | 5468 | |
10f2d63a | 5469 | else |
698dcdb6 | 5470 | |
10f2d63a VZ |
5471 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5472 | if test "x$LINE" != x ; then | |
5473 | eval "DEFAULT_$LINE" | |
5474 | else | |
5475 | no_cache=1 | |
5476 | fi | |
5477 | ||
5478 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5479 | |
5480 | fi | |
10f2d63a VZ |
5481 | |
5482 | ||
5483 | eval "$ac_cv_use_clipboard" | |
5484 | if test "$no_cache" != 1; then | |
5485 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5486 | fi | |
5487 | ||
5488 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5489 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5490 | else |
698dcdb6 | 5491 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5492 | fi |
698dcdb6 | 5493 | |
10f2d63a | 5494 | |
698dcdb6 | 5495 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
b040e242 | 5496 | echo "configure:5497: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5497 | no_cache=0 |
5498 | # Check whether --enable-dnd or --disable-dnd was given. | |
5499 | if test "${enable_dnd+set}" = set; then | |
5500 | enableval="$enable_dnd" | |
698dcdb6 | 5501 | |
10f2d63a VZ |
5502 | if test "$enableval" = yes; then |
5503 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5504 | else | |
5505 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5506 | fi | |
698dcdb6 | 5507 | |
10f2d63a | 5508 | else |
698dcdb6 | 5509 | |
10f2d63a VZ |
5510 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5511 | if test "x$LINE" != x ; then | |
5512 | eval "DEFAULT_$LINE" | |
5513 | else | |
5514 | no_cache=1 | |
5515 | fi | |
5516 | ||
5517 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5518 | |
5519 | fi | |
10f2d63a VZ |
5520 | |
5521 | ||
5522 | eval "$ac_cv_use_dnd" | |
5523 | if test "$no_cache" != 1; then | |
5524 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5525 | fi | |
5526 | ||
5527 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5529 | else |
698dcdb6 | 5530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5531 | fi |
698dcdb6 | 5532 | |
10f2d63a | 5533 | |
698dcdb6 | 5534 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b040e242 | 5535 | echo "configure:5536: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5536 | no_cache=0 |
5537 | # Check whether --enable-metafile or --disable-metafile was given. | |
5538 | if test "${enable_metafile+set}" = set; then | |
5539 | enableval="$enable_metafile" | |
698dcdb6 | 5540 | |
b64f0a5f RL |
5541 | if test "$enableval" = yes; then |
5542 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5543 | else | |
5544 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5545 | fi | |
698dcdb6 | 5546 | |
b64f0a5f | 5547 | else |
698dcdb6 | 5548 | |
b64f0a5f RL |
5549 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5550 | if test "x$LINE" != x ; then | |
5551 | eval "DEFAULT_$LINE" | |
5552 | else | |
5553 | no_cache=1 | |
5554 | fi | |
5555 | ||
5556 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5557 | |
5558 | fi | |
b64f0a5f RL |
5559 | |
5560 | ||
5561 | eval "$ac_cv_use_metafile" | |
5562 | if test "$no_cache" != 1; then | |
5563 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5564 | fi | |
5565 | ||
5566 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5567 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5568 | else |
698dcdb6 | 5569 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5570 | fi |
698dcdb6 VZ |
5571 | |
5572 | ||
10f2d63a | 5573 | |
24176f2c | 5574 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
b040e242 | 5575 | echo "configure:5576: checking for --enable-treelayout" >&5 |
10f2d63a | 5576 | no_cache=0 |
24176f2c GD |
5577 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5578 | if test "${enable_treelayout+set}" = set; then | |
5579 | enableval="$enable_treelayout" | |
698dcdb6 | 5580 | |
10f2d63a | 5581 | if test "$enableval" = yes; then |
24176f2c | 5582 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5583 | else |
24176f2c | 5584 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5585 | fi |
698dcdb6 | 5586 | |
10f2d63a | 5587 | else |
698dcdb6 | 5588 | |
24176f2c | 5589 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5590 | if test "x$LINE" != x ; then |
5591 | eval "DEFAULT_$LINE" | |
5592 | else | |
5593 | no_cache=1 | |
5594 | fi | |
5595 | ||
24176f2c | 5596 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5597 | |
5598 | fi | |
10f2d63a VZ |
5599 | |
5600 | ||
24176f2c | 5601 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5602 | if test "$no_cache" != 1; then |
24176f2c | 5603 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5604 | fi |
5605 | ||
24176f2c | 5606 | if test "$wxUSE_TREELAYOUT" = 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 | 5612 | |
698dcdb6 VZ |
5613 | |
5614 | ||
5615 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
b040e242 | 5616 | echo "configure:5617: checking for --enable-controls" >&5 |
10f2d63a VZ |
5617 | no_cache=0 |
5618 | # Check whether --enable-controls or --disable-controls was given. | |
5619 | if test "${enable_controls+set}" = set; then | |
5620 | enableval="$enable_controls" | |
698dcdb6 | 5621 | |
10f2d63a VZ |
5622 | if test "$enableval" = yes; then |
5623 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5624 | else | |
5625 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5626 | fi | |
698dcdb6 | 5627 | |
10f2d63a | 5628 | else |
698dcdb6 | 5629 | |
10f2d63a VZ |
5630 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5631 | if test "x$LINE" != x ; then | |
5632 | eval "DEFAULT_$LINE" | |
5633 | else | |
5634 | no_cache=1 | |
5635 | fi | |
5636 | ||
5637 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5638 | |
5639 | fi | |
10f2d63a VZ |
5640 | |
5641 | ||
5642 | eval "$ac_cv_use_controls" | |
5643 | if test "$no_cache" != 1; then | |
5644 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5645 | fi | |
5646 | ||
5647 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5648 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5649 | else |
698dcdb6 | 5650 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5651 | fi |
698dcdb6 | 5652 | |
10f2d63a VZ |
5653 | |
5654 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5655 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5656 | DEFAULT_wxUSE_BMPBUTTON=yes |
5657 | DEFAULT_wxUSE_BUTTON=yes | |
5658 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5659 | DEFAULT_wxUSE_CARET=yes |
5660 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5661 | DEFAULT_wxUSE_CHECKBOX=yes |
5662 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5663 | DEFAULT_wxUSE_CHOICE=yes | |
5664 | DEFAULT_wxUSE_GAUGE=yes | |
5665 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5666 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5667 | DEFAULT_wxUSE_IMAGLIST=yes |
5668 | DEFAULT_wxUSE_LISTBOX=yes | |
5669 | DEFAULT_wxUSE_LISTCTRL=yes | |
5670 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5671 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5672 | DEFAULT_wxUSE_RADIOBOX=yes |
5673 | DEFAULT_wxUSE_RADIOBTN=yes | |
5674 | DEFAULT_wxUSE_SASH=yes | |
5675 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5676 | DEFAULT_wxUSE_SLIDER=yes | |
5677 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5678 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5679 | DEFAULT_wxUSE_SPLITTER=yes |
5680 | DEFAULT_wxUSE_STATBMP=yes | |
5681 | DEFAULT_wxUSE_STATBOX=yes | |
5682 | DEFAULT_wxUSE_STATLINE=yes | |
5683 | DEFAULT_wxUSE_STATUSBAR=yes | |
5684 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5685 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5686 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5687 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5688 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5689 | DEFAULT_wxUSE_TOOLTIPS=yes |
5690 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5691 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5692 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5693 | elif test "$wxUSE_CONTROLS" = "no"; then |
5694 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5695 | DEFAULT_wxUSE_BMPBUTTON=no |
5696 | DEFAULT_wxUSE_BUTTON=no | |
5697 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5698 | DEFAULT_wxUSE_CARET=no |
5699 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5700 | DEFAULT_wxUSE_CHECKBOX=no |
5701 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5702 | DEFAULT_wxUSE_CHOICE=no | |
5703 | DEFAULT_wxUSE_GAUGE=no | |
5704 | DEFAULT_wxUSE_GRID=no | |
5705 | DEFAULT_wxUSE_NEW_GRID=no | |
5706 | DEFAULT_wxUSE_IMAGLIST=no | |
5707 | DEFAULT_wxUSE_LISTBOX=no | |
5708 | DEFAULT_wxUSE_LISTCTRL=no | |
5709 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5710 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5711 | DEFAULT_wxUSE_RADIOBOX=no |
5712 | DEFAULT_wxUSE_RADIOBTN=no | |
5713 | DEFAULT_wxUSE_SASH=no | |
5714 | DEFAULT_wxUSE_SCROLLBAR=no | |
5715 | DEFAULT_wxUSE_SLIDER=no | |
5716 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5717 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5718 | DEFAULT_wxUSE_SPLITTER=no |
5719 | DEFAULT_wxUSE_STATBMP=no | |
5720 | DEFAULT_wxUSE_STATBOX=no | |
5721 | DEFAULT_wxUSE_STATLINE=no | |
5722 | DEFAULT_wxUSE_STATUSBAR=no | |
5723 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5724 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5725 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5726 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5727 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5728 | DEFAULT_wxUSE_TOOLTIPS=no |
5729 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5730 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5731 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5732 | fi |
5733 | ||
698dcdb6 VZ |
5734 | |
5735 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
b040e242 | 5736 | echo "configure:5737: checking for --enable-accel" >&5 |
10f2d63a VZ |
5737 | no_cache=0 |
5738 | # Check whether --enable-accel or --disable-accel was given. | |
5739 | if test "${enable_accel+set}" = set; then | |
5740 | enableval="$enable_accel" | |
698dcdb6 | 5741 | |
10f2d63a VZ |
5742 | if test "$enableval" = yes; then |
5743 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5744 | else | |
5745 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5746 | fi | |
698dcdb6 | 5747 | |
10f2d63a | 5748 | else |
698dcdb6 | 5749 | |
10f2d63a VZ |
5750 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5751 | if test "x$LINE" != x ; then | |
5752 | eval "DEFAULT_$LINE" | |
5753 | else | |
5754 | no_cache=1 | |
5755 | fi | |
5756 | ||
5757 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5758 | |
5759 | fi | |
10f2d63a VZ |
5760 | |
5761 | ||
5762 | eval "$ac_cv_use_accel" | |
5763 | if test "$no_cache" != 1; then | |
5764 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5765 | fi | |
5766 | ||
5767 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5768 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5769 | else |
698dcdb6 | 5770 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5771 | fi |
698dcdb6 | 5772 | |
10f2d63a | 5773 | |
1e6feb95 | 5774 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
b040e242 | 5775 | echo "configure:5776: checking for --enable-button" >&5 |
10f2d63a | 5776 | no_cache=0 |
1e6feb95 VZ |
5777 | # Check whether --enable-button or --disable-button was given. |
5778 | if test "${enable_button+set}" = set; then | |
5779 | enableval="$enable_button" | |
698dcdb6 | 5780 | |
10f2d63a | 5781 | if test "$enableval" = yes; then |
1e6feb95 | 5782 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5783 | else |
1e6feb95 | 5784 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5785 | fi |
698dcdb6 | 5786 | |
10f2d63a | 5787 | else |
698dcdb6 | 5788 | |
1e6feb95 | 5789 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5790 | if test "x$LINE" != x ; then |
5791 | eval "DEFAULT_$LINE" | |
5792 | else | |
5793 | no_cache=1 | |
5794 | fi | |
5795 | ||
1e6feb95 | 5796 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5797 | |
5798 | fi | |
10f2d63a VZ |
5799 | |
5800 | ||
1e6feb95 | 5801 | eval "$ac_cv_use_button" |
10f2d63a | 5802 | if test "$no_cache" != 1; then |
1e6feb95 | 5803 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5804 | fi |
5805 | ||
1e6feb95 | 5806 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5807 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5808 | else |
698dcdb6 | 5809 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5810 | fi |
698dcdb6 | 5811 | |
10f2d63a | 5812 | |
698dcdb6 | 5813 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
b040e242 | 5814 | echo "configure:5815: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5815 | no_cache=0 |
5816 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5817 | if test "${enable_bmpbutton+set}" = set; then | |
5818 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5819 | |
10f2d63a VZ |
5820 | if test "$enableval" = yes; then |
5821 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5822 | else | |
5823 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5824 | fi | |
698dcdb6 | 5825 | |
10f2d63a | 5826 | else |
698dcdb6 | 5827 | |
10f2d63a VZ |
5828 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5829 | if test "x$LINE" != x ; then | |
5830 | eval "DEFAULT_$LINE" | |
5831 | else | |
5832 | no_cache=1 | |
5833 | fi | |
5834 | ||
5835 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5836 | |
5837 | fi | |
10f2d63a VZ |
5838 | |
5839 | ||
5840 | eval "$ac_cv_use_bmpbutton" | |
5841 | if test "$no_cache" != 1; then | |
5842 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5843 | fi | |
5844 | ||
5845 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5846 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5847 | else |
698dcdb6 | 5848 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5849 | fi |
698dcdb6 | 5850 | |
10f2d63a | 5851 | |
1e6feb95 | 5852 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
b040e242 | 5853 | echo "configure:5854: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5854 | no_cache=0 |
5855 | # Check whether --enable-calendar or --disable-calendar was given. | |
5856 | if test "${enable_calendar+set}" = set; then | |
5857 | enableval="$enable_calendar" | |
5858 | ||
5859 | if test "$enableval" = yes; then | |
5860 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5861 | else | |
5862 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5863 | fi | |
5864 | ||
5865 | else | |
5866 | ||
5867 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5868 | if test "x$LINE" != x ; then | |
5869 | eval "DEFAULT_$LINE" | |
5870 | else | |
5871 | no_cache=1 | |
5872 | fi | |
5873 | ||
5874 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5875 | ||
5876 | fi | |
5877 | ||
5878 | ||
5879 | eval "$ac_cv_use_calendar" | |
5880 | if test "$no_cache" != 1; then | |
5881 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5882 | fi | |
5883 | ||
5884 | if test "$wxUSE_CALCTRL" = yes; then | |
5885 | echo "$ac_t""yes" 1>&6 | |
5886 | else | |
5887 | echo "$ac_t""no" 1>&6 | |
5888 | fi | |
5889 | ||
5890 | ||
5891 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
b040e242 | 5892 | echo "configure:5893: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5893 | no_cache=0 |
5894 | # Check whether --enable-caret or --disable-caret was given. | |
5895 | if test "${enable_caret+set}" = set; then | |
5896 | enableval="$enable_caret" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5900 | else | |
5901 | ac_cv_use_caret='wxUSE_CARET=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5914 | ||
5915 | fi | |
5916 | ||
5917 | ||
5918 | eval "$ac_cv_use_caret" | |
5919 | if test "$no_cache" != 1; then | |
5920 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5921 | fi | |
5922 | ||
5923 | if test "$wxUSE_CARET" = yes; then | |
5924 | echo "$ac_t""yes" 1>&6 | |
5925 | else | |
5926 | echo "$ac_t""no" 1>&6 | |
5927 | fi | |
5928 | ||
5929 | ||
698dcdb6 | 5930 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
b040e242 | 5931 | echo "configure:5932: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5932 | no_cache=0 |
5933 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5934 | if test "${enable_checkbox+set}" = set; then | |
5935 | enableval="$enable_checkbox" | |
698dcdb6 | 5936 | |
10f2d63a VZ |
5937 | if test "$enableval" = yes; then |
5938 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5939 | else | |
5940 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5941 | fi | |
698dcdb6 | 5942 | |
10f2d63a | 5943 | else |
698dcdb6 | 5944 | |
10f2d63a VZ |
5945 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5946 | if test "x$LINE" != x ; then | |
5947 | eval "DEFAULT_$LINE" | |
5948 | else | |
5949 | no_cache=1 | |
5950 | fi | |
5951 | ||
5952 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5953 | |
5954 | fi | |
10f2d63a VZ |
5955 | |
5956 | ||
5957 | eval "$ac_cv_use_checkbox" | |
5958 | if test "$no_cache" != 1; then | |
5959 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5960 | fi | |
5961 | ||
5962 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5964 | else |
698dcdb6 | 5965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5966 | fi |
698dcdb6 | 5967 | |
10f2d63a | 5968 | |
698dcdb6 | 5969 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
b040e242 | 5970 | echo "configure:5971: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5971 | no_cache=0 |
5972 | # Check whether --enable-checklst or --disable-checklst was given. | |
5973 | if test "${enable_checklst+set}" = set; then | |
5974 | enableval="$enable_checklst" | |
698dcdb6 | 5975 | |
10f2d63a VZ |
5976 | if test "$enableval" = yes; then |
5977 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5978 | else | |
5979 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5980 | fi | |
698dcdb6 | 5981 | |
10f2d63a | 5982 | else |
698dcdb6 | 5983 | |
10f2d63a VZ |
5984 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5985 | if test "x$LINE" != x ; then | |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
5991 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5992 | |
5993 | fi | |
10f2d63a VZ |
5994 | |
5995 | ||
5996 | eval "$ac_cv_use_checklst" | |
5997 | if test "$no_cache" != 1; then | |
5998 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5999 | fi | |
6000 | ||
6001 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 6002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6003 | else |
698dcdb6 | 6004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6005 | fi |
698dcdb6 | 6006 | |
10f2d63a | 6007 | |
698dcdb6 | 6008 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
b040e242 | 6009 | echo "configure:6010: checking for --enable-choice" >&5 |
10f2d63a VZ |
6010 | no_cache=0 |
6011 | # Check whether --enable-choice or --disable-choice was given. | |
6012 | if test "${enable_choice+set}" = set; then | |
6013 | enableval="$enable_choice" | |
698dcdb6 | 6014 | |
10f2d63a VZ |
6015 | if test "$enableval" = yes; then |
6016 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6017 | else | |
6018 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6019 | fi | |
698dcdb6 | 6020 | |
10f2d63a | 6021 | else |
698dcdb6 | 6022 | |
10f2d63a VZ |
6023 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
6031 | |
6032 | fi | |
10f2d63a VZ |
6033 | |
6034 | ||
6035 | eval "$ac_cv_use_choice" | |
6036 | if test "$no_cache" != 1; then | |
6037 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6038 | fi | |
6039 | ||
6040 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 6041 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6042 | else |
698dcdb6 | 6043 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6044 | fi |
698dcdb6 | 6045 | |
10f2d63a | 6046 | |
698dcdb6 | 6047 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
b040e242 | 6048 | echo "configure:6049: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6049 | no_cache=0 |
6050 | # Check whether --enable-combobox or --disable-combobox was given. | |
6051 | if test "${enable_combobox+set}" = set; then | |
6052 | enableval="$enable_combobox" | |
698dcdb6 | 6053 | |
10f2d63a VZ |
6054 | if test "$enableval" = yes; then |
6055 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6056 | else | |
6057 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6058 | fi | |
698dcdb6 | 6059 | |
10f2d63a | 6060 | else |
698dcdb6 | 6061 | |
10f2d63a VZ |
6062 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6063 | if test "x$LINE" != x ; then | |
6064 | eval "DEFAULT_$LINE" | |
6065 | else | |
6066 | no_cache=1 | |
6067 | fi | |
6068 | ||
6069 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6070 | |
6071 | fi | |
10f2d63a VZ |
6072 | |
6073 | ||
6074 | eval "$ac_cv_use_combobox" | |
6075 | if test "$no_cache" != 1; then | |
6076 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6077 | fi | |
6078 | ||
6079 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6080 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6081 | else |
698dcdb6 | 6082 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6083 | fi |
698dcdb6 | 6084 | |
10f2d63a | 6085 | |
698dcdb6 | 6086 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
b040e242 | 6087 | echo "configure:6088: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6088 | no_cache=0 |
6089 | # Check whether --enable-gauge or --disable-gauge was given. | |
6090 | if test "${enable_gauge+set}" = set; then | |
6091 | enableval="$enable_gauge" | |
698dcdb6 | 6092 | |
10f2d63a VZ |
6093 | if test "$enableval" = yes; then |
6094 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6095 | else | |
6096 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6097 | fi | |
698dcdb6 | 6098 | |
10f2d63a | 6099 | else |
698dcdb6 | 6100 | |
10f2d63a VZ |
6101 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6102 | if test "x$LINE" != x ; then | |
6103 | eval "DEFAULT_$LINE" | |
6104 | else | |
6105 | no_cache=1 | |
6106 | fi | |
6107 | ||
6108 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6109 | |
6110 | fi | |
10f2d63a VZ |
6111 | |
6112 | ||
6113 | eval "$ac_cv_use_gauge" | |
6114 | if test "$no_cache" != 1; then | |
6115 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6116 | fi | |
6117 | ||
6118 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6120 | else |
698dcdb6 | 6121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6122 | fi |
698dcdb6 | 6123 | |
10f2d63a | 6124 | |
698dcdb6 | 6125 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
b040e242 | 6126 | echo "configure:6127: checking for --enable-grid" >&5 |
10f2d63a VZ |
6127 | no_cache=0 |
6128 | # Check whether --enable-grid or --disable-grid was given. | |
6129 | if test "${enable_grid+set}" = set; then | |
6130 | enableval="$enable_grid" | |
698dcdb6 | 6131 | |
10f2d63a VZ |
6132 | if test "$enableval" = yes; then |
6133 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6134 | else | |
6135 | ac_cv_use_grid='wxUSE_GRID=no' | |
6136 | fi | |
698dcdb6 | 6137 | |
10f2d63a | 6138 | else |
698dcdb6 | 6139 | |
10f2d63a VZ |
6140 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6141 | if test "x$LINE" != x ; then | |
6142 | eval "DEFAULT_$LINE" | |
6143 | else | |
6144 | no_cache=1 | |
6145 | fi | |
6146 | ||
6147 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6148 | |
6149 | fi | |
10f2d63a VZ |
6150 | |
6151 | ||
6152 | eval "$ac_cv_use_grid" | |
6153 | if test "$no_cache" != 1; then | |
6154 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6155 | fi | |
6156 | ||
6157 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6158 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6159 | else |
698dcdb6 | 6160 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6161 | fi |
698dcdb6 | 6162 | |
10f2d63a | 6163 | |
698dcdb6 | 6164 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
b040e242 | 6165 | echo "configure:6166: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6166 | no_cache=0 |
6167 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6168 | if test "${enable_newgrid+set}" = set; then | |
6169 | enableval="$enable_newgrid" | |
698dcdb6 | 6170 | |
10f2d63a VZ |
6171 | if test "$enableval" = yes; then |
6172 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6173 | else | |
6174 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6175 | fi | |
698dcdb6 | 6176 | |
10f2d63a | 6177 | else |
698dcdb6 | 6178 | |
10f2d63a VZ |
6179 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6180 | if test "x$LINE" != x ; then | |
6181 | eval "DEFAULT_$LINE" | |
6182 | else | |
6183 | no_cache=1 | |
6184 | fi | |
6185 | ||
6186 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6187 | |
6188 | fi | |
10f2d63a VZ |
6189 | |
6190 | ||
6191 | eval "$ac_cv_use_newgrid" | |
6192 | if test "$no_cache" != 1; then | |
6193 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6194 | fi | |
6195 | ||
6196 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6197 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6198 | else |
698dcdb6 | 6199 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6200 | fi |
698dcdb6 | 6201 | |
10f2d63a | 6202 | |
698dcdb6 | 6203 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
b040e242 | 6204 | echo "configure:6205: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6205 | no_cache=0 |
6206 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6207 | if test "${enable_imaglist+set}" = set; then | |
6208 | enableval="$enable_imaglist" | |
698dcdb6 | 6209 | |
10f2d63a VZ |
6210 | if test "$enableval" = yes; then |
6211 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6212 | else | |
6213 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6214 | fi | |
698dcdb6 | 6215 | |
10f2d63a | 6216 | else |
698dcdb6 | 6217 | |
10f2d63a VZ |
6218 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6219 | if test "x$LINE" != x ; then | |
6220 | eval "DEFAULT_$LINE" | |
6221 | else | |
6222 | no_cache=1 | |
6223 | fi | |
6224 | ||
6225 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6226 | |
6227 | fi | |
10f2d63a VZ |
6228 | |
6229 | ||
6230 | eval "$ac_cv_use_imaglist" | |
6231 | if test "$no_cache" != 1; then | |
6232 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6233 | fi | |
6234 | ||
6235 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6236 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6237 | else |
698dcdb6 | 6238 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6239 | fi |
698dcdb6 | 6240 | |
10f2d63a | 6241 | |
698dcdb6 | 6242 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
b040e242 | 6243 | echo "configure:6244: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6244 | no_cache=0 |
6245 | # Check whether --enable-listbox or --disable-listbox was given. | |
6246 | if test "${enable_listbox+set}" = set; then | |
6247 | enableval="$enable_listbox" | |
698dcdb6 | 6248 | |
10f2d63a VZ |
6249 | if test "$enableval" = yes; then |
6250 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6251 | else | |
6252 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6253 | fi | |
698dcdb6 | 6254 | |
10f2d63a | 6255 | else |
698dcdb6 | 6256 | |
10f2d63a VZ |
6257 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6258 | if test "x$LINE" != x ; then | |
6259 | eval "DEFAULT_$LINE" | |
6260 | else | |
6261 | no_cache=1 | |
6262 | fi | |
6263 | ||
6264 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6265 | |
6266 | fi | |
10f2d63a VZ |
6267 | |
6268 | ||
6269 | eval "$ac_cv_use_listbox" | |
6270 | if test "$no_cache" != 1; then | |
6271 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6272 | fi | |
6273 | ||
6274 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6275 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6276 | else |
698dcdb6 | 6277 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6278 | fi |
698dcdb6 | 6279 | |
10f2d63a | 6280 | |
698dcdb6 | 6281 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
b040e242 | 6282 | echo "configure:6283: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6283 | no_cache=0 |
6284 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6285 | if test "${enable_listctrl+set}" = set; then | |
6286 | enableval="$enable_listctrl" | |
698dcdb6 | 6287 | |
10f2d63a VZ |
6288 | if test "$enableval" = yes; then |
6289 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6290 | else | |
6291 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6292 | fi | |
698dcdb6 | 6293 | |
10f2d63a | 6294 | else |
698dcdb6 | 6295 | |
10f2d63a VZ |
6296 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6297 | if test "x$LINE" != x ; then | |
6298 | eval "DEFAULT_$LINE" | |
6299 | else | |
6300 | no_cache=1 | |
6301 | fi | |
6302 | ||
6303 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6304 | |
6305 | fi | |
10f2d63a VZ |
6306 | |
6307 | ||
6308 | eval "$ac_cv_use_listctrl" | |
6309 | if test "$no_cache" != 1; then | |
6310 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6311 | fi | |
6312 | ||
6313 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6315 | else |
698dcdb6 | 6316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6317 | fi |
698dcdb6 | 6318 | |
10f2d63a | 6319 | |
698dcdb6 | 6320 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
b040e242 | 6321 | echo "configure:6322: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6322 | no_cache=0 |
6323 | # Check whether --enable-notebook or --disable-notebook was given. | |
6324 | if test "${enable_notebook+set}" = set; then | |
6325 | enableval="$enable_notebook" | |
698dcdb6 | 6326 | |
10f2d63a VZ |
6327 | if test "$enableval" = yes; then |
6328 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6329 | else | |
6330 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6331 | fi | |
698dcdb6 | 6332 | |
10f2d63a | 6333 | else |
698dcdb6 | 6334 | |
10f2d63a VZ |
6335 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6336 | if test "x$LINE" != x ; then | |
6337 | eval "DEFAULT_$LINE" | |
6338 | else | |
6339 | no_cache=1 | |
6340 | fi | |
6341 | ||
6342 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6343 | |
6344 | fi | |
10f2d63a VZ |
6345 | |
6346 | ||
6347 | eval "$ac_cv_use_notebook" | |
6348 | if test "$no_cache" != 1; then | |
6349 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6350 | fi | |
6351 | ||
6352 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6353 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6354 | else |
698dcdb6 | 6355 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6356 | fi |
698dcdb6 | 6357 | |
10f2d63a | 6358 | |
24176f2c | 6359 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
b040e242 | 6360 | echo "configure:6361: checking for --enable-propsheet" >&5 |
24176f2c GD |
6361 | no_cache=0 |
6362 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6363 | if test "${enable_propsheet+set}" = set; then | |
6364 | enableval="$enable_propsheet" | |
6365 | ||
6366 | if test "$enableval" = yes; then | |
6367 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6368 | else | |
6369 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6370 | fi | |
6371 | ||
6372 | else | |
6373 | ||
6374 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6375 | if test "x$LINE" != x ; then | |
6376 | eval "DEFAULT_$LINE" | |
6377 | else | |
6378 | no_cache=1 | |
6379 | fi | |
6380 | ||
6381 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6382 | ||
6383 | fi | |
6384 | ||
6385 | ||
6386 | eval "$ac_cv_use_propsheet" | |
6387 | if test "$no_cache" != 1; then | |
6388 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6389 | fi | |
6390 | ||
6391 | if test "$wxUSE_PROPSHEET" = yes; then | |
6392 | echo "$ac_t""yes" 1>&6 | |
6393 | else | |
6394 | echo "$ac_t""no" 1>&6 | |
6395 | fi | |
6396 | ||
6397 | ||
698dcdb6 | 6398 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
b040e242 | 6399 | echo "configure:6400: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6400 | no_cache=0 |
6401 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6402 | if test "${enable_radiobox+set}" = set; then | |
6403 | enableval="$enable_radiobox" | |
698dcdb6 | 6404 | |
10f2d63a VZ |
6405 | if test "$enableval" = yes; then |
6406 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6407 | else | |
6408 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6409 | fi | |
698dcdb6 | 6410 | |
10f2d63a | 6411 | else |
698dcdb6 | 6412 | |
10f2d63a VZ |
6413 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6414 | if test "x$LINE" != x ; then | |
6415 | eval "DEFAULT_$LINE" | |
6416 | else | |
6417 | no_cache=1 | |
6418 | fi | |
6419 | ||
6420 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6421 | |
6422 | fi | |
10f2d63a VZ |
6423 | |
6424 | ||
6425 | eval "$ac_cv_use_radiobox" | |
6426 | if test "$no_cache" != 1; then | |
6427 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6428 | fi | |
6429 | ||
6430 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6431 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6432 | else |
698dcdb6 | 6433 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6434 | fi |
698dcdb6 | 6435 | |
10f2d63a | 6436 | |
698dcdb6 | 6437 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
b040e242 | 6438 | echo "configure:6439: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6439 | no_cache=0 |
6440 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6441 | if test "${enable_radiobtn+set}" = set; then | |
6442 | enableval="$enable_radiobtn" | |
698dcdb6 | 6443 | |
10f2d63a VZ |
6444 | if test "$enableval" = yes; then |
6445 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6446 | else | |
6447 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6448 | fi | |
698dcdb6 | 6449 | |
10f2d63a | 6450 | else |
698dcdb6 | 6451 | |
10f2d63a VZ |
6452 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6453 | if test "x$LINE" != x ; then | |
6454 | eval "DEFAULT_$LINE" | |
6455 | else | |
6456 | no_cache=1 | |
6457 | fi | |
6458 | ||
6459 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6460 | |
6461 | fi | |
10f2d63a VZ |
6462 | |
6463 | ||
6464 | eval "$ac_cv_use_radiobtn" | |
6465 | if test "$no_cache" != 1; then | |
6466 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6467 | fi | |
6468 | ||
6469 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6471 | else |
698dcdb6 | 6472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6473 | fi |
698dcdb6 | 6474 | |
10f2d63a | 6475 | |
698dcdb6 | 6476 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
b040e242 | 6477 | echo "configure:6478: checking for --enable-sash" >&5 |
10f2d63a VZ |
6478 | no_cache=0 |
6479 | # Check whether --enable-sash or --disable-sash was given. | |
6480 | if test "${enable_sash+set}" = set; then | |
6481 | enableval="$enable_sash" | |
698dcdb6 | 6482 | |
10f2d63a VZ |
6483 | if test "$enableval" = yes; then |
6484 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6485 | else | |
6486 | ac_cv_use_sash='wxUSE_SASH=no' | |
6487 | fi | |
698dcdb6 | 6488 | |
10f2d63a | 6489 | else |
698dcdb6 | 6490 | |
10f2d63a VZ |
6491 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6492 | if test "x$LINE" != x ; then | |
6493 | eval "DEFAULT_$LINE" | |
6494 | else | |
6495 | no_cache=1 | |
6496 | fi | |
6497 | ||
6498 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6499 | |
6500 | fi | |
10f2d63a VZ |
6501 | |
6502 | ||
6503 | eval "$ac_cv_use_sash" | |
6504 | if test "$no_cache" != 1; then | |
6505 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6506 | fi | |
6507 | ||
6508 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6509 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6510 | else |
698dcdb6 | 6511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6512 | fi |
698dcdb6 | 6513 | |
10f2d63a | 6514 | |
698dcdb6 | 6515 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
b040e242 | 6516 | echo "configure:6517: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6517 | no_cache=0 |
6518 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6519 | if test "${enable_scrollbar+set}" = set; then | |
6520 | enableval="$enable_scrollbar" | |
698dcdb6 | 6521 | |
10f2d63a VZ |
6522 | if test "$enableval" = yes; then |
6523 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6524 | else | |
6525 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6526 | fi | |
698dcdb6 | 6527 | |
10f2d63a | 6528 | else |
698dcdb6 | 6529 | |
10f2d63a VZ |
6530 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6531 | if test "x$LINE" != x ; then | |
6532 | eval "DEFAULT_$LINE" | |
6533 | else | |
6534 | no_cache=1 | |
6535 | fi | |
6536 | ||
6537 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6538 | |
6539 | fi | |
10f2d63a VZ |
6540 | |
6541 | ||
6542 | eval "$ac_cv_use_scrollbar" | |
6543 | if test "$no_cache" != 1; then | |
6544 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6545 | fi | |
6546 | ||
6547 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6548 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6549 | else |
698dcdb6 | 6550 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6551 | fi |
698dcdb6 | 6552 | |
10f2d63a | 6553 | |
698dcdb6 | 6554 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
b040e242 | 6555 | echo "configure:6556: checking for --enable-slider" >&5 |
10f2d63a VZ |
6556 | no_cache=0 |
6557 | # Check whether --enable-slider or --disable-slider was given. | |
6558 | if test "${enable_slider+set}" = set; then | |
6559 | enableval="$enable_slider" | |
698dcdb6 | 6560 | |
10f2d63a VZ |
6561 | if test "$enableval" = yes; then |
6562 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6563 | else | |
6564 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6565 | fi | |
698dcdb6 | 6566 | |
10f2d63a | 6567 | else |
698dcdb6 | 6568 | |
10f2d63a VZ |
6569 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6577 | |
6578 | fi | |
10f2d63a VZ |
6579 | |
6580 | ||
6581 | eval "$ac_cv_use_slider" | |
6582 | if test "$no_cache" != 1; then | |
6583 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6584 | fi | |
6585 | ||
6586 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6587 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6588 | else |
698dcdb6 | 6589 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6590 | fi |
698dcdb6 | 6591 | |
10f2d63a | 6592 | |
698dcdb6 | 6593 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
b040e242 | 6594 | echo "configure:6595: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6595 | no_cache=0 |
6596 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6597 | if test "${enable_spinbtn+set}" = set; then | |
6598 | enableval="$enable_spinbtn" | |
698dcdb6 | 6599 | |
10f2d63a VZ |
6600 | if test "$enableval" = yes; then |
6601 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6602 | else | |
6603 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6604 | fi | |
698dcdb6 | 6605 | |
10f2d63a | 6606 | else |
698dcdb6 | 6607 | |
10f2d63a VZ |
6608 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6609 | if test "x$LINE" != x ; then | |
6610 | eval "DEFAULT_$LINE" | |
6611 | else | |
6612 | no_cache=1 | |
6613 | fi | |
6614 | ||
6615 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6616 | |
6617 | fi | |
10f2d63a VZ |
6618 | |
6619 | ||
6620 | eval "$ac_cv_use_spinbtn" | |
6621 | if test "$no_cache" != 1; then | |
6622 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6623 | fi | |
6624 | ||
6625 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6626 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6627 | else |
698dcdb6 | 6628 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6629 | fi |
698dcdb6 | 6630 | |
10f2d63a | 6631 | |
698dcdb6 | 6632 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
b040e242 | 6633 | echo "configure:6634: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6634 | no_cache=0 |
6635 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6636 | if test "${enable_spinctrl+set}" = set; then | |
6637 | enableval="$enable_spinctrl" | |
698dcdb6 | 6638 | |
56cfaa52 RR |
6639 | if test "$enableval" = yes; then |
6640 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6641 | else | |
6642 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6643 | fi | |
698dcdb6 | 6644 | |
56cfaa52 | 6645 | else |
698dcdb6 | 6646 | |
56cfaa52 RR |
6647 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6648 | if test "x$LINE" != x ; then | |
6649 | eval "DEFAULT_$LINE" | |
6650 | else | |
6651 | no_cache=1 | |
6652 | fi | |
6653 | ||
6654 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6655 | |
6656 | fi | |
56cfaa52 RR |
6657 | |
6658 | ||
6659 | eval "$ac_cv_use_spinctrl" | |
6660 | if test "$no_cache" != 1; then | |
6661 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6662 | fi | |
6663 | ||
6664 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6665 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6666 | else |
698dcdb6 | 6667 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6668 | fi |
698dcdb6 | 6669 | |
56cfaa52 | 6670 | |
698dcdb6 | 6671 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
b040e242 | 6672 | echo "configure:6673: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6673 | no_cache=0 |
6674 | # Check whether --enable-splitter or --disable-splitter was given. | |
6675 | if test "${enable_splitter+set}" = set; then | |
6676 | enableval="$enable_splitter" | |
698dcdb6 | 6677 | |
10f2d63a VZ |
6678 | if test "$enableval" = yes; then |
6679 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6680 | else | |
6681 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6682 | fi | |
698dcdb6 | 6683 | |
10f2d63a | 6684 | else |
698dcdb6 | 6685 | |
10f2d63a VZ |
6686 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6687 | if test "x$LINE" != x ; then | |
6688 | eval "DEFAULT_$LINE" | |
6689 | else | |
6690 | no_cache=1 | |
6691 | fi | |
6692 | ||
6693 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6694 | |
6695 | fi | |
10f2d63a VZ |
6696 | |
6697 | ||
6698 | eval "$ac_cv_use_splitter" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6705 | else |
698dcdb6 | 6706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6707 | fi |
698dcdb6 | 6708 | |
10f2d63a | 6709 | |
698dcdb6 | 6710 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
b040e242 | 6711 | echo "configure:6712: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6712 | no_cache=0 |
6713 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6714 | if test "${enable_statbmp+set}" = set; then | |
6715 | enableval="$enable_statbmp" | |
698dcdb6 | 6716 | |
10f2d63a VZ |
6717 | if test "$enableval" = yes; then |
6718 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6719 | else | |
6720 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6721 | fi | |
698dcdb6 | 6722 | |
10f2d63a | 6723 | else |
698dcdb6 | 6724 | |
10f2d63a VZ |
6725 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6726 | if test "x$LINE" != x ; then | |
6727 | eval "DEFAULT_$LINE" | |
6728 | else | |
6729 | no_cache=1 | |
6730 | fi | |
6731 | ||
6732 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6733 | |
6734 | fi | |
10f2d63a VZ |
6735 | |
6736 | ||
6737 | eval "$ac_cv_use_statbmp" | |
6738 | if test "$no_cache" != 1; then | |
6739 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6740 | fi | |
6741 | ||
6742 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6743 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6744 | else |
698dcdb6 | 6745 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6746 | fi |
698dcdb6 | 6747 | |
10f2d63a | 6748 | |
698dcdb6 | 6749 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
b040e242 | 6750 | echo "configure:6751: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6751 | no_cache=0 |
6752 | # Check whether --enable-statbox or --disable-statbox was given. | |
6753 | if test "${enable_statbox+set}" = set; then | |
6754 | enableval="$enable_statbox" | |
698dcdb6 | 6755 | |
10f2d63a VZ |
6756 | if test "$enableval" = yes; then |
6757 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6758 | else | |
6759 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6760 | fi | |
698dcdb6 | 6761 | |
10f2d63a | 6762 | else |
698dcdb6 | 6763 | |
10f2d63a VZ |
6764 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6765 | if test "x$LINE" != x ; then | |
6766 | eval "DEFAULT_$LINE" | |
6767 | else | |
6768 | no_cache=1 | |
6769 | fi | |
6770 | ||
6771 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6772 | |
6773 | fi | |
10f2d63a VZ |
6774 | |
6775 | ||
6776 | eval "$ac_cv_use_statbox" | |
6777 | if test "$no_cache" != 1; then | |
6778 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6779 | fi | |
6780 | ||
6781 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6782 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6783 | else |
698dcdb6 | 6784 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6785 | fi |
698dcdb6 | 6786 | |
10f2d63a | 6787 | |
698dcdb6 | 6788 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
b040e242 | 6789 | echo "configure:6790: checking for --enable-statline" >&5 |
10f2d63a VZ |
6790 | no_cache=0 |
6791 | # Check whether --enable-statline or --disable-statline was given. | |
6792 | if test "${enable_statline+set}" = set; then | |
6793 | enableval="$enable_statline" | |
698dcdb6 | 6794 | |
10f2d63a VZ |
6795 | if test "$enableval" = yes; then |
6796 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6797 | else | |
6798 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6799 | fi | |
698dcdb6 | 6800 | |
10f2d63a | 6801 | else |
698dcdb6 | 6802 | |
10f2d63a VZ |
6803 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6804 | if test "x$LINE" != x ; then | |
6805 | eval "DEFAULT_$LINE" | |
6806 | else | |
6807 | no_cache=1 | |
6808 | fi | |
6809 | ||
6810 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6811 | |
6812 | fi | |
10f2d63a VZ |
6813 | |
6814 | ||
6815 | eval "$ac_cv_use_statline" | |
6816 | if test "$no_cache" != 1; then | |
6817 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6818 | fi | |
6819 | ||
6820 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6822 | else |
698dcdb6 | 6823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6824 | fi |
698dcdb6 | 6825 | |
10f2d63a | 6826 | |
1e6feb95 | 6827 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
b040e242 | 6828 | echo "configure:6829: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6829 | no_cache=0 |
6830 | # Check whether --enable-stattext or --disable-stattext was given. | |
6831 | if test "${enable_stattext+set}" = set; then | |
6832 | enableval="$enable_stattext" | |
6833 | ||
6834 | if test "$enableval" = yes; then | |
6835 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6836 | else | |
6837 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6838 | fi | |
6839 | ||
6840 | else | |
6841 | ||
6842 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6843 | if test "x$LINE" != x ; then | |
6844 | eval "DEFAULT_$LINE" | |
6845 | else | |
6846 | no_cache=1 | |
6847 | fi | |
6848 | ||
6849 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6850 | ||
6851 | fi | |
6852 | ||
6853 | ||
6854 | eval "$ac_cv_use_stattext" | |
6855 | if test "$no_cache" != 1; then | |
6856 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6857 | fi | |
6858 | ||
6859 | if test "$wxUSE_STATTEXT" = yes; then | |
6860 | echo "$ac_t""yes" 1>&6 | |
6861 | else | |
6862 | echo "$ac_t""no" 1>&6 | |
6863 | fi | |
6864 | ||
6865 | ||
698dcdb6 | 6866 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
b040e242 | 6867 | echo "configure:6868: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6868 | no_cache=0 |
6869 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6870 | if test "${enable_statusbar+set}" = set; then | |
6871 | enableval="$enable_statusbar" | |
698dcdb6 | 6872 | |
10f2d63a VZ |
6873 | if test "$enableval" = yes; then |
6874 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6875 | else | |
6876 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6877 | fi | |
698dcdb6 | 6878 | |
10f2d63a | 6879 | else |
698dcdb6 | 6880 | |
10f2d63a VZ |
6881 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6882 | if test "x$LINE" != x ; then | |
6883 | eval "DEFAULT_$LINE" | |
6884 | else | |
6885 | no_cache=1 | |
6886 | fi | |
6887 | ||
6888 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6889 | |
6890 | fi | |
10f2d63a VZ |
6891 | |
6892 | ||
6893 | eval "$ac_cv_use_statusbar" | |
6894 | if test "$no_cache" != 1; then | |
6895 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6896 | fi | |
6897 | ||
6898 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6900 | else |
698dcdb6 | 6901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6902 | fi |
698dcdb6 | 6903 | |
10f2d63a | 6904 | |
698dcdb6 | 6905 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
b040e242 | 6906 | echo "configure:6907: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6907 | no_cache=0 |
6908 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6909 | if test "${enable_tabdialog+set}" = set; then | |
6910 | enableval="$enable_tabdialog" | |
698dcdb6 | 6911 | |
10f2d63a VZ |
6912 | if test "$enableval" = yes; then |
6913 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6914 | else | |
6915 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6916 | fi | |
698dcdb6 | 6917 | |
10f2d63a | 6918 | else |
698dcdb6 | 6919 | |
10f2d63a VZ |
6920 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6921 | if test "x$LINE" != x ; then | |
6922 | eval "DEFAULT_$LINE" | |
6923 | else | |
6924 | no_cache=1 | |
6925 | fi | |
6926 | ||
6927 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6928 | |
6929 | fi | |
10f2d63a VZ |
6930 | |
6931 | ||
6932 | eval "$ac_cv_use_tabdialog" | |
6933 | if test "$no_cache" != 1; then | |
6934 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6935 | fi | |
6936 | ||
6937 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6938 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6939 | else |
698dcdb6 | 6940 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6941 | fi |
698dcdb6 | 6942 | |
10f2d63a | 6943 | |
1e6feb95 | 6944 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
b040e242 | 6945 | echo "configure:6946: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6946 | no_cache=0 |
6947 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6948 | if test "${enable_textctrl+set}" = set; then | |
6949 | enableval="$enable_textctrl" | |
6950 | ||
6951 | if test "$enableval" = yes; then | |
6952 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6953 | else | |
6954 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6955 | fi | |
6956 | ||
6957 | else | |
6958 | ||
6959 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6960 | if test "x$LINE" != x ; then | |
6961 | eval "DEFAULT_$LINE" | |
6962 | else | |
6963 | no_cache=1 | |
6964 | fi | |
6965 | ||
6966 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6967 | ||
6968 | fi | |
6969 | ||
6970 | ||
6971 | eval "$ac_cv_use_textctrl" | |
6972 | if test "$no_cache" != 1; then | |
6973 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6974 | fi | |
6975 | ||
6976 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6977 | echo "$ac_t""yes" 1>&6 | |
6978 | else | |
6979 | echo "$ac_t""no" 1>&6 | |
6980 | fi | |
6981 | ||
6982 | ||
698dcdb6 | 6983 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
b040e242 | 6984 | echo "configure:6985: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6985 | no_cache=0 |
6986 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6987 | if test "${enable_togglebtn+set}" = set; then | |
6988 | enableval="$enable_togglebtn" | |
698dcdb6 | 6989 | |
1db8dc4a VZ |
6990 | if test "$enableval" = yes; then |
6991 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6992 | else | |
6993 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6994 | fi | |
698dcdb6 | 6995 | |
1db8dc4a | 6996 | else |
698dcdb6 | 6997 | |
1db8dc4a VZ |
6998 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6999 | if test "x$LINE" != x ; then | |
7000 | eval "DEFAULT_$LINE" | |
7001 | else | |
7002 | no_cache=1 | |
7003 | fi | |
7004 | ||
7005 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
7006 | |
7007 | fi | |
1db8dc4a VZ |
7008 | |
7009 | ||
7010 | eval "$ac_cv_use_togglebtn" | |
7011 | if test "$no_cache" != 1; then | |
7012 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7013 | fi | |
7014 | ||
7015 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 7016 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7017 | else |
698dcdb6 | 7018 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7019 | fi |
698dcdb6 | 7020 | |
1db8dc4a | 7021 | |
698dcdb6 | 7022 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
b040e242 | 7023 | echo "configure:7024: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7024 | no_cache=0 |
7025 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7026 | if test "${enable_toolbar+set}" = set; then | |
7027 | enableval="$enable_toolbar" | |
698dcdb6 | 7028 | |
10f2d63a VZ |
7029 | if test "$enableval" = yes; then |
7030 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7031 | else | |
7032 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7033 | fi | |
698dcdb6 | 7034 | |
10f2d63a | 7035 | else |
698dcdb6 | 7036 | |
10f2d63a VZ |
7037 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7038 | if test "x$LINE" != x ; then | |
7039 | eval "DEFAULT_$LINE" | |
7040 | else | |
7041 | no_cache=1 | |
7042 | fi | |
7043 | ||
7044 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7045 | |
7046 | fi | |
10f2d63a VZ |
7047 | |
7048 | ||
7049 | eval "$ac_cv_use_toolbar" | |
7050 | if test "$no_cache" != 1; then | |
7051 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7052 | fi | |
7053 | ||
7054 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7056 | else |
698dcdb6 | 7057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7058 | fi |
698dcdb6 | 7059 | |
10f2d63a | 7060 | |
698dcdb6 | 7061 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
b040e242 | 7062 | echo "configure:7063: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7063 | no_cache=0 |
7064 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7065 | if test "${enable_tbarnative+set}" = set; then | |
7066 | enableval="$enable_tbarnative" | |
698dcdb6 | 7067 | |
360d6699 VZ |
7068 | if test "$enableval" = yes; then |
7069 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7070 | else | |
7071 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7072 | fi | |
698dcdb6 | 7073 | |
360d6699 | 7074 | else |
698dcdb6 | 7075 | |
360d6699 VZ |
7076 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7077 | if test "x$LINE" != x ; then | |
7078 | eval "DEFAULT_$LINE" | |
7079 | else | |
7080 | no_cache=1 | |
7081 | fi | |
7082 | ||
7083 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7084 | |
7085 | fi | |
360d6699 VZ |
7086 | |
7087 | ||
7088 | eval "$ac_cv_use_tbarnative" | |
7089 | if test "$no_cache" != 1; then | |
7090 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7091 | fi | |
7092 | ||
7093 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7094 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7095 | else |
698dcdb6 | 7096 | echo "$ac_t""no" 1>&6 |
360d6699 | 7097 | fi |
698dcdb6 | 7098 | |
360d6699 | 7099 | |
698dcdb6 | 7100 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
b040e242 | 7101 | echo "configure:7102: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7102 | no_cache=0 |
7103 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7104 | if test "${enable_tbarsmpl+set}" = set; then | |
7105 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7106 | |
360d6699 VZ |
7107 | if test "$enableval" = yes; then |
7108 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7109 | else | |
7110 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7111 | fi | |
698dcdb6 | 7112 | |
360d6699 | 7113 | else |
698dcdb6 | 7114 | |
360d6699 VZ |
7115 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7116 | if test "x$LINE" != x ; then | |
7117 | eval "DEFAULT_$LINE" | |
7118 | else | |
7119 | no_cache=1 | |
7120 | fi | |
7121 | ||
7122 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7123 | |
7124 | fi | |
360d6699 VZ |
7125 | |
7126 | ||
7127 | eval "$ac_cv_use_tbarsmpl" | |
7128 | if test "$no_cache" != 1; then | |
7129 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7130 | fi | |
7131 | ||
7132 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7133 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7134 | else |
698dcdb6 | 7135 | echo "$ac_t""no" 1>&6 |
360d6699 | 7136 | fi |
698dcdb6 | 7137 | |
360d6699 | 7138 | |
698dcdb6 | 7139 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
b040e242 | 7140 | echo "configure:7141: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7141 | no_cache=0 |
7142 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7143 | if test "${enable_treectrl+set}" = set; then | |
7144 | enableval="$enable_treectrl" | |
698dcdb6 | 7145 | |
10f2d63a VZ |
7146 | if test "$enableval" = yes; then |
7147 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7148 | else | |
7149 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7150 | fi | |
698dcdb6 | 7151 | |
10f2d63a | 7152 | else |
698dcdb6 | 7153 | |
10f2d63a VZ |
7154 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7155 | if test "x$LINE" != x ; then | |
7156 | eval "DEFAULT_$LINE" | |
7157 | else | |
7158 | no_cache=1 | |
7159 | fi | |
7160 | ||
7161 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7162 | |
7163 | fi | |
10f2d63a VZ |
7164 | |
7165 | ||
1e6feb95 VZ |
7166 | eval "$ac_cv_use_treectrl" |
7167 | if test "$no_cache" != 1; then | |
7168 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7169 | fi | |
7170 | ||
7171 | if test "$wxUSE_TREECTRL" = yes; then | |
7172 | echo "$ac_t""yes" 1>&6 | |
7173 | else | |
7174 | echo "$ac_t""no" 1>&6 | |
7175 | fi | |
7176 | ||
7177 | ||
9926e4a4 | 7178 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
b040e242 | 7179 | echo "configure:7180: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7180 | no_cache=0 |
7181 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7182 | if test "${enable_tipwindow+set}" = set; then | |
7183 | enableval="$enable_tipwindow" | |
7184 | ||
7185 | if test "$enableval" = yes; then | |
7186 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7187 | else | |
7188 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7189 | fi | |
7190 | ||
7191 | else | |
7192 | ||
7193 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7194 | if test "x$LINE" != x ; then | |
7195 | eval "DEFAULT_$LINE" | |
7196 | else | |
7197 | no_cache=1 | |
7198 | fi | |
7199 | ||
7200 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7201 | ||
7202 | fi | |
7203 | ||
7204 | ||
7205 | eval "$ac_cv_use_tipwindow" | |
7206 | if test "$no_cache" != 1; then | |
7207 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7208 | fi | |
7209 | ||
7210 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7211 | echo "$ac_t""yes" 1>&6 | |
7212 | else | |
7213 | echo "$ac_t""no" 1>&6 | |
7214 | fi | |
7215 | ||
7216 | ||
9f41d601 | 7217 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
b040e242 | 7218 | echo "configure:7219: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7219 | no_cache=0 |
7220 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7221 | if test "${enable_popupwin+set}" = set; then | |
7222 | enableval="$enable_popupwin" | |
7223 | ||
7224 | if test "$enableval" = yes; then | |
7225 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7226 | else | |
7227 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7228 | fi | |
7229 | ||
7230 | else | |
7231 | ||
7232 | LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7240 | ||
7241 | fi | |
7242 | ||
7243 | ||
7244 | eval "$ac_cv_use_popupwin" | |
7245 | if test "$no_cache" != 1; then | |
7246 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7247 | fi | |
7248 | ||
7249 | if test "$wxUSE_POPUPWIN" = yes; then | |
7250 | echo "$ac_t""yes" 1>&6 | |
7251 | else | |
7252 | echo "$ac_t""no" 1>&6 | |
7253 | fi | |
7254 | ||
7255 | ||
1e6feb95 VZ |
7256 | |
7257 | ||
7258 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
b040e242 | 7259 | echo "configure:7260: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7260 | no_cache=0 |
7261 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7262 | if test "${enable_commondlg+set}" = set; then | |
7263 | enableval="$enable_commondlg" | |
7264 | ||
7265 | if test "$enableval" = yes; then | |
7266 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7267 | else | |
7268 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7269 | fi | |
7270 | ||
7271 | else | |
7272 | ||
7273 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7274 | if test "x$LINE" != x ; then | |
7275 | eval "DEFAULT_$LINE" | |
7276 | else | |
7277 | no_cache=1 | |
7278 | fi | |
7279 | ||
7280 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7281 | ||
7282 | fi | |
7283 | ||
7284 | ||
7285 | eval "$ac_cv_use_commondlg" | |
7286 | if test "$no_cache" != 1; then | |
7287 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7288 | fi | |
7289 | ||
7290 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7291 | echo "$ac_t""yes" 1>&6 | |
7292 | else | |
7293 | echo "$ac_t""no" 1>&6 | |
7294 | fi | |
7295 | ||
7296 | ||
7297 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
b040e242 | 7298 | echo "configure:7299: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7299 | no_cache=0 |
7300 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7301 | if test "${enable_choicedlg+set}" = set; then | |
7302 | enableval="$enable_choicedlg" | |
7303 | ||
7304 | if test "$enableval" = yes; then | |
7305 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7306 | else | |
7307 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7308 | fi | |
7309 | ||
7310 | else | |
7311 | ||
7312 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7313 | if test "x$LINE" != x ; then | |
7314 | eval "DEFAULT_$LINE" | |
7315 | else | |
7316 | no_cache=1 | |
7317 | fi | |
7318 | ||
7319 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7320 | ||
7321 | fi | |
7322 | ||
7323 | ||
7324 | eval "$ac_cv_use_choicedlg" | |
7325 | if test "$no_cache" != 1; then | |
7326 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7327 | fi | |
7328 | ||
7329 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7330 | echo "$ac_t""yes" 1>&6 | |
7331 | else | |
7332 | echo "$ac_t""no" 1>&6 | |
7333 | fi | |
7334 | ||
7335 | ||
7336 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
b040e242 | 7337 | echo "configure:7338: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7338 | no_cache=0 |
7339 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7340 | if test "${enable_coldlg+set}" = set; then | |
7341 | enableval="$enable_coldlg" | |
7342 | ||
7343 | if test "$enableval" = yes; then | |
7344 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7345 | else | |
7346 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7347 | fi | |
7348 | ||
7349 | else | |
7350 | ||
7351 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7352 | if test "x$LINE" != x ; then | |
7353 | eval "DEFAULT_$LINE" | |
7354 | else | |
7355 | no_cache=1 | |
7356 | fi | |
7357 | ||
7358 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7359 | ||
7360 | fi | |
7361 | ||
7362 | ||
7363 | eval "$ac_cv_use_coldlg" | |
7364 | if test "$no_cache" != 1; then | |
7365 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7366 | fi | |
7367 | ||
7368 | if test "$wxUSE_COLOURDLG" = yes; then | |
7369 | echo "$ac_t""yes" 1>&6 | |
7370 | else | |
7371 | echo "$ac_t""no" 1>&6 | |
7372 | fi | |
7373 | ||
7374 | ||
7375 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
b040e242 | 7376 | echo "configure:7377: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7377 | no_cache=0 |
7378 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7379 | if test "${enable_filedlg+set}" = set; then | |
7380 | enableval="$enable_filedlg" | |
7381 | ||
7382 | if test "$enableval" = yes; then | |
7383 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7384 | else | |
7385 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7386 | fi | |
7387 | ||
7388 | else | |
7389 | ||
7390 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7391 | if test "x$LINE" != x ; then | |
7392 | eval "DEFAULT_$LINE" | |
7393 | else | |
7394 | no_cache=1 | |
7395 | fi | |
7396 | ||
7397 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7398 | ||
7399 | fi | |
7400 | ||
7401 | ||
7402 | eval "$ac_cv_use_filedlg" | |
7403 | if test "$no_cache" != 1; then | |
7404 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7405 | fi | |
7406 | ||
7407 | if test "$wxUSE_FILEDLG" = yes; then | |
7408 | echo "$ac_t""yes" 1>&6 | |
7409 | else | |
7410 | echo "$ac_t""no" 1>&6 | |
7411 | fi | |
7412 | ||
7413 | ||
69d27ff7 | 7414 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
b040e242 | 7415 | echo "configure:7416: checking for --enable-finddlg" >&5 |
8db37e06 | 7416 | no_cache=0 |
69d27ff7 MB |
7417 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7418 | if test "${enable_finddlg+set}" = set; then | |
7419 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7420 | |
7421 | if test "$enableval" = yes; then | |
69d27ff7 | 7422 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7423 | else |
69d27ff7 | 7424 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7425 | fi |
7426 | ||
7427 | else | |
7428 | ||
7429 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7430 | if test "x$LINE" != x ; then | |
7431 | eval "DEFAULT_$LINE" | |
7432 | else | |
7433 | no_cache=1 | |
7434 | fi | |
7435 | ||
69d27ff7 | 7436 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7437 | |
7438 | fi | |
7439 | ||
7440 | ||
69d27ff7 | 7441 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7442 | if test "$no_cache" != 1; then |
69d27ff7 | 7443 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7444 | fi |
7445 | ||
7446 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7447 | echo "$ac_t""yes" 1>&6 | |
7448 | else | |
7449 | echo "$ac_t""no" 1>&6 | |
7450 | fi | |
7451 | ||
7452 | ||
1e6feb95 | 7453 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
b040e242 | 7454 | echo "configure:7455: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7455 | no_cache=0 |
7456 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7457 | if test "${enable_fontdlg+set}" = set; then | |
7458 | enableval="$enable_fontdlg" | |
7459 | ||
7460 | if test "$enableval" = yes; then | |
7461 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7462 | else | |
7463 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7464 | fi | |
7465 | ||
7466 | else | |
7467 | ||
7468 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7469 | if test "x$LINE" != x ; then | |
7470 | eval "DEFAULT_$LINE" | |
7471 | else | |
7472 | no_cache=1 | |
7473 | fi | |
7474 | ||
7475 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7476 | ||
7477 | fi | |
7478 | ||
7479 | ||
7480 | eval "$ac_cv_use_fontdlg" | |
7481 | if test "$no_cache" != 1; then | |
7482 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7483 | fi | |
7484 | ||
7485 | if test "$wxUSE_FONTDLG" = yes; then | |
7486 | echo "$ac_t""yes" 1>&6 | |
7487 | else | |
7488 | echo "$ac_t""no" 1>&6 | |
7489 | fi | |
7490 | ||
7491 | ||
7492 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
b040e242 | 7493 | echo "configure:7494: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7494 | no_cache=0 |
7495 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7496 | if test "${enable_dirdlg+set}" = set; then | |
7497 | enableval="$enable_dirdlg" | |
7498 | ||
7499 | if test "$enableval" = yes; then | |
7500 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7501 | else | |
7502 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7503 | fi | |
7504 | ||
7505 | else | |
7506 | ||
7507 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7508 | if test "x$LINE" != x ; then | |
7509 | eval "DEFAULT_$LINE" | |
7510 | else | |
7511 | no_cache=1 | |
7512 | fi | |
7513 | ||
7514 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7515 | ||
7516 | fi | |
7517 | ||
7518 | ||
7519 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7520 | if test "$no_cache" != 1; then |
1e6feb95 | 7521 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7522 | fi |
7523 | ||
1e6feb95 | 7524 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7526 | else |
698dcdb6 | 7527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7528 | fi |
698dcdb6 VZ |
7529 | |
7530 | ||
1e6feb95 | 7531 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
b040e242 | 7532 | echo "configure:7533: checking for --enable-msgdlg" >&5 |
10f2d63a | 7533 | no_cache=0 |
1e6feb95 VZ |
7534 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7535 | if test "${enable_msgdlg+set}" = set; then | |
7536 | enableval="$enable_msgdlg" | |
698dcdb6 | 7537 | |
10f2d63a | 7538 | if test "$enableval" = yes; then |
1e6feb95 | 7539 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7540 | else |
1e6feb95 | 7541 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7542 | fi |
698dcdb6 | 7543 | |
10f2d63a | 7544 | else |
698dcdb6 | 7545 | |
1e6feb95 | 7546 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7547 | if test "x$LINE" != x ; then |
7548 | eval "DEFAULT_$LINE" | |
7549 | else | |
7550 | no_cache=1 | |
7551 | fi | |
7552 | ||
1e6feb95 | 7553 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7554 | |
7555 | fi | |
10f2d63a VZ |
7556 | |
7557 | ||
1e6feb95 | 7558 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7559 | if test "$no_cache" != 1; then |
1e6feb95 | 7560 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7561 | fi |
7562 | ||
1e6feb95 | 7563 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7564 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7565 | else |
698dcdb6 | 7566 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7567 | fi |
698dcdb6 | 7568 | |
10f2d63a | 7569 | |
1e6feb95 | 7570 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
b040e242 | 7571 | echo "configure:7572: checking for --enable-numberdlg" >&5 |
10f2d63a | 7572 | no_cache=0 |
1e6feb95 VZ |
7573 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7574 | if test "${enable_numberdlg+set}" = set; then | |
7575 | enableval="$enable_numberdlg" | |
698dcdb6 | 7576 | |
10f2d63a | 7577 | if test "$enableval" = yes; then |
1e6feb95 | 7578 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7579 | else |
1e6feb95 | 7580 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7581 | fi |
698dcdb6 | 7582 | |
10f2d63a | 7583 | else |
698dcdb6 | 7584 | |
1e6feb95 | 7585 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7586 | if test "x$LINE" != x ; then |
7587 | eval "DEFAULT_$LINE" | |
7588 | else | |
7589 | no_cache=1 | |
7590 | fi | |
7591 | ||
1e6feb95 | 7592 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7593 | |
7594 | fi | |
10f2d63a VZ |
7595 | |
7596 | ||
1e6feb95 | 7597 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7598 | if test "$no_cache" != 1; then |
1e6feb95 | 7599 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7600 | fi |
7601 | ||
1e6feb95 | 7602 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7604 | else |
698dcdb6 | 7605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7606 | fi |
698dcdb6 | 7607 | |
10f2d63a | 7608 | |
cbca9943 | 7609 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
b040e242 | 7610 | echo "configure:7611: checking for --enable-splash" >&5 |
cbca9943 VZ |
7611 | no_cache=0 |
7612 | # Check whether --enable-splash or --disable-splash was given. | |
7613 | if test "${enable_splash+set}" = set; then | |
7614 | enableval="$enable_splash" | |
7615 | ||
7616 | if test "$enableval" = yes; then | |
7617 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7618 | else | |
7619 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7620 | fi | |
7621 | ||
7622 | else | |
7623 | ||
7624 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7625 | if test "x$LINE" != x ; then | |
7626 | eval "DEFAULT_$LINE" | |
7627 | else | |
7628 | no_cache=1 | |
7629 | fi | |
7630 | ||
7631 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7632 | ||
7633 | fi | |
7634 | ||
7635 | ||
7636 | eval "$ac_cv_use_splash" | |
7637 | if test "$no_cache" != 1; then | |
7638 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7639 | fi | |
7640 | ||
7641 | if test "$wxUSE_SPLASH" = yes; then | |
7642 | echo "$ac_t""yes" 1>&6 | |
7643 | else | |
7644 | echo "$ac_t""no" 1>&6 | |
7645 | fi | |
7646 | ||
7647 | ||
698dcdb6 | 7648 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
b040e242 | 7649 | echo "configure:7650: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7650 | no_cache=0 |
7651 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7652 | if test "${enable_textdlg+set}" = set; then | |
7653 | enableval="$enable_textdlg" | |
698dcdb6 | 7654 | |
10f2d63a VZ |
7655 | if test "$enableval" = yes; then |
7656 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7657 | else | |
7658 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7659 | fi | |
698dcdb6 | 7660 | |
10f2d63a | 7661 | else |
698dcdb6 | 7662 | |
10f2d63a VZ |
7663 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7664 | if test "x$LINE" != x ; then | |
7665 | eval "DEFAULT_$LINE" | |
7666 | else | |
7667 | no_cache=1 | |
7668 | fi | |
7669 | ||
7670 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7671 | |
7672 | fi | |
10f2d63a VZ |
7673 | |
7674 | ||
7675 | eval "$ac_cv_use_textdlg" | |
7676 | if test "$no_cache" != 1; then | |
7677 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7678 | fi | |
7679 | ||
7680 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7681 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7682 | else |
698dcdb6 | 7683 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7684 | fi |
698dcdb6 | 7685 | |
10f2d63a | 7686 | |
698dcdb6 | 7687 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
b040e242 | 7688 | echo "configure:7689: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7689 | no_cache=0 |
7690 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7691 | if test "${enable_tipdlg+set}" = set; then | |
7692 | enableval="$enable_tipdlg" | |
698dcdb6 | 7693 | |
10f2d63a VZ |
7694 | if test "$enableval" = yes; then |
7695 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7696 | else | |
7697 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7698 | fi | |
698dcdb6 | 7699 | |
10f2d63a | 7700 | else |
698dcdb6 | 7701 | |
10f2d63a VZ |
7702 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7703 | if test "x$LINE" != x ; then | |
7704 | eval "DEFAULT_$LINE" | |
7705 | else | |
7706 | no_cache=1 | |
7707 | fi | |
7708 | ||
7709 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7710 | |
7711 | fi | |
10f2d63a VZ |
7712 | |
7713 | ||
7714 | eval "$ac_cv_use_tipdlg" | |
7715 | if test "$no_cache" != 1; then | |
7716 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7717 | fi | |
7718 | ||
7719 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7720 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7721 | else |
698dcdb6 | 7722 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7723 | fi |
698dcdb6 | 7724 | |
10f2d63a | 7725 | |
698dcdb6 | 7726 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
b040e242 | 7727 | echo "configure:7728: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7728 | no_cache=0 |
7729 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7730 | if test "${enable_progressdlg+set}" = set; then | |
7731 | enableval="$enable_progressdlg" | |
698dcdb6 | 7732 | |
10f2d63a VZ |
7733 | if test "$enableval" = yes; then |
7734 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7735 | else | |
7736 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7737 | fi | |
698dcdb6 | 7738 | |
10f2d63a | 7739 | else |
698dcdb6 | 7740 | |
10f2d63a VZ |
7741 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7742 | if test "x$LINE" != x ; then | |
7743 | eval "DEFAULT_$LINE" | |
7744 | else | |
7745 | no_cache=1 | |
7746 | fi | |
7747 | ||
7748 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7749 | |
7750 | fi | |
10f2d63a VZ |
7751 | |
7752 | ||
7753 | eval "$ac_cv_use_progressdlg" | |
7754 | if test "$no_cache" != 1; then | |
7755 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7756 | fi | |
7757 | ||
7758 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7760 | else |
698dcdb6 | 7761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7762 | fi |
698dcdb6 | 7763 | |
10f2d63a | 7764 | |
b1f5d087 | 7765 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
b040e242 | 7766 | echo "configure:7767: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7767 | no_cache=0 |
7768 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7769 | if test "${enable_wizarddlg+set}" = set; then | |
7770 | enableval="$enable_wizarddlg" | |
7771 | ||
7772 | if test "$enableval" = yes; then | |
7773 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7774 | else | |
7775 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7776 | fi | |
7777 | ||
7778 | else | |
7779 | ||
7780 | LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7788 | ||
7789 | fi | |
7790 | ||
7791 | ||
7792 | eval "$ac_cv_use_wizarddlg" | |
7793 | if test "$no_cache" != 1; then | |
7794 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7795 | fi | |
7796 | ||
7797 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7798 | echo "$ac_t""yes" 1>&6 | |
7799 | else | |
7800 | echo "$ac_t""no" 1>&6 | |
7801 | fi | |
7802 | ||
7803 | ||
7804 | ||
7805 | ||
1e6feb95 | 7806 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
b040e242 | 7807 | echo "configure:7808: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7808 | no_cache=0 |
7809 | # Check whether --enable-menus or --disable-menus was given. | |
7810 | if test "${enable_menus+set}" = set; then | |
7811 | enableval="$enable_menus" | |
7812 | ||
7813 | if test "$enableval" = yes; then | |
7814 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7815 | else | |
7816 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7817 | fi | |
7818 | ||
7819 | else | |
7820 | ||
7821 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7822 | if test "x$LINE" != x ; then | |
7823 | eval "DEFAULT_$LINE" | |
7824 | else | |
7825 | no_cache=1 | |
7826 | fi | |
7827 | ||
7828 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7829 | ||
7830 | fi | |
7831 | ||
7832 | ||
7833 | eval "$ac_cv_use_menus" | |
7834 | if test "$no_cache" != 1; then | |
7835 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7836 | fi | |
7837 | ||
7838 | if test "$wxUSE_MENUS" = yes; then | |
7839 | echo "$ac_t""yes" 1>&6 | |
7840 | else | |
7841 | echo "$ac_t""no" 1>&6 | |
7842 | fi | |
7843 | ||
7844 | ||
698dcdb6 | 7845 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
b040e242 | 7846 | echo "configure:7847: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7847 | no_cache=0 |
7848 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7849 | if test "${enable_miniframe+set}" = set; then | |
7850 | enableval="$enable_miniframe" | |
698dcdb6 | 7851 | |
10f2d63a VZ |
7852 | if test "$enableval" = yes; then |
7853 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7854 | else | |
7855 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7856 | fi | |
698dcdb6 | 7857 | |
10f2d63a | 7858 | else |
698dcdb6 | 7859 | |
10f2d63a VZ |
7860 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7861 | if test "x$LINE" != x ; then | |
7862 | eval "DEFAULT_$LINE" | |
7863 | else | |
7864 | no_cache=1 | |
7865 | fi | |
7866 | ||
7867 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7868 | |
7869 | fi | |
10f2d63a VZ |
7870 | |
7871 | ||
7872 | eval "$ac_cv_use_miniframe" | |
7873 | if test "$no_cache" != 1; then | |
7874 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7875 | fi | |
7876 | ||
7877 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7879 | else |
698dcdb6 | 7880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7881 | fi |
698dcdb6 | 7882 | |
10f2d63a | 7883 | |
698dcdb6 | 7884 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
b040e242 | 7885 | echo "configure:7886: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7886 | no_cache=0 |
7887 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7888 | if test "${enable_tooltips+set}" = set; then | |
7889 | enableval="$enable_tooltips" | |
698dcdb6 | 7890 | |
10f2d63a VZ |
7891 | if test "$enableval" = yes; then |
7892 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7893 | else | |
7894 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7895 | fi | |
698dcdb6 | 7896 | |
10f2d63a | 7897 | else |
698dcdb6 | 7898 | |
10f2d63a VZ |
7899 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7900 | if test "x$LINE" != x ; then | |
7901 | eval "DEFAULT_$LINE" | |
7902 | else | |
7903 | no_cache=1 | |
7904 | fi | |
7905 | ||
7906 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7907 | |
7908 | fi | |
10f2d63a VZ |
7909 | |
7910 | ||
7911 | eval "$ac_cv_use_tooltips" | |
7912 | if test "$no_cache" != 1; then | |
7913 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7914 | fi | |
7915 | ||
7916 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7917 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7918 | else |
698dcdb6 | 7919 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7920 | fi |
698dcdb6 | 7921 | |
10f2d63a | 7922 | |
698dcdb6 | 7923 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
b040e242 | 7924 | echo "configure:7925: checking for --enable-splines" >&5 |
10f2d63a VZ |
7925 | no_cache=0 |
7926 | # Check whether --enable-splines or --disable-splines was given. | |
7927 | if test "${enable_splines+set}" = set; then | |
7928 | enableval="$enable_splines" | |
698dcdb6 | 7929 | |
10f2d63a VZ |
7930 | if test "$enableval" = yes; then |
7931 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7932 | else | |
7933 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7934 | fi | |
698dcdb6 | 7935 | |
10f2d63a | 7936 | else |
698dcdb6 | 7937 | |
10f2d63a VZ |
7938 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7939 | if test "x$LINE" != x ; then | |
7940 | eval "DEFAULT_$LINE" | |
7941 | else | |
7942 | no_cache=1 | |
7943 | fi | |
7944 | ||
7945 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7946 | |
7947 | fi | |
10f2d63a VZ |
7948 | |
7949 | ||
7950 | eval "$ac_cv_use_splines" | |
7951 | if test "$no_cache" != 1; then | |
7952 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7953 | fi | |
7954 | ||
7955 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7957 | else |
698dcdb6 | 7958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7959 | fi |
698dcdb6 | 7960 | |
10f2d63a | 7961 | |
698dcdb6 | 7962 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
b040e242 | 7963 | echo "configure:7964: checking for --enable-validators" >&5 |
10f2d63a VZ |
7964 | no_cache=0 |
7965 | # Check whether --enable-validators or --disable-validators was given. | |
7966 | if test "${enable_validators+set}" = set; then | |
7967 | enableval="$enable_validators" | |
698dcdb6 | 7968 | |
10f2d63a VZ |
7969 | if test "$enableval" = yes; then |
7970 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7971 | else | |
7972 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7973 | fi | |
698dcdb6 | 7974 | |
10f2d63a | 7975 | else |
698dcdb6 | 7976 | |
10f2d63a VZ |
7977 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7978 | if test "x$LINE" != x ; then | |
7979 | eval "DEFAULT_$LINE" | |
7980 | else | |
7981 | no_cache=1 | |
7982 | fi | |
7983 | ||
7984 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7985 | |
7986 | fi | |
10f2d63a VZ |
7987 | |
7988 | ||
7989 | eval "$ac_cv_use_validators" | |
7990 | if test "$no_cache" != 1; then | |
7991 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7992 | fi | |
7993 | ||
7994 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7996 | else |
698dcdb6 | 7997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7998 | fi |
698dcdb6 | 7999 | |
10f2d63a | 8000 | |
698dcdb6 | 8001 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
b040e242 | 8002 | echo "configure:8003: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8003 | no_cache=0 |
8004 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8005 | if test "${enable_busyinfo+set}" = set; then | |
8006 | enableval="$enable_busyinfo" | |
698dcdb6 | 8007 | |
10f2d63a VZ |
8008 | if test "$enableval" = yes; then |
8009 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8010 | else | |
8011 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8012 | fi | |
698dcdb6 | 8013 | |
10f2d63a | 8014 | else |
698dcdb6 | 8015 | |
10f2d63a VZ |
8016 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8017 | if test "x$LINE" != x ; then | |
8018 | eval "DEFAULT_$LINE" | |
8019 | else | |
8020 | no_cache=1 | |
8021 | fi | |
8022 | ||
8023 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
8024 | |
8025 | fi | |
10f2d63a VZ |
8026 | |
8027 | ||
8028 | eval "$ac_cv_use_busyinfo" | |
8029 | if test "$no_cache" != 1; then | |
8030 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8031 | fi | |
8032 | ||
8033 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 8034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8035 | else |
698dcdb6 | 8036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8037 | fi |
698dcdb6 | 8038 | |
10f2d63a | 8039 | |
698dcdb6 | 8040 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
b040e242 | 8041 | echo "configure:8042: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8042 | no_cache=0 |
8043 | # Check whether --enable-joystick or --disable-joystick was given. | |
8044 | if test "${enable_joystick+set}" = set; then | |
8045 | enableval="$enable_joystick" | |
698dcdb6 | 8046 | |
f6bcfd97 BP |
8047 | if test "$enableval" = yes; then |
8048 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8049 | else | |
8050 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8051 | fi | |
698dcdb6 | 8052 | |
f6bcfd97 | 8053 | else |
698dcdb6 | 8054 | |
f6bcfd97 BP |
8055 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8056 | if test "x$LINE" != x ; then | |
8057 | eval "DEFAULT_$LINE" | |
8058 | else | |
8059 | no_cache=1 | |
8060 | fi | |
8061 | ||
8062 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8063 | |
8064 | fi | |
f6bcfd97 BP |
8065 | |
8066 | ||
8067 | eval "$ac_cv_use_joystick" | |
8068 | if test "$no_cache" != 1; then | |
8069 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8070 | fi | |
8071 | ||
8072 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8073 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8074 | else |
698dcdb6 | 8075 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8076 | fi |
698dcdb6 VZ |
8077 | |
8078 | ||
1e6feb95 | 8079 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b040e242 | 8080 | echo "configure:8081: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8081 | no_cache=0 |
8082 | # Check whether --enable-metafile or --disable-metafile was given. | |
8083 | if test "${enable_metafile+set}" = set; then | |
8084 | enableval="$enable_metafile" | |
8085 | ||
8086 | if test "$enableval" = yes; then | |
8087 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8088 | else | |
8089 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8090 | fi | |
8091 | ||
8092 | else | |
8093 | ||
8094 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8095 | if test "x$LINE" != x ; then | |
8096 | eval "DEFAULT_$LINE" | |
8097 | else | |
8098 | no_cache=1 | |
8099 | fi | |
8100 | ||
8101 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8102 | ||
8103 | fi | |
8104 | ||
8105 | ||
8106 | eval "$ac_cv_use_metafile" | |
8107 | if test "$no_cache" != 1; then | |
8108 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8109 | fi | |
8110 | ||
8111 | if test "$wxUSE_METAFILE" = yes; then | |
8112 | echo "$ac_t""yes" 1>&6 | |
8113 | else | |
8114 | echo "$ac_t""no" 1>&6 | |
8115 | fi | |
8116 | ||
8117 | ||
24fd6d87 | 8118 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
b040e242 | 8119 | echo "configure:8120: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8120 | no_cache=0 |
8121 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8122 | if test "${enable_dragimage+set}" = set; then | |
8123 | enableval="$enable_dragimage" | |
8124 | ||
8125 | if test "$enableval" = yes; then | |
8126 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8127 | else | |
8128 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8129 | fi | |
8130 | ||
8131 | else | |
8132 | ||
8133 | LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8141 | ||
8142 | fi | |
8143 | ||
8144 | ||
8145 | eval "$ac_cv_use_dragimage" | |
8146 | if test "$no_cache" != 1; then | |
8147 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8148 | fi | |
8149 | ||
8150 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8151 | echo "$ac_t""yes" 1>&6 | |
8152 | else | |
8153 | echo "$ac_t""no" 1>&6 | |
8154 | fi | |
8155 | ||
8156 | ||
10f2d63a | 8157 | |
698dcdb6 | 8158 | |
edae8572 | 8159 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
b040e242 | 8160 | echo "configure:8161: checking for --enable-palette" >&5 |
edae8572 VZ |
8161 | no_cache=0 |
8162 | # Check whether --enable-palette or --disable-palette was given. | |
8163 | if test "${enable_palette+set}" = set; then | |
8164 | enableval="$enable_palette" | |
8165 | ||
8166 | if test "$enableval" = yes; then | |
8167 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8168 | else | |
8169 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8170 | fi | |
8171 | ||
8172 | else | |
8173 | ||
8174 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8175 | if test "x$LINE" != x ; then | |
8176 | eval "DEFAULT_$LINE" | |
8177 | else | |
8178 | no_cache=1 | |
8179 | fi | |
8180 | ||
8181 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8182 | ||
8183 | fi | |
8184 | ||
8185 | ||
8186 | eval "$ac_cv_use_palette" | |
8187 | if test "$no_cache" != 1; then | |
8188 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8189 | fi | |
8190 | ||
8191 | if test "$wxUSE_PALETTE" = yes; then | |
8192 | echo "$ac_t""yes" 1>&6 | |
8193 | else | |
8194 | echo "$ac_t""no" 1>&6 | |
8195 | fi | |
8196 | ||
8197 | ||
698dcdb6 | 8198 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
b040e242 | 8199 | echo "configure:8200: checking for --enable-image" >&5 |
0046ff7c VS |
8200 | no_cache=0 |
8201 | # Check whether --enable-image or --disable-image was given. | |
8202 | if test "${enable_image+set}" = set; then | |
8203 | enableval="$enable_image" | |
698dcdb6 | 8204 | |
0046ff7c VS |
8205 | if test "$enableval" = yes; then |
8206 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8207 | else | |
8208 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8209 | fi | |
698dcdb6 | 8210 | |
0046ff7c | 8211 | else |
698dcdb6 | 8212 | |
0046ff7c VS |
8213 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8214 | if test "x$LINE" != x ; then | |
8215 | eval "DEFAULT_$LINE" | |
8216 | else | |
8217 | no_cache=1 | |
8218 | fi | |
8219 | ||
8220 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8221 | |
8222 | fi | |
0046ff7c VS |
8223 | |
8224 | ||
8225 | eval "$ac_cv_use_image" | |
8226 | if test "$no_cache" != 1; then | |
8227 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8228 | fi | |
8229 | ||
8230 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8231 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8232 | else |
698dcdb6 | 8233 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8234 | fi |
698dcdb6 | 8235 | |
0046ff7c | 8236 | |
698dcdb6 | 8237 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
b040e242 | 8238 | echo "configure:8239: checking for --enable-gif" >&5 |
10f2d63a VZ |
8239 | no_cache=0 |
8240 | # Check whether --enable-gif or --disable-gif was given. | |
8241 | if test "${enable_gif+set}" = set; then | |
8242 | enableval="$enable_gif" | |
698dcdb6 | 8243 | |
10f2d63a VZ |
8244 | if test "$enableval" = yes; then |
8245 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8246 | else | |
8247 | ac_cv_use_gif='wxUSE_GIF=no' | |
8248 | fi | |
698dcdb6 | 8249 | |
10f2d63a | 8250 | else |
698dcdb6 | 8251 | |
10f2d63a VZ |
8252 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8253 | if test "x$LINE" != x ; then | |
8254 | eval "DEFAULT_$LINE" | |
8255 | else | |
8256 | no_cache=1 | |
8257 | fi | |
8258 | ||
8259 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8260 | |
8261 | fi | |
10f2d63a VZ |
8262 | |
8263 | ||
8264 | eval "$ac_cv_use_gif" | |
8265 | if test "$no_cache" != 1; then | |
8266 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8267 | fi | |
8268 | ||
8269 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8271 | else |
698dcdb6 | 8272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8273 | fi |
698dcdb6 | 8274 | |
10f2d63a | 8275 | |
698dcdb6 | 8276 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
b040e242 | 8277 | echo "configure:8278: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8278 | no_cache=0 |
8279 | # Check whether --enable-pcx or --disable-pcx was given. | |
8280 | if test "${enable_pcx+set}" = set; then | |
8281 | enableval="$enable_pcx" | |
698dcdb6 | 8282 | |
10f2d63a VZ |
8283 | if test "$enableval" = yes; then |
8284 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8285 | else | |
8286 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8287 | fi | |
698dcdb6 | 8288 | |
10f2d63a | 8289 | else |
698dcdb6 | 8290 | |
10f2d63a VZ |
8291 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8292 | if test "x$LINE" != x ; then | |
8293 | eval "DEFAULT_$LINE" | |
8294 | else | |
8295 | no_cache=1 | |
8296 | fi | |
8297 | ||
8298 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8299 | |
8300 | fi | |
10f2d63a VZ |
8301 | |
8302 | ||
8303 | eval "$ac_cv_use_pcx" | |
8304 | if test "$no_cache" != 1; then | |
8305 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8306 | fi | |
8307 | ||
8308 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8310 | else |
698dcdb6 | 8311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8312 | fi |
698dcdb6 | 8313 | |
10f2d63a | 8314 | |
4b6b4dfc | 8315 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
b040e242 | 8316 | echo "configure:8317: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8317 | no_cache=0 |
8318 | # Check whether --enable-iff or --disable-iff was given. | |
8319 | if test "${enable_iff+set}" = set; then | |
8320 | enableval="$enable_iff" | |
8321 | ||
8322 | if test "$enableval" = yes; then | |
8323 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8324 | else | |
8325 | ac_cv_use_iff='wxUSE_IFF=no' | |
8326 | fi | |
8327 | ||
8328 | else | |
8329 | ||
8330 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8331 | if test "x$LINE" != x ; then | |
8332 | eval "DEFAULT_$LINE" | |
8333 | else | |
8334 | no_cache=1 | |
8335 | fi | |
8336 | ||
8337 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8338 | ||
8339 | fi | |
8340 | ||
8341 | ||
8342 | eval "$ac_cv_use_iff" | |
8343 | if test "$no_cache" != 1; then | |
8344 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8345 | fi | |
8346 | ||
8347 | if test "$wxUSE_IFF" = yes; then | |
8348 | echo "$ac_t""yes" 1>&6 | |
8349 | else | |
8350 | echo "$ac_t""no" 1>&6 | |
8351 | fi | |
8352 | ||
8353 | ||
698dcdb6 | 8354 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
b040e242 | 8355 | echo "configure:8356: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8356 | no_cache=0 |
8357 | # Check whether --enable-pnm or --disable-pnm was given. | |
8358 | if test "${enable_pnm+set}" = set; then | |
8359 | enableval="$enable_pnm" | |
698dcdb6 | 8360 | |
10f2d63a VZ |
8361 | if test "$enableval" = yes; then |
8362 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8363 | else | |
8364 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8365 | fi | |
698dcdb6 | 8366 | |
10f2d63a | 8367 | else |
698dcdb6 | 8368 | |
10f2d63a VZ |
8369 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8370 | if test "x$LINE" != x ; then | |
8371 | eval "DEFAULT_$LINE" | |
8372 | else | |
8373 | no_cache=1 | |
8374 | fi | |
8375 | ||
8376 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8377 | |
8378 | fi | |
10f2d63a VZ |
8379 | |
8380 | ||
8381 | eval "$ac_cv_use_pnm" | |
8382 | if test "$no_cache" != 1; then | |
8383 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8384 | fi | |
8385 | ||
8386 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8387 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8388 | else |
698dcdb6 | 8389 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8390 | fi |
698dcdb6 | 8391 | |
10f2d63a | 8392 | |
69d27ff7 | 8393 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
b040e242 | 8394 | echo "configure:8395: checking for --enable-xpm" >&5 |
0046ff7c | 8395 | no_cache=0 |
69d27ff7 MB |
8396 | # Check whether --enable-xpm or --disable-xpm was given. |
8397 | if test "${enable_xpm+set}" = set; then | |
8398 | enableval="$enable_xpm" | |
698dcdb6 | 8399 | |
0046ff7c | 8400 | if test "$enableval" = yes; then |
69d27ff7 | 8401 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8402 | else |
69d27ff7 | 8403 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8404 | fi |
698dcdb6 | 8405 | |
0046ff7c | 8406 | else |
698dcdb6 | 8407 | |
0046ff7c VS |
8408 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8409 | if test "x$LINE" != x ; then | |
8410 | eval "DEFAULT_$LINE" | |
8411 | else | |
8412 | no_cache=1 | |
8413 | fi | |
8414 | ||
69d27ff7 | 8415 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8416 | |
8417 | fi | |
0046ff7c VS |
8418 | |
8419 | ||
69d27ff7 | 8420 | eval "$ac_cv_use_xpm" |
0046ff7c | 8421 | if test "$no_cache" != 1; then |
69d27ff7 | 8422 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8423 | fi |
8424 | ||
8425 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8426 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8427 | else |
698dcdb6 | 8428 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8429 | fi |
698dcdb6 | 8430 | |
0046ff7c | 8431 | |
c7206e64 | 8432 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
b040e242 | 8433 | echo "configure:8434: checking for --enable-ico_cur" >&5 |
658974ae | 8434 | no_cache=0 |
c7206e64 VS |
8435 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8436 | if test "${enable_ico_cur+set}" = set; then | |
8437 | enableval="$enable_ico_cur" | |
658974ae VS |
8438 | |
8439 | if test "$enableval" = yes; then | |
c7206e64 | 8440 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8441 | else |
c7206e64 | 8442 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8443 | fi |
8444 | ||
8445 | else | |
8446 | ||
8447 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8448 | if test "x$LINE" != x ; then | |
8449 | eval "DEFAULT_$LINE" | |
8450 | else | |
8451 | no_cache=1 | |
8452 | fi | |
8453 | ||
c7206e64 | 8454 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8455 | |
8456 | fi | |
8457 | ||
8458 | ||
c7206e64 | 8459 | eval "$ac_cv_use_ico_cur" |
658974ae | 8460 | if test "$no_cache" != 1; then |
c7206e64 | 8461 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8462 | fi |
8463 | ||
8464 | if test "$wxUSE_ICO_CUR" = yes; then | |
8465 | echo "$ac_t""yes" 1>&6 | |
8466 | else | |
8467 | echo "$ac_t""no" 1>&6 | |
8468 | fi | |
8469 | ||
8470 | ||
b12915c1 VZ |
8471 | fi |
8472 | ||
698dcdb6 | 8473 | |
10f2d63a VZ |
8474 | echo "saving argument cache $wx_arg_cache_file" |
8475 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8476 | |
10f2d63a | 8477 | |
698dcdb6 VZ |
8478 | |
8479 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
b040e242 | 8480 | echo "configure:8481: checking for toolkit" >&5 |
10f2d63a VZ |
8481 | |
8482 | if test "$wxUSE_GUI" = "yes"; then | |
8483 | ||
3a922bb4 RL |
8484 | if test "$USE_BEOS" = 1; then |
8485 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8486 | fi | |
b12915c1 | 8487 | |
3a922bb4 RL |
8488 | if test "$TOOLKIT_GIVEN" = 1; then |
8489 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8490 | var=wxUSE_$toolkit | |
8491 | eval "value=\$${var}" | |
8492 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8493 | done | |
10f2d63a | 8494 | else |
3a922bb4 RL |
8495 | for toolkit in `echo $ALL_TOOLKITS`; do |
8496 | if test "$has_toolkit_in_cache" != 1; then | |
8497 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8498 | else | |
8499 | var=DEFAULT_wxUSE_$toolkit | |
8500 | fi | |
8501 | eval "wxUSE_$toolkit=\$${var}" | |
8502 | done | |
10f2d63a | 8503 | fi |
10f2d63a | 8504 | |
3a922bb4 | 8505 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
1725144d | 8506 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}` |
10f2d63a | 8507 | |
3a922bb4 | 8508 | case "${host}" in |
6fa882bd | 8509 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8510 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8511 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8512 | LEX_STEM="lexyy" | |
8513 | ;; | |
8514 | *) | |
8515 | PATH_IFS=':' | |
8516 | LEX_STEM="lex.yy" | |
8517 | ;; | |
8518 | esac | |
10f2d63a | 8519 | |
3a922bb4 RL |
8520 | case "$NUM_TOOLKITS" in |
8521 | 1) | |
8522 | ;; | |
8523 | 0) | |
8524 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8525 | ;; | |
8526 | *) | |
8527 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8528 | esac | |
10f2d63a | 8529 | |
3a922bb4 RL |
8530 | for toolkit in `echo $ALL_TOOLKITS`; do |
8531 | var=wxUSE_$toolkit | |
8532 | eval "value=\$${var}" | |
8533 | if test "x$value" != x; then | |
8534 | cache_var=CACHE_$toolkit | |
8535 | eval "cache=\$${cache_var}" | |
8536 | if test "$cache" = 1; then | |
8537 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8538 | fi | |
8539 | if test "$value" = 1; then | |
8540 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8541 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8542 | fi | |
8543 | fi | |
8544 | done | |
10f2d63a | 8545 | else |
cf27ef00 | 8546 | PATH_IFS=':' |
3a922bb4 | 8547 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8548 | fi |
8549 | ||
698dcdb6 VZ |
8550 | |
8551 | cat > confcache <<\EOF | |
10f2d63a VZ |
8552 | # This file is a shell script that caches the results of configure |
8553 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8554 | # scripts and configure runs. It is not useful on other systems. |
8555 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8556 | # |
698dcdb6 VZ |
8557 | # By default, configure uses ./config.cache as the cache file, |
8558 | # creating it if it does not exist already. You can give configure | |
8559 | # the --cache-file=FILE option to use a different cache file; that is | |
8560 | # what configure does when it calls configure scripts in | |
8561 | # subdirectories, so they share the cache. | |
8562 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8563 | # config.status only pays attention to the cache file if you give it the | |
8564 | # --recheck option to rerun configure. | |
10f2d63a | 8565 | # |
698dcdb6 | 8566 | EOF |
10f2d63a VZ |
8567 | # The following way of writing the cache mishandles newlines in values, |
8568 | # but we know of no workaround that is simple, portable, and efficient. | |
8569 | # So, don't put newlines in cache variables' values. | |
8570 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8571 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8572 | (set) 2>&1 | |
8573 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8574 | *ac_space=\ *) | |
8575 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8576 | # turns \\\\ into \\, and sed turns \\ into \). | |
8577 | sed -n \ | |
8578 | -e "s/'/'\\\\''/g" \ | |
8579 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8580 | ;; | |
8581 | *) | |
8582 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8583 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8584 | ;; | |
8585 | esac >> confcache | |
8586 | if cmp -s $cache_file confcache; then | |
8587 | : | |
8588 | else | |
10f2d63a | 8589 | if test -w $cache_file; then |
698dcdb6 VZ |
8590 | echo "updating cache $cache_file" |
8591 | cat confcache > $cache_file | |
10f2d63a VZ |
8592 | else |
8593 | echo "not updating unwritable cache $cache_file" | |
8594 | fi | |
8595 | fi | |
8596 | rm -f confcache | |
8597 | ||
698dcdb6 | 8598 | |
e59890c3 | 8599 | if test "$build" != "$host" ; then |
f9bc1684 | 8600 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8601 | CC=$host_alias-gcc |
8602 | CXX=$host_alias-c++ | |
8603 | AR=$host_alias-ar | |
8604 | RANLIB=$host_alias-ranlib | |
8605 | DLLTOOL=$host_alias-dlltool | |
8606 | RESCOMP=$host_alias-windres | |
8607 | LD=$host_alias-ld | |
8608 | NM=$host_alias-nm | |
8609 | STRIP=$host_alias-strip | |
8610 | else | |
8611 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8612 | fi | |
10f2d63a VZ |
8613 | fi |
8614 | ||
698dcdb6 | 8615 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8616 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8617 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b040e242 | 8618 | echo "configure:8619: checking for $ac_word" >&5 |
698dcdb6 VZ |
8619 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8621 | else |
8622 | if test -n "$CC"; then | |
8623 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8624 | else |
698dcdb6 VZ |
8625 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8626 | ac_dummy="$PATH" | |
8627 | for ac_dir in $ac_dummy; do | |
8628 | test -z "$ac_dir" && ac_dir=. | |
8629 | if test -f $ac_dir/$ac_word; then | |
8630 | ac_cv_prog_CC="gcc" | |
8631 | break | |
8632 | fi | |
8633 | done | |
8634 | IFS="$ac_save_ifs" | |
10f2d63a | 8635 | fi |
6232543b | 8636 | fi |
698dcdb6 | 8637 | CC="$ac_cv_prog_CC" |
6232543b | 8638 | if test -n "$CC"; then |
698dcdb6 | 8639 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8640 | else |
698dcdb6 | 8641 | echo "$ac_t""no" 1>&6 |
1e487827 | 8642 | fi |
6232543b | 8643 | |
1e487827 VS |
8644 | if test -z "$CC"; then |
8645 | # Extract the first word of "cc", so it can be a program name with args. | |
8646 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8647 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b040e242 | 8648 | echo "configure:8649: checking for $ac_word" >&5 |
698dcdb6 VZ |
8649 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8651 | else |
8652 | if test -n "$CC"; then | |
8653 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8654 | else | |
698dcdb6 | 8655 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8656 | ac_prog_rejected=no |
698dcdb6 VZ |
8657 | ac_dummy="$PATH" |
8658 | for ac_dir in $ac_dummy; do | |
8659 | test -z "$ac_dir" && ac_dir=. | |
8660 | if test -f $ac_dir/$ac_word; then | |
8661 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8662 | ac_prog_rejected=yes | |
8663 | continue | |
8664 | fi | |
8665 | ac_cv_prog_CC="cc" | |
8666 | break | |
8667 | fi | |
8668 | done | |
8669 | IFS="$ac_save_ifs" | |
1e487827 VS |
8670 | if test $ac_prog_rejected = yes; then |
8671 | # We found a bogon in the path, so make sure we never use it. | |
8672 | set dummy $ac_cv_prog_CC | |
8673 | shift | |
698dcdb6 | 8674 | if test $# -gt 0; then |
1e487827 VS |
8675 | # We chose a different compiler from the bogus one. |
8676 | # However, it has the same basename, so the bogon will be chosen | |
8677 | # first if we set CC to just the basename; use the full file name. | |
8678 | shift | |
698dcdb6 | 8679 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8680 | shift |
8681 | ac_cv_prog_CC="$@" | |
703e0a69 | 8682 | fi |
1e487827 VS |
8683 | fi |
8684 | fi | |
8685 | fi | |
698dcdb6 | 8686 | CC="$ac_cv_prog_CC" |
1e487827 | 8687 | if test -n "$CC"; then |
698dcdb6 | 8688 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8689 | else |
698dcdb6 | 8690 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8691 | fi |
1e487827 | 8692 | |
698dcdb6 VZ |
8693 | if test -z "$CC"; then |
8694 | case "`uname -s`" in | |
8695 | *win32* | *WIN32*) | |
8696 | # Extract the first word of "cl", so it can be a program name with args. | |
8697 | set dummy cl; ac_word=$2 | |
8698 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b040e242 | 8699 | echo "configure:8700: checking for $ac_word" >&5 |
698dcdb6 VZ |
8700 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8701 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8702 | else |
8703 | if test -n "$CC"; then | |
8704 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8705 | else |
698dcdb6 VZ |
8706 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8707 | ac_dummy="$PATH" | |
8708 | for ac_dir in $ac_dummy; do | |
8709 | test -z "$ac_dir" && ac_dir=. | |
8710 | if test -f $ac_dir/$ac_word; then | |
8711 | ac_cv_prog_CC="cl" | |
8712 | break | |
8713 | fi | |
8714 | done | |
8715 | IFS="$ac_save_ifs" | |
703e0a69 | 8716 | fi |
1e487827 | 8717 | fi |
698dcdb6 | 8718 | CC="$ac_cv_prog_CC" |
1e487827 | 8719 | if test -n "$CC"; then |
698dcdb6 | 8720 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8721 | else |
698dcdb6 | 8722 | echo "$ac_t""no" 1>&6 |
1e487827 | 8723 | fi |
698dcdb6 VZ |
8724 | ;; |
8725 | esac | |
8726 | fi | |
8727 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8728 | fi |
8729 | ||
698dcdb6 | 8730 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b040e242 | 8731 | echo "configure:8732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8732 | |
698dcdb6 VZ |
8733 | ac_ext=c |
8734 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8735 | ac_cpp='$CPP $CPPFLAGS' | |
8736 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8737 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8738 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8739 | |
698dcdb6 | 8740 | cat > conftest.$ac_ext << EOF |
1e487827 | 8741 | |
b040e242 | 8742 | #line 8743 "configure" |
1e487827 VS |
8743 | #include "confdefs.h" |
8744 | ||
698dcdb6 VZ |
8745 | main(){return(0);} |
8746 | EOF | |
b040e242 | 8747 | if { (eval echo configure:8748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8748 | ac_cv_prog_cc_works=yes |
8749 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8750 | if (./conftest; exit) 2>/dev/null; then | |
8751 | ac_cv_prog_cc_cross=no | |
8752 | else | |
8753 | ac_cv_prog_cc_cross=yes | |
8754 | fi | |
8755 | else | |
8756 | echo "configure: failed program was:" >&5 | |
8757 | cat conftest.$ac_ext >&5 | |
8758 | ac_cv_prog_cc_works=no | |
8759 | fi | |
8760 | rm -fr conftest* | |
8761 | ac_ext=c | |
8762 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8763 | ac_cpp='$CPP $CPPFLAGS' | |
8764 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8765 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8766 | cross_compiling=$ac_cv_prog_cc_cross | |
8767 | ||
8768 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8769 | if test $ac_cv_prog_cc_works = no; then | |
8770 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8771 | fi | |
8772 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b040e242 | 8773 | echo "configure:8774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8774 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8775 | cross_compiling=$ac_cv_prog_cc_cross | |
8776 | ||
8777 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b040e242 | 8778 | echo "configure:8779: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8779 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8781 | else | |
8782 | cat > conftest.c <<EOF | |
8783 | #ifdef __GNUC__ | |
8784 | yes; | |
1e487827 | 8785 | #endif |
698dcdb6 | 8786 | EOF |
b040e242 | 8787 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8788 | ac_cv_prog_gcc=yes |
8789 | else | |
8790 | ac_cv_prog_gcc=no | |
8791 | fi | |
8792 | fi | |
1e487827 | 8793 | |
698dcdb6 | 8794 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8795 | |
698dcdb6 VZ |
8796 | if test $ac_cv_prog_gcc = yes; then |
8797 | GCC=yes | |
8798 | else | |
8799 | GCC= | |
8800 | fi | |
1e487827 | 8801 | |
698dcdb6 VZ |
8802 | ac_test_CFLAGS="${CFLAGS+set}" |
8803 | ac_save_CFLAGS="$CFLAGS" | |
8804 | CFLAGS= | |
8805 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b040e242 | 8806 | echo "configure:8807: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8807 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8809 | else | |
8810 | echo 'void f(){}' > conftest.c | |
8811 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8812 | ac_cv_prog_cc_g=yes |
8813 | else | |
698dcdb6 | 8814 | ac_cv_prog_cc_g=no |
10f2d63a | 8815 | fi |
698dcdb6 VZ |
8816 | rm -f conftest* |
8817 | ||
10f2d63a | 8818 | fi |
698dcdb6 VZ |
8819 | |
8820 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8821 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8822 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8823 | elif test $ac_cv_prog_cc_g = yes; then |
8824 | if test "$GCC" = yes; then | |
8825 | CFLAGS="-g -O2" | |
8826 | else | |
8827 | CFLAGS="-g" | |
8828 | fi | |
8829 | else | |
8830 | if test "$GCC" = yes; then | |
8831 | CFLAGS="-O2" | |
8832 | else | |
8833 | CFLAGS= | |
8834 | fi | |
8835 | fi | |
8836 | ||
8837 | ||
8838 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8839 | ||
698dcdb6 | 8840 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b040e242 | 8841 | echo "configure:8842: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8842 | # On Suns, sometimes $CPP names a directory. |
8843 | if test -n "$CPP" && test -d "$CPP"; then | |
8844 | CPP= | |
8845 | fi | |
8846 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8847 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8849 | else | |
8850 | # This must be in double quotes, not single quotes, because CPP may get | |
8851 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8852 | CPP="${CC-cc} -E" | |
10f2d63a | 8853 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8854 | # not just through cpp. |
8855 | cat > conftest.$ac_ext <<EOF | |
b040e242 | 8856 | #line 8857 "configure" |
10f2d63a VZ |
8857 | #include "confdefs.h" |
8858 | #include <assert.h> | |
698dcdb6 VZ |
8859 | Syntax Error |
8860 | EOF | |
8861 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b040e242 | 8862 | { (eval echo configure:8863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8863 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8864 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8865 | : |
8866 | else | |
698dcdb6 VZ |
8867 | echo "$ac_err" >&5 |
8868 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8869 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8870 | rm -rf conftest* |
8871 | CPP="${CC-cc} -E -traditional-cpp" | |
8872 | cat > conftest.$ac_ext <<EOF | |
b040e242 | 8873 | #line 8874 "configure" |
10f2d63a | 8874 | #include "confdefs.h" |
698dcdb6 VZ |
8875 | #include <assert.h> |
8876 | Syntax Error | |
8877 | EOF | |
8878 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b040e242 | 8879 | { (eval echo configure:8880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8880 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8881 | if test -z "$ac_err"; then | |
8882 | : | |
10f2d63a | 8883 | else |
698dcdb6 VZ |
8884 | echo "$ac_err" >&5 |
8885 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8886 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8887 | rm -rf conftest* |
8888 | CPP="${CC-cc} -nologo -E" | |
8889 | cat > conftest.$ac_ext <<EOF | |
b040e242 | 8890 | #line 8891 "configure" |
10f2d63a VZ |
8891 | #include "confdefs.h" |
8892 | #include <assert.h> | |
698dcdb6 VZ |
8893 | Syntax Error |
8894 | EOF | |
8895 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b040e242 | 8896 | { (eval echo configure:8897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8897 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8898 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8899 | : |
8900 | else | |
698dcdb6 VZ |
8901 | echo "$ac_err" >&5 |
8902 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8903 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8904 | rm -rf conftest* |
8905 | CPP=/lib/cpp | |
10f2d63a | 8906 | fi |
698dcdb6 | 8907 | rm -f conftest* |
10f2d63a | 8908 | fi |
698dcdb6 | 8909 | rm -f conftest* |
703e0a69 | 8910 | fi |
698dcdb6 VZ |
8911 | rm -f conftest* |
8912 | ac_cv_prog_CPP="$CPP" | |
8913 | fi | |
8914 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8915 | else |
698dcdb6 | 8916 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8917 | fi |
698dcdb6 | 8918 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8919 | |
698dcdb6 VZ |
8920 | if test $ac_cv_prog_gcc = yes; then |
8921 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
b040e242 | 8922 | echo "configure:8923: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8923 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8925 | else |
8926 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8927 | cat > conftest.$ac_ext <<EOF |
b040e242 | 8928 | #line 8929 "configure" |
10f2d63a VZ |
8929 | #include "confdefs.h" |
8930 | #include <sgtty.h> | |
8931 | Autoconf TIOCGETP | |
698dcdb6 | 8932 | EOF |
10f2d63a VZ |
8933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8934 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8935 | rm -rf conftest* |
10f2d63a VZ |
8936 | ac_cv_prog_gcc_traditional=yes |
8937 | else | |
698dcdb6 | 8938 | rm -rf conftest* |
10f2d63a VZ |
8939 | ac_cv_prog_gcc_traditional=no |
8940 | fi | |
8941 | rm -f conftest* | |
8942 | ||
698dcdb6 | 8943 | |
10f2d63a | 8944 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8945 | cat > conftest.$ac_ext <<EOF |
b040e242 | 8946 | #line 8947 "configure" |
10f2d63a VZ |
8947 | #include "confdefs.h" |
8948 | #include <termio.h> | |
8949 | Autoconf TCGETA | |
698dcdb6 | 8950 | EOF |
10f2d63a VZ |
8951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8952 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8953 | rm -rf conftest* |
10f2d63a VZ |
8954 | ac_cv_prog_gcc_traditional=yes |
8955 | fi | |
8956 | rm -f conftest* | |
8957 | ||
8958 | fi | |
8959 | fi | |
698dcdb6 VZ |
8960 | |
8961 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8962 | if test $ac_cv_prog_gcc_traditional = yes; then |
8963 | CC="$CC -traditional" | |
8964 | fi | |
8965 | fi | |
8966 | ||
703e0a69 | 8967 | |
698dcdb6 VZ |
8968 | |
8969 | ac_ext=C | |
8970 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8971 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8972 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8973 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8974 | cross_compiling=$ac_cv_prog_cxx_cross | |
8975 | ||
8976 | ||
8977 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8978 | do | |
8979 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8980 | set dummy $ac_prog; ac_word=$2 | |
8981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b040e242 | 8982 | echo "configure:8983: checking for $ac_word" >&5 |
698dcdb6 VZ |
8983 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8985 | else |
8986 | if test -n "$CXX"; then | |
8987 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8988 | else | |
698dcdb6 VZ |
8989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8990 | ac_dummy="$PATH" | |
8991 | for ac_dir in $ac_dummy; do | |
8992 | test -z "$ac_dir" && ac_dir=. | |
8993 | if test -f $ac_dir/$ac_word; then | |
8994 | ac_cv_prog_CXX="$ac_prog" | |
8995 | break | |
8996 | fi | |
8997 | done | |
8998 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8999 | fi |
9000 | fi | |
698dcdb6 | 9001 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9002 | if test -n "$CXX"; then |
698dcdb6 | 9003 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9004 | else |
698dcdb6 | 9005 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9006 | fi |
9007 | ||
698dcdb6 | 9008 | test -n "$CXX" && break |
10f2d63a | 9009 | done |
698dcdb6 | 9010 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9011 | |
9012 | ||
698dcdb6 | 9013 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b040e242 | 9014 | echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9015 | |
698dcdb6 VZ |
9016 | ac_ext=C |
9017 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9018 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9019 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9020 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9021 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9022 | |
698dcdb6 VZ |
9023 | cat > conftest.$ac_ext << EOF |
9024 | ||
b040e242 | 9025 | #line 9026 "configure" |
10f2d63a VZ |
9026 | #include "confdefs.h" |
9027 | ||
698dcdb6 VZ |
9028 | int main(){return(0);} |
9029 | EOF | |
b040e242 | 9030 | if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9031 | ac_cv_prog_cxx_works=yes |
9032 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9033 | if (./conftest; exit) 2>/dev/null; then | |
9034 | ac_cv_prog_cxx_cross=no | |
9035 | else | |
9036 | ac_cv_prog_cxx_cross=yes | |
9037 | fi | |
9038 | else | |
9039 | echo "configure: failed program was:" >&5 | |
9040 | cat conftest.$ac_ext >&5 | |
9041 | ac_cv_prog_cxx_works=no | |
9042 | fi | |
9043 | rm -fr conftest* | |
9044 | ac_ext=C | |
9045 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9046 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9047 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9048 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9049 | cross_compiling=$ac_cv_prog_cxx_cross | |
9050 | ||
9051 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9052 | if test $ac_cv_prog_cxx_works = no; then | |
9053 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9054 | fi | |
9055 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b040e242 | 9056 | echo "configure:9057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9057 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9058 | cross_compiling=$ac_cv_prog_cxx_cross | |
9059 | ||
9060 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
b040e242 | 9061 | echo "configure:9062: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9062 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9064 | else | |
9065 | cat > conftest.C <<EOF | |
9066 | #ifdef __GNUC__ | |
9067 | yes; | |
10f2d63a | 9068 | #endif |
698dcdb6 | 9069 | EOF |
b040e242 | 9070 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9071 | ac_cv_prog_gxx=yes |
9072 | else | |
9073 | ac_cv_prog_gxx=no | |
9074 | fi | |
9075 | fi | |
10f2d63a | 9076 | |
698dcdb6 | 9077 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9078 | |
698dcdb6 VZ |
9079 | if test $ac_cv_prog_gxx = yes; then |
9080 | GXX=yes | |
9081 | else | |
9082 | GXX= | |
9083 | fi | |
10f2d63a | 9084 | |
698dcdb6 VZ |
9085 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9086 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9087 | CXXFLAGS= | |
9088 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
b040e242 | 9089 | echo "configure:9090: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9090 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9092 | else | |
9093 | echo 'void f(){}' > conftest.cc | |
9094 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9095 | ac_cv_prog_cxx_g=yes |
9096 | else | |
698dcdb6 | 9097 | ac_cv_prog_cxx_g=no |
10f2d63a | 9098 | fi |
698dcdb6 VZ |
9099 | rm -f conftest* |
9100 | ||
10f2d63a | 9101 | fi |
698dcdb6 VZ |
9102 | |
9103 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9104 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9105 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9106 | elif test $ac_cv_prog_cxx_g = yes; then |
9107 | if test "$GXX" = yes; then | |
9108 | CXXFLAGS="-g -O2" | |
9109 | else | |
9110 | CXXFLAGS="-g" | |
9111 | fi | |
9112 | else | |
9113 | if test "$GXX" = yes; then | |
9114 | CXXFLAGS="-O2" | |
9115 | else | |
9116 | CXXFLAGS= | |
9117 | fi | |
9118 | fi | |
9119 | ||
9120 | ||
10f2d63a VZ |
9121 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
9122 | ||
9123 | ac_ext=c | |
698dcdb6 | 9124 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9125 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9126 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9127 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9128 | cross_compiling=$ac_cv_prog_cc_cross | |
9129 | ||
9130 | ||
9131 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9132 | set dummy ranlib; ac_word=$2 | |
9133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b040e242 | 9134 | echo "configure:9135: checking for $ac_word" >&5 |
698dcdb6 VZ |
9135 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9137 | else |
9138 | if test -n "$RANLIB"; then | |
9139 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9140 | else | |
698dcdb6 VZ |
9141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9142 | ac_dummy="$PATH" | |
9143 | for ac_dir in $ac_dummy; do | |
9144 | test -z "$ac_dir" && ac_dir=. | |
9145 | if test -f $ac_dir/$ac_word; then | |
9146 | ac_cv_prog_RANLIB="ranlib" | |
9147 | break | |
9148 | fi | |
9149 | done | |
9150 | IFS="$ac_save_ifs" | |
9151 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9152 | fi |
9153 | fi | |
698dcdb6 | 9154 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9155 | if test -n "$RANLIB"; then |
698dcdb6 | 9156 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9157 | else |
698dcdb6 | 9158 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9159 | fi |
9160 | ||
9161 | ||
9162 | # Extract the first word of "ar", so it can be a program name with args. | |
9163 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b040e242 | 9165 | echo "configure:9166: checking for $ac_word" >&5 |
698dcdb6 VZ |
9166 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9168 | else |
9169 | if test -n "$AR"; then | |
9170 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9171 | else | |
698dcdb6 VZ |
9172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9173 | ac_dummy="$PATH" | |
9174 | for ac_dir in $ac_dummy; do | |
9175 | test -z "$ac_dir" && ac_dir=. | |
9176 | if test -f $ac_dir/$ac_word; then | |
9177 | ac_cv_prog_AR="ar" | |
9178 | break | |
9179 | fi | |
9180 | done | |
9181 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9182 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9183 | fi | |
9184 | fi | |
698dcdb6 | 9185 | AR="$ac_cv_prog_AR" |
10f2d63a | 9186 | if test -n "$AR"; then |
698dcdb6 | 9187 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9188 | else |
698dcdb6 | 9189 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9190 | fi |
9191 | ||
698dcdb6 | 9192 | |
6054113a | 9193 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9194 | # so one script is as good as another. But avoid the broken or |
9195 | # incompatible versions: | |
9196 | # SysV /etc/install, /usr/sbin/install | |
9197 | # SunOS /usr/etc/install | |
9198 | # IRIX /sbin/install | |
9199 | # AIX /bin/install | |
9200 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9201 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9202 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9203 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9204 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
b040e242 | 9205 | echo "configure:9206: checking for a BSD compatible install" >&5 |
10f2d63a | 9206 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9207 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9209 | else |
698dcdb6 | 9210 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9211 | for ac_dir in $PATH; do |
9212 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9213 | case "$ac_dir/" in |
9214 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9215 | *) |
9216 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9217 | # Don't use installbsd from OSF since it installs stuff as root | |
9218 | # by default. | |
9219 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9220 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9221 | if test $ac_prog = install && |
698dcdb6 | 9222 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9223 | # AIX install. It has an incompatible calling convention. |
9224 | : | |
9225 | else | |
9226 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9227 | break 2 | |
9228 | fi | |
9229 | fi | |
9230 | done | |
9231 | ;; | |
9232 | esac | |
9233 | done | |
698dcdb6 | 9234 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9235 | |
9236 | fi | |
9237 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9238 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9239 | else |
9240 | # As a last resort, use the slow shell script. We don't cache a | |
9241 | # path for INSTALL within a source directory, because that will | |
9242 | # break other packages using the cache if that directory is | |
9243 | # removed, or if the path is relative. | |
698dcdb6 | 9244 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9245 | fi |
9246 | fi | |
698dcdb6 | 9247 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9248 | |
9249 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9250 | # It thinks the first close brace ends the variable substitution. | |
9251 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9252 | ||
698dcdb6 | 9253 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9254 | |
9255 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9256 | ||
6054113a GD |
9257 | case "${host}" in |
9258 | ||
b5853384 | 9259 | powerpc-*-darwin* ) |
eb99ae0b GD |
9260 | INSTALL_PROGRAM="cp -fp" |
9261 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9262 | ;; |
9263 | *) | |
9264 | ;; | |
d6853540 | 9265 | esac |
698dcdb6 | 9266 | |
10f2d63a VZ |
9267 | # Extract the first word of "strip", so it can be a program name with args. |
9268 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9269 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b040e242 | 9270 | echo "configure:9271: checking for $ac_word" >&5 |
698dcdb6 VZ |
9271 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9273 | else |
9274 | if test -n "$STRIP"; then | |
9275 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9276 | else | |
698dcdb6 VZ |
9277 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9278 | ac_dummy="$PATH" | |
9279 | for ac_dir in $ac_dummy; do | |
9280 | test -z "$ac_dir" && ac_dir=. | |
9281 | if test -f $ac_dir/$ac_word; then | |
9282 | ac_cv_prog_STRIP="strip" | |
9283 | break | |
9284 | fi | |
9285 | done | |
9286 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9287 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9288 | fi | |
9289 | fi | |
698dcdb6 | 9290 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9291 | if test -n "$STRIP"; then |
698dcdb6 | 9292 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9293 | else |
698dcdb6 | 9294 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9295 | fi |
9296 | ||
698dcdb6 VZ |
9297 | |
9298 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
b040e242 | 9299 | echo "configure:9300: checking make for VPATH support" >&5 |
10f2d63a VZ |
9300 | cat - << EOF > confMake |
9301 | check : file | |
9302 | cp \$? \$@ | |
9303 | cp \$? final_file | |
9304 | EOF | |
9305 | ||
9306 | if test ! -d sub ; then | |
9307 | mkdir sub | |
9308 | fi | |
9309 | echo dummy > sub/file | |
f6bcfd97 | 9310 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9311 | RESULT=$? |
9312 | rm -f sub/file check final_file confMake | |
9313 | rmdir sub | |
9314 | if test "$RESULT" = 0; then | |
698dcdb6 | 9315 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 9316 | else |
698dcdb6 VZ |
9317 | echo "$ac_t""no" 1>&6 |
9318 | { echo "configure: error: | |
1e487827 VS |
9319 | You need a make-utility that is able to use the variable |
9320 | VPATH correctly. | |
9321 | If your version of make does not support VPATH correctly, | |
9322 | please install GNU-make (possibly as gmake), and start | |
9323 | configure with the following command: | |
9324 | export MAKE=gmake; ./configure for sh-type shells | |
9325 | setenv MAKE gmake; ./configure for csh-type shells | |
9326 | Also please do remember to use gmake in this case every time | |
9327 | you are trying to compile. | |
698dcdb6 | 9328 | " 1>&2; exit 1; } |
10f2d63a VZ |
9329 | fi |
9330 | ||
613d0995 VZ |
9331 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
9332 | echo "configure:9333: checking if make is GNU make" >&5 | |
9333 | if eval "test \"`echo '$''{'wx_make_make_isgnu'+set}'`\" = set"; then | |
9334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9335 | else | |
9336 | ||
9337 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9338 | grep GNU 2>&1 > /dev/null); then | |
9339 | wx_make_make_isgnu="yes" | |
9340 | else | |
9341 | wx_make_make_isgnu="no" | |
9342 | fi | |
9343 | ||
9344 | fi | |
9345 | ||
9346 | echo "$ac_t""$wx_make_make_isgnu" 1>&6 | |
9347 | ||
9348 | if test "x$wx_make_make_isgnu" = "xyes"; then | |
9349 | IF_GNU_MAKE="" | |
9350 | else | |
9351 | IF_GNU_MAKE="#" | |
9352 | fi | |
9353 | ||
9354 | ||
9355 | ||
10f2d63a VZ |
9356 | for ac_prog in 'bison -y' byacc |
9357 | do | |
698dcdb6 | 9358 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9359 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9360 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
613d0995 | 9361 | echo "configure:9362: checking for $ac_word" >&5 |
698dcdb6 VZ |
9362 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9364 | else |
9365 | if test -n "$YACC"; then | |
9366 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9367 | else | |
698dcdb6 VZ |
9368 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9369 | ac_dummy="$PATH" | |
9370 | for ac_dir in $ac_dummy; do | |
9371 | test -z "$ac_dir" && ac_dir=. | |
9372 | if test -f $ac_dir/$ac_word; then | |
9373 | ac_cv_prog_YACC="$ac_prog" | |
9374 | break | |
9375 | fi | |
9376 | done | |
9377 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9378 | fi |
9379 | fi | |
698dcdb6 | 9380 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9381 | if test -n "$YACC"; then |
698dcdb6 | 9382 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9383 | else |
698dcdb6 | 9384 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9385 | fi |
9386 | ||
698dcdb6 | 9387 | test -n "$YACC" && break |
10f2d63a VZ |
9388 | done |
9389 | test -n "$YACC" || YACC="yacc" | |
9390 | ||
698dcdb6 VZ |
9391 | |
9392 | # Extract the first word of "flex", so it can be a program name with args. | |
9393 | set dummy flex; ac_word=$2 | |
9394 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
613d0995 | 9395 | echo "configure:9396: checking for $ac_word" >&5 |
698dcdb6 VZ |
9396 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9398 | else |
9399 | if test -n "$LEX"; then | |
9400 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9401 | else | |
698dcdb6 VZ |
9402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9403 | ac_dummy="$PATH" | |
9404 | for ac_dir in $ac_dummy; do | |
9405 | test -z "$ac_dir" && ac_dir=. | |
9406 | if test -f $ac_dir/$ac_word; then | |
9407 | ac_cv_prog_LEX="flex" | |
9408 | break | |
9409 | fi | |
9410 | done | |
9411 | IFS="$ac_save_ifs" | |
9412 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9413 | fi |
9414 | fi | |
698dcdb6 | 9415 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9416 | if test -n "$LEX"; then |
698dcdb6 | 9417 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9418 | else |
698dcdb6 | 9419 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9420 | fi |
9421 | ||
9422 | if test -z "$LEXLIB" | |
9423 | then | |
698dcdb6 VZ |
9424 | case "$LEX" in |
9425 | flex*) ac_lib=fl ;; | |
9426 | *) ac_lib=l ;; | |
9427 | esac | |
9428 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
613d0995 | 9429 | echo "configure:9430: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9430 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9431 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9433 | else | |
9434 | ac_save_LIBS="$LIBS" | |
9435 | LIBS="-l$ac_lib $LIBS" | |
9436 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9437 | #line 9438 "configure" |
10f2d63a VZ |
9438 | #include "confdefs.h" |
9439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9440 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9441 | builtin and then its argument prototype would still apply. */ |
9442 | char yywrap(); | |
10f2d63a | 9443 | |
698dcdb6 VZ |
9444 | int main() { |
9445 | yywrap() | |
9446 | ; return 0; } | |
9447 | EOF | |
613d0995 | 9448 | if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9449 | rm -rf conftest* |
9450 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9451 | else |
698dcdb6 VZ |
9452 | echo "configure: failed program was:" >&5 |
9453 | cat conftest.$ac_ext >&5 | |
9454 | rm -rf conftest* | |
9455 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9456 | fi |
698dcdb6 VZ |
9457 | rm -f conftest* |
9458 | LIBS="$ac_save_LIBS" | |
9459 | ||
10f2d63a | 9460 | fi |
698dcdb6 VZ |
9461 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9462 | echo "$ac_t""yes" 1>&6 | |
9463 | LEXLIB="-l$ac_lib" | |
9464 | else | |
9465 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9466 | fi |
9467 | ||
9468 | fi | |
9469 | ||
9470 | ||
698dcdb6 | 9471 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
613d0995 | 9472 | echo "configure:9473: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9473 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9475 | else |
698dcdb6 VZ |
9476 | rm -f conftestdata |
9477 | if ln -s X conftestdata 2>/dev/null | |
9478 | then | |
9479 | rm -f conftestdata | |
9480 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9481 | else |
698dcdb6 | 9482 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9483 | fi |
9484 | fi | |
698dcdb6 VZ |
9485 | LN_S="$ac_cv_prog_LN_S" |
9486 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9487 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9488 | else |
698dcdb6 | 9489 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9490 | fi |
9491 | ||
9492 | ||
9493 | ||
9494 | SEARCH_INCLUDE="\ | |
9495 | /usr/local/include \ | |
9496 | \ | |
9497 | /usr/Motif-1.2/include \ | |
9498 | /usr/Motif-2.1/include \ | |
9499 | \ | |
9500 | /usr/include/Motif1.2 \ | |
9501 | /opt/xpm/include/X11 \ | |
9502 | /opt/GBxpm/include/ \ | |
9503 | /opt/GBxpm/X11/include/ \ | |
9504 | \ | |
9505 | /usr/Motif1.2/include \ | |
9506 | /usr/dt/include \ | |
afc31813 VZ |
9507 | /usr/openwin/include \ |
9508 | \ | |
10f2d63a VZ |
9509 | /usr/include/Xm \ |
9510 | \ | |
9511 | /usr/X11R6/include \ | |
afc31813 | 9512 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9513 | /usr/X11R5/include \ |
9514 | /usr/X11R4/include \ | |
9515 | \ | |
10f2d63a VZ |
9516 | /usr/include/X11R6 \ |
9517 | /usr/include/X11R5 \ | |
9518 | /usr/include/X11R4 \ | |
9519 | \ | |
9520 | /usr/local/X11R6/include \ | |
9521 | /usr/local/X11R5/include \ | |
9522 | /usr/local/X11R4/include \ | |
9523 | \ | |
9524 | /usr/local/include/X11R6 \ | |
9525 | /usr/local/include/X11R5 \ | |
9526 | /usr/local/include/X11R4 \ | |
9527 | \ | |
9528 | /usr/X11/include \ | |
9529 | /usr/include/X11 \ | |
9530 | /usr/local/X11/include \ | |
9531 | /usr/local/include/X11 \ | |
9532 | \ | |
9533 | /usr/X386/include \ | |
9534 | /usr/x386/include \ | |
9535 | /usr/XFree86/include/X11 \ | |
9536 | \ | |
cf27ef00 | 9537 | X:/XFree86/include \ |
ec14dd32 VZ |
9538 | X:/XFree86/include/X11 \ |
9539 | \ | |
10f2d63a VZ |
9540 | /usr/include/gtk \ |
9541 | /usr/local/include/gtk \ | |
9542 | /usr/include/glib \ | |
9543 | /usr/local/include/glib \ | |
9544 | \ | |
9545 | /usr/include/qt \ | |
9546 | /usr/local/include/qt \ | |
9547 | \ | |
9548 | /usr/include/windows \ | |
9549 | /usr/include/wine \ | |
9550 | /usr/local/include/wine \ | |
9551 | \ | |
9552 | /usr/unsupported/include \ | |
9553 | /usr/athena/include \ | |
9554 | /usr/local/x11r5/include \ | |
9555 | /usr/lpp/Xamples/include \ | |
9556 | \ | |
10f2d63a | 9557 | /usr/openwin/share/include \ |
928b5c08 VZ |
9558 | \ |
9559 | /usr/include" | |
10f2d63a VZ |
9560 | |
9561 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9562 | ||
698dcdb6 VZ |
9563 | |
9564 | cat > confcache <<\EOF | |
10f2d63a VZ |
9565 | # This file is a shell script that caches the results of configure |
9566 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9567 | # scripts and configure runs. It is not useful on other systems. |
9568 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9569 | # |
698dcdb6 VZ |
9570 | # By default, configure uses ./config.cache as the cache file, |
9571 | # creating it if it does not exist already. You can give configure | |
9572 | # the --cache-file=FILE option to use a different cache file; that is | |
9573 | # what configure does when it calls configure scripts in | |
9574 | # subdirectories, so they share the cache. | |
9575 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9576 | # config.status only pays attention to the cache file if you give it the | |
9577 | # --recheck option to rerun configure. | |
10f2d63a | 9578 | # |
698dcdb6 | 9579 | EOF |
10f2d63a VZ |
9580 | # The following way of writing the cache mishandles newlines in values, |
9581 | # but we know of no workaround that is simple, portable, and efficient. | |
9582 | # So, don't put newlines in cache variables' values. | |
9583 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9584 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9585 | (set) 2>&1 | |
9586 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9587 | *ac_space=\ *) | |
9588 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9589 | # turns \\\\ into \\, and sed turns \\ into \). | |
9590 | sed -n \ | |
9591 | -e "s/'/'\\\\''/g" \ | |
9592 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9593 | ;; | |
9594 | *) | |
9595 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9596 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9597 | ;; | |
9598 | esac >> confcache | |
9599 | if cmp -s $cache_file confcache; then | |
9600 | : | |
9601 | else | |
10f2d63a | 9602 | if test -w $cache_file; then |
698dcdb6 VZ |
9603 | echo "updating cache $cache_file" |
9604 | cat confcache > $cache_file | |
10f2d63a VZ |
9605 | else |
9606 | echo "not updating unwritable cache $cache_file" | |
9607 | fi | |
9608 | fi | |
9609 | rm -f confcache | |
9610 | ||
698dcdb6 VZ |
9611 | |
9612 | ||
4f14bcd8 | 9613 | |
18dbb1f6 VZ |
9614 | REGEX_INCLUDE= |
9615 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9616 | cat >> confdefs.h <<\EOF |
9617 | #define wxUSE_REGEX 1 | |
9618 | EOF | |
9619 | ||
9620 | ||
9621 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9622 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9623 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
613d0995 | 9624 | echo "configure:9625: checking for regex.h" >&5 |
18dbb1f6 VZ |
9625 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9627 | else | |
9628 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9629 | #line 9630 "configure" |
18dbb1f6 VZ |
9630 | #include "confdefs.h" |
9631 | #include <regex.h> | |
9632 | EOF | |
9633 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 9634 | { (eval echo configure:9635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9635 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9636 | if test -z "$ac_err"; then | |
9637 | rm -rf conftest* | |
9638 | eval "ac_cv_header_$ac_safe=yes" | |
9639 | else | |
9640 | echo "$ac_err" >&5 | |
9641 | echo "configure: failed program was:" >&5 | |
9642 | cat conftest.$ac_ext >&5 | |
9643 | rm -rf conftest* | |
9644 | eval "ac_cv_header_$ac_safe=no" | |
9645 | fi | |
9646 | rm -f conftest* | |
9647 | fi | |
9648 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9649 | echo "$ac_t""yes" 1>&6 | |
9650 | for ac_func in regcomp | |
9651 | do | |
9652 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 9653 | echo "configure:9654: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9654 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9656 | else | |
9657 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9658 | #line 9659 "configure" |
18dbb1f6 VZ |
9659 | #include "confdefs.h" |
9660 | /* System header to define __stub macros and hopefully few prototypes, | |
9661 | which can conflict with char $ac_func(); below. */ | |
9662 | #include <assert.h> | |
9663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9664 | /* We use char because int might match the return type of a gcc2 | |
9665 | builtin and then its argument prototype would still apply. */ | |
9666 | char $ac_func(); | |
9667 | ||
9668 | int main() { | |
9669 | ||
9670 | /* The GNU C library defines this for functions which it implements | |
9671 | to always fail with ENOSYS. Some functions are actually named | |
9672 | something starting with __ and the normal name is an alias. */ | |
9673 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9674 | choke me | |
9675 | #else | |
9676 | $ac_func(); | |
9677 | #endif | |
9678 | ||
9679 | ; return 0; } | |
9680 | EOF | |
613d0995 | 9681 | if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9682 | rm -rf conftest* |
9683 | eval "ac_cv_func_$ac_func=yes" | |
9684 | else | |
9685 | echo "configure: failed program was:" >&5 | |
9686 | cat conftest.$ac_ext >&5 | |
9687 | rm -rf conftest* | |
9688 | eval "ac_cv_func_$ac_func=no" | |
9689 | fi | |
9690 | rm -f conftest* | |
9691 | fi | |
9692 | ||
9693 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9694 | echo "$ac_t""yes" 1>&6 | |
9695 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9696 | cat >> confdefs.h <<EOF | |
9697 | #define $ac_tr_func 1 | |
9698 | EOF | |
9699 | ||
9700 | else | |
9701 | echo "$ac_t""no" 1>&6 | |
9702 | fi | |
9703 | done | |
9704 | ||
9705 | else | |
9706 | echo "$ac_t""no" 1>&6 | |
9707 | fi | |
9708 | ||
9709 | ||
4f14bcd8 GD |
9710 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9711 | if test "$wxUSE_REGEX" = "sys" ; then | |
9712 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9713 | else | |
a3df447d | 9714 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9715 | wxUSE_REGEX=builtin |
9716 | fi | |
9717 | else | |
9718 | wxUSE_REGEX=sys | |
18dbb1f6 | 9719 | fi |
18dbb1f6 VZ |
9720 | fi |
9721 | ||
4f14bcd8 GD |
9722 | if test "$wxUSE_REGEX" = "builtin" ; then |
9723 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9724 | fi | |
18dbb1f6 VZ |
9725 | fi |
9726 | ||
9727 | ||
4f14bcd8 GD |
9728 | ZLIB_INCLUDE= |
9729 | ZLIB_LINK= | |
9730 | if test "$wxUSE_ZLIB" != "no" ; then | |
9731 | cat >> confdefs.h <<\EOF | |
9732 | #define wxUSE_ZLIB 1 | |
9733 | EOF | |
dad6c0ea | 9734 | |
10f2d63a | 9735 | |
4f14bcd8 GD |
9736 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9737 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9738 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
613d0995 | 9739 | echo "configure:9740: checking for zlib.h" >&5 |
3a922bb4 RL |
9740 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9742 | else | |
9743 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9744 | #line 9745 "configure" |
3a922bb4 | 9745 | #include "confdefs.h" |
4f14bcd8 | 9746 | #include <zlib.h> |
3a922bb4 RL |
9747 | EOF |
9748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 9749 | { (eval echo configure:9750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9751 | if test -z "$ac_err"; then | |
9752 | rm -rf conftest* | |
9753 | eval "ac_cv_header_$ac_safe=yes" | |
9754 | else | |
9755 | echo "$ac_err" >&5 | |
9756 | echo "configure: failed program was:" >&5 | |
9757 | cat conftest.$ac_ext >&5 | |
9758 | rm -rf conftest* | |
9759 | eval "ac_cv_header_$ac_safe=no" | |
9760 | fi | |
9761 | rm -f conftest* | |
9762 | fi | |
9763 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9764 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9765 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
613d0995 | 9766 | echo "configure:9767: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9767 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9768 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9770 | else | |
9771 | ac_save_LIBS="$LIBS" | |
9772 | LIBS="-lz $LIBS" | |
9773 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9774 | #line 9775 "configure" |
4f14bcd8 GD |
9775 | #include "confdefs.h" |
9776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9777 | /* We use char because int might match the return type of a gcc2 | |
9778 | builtin and then its argument prototype would still apply. */ | |
9779 | char deflate(); | |
9780 | ||
9781 | int main() { | |
9782 | deflate() | |
9783 | ; return 0; } | |
3a922bb4 | 9784 | EOF |
613d0995 | 9785 | if { (eval echo configure:9786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9786 | rm -rf conftest* |
9787 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9788 | else | |
9789 | echo "configure: failed program was:" >&5 | |
9790 | cat conftest.$ac_ext >&5 | |
9791 | rm -rf conftest* | |
9792 | eval "ac_cv_lib_$ac_lib_var=no" | |
9793 | fi | |
9794 | rm -f conftest* | |
9795 | LIBS="$ac_save_LIBS" | |
9796 | ||
9797 | fi | |
9798 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9799 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9800 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9801 | else |
9802 | echo "$ac_t""no" 1>&6 | |
9803 | fi | |
10f2d63a | 9804 | |
4f14bcd8 GD |
9805 | else |
9806 | echo "$ac_t""no" 1>&6 | |
9807 | fi | |
9808 | ||
9809 | ||
9810 | if test "x$ZLIB_LINK" = "x" ; then | |
9811 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9812 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9813 | else | |
a3df447d | 9814 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9815 | wxUSE_ZLIB=builtin |
9816 | fi | |
9817 | else | |
9818 | wxUSE_ZLIB=sys | |
9819 | fi | |
9820 | fi | |
9821 | ||
9822 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9823 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9824 | fi | |
9825 | fi | |
9826 | ||
9827 | ||
9828 | PNG_INCLUDE= | |
9829 | PNG_LINK= | |
9830 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9831 | cat >> confdefs.h <<\EOF | |
9832 | #define wxUSE_LIBPNG 1 | |
9833 | EOF | |
9834 | ||
9835 | ||
9836 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9837 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9838 | wxUSE_LIBPNG=builtin |
9839 | fi | |
9840 | ||
9841 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9842 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9843 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
613d0995 | 9844 | echo "configure:9845: checking for png.h" >&5 |
d4158b5d VS |
9845 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9847 | else | |
9848 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9849 | #line 9850 "configure" |
d4158b5d | 9850 | #include "confdefs.h" |
4f14bcd8 | 9851 | #include <png.h> |
d4158b5d VS |
9852 | EOF |
9853 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 9854 | { (eval echo configure:9855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9855 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9856 | if test -z "$ac_err"; then | |
9857 | rm -rf conftest* | |
9858 | eval "ac_cv_header_$ac_safe=yes" | |
9859 | else | |
9860 | echo "$ac_err" >&5 | |
9861 | echo "configure: failed program was:" >&5 | |
9862 | cat conftest.$ac_ext >&5 | |
9863 | rm -rf conftest* | |
9864 | eval "ac_cv_header_$ac_safe=no" | |
9865 | fi | |
9866 | rm -f conftest* | |
9867 | fi | |
9868 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9869 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9870 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
613d0995 | 9871 | echo "configure:9872: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9872 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9873 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9874 | echo $ac_n "(cached) $ac_c" 1>&6 |
9875 | else | |
4f14bcd8 GD |
9876 | ac_save_LIBS="$LIBS" |
9877 | LIBS="-lpng -lz -lm $LIBS" | |
9878 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9879 | #line 9880 "configure" |
3a922bb4 | 9880 | #include "confdefs.h" |
4f14bcd8 GD |
9881 | /* Override any gcc2 internal prototype to avoid an error. */ |
9882 | /* We use char because int might match the return type of a gcc2 | |
9883 | builtin and then its argument prototype would still apply. */ | |
9884 | char png_check_sig(); | |
f6bcfd97 | 9885 | |
4f14bcd8 GD |
9886 | int main() { |
9887 | png_check_sig() | |
3a922bb4 RL |
9888 | ; return 0; } |
9889 | EOF | |
613d0995 | 9890 | if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9891 | rm -rf conftest* |
4f14bcd8 | 9892 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9893 | else |
9894 | echo "configure: failed program was:" >&5 | |
9895 | cat conftest.$ac_ext >&5 | |
9896 | rm -rf conftest* | |
4f14bcd8 | 9897 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9898 | fi |
9899 | rm -f conftest* | |
4f14bcd8 | 9900 | LIBS="$ac_save_LIBS" |
10f2d63a | 9901 | |
4f14bcd8 GD |
9902 | fi |
9903 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9904 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9905 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9906 | else |
9907 | echo "$ac_t""no" 1>&6 | |
9908 | fi | |
32832908 | 9909 | |
4f14bcd8 GD |
9910 | |
9911 | else | |
9912 | echo "$ac_t""no" 1>&6 | |
9913 | fi | |
3a922bb4 | 9914 | |
7b7a7637 | 9915 | |
4f14bcd8 GD |
9916 | if test "x$PNG_LINK" = "x" ; then |
9917 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9918 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9919 | else | |
a3df447d | 9920 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9921 | wxUSE_LIBPNG=builtin |
9922 | fi | |
9923 | else | |
9924 | wxUSE_LIBPNG=yes | |
9925 | fi | |
3a922bb4 RL |
9926 | fi |
9927 | ||
4f14bcd8 GD |
9928 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9929 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9930 | fi |
9931 | ||
4f14bcd8 | 9932 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9933 | fi |
9934 | ||
32832908 | 9935 | |
4f14bcd8 GD |
9936 | JPEG_INCLUDE= |
9937 | JPEG_LINK= | |
9938 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9939 | cat >> confdefs.h <<\EOF | |
9940 | #define wxUSE_LIBJPEG 1 | |
9941 | EOF | |
10f2d63a | 9942 | |
8168de4c | 9943 | |
4f14bcd8 GD |
9944 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9945 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
613d0995 | 9946 | echo "configure:9947: checking for jpeglib.h" >&5 |
4f14bcd8 | 9947 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9948 | echo $ac_n "(cached) $ac_c" 1>&6 |
9949 | else | |
4f14bcd8 | 9950 | cat > conftest.$ac_ext <<EOF |
613d0995 | 9951 | #line 9952 "configure" |
4f14bcd8 | 9952 | #include "confdefs.h" |
8168de4c | 9953 | |
4f14bcd8 GD |
9954 | #undef HAVE_STDLIB_H |
9955 | #include <stdio.h> | |
9956 | #include <jpeglib.h> | |
9957 | ||
9958 | int main() { | |
9959 | ||
9960 | ||
9961 | ; return 0; } | |
9962 | EOF | |
613d0995 | 9963 | if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9964 | rm -rf conftest* |
9965 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9966 | else |
4f14bcd8 GD |
9967 | echo "configure: failed program was:" >&5 |
9968 | cat conftest.$ac_ext >&5 | |
9969 | rm -rf conftest* | |
9970 | ac_cv_header_jpeglib_h=no | |
9971 | ||
9972 | fi | |
9973 | rm -f conftest* | |
9974 | ||
698dcdb6 | 9975 | fi |
6f72b082 | 9976 | |
4f14bcd8 GD |
9977 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9978 | ||
9979 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9980 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
613d0995 | 9981 | echo "configure:9982: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9982 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9983 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9985 | else |
4f14bcd8 GD |
9986 | ac_save_LIBS="$LIBS" |
9987 | LIBS="-ljpeg $LIBS" | |
9988 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 9989 | #line 9990 "configure" |
4f14bcd8 GD |
9990 | #include "confdefs.h" |
9991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9992 | /* We use char because int might match the return type of a gcc2 | |
9993 | builtin and then its argument prototype would still apply. */ | |
9994 | char jpeg_read_header(); | |
698dcdb6 | 9995 | |
4f14bcd8 GD |
9996 | int main() { |
9997 | jpeg_read_header() | |
9998 | ; return 0; } | |
9999 | EOF | |
613d0995 | 10000 | if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10001 | rm -rf conftest* |
10002 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 10003 | else |
4f14bcd8 GD |
10004 | echo "configure: failed program was:" >&5 |
10005 | cat conftest.$ac_ext >&5 | |
10006 | rm -rf conftest* | |
10007 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 10008 | fi |
4f14bcd8 GD |
10009 | rm -f conftest* |
10010 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 10011 | |
4f14bcd8 GD |
10012 | fi |
10013 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10014 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10015 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
10016 | else |
10017 | echo "$ac_t""no" 1>&6 | |
10018 | fi | |
10019 | ||
10020 | fi | |
10021 | ||
10022 | if test "x$JPEG_LINK" = "x" ; then | |
10023 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10024 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10025 | else | |
a3df447d | 10026 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10027 | wxUSE_LIBJPEG=builtin |
10028 | fi | |
10029 | else | |
10030 | wxUSE_LIBJPEG=sys | |
10031 | fi | |
10032 | fi | |
10033 | ||
10034 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10035 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10036 | fi | |
10037 | fi | |
10038 | ||
10039 | ||
10040 | TIFF_INCLUDE= | |
10041 | TIFF_LINK= | |
10042 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10043 | cat >> confdefs.h <<\EOF | |
10044 | #define wxUSE_LIBTIFF 1 | |
10045 | EOF | |
10046 | ||
10047 | ||
10048 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10049 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10050 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
613d0995 | 10051 | echo "configure:10052: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10054 | else | |
10055 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10056 | #line 10057 "configure" |
4f14bcd8 GD |
10057 | #include "confdefs.h" |
10058 | #include <tiffio.h> | |
10059 | EOF | |
10060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 10061 | { (eval echo configure:10062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10063 | if test -z "$ac_err"; then | |
10064 | rm -rf conftest* | |
10065 | eval "ac_cv_header_$ac_safe=yes" | |
10066 | else | |
10067 | echo "$ac_err" >&5 | |
10068 | echo "configure: failed program was:" >&5 | |
10069 | cat conftest.$ac_ext >&5 | |
10070 | rm -rf conftest* | |
10071 | eval "ac_cv_header_$ac_safe=no" | |
10072 | fi | |
10073 | rm -f conftest* | |
10074 | fi | |
10075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10076 | echo "$ac_t""yes" 1>&6 | |
10077 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
613d0995 | 10078 | echo "configure:10079: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10079 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10080 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10082 | else | |
10083 | ac_save_LIBS="$LIBS" | |
10084 | LIBS="-ltiff -lm $LIBS" | |
10085 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10086 | #line 10087 "configure" |
4f14bcd8 GD |
10087 | #include "confdefs.h" |
10088 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10089 | /* We use char because int might match the return type of a gcc2 | |
10090 | builtin and then its argument prototype would still apply. */ | |
10091 | char TIFFError(); | |
10092 | ||
10093 | int main() { | |
10094 | TIFFError() | |
10095 | ; return 0; } | |
10096 | EOF | |
613d0995 | 10097 | if { (eval echo configure:10098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10098 | rm -rf conftest* |
10099 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10100 | else | |
10101 | echo "configure: failed program was:" >&5 | |
10102 | cat conftest.$ac_ext >&5 | |
10103 | rm -rf conftest* | |
10104 | eval "ac_cv_lib_$ac_lib_var=no" | |
10105 | fi | |
10106 | rm -f conftest* | |
10107 | LIBS="$ac_save_LIBS" | |
10108 | ||
10109 | fi | |
10110 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10111 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10112 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10113 | else |
10114 | echo "$ac_t""no" 1>&6 | |
10115 | fi | |
10116 | ||
10117 | ||
10118 | else | |
10119 | echo "$ac_t""no" 1>&6 | |
10120 | fi | |
10121 | ||
10122 | ||
10123 | if test "x$TIFF_LINK" = "x" ; then | |
10124 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10125 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10126 | else | |
a3df447d | 10127 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10128 | wxUSE_LIBTIFF=builtin |
10129 | fi | |
10130 | else | |
10131 | wxUSE_LIBTIFF=sys | |
10132 | fi | |
10133 | fi | |
10134 | ||
10135 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10136 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10137 | fi | |
10138 | fi | |
10139 | ||
10140 | ||
10141 | FREETYPE_INCLUDE= | |
10142 | FREETYPE_LINK= | |
10143 | if test "$wxUSE_FREETYPE" != "no" ; then | |
10144 | cat >> confdefs.h <<\EOF | |
10145 | #define wxUSE_FREETYPE 1 | |
10146 | EOF | |
10147 | ||
10148 | ||
10149 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
10150 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
10151 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
613d0995 | 10152 | echo "configure:10153: checking for freetype.h" >&5 |
4f14bcd8 GD |
10153 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10155 | else | |
10156 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10157 | #line 10158 "configure" |
4f14bcd8 GD |
10158 | #include "confdefs.h" |
10159 | #include <freetype.h> | |
10160 | EOF | |
10161 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 10162 | { (eval echo configure:10163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10163 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10164 | if test -z "$ac_err"; then | |
10165 | rm -rf conftest* | |
10166 | eval "ac_cv_header_$ac_safe=yes" | |
10167 | else | |
10168 | echo "$ac_err" >&5 | |
10169 | echo "configure: failed program was:" >&5 | |
10170 | cat conftest.$ac_ext >&5 | |
10171 | rm -rf conftest* | |
10172 | eval "ac_cv_header_$ac_safe=no" | |
10173 | fi | |
10174 | rm -f conftest* | |
10175 | fi | |
10176 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10177 | echo "$ac_t""yes" 1>&6 | |
10178 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
613d0995 | 10179 | echo "configure:10180: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
10180 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
10181 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10183 | else | |
10184 | ac_save_LIBS="$LIBS" | |
10185 | LIBS="-lfreetype -lm $LIBS" | |
10186 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10187 | #line 10188 "configure" |
4f14bcd8 GD |
10188 | #include "confdefs.h" |
10189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10190 | /* We use char because int might match the return type of a gcc2 | |
10191 | builtin and then its argument prototype would still apply. */ | |
10192 | char FT_Render_Glyph(); | |
10193 | ||
10194 | int main() { | |
10195 | FT_Render_Glyph() | |
10196 | ; return 0; } | |
10197 | EOF | |
613d0995 | 10198 | if { (eval echo configure:10199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10199 | rm -rf conftest* |
10200 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10201 | else | |
10202 | echo "configure: failed program was:" >&5 | |
10203 | cat conftest.$ac_ext >&5 | |
10204 | rm -rf conftest* | |
10205 | eval "ac_cv_lib_$ac_lib_var=no" | |
10206 | fi | |
10207 | rm -f conftest* | |
10208 | LIBS="$ac_save_LIBS" | |
10209 | ||
10210 | fi | |
10211 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10212 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10213 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
10214 | else |
10215 | echo "$ac_t""no" 1>&6 | |
10216 | fi | |
10217 | ||
10218 | ||
10219 | else | |
10220 | echo "$ac_t""no" 1>&6 | |
10221 | fi | |
10222 | ||
10223 | ||
10224 | if test "x$FREETYPE_LINK" = "x" ; then | |
10225 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
10226 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
10227 | else | |
a3df447d | 10228 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10229 | wxUSE_FREETYPE=builtin |
10230 | fi | |
10231 | else | |
10232 | wxUSE_FREETYPE=sys | |
10233 | fi | |
10234 | fi | |
10235 | ||
10236 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
10237 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
10238 | fi | |
10239 | fi | |
10240 | ||
10241 | ||
10242 | AFMINSTALL= | |
10243 | ||
10244 | TOOLKIT= | |
10245 | TOOLKIT_INCLUDE= | |
10246 | WIDGET_SET= | |
10247 | ||
10248 | if test "$USE_WIN32" = 1 ; then | |
10249 | for ac_hdr in w32api.h | |
10250 | do | |
10251 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10252 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 10253 | echo "configure:10254: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10254 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10256 | else | |
10257 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10258 | #line 10259 "configure" |
4f14bcd8 GD |
10259 | #include "confdefs.h" |
10260 | #include <$ac_hdr> | |
10261 | EOF | |
10262 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 10263 | { (eval echo configure:10264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10264 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10265 | if test -z "$ac_err"; then | |
10266 | rm -rf conftest* | |
10267 | eval "ac_cv_header_$ac_safe=yes" | |
10268 | else | |
10269 | echo "$ac_err" >&5 | |
10270 | echo "configure: failed program was:" >&5 | |
10271 | cat conftest.$ac_ext >&5 | |
10272 | rm -rf conftest* | |
10273 | eval "ac_cv_header_$ac_safe=no" | |
10274 | fi | |
10275 | rm -f conftest* | |
10276 | fi | |
10277 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10278 | echo "$ac_t""yes" 1>&6 | |
10279 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10280 | cat >> confdefs.h <<EOF | |
10281 | #define $ac_tr_hdr 1 | |
10282 | EOF | |
10283 | ||
10284 | else | |
10285 | echo "$ac_t""no" 1>&6 | |
10286 | fi | |
10287 | done | |
10288 | ||
10289 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10290 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
613d0995 | 10291 | echo "configure:10292: checking for windows.h" >&5 |
4f14bcd8 GD |
10292 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10294 | else | |
10295 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10296 | #line 10297 "configure" |
4f14bcd8 GD |
10297 | #include "confdefs.h" |
10298 | #include <windows.h> | |
10299 | EOF | |
10300 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 10301 | { (eval echo configure:10302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10302 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10303 | if test -z "$ac_err"; then | |
10304 | rm -rf conftest* | |
10305 | eval "ac_cv_header_$ac_safe=yes" | |
10306 | else | |
10307 | echo "$ac_err" >&5 | |
10308 | echo "configure: failed program was:" >&5 | |
10309 | cat conftest.$ac_ext >&5 | |
10310 | rm -rf conftest* | |
10311 | eval "ac_cv_header_$ac_safe=no" | |
10312 | fi | |
10313 | rm -f conftest* | |
10314 | fi | |
10315 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10316 | echo "$ac_t""yes" 1>&6 | |
10317 | : | |
10318 | else | |
10319 | echo "$ac_t""no" 1>&6 | |
10320 | ||
10321 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10322 | ||
10323 | fi | |
10324 | ||
10325 | ||
10326 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
613d0995 | 10327 | echo "configure:10328: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10328 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10329 | echo $ac_n "(cached) $ac_c" 1>&6 |
10330 | else | |
10331 | ||
10332 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10333 | #line 10334 "configure" |
4f14bcd8 GD |
10334 | #include "confdefs.h" |
10335 | #include <w32api.h> | |
10336 | int main() { | |
10337 | ||
10338 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10339 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10340 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10341 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10342 | ||
10343 | #if !wxCHECK_W32API_VERSION(1,1) | |
10344 | #error You need w32api 1.1 or newer | |
10345 | #endif | |
10346 | ||
10347 | ; return 0; } | |
10348 | EOF | |
613d0995 | 10349 | if { (eval echo configure:10350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10350 | rm -rf conftest* |
10351 | ||
ea7682f0 | 10352 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10353 | |
10354 | else | |
10355 | echo "configure: failed program was:" >&5 | |
10356 | cat conftest.$ac_ext >&5 | |
10357 | rm -rf conftest* | |
10358 | ||
ea7682f0 | 10359 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10360 | |
10361 | fi | |
10362 | rm -f conftest* | |
10363 | ||
10364 | fi | |
10365 | ||
ea7682f0 VS |
10366 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10367 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10368 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10369 | fi | |
4f14bcd8 GD |
10370 | |
10371 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10372 | ||
77e13408 RL |
10373 | case "${host}" in |
10374 | *-*-cygwin* ) | |
10375 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10376 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10377 | esac | |
4f14bcd8 GD |
10378 | |
10379 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10380 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10381 | fi |
10382 | ||
4f14bcd8 GD |
10383 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10384 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10385 | fi | |
10386 | ||
10387 | if test "$wxUSE_GUI" = "yes"; then | |
10388 | USE_GUI=1 | |
10389 | ||
10390 | GUI_TK_LIBRARY= | |
10391 | ||
10392 | WXGTK12= | |
10393 | WXGTK127= | |
10394 | WXGTK20= | |
10395 | ||
77e13408 | 10396 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10397 | TOOLKIT=MSW |
10398 | GUIDIST=MSW_DIST | |
77e13408 RL |
10399 | |
10400 | case "${host}" in | |
10401 | *-*-mingw32* ) | |
3d63bc3a | 10402 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10403 | esac |
4f14bcd8 GD |
10404 | fi |
10405 | ||
10406 | if test "$wxUSE_GTK" = 1; then | |
10407 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
613d0995 | 10408 | echo "configure:10409: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10409 | |
10410 | gtk_version_cached=1 | |
10411 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10413 | else | |
10414 | ||
10415 | gtk_version_cached=0 | |
d48ad9bd | 10416 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10417 | |
3f345b47 VZ |
10418 | GTK_MODULES= |
10419 | if test "$wxUSE_THREADS" = "yes"; then | |
10420 | GTK_MODULES=gthread | |
10421 | fi | |
10422 | ||
4f14bcd8 GD |
10423 | wx_cv_lib_gtk= |
10424 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10425 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10426 | if test "${with_gtk_prefix+set}" = set; then | |
10427 | withval="$with_gtk_prefix" | |
10428 | gtk_config_prefix="$withval" | |
10429 | else | |
10430 | gtk_config_prefix="" | |
10431 | fi | |
10432 | ||
10433 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10434 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10435 | withval="$with_gtk_exec_prefix" | |
10436 | gtk_config_exec_prefix="$withval" | |
10437 | else | |
10438 | gtk_config_exec_prefix="" | |
10439 | fi | |
10440 | ||
10441 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10442 | if test "${enable_gtktest+set}" = set; then | |
10443 | enableval="$enable_gtktest" | |
10444 | : | |
10445 | else | |
10446 | enable_gtktest=yes | |
10447 | fi | |
10448 | ||
10449 | ||
3f345b47 | 10450 | for module in . $GTK_MODULES |
4f14bcd8 | 10451 | do |
6f72b082 | 10452 | case "$module" in |
8168de4c | 10453 | gthread) |
6f72b082 OK |
10454 | gtk_config_args="$gtk_config_args gthread" |
10455 | ;; | |
10456 | esac | |
10457 | done | |
10458 | ||
10459 | if test x$gtk_config_exec_prefix != x ; then | |
10460 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10461 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10462 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10463 | fi | |
10464 | fi | |
10465 | if test x$gtk_config_prefix != x ; then | |
10466 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10467 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10468 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10469 | fi | |
10470 | fi | |
10471 | ||
10472 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10473 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10474 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
613d0995 | 10475 | echo "configure:10476: checking for $ac_word" >&5 |
698dcdb6 VZ |
10476 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10478 | else |
698dcdb6 VZ |
10479 | case "$GTK_CONFIG_2_0" in |
10480 | /*) | |
6f72b082 OK |
10481 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10482 | ;; | |
698dcdb6 VZ |
10483 | ?:/*) |
10484 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10485 | ;; | |
6f72b082 | 10486 | *) |
698dcdb6 VZ |
10487 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10488 | ac_dummy="$PATH" | |
10489 | for ac_dir in $ac_dummy; do | |
10490 | test -z "$ac_dir" && ac_dir=. | |
10491 | if test -f $ac_dir/$ac_word; then | |
10492 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10493 | break | |
10494 | fi | |
10495 | done | |
10496 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10497 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10498 | ;; | |
10499 | esac | |
10500 | fi | |
698dcdb6 | 10501 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10502 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10503 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10504 | else |
698dcdb6 | 10505 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10506 | fi |
10507 | ||
10508 | min_gtk_version=1.3.1 | |
698dcdb6 | 10509 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
613d0995 | 10510 | echo "configure:10511: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10511 | no_gtk="" |
10512 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10513 | no_gtk=yes | |
10514 | else | |
10515 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10516 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10517 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10518 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10519 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10520 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10521 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10522 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10523 | if test "x$enable_gtktest" = "xyes" ; then | |
10524 | ac_save_CFLAGS="$CFLAGS" | |
10525 | ac_save_LIBS="$LIBS" | |
10526 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10527 | LIBS="$GTK_LIBS $LIBS" | |
10528 | rm -f conf.gtktest | |
10529 | if test "$cross_compiling" = yes; then | |
10530 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10531 | else | |
698dcdb6 | 10532 | cat > conftest.$ac_ext <<EOF |
613d0995 | 10533 | #line 10534 "configure" |
6f72b082 OK |
10534 | #include "confdefs.h" |
10535 | ||
10536 | #include <gtk/gtk.h> | |
10537 | #include <stdio.h> | |
10538 | #include <stdlib.h> | |
10539 | ||
8168de4c | 10540 | int |
6f72b082 OK |
10541 | main () |
10542 | { | |
10543 | int major, minor, micro; | |
10544 | char *tmp_version; | |
10545 | ||
10546 | system ("touch conf.gtktest"); | |
10547 | ||
10548 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10549 | tmp_version = g_strdup("$min_gtk_version"); | |
10550 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10551 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10552 | exit(1); | |
10553 | } | |
10554 | ||
10555 | if ((gtk_major_version != $gtk_config_major_version) || | |
10556 | (gtk_minor_version != $gtk_config_minor_version) || | |
10557 | (gtk_micro_version != $gtk_config_micro_version)) | |
10558 | { | |
8168de4c | 10559 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10560 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10561 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10562 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10563 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10564 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10565 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10566 | printf("*** required on your system.\n"); | |
10567 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10568 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10569 | printf("*** before re-running configure\n"); | |
8168de4c | 10570 | } |
6f72b082 OK |
10571 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10572 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10573 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10574 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10575 | { | |
10576 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10577 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10578 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10579 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10580 | } |
10581 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10582 | else | |
10583 | { | |
10584 | if ((gtk_major_version > major) || | |
10585 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10586 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10587 | { | |
10588 | return 0; | |
10589 | } | |
10590 | else | |
10591 | { | |
10592 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10593 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10594 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10595 | major, minor, micro); |
6f72b082 OK |
10596 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10597 | printf("***\n"); | |
10598 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10599 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10600 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10601 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10602 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10603 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10604 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10605 | } | |
10606 | } | |
10607 | return 1; | |
10608 | } | |
10609 | ||
698dcdb6 | 10610 | EOF |
613d0995 | 10611 | if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10612 | then |
6f72b082 OK |
10613 | : |
10614 | else | |
698dcdb6 VZ |
10615 | echo "configure: failed program was:" >&5 |
10616 | cat conftest.$ac_ext >&5 | |
10617 | rm -fr conftest* | |
10618 | no_gtk=yes | |
6f72b082 | 10619 | fi |
698dcdb6 | 10620 | rm -fr conftest* |
6f72b082 | 10621 | fi |
698dcdb6 | 10622 | |
6f72b082 OK |
10623 | CFLAGS="$ac_save_CFLAGS" |
10624 | LIBS="$ac_save_LIBS" | |
10625 | fi | |
10626 | fi | |
10627 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10628 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10629 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10630 | else |
698dcdb6 | 10631 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10632 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10633 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10634 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10635 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10636 | echo "*** full path to gtk-config-2.0." | |
10637 | else | |
10638 | if test -f conf.gtktest ; then | |
10639 | : | |
10640 | else | |
10641 | echo "*** Could not run GTK test program, checking why..." | |
10642 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10643 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10644 | cat > conftest.$ac_ext <<EOF |
613d0995 | 10645 | #line 10646 "configure" |
6f72b082 OK |
10646 | #include "confdefs.h" |
10647 | ||
10648 | #include <gtk/gtk.h> | |
10649 | #include <stdio.h> | |
10650 | ||
698dcdb6 VZ |
10651 | int main() { |
10652 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10653 | ; return 0; } | |
10654 | EOF | |
613d0995 | 10655 | if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10656 | rm -rf conftest* |
6f72b082 OK |
10657 | echo "*** The test program compiled, but did not run. This usually means" |
10658 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10659 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10660 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10661 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10662 | echo "*** is required on your system" | |
8168de4c | 10663 | echo "***" |
6f72b082 OK |
10664 | echo "*** If you have an old version installed, it is best to remove it, although" |
10665 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10666 | echo "***" | |
10667 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10668 | echo "*** came with the system with the command" | |
10669 | echo "***" | |
698dcdb6 | 10670 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10671 | else |
698dcdb6 VZ |
10672 | echo "configure: failed program was:" >&5 |
10673 | cat conftest.$ac_ext >&5 | |
10674 | rm -rf conftest* | |
10675 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10676 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10677 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10678 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10679 | fi |
698dcdb6 | 10680 | rm -f conftest* |
6f72b082 OK |
10681 | CFLAGS="$ac_save_CFLAGS" |
10682 | LIBS="$ac_save_LIBS" | |
10683 | fi | |
10684 | fi | |
10685 | GTK_CFLAGS="" | |
10686 | GTK_LIBS="" | |
3f345b47 | 10687 | : |
8168de4c VZ |
10688 | fi |
10689 | ||
10690 | ||
10691 | rm -f conf.gtktest | |
10692 | ||
10693 | fi | |
10694 | ||
10695 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10696 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10697 | if test "${with_gtk_prefix+set}" = set; then | |
10698 | withval="$with_gtk_prefix" | |
10699 | gtk_config_prefix="$withval" | |
10700 | else | |
10701 | gtk_config_prefix="" | |
10702 | fi | |
10703 | ||
10704 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10705 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10706 | withval="$with_gtk_exec_prefix" | |
10707 | gtk_config_exec_prefix="$withval" | |
10708 | else | |
10709 | gtk_config_exec_prefix="" | |
10710 | fi | |
10711 | ||
10712 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10713 | if test "${enable_gtktest+set}" = set; then | |
10714 | enableval="$enable_gtktest" | |
10715 | : | |
10716 | else | |
10717 | enable_gtktest=yes | |
10718 | fi | |
10719 | ||
10720 | ||
10721 | for module in . $GTK_MODULES | |
10722 | do | |
10723 | case "$module" in | |
10724 | gthread) | |
10725 | gtk_config_args="$gtk_config_args gthread" | |
10726 | ;; | |
10727 | esac | |
10728 | done | |
10729 | ||
10f2d63a VZ |
10730 | if test x$gtk_config_exec_prefix != x ; then |
10731 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10732 | if test x${GTK_CONFIG+set} != xset ; then | |
10733 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10734 | fi | |
10735 | fi | |
10736 | if test x$gtk_config_prefix != x ; then | |
10737 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10738 | if test x${GTK_CONFIG+set} != xset ; then | |
10739 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10740 | fi | |
10741 | fi | |
10742 | ||
10743 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10744 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10745 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
613d0995 | 10746 | echo "configure:10747: checking for $ac_word" >&5 |
698dcdb6 VZ |
10747 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10749 | else |
698dcdb6 VZ |
10750 | case "$GTK_CONFIG" in |
10751 | /*) | |
f6bcfd97 BP |
10752 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10753 | ;; | |
698dcdb6 VZ |
10754 | ?:/*) |
10755 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10756 | ;; | |
f6bcfd97 | 10757 | *) |
698dcdb6 VZ |
10758 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10759 | ac_dummy="$PATH" | |
10760 | for ac_dir in $ac_dummy; do | |
10761 | test -z "$ac_dir" && ac_dir=. | |
10762 | if test -f $ac_dir/$ac_word; then | |
10763 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10764 | break | |
10765 | fi | |
10766 | done | |
10767 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10768 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10769 | ;; | |
10770 | esac | |
10771 | fi | |
698dcdb6 | 10772 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10773 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10774 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10775 | else |
698dcdb6 | 10776 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10777 | fi |
10778 | ||
10779 | min_gtk_version=1.2.7 | |
698dcdb6 | 10780 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
613d0995 | 10781 | echo "configure:10782: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10782 | no_gtk="" |
3f345b47 VZ |
10783 | if test "$GTK_CONFIG" = "no" ; then |
10784 | no_gtk=yes | |
10785 | else | |
10786 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10787 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10788 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10789 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10790 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10791 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10792 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10793 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10794 | if test "x$enable_gtktest" = "xyes" ; then | |
10795 | ac_save_CFLAGS="$CFLAGS" | |
10796 | ac_save_LIBS="$LIBS" | |
10797 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10798 | LIBS="$GTK_LIBS $LIBS" | |
10799 | rm -f conf.gtktest | |
10800 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10801 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10802 | else | |
698dcdb6 | 10803 | cat > conftest.$ac_ext <<EOF |
613d0995 | 10804 | #line 10805 "configure" |
f6bcfd97 BP |
10805 | #include "confdefs.h" |
10806 | ||
10807 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10808 | #include <stdio.h> |
10809 | #include <stdlib.h> | |
10810 | ||
3f345b47 | 10811 | int |
f6bcfd97 BP |
10812 | main () |
10813 | { | |
10814 | int major, minor, micro; | |
3f345b47 | 10815 | char *tmp_version; |
f6bcfd97 | 10816 | |
3f345b47 | 10817 | system ("touch conf.gtktest"); |
f6bcfd97 | 10818 | |
3f345b47 VZ |
10819 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10820 | tmp_version = g_strdup("$min_gtk_version"); | |
10821 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10822 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10823 | exit(1); |
10824 | } | |
10825 | ||
3f345b47 VZ |
10826 | if ((gtk_major_version != $gtk_config_major_version) || |
10827 | (gtk_minor_version != $gtk_config_minor_version) || | |
10828 | (gtk_micro_version != $gtk_config_micro_version)) | |
10829 | { | |
10830 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10831 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10832 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10833 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10834 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10835 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10836 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10837 | printf("*** required on your system.\n"); | |
10838 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10839 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10840 | printf("*** before re-running configure\n"); | |
10841 | } | |
10842 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10843 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10844 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10845 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10846 | { | |
10847 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10848 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10849 | printf("*** library (version %d.%d.%d)\n", | |
10850 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10851 | } | |
10852 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10853 | else | |
10854 | { | |
10855 | if ((gtk_major_version > major) || | |
10856 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10857 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10858 | { | |
10859 | return 0; | |
10860 | } | |
10861 | else | |
10862 | { | |
10863 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10864 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10865 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10866 | major, minor, micro); | |
10867 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10868 | printf("***\n"); | |
10869 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10870 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10871 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10872 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10873 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10874 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10875 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10876 | } | |
10877 | } | |
10878 | return 1; | |
f6bcfd97 BP |
10879 | } |
10880 | ||
698dcdb6 | 10881 | EOF |
613d0995 | 10882 | if { (eval echo configure:10883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10883 | then |
f6bcfd97 BP |
10884 | : |
10885 | else | |
698dcdb6 VZ |
10886 | echo "configure: failed program was:" >&5 |
10887 | cat conftest.$ac_ext >&5 | |
10888 | rm -fr conftest* | |
10889 | no_gtk=yes | |
f6bcfd97 | 10890 | fi |
698dcdb6 | 10891 | rm -fr conftest* |
f6bcfd97 | 10892 | fi |
698dcdb6 | 10893 | |
3f345b47 VZ |
10894 | CFLAGS="$ac_save_CFLAGS" |
10895 | LIBS="$ac_save_LIBS" | |
10896 | fi | |
f6bcfd97 BP |
10897 | fi |
10898 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10899 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10900 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10901 | else |
698dcdb6 | 10902 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10903 | if test "$GTK_CONFIG" = "no" ; then |
10904 | echo "*** The gtk-config script installed by GTK could not be found" | |
10905 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10906 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10907 | echo "*** full path to gtk-config." | |
10908 | else | |
10909 | if test -f conf.gtktest ; then | |
10910 | : | |
10911 | else | |
10912 | echo "*** Could not run GTK test program, checking why..." | |
10913 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10914 | LIBS="$LIBS $GTK_LIBS" | |
10915 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 10916 | #line 10917 "configure" |
3f345b47 VZ |
10917 | #include "confdefs.h" |
10918 | ||
10919 | #include <gtk/gtk.h> | |
10920 | #include <stdio.h> | |
10921 | ||
10922 | int main() { | |
10923 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10924 | ; return 0; } | |
10925 | EOF | |
613d0995 | 10926 | if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10927 | rm -rf conftest* |
10928 | echo "*** The test program compiled, but did not run. This usually means" | |
10929 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10930 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10931 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10932 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10933 | echo "*** is required on your system" | |
10934 | echo "***" | |
10935 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10936 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10937 | echo "***" | |
10938 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10939 | echo "*** came with the system with the command" | |
10940 | echo "***" | |
10941 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10942 | else | |
10943 | echo "configure: failed program was:" >&5 | |
10944 | cat conftest.$ac_ext >&5 | |
10945 | rm -rf conftest* | |
10946 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10947 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10948 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10949 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10950 | fi | |
10951 | rm -f conftest* | |
10952 | CFLAGS="$ac_save_CFLAGS" | |
10953 | LIBS="$ac_save_LIBS" | |
10954 | fi | |
10955 | fi | |
f6bcfd97 BP |
10956 | GTK_CFLAGS="" |
10957 | GTK_LIBS="" | |
10958 | : | |
10959 | fi | |
698dcdb6 VZ |
10960 | |
10961 | ||
3f345b47 | 10962 | rm -f conf.gtktest |
f6bcfd97 | 10963 | |
8168de4c VZ |
10964 | fi |
10965 | ||
10966 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10967 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10968 | if test "${with_gtk_prefix+set}" = set; then | |
10969 | withval="$with_gtk_prefix" | |
10970 | gtk_config_prefix="$withval" | |
10971 | else | |
10972 | gtk_config_prefix="" | |
10973 | fi | |
10974 | ||
10975 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10976 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10977 | withval="$with_gtk_exec_prefix" | |
10978 | gtk_config_exec_prefix="$withval" | |
10979 | else | |
10980 | gtk_config_exec_prefix="" | |
10981 | fi | |
10982 | ||
10983 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10984 | if test "${enable_gtktest+set}" = set; then | |
10985 | enableval="$enable_gtktest" | |
10986 | : | |
10987 | else | |
10988 | enable_gtktest=yes | |
10989 | fi | |
10990 | ||
10991 | ||
10992 | for module in . $GTK_MODULES | |
10993 | do | |
10994 | case "$module" in | |
10995 | gthread) | |
10996 | gtk_config_args="$gtk_config_args gthread" | |
10997 | ;; | |
10998 | esac | |
10999 | done | |
11000 | ||
f6bcfd97 BP |
11001 | if test x$gtk_config_exec_prefix != x ; then |
11002 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
11003 | if test x${GTK_CONFIG+set} != xset ; then | |
11004 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
11005 | fi | |
11006 | fi | |
11007 | if test x$gtk_config_prefix != x ; then | |
11008 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
11009 | if test x${GTK_CONFIG+set} != xset ; then | |
11010 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
11011 | fi | |
11012 | fi | |
11013 | ||
11014 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
11015 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 11016 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
613d0995 | 11017 | echo "configure:11018: checking for $ac_word" >&5 |
698dcdb6 VZ |
11018 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
11019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11020 | else |
698dcdb6 VZ |
11021 | case "$GTK_CONFIG" in |
11022 | /*) | |
10f2d63a VZ |
11023 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
11024 | ;; | |
698dcdb6 VZ |
11025 | ?:/*) |
11026 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
11027 | ;; | |
10f2d63a | 11028 | *) |
698dcdb6 VZ |
11029 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
11030 | ac_dummy="$PATH" | |
11031 | for ac_dir in $ac_dummy; do | |
11032 | test -z "$ac_dir" && ac_dir=. | |
11033 | if test -f $ac_dir/$ac_word; then | |
11034 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
11035 | break | |
11036 | fi | |
11037 | done | |
11038 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
11039 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
11040 | ;; | |
11041 | esac | |
11042 | fi | |
698dcdb6 | 11043 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 11044 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 11045 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 11046 | else |
698dcdb6 | 11047 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
11048 | fi |
11049 | ||
04165bec | 11050 | min_gtk_version=1.2.3 |
698dcdb6 | 11051 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
613d0995 | 11052 | echo "configure:11053: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 11053 | no_gtk="" |
3f345b47 VZ |
11054 | if test "$GTK_CONFIG" = "no" ; then |
11055 | no_gtk=yes | |
11056 | else | |
11057 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
11058 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
11059 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11060 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11061 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11062 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11063 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11064 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11065 | if test "x$enable_gtktest" = "xyes" ; then | |
11066 | ac_save_CFLAGS="$CFLAGS" | |
11067 | ac_save_LIBS="$LIBS" | |
11068 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11069 | LIBS="$GTK_LIBS $LIBS" | |
11070 | rm -f conf.gtktest | |
11071 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
11072 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
11073 | else | |
698dcdb6 | 11074 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11075 | #line 11076 "configure" |
10f2d63a VZ |
11076 | #include "confdefs.h" |
11077 | ||
11078 | #include <gtk/gtk.h> | |
11079 | #include <stdio.h> | |
32832908 | 11080 | #include <stdlib.h> |
10f2d63a | 11081 | |
3f345b47 | 11082 | int |
10f2d63a VZ |
11083 | main () |
11084 | { | |
11085 | int major, minor, micro; | |
3f345b47 | 11086 | char *tmp_version; |
10f2d63a | 11087 | |
3f345b47 | 11088 | system ("touch conf.gtktest"); |
10f2d63a | 11089 | |
3f345b47 VZ |
11090 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11091 | tmp_version = g_strdup("$min_gtk_version"); | |
11092 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11093 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
11094 | exit(1); |
11095 | } | |
11096 | ||
3f345b47 VZ |
11097 | if ((gtk_major_version != $gtk_config_major_version) || |
11098 | (gtk_minor_version != $gtk_config_minor_version) || | |
11099 | (gtk_micro_version != $gtk_config_micro_version)) | |
11100 | { | |
11101 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11102 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11103 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11104 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11105 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11106 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11107 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11108 | printf("*** required on your system.\n"); | |
11109 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11110 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11111 | printf("*** before re-running configure\n"); | |
11112 | } | |
11113 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11114 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11115 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11116 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11117 | { | |
11118 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11119 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11120 | printf("*** library (version %d.%d.%d)\n", | |
11121 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11122 | } | |
11123 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11124 | else | |
11125 | { | |
11126 | if ((gtk_major_version > major) || | |
11127 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11128 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11129 | { | |
11130 | return 0; | |
11131 | } | |
11132 | else | |
11133 | { | |
11134 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11135 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11136 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11137 | major, minor, micro); | |
11138 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11139 | printf("***\n"); | |
11140 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11141 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11142 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11143 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11144 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11145 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11146 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11147 | } | |
11148 | } | |
11149 | return 1; | |
10f2d63a VZ |
11150 | } |
11151 | ||
698dcdb6 | 11152 | EOF |
613d0995 | 11153 | if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11154 | then |
10f2d63a VZ |
11155 | : |
11156 | else | |
698dcdb6 VZ |
11157 | echo "configure: failed program was:" >&5 |
11158 | cat conftest.$ac_ext >&5 | |
11159 | rm -fr conftest* | |
11160 | no_gtk=yes | |
10f2d63a | 11161 | fi |
698dcdb6 | 11162 | rm -fr conftest* |
10f2d63a | 11163 | fi |
698dcdb6 | 11164 | |
3f345b47 VZ |
11165 | CFLAGS="$ac_save_CFLAGS" |
11166 | LIBS="$ac_save_LIBS" | |
11167 | fi | |
10f2d63a VZ |
11168 | fi |
11169 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11170 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11171 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11172 | else |
698dcdb6 | 11173 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11174 | if test "$GTK_CONFIG" = "no" ; then |
11175 | echo "*** The gtk-config script installed by GTK could not be found" | |
11176 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11177 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11178 | echo "*** full path to gtk-config." | |
11179 | else | |
11180 | if test -f conf.gtktest ; then | |
11181 | : | |
11182 | else | |
11183 | echo "*** Could not run GTK test program, checking why..." | |
11184 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11185 | LIBS="$LIBS $GTK_LIBS" | |
11186 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 11187 | #line 11188 "configure" |
3f345b47 VZ |
11188 | #include "confdefs.h" |
11189 | ||
11190 | #include <gtk/gtk.h> | |
11191 | #include <stdio.h> | |
11192 | ||
11193 | int main() { | |
11194 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11195 | ; return 0; } | |
11196 | EOF | |
613d0995 | 11197 | if { (eval echo configure:11198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11198 | rm -rf conftest* |
11199 | echo "*** The test program compiled, but did not run. This usually means" | |
11200 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11201 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11202 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11203 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11204 | echo "*** is required on your system" | |
11205 | echo "***" | |
11206 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11207 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11208 | echo "***" | |
11209 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11210 | echo "*** came with the system with the command" | |
11211 | echo "***" | |
11212 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11213 | else | |
11214 | echo "configure: failed program was:" >&5 | |
11215 | cat conftest.$ac_ext >&5 | |
11216 | rm -rf conftest* | |
11217 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11218 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11219 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11220 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11221 | fi | |
11222 | rm -f conftest* | |
11223 | CFLAGS="$ac_save_CFLAGS" | |
11224 | LIBS="$ac_save_LIBS" | |
11225 | fi | |
11226 | fi | |
10f2d63a VZ |
11227 | GTK_CFLAGS="" |
11228 | GTK_LIBS="" | |
7e99ad86 | 11229 | : |
10f2d63a | 11230 | fi |
698dcdb6 VZ |
11231 | |
11232 | ||
3f345b47 | 11233 | rm -f conf.gtktest |
10f2d63a | 11234 | |
8168de4c VZ |
11235 | fi |
11236 | ||
11237 | if test -z "$wx_cv_lib_gtk"; then | |
11238 | wx_cv_lib_gtk=none | |
138be253 VZ |
11239 | else |
11240 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11241 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11242 | fi |
11243 | ||
1e6feb95 | 11244 | |
8168de4c | 11245 | fi |
703e0a69 | 11246 | |
698dcdb6 | 11247 | |
8168de4c VZ |
11248 | if test "$gtk_version_cached" = 1; then |
11249 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11250 | fi |
698dcdb6 | 11251 | |
8168de4c VZ |
11252 | case "$wx_cv_lib_gtk" in |
11253 | 2.0) WXGTK20=1 | |
11254 | ;; | |
11255 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11256 | WXGTK12=1 |
8168de4c VZ |
11257 | ;; |
11258 | 1.2.3) WXGTK12=1 | |
11259 | ;; | |
11260 | *) { echo "configure: error: | |
11261 | Please check that gtk-config is in path, the directory | |
11262 | where GTK+ libraries are installed (returned by | |
11263 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11264 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11265 | " 1>&2; exit 1; } | |
11266 | ;; | |
11267 | esac | |
2224580a | 11268 | |
138be253 | 11269 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11270 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11271 | |
1e6feb95 VZ |
11272 | AFMINSTALL=afminstall |
11273 | TOOLKIT=GTK | |
11274 | GUIDIST=GTK_DIST | |
7ec2881a | 11275 | |
1e6feb95 | 11276 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
613d0995 | 11277 | echo "configure:11278: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11278 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11279 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11281 | else |
698dcdb6 | 11282 | ac_save_LIBS="$LIBS" |
7ec2881a | 11283 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11284 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11285 | #line 11286 "configure" |
7ec2881a RR |
11286 | #include "confdefs.h" |
11287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11288 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11289 | builtin and then its argument prototype would still apply. */ |
11290 | char gdk_im_open(); | |
11291 | ||
11292 | int main() { | |
11293 | gdk_im_open() | |
11294 | ; return 0; } | |
11295 | EOF | |
613d0995 | 11296 | if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11297 | rm -rf conftest* |
11298 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11299 | else | |
11300 | echo "configure: failed program was:" >&5 | |
11301 | cat conftest.$ac_ext >&5 | |
11302 | rm -rf conftest* | |
11303 | eval "ac_cv_lib_$ac_lib_var=no" | |
11304 | fi | |
11305 | rm -f conftest* | |
11306 | LIBS="$ac_save_LIBS" | |
11307 | ||
11308 | fi | |
11309 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11310 | echo "$ac_t""yes" 1>&6 | |
11311 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11312 | #define HAVE_XIM 1 |
11313 | EOF | |
11314 | ||
698dcdb6 VZ |
11315 | else |
11316 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11317 | fi |
11318 | ||
1e6feb95 | 11319 | fi |
10f2d63a | 11320 | |
1e6feb95 | 11321 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11322 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
613d0995 | 11323 | echo "configure:11324: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11324 | if test "x$MGL_ROOT" = x ; then |
11325 | echo "$ac_t""not found" 1>&6 | |
11326 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11327 | else | |
11328 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11329 | fi | |
11330 | ||
f9bc1684 VS |
11331 | case "${host}" in |
11332 | *-*-linux* ) | |
11333 | mgl_os=linux/gcc/glibc | |
11334 | ;; | |
11335 | *-pc-msdosdjgpp ) | |
11336 | mgl_os=dos32/dj2 | |
11337 | ;; | |
11338 | *) | |
11339 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11340 | esac | |
11341 | ||
3a922bb4 | 11342 | mgl_lib_type="" |
1e6feb95 VZ |
11343 | |
11344 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11345 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11346 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11347 | mgl_lib_type=debug |
1e6feb95 VZ |
11348 | fi |
11349 | fi | |
3a922bb4 | 11350 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11351 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11352 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11353 | mgl_lib_type=release |
1e6feb95 VZ |
11354 | else |
11355 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11356 | fi | |
11357 | fi | |
11358 | ||
11359 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11360 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11361 | |
11362 | AFMINSTALL=afminstall | |
11363 | TOOLKIT=MGL | |
11364 | GUIDIST=MGL_DIST | |
11365 | fi | |
11366 | ||
1725144d RR |
11367 | if test "$wxUSE_MICROWIN" = 1; then |
11368 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
613d0995 | 11369 | echo "configure:11370: checking for MicroWindows" >&5 |
1725144d RR |
11370 | if test "x$MICROWINDOWS" = x ; then |
11371 | echo "$ac_t""not found" 1>&6 | |
11372 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11373 | else | |
11374 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11375 | fi | |
11376 | ||
11377 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11378 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11379 | else | |
11380 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11381 | fi | |
11382 | ||
11383 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11384 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11385 | ||
11386 | AFMINSTALL=afminstall | |
11387 | TOOLKIT=MICROWIN | |
11388 | GUIDIST=MICROWIN_DIST | |
11389 | ||
11390 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11391 | fi | |
11392 | ||
1e6feb95 | 11393 | if test "$wxUSE_WINE" = 1; then |
3a922bb4 RL |
11394 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11395 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
613d0995 | 11396 | echo "configure:11397: checking for windows.h" >&5 |
3a922bb4 RL |
11397 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11399 | else | |
11400 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 11401 | #line 11402 "configure" |
3a922bb4 RL |
11402 | #include "confdefs.h" |
11403 | #include <windows.h> | |
11404 | EOF | |
11405 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 11406 | { (eval echo configure:11407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11407 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11408 | if test -z "$ac_err"; then | |
11409 | rm -rf conftest* | |
11410 | eval "ac_cv_header_$ac_safe=yes" | |
11411 | else | |
11412 | echo "$ac_err" >&5 | |
11413 | echo "configure: failed program was:" >&5 | |
11414 | cat conftest.$ac_ext >&5 | |
11415 | rm -rf conftest* | |
11416 | eval "ac_cv_header_$ac_safe=no" | |
11417 | fi | |
11418 | rm -f conftest* | |
11419 | fi | |
11420 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11421 | echo "$ac_t""yes" 1>&6 | |
11422 | : | |
11423 | else | |
11424 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 11425 | |
1e6feb95 | 11426 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
11427 | |
11428 | fi | |
11429 | ||
10f2d63a | 11430 | |
3d63bc3a | 11431 | xpm_link= |
1e6feb95 | 11432 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
613d0995 | 11433 | echo "configure:11434: checking for Xpm library" >&5 |
1e6feb95 | 11434 | |
10f2d63a VZ |
11435 | ac_find_libraries= |
11436 | for ac_dir in $SEARCH_LIB; | |
11437 | do | |
f11bdd03 | 11438 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
11439 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11440 | ac_find_libraries=$ac_dir | |
11441 | break 2 | |
11442 | fi | |
11443 | done | |
11444 | done | |
11445 | ||
1e6feb95 VZ |
11446 | if test "$ac_find_libraries" != "" ; then |
11447 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 11448 | xpm_link=" -lXpm" |
1e6feb95 | 11449 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11450 | #define wxHAVE_LIB_XPM 1 |
11451 | EOF | |
11452 | ||
1e6feb95 VZ |
11453 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11454 | else | |
11455 | echo "$ac_t""no" 1>&6 | |
11456 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11457 | fi | |
10f2d63a | 11458 | |
3d63bc3a | 11459 | mesa_link= |
1e6feb95 | 11460 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
613d0995 | 11461 | echo "configure:11462: checking for Mesa library" >&5 |
1e6feb95 | 11462 | |
10f2d63a VZ |
11463 | ac_find_libraries= |
11464 | for ac_dir in $SEARCH_LIB; | |
11465 | do | |
f11bdd03 | 11466 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
11467 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
11468 | ac_find_libraries=$ac_dir | |
11469 | break 2 | |
11470 | fi | |
11471 | done | |
11472 | done | |
11473 | ||
1e6feb95 VZ |
11474 | if test "$ac_find_libraries" != "" ; then |
11475 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 11476 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
11477 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11478 | else | |
11479 | { echo "configure: error: no" 1>&2; exit 1; } | |
11480 | fi | |
10f2d63a | 11481 | |
3d63bc3a | 11482 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
11483 | TOOLKIT=MSW |
11484 | GUIDIST=MSW_DIST | |
3a922bb4 | 11485 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 11486 | fi |
698dcdb6 | 11487 | |
d714471b VZ |
11488 | if test "$wxUSE_MOTIF" = 1; then |
11489 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
11490 | # paths, otherwise set no_x=yes. |
11491 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11492 | # --without-x overrides everything else, but does not touch the cache. | |
11493 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
613d0995 | 11494 | echo "configure:11495: checking for X" >&5 |
ab9b9eab VZ |
11495 | |
11496 | # Check whether --with-x or --without-x was given. | |
11497 | if test "${with_x+set}" = set; then | |
11498 | withval="$with_x" | |
698dcdb6 VZ |
11499 | : |
11500 | fi | |
ba337fe7 | 11501 | |
ab9b9eab VZ |
11502 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11503 | if test "x$with_x" = xno; then | |
11504 | # The user explicitly disabled X. | |
11505 | have_x=disabled | |
11506 | else | |
11507 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11508 | # Both variables are already set. | |
11509 | have_x=yes | |
11510 | else | |
698dcdb6 VZ |
11511 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11513 | else |
11514 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11515 | ac_x_includes=NO ac_x_libraries=NO |
11516 | rm -fr conftestdir | |
11517 | if mkdir conftestdir; then | |
11518 | cd conftestdir | |
ab9b9eab | 11519 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11520 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11521 | acfindx: |
11522 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11523 | EOF | |
11524 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11525 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11526 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11527 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11528 | for ac_extension in a so sl; do |
ab9b9eab | 11529 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11530 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11531 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11532 | fi |
11533 | done | |
ab9b9eab VZ |
11534 | # Screen out bogus values from the imake configuration. They are |
11535 | # bogus both because they are the default anyway, and because | |
11536 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11537 | case "$ac_im_incroot" in |
ab9b9eab | 11538 | /usr/include) ;; |
698dcdb6 | 11539 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11540 | esac |
698dcdb6 | 11541 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11542 | /usr/lib | /lib) ;; |
698dcdb6 | 11543 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11544 | esac |
ba337fe7 | 11545 | fi |
ab9b9eab | 11546 | cd .. |
698dcdb6 | 11547 | rm -fr conftestdir |
ab9b9eab | 11548 | fi |
10f2d63a | 11549 | |
698dcdb6 VZ |
11550 | if test "$ac_x_includes" = NO; then |
11551 | # Guess where to find include files, by looking for this one X11 .h file. | |
11552 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11553 | ||
ab9b9eab | 11554 | # First, try using that file with no special directory specified. |
698dcdb6 | 11555 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11556 | #line 11557 "configure" |
ab9b9eab | 11557 | #include "confdefs.h" |
698dcdb6 VZ |
11558 | #include <$x_direct_test_include> |
11559 | EOF | |
11560 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 11561 | { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11562 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11563 | if test -z "$ac_err"; then | |
11564 | rm -rf conftest* | |
ab9b9eab VZ |
11565 | # We can compile using X headers with no special include directory. |
11566 | ac_x_includes= | |
11567 | else | |
698dcdb6 VZ |
11568 | echo "$ac_err" >&5 |
11569 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11570 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11571 | rm -rf conftest* |
11572 | # Look for the header file in a standard set of common directories. | |
11573 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11574 | for ac_dir in \ | |
11575 | /usr/X11/include \ | |
11576 | /usr/X11R6/include \ | |
11577 | /usr/X11R5/include \ | |
11578 | /usr/X11R4/include \ | |
11579 | \ | |
11580 | /usr/include/X11 \ | |
11581 | /usr/include/X11R6 \ | |
11582 | /usr/include/X11R5 \ | |
11583 | /usr/include/X11R4 \ | |
11584 | \ | |
11585 | /usr/local/X11/include \ | |
11586 | /usr/local/X11R6/include \ | |
11587 | /usr/local/X11R5/include \ | |
11588 | /usr/local/X11R4/include \ | |
11589 | \ | |
11590 | /usr/local/include/X11 \ | |
11591 | /usr/local/include/X11R6 \ | |
11592 | /usr/local/include/X11R5 \ | |
11593 | /usr/local/include/X11R4 \ | |
11594 | \ | |
11595 | /usr/X386/include \ | |
11596 | /usr/x386/include \ | |
11597 | /usr/XFree86/include/X11 \ | |
11598 | \ | |
11599 | /usr/include \ | |
11600 | /usr/local/include \ | |
11601 | /usr/unsupported/include \ | |
11602 | /usr/athena/include \ | |
11603 | /usr/local/x11r5/include \ | |
11604 | /usr/lpp/Xamples/include \ | |
11605 | \ | |
11606 | /usr/openwin/include \ | |
11607 | /usr/openwin/share/include \ | |
11608 | ; \ | |
11609 | do | |
11610 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11611 | ac_x_includes=$ac_dir | |
11612 | break | |
11613 | fi | |
11614 | done | |
ab9b9eab | 11615 | fi |
698dcdb6 VZ |
11616 | rm -f conftest* |
11617 | fi # $ac_x_includes = NO | |
10f2d63a | 11618 | |
698dcdb6 | 11619 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11620 | # Check for the libraries. |
698dcdb6 VZ |
11621 | |
11622 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11623 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11624 | ||
ab9b9eab VZ |
11625 | # See if we find them without any special options. |
11626 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11627 | ac_save_LIBS="$LIBS" |
11628 | LIBS="-l$x_direct_test_library $LIBS" | |
11629 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 11630 | #line 11631 "configure" |
ab9b9eab | 11631 | #include "confdefs.h" |
698dcdb6 VZ |
11632 | |
11633 | int main() { | |
11634 | ${x_direct_test_function}() | |
11635 | ; return 0; } | |
11636 | EOF | |
613d0995 | 11637 | if { (eval echo configure:11638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11638 | rm -rf conftest* |
11639 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11640 | # We can link X programs with no special library path. |
11641 | ac_x_libraries= | |
11642 | else | |
698dcdb6 VZ |
11643 | echo "configure: failed program was:" >&5 |
11644 | cat conftest.$ac_ext >&5 | |
11645 | rm -rf conftest* | |
11646 | LIBS="$ac_save_LIBS" | |
11647 | # First see if replacing the include by lib works. | |
11648 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11649 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11650 | /usr/X11/lib \ | |
11651 | /usr/X11R6/lib \ | |
11652 | /usr/X11R5/lib \ | |
11653 | /usr/X11R4/lib \ | |
11654 | \ | |
11655 | /usr/lib/X11 \ | |
11656 | /usr/lib/X11R6 \ | |
11657 | /usr/lib/X11R5 \ | |
11658 | /usr/lib/X11R4 \ | |
11659 | \ | |
11660 | /usr/local/X11/lib \ | |
11661 | /usr/local/X11R6/lib \ | |
11662 | /usr/local/X11R5/lib \ | |
11663 | /usr/local/X11R4/lib \ | |
11664 | \ | |
11665 | /usr/local/lib/X11 \ | |
11666 | /usr/local/lib/X11R6 \ | |
11667 | /usr/local/lib/X11R5 \ | |
11668 | /usr/local/lib/X11R4 \ | |
11669 | \ | |
11670 | /usr/X386/lib \ | |
11671 | /usr/x386/lib \ | |
11672 | /usr/XFree86/lib/X11 \ | |
11673 | \ | |
11674 | /usr/lib \ | |
11675 | /usr/local/lib \ | |
11676 | /usr/unsupported/lib \ | |
11677 | /usr/athena/lib \ | |
11678 | /usr/local/x11r5/lib \ | |
11679 | /usr/lpp/Xamples/lib \ | |
11680 | /lib/usr/lib/X11 \ | |
11681 | \ | |
11682 | /usr/openwin/lib \ | |
11683 | /usr/openwin/share/lib \ | |
11684 | ; \ | |
ab9b9eab VZ |
11685 | do |
11686 | for ac_extension in a so sl; do | |
698dcdb6 | 11687 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11688 | ac_x_libraries=$ac_dir |
11689 | break 2 | |
10f2d63a | 11690 | fi |
10f2d63a | 11691 | done |
ab9b9eab VZ |
11692 | done |
11693 | fi | |
698dcdb6 VZ |
11694 | rm -f conftest* |
11695 | fi # $ac_x_libraries = NO | |
10f2d63a | 11696 | |
698dcdb6 | 11697 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11698 | # Didn't find X anywhere. Cache the known absence of X. |
11699 | ac_cv_have_x="have_x=no" | |
11700 | else | |
11701 | # Record where we found X for the cache. | |
11702 | ac_cv_have_x="have_x=yes \ | |
11703 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11704 | fi | |
11705 | fi | |
10f2d63a | 11706 | fi |
ab9b9eab VZ |
11707 | eval "$ac_cv_have_x" |
11708 | fi # $with_x != no | |
10f2d63a | 11709 | |
ab9b9eab | 11710 | if test "$have_x" != yes; then |
698dcdb6 | 11711 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11712 | no_x=yes |
11713 | else | |
11714 | # If each of the values was on the command line, it overrides each guess. | |
11715 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11716 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11717 | # Update the cache value to reflect the command line values. | |
11718 | ac_cv_have_x="have_x=yes \ | |
11719 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11720 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11721 | fi |
10f2d63a | 11722 | |
ab9b9eab VZ |
11723 | if test "$no_x" = yes; then |
11724 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11725 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11726 | #define X_DISPLAY_MISSING 1 |
11727 | EOF | |
10f2d63a | 11728 | |
ab9b9eab VZ |
11729 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11730 | else | |
11731 | if test -n "$x_includes"; then | |
11732 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11733 | fi |
11734 | ||
ab9b9eab VZ |
11735 | # It would also be nice to do this for all -L options, not just this one. |
11736 | if test -n "$x_libraries"; then | |
11737 | X_LIBS="$X_LIBS -L$x_libraries" | |
11738 | # For Solaris; some versions of Sun CC require a space after -R and | |
11739 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11740 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11741 | "SunOS 5"*) |
698dcdb6 | 11742 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
613d0995 | 11743 | echo "configure:11744: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11744 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11745 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 11746 | #line 11747 "configure" |
ab9b9eab | 11747 | #include "confdefs.h" |
10f2d63a | 11748 | |
698dcdb6 | 11749 | int main() { |
788deba1 | 11750 | |
698dcdb6 VZ |
11751 | ; return 0; } |
11752 | EOF | |
613d0995 | 11753 | if { (eval echo configure:11754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11754 | rm -rf conftest* |
ab9b9eab VZ |
11755 | ac_R_nospace=yes |
11756 | else | |
698dcdb6 VZ |
11757 | echo "configure: failed program was:" >&5 |
11758 | cat conftest.$ac_ext >&5 | |
11759 | rm -rf conftest* | |
11760 | ac_R_nospace=no | |
ab9b9eab | 11761 | fi |
698dcdb6 | 11762 | rm -f conftest* |
ab9b9eab | 11763 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11764 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11765 | X_LIBS="$X_LIBS -R$x_libraries" |
11766 | else | |
11767 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11768 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11769 | #line 11770 "configure" |
ab9b9eab | 11770 | #include "confdefs.h" |
788deba1 | 11771 | |
698dcdb6 | 11772 | int main() { |
ab9b9eab | 11773 | |
698dcdb6 VZ |
11774 | ; return 0; } |
11775 | EOF | |
613d0995 | 11776 | if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11777 | rm -rf conftest* |
ab9b9eab VZ |
11778 | ac_R_space=yes |
11779 | else | |
698dcdb6 VZ |
11780 | echo "configure: failed program was:" >&5 |
11781 | cat conftest.$ac_ext >&5 | |
11782 | rm -rf conftest* | |
11783 | ac_R_space=no | |
ab9b9eab | 11784 | fi |
698dcdb6 | 11785 | rm -f conftest* |
ab9b9eab | 11786 | if test $ac_R_space = yes; then |
698dcdb6 | 11787 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11788 | X_LIBS="$X_LIBS -R $x_libraries" |
11789 | else | |
698dcdb6 | 11790 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11791 | fi |
11792 | fi | |
698dcdb6 | 11793 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11794 | esac |
11795 | fi | |
11796 | ||
11797 | # Check for system-dependent libraries X programs must link with. | |
11798 | # Do this before checking for the system-independent R6 libraries | |
11799 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11800 | ||
11801 | if test "$ISC" = yes; then | |
11802 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11803 | else | |
698dcdb6 VZ |
11804 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11805 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11806 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11807 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
613d0995 | 11808 | echo "configure:11809: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11809 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11810 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11812 | else |
698dcdb6 | 11813 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11814 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11815 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11816 | #line 11817 "configure" |
ab9b9eab VZ |
11817 | #include "confdefs.h" |
11818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11819 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11820 | builtin and then its argument prototype would still apply. */ |
11821 | char dnet_ntoa(); | |
11822 | ||
11823 | int main() { | |
11824 | dnet_ntoa() | |
11825 | ; return 0; } | |
11826 | EOF | |
613d0995 | 11827 | if { (eval echo configure:11828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11828 | rm -rf conftest* |
11829 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11830 | else | |
11831 | echo "configure: failed program was:" >&5 | |
11832 | cat conftest.$ac_ext >&5 | |
11833 | rm -rf conftest* | |
11834 | eval "ac_cv_lib_$ac_lib_var=no" | |
11835 | fi | |
11836 | rm -f conftest* | |
11837 | LIBS="$ac_save_LIBS" | |
11838 | ||
11839 | fi | |
11840 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11841 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11842 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11843 | else |
11844 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11845 | fi |
11846 | ||
11847 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11848 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
613d0995 | 11849 | echo "configure:11850: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11850 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11851 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11853 | else |
698dcdb6 | 11854 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11855 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11856 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11857 | #line 11858 "configure" |
ab9b9eab VZ |
11858 | #include "confdefs.h" |
11859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11860 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11861 | builtin and then its argument prototype would still apply. */ |
11862 | char dnet_ntoa(); | |
11863 | ||
11864 | int main() { | |
11865 | dnet_ntoa() | |
11866 | ; return 0; } | |
11867 | EOF | |
613d0995 | 11868 | if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11869 | rm -rf conftest* |
11870 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11871 | else | |
11872 | echo "configure: failed program was:" >&5 | |
11873 | cat conftest.$ac_ext >&5 | |
11874 | rm -rf conftest* | |
11875 | eval "ac_cv_lib_$ac_lib_var=no" | |
11876 | fi | |
11877 | rm -f conftest* | |
11878 | LIBS="$ac_save_LIBS" | |
11879 | ||
11880 | fi | |
11881 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11882 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11883 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11884 | else |
11885 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11886 | fi |
11887 | ||
11888 | fi | |
11889 | ||
11890 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11891 | # to get the SysV transport functions. | |
698dcdb6 | 11892 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11893 | # needs -lnsl. |
11894 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11895 | # on Irix 5.2, according to dickey@clark.net. |
11896 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
613d0995 | 11897 | echo "configure:11898: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11898 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11899 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11900 | else | |
11901 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 11902 | #line 11903 "configure" |
ab9b9eab VZ |
11903 | #include "confdefs.h" |
11904 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11905 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11906 | #include <assert.h> |
11907 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11908 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11909 | builtin and then its argument prototype would still apply. */ |
11910 | char gethostbyname(); | |
11911 | ||
11912 | int main() { | |
ab9b9eab VZ |
11913 | |
11914 | /* The GNU C library defines this for functions which it implements | |
11915 | to always fail with ENOSYS. Some functions are actually named | |
11916 | something starting with __ and the normal name is an alias. */ | |
11917 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11918 | choke me | |
11919 | #else | |
698dcdb6 | 11920 | gethostbyname(); |
ab9b9eab VZ |
11921 | #endif |
11922 | ||
698dcdb6 VZ |
11923 | ; return 0; } |
11924 | EOF | |
613d0995 | 11925 | if { (eval echo configure:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11926 | rm -rf conftest* |
11927 | eval "ac_cv_func_gethostbyname=yes" | |
11928 | else | |
11929 | echo "configure: failed program was:" >&5 | |
11930 | cat conftest.$ac_ext >&5 | |
11931 | rm -rf conftest* | |
11932 | eval "ac_cv_func_gethostbyname=no" | |
11933 | fi | |
11934 | rm -f conftest* | |
11935 | fi | |
11936 | ||
11937 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11938 | echo "$ac_t""yes" 1>&6 | |
11939 | : | |
11940 | else | |
11941 | echo "$ac_t""no" 1>&6 | |
11942 | fi | |
ab9b9eab VZ |
11943 | |
11944 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11945 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
613d0995 | 11946 | echo "configure:11947: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11947 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11948 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11950 | else |
698dcdb6 | 11951 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11952 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11953 | cat > conftest.$ac_ext <<EOF |
613d0995 | 11954 | #line 11955 "configure" |
ab9b9eab VZ |
11955 | #include "confdefs.h" |
11956 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11957 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11958 | builtin and then its argument prototype would still apply. */ |
11959 | char gethostbyname(); | |
6232543b | 11960 | |
698dcdb6 VZ |
11961 | int main() { |
11962 | gethostbyname() | |
11963 | ; return 0; } | |
11964 | EOF | |
613d0995 | 11965 | if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11966 | rm -rf conftest* |
11967 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11968 | else |
698dcdb6 VZ |
11969 | echo "configure: failed program was:" >&5 |
11970 | cat conftest.$ac_ext >&5 | |
11971 | rm -rf conftest* | |
11972 | eval "ac_cv_lib_$ac_lib_var=no" | |
11973 | fi | |
11974 | rm -f conftest* | |
11975 | LIBS="$ac_save_LIBS" | |
1e487827 | 11976 | |
698dcdb6 VZ |
11977 | fi |
11978 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11979 | echo "$ac_t""yes" 1>&6 | |
11980 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11981 | else | |
11982 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11983 | fi |
11984 | ||
11985 | fi | |
11986 | ||
11987 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11988 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11989 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11990 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11991 | # gethostby* variants that don't use the nameserver (or something). | |
11992 | # -lsocket must be given before -lnsl if both are needed. | |
11993 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11994 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
613d0995 | 11995 | echo "configure:11996: checking for connect" >&5 |
698dcdb6 VZ |
11996 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11998 | else | |
11999 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 12000 | #line 12001 "configure" |
ab9b9eab VZ |
12001 | #include "confdefs.h" |
12002 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12003 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
12004 | #include <assert.h> |
12005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12006 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12007 | builtin and then its argument prototype would still apply. */ |
12008 | char connect(); | |
12009 | ||
12010 | int main() { | |
ab9b9eab VZ |
12011 | |
12012 | /* The GNU C library defines this for functions which it implements | |
12013 | to always fail with ENOSYS. Some functions are actually named | |
12014 | something starting with __ and the normal name is an alias. */ | |
12015 | #if defined (__stub_connect) || defined (__stub___connect) | |
12016 | choke me | |
12017 | #else | |
698dcdb6 | 12018 | connect(); |
ab9b9eab VZ |
12019 | #endif |
12020 | ||
698dcdb6 VZ |
12021 | ; return 0; } |
12022 | EOF | |
613d0995 | 12023 | if { (eval echo configure:12024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12024 | rm -rf conftest* |
12025 | eval "ac_cv_func_connect=yes" | |
12026 | else | |
12027 | echo "configure: failed program was:" >&5 | |
12028 | cat conftest.$ac_ext >&5 | |
12029 | rm -rf conftest* | |
12030 | eval "ac_cv_func_connect=no" | |
12031 | fi | |
12032 | rm -f conftest* | |
12033 | fi | |
12034 | ||
12035 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12036 | echo "$ac_t""yes" 1>&6 | |
12037 | : | |
12038 | else | |
12039 | echo "$ac_t""no" 1>&6 | |
12040 | fi | |
ab9b9eab VZ |
12041 | |
12042 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 12043 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
613d0995 | 12044 | echo "configure:12045: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
12045 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12046 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12048 | else |
698dcdb6 | 12049 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12050 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12051 | cat > conftest.$ac_ext <<EOF |
613d0995 | 12052 | #line 12053 "configure" |
ab9b9eab VZ |
12053 | #include "confdefs.h" |
12054 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12055 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12056 | builtin and then its argument prototype would still apply. */ |
12057 | char connect(); | |
12058 | ||
12059 | int main() { | |
12060 | connect() | |
12061 | ; return 0; } | |
12062 | EOF | |
613d0995 | 12063 | if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12064 | rm -rf conftest* |
12065 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12066 | else | |
12067 | echo "configure: failed program was:" >&5 | |
12068 | cat conftest.$ac_ext >&5 | |
12069 | rm -rf conftest* | |
12070 | eval "ac_cv_lib_$ac_lib_var=no" | |
12071 | fi | |
12072 | rm -f conftest* | |
12073 | LIBS="$ac_save_LIBS" | |
12074 | ||
12075 | fi | |
12076 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12077 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12078 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
12079 | else |
12080 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12081 | fi |
12082 | ||
12083 | fi | |
12084 | ||
698dcdb6 VZ |
12085 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
12086 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
613d0995 | 12087 | echo "configure:12088: checking for remove" >&5 |
698dcdb6 VZ |
12088 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12090 | else |
698dcdb6 | 12091 | cat > conftest.$ac_ext <<EOF |
613d0995 | 12092 | #line 12093 "configure" |
ab9b9eab VZ |
12093 | #include "confdefs.h" |
12094 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12095 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
12096 | #include <assert.h> |
12097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12098 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12099 | builtin and then its argument prototype would still apply. */ |
12100 | char remove(); | |
12101 | ||
12102 | int main() { | |
ab9b9eab VZ |
12103 | |
12104 | /* The GNU C library defines this for functions which it implements | |
12105 | to always fail with ENOSYS. Some functions are actually named | |
12106 | something starting with __ and the normal name is an alias. */ | |
12107 | #if defined (__stub_remove) || defined (__stub___remove) | |
12108 | choke me | |
12109 | #else | |
698dcdb6 | 12110 | remove(); |
ab9b9eab VZ |
12111 | #endif |
12112 | ||
698dcdb6 VZ |
12113 | ; return 0; } |
12114 | EOF | |
613d0995 | 12115 | if { (eval echo configure:12116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12116 | rm -rf conftest* |
12117 | eval "ac_cv_func_remove=yes" | |
12118 | else | |
12119 | echo "configure: failed program was:" >&5 | |
12120 | cat conftest.$ac_ext >&5 | |
12121 | rm -rf conftest* | |
12122 | eval "ac_cv_func_remove=no" | |
12123 | fi | |
12124 | rm -f conftest* | |
12125 | fi | |
12126 | ||
12127 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12128 | echo "$ac_t""yes" 1>&6 | |
12129 | : | |
12130 | else | |
12131 | echo "$ac_t""no" 1>&6 | |
12132 | fi | |
ab9b9eab VZ |
12133 | |
12134 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 12135 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
613d0995 | 12136 | echo "configure:12137: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
12137 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12138 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12140 | else |
698dcdb6 | 12141 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12142 | LIBS="-lposix $LIBS" |
698dcdb6 | 12143 | cat > conftest.$ac_ext <<EOF |
613d0995 | 12144 | #line 12145 "configure" |
ab9b9eab VZ |
12145 | #include "confdefs.h" |
12146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12147 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12148 | builtin and then its argument prototype would still apply. */ |
12149 | char remove(); | |
12150 | ||
12151 | int main() { | |
12152 | remove() | |
12153 | ; return 0; } | |
12154 | EOF | |
613d0995 | 12155 | if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12156 | rm -rf conftest* |
12157 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12158 | else | |
12159 | echo "configure: failed program was:" >&5 | |
12160 | cat conftest.$ac_ext >&5 | |
12161 | rm -rf conftest* | |
12162 | eval "ac_cv_lib_$ac_lib_var=no" | |
12163 | fi | |
12164 | rm -f conftest* | |
12165 | LIBS="$ac_save_LIBS" | |
12166 | ||
12167 | fi | |
12168 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12169 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12170 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
12171 | else |
12172 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12173 | fi |
12174 | ||
12175 | fi | |
12176 | ||
12177 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 12178 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
613d0995 | 12179 | echo "configure:12180: checking for shmat" >&5 |
698dcdb6 VZ |
12180 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12182 | else |
698dcdb6 | 12183 | cat > conftest.$ac_ext <<EOF |
613d0995 | 12184 | #line 12185 "configure" |
ab9b9eab VZ |
12185 | #include "confdefs.h" |
12186 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12187 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
12188 | #include <assert.h> |
12189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12190 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12191 | builtin and then its argument prototype would still apply. */ |
12192 | char shmat(); | |
12193 | ||
12194 | int main() { | |
ab9b9eab VZ |
12195 | |
12196 | /* The GNU C library defines this for functions which it implements | |
12197 | to always fail with ENOSYS. Some functions are actually named | |
12198 | something starting with __ and the normal name is an alias. */ | |
12199 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12200 | choke me | |
12201 | #else | |
698dcdb6 | 12202 | shmat(); |
ab9b9eab VZ |
12203 | #endif |
12204 | ||
698dcdb6 VZ |
12205 | ; return 0; } |
12206 | EOF | |
613d0995 | 12207 | if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12208 | rm -rf conftest* |
12209 | eval "ac_cv_func_shmat=yes" | |
12210 | else | |
12211 | echo "configure: failed program was:" >&5 | |
12212 | cat conftest.$ac_ext >&5 | |
12213 | rm -rf conftest* | |
12214 | eval "ac_cv_func_shmat=no" | |
12215 | fi | |
12216 | rm -f conftest* | |
12217 | fi | |
12218 | ||
12219 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12220 | echo "$ac_t""yes" 1>&6 | |
12221 | : | |
12222 | else | |
12223 | echo "$ac_t""no" 1>&6 | |
12224 | fi | |
ab9b9eab VZ |
12225 | |
12226 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12227 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
613d0995 | 12228 | echo "configure:12229: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12229 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12230 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12232 | else |
698dcdb6 | 12233 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12234 | LIBS="-lipc $LIBS" |
698dcdb6 | 12235 | cat > conftest.$ac_ext <<EOF |
613d0995 | 12236 | #line 12237 "configure" |
ab9b9eab VZ |
12237 | #include "confdefs.h" |
12238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12239 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12240 | builtin and then its argument prototype would still apply. */ |
12241 | char shmat(); | |
12242 | ||
12243 | int main() { | |
12244 | shmat() | |
12245 | ; return 0; } | |
12246 | EOF | |
613d0995 | 12247 | if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12248 | rm -rf conftest* |
12249 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12250 | else | |
12251 | echo "configure: failed program was:" >&5 | |
12252 | cat conftest.$ac_ext >&5 | |
12253 | rm -rf conftest* | |
12254 | eval "ac_cv_lib_$ac_lib_var=no" | |
12255 | fi | |
12256 | rm -f conftest* | |
12257 | LIBS="$ac_save_LIBS" | |
12258 | ||
12259 | fi | |
12260 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12261 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12262 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12263 | else |
12264 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12265 | fi |
12266 | ||
12267 | fi | |
12268 | fi | |
12269 | ||
12270 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12271 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12272 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12273 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12274 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12275 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12276 | # These have to be linked with before -lX11, unlike the other | |
12277 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12278 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12279 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
613d0995 | 12280 | echo "configure:12281: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12281 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12284 | else | |
12285 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12286 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12287 | cat > conftest.$ac_ext <<EOF |
613d0995 | 12288 | #line 12289 "configure" |
ab9b9eab VZ |
12289 | #include "confdefs.h" |
12290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12291 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12292 | builtin and then its argument prototype would still apply. */ |
12293 | char IceConnectionNumber(); | |
12294 | ||
12295 | int main() { | |
12296 | IceConnectionNumber() | |
12297 | ; return 0; } | |
12298 | EOF | |
613d0995 | 12299 | if { (eval echo configure:12300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12300 | rm -rf conftest* |
12301 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12302 | else | |
12303 | echo "configure: failed program was:" >&5 | |
12304 | cat conftest.$ac_ext >&5 | |
12305 | rm -rf conftest* | |
12306 | eval "ac_cv_lib_$ac_lib_var=no" | |
12307 | fi | |
12308 | rm -f conftest* | |
12309 | LIBS="$ac_save_LIBS" | |
12310 | ||
12311 | fi | |
12312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12313 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12314 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12315 | else |
12316 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12317 | fi |
12318 | ||
698dcdb6 | 12319 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12320 | |
12321 | fi | |
12322 | ||
12323 | ||
1e6feb95 VZ |
12324 | if test "$no_x" = "yes"; then |
12325 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12326 | fi | |
ab9b9eab | 12327 | |
1e6feb95 VZ |
12328 | GUI_TK_LIBRARY="$X_LIBS" |
12329 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12330 | AFMINSTALL=afminstall |
1e6feb95 | 12331 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12332 | |
1e6feb95 | 12333 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
613d0995 | 12334 | echo "configure:12335: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 12335 | |
ab9b9eab VZ |
12336 | ac_find_includes= |
12337 | for ac_dir in $SEARCH_INCLUDE; | |
12338 | do | |
12339 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12340 | ac_find_includes=$ac_dir | |
12341 | break | |
12342 | fi | |
12343 | done | |
12344 | ||
1e6feb95 VZ |
12345 | if test "$ac_find_includes" != "" ; then |
12346 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12347 | else | |
12348 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 12349 | #line 12350 "configure" |
cd6d6d5b VZ |
12350 | #include "confdefs.h" |
12351 | ||
1e6feb95 VZ |
12352 | #include <Xm/Xm.h> |
12353 | ||
698dcdb6 | 12354 | int main() { |
cd6d6d5b | 12355 | |
1e6feb95 | 12356 | int version; |
1e6feb95 VZ |
12357 | version = xmUseVersion; |
12358 | ||
698dcdb6 VZ |
12359 | ; return 0; } |
12360 | EOF | |
613d0995 | 12361 | if { (eval echo configure:12362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12362 | rm -rf conftest* |
12363 | ||
1e6feb95 VZ |
12364 | echo "$ac_t""found in default search path" 1>&6 |
12365 | COMPILED_X_PROGRAM=1 | |
12366 | ||
cd6d6d5b | 12367 | else |
698dcdb6 VZ |
12368 | echo "configure: failed program was:" >&5 |
12369 | cat conftest.$ac_ext >&5 | |
12370 | rm -rf conftest* | |
12371 | ||
1e6feb95 VZ |
12372 | echo "$ac_t""no" 1>&6 |
12373 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12374 | ||
698dcdb6 | 12375 | |
cd6d6d5b | 12376 | fi |
698dcdb6 | 12377 | rm -f conftest* |
1e6feb95 | 12378 | fi |
ab9b9eab | 12379 | |
1e6feb95 VZ |
12380 | if test "$COMPILED_X_PROGRAM" = 0; then |
12381 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
613d0995 | 12382 | echo "configure:12383: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 12383 | |
ab9b9eab VZ |
12384 | ac_find_libraries= |
12385 | for ac_dir in $SEARCH_LIB; | |
12386 | do | |
f11bdd03 | 12387 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12388 | if test -f "$ac_dir/libXm.$ac_extension"; then |
12389 | ac_find_libraries=$ac_dir | |
12390 | break 2 | |
12391 | fi | |
12392 | done | |
12393 | done | |
12394 | ||
1e6feb95 VZ |
12395 | if test "$ac_find_libraries" != "" ; then |
12396 | ||
ab9b9eab VZ |
12397 | ac_path_to_include=$ac_find_includes |
12398 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
12399 | result=$? | |
12400 | if test $result = 0; then | |
12401 | ac_path_to_include="" | |
12402 | else | |
62d0491b | 12403 | ac_path_to_include=" -I$ac_find_includes" |
ab9b9eab VZ |
12404 | fi |
12405 | ||
1e6feb95 | 12406 | |
ab9b9eab VZ |
12407 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12408 | result=$? | |
12409 | if test $result = 0; then | |
12410 | ac_path_to_link="" | |
12411 | else | |
62d0491b | 12412 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12413 | fi |
12414 | ||
698dcdb6 | 12415 | |
62d0491b RL |
12416 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
12417 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
1e6feb95 VZ |
12418 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12419 | else | |
12420 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 12421 | #line 12422 "configure" |
cd6d6d5b | 12422 | #include "confdefs.h" |
ab9b9eab | 12423 | |
1e6feb95 VZ |
12424 | #include <Xm/Xm.h> |
12425 | ||
698dcdb6 | 12426 | int main() { |
ab9b9eab | 12427 | |
1e6feb95 | 12428 | int version; |
1e6feb95 VZ |
12429 | version = xmUseVersion; |
12430 | ||
698dcdb6 VZ |
12431 | ; return 0; } |
12432 | EOF | |
613d0995 | 12433 | if { (eval echo configure:12434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12434 | rm -rf conftest* |
12435 | ||
1e6feb95 VZ |
12436 | echo "$ac_t""found in default search path" 1>&6 |
12437 | COMPILED_X_PROGRAM=1 | |
12438 | ||
cd6d6d5b | 12439 | else |
698dcdb6 VZ |
12440 | echo "configure: failed program was:" >&5 |
12441 | cat conftest.$ac_ext >&5 | |
12442 | rm -rf conftest* | |
12443 | ||
1e6feb95 VZ |
12444 | echo "$ac_t""no" 1>&6 |
12445 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
12446 | ||
698dcdb6 | 12447 | |
cd6d6d5b | 12448 | fi |
698dcdb6 | 12449 | rm -f conftest* |
1e6feb95 | 12450 | fi |
cd6d6d5b | 12451 | fi |
ab9b9eab | 12452 | |
3d63bc3a | 12453 | xpm_link= |
1e6feb95 | 12454 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
613d0995 | 12455 | echo "configure:12456: checking for Xpm library" >&5 |
1e6feb95 | 12456 | |
ab9b9eab VZ |
12457 | ac_find_libraries= |
12458 | for ac_dir in $SEARCH_LIB; | |
12459 | do | |
f11bdd03 | 12460 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12461 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12462 | ac_find_libraries=$ac_dir | |
12463 | break 2 | |
12464 | fi | |
12465 | done | |
12466 | done | |
12467 | ||
1e6feb95 VZ |
12468 | if test "$ac_find_libraries" != "" ; then |
12469 | ||
ab9b9eab VZ |
12470 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12471 | result=$? | |
12472 | if test $result = 0; then | |
12473 | ac_path_to_link="" | |
12474 | else | |
62d0491b | 12475 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12476 | fi |
12477 | ||
62d0491b | 12478 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12479 | xpm_link=" -lXpm" |
1e6feb95 | 12480 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12481 | #define wxHAVE_LIB_XPM 1 |
12482 | EOF | |
12483 | ||
1e6feb95 VZ |
12484 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12485 | else | |
12486 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 12487 | #line 12488 "configure" |
cd6d6d5b VZ |
12488 | #include "confdefs.h" |
12489 | ||
1e6feb95 VZ |
12490 | #include <X11/xpm.h> |
12491 | ||
698dcdb6 | 12492 | int main() { |
cd6d6d5b | 12493 | |
1e6feb95 | 12494 | int version; |
1e6feb95 VZ |
12495 | version = XpmLibraryVersion(); |
12496 | ||
698dcdb6 VZ |
12497 | ; return 0; } |
12498 | EOF | |
613d0995 | 12499 | if { (eval echo configure:12500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12500 | rm -rf conftest* |
12501 | ||
3d63bc3a | 12502 | xpm_link=" -lXpm" |
3a922bb4 | 12503 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12504 | #define wxHAVE_LIB_XPM 1 |
12505 | EOF | |
12506 | ||
1e6feb95 VZ |
12507 | echo "$ac_t""found in default search path" 1>&6 |
12508 | COMPILED_X_PROGRAM=0 | |
12509 | ||
cd6d6d5b | 12510 | else |
698dcdb6 VZ |
12511 | echo "configure: failed program was:" >&5 |
12512 | cat conftest.$ac_ext >&5 | |
12513 | rm -rf conftest* | |
12514 | ||
1e6feb95 VZ |
12515 | echo "$ac_t""no" 1>&6 |
12516 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12517 | ||
698dcdb6 | 12518 | |
cd6d6d5b | 12519 | fi |
698dcdb6 | 12520 | rm -f conftest* |
1e6feb95 VZ |
12521 | fi |
12522 | ||
3d63bc3a | 12523 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 12524 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
12525 | TOOLKIT=MOTIF |
12526 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
12527 | fi |
12528 | ||
683dccda GD |
12529 | if test "$wxUSE_MAC" = 1; then |
12530 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 12531 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 12532 | fi |
3d63bc3a RL |
12533 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
12534 | CFLAGS="$CFLAGS -fpascal-strings" | |
12535 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
d08b457b | 12536 | |
13c0541d | 12537 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 12538 | TOOLKIT=MAC |
683dccda | 12539 | GUIDIST=MACX_DIST |
1e6feb95 | 12540 | fi |
10f2d63a | 12541 | |
1e6feb95 VZ |
12542 | if test "$wxUSE_PM" = 1; then |
12543 | TOOLKIT=PM | |
12544 | GUIDIST=GTK_DIST | |
12545 | fi | |
b4085ce6 | 12546 | |
3a922bb4 | 12547 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 12548 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
12549 | else |
12550 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 12551 | fi |
e07802fc | 12552 | |
3a922bb4 | 12553 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 12554 | |
3a922bb4 RL |
12555 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
12556 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
12557 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
12558 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12559 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
12560 | WIDGET_SET=univ | |
f6bcfd97 | 12561 | else |
3a922bb4 | 12562 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
12563 | fi |
12564 | ||
ba0e650c | 12565 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 12566 | |
f9bc1684 | 12567 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
12568 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
12569 | fi | |
12570 | ||
12571 | if test "$wxUSE_HTML" = "yes"; then | |
12572 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
12573 | fi | |
3fcdd07b | 12574 | |
3a922bb4 RL |
12575 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
12576 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 12577 | fi |
4f14bcd8 | 12578 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 12579 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 12580 | fi |
4f14bcd8 | 12581 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
12582 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
12583 | fi | |
4f14bcd8 | 12584 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
12585 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
12586 | fi | |
4f14bcd8 | 12587 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
12588 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
12589 | fi | |
2224580a | 12590 | |
2224580a VZ |
12591 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
12592 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 12593 | else |
dad6c0ea VZ |
12594 | USE_GUI=0 |
12595 | ||
3a922bb4 | 12596 | TOOLKIT_DIR="base" |
f6bcfd97 | 12597 | |
3a922bb4 RL |
12598 | if test "$USE_WIN32" = 1 ; then |
12599 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
12600 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 12601 | |
3a922bb4 | 12602 | TOOLKIT="MSW" |
f6bcfd97 | 12603 | else |
3a922bb4 RL |
12604 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
12605 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
12606 | fi |
12607 | ||
831b3152 | 12608 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
12609 | |
12610 | GUIDIST="BASE_DIST" | |
12611 | DISTDIR="wxBase" | |
10f2d63a VZ |
12612 | fi |
12613 | ||
4f14bcd8 | 12614 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
12615 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
12616 | fi | |
4f14bcd8 | 12617 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
12618 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
12619 | fi | |
10f2d63a | 12620 | |
3a922bb4 | 12621 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
12622 | if test "$wxUSE_MAC" = 1; then |
12623 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
12624 | else | |
570cb8cb | 12625 | |
62d0491b | 12626 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 12627 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
613d0995 | 12628 | echo "configure:12629: checking for GL/gl.h" >&5 |
3a922bb4 RL |
12629 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12631 | else | |
12632 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 12633 | #line 12634 "configure" |
3a922bb4 RL |
12634 | #include "confdefs.h" |
12635 | #include <GL/gl.h> | |
12636 | EOF | |
12637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 12638 | { (eval echo configure:12639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12640 | if test -z "$ac_err"; then | |
12641 | rm -rf conftest* | |
12642 | eval "ac_cv_header_$ac_safe=yes" | |
12643 | else | |
12644 | echo "$ac_err" >&5 | |
12645 | echo "configure: failed program was:" >&5 | |
12646 | cat conftest.$ac_ext >&5 | |
12647 | rm -rf conftest* | |
12648 | eval "ac_cv_header_$ac_safe=no" | |
12649 | fi | |
12650 | rm -f conftest* | |
12651 | fi | |
12652 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12653 | echo "$ac_t""yes" 1>&6 | |
12654 | ||
1352efdf | 12655 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
613d0995 | 12656 | echo "configure:12657: checking for -lGL" >&5 |
57964555 | 12657 | |
62d0491b RL |
12658 | ac_find_libraries= |
12659 | for ac_dir in $SEARCH_LIB; | |
12660 | do | |
12661 | for ac_extension in a so sl dylib; do | |
12662 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
12663 | ac_find_libraries=$ac_dir | |
12664 | break 2 | |
12665 | fi | |
12666 | done | |
12667 | done | |
3a922bb4 | 12668 | |
62d0491b RL |
12669 | if test "$ac_find_libraries" != "" ; then |
12670 | ||
12671 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
12672 | result=$? | |
12673 | if test $result = 0; then | |
12674 | ac_path_to_link="" | |
12675 | else | |
12676 | ac_path_to_link=" -L$ac_find_libraries" | |
12677 | fi | |
3a922bb4 | 12678 | |
4b6b4dfc RR |
12679 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
12680 | LDFLAGS_GL="$LDFLAGS" | |
12681 | else | |
12682 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
12683 | fi | |
62d0491b | 12684 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 12685 | echo "$ac_t""yes" 1>&6 |
62d0491b | 12686 | else |
1352efdf RL |
12687 | echo "$ac_t""no" 1>&6 |
12688 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
613d0995 | 12689 | echo "configure:12690: checking for -lMesaGL" >&5 |
62d0491b RL |
12690 | |
12691 | ac_find_libraries= | |
12692 | for ac_dir in $SEARCH_LIB; | |
12693 | do | |
12694 | for ac_extension in a so sl dylib; do | |
12695 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12696 | ac_find_libraries=$ac_dir | |
12697 | break 2 | |
12698 | fi | |
12699 | done | |
12700 | done | |
3a922bb4 | 12701 | |
62d0491b | 12702 | if test "$ac_find_libraries" != "" ; then |
57964555 | 12703 | |
62d0491b RL |
12704 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
12705 | result=$? | |
12706 | if test $result = 0; then | |
12707 | ac_path_to_link="" | |
12708 | else | |
12709 | ac_path_to_link=" -L$ac_find_libraries" | |
12710 | fi | |
3a922bb4 | 12711 | |
62d0491b RL |
12712 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12713 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
12714 | echo "$ac_t""yes" 1>&6 |
12715 | else | |
12716 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
12717 | fi |
12718 | fi | |
12719 | ||
3a922bb4 RL |
12720 | else |
12721 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12722 | fi |
12723 | ||
6f754473 | 12724 | |
62d0491b RL |
12725 | |
12726 | # AC_CHECK_HEADER(GL/gl.h, | |
12727 | # [ | |
12728 | # AC_CHECK_LIB(GL, glFlush, | |
12729 | # [ | |
12730 | # OPENGL_LIBS="-lGL -lGLU" | |
12731 | # ], | |
12732 | # [ | |
12733 | # AC_CHECK_LIB(MesaGL, glFlush, | |
12734 | # [ | |
12735 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
12736 | # ], | |
12737 | # [], | |
12738 | # [-lm]) | |
12739 | # ], | |
12740 | # [-lm]) | |
12741 | # ]) | |
12742 | ||
12743 | if test "x$OPENGL_LIBS" = "x"; then | |
12744 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
12745 | fi | |
6f754473 | 12746 | fi |
6f754473 | 12747 | |
62d0491b RL |
12748 | if test "$wxUSE_OPENGL" = "yes"; then |
12749 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
12750 | #define wxUSE_OPENGL 1 |
12751 | EOF | |
12752 | ||
62d0491b | 12753 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
12754 | #define wxUSE_GLCANVAS 1 |
12755 | EOF | |
12756 | ||
62d0491b RL |
12757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
12758 | fi | |
3a922bb4 RL |
12759 | fi |
12760 | ||
12761 | if test -z "$TOOLKIT_VPATH" ; then | |
12762 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12763 | fi | |
12764 | ||
12765 | if test -n "$TOOLKIT" ; then | |
12766 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
12767 | fi | |
12768 | ||
f676c7ff MB |
12769 | lib_unicode_suffix= |
12770 | if test "$wxUSE_UNICODE" = "yes"; then | |
12771 | lib_unicode_suffix=u | |
12772 | fi | |
12773 | ||
3a922bb4 RL |
12774 | lib_debug_suffix= |
12775 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
12776 | lib_debug_suffix=d | |
3a922bb4 RL |
12777 | fi |
12778 | ||
f676c7ff MB |
12779 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
12780 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
12781 | |
12782 | if test "$cross_compiling" = "yes"; then | |
12783 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
12784 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
12785 | fi | |
12786 | ||
12787 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
12788 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
12789 | ||
3a922bb4 RL |
12790 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
12791 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
12792 | ||
12793 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
12794 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12795 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
12796 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
12797 | ||
d08b457b | 12798 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 12799 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 12800 | |
978f1259 RL |
12801 | case "${host}" in |
12802 | *-*-cygwin* | *-*-mingw32* ) | |
12803 | ||
2da4f892 | 12804 | |
978f1259 RL |
12805 | |
12806 | if test "$cross_compiling" != "yes"; then | |
12807 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12808 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12809 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
12810 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
12811 | else |
12812 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12813 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
12814 | fi |
12815 | ||
12816 | esac | |
12817 | ||
12818 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
12819 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
12820 | ||
12821 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 12822 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
12823 | |
12824 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
12825 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
12826 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
12827 | fi |
12828 | ||
12829 | ||
3a922bb4 RL |
12830 | |
12831 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
12832 | |
12833 | if test "$wxUSE_OPENGL" = "yes"; then | |
12834 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 12835 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
12836 | else |
12837 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 12838 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
12839 | fi |
12840 | ||
dd4f7467 | 12841 | if test "$GCC" = "yes"; then |
55e80573 | 12842 | PIC_FLAG="-fPIC" |
dd4f7467 | 12843 | fi |
55e80573 VZ |
12844 | |
12845 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 12846 | |
10f2d63a VZ |
12847 | case "${host}" in |
12848 | *-hp-hpux* ) | |
d569ea8d GD |
12849 | if test "$GCC" == "yes"; then |
12850 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
12851 | else | |
3d63bc3a | 12852 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 12853 | |
10f2d63a VZ |
12854 | SHARED_LD="${CXX} -b -o" |
12855 | PIC_FLAG="+Z" | |
12856 | fi | |
55e80573 | 12857 | |
7b7a7637 RL |
12858 | if test "$wxUSE_OPENGL" = "yes"; then |
12859 | WX_ALL_INSTALLED="preinstall_gl" | |
12860 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
12861 | else | |
12862 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
12863 | fi | |
10f2d63a | 12864 | ;; |
b12915c1 | 12865 | |
55e80573 VZ |
12866 | *-*-linux* ) |
12867 | if test "$GCC" != "yes"; then | |
12868 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
613d0995 | 12869 | echo "configure:12870: checking for Intel compiler" >&5 |
55e80573 VZ |
12870 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
12871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12872 | else | |
12873 | ||
12874 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 12875 | #line 12876 "configure" |
55e80573 VZ |
12876 | #include "confdefs.h" |
12877 | ||
12878 | int main() { | |
12879 | ||
12880 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 12881 | #error Not icc |
55e80573 VZ |
12882 | #endif |
12883 | ||
12884 | ; return 0; } | |
12885 | EOF | |
613d0995 | 12886 | if { (eval echo configure:12887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
12887 | rm -rf conftest* |
12888 | wx_cv_prog_icc=yes | |
12889 | else | |
12890 | echo "configure: failed program was:" >&5 | |
12891 | cat conftest.$ac_ext >&5 | |
12892 | rm -rf conftest* | |
12893 | wx_cv_prog_icc=no | |
12894 | ||
12895 | fi | |
12896 | rm -f conftest* | |
12897 | ||
12898 | fi | |
12899 | ||
12900 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
12901 | if test "$wx_cv_prog_icc" = "yes"; then |
12902 | PIC_FLAG="-KPIC" | |
12903 | fi | |
12904 | fi | |
12905 | ||
3a922bb4 RL |
12906 | if test "$wxUSE_SONAME" = "yes" ; then |
12907 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
12908 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 12909 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 12910 | fi |
10f2d63a | 12911 | ;; |
55e80573 | 12912 | |
10f2d63a VZ |
12913 | *-*-solaris2* ) |
12914 | if test "$GCC" = yes ; then | |
f6bcfd97 | 12915 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
12916 | else |
12917 | SHARED_LD="${CXX} -G -o" | |
12918 | PIC_FLAG="-KPIC" | |
7b7a7637 | 12919 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 12920 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 12921 | fi |
10f2d63a | 12922 | ;; |
55e80573 | 12923 | |
b4085ce6 | 12924 | *-*-darwin* ) |
156b2523 GD |
12925 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
12926 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
12927 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 12928 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 12929 | ;; |
55e80573 | 12930 | |
10f2d63a VZ |
12931 | *-*-aix* ) |
12932 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 12933 | ;; |
55e80573 | 12934 | |
7b7a7637 | 12935 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 12936 | |
2da4f892 | 12937 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 12938 | |
77e13408 | 12939 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 12940 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
12941 | |
12942 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
12943 | |
12944 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 12945 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 12946 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 12947 | else |
978f1259 | 12948 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 12949 | fi |
10f2d63a | 12950 | ;; |
55e80573 | 12951 | |
6fa882bd | 12952 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 12953 | wxUSE_SHARED=no |
10f2d63a | 12954 | ;; |
55e80573 | 12955 | |
b12915c1 | 12956 | *-*-beos* ) |
e2b8b066 | 12957 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 12958 | ;; |
55e80573 VZ |
12959 | |
12960 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
12961 | *-*-sunos4* | \ | |
12962 | *-*-irix5* | *-*-irix6* | \ | |
12963 | *-*-osf* | \ | |
12964 | *-*-dgux5* | \ | |
12965 | *-*-sysv5* ) | |
12966 | ;; | |
12967 | ||
10f2d63a | 12968 | *) |
7b7a7637 | 12969 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
12970 | esac |
12971 | ||
12972 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
12973 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 12974 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 12975 | fi |
55e80573 | 12976 | |
3711412e | 12977 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 12978 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 12979 | fi |
f6bcfd97 | 12980 | |
3a922bb4 | 12981 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 12982 | |
3a922bb4 | 12983 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
12984 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
12985 | fi | |
12986 | ||
6fa882bd RR |
12987 | if test "$wxUSE_MAC" = 1; then |
12988 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
12989 | fi | |
12990 | ||
3a922bb4 RL |
12991 | if test "$wxUSE_OPENGL" = "yes"; then |
12992 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
12993 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
12994 | else | |
12995 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
12996 | fi | |
698dcdb6 | 12997 | |
3a922bb4 RL |
12998 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
12999 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13000 | ||
13001 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13002 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13003 | fi |
10f2d63a | 13004 | |
d08b457b GD |
13005 | if test "$wxUSE_MAC" = 1; then |
13006 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13007 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13008 | # Extract the first word of "Rez", so it can be a program name with args. |
13009 | set dummy Rez; ac_word=$2 | |
13010 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
613d0995 | 13011 | echo "configure:13012: checking for $ac_word" >&5 |
d08b457b GD |
13012 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13014 | else | |
13015 | if test -n "$RESCOMP"; then | |
13016 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13017 | else | |
13018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13019 | ac_dummy="$PATH" | |
13020 | for ac_dir in $ac_dummy; do | |
13021 | test -z "$ac_dir" && ac_dir=. | |
13022 | if test -f $ac_dir/$ac_word; then | |
13023 | ac_cv_prog_RESCOMP="Rez" | |
13024 | break | |
13025 | fi | |
13026 | done | |
13027 | IFS="$ac_save_ifs" | |
13028 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13029 | fi | |
13030 | fi | |
13031 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13032 | if test -n "$RESCOMP"; then | |
13033 | echo "$ac_t""$RESCOMP" 1>&6 | |
13034 | else | |
13035 | echo "$ac_t""no" 1>&6 | |
13036 | fi | |
13037 | ||
9f8148b1 GD |
13038 | # Extract the first word of "DeRez", so it can be a program name with args. |
13039 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13040 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
613d0995 | 13041 | echo "configure:13042: checking for $ac_word" >&5 |
d08b457b GD |
13042 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13044 | else | |
13045 | if test -n "$DEREZ"; then | |
13046 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13047 | else | |
13048 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13049 | ac_dummy="$PATH" | |
13050 | for ac_dir in $ac_dummy; do | |
13051 | test -z "$ac_dir" && ac_dir=. | |
13052 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13053 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13054 | break |
13055 | fi | |
13056 | done | |
13057 | IFS="$ac_save_ifs" | |
9f8148b1 | 13058 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13059 | fi |
13060 | fi | |
13061 | DEREZ="$ac_cv_prog_DEREZ" | |
13062 | if test -n "$DEREZ"; then | |
13063 | echo "$ac_t""$DEREZ" 1>&6 | |
13064 | else | |
13065 | echo "$ac_t""no" 1>&6 | |
13066 | fi | |
13067 | ||
13068 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
13069 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13070 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
13071 | fi |
13072 | ||
3a922bb4 | 13073 | |
13c0541d GD |
13074 | if test "$wxUSE_MAC" != 1; then |
13075 | for ac_hdr in strings.h | |
9cfadba2 | 13076 | do |
698dcdb6 VZ |
13077 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13078 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13079 | echo "configure:13080: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13080 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13082 | else | |
13083 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13084 | #line 13085 "configure" |
9cfadba2 | 13085 | #include "confdefs.h" |
698dcdb6 VZ |
13086 | #include <$ac_hdr> |
13087 | EOF | |
13088 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13089 | { (eval echo configure:13090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13090 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13091 | if test -z "$ac_err"; then | |
13092 | rm -rf conftest* | |
13093 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13094 | else |
698dcdb6 VZ |
13095 | echo "$ac_err" >&5 |
13096 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13097 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13098 | rm -rf conftest* |
13099 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13100 | fi |
698dcdb6 | 13101 | rm -f conftest* |
9cfadba2 | 13102 | fi |
698dcdb6 VZ |
13103 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13104 | echo "$ac_t""yes" 1>&6 | |
13105 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13106 | cat >> confdefs.h <<EOF | |
13107 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13108 | EOF |
698dcdb6 VZ |
13109 | |
13110 | else | |
13111 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13112 | fi |
13113 | done | |
10f2d63a | 13114 | |
13c0541d GD |
13115 | fi |
13116 | ||
3a922bb4 | 13117 | for ac_hdr in stdlib.h |
10f2d63a | 13118 | do |
698dcdb6 VZ |
13119 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13120 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13121 | echo "configure:13122: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13122 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13124 | else | |
13125 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13126 | #line 13127 "configure" |
10f2d63a | 13127 | #include "confdefs.h" |
698dcdb6 VZ |
13128 | #include <$ac_hdr> |
13129 | EOF | |
13130 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13131 | { (eval echo configure:13132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13132 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13133 | if test -z "$ac_err"; then | |
13134 | rm -rf conftest* | |
13135 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13136 | else |
698dcdb6 VZ |
13137 | echo "$ac_err" >&5 |
13138 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13139 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13140 | rm -rf conftest* |
13141 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13142 | fi |
698dcdb6 | 13143 | rm -f conftest* |
10f2d63a | 13144 | fi |
698dcdb6 VZ |
13145 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13146 | echo "$ac_t""yes" 1>&6 | |
13147 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13148 | cat >> confdefs.h <<EOF | |
13149 | #define $ac_tr_hdr 1 | |
10f2d63a | 13150 | EOF |
698dcdb6 VZ |
13151 | |
13152 | else | |
13153 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13154 | fi |
13155 | done | |
13156 | ||
9f8148b1 | 13157 | for ac_hdr in malloc.h |
10f2d63a | 13158 | do |
698dcdb6 VZ |
13159 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13160 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13161 | echo "configure:13162: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13162 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13164 | else | |
13165 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13166 | #line 13167 "configure" |
10f2d63a | 13167 | #include "confdefs.h" |
698dcdb6 VZ |
13168 | #include <$ac_hdr> |
13169 | EOF | |
13170 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13171 | { (eval echo configure:13172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13172 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13173 | if test -z "$ac_err"; then | |
13174 | rm -rf conftest* | |
13175 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13176 | else |
698dcdb6 VZ |
13177 | echo "$ac_err" >&5 |
13178 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13179 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13180 | rm -rf conftest* |
13181 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13182 | fi |
698dcdb6 | 13183 | rm -f conftest* |
6f72b082 | 13184 | fi |
698dcdb6 VZ |
13185 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13186 | echo "$ac_t""yes" 1>&6 | |
13187 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13188 | cat >> confdefs.h <<EOF | |
13189 | #define $ac_tr_hdr 1 | |
6f72b082 | 13190 | EOF |
698dcdb6 VZ |
13191 | |
13192 | else | |
13193 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13194 | fi |
13195 | done | |
13196 | ||
9f8148b1 | 13197 | for ac_hdr in unistd.h |
6f72b082 | 13198 | do |
698dcdb6 VZ |
13199 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13200 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13201 | echo "configure:13202: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13202 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13204 | else | |
13205 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13206 | #line 13207 "configure" |
6f72b082 | 13207 | #include "confdefs.h" |
698dcdb6 VZ |
13208 | #include <$ac_hdr> |
13209 | EOF | |
13210 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13211 | { (eval echo configure:13212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13212 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13213 | if test -z "$ac_err"; then | |
13214 | rm -rf conftest* | |
13215 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13216 | else |
698dcdb6 VZ |
13217 | echo "$ac_err" >&5 |
13218 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13219 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13220 | rm -rf conftest* |
13221 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13222 | fi |
698dcdb6 | 13223 | rm -f conftest* |
6f72b082 | 13224 | fi |
698dcdb6 VZ |
13225 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13226 | echo "$ac_t""yes" 1>&6 | |
13227 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13228 | cat >> confdefs.h <<EOF | |
13229 | #define $ac_tr_hdr 1 | |
6f72b082 | 13230 | EOF |
698dcdb6 VZ |
13231 | |
13232 | else | |
13233 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13234 | fi |
13235 | done | |
13236 | ||
9f8148b1 | 13237 | for ac_hdr in wchar.h |
6f72b082 | 13238 | do |
698dcdb6 VZ |
13239 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13240 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13241 | echo "configure:13242: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13242 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13244 | else | |
13245 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13246 | #line 13247 "configure" |
6f72b082 | 13247 | #include "confdefs.h" |
698dcdb6 VZ |
13248 | #include <$ac_hdr> |
13249 | EOF | |
13250 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13251 | { (eval echo configure:13252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13252 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13253 | if test -z "$ac_err"; then | |
13254 | rm -rf conftest* | |
13255 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13256 | else |
698dcdb6 VZ |
13257 | echo "$ac_err" >&5 |
13258 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13259 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13260 | rm -rf conftest* |
13261 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13262 | fi |
698dcdb6 | 13263 | rm -f conftest* |
10f2d63a | 13264 | fi |
698dcdb6 VZ |
13265 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13266 | echo "$ac_t""yes" 1>&6 | |
13267 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13268 | cat >> confdefs.h <<EOF | |
13269 | #define $ac_tr_hdr 1 | |
10f2d63a | 13270 | EOF |
698dcdb6 VZ |
13271 | |
13272 | else | |
13273 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13274 | fi |
13275 | done | |
13276 | ||
9f8148b1 | 13277 | for ac_hdr in wcstr.h |
0fb0dd83 | 13278 | do |
698dcdb6 VZ |
13279 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13280 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13281 | echo "configure:13282: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13282 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13284 | else | |
13285 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13286 | #line 13287 "configure" |
0fb0dd83 | 13287 | #include "confdefs.h" |
698dcdb6 VZ |
13288 | #include <$ac_hdr> |
13289 | EOF | |
13290 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13291 | { (eval echo configure:13292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13292 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13293 | if test -z "$ac_err"; then | |
13294 | rm -rf conftest* | |
13295 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13296 | else |
698dcdb6 VZ |
13297 | echo "$ac_err" >&5 |
13298 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13299 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13300 | rm -rf conftest* |
13301 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13302 | fi |
698dcdb6 | 13303 | rm -f conftest* |
0fb0dd83 | 13304 | fi |
698dcdb6 VZ |
13305 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13306 | echo "$ac_t""yes" 1>&6 | |
13307 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13308 | cat >> confdefs.h <<EOF | |
13309 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13310 | EOF |
698dcdb6 VZ |
13311 | |
13312 | else | |
13313 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13314 | fi |
13315 | done | |
13316 | ||
9f8148b1 | 13317 | for ac_hdr in wctype.h |
1f8ae82f | 13318 | do |
698dcdb6 VZ |
13319 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13320 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13321 | echo "configure:13322: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13322 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13324 | else | |
13325 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13326 | #line 13327 "configure" |
1f8ae82f | 13327 | #include "confdefs.h" |
698dcdb6 VZ |
13328 | #include <$ac_hdr> |
13329 | EOF | |
13330 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13331 | { (eval echo configure:13332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13332 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13333 | if test -z "$ac_err"; then | |
13334 | rm -rf conftest* | |
13335 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 13336 | else |
698dcdb6 VZ |
13337 | echo "$ac_err" >&5 |
13338 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 13339 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13340 | rm -rf conftest* |
13341 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 13342 | fi |
698dcdb6 | 13343 | rm -f conftest* |
1f8ae82f | 13344 | fi |
698dcdb6 VZ |
13345 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13346 | echo "$ac_t""yes" 1>&6 | |
13347 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13348 | cat >> confdefs.h <<EOF | |
13349 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13350 | EOF |
698dcdb6 VZ |
13351 | |
13352 | else | |
13353 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
13354 | fi |
13355 | done | |
13356 | ||
9f8148b1 | 13357 | for ac_hdr in fnmatch.h |
10f2d63a | 13358 | do |
698dcdb6 VZ |
13359 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13360 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13361 | echo "configure:13362: checking for $ac_hdr" >&5 |
0fbb762e MB |
13362 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13364 | else | |
13365 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13366 | #line 13367 "configure" |
0fbb762e MB |
13367 | #include "confdefs.h" |
13368 | #include <$ac_hdr> | |
13369 | EOF | |
13370 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13371 | { (eval echo configure:13372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13372 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13373 | if test -z "$ac_err"; then | |
13374 | rm -rf conftest* | |
13375 | eval "ac_cv_header_$ac_safe=yes" | |
13376 | else | |
13377 | echo "$ac_err" >&5 | |
13378 | echo "configure: failed program was:" >&5 | |
13379 | cat conftest.$ac_ext >&5 | |
13380 | rm -rf conftest* | |
13381 | eval "ac_cv_header_$ac_safe=no" | |
13382 | fi | |
13383 | rm -f conftest* | |
13384 | fi | |
13385 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13386 | echo "$ac_t""yes" 1>&6 | |
13387 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13388 | cat >> confdefs.h <<EOF | |
13389 | #define $ac_tr_hdr 1 | |
13390 | EOF | |
13391 | ||
13392 | else | |
13393 | echo "$ac_t""no" 1>&6 | |
13394 | fi | |
13395 | done | |
13396 | ||
9f8148b1 GD |
13397 | for ac_hdr in langinfo.h |
13398 | do | |
13399 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13400 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13401 | echo "configure:13402: checking for $ac_hdr" >&5 |
9f8148b1 GD |
13402 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13404 | else | |
13405 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13406 | #line 13407 "configure" |
9f8148b1 GD |
13407 | #include "confdefs.h" |
13408 | #include <$ac_hdr> | |
13409 | EOF | |
13410 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13411 | { (eval echo configure:13412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
13412 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13413 | if test -z "$ac_err"; then | |
13414 | rm -rf conftest* | |
13415 | eval "ac_cv_header_$ac_safe=yes" | |
13416 | else | |
13417 | echo "$ac_err" >&5 | |
13418 | echo "configure: failed program was:" >&5 | |
13419 | cat conftest.$ac_ext >&5 | |
13420 | rm -rf conftest* | |
13421 | eval "ac_cv_header_$ac_safe=no" | |
13422 | fi | |
13423 | rm -f conftest* | |
13424 | fi | |
13425 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13426 | echo "$ac_t""yes" 1>&6 | |
13427 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13428 | cat >> confdefs.h <<EOF | |
13429 | #define $ac_tr_hdr 1 | |
13430 | EOF | |
13431 | ||
13432 | else | |
13433 | echo "$ac_t""no" 1>&6 | |
13434 | fi | |
13435 | done | |
13436 | ||
10f2d63a | 13437 | |
3a922bb4 RL |
13438 | if test "$wxUSE_GUI" = "yes"; then |
13439 | if test "$wxUSE_UNIX" = "yes"; then | |
13440 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
13441 | do |
13442 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13443 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 13444 | echo "configure:13445: checking for $ac_hdr" >&5 |
29fd3c0c VS |
13445 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13447 | else | |
13448 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13449 | #line 13450 "configure" |
29fd3c0c VS |
13450 | #include "confdefs.h" |
13451 | #include <$ac_hdr> | |
13452 | EOF | |
13453 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13454 | { (eval echo configure:13455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
13455 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13456 | if test -z "$ac_err"; then | |
13457 | rm -rf conftest* | |
13458 | eval "ac_cv_header_$ac_safe=yes" | |
13459 | else | |
13460 | echo "$ac_err" >&5 | |
13461 | echo "configure: failed program was:" >&5 | |
13462 | cat conftest.$ac_ext >&5 | |
13463 | rm -rf conftest* | |
13464 | eval "ac_cv_header_$ac_safe=no" | |
13465 | fi | |
13466 | rm -f conftest* | |
13467 | fi | |
13468 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13469 | echo "$ac_t""yes" 1>&6 | |
13470 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13471 | cat >> confdefs.h <<EOF | |
13472 | #define $ac_tr_hdr 1 | |
13473 | EOF | |
13474 | ||
13475 | else | |
13476 | echo "$ac_t""no" 1>&6 | |
13477 | fi | |
13478 | done | |
13479 | ||
3a922bb4 | 13480 | fi |
29fd3c0c VS |
13481 | fi |
13482 | ||
698dcdb6 VZ |
13483 | |
13484 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
613d0995 | 13485 | echo "configure:13486: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
13486 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
13487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13488 | else |
698dcdb6 | 13489 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13490 | #line 13491 "configure" |
10f2d63a VZ |
13491 | #include "confdefs.h" |
13492 | #include <stdlib.h> | |
13493 | #include <stdarg.h> | |
13494 | #include <string.h> | |
13495 | #include <float.h> | |
698dcdb6 VZ |
13496 | EOF |
13497 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 13498 | { (eval echo configure:13499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13499 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13500 | if test -z "$ac_err"; then | |
13501 | rm -rf conftest* | |
10f2d63a VZ |
13502 | ac_cv_header_stdc=yes |
13503 | else | |
698dcdb6 VZ |
13504 | echo "$ac_err" >&5 |
13505 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13506 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13507 | rm -rf conftest* |
10f2d63a VZ |
13508 | ac_cv_header_stdc=no |
13509 | fi | |
698dcdb6 | 13510 | rm -f conftest* |
10f2d63a VZ |
13511 | |
13512 | if test $ac_cv_header_stdc = yes; then | |
13513 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 13514 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13515 | #line 13516 "configure" |
10f2d63a VZ |
13516 | #include "confdefs.h" |
13517 | #include <string.h> | |
698dcdb6 | 13518 | EOF |
10f2d63a VZ |
13519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13520 | egrep "memchr" >/dev/null 2>&1; then | |
13521 | : | |
13522 | else | |
698dcdb6 | 13523 | rm -rf conftest* |
10f2d63a VZ |
13524 | ac_cv_header_stdc=no |
13525 | fi | |
13526 | rm -f conftest* | |
13527 | ||
13528 | fi | |
13529 | ||
13530 | if test $ac_cv_header_stdc = yes; then | |
13531 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 13532 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13533 | #line 13534 "configure" |
10f2d63a VZ |
13534 | #include "confdefs.h" |
13535 | #include <stdlib.h> | |
698dcdb6 | 13536 | EOF |
10f2d63a VZ |
13537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13538 | egrep "free" >/dev/null 2>&1; then | |
13539 | : | |
13540 | else | |
698dcdb6 | 13541 | rm -rf conftest* |
10f2d63a VZ |
13542 | ac_cv_header_stdc=no |
13543 | fi | |
13544 | rm -f conftest* | |
13545 | ||
13546 | fi | |
13547 | ||
13548 | if test $ac_cv_header_stdc = yes; then | |
13549 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 13550 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
13551 | : |
13552 | else | |
698dcdb6 | 13553 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13554 | #line 13555 "configure" |
10f2d63a VZ |
13555 | #include "confdefs.h" |
13556 | #include <ctype.h> | |
698dcdb6 VZ |
13557 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
13558 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 13559 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
13560 | int main () { int i; for (i = 0; i < 256; i++) |
13561 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
13562 | exit (0); } | |
13563 | ||
13564 | EOF | |
613d0995 | 13565 | if { (eval echo configure:13566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13566 | then |
10f2d63a VZ |
13567 | : |
13568 | else | |
698dcdb6 VZ |
13569 | echo "configure: failed program was:" >&5 |
13570 | cat conftest.$ac_ext >&5 | |
13571 | rm -fr conftest* | |
13572 | ac_cv_header_stdc=no | |
10f2d63a | 13573 | fi |
698dcdb6 | 13574 | rm -fr conftest* |
10f2d63a | 13575 | fi |
698dcdb6 | 13576 | |
10f2d63a VZ |
13577 | fi |
13578 | fi | |
1e487827 | 13579 | |
698dcdb6 VZ |
13580 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
13581 | if test $ac_cv_header_stdc = yes; then | |
13582 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13583 | #define STDC_HEADERS 1 |
13584 | EOF | |
13585 | ||
13586 | fi | |
13587 | ||
698dcdb6 | 13588 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
613d0995 | 13589 | echo "configure:13590: checking for mode_t" >&5 |
698dcdb6 VZ |
13590 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
13591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13592 | else |
698dcdb6 | 13593 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13594 | #line 13595 "configure" |
1e487827 | 13595 | #include "confdefs.h" |
698dcdb6 VZ |
13596 | #include <sys/types.h> |
13597 | #if STDC_HEADERS | |
13598 | #include <stdlib.h> | |
13599 | #include <stddef.h> | |
13600 | #endif | |
13601 | EOF | |
13602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13603 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13604 | rm -rf conftest* | |
10f2d63a VZ |
13605 | ac_cv_type_mode_t=yes |
13606 | else | |
698dcdb6 VZ |
13607 | rm -rf conftest* |
13608 | ac_cv_type_mode_t=no | |
703e0a69 | 13609 | fi |
698dcdb6 | 13610 | rm -f conftest* |
1e487827 | 13611 | |
698dcdb6 VZ |
13612 | fi |
13613 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
13614 | if test $ac_cv_type_mode_t = no; then | |
13615 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13616 | #define mode_t int |
13617 | EOF | |
13618 | ||
13619 | fi | |
13620 | ||
698dcdb6 | 13621 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
613d0995 | 13622 | echo "configure:13623: checking for off_t" >&5 |
698dcdb6 VZ |
13623 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
13624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13625 | else |
698dcdb6 | 13626 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13627 | #line 13628 "configure" |
10f2d63a | 13628 | #include "confdefs.h" |
698dcdb6 VZ |
13629 | #include <sys/types.h> |
13630 | #if STDC_HEADERS | |
13631 | #include <stdlib.h> | |
13632 | #include <stddef.h> | |
13633 | #endif | |
13634 | EOF | |
13635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13636 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13637 | rm -rf conftest* | |
10f2d63a VZ |
13638 | ac_cv_type_off_t=yes |
13639 | else | |
698dcdb6 VZ |
13640 | rm -rf conftest* |
13641 | ac_cv_type_off_t=no | |
703e0a69 | 13642 | fi |
698dcdb6 | 13643 | rm -f conftest* |
1e487827 | 13644 | |
698dcdb6 VZ |
13645 | fi |
13646 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
13647 | if test $ac_cv_type_off_t = no; then | |
13648 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13649 | #define off_t long |
13650 | EOF | |
13651 | ||
13652 | fi | |
13653 | ||
698dcdb6 | 13654 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
613d0995 | 13655 | echo "configure:13656: checking for pid_t" >&5 |
698dcdb6 VZ |
13656 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
13657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13658 | else |
698dcdb6 | 13659 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13660 | #line 13661 "configure" |
10f2d63a | 13661 | #include "confdefs.h" |
698dcdb6 VZ |
13662 | #include <sys/types.h> |
13663 | #if STDC_HEADERS | |
13664 | #include <stdlib.h> | |
13665 | #include <stddef.h> | |
13666 | #endif | |
13667 | EOF | |
13668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13669 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13670 | rm -rf conftest* | |
10f2d63a VZ |
13671 | ac_cv_type_pid_t=yes |
13672 | else | |
698dcdb6 VZ |
13673 | rm -rf conftest* |
13674 | ac_cv_type_pid_t=no | |
703e0a69 | 13675 | fi |
698dcdb6 | 13676 | rm -f conftest* |
1e487827 | 13677 | |
698dcdb6 VZ |
13678 | fi |
13679 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
13680 | if test $ac_cv_type_pid_t = no; then | |
13681 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13682 | #define pid_t int |
13683 | EOF | |
13684 | ||
13685 | fi | |
13686 | ||
698dcdb6 | 13687 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
613d0995 | 13688 | echo "configure:13689: checking for size_t" >&5 |
698dcdb6 VZ |
13689 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
13690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13691 | else |
698dcdb6 | 13692 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13693 | #line 13694 "configure" |
10f2d63a | 13694 | #include "confdefs.h" |
698dcdb6 VZ |
13695 | #include <sys/types.h> |
13696 | #if STDC_HEADERS | |
13697 | #include <stdlib.h> | |
13698 | #include <stddef.h> | |
13699 | #endif | |
13700 | EOF | |
13701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13702 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13703 | rm -rf conftest* | |
10f2d63a VZ |
13704 | ac_cv_type_size_t=yes |
13705 | else | |
698dcdb6 VZ |
13706 | rm -rf conftest* |
13707 | ac_cv_type_size_t=no | |
703e0a69 | 13708 | fi |
698dcdb6 | 13709 | rm -f conftest* |
1e487827 | 13710 | |
698dcdb6 VZ |
13711 | fi |
13712 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
13713 | if test $ac_cv_type_size_t = no; then | |
13714 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13715 | #define size_t unsigned |
13716 | EOF | |
13717 | ||
13718 | fi | |
13719 | ||
698dcdb6 | 13720 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
613d0995 | 13721 | echo "configure:13722: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
13722 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
13723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13724 | else |
698dcdb6 | 13725 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13726 | #line 13727 "configure" |
10f2d63a VZ |
13727 | #include "confdefs.h" |
13728 | #include <sys/types.h> | |
698dcdb6 | 13729 | EOF |
10f2d63a VZ |
13730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13731 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 13732 | rm -rf conftest* |
10f2d63a VZ |
13733 | ac_cv_type_uid_t=yes |
13734 | else | |
698dcdb6 | 13735 | rm -rf conftest* |
10f2d63a VZ |
13736 | ac_cv_type_uid_t=no |
13737 | fi | |
13738 | rm -f conftest* | |
13739 | ||
13740 | fi | |
1e487827 | 13741 | |
698dcdb6 VZ |
13742 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
13743 | if test $ac_cv_type_uid_t = no; then | |
13744 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13745 | #define uid_t int |
13746 | EOF | |
13747 | ||
698dcdb6 | 13748 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13749 | #define gid_t int |
13750 | EOF | |
13751 | ||
13752 | fi | |
13753 | ||
1e487827 | 13754 | |
698dcdb6 | 13755 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
613d0995 | 13756 | echo "configure:13757: checking for wchar_t" >&5 |
698dcdb6 VZ |
13757 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
13758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13759 | else | |
13760 | ||
13761 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13762 | #line 13763 "configure" |
0046ff7c | 13763 | #include "confdefs.h" |
4b42290e GD |
13764 | |
13765 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
13766 | # ifdef __CYGWIN__ |
13767 | # include <stddef.h> | |
13768 | # endif | |
4b42290e GD |
13769 | # include <wchar.h> |
13770 | #endif | |
13771 | #ifdef HAVE_STDLIB_H | |
13772 | # include <stdlib.h> | |
13773 | #endif | |
13774 | ||
698dcdb6 | 13775 | int main() { |
0046ff7c | 13776 | |
d836ee96 VZ |
13777 | wchar_t wc, *ws; |
13778 | wc = L'a'; | |
13779 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
13780 | |
13781 | ; return 0; } | |
13782 | EOF | |
613d0995 | 13783 | if { (eval echo configure:13784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13784 | rm -rf conftest* |
1f8ae82f | 13785 | wx_cv_type_wchar_t=yes |
0046ff7c | 13786 | else |
698dcdb6 VZ |
13787 | echo "configure: failed program was:" >&5 |
13788 | cat conftest.$ac_ext >&5 | |
13789 | rm -rf conftest* | |
13790 | wx_cv_type_wchar_t=no | |
d836ee96 | 13791 | |
6232543b | 13792 | fi |
698dcdb6 | 13793 | rm -f conftest* |
703e0a69 | 13794 | |
1e487827 | 13795 | fi |
698dcdb6 VZ |
13796 | |
13797 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
13798 | |
13799 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 13800 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
13801 | #define wxUSE_WCHAR_T 1 |
13802 | EOF | |
13803 | ||
13804 | fi | |
13805 | ||
19af3b06 VZ |
13806 | |
13807 | ac_ext=C | |
13808 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13809 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13810 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13811 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13812 | cross_compiling=$ac_cv_prog_cxx_cross | |
13813 | ||
d836ee96 | 13814 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
613d0995 | 13815 | echo "configure:13816: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
13816 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
13817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13818 | else | |
dd2c8b7c | 13819 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13820 | #line 13821 "configure" |
d836ee96 VZ |
13821 | #include "confdefs.h" |
13822 | #include <stddef.h> | |
13823 | int main() { | |
13824 | ||
dd2c8b7c VZ |
13825 | return 0; } |
13826 | ||
d836ee96 | 13827 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
13828 | |
13829 | int bar() { | |
d836ee96 VZ |
13830 | |
13831 | ; return 0; } | |
13832 | EOF | |
613d0995 | 13833 | if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13834 | rm -rf conftest* |
13835 | wx_cv_size_t_is_uint=no | |
13836 | else | |
13837 | echo "configure: failed program was:" >&5 | |
13838 | cat conftest.$ac_ext >&5 | |
13839 | rm -rf conftest* | |
13840 | wx_cv_size_t_is_uint=yes | |
13841 | ||
13842 | fi | |
13843 | rm -f conftest* | |
13844 | ||
13845 | fi | |
13846 | ||
13847 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
13848 | ||
13849 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
13850 | cat >> confdefs.h <<\EOF | |
13851 | #define wxSIZE_T_IS_UINT 1 | |
13852 | EOF | |
13853 | ||
13854 | else | |
13855 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
613d0995 | 13856 | echo "configure:13857: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
13857 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
13858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13859 | else | |
13860 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13861 | #line 13862 "configure" |
d836ee96 VZ |
13862 | #include "confdefs.h" |
13863 | #include <stddef.h> | |
13864 | int main() { | |
13865 | ||
dd2c8b7c VZ |
13866 | return 0; } |
13867 | ||
d836ee96 | 13868 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
13869 | |
13870 | int bar() { | |
d836ee96 VZ |
13871 | |
13872 | ; return 0; } | |
13873 | EOF | |
613d0995 | 13874 | if { (eval echo configure:13875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13875 | rm -rf conftest* |
13876 | wx_cv_size_t_is_ulong=no | |
13877 | else | |
13878 | echo "configure: failed program was:" >&5 | |
13879 | cat conftest.$ac_ext >&5 | |
13880 | rm -rf conftest* | |
13881 | wx_cv_size_t_is_ulong=yes | |
13882 | ||
13883 | fi | |
13884 | rm -f conftest* | |
13885 | ||
13886 | fi | |
13887 | ||
13888 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
13889 | ||
13890 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
13891 | cat >> confdefs.h <<\EOF | |
13892 | #define wxSIZE_T_IS_ULONG 1 | |
13893 | EOF | |
13894 | ||
13895 | fi | |
13896 | fi | |
13897 | ||
19af3b06 VZ |
13898 | ac_ext=c |
13899 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13900 | ac_cpp='$CPP $CPPFLAGS' | |
13901 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13902 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13903 | cross_compiling=$ac_cv_prog_cc_cross | |
13904 | ||
13905 | ||
1e487827 | 13906 | |
698dcdb6 | 13907 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
613d0995 | 13908 | echo "configure:13909: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
13909 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
13910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13911 | else | |
13912 | ||
13913 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 13914 | #line 13915 "configure" |
b12915c1 VZ |
13915 | #include "confdefs.h" |
13916 | #include <pwd.h> | |
698dcdb6 | 13917 | int main() { |
b12915c1 VZ |
13918 | |
13919 | char *p; | |
13920 | struct passwd *pw; | |
13921 | p = pw->pw_gecos; | |
698dcdb6 VZ |
13922 | |
13923 | ; return 0; } | |
13924 | EOF | |
613d0995 | 13925 | if { (eval echo configure:13926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13926 | rm -rf conftest* |
13927 | ||
b12915c1 | 13928 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 13929 | |
b12915c1 | 13930 | else |
698dcdb6 VZ |
13931 | echo "configure: failed program was:" >&5 |
13932 | cat conftest.$ac_ext >&5 | |
13933 | rm -rf conftest* | |
13934 | ||
b12915c1 | 13935 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
13936 | |
13937 | ||
6232543b | 13938 | fi |
698dcdb6 VZ |
13939 | rm -f conftest* |
13940 | ||
703e0a69 | 13941 | |
1e487827 | 13942 | fi |
698dcdb6 VZ |
13943 | |
13944 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 13945 | |
bd3277fe | 13946 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 13947 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
13948 | #define HAVE_PW_GECOS 1 |
13949 | EOF | |
13950 | ||
13951 | fi | |
13952 | ||
698dcdb6 VZ |
13953 | |
13954 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
613d0995 | 13955 | echo "configure:13956: checking for working const" >&5 |
698dcdb6 VZ |
13956 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
13957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13958 | else |
698dcdb6 | 13959 | cat > conftest.$ac_ext <<EOF |
613d0995 | 13960 | #line 13961 "configure" |
10f2d63a | 13961 | #include "confdefs.h" |
698dcdb6 VZ |
13962 | |
13963 | int main() { | |
13964 | ||
13965 | /* Ultrix mips cc rejects this. */ | |
4cdb0ab0 | 13966 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
13967 | /* SunOS 4.1.1 cc rejects this. */ |
13968 | char const *const *ccp; | |
13969 | char **p; | |
13970 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13971 | struct point {int x, y;}; | |
13972 | static struct point const zero = {0,0}; | |
13973 | /* AIX XL C 1.02.0.0 rejects this. | |
13974 | It does not let you subtract one const X* pointer from another in an arm | |
13975 | of an if-expression whose if-part is not a constant expression */ | |
13976 | const char *g = "string"; | |
13977 | ccp = &g + (g ? g-g : 0); | |
13978 | /* HPUX 7.0 cc rejects these. */ | |
13979 | ++ccp; | |
13980 | p = (char**) ccp; | |
13981 | ccp = (char const *const *) p; | |
13982 | { /* SCO 3.2v4 cc rejects this. */ | |
13983 | char *t; | |
13984 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13985 | ||
13986 | *t++ = 0; | |
10f2d63a | 13987 | } |
698dcdb6 VZ |
13988 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
13989 | int x[] = {25, 17}; | |
13990 | const int *foo = &x[0]; | |
13991 | ++foo; | |
703e0a69 | 13992 | } |
698dcdb6 VZ |
13993 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
13994 | typedef const int *iptr; | |
13995 | iptr p = 0; | |
13996 | ++p; | |
6232543b | 13997 | } |
698dcdb6 VZ |
13998 | { /* AIX XL C 1.02.0.0 rejects this saying |
13999 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14000 | struct s { int j; const int *ap[3]; }; | |
14001 | struct s *b; b->j = 5; | |
1e487827 | 14002 | } |
698dcdb6 VZ |
14003 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14004 | const int foo = 10; | |
14005 | } | |
4f14bcd8 GD |
14006 | |
14007 | ; return 0; } | |
698dcdb6 | 14008 | EOF |
613d0995 | 14009 | if { (eval echo configure:14010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14010 | rm -rf conftest* |
14011 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14012 | else |
14013 | echo "configure: failed program was:" >&5 | |
14014 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14015 | rm -rf conftest* |
14016 | ac_cv_c_const=no | |
703e0a69 | 14017 | fi |
4f14bcd8 | 14018 | rm -f conftest* |
698dcdb6 VZ |
14019 | fi |
14020 | ||
4f14bcd8 GD |
14021 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14022 | if test $ac_cv_c_const = no; then | |
14023 | cat >> confdefs.h <<\EOF | |
14024 | #define const | |
698dcdb6 VZ |
14025 | EOF |
14026 | ||
4f14bcd8 | 14027 | fi |
698dcdb6 | 14028 | |
4f14bcd8 | 14029 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
613d0995 | 14030 | echo "configure:14031: checking for inline" >&5 |
4f14bcd8 | 14031 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14032 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14033 | else |
4f14bcd8 GD |
14034 | ac_cv_c_inline=no |
14035 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14036 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14037 | #line 14038 "configure" |
10f2d63a | 14038 | #include "confdefs.h" |
4f14bcd8 GD |
14039 | |
14040 | int main() { | |
4cdb0ab0 | 14041 | } $ac_kw foo() { |
4f14bcd8 | 14042 | ; return 0; } |
698dcdb6 | 14043 | EOF |
613d0995 | 14044 | if { (eval echo configure:14045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14045 | rm -rf conftest* |
14046 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14047 | else |
698dcdb6 VZ |
14048 | echo "configure: failed program was:" >&5 |
14049 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14050 | fi |
4f14bcd8 GD |
14051 | rm -f conftest* |
14052 | done | |
698dcdb6 | 14053 | |
10f2d63a | 14054 | fi |
4f14bcd8 GD |
14055 | |
14056 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14057 | case "$ac_cv_c_inline" in | |
14058 | inline | yes) ;; | |
14059 | no) cat >> confdefs.h <<\EOF | |
14060 | #define inline | |
14061 | EOF | |
14062 | ;; | |
14063 | *) cat >> confdefs.h <<EOF | |
14064 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14065 | EOF |
4f14bcd8 GD |
14066 | ;; |
14067 | esac | |
698dcdb6 VZ |
14068 | |
14069 | ||
4f14bcd8 | 14070 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
613d0995 | 14071 | echo "configure:14072: checking size of char" >&5 |
4f14bcd8 | 14072 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14073 | echo $ac_n "(cached) $ac_c" 1>&6 |
14074 | else | |
14075 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14076 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14077 | else |
14078 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14079 | #line 14080 "configure" |
698dcdb6 VZ |
14080 | #include "confdefs.h" |
14081 | #include <stdio.h> | |
14082 | main() | |
14083 | { | |
14084 | FILE *f=fopen("conftestval", "w"); | |
14085 | if (!f) exit(1); | |
4f14bcd8 | 14086 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
14087 | exit(0); |
14088 | } | |
14089 | EOF | |
613d0995 | 14090 | if { (eval echo configure:14091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14091 | then |
4f14bcd8 | 14092 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14093 | else |
698dcdb6 VZ |
14094 | echo "configure: failed program was:" >&5 |
14095 | cat conftest.$ac_ext >&5 | |
14096 | rm -fr conftest* | |
4f14bcd8 | 14097 | ac_cv_sizeof_char=0 |
6232543b | 14098 | fi |
698dcdb6 VZ |
14099 | rm -fr conftest* |
14100 | fi | |
14101 | ||
703e0a69 | 14102 | fi |
4f14bcd8 | 14103 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14104 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14105 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14106 | EOF |
14107 | ||
1e487827 | 14108 | |
4f14bcd8 | 14109 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
613d0995 | 14110 | echo "configure:14111: checking size of short" >&5 |
4f14bcd8 | 14111 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14112 | echo $ac_n "(cached) $ac_c" 1>&6 |
14113 | else | |
4f14bcd8 GD |
14114 | if test "$cross_compiling" = yes; then |
14115 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14116 | else |
698dcdb6 | 14117 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14118 | #line 14119 "configure" |
b93d0d08 | 14119 | #include "confdefs.h" |
4f14bcd8 GD |
14120 | #include <stdio.h> |
14121 | main() | |
14122 | { | |
14123 | FILE *f=fopen("conftestval", "w"); | |
14124 | if (!f) exit(1); | |
14125 | fprintf(f, "%d\n", sizeof(short)); | |
14126 | exit(0); | |
14127 | } | |
698dcdb6 | 14128 | EOF |
613d0995 | 14129 | if { (eval echo configure:14130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14130 | then |
4f14bcd8 | 14131 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14132 | else |
698dcdb6 VZ |
14133 | echo "configure: failed program was:" >&5 |
14134 | cat conftest.$ac_ext >&5 | |
14135 | rm -fr conftest* | |
4f14bcd8 | 14136 | ac_cv_sizeof_short=0 |
b93d0d08 | 14137 | fi |
698dcdb6 | 14138 | rm -fr conftest* |
b93d0d08 VS |
14139 | fi |
14140 | ||
b93d0d08 | 14141 | fi |
4f14bcd8 | 14142 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14143 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14144 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14145 | EOF |
14146 | ||
698dcdb6 | 14147 | |
4f14bcd8 | 14148 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
613d0995 | 14149 | echo "configure:14150: checking size of int *" >&5 |
4f14bcd8 | 14150 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 14151 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14152 | else |
4f14bcd8 GD |
14153 | if test "$cross_compiling" = yes; then |
14154 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 14155 | else |
3a922bb4 | 14156 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14157 | #line 14158 "configure" |
3a922bb4 | 14158 | #include "confdefs.h" |
4f14bcd8 GD |
14159 | #include <stdio.h> |
14160 | main() | |
14161 | { | |
14162 | FILE *f=fopen("conftestval", "w"); | |
14163 | if (!f) exit(1); | |
14164 | fprintf(f, "%d\n", sizeof(int *)); | |
14165 | exit(0); | |
14166 | } | |
14167 | EOF | |
613d0995 | 14168 | if { (eval echo configure:14169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14169 | then |
14170 | ac_cv_sizeof_int_p=`cat conftestval` | |
14171 | else | |
14172 | echo "configure: failed program was:" >&5 | |
14173 | cat conftest.$ac_ext >&5 | |
14174 | rm -fr conftest* | |
14175 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 14176 | fi |
4f14bcd8 | 14177 | rm -fr conftest* |
3a922bb4 | 14178 | fi |
698dcdb6 | 14179 | |
4f14bcd8 GD |
14180 | fi |
14181 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
14182 | cat >> confdefs.h <<EOF | |
14183 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
14184 | EOF |
14185 | ||
703e0a69 | 14186 | |
4f14bcd8 | 14187 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
613d0995 | 14188 | echo "configure:14189: checking size of int" >&5 |
4f14bcd8 | 14189 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14190 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14191 | else |
14192 | if test "$cross_compiling" = yes; then | |
14193 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14194 | else |
14195 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14196 | #line 14197 "configure" |
10f2d63a | 14197 | #include "confdefs.h" |
4f14bcd8 GD |
14198 | #include <stdio.h> |
14199 | main() | |
14200 | { | |
14201 | FILE *f=fopen("conftestval", "w"); | |
14202 | if (!f) exit(1); | |
14203 | fprintf(f, "%d\n", sizeof(int)); | |
14204 | exit(0); | |
14205 | } | |
698dcdb6 | 14206 | EOF |
613d0995 | 14207 | if { (eval echo configure:14208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14208 | then |
14209 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14210 | else |
698dcdb6 | 14211 | echo "configure: failed program was:" >&5 |
10f2d63a | 14212 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14213 | rm -fr conftest* |
14214 | ac_cv_sizeof_int=0 | |
10f2d63a | 14215 | fi |
4f14bcd8 | 14216 | rm -fr conftest* |
10f2d63a | 14217 | fi |
10f2d63a | 14218 | |
4f14bcd8 GD |
14219 | fi |
14220 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14221 | cat >> confdefs.h <<EOF | |
14222 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14223 | EOF |
14224 | ||
698dcdb6 | 14225 | |
4f14bcd8 | 14226 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
613d0995 | 14227 | echo "configure:14228: checking size of long" >&5 |
4f14bcd8 | 14228 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14229 | echo $ac_n "(cached) $ac_c" 1>&6 |
14230 | else | |
4f14bcd8 GD |
14231 | if test "$cross_compiling" = yes; then |
14232 | ac_cv_sizeof_long=4 | |
14233 | else | |
14234 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14235 | #line 14236 "configure" |
10f2d63a | 14236 | #include "confdefs.h" |
4f14bcd8 GD |
14237 | #include <stdio.h> |
14238 | main() | |
14239 | { | |
14240 | FILE *f=fopen("conftestval", "w"); | |
14241 | if (!f) exit(1); | |
14242 | fprintf(f, "%d\n", sizeof(long)); | |
14243 | exit(0); | |
14244 | } | |
698dcdb6 | 14245 | EOF |
613d0995 | 14246 | if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14247 | then |
14248 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14249 | else |
698dcdb6 VZ |
14250 | echo "configure: failed program was:" >&5 |
14251 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14252 | rm -fr conftest* |
14253 | ac_cv_sizeof_long=0 | |
10f2d63a | 14254 | fi |
4f14bcd8 | 14255 | rm -fr conftest* |
10f2d63a | 14256 | fi |
698dcdb6 | 14257 | |
4f14bcd8 GD |
14258 | fi |
14259 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14260 | cat >> confdefs.h <<EOF | |
14261 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14262 | EOF |
14263 | ||
698dcdb6 | 14264 | |
4f14bcd8 | 14265 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
613d0995 | 14266 | echo "configure:14267: checking size of long long" >&5 |
4f14bcd8 | 14267 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14268 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14269 | else |
4f14bcd8 GD |
14270 | if test "$cross_compiling" = yes; then |
14271 | ac_cv_sizeof_long_long=0 | |
14272 | else | |
14273 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14274 | #line 14275 "configure" |
10f2d63a | 14275 | #include "confdefs.h" |
4f14bcd8 GD |
14276 | #include <stdio.h> |
14277 | main() | |
14278 | { | |
14279 | FILE *f=fopen("conftestval", "w"); | |
14280 | if (!f) exit(1); | |
14281 | fprintf(f, "%d\n", sizeof(long long)); | |
14282 | exit(0); | |
14283 | } | |
698dcdb6 | 14284 | EOF |
613d0995 | 14285 | if { (eval echo configure:14286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14286 | then |
14287 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14288 | else |
14289 | echo "configure: failed program was:" >&5 | |
14290 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14291 | rm -fr conftest* |
14292 | ac_cv_sizeof_long_long=0 | |
14293 | fi | |
14294 | rm -fr conftest* | |
698dcdb6 | 14295 | fi |
698dcdb6 VZ |
14296 | |
14297 | fi | |
4f14bcd8 GD |
14298 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14299 | cat >> confdefs.h <<EOF | |
14300 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14301 | EOF |
14302 | ||
10f2d63a | 14303 | |
4f14bcd8 GD |
14304 | |
14305 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
613d0995 | 14306 | echo "configure:14307: checking size of wchar_t" >&5 |
4f14bcd8 | 14307 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14308 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14309 | else |
4f14bcd8 GD |
14310 | |
14311 | if test "$cross_compiling" = yes; then | |
14312 | wx_cv_sizeof_wchar_t=4 | |
14313 | ||
14314 | else | |
14315 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14316 | #line 14317 "configure" |
10f2d63a | 14317 | #include "confdefs.h" |
698dcdb6 | 14318 | |
4f14bcd8 | 14319 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14320 | # ifdef __CYGWIN__ |
14321 | # include <stddef.h> | |
14322 | # endif | |
4f14bcd8 GD |
14323 | # include <wchar.h> |
14324 | #endif | |
14325 | #ifdef HAVE_STDLIB_H | |
14326 | # include <stdlib.h> | |
14327 | #endif | |
14328 | #include <stdio.h> | |
14329 | int main() | |
14330 | { | |
14331 | FILE *f=fopen("conftestval", "w"); | |
14332 | if (!f) exit(1); | |
14333 | fprintf(f, "%i", sizeof(wchar_t)); | |
14334 | exit(0); | |
14335 | } | |
14336 | ||
698dcdb6 | 14337 | EOF |
613d0995 | 14338 | if { (eval echo configure:14339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14339 | then |
14340 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14341 | else |
14342 | echo "configure: failed program was:" >&5 | |
14343 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14344 | rm -fr conftest* |
14345 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14346 | fi |
4f14bcd8 GD |
14347 | rm -fr conftest* |
14348 | fi | |
14349 | ||
698dcdb6 VZ |
14350 | |
14351 | fi | |
4f14bcd8 GD |
14352 | |
14353 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
14354 | ||
14355 | cat >> confdefs.h <<EOF | |
14356 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
14357 | EOF |
14358 | ||
18dbb1f6 | 14359 | |
4f14bcd8 | 14360 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
613d0995 | 14361 | echo "configure:14362: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 14362 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
14363 | echo $ac_n "(cached) $ac_c" 1>&6 |
14364 | else | |
4f14bcd8 GD |
14365 | ac_cv_c_bigendian=unknown |
14366 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 14367 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14368 | #line 14369 "configure" |
18dbb1f6 | 14369 | #include "confdefs.h" |
4f14bcd8 GD |
14370 | #include <sys/types.h> |
14371 | #include <sys/param.h> | |
14372 | int main() { | |
18dbb1f6 | 14373 | |
4f14bcd8 GD |
14374 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
14375 | bogus endian macros | |
14376 | #endif | |
14377 | ; return 0; } | |
14378 | EOF | |
613d0995 | 14379 | if { (eval echo configure:14380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14380 | rm -rf conftest* |
14381 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14382 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14383 | #line 14384 "configure" |
4f14bcd8 GD |
14384 | #include "confdefs.h" |
14385 | #include <sys/types.h> | |
14386 | #include <sys/param.h> | |
18dbb1f6 | 14387 | int main() { |
4f14bcd8 GD |
14388 | |
14389 | #if BYTE_ORDER != BIG_ENDIAN | |
14390 | not big endian | |
14391 | #endif | |
18dbb1f6 VZ |
14392 | ; return 0; } |
14393 | EOF | |
613d0995 | 14394 | if { (eval echo configure:14395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 14395 | rm -rf conftest* |
4f14bcd8 | 14396 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
14397 | else |
14398 | echo "configure: failed program was:" >&5 | |
14399 | cat conftest.$ac_ext >&5 | |
14400 | rm -rf conftest* | |
4f14bcd8 | 14401 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
14402 | fi |
14403 | rm -f conftest* | |
698dcdb6 | 14404 | else |
4f14bcd8 GD |
14405 | echo "configure: failed program was:" >&5 |
14406 | cat conftest.$ac_ext >&5 | |
1e487827 | 14407 | fi |
4f14bcd8 GD |
14408 | rm -f conftest* |
14409 | if test $ac_cv_c_bigendian = unknown; then | |
14410 | if test "$cross_compiling" = yes; then | |
14411 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
14412 | else |
14413 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14414 | #line 14415 "configure" |
b3e8d00a | 14415 | #include "confdefs.h" |
4f14bcd8 GD |
14416 | main () { |
14417 | /* Are we little or big endian? From Harbison&Steele. */ | |
14418 | union | |
14419 | { | |
14420 | long l; | |
14421 | char c[sizeof (long)]; | |
14422 | } u; | |
14423 | u.l = 1; | |
14424 | exit (u.c[sizeof (long) - 1] == 1); | |
14425 | } | |
b3e8d00a | 14426 | EOF |
613d0995 | 14427 | if { (eval echo configure:14428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14428 | then |
14429 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
14430 | else |
14431 | echo "configure: failed program was:" >&5 | |
14432 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14433 | rm -fr conftest* |
14434 | ac_cv_c_bigendian=yes | |
b3e8d00a | 14435 | fi |
4f14bcd8 | 14436 | rm -fr conftest* |
b3e8d00a VZ |
14437 | fi |
14438 | ||
4f14bcd8 GD |
14439 | fi |
14440 | fi | |
14441 | ||
14442 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
14443 | if test $ac_cv_c_bigendian = unknown; then | |
14444 | 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 | |
14445 | fi | |
14446 | if test $ac_cv_c_bigendian = yes; then | |
14447 | cat >> confdefs.h <<\EOF | |
14448 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 14449 | EOF |
4f14bcd8 | 14450 | |
b3e8d00a | 14451 | fi |
b3e8d00a VZ |
14452 | |
14453 | ||
4f14bcd8 | 14454 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
613d0995 | 14455 | echo "configure:14456: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
14456 | if test -z "$CXXCPP"; then |
14457 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
14458 | echo $ac_n "(cached) $ac_c" 1>&6 |
14459 | else | |
4f14bcd8 GD |
14460 | ac_ext=C |
14461 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14462 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14463 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14464 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14465 | cross_compiling=$ac_cv_prog_cxx_cross | |
14466 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 14467 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14468 | #line 14469 "configure" |
10f2d63a | 14469 | #include "confdefs.h" |
4f14bcd8 | 14470 | #include <stdlib.h> |
698dcdb6 | 14471 | EOF |
4f14bcd8 | 14472 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
613d0995 | 14473 | { (eval echo configure:14474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14474 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14475 | if test -z "$ac_err"; then | |
14476 | : | |
698dcdb6 | 14477 | else |
4f14bcd8 | 14478 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14479 | echo "configure: failed program was:" >&5 |
14480 | cat conftest.$ac_ext >&5 | |
14481 | rm -rf conftest* | |
4f14bcd8 | 14482 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
14483 | fi |
14484 | rm -f conftest* | |
4f14bcd8 GD |
14485 | ac_cv_prog_CXXCPP="$CXXCPP" |
14486 | ac_ext=C | |
14487 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14488 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14489 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14490 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14491 | cross_compiling=$ac_cv_prog_cxx_cross | |
14492 | fi | |
698dcdb6 | 14493 | fi |
4f14bcd8 GD |
14494 | CXXCPP="$ac_cv_prog_CXXCPP" |
14495 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 14496 | |
4f14bcd8 GD |
14497 | |
14498 | if test "$cross_compiling" = "yes"; then | |
14499 | cat >> confdefs.h <<\EOF | |
14500 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
14501 | EOF |
14502 | ||
4f14bcd8 GD |
14503 | else |
14504 | ||
14505 | ac_ext=C | |
14506 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14507 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14508 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14509 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14510 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 14511 | |
4f14bcd8 GD |
14512 | |
14513 | for ac_hdr in iostream | |
14514 | do | |
14515 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14516 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 14517 | echo "configure:14518: checking for $ac_hdr" >&5 |
4f14bcd8 | 14518 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
14519 | echo $ac_n "(cached) $ac_c" 1>&6 |
14520 | else | |
14521 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14522 | #line 14523 "configure" |
10f2d63a | 14523 | #include "confdefs.h" |
4f14bcd8 | 14524 | #include <$ac_hdr> |
698dcdb6 | 14525 | EOF |
4f14bcd8 | 14526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
613d0995 | 14527 | { (eval echo configure:14528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14529 | if test -z "$ac_err"; then | |
698dcdb6 | 14530 | rm -rf conftest* |
4f14bcd8 | 14531 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14532 | else |
4f14bcd8 | 14533 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14534 | echo "configure: failed program was:" >&5 |
14535 | cat conftest.$ac_ext >&5 | |
14536 | rm -rf conftest* | |
4f14bcd8 | 14537 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
14538 | fi |
14539 | rm -f conftest* | |
14540 | fi | |
4f14bcd8 | 14541 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 14542 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14543 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
14544 | cat >> confdefs.h <<EOF | |
14545 | #define $ac_tr_hdr 1 | |
10f2d63a | 14546 | EOF |
4f14bcd8 | 14547 | |
698dcdb6 VZ |
14548 | else |
14549 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 14550 | fi |
4f14bcd8 | 14551 | done |
10f2d63a | 14552 | |
10f2d63a | 14553 | |
4f14bcd8 GD |
14554 | if test "$ac_cv_header_iostream" = "yes" ; then |
14555 | : | |
14556 | else | |
14557 | cat >> confdefs.h <<\EOF | |
14558 | #define wxUSE_IOSTREAMH 1 | |
14559 | EOF | |
14560 | ||
14561 | fi | |
1e487827 | 14562 | |
4f14bcd8 GD |
14563 | ac_ext=c |
14564 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14565 | ac_cpp='$CPP $CPPFLAGS' | |
14566 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14567 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14568 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 14569 | |
4f14bcd8 | 14570 | fi |
698dcdb6 VZ |
14571 | |
14572 | ||
14573 | ||
4f14bcd8 | 14574 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
613d0995 | 14575 | echo "configure:14576: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 14576 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
14577 | echo $ac_n "(cached) $ac_c" 1>&6 |
14578 | else | |
14579 | ||
4f14bcd8 GD |
14580 | |
14581 | ac_ext=C | |
14582 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14583 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14584 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14585 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14586 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 14587 | |
10f2d63a | 14588 | |
4f14bcd8 | 14589 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14590 | #line 14591 "configure" |
4f14bcd8 | 14591 | #include "confdefs.h" |
10f2d63a | 14592 | |
4f14bcd8 GD |
14593 | |
14594 | int main() { | |
f6bcfd97 | 14595 | |
4f14bcd8 | 14596 | bool b = true; |
f6bcfd97 | 14597 | |
4f14bcd8 GD |
14598 | return 0; |
14599 | ||
698dcdb6 VZ |
14600 | ; return 0; } |
14601 | EOF | |
613d0995 | 14602 | if { (eval echo configure:14603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14603 | rm -rf conftest* |
14604 | ||
4f14bcd8 GD |
14605 | wx_cv_cpp_bool=yes |
14606 | ||
10f2d63a | 14607 | else |
698dcdb6 VZ |
14608 | echo "configure: failed program was:" >&5 |
14609 | cat conftest.$ac_ext >&5 | |
14610 | rm -rf conftest* | |
14611 | ||
4f14bcd8 GD |
14612 | wx_cv_cpp_bool=no |
14613 | ||
14614 | ||
14615 | fi | |
14616 | rm -f conftest* | |
c521c494 | 14617 | |
4f14bcd8 GD |
14618 | ac_ext=c |
14619 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14620 | ac_cpp='$CPP $CPPFLAGS' | |
14621 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14622 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14623 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 14624 | |
4f14bcd8 GD |
14625 | |
14626 | fi | |
c521c494 | 14627 | |
4f14bcd8 | 14628 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 14629 | |
4f14bcd8 GD |
14630 | if test "$wx_cv_cpp_bool" = "yes"; then |
14631 | cat >> confdefs.h <<\EOF | |
14632 | #define HAVE_BOOL 1 | |
14633 | EOF | |
c521c494 | 14634 | |
4f14bcd8 GD |
14635 | fi |
14636 | ||
14637 | ||
14638 | ||
14639 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
613d0995 | 14640 | echo "configure:14641: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
14641 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
14642 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14644 | else | |
14645 | ac_save_LIBS="$LIBS" | |
14646 | LIBS="-lc $LIBS" | |
14647 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14648 | #line 14649 "configure" |
4f14bcd8 GD |
14649 | #include "confdefs.h" |
14650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14651 | /* We use char because int might match the return type of a gcc2 | |
14652 | builtin and then its argument prototype would still apply. */ | |
14653 | char wcslen(); | |
14654 | ||
14655 | int main() { | |
14656 | wcslen() | |
698dcdb6 VZ |
14657 | ; return 0; } |
14658 | EOF | |
613d0995 | 14659 | if { (eval echo configure:14660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14660 | rm -rf conftest* |
4f14bcd8 | 14661 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 14662 | else |
698dcdb6 VZ |
14663 | echo "configure: failed program was:" >&5 |
14664 | cat conftest.$ac_ext >&5 | |
14665 | rm -rf conftest* | |
4f14bcd8 | 14666 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14667 | fi |
698dcdb6 | 14668 | rm -f conftest* |
4f14bcd8 | 14669 | LIBS="$ac_save_LIBS" |
703e0a69 | 14670 | |
1e487827 | 14671 | fi |
4f14bcd8 GD |
14672 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14673 | echo "$ac_t""yes" 1>&6 | |
14674 | ||
14675 | cat >> confdefs.h <<\EOF | |
14676 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14677 | EOF |
14678 | ||
3d63bc3a | 14679 | WCHAR_LINK= |
4f14bcd8 | 14680 | |
9d8deca0 | 14681 | else |
4f14bcd8 | 14682 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 14683 | |
4f14bcd8 | 14684 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
613d0995 | 14685 | echo "configure:14686: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
14686 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
14687 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 14688 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14689 | else |
4f14bcd8 GD |
14690 | ac_save_LIBS="$LIBS" |
14691 | LIBS="-lw $LIBS" | |
14692 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14693 | #line 14694 "configure" |
10f2d63a | 14694 | #include "confdefs.h" |
4f14bcd8 GD |
14695 | /* Override any gcc2 internal prototype to avoid an error. */ |
14696 | /* We use char because int might match the return type of a gcc2 | |
14697 | builtin and then its argument prototype would still apply. */ | |
14698 | char wcslen(); | |
10f2d63a | 14699 | |
698dcdb6 | 14700 | int main() { |
4f14bcd8 | 14701 | wcslen() |
698dcdb6 VZ |
14702 | ; return 0; } |
14703 | EOF | |
613d0995 | 14704 | if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14705 | rm -rf conftest* |
4f14bcd8 | 14706 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 14707 | else |
698dcdb6 VZ |
14708 | echo "configure: failed program was:" >&5 |
14709 | cat conftest.$ac_ext >&5 | |
14710 | rm -rf conftest* | |
4f14bcd8 | 14711 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14712 | fi |
698dcdb6 | 14713 | rm -f conftest* |
4f14bcd8 | 14714 | LIBS="$ac_save_LIBS" |
703e0a69 | 14715 | |
1e487827 | 14716 | fi |
4f14bcd8 GD |
14717 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14718 | echo "$ac_t""yes" 1>&6 | |
14719 | ||
14720 | cat >> confdefs.h <<\EOF | |
14721 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14722 | EOF |
14723 | ||
3d63bc3a | 14724 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
14725 | |
14726 | else | |
14727 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 14728 | |
4f14bcd8 | 14729 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
613d0995 | 14730 | echo "configure:14731: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
14731 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
14732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
14733 | echo $ac_n "(cached) $ac_c" 1>&6 |
14734 | else | |
4f14bcd8 GD |
14735 | ac_save_LIBS="$LIBS" |
14736 | LIBS="-lmsvcrt $LIBS" | |
14737 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14738 | #line 14739 "configure" |
95c8801c | 14739 | #include "confdefs.h" |
4f14bcd8 GD |
14740 | /* Override any gcc2 internal prototype to avoid an error. */ |
14741 | /* We use char because int might match the return type of a gcc2 | |
14742 | builtin and then its argument prototype would still apply. */ | |
14743 | char wcslen(); | |
95c8801c | 14744 | |
4f14bcd8 GD |
14745 | int main() { |
14746 | wcslen() | |
698dcdb6 VZ |
14747 | ; return 0; } |
14748 | EOF | |
613d0995 | 14749 | if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14750 | rm -rf conftest* |
4f14bcd8 | 14751 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 14752 | else |
698dcdb6 VZ |
14753 | echo "configure: failed program was:" >&5 |
14754 | cat conftest.$ac_ext >&5 | |
14755 | rm -rf conftest* | |
4f14bcd8 | 14756 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 14757 | fi |
698dcdb6 | 14758 | rm -f conftest* |
4f14bcd8 | 14759 | LIBS="$ac_save_LIBS" |
95c8801c VS |
14760 | |
14761 | fi | |
4f14bcd8 GD |
14762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14763 | echo "$ac_t""yes" 1>&6 | |
14764 | ||
14765 | cat >> confdefs.h <<\EOF | |
14766 | #define HAVE_WCSLEN 1 | |
14767 | EOF | |
698dcdb6 | 14768 | |
3d63bc3a | 14769 | WCHAR_LINK= |
4f14bcd8 GD |
14770 | |
14771 | else | |
14772 | echo "$ac_t""no" 1>&6 | |
14773 | fi | |
10f2d63a | 14774 | |
4f14bcd8 GD |
14775 | |
14776 | fi | |
95c8801c | 14777 | |
4f14bcd8 | 14778 | |
95c8801c | 14779 | fi |
10f2d63a | 14780 | |
1e487827 | 14781 | |
4f14bcd8 | 14782 | for ac_func in wcsrtombs |
eb4efbdc | 14783 | do |
698dcdb6 | 14784 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 14785 | echo "configure:14786: checking for $ac_func" >&5 |
698dcdb6 VZ |
14786 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14788 | else | |
14789 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14790 | #line 14791 "configure" |
eb4efbdc VZ |
14791 | #include "confdefs.h" |
14792 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14793 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
14794 | #include <assert.h> |
14795 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14796 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14797 | builtin and then its argument prototype would still apply. */ |
14798 | char $ac_func(); | |
14799 | ||
14800 | int main() { | |
eb4efbdc VZ |
14801 | |
14802 | /* The GNU C library defines this for functions which it implements | |
14803 | to always fail with ENOSYS. Some functions are actually named | |
14804 | something starting with __ and the normal name is an alias. */ | |
14805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14806 | choke me | |
14807 | #else | |
698dcdb6 | 14808 | $ac_func(); |
eb4efbdc VZ |
14809 | #endif |
14810 | ||
698dcdb6 | 14811 | ; return 0; } |
eb4efbdc | 14812 | EOF |
613d0995 | 14813 | if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14814 | rm -rf conftest* |
14815 | eval "ac_cv_func_$ac_func=yes" | |
14816 | else | |
14817 | echo "configure: failed program was:" >&5 | |
14818 | cat conftest.$ac_ext >&5 | |
14819 | rm -rf conftest* | |
14820 | eval "ac_cv_func_$ac_func=no" | |
14821 | fi | |
14822 | rm -f conftest* | |
14823 | fi | |
eb4efbdc | 14824 | |
698dcdb6 VZ |
14825 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14826 | echo "$ac_t""yes" 1>&6 | |
14827 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14828 | cat >> confdefs.h <<EOF | |
14829 | #define $ac_tr_func 1 | |
14830 | EOF | |
14831 | ||
14832 | else | |
14833 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14834 | fi |
14835 | done | |
14836 | ||
698dcdb6 | 14837 | |
4f14bcd8 | 14838 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
613d0995 | 14839 | echo "configure:14840: checking for vprintf" >&5 |
4f14bcd8 | 14840 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
14841 | echo $ac_n "(cached) $ac_c" 1>&6 |
14842 | else | |
4f14bcd8 | 14843 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14844 | #line 14845 "configure" |
f6bcfd97 | 14845 | #include "confdefs.h" |
4f14bcd8 GD |
14846 | /* System header to define __stub macros and hopefully few prototypes, |
14847 | which can conflict with char vprintf(); below. */ | |
14848 | #include <assert.h> | |
14849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14850 | /* We use char because int might match the return type of a gcc2 | |
14851 | builtin and then its argument prototype would still apply. */ | |
14852 | char vprintf(); | |
14853 | ||
698dcdb6 | 14854 | int main() { |
f6bcfd97 | 14855 | |
4f14bcd8 GD |
14856 | /* The GNU C library defines this for functions which it implements |
14857 | to always fail with ENOSYS. Some functions are actually named | |
14858 | something starting with __ and the normal name is an alias. */ | |
14859 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
14860 | choke me | |
14861 | #else | |
14862 | vprintf(); | |
14863 | #endif | |
f6bcfd97 | 14864 | |
698dcdb6 VZ |
14865 | ; return 0; } |
14866 | EOF | |
613d0995 | 14867 | if { (eval echo configure:14868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14868 | rm -rf conftest* |
4f14bcd8 | 14869 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 14870 | else |
698dcdb6 VZ |
14871 | echo "configure: failed program was:" >&5 |
14872 | cat conftest.$ac_ext >&5 | |
14873 | rm -rf conftest* | |
4f14bcd8 | 14874 | eval "ac_cv_func_vprintf=no" |
6232543b | 14875 | fi |
698dcdb6 | 14876 | rm -f conftest* |
1e487827 | 14877 | fi |
698dcdb6 | 14878 | |
4f14bcd8 GD |
14879 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
14880 | echo "$ac_t""yes" 1>&6 | |
14881 | cat >> confdefs.h <<\EOF | |
14882 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
14883 | EOF |
14884 | ||
4f14bcd8 GD |
14885 | else |
14886 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14887 | fi |
14888 | ||
4f14bcd8 GD |
14889 | if test "$ac_cv_func_vprintf" != yes; then |
14890 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
613d0995 | 14891 | echo "configure:14892: checking for _doprnt" >&5 |
4f14bcd8 | 14892 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
14893 | echo $ac_n "(cached) $ac_c" 1>&6 |
14894 | else | |
14895 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 14896 | #line 14897 "configure" |
10f2d63a VZ |
14897 | #include "confdefs.h" |
14898 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 14899 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
14900 | #include <assert.h> |
14901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14902 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14903 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14904 | char _doprnt(); |
698dcdb6 VZ |
14905 | |
14906 | int main() { | |
10f2d63a VZ |
14907 | |
14908 | /* The GNU C library defines this for functions which it implements | |
14909 | to always fail with ENOSYS. Some functions are actually named | |
14910 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 14911 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
14912 | choke me |
14913 | #else | |
4f14bcd8 | 14914 | _doprnt(); |
10f2d63a VZ |
14915 | #endif |
14916 | ||
698dcdb6 | 14917 | ; return 0; } |
10f2d63a | 14918 | EOF |
613d0995 | 14919 | if { (eval echo configure:14920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14920 | rm -rf conftest* |
4f14bcd8 | 14921 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
14922 | else |
14923 | echo "configure: failed program was:" >&5 | |
14924 | cat conftest.$ac_ext >&5 | |
14925 | rm -rf conftest* | |
4f14bcd8 | 14926 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
14927 | fi |
14928 | rm -f conftest* | |
14929 | fi | |
270a909e | 14930 | |
4f14bcd8 | 14931 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 14932 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14933 | cat >> confdefs.h <<\EOF |
14934 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 14935 | EOF |
4f14bcd8 | 14936 | |
698dcdb6 VZ |
14937 | else |
14938 | echo "$ac_t""no" 1>&6 | |
270a909e | 14939 | fi |
270a909e | 14940 | |
4f14bcd8 | 14941 | fi |
1e487827 | 14942 | |
52e8b690 | 14943 | |
52e8b690 | 14944 | |
52e8b690 | 14945 | |
52e8b690 | 14946 | |
52e8b690 | 14947 | |
4f14bcd8 | 14948 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
613d0995 | 14949 | echo "configure:14950: checking for vsnprintf" >&5 |
4f14bcd8 | 14950 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 14951 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 14952 | else |
4f14bcd8 | 14953 | |
af15babd | 14954 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14955 | #line 14956 "configure" |
c63c7106 | 14956 | #include "confdefs.h" |
698dcdb6 | 14957 | |
4f14bcd8 GD |
14958 | #include <stdio.h> |
14959 | #include <stdarg.h> | |
14960 | ||
af15babd VZ |
14961 | int main() { |
14962 | ||
4f14bcd8 GD |
14963 | int wx_test_vsnprintf(const char *, ...); |
14964 | ||
14965 | wx_test_vsnprintf("%s"); | |
14966 | return 0; | |
14967 | } | |
14968 | ||
14969 | int wx_test_vsnprintf(const char *fmt, ...) | |
14970 | { | |
14971 | char *s; | |
14972 | ||
14973 | va_list argp; | |
14974 | va_start(argp, fmt); | |
14975 | vsnprintf(s, 42, fmt, argp); | |
14976 | va_end(argp); | |
14977 | ||
af15babd VZ |
14978 | ; return 0; } |
14979 | EOF | |
613d0995 | 14980 | if { (eval echo configure:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14981 | rm -rf conftest* |
14982 | ||
4f14bcd8 GD |
14983 | wx_cv_func_vsnprintf=yes |
14984 | ||
af15babd VZ |
14985 | else |
14986 | echo "configure: failed program was:" >&5 | |
14987 | cat conftest.$ac_ext >&5 | |
14988 | rm -rf conftest* | |
14989 | ||
4f14bcd8 | 14990 | cat > conftest.$ac_ext <<EOF |
613d0995 | 14991 | #line 14992 "configure" |
af15babd | 14992 | #include "confdefs.h" |
af15babd | 14993 | |
4f14bcd8 GD |
14994 | #include <stdio.h> |
14995 | #include <stdarg.h> | |
14996 | ||
af15babd VZ |
14997 | int main() { |
14998 | ||
4f14bcd8 GD |
14999 | int wx_test_vsnprintf(const char *, ...); |
15000 | ||
15001 | wx_test_vsnprintf("%s"); | |
15002 | return 0; | |
15003 | } | |
15004 | ||
15005 | int wx_test_vsnprintf(const char *fmt, ...) | |
15006 | { | |
15007 | char *s; | |
af15babd | 15008 | |
4f14bcd8 GD |
15009 | va_list argp; |
15010 | va_start(argp, fmt); | |
15011 | _vsnprintf(s, 42, fmt, argp); | |
15012 | va_end(argp); | |
15013 | ||
af15babd VZ |
15014 | ; return 0; } |
15015 | EOF | |
613d0995 | 15016 | if { (eval echo configure:15017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15017 | rm -rf conftest* |
4f14bcd8 GD |
15018 | |
15019 | wx_cv_func_vsnprintf=yes | |
15020 | ||
af15babd VZ |
15021 | else |
15022 | echo "configure: failed program was:" >&5 | |
15023 | cat conftest.$ac_ext >&5 | |
15024 | rm -rf conftest* | |
4f14bcd8 GD |
15025 | |
15026 | wx_cv_func_vsnprintf=no | |
15027 | ||
af15babd VZ |
15028 | fi |
15029 | rm -f conftest* | |
4f14bcd8 | 15030 | |
af15babd | 15031 | fi |
4f14bcd8 | 15032 | rm -f conftest* |
af15babd | 15033 | |
af15babd | 15034 | fi |
af15babd | 15035 | |
4f14bcd8 | 15036 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15037 | |
4f14bcd8 GD |
15038 | if test "$wx_cv_func_vsnprintf" = yes; then |
15039 | cat >> confdefs.h <<\EOF | |
15040 | #define HAVE_VSNPRINTF 1 | |
15041 | EOF | |
15042 | ||
15043 | else | |
f9bc1684 | 15044 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15045 | fi |
15046 | ||
4f14bcd8 | 15047 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
613d0995 | 15048 | echo "configure:15049: checking for vsscanf" >&5 |
4f14bcd8 | 15049 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15050 | echo $ac_n "(cached) $ac_c" 1>&6 |
15051 | else | |
4f14bcd8 | 15052 | |
af15babd | 15053 | cat > conftest.$ac_ext <<EOF |
613d0995 | 15054 | #line 15055 "configure" |
af15babd | 15055 | #include "confdefs.h" |
af15babd | 15056 | |
4f14bcd8 GD |
15057 | #include <stdio.h> |
15058 | #include <stdarg.h> | |
15059 | ||
af15babd VZ |
15060 | int main() { |
15061 | ||
4f14bcd8 GD |
15062 | int wx_test_vsscanf(const char *, ...); |
15063 | ||
15064 | wx_test_vsscanf("%d"); | |
15065 | return 0; | |
15066 | } | |
af15babd | 15067 | |
4f14bcd8 GD |
15068 | int wx_test_vsscanf(const char *fmt, ...) |
15069 | { | |
15070 | va_list argp; | |
15071 | va_start(argp, fmt); | |
15072 | vsscanf("42", fmt, argp); | |
15073 | va_end(argp); | |
15074 | ||
af15babd VZ |
15075 | ; return 0; } |
15076 | EOF | |
613d0995 | 15077 | if { (eval echo configure:15078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15078 | rm -rf conftest* |
4f14bcd8 GD |
15079 | |
15080 | wx_cv_func_vsscanf=yes | |
15081 | ||
af15babd VZ |
15082 | else |
15083 | echo "configure: failed program was:" >&5 | |
15084 | cat conftest.$ac_ext >&5 | |
15085 | rm -rf conftest* | |
4f14bcd8 GD |
15086 | |
15087 | wx_cv_func_vsscanf=no | |
15088 | ||
af15babd VZ |
15089 | fi |
15090 | rm -f conftest* | |
4f14bcd8 | 15091 | |
af15babd VZ |
15092 | fi |
15093 | ||
4f14bcd8 GD |
15094 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15095 | ||
15096 | if test "$wx_cv_func_vsscanf" = yes; then | |
15097 | cat >> confdefs.h <<\EOF | |
15098 | #define HAVE_VSSCANF 1 | |
af15babd | 15099 | EOF |
4f14bcd8 | 15100 | |
af15babd | 15101 | fi |
af15babd | 15102 | |
4f14bcd8 | 15103 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15104 | |
4f14bcd8 GD |
15105 | |
15106 | ||
15107 | ac_ext=C | |
15108 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15110 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15111 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15112 | cross_compiling=$ac_cv_prog_cxx_cross | |
15113 | ||
b040e242 VS |
15114 | |
15115 | ||
15116 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15117 | if test "${with_libiconv_prefix+set}" = set; then | |
15118 | withval="$with_libiconv_prefix" | |
15119 | ||
15120 | for dir in `echo "$withval" | tr : ' '`; do | |
15121 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15122 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15123 | done | |
15124 | ||
15125 | fi | |
15126 | ||
15127 | ||
15128 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
613d0995 | 15129 | echo "configure:15130: checking for iconv" >&5 |
b040e242 | 15130 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15131 | echo $ac_n "(cached) $ac_c" 1>&6 |
15132 | else | |
4f14bcd8 | 15133 | |
b040e242 VS |
15134 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15135 | am_cv_lib_iconv=no | |
4f14bcd8 | 15136 | cat > conftest.$ac_ext <<EOF |
613d0995 | 15137 | #line 15138 "configure" |
af15babd | 15138 | #include "confdefs.h" |
b040e242 | 15139 | #include <stdlib.h> |
4f14bcd8 | 15140 | #include <iconv.h> |
af15babd | 15141 | int main() { |
b040e242 VS |
15142 | iconv_t cd = iconv_open("",""); |
15143 | iconv(cd,NULL,NULL,NULL,NULL); | |
15144 | iconv_close(cd); | |
af15babd VZ |
15145 | ; return 0; } |
15146 | EOF | |
613d0995 | 15147 | if { (eval echo configure:15148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15148 | rm -rf conftest* |
b040e242 | 15149 | am_cv_func_iconv=yes |
af15babd VZ |
15150 | else |
15151 | echo "configure: failed program was:" >&5 | |
15152 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15153 | fi |
15154 | rm -f conftest* | |
15155 | if test "$am_cv_func_iconv" != yes; then | |
15156 | am_save_LIBS="$LIBS" | |
15157 | LIBS="$LIBS -liconv" | |
15158 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15159 | #line 15160 "configure" |
b040e242 VS |
15160 | #include "confdefs.h" |
15161 | #include <stdlib.h> | |
15162 | #include <iconv.h> | |
15163 | int main() { | |
15164 | iconv_t cd = iconv_open("",""); | |
15165 | iconv(cd,NULL,NULL,NULL,NULL); | |
15166 | iconv_close(cd); | |
15167 | ; return 0; } | |
15168 | EOF | |
613d0995 | 15169 | if { (eval echo configure:15170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15170 | rm -rf conftest* |
b040e242 VS |
15171 | am_cv_lib_iconv=yes |
15172 | am_cv_func_iconv=yes | |
15173 | else | |
15174 | echo "configure: failed program was:" >&5 | |
15175 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15176 | fi |
15177 | rm -f conftest* | |
b040e242 VS |
15178 | LIBS="$am_save_LIBS" |
15179 | fi | |
15180 | ||
15181 | fi | |
15182 | ||
15183 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15184 | if test "$am_cv_func_iconv" = yes; then | |
15185 | cat >> confdefs.h <<\EOF | |
15186 | #define HAVE_ICONV 1 | |
15187 | EOF | |
15188 | ||
15189 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 | |
613d0995 | 15190 | echo "configure:15191: checking for iconv declaration" >&5 |
b040e242 VS |
15191 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
15192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15193 | else | |
15194 | ||
15195 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15196 | #line 15197 "configure" |
b040e242 VS |
15197 | #include "confdefs.h" |
15198 | ||
15199 | #include <stdlib.h> | |
15200 | #include <iconv.h> | |
15201 | extern | |
15202 | #ifdef __cplusplus | |
15203 | "C" | |
15204 | #endif | |
15205 | #if defined(__STDC__) || defined(__cplusplus) | |
15206 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15207 | #else | |
15208 | size_t iconv(); | |
15209 | #endif | |
15210 | ||
15211 | int main() { | |
af15babd | 15212 | |
b040e242 VS |
15213 | ; return 0; } |
15214 | EOF | |
613d0995 | 15215 | if { (eval echo configure:15216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 VS |
15216 | rm -rf conftest* |
15217 | am_cv_proto_iconv_arg1="" | |
15218 | else | |
15219 | echo "configure: failed program was:" >&5 | |
15220 | cat conftest.$ac_ext >&5 | |
15221 | rm -rf conftest* | |
15222 | am_cv_proto_iconv_arg1="const" | |
15223 | fi | |
15224 | rm -f conftest* | |
15225 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
af15babd | 15226 | fi |
af15babd | 15227 | |
b040e242 VS |
15228 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
15229 | echo "$ac_t""${ac_t:- | |
15230 | }$am_cv_proto_iconv" 1>&6 | |
15231 | cat >> confdefs.h <<EOF | |
15232 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15233 | EOF | |
15234 | ||
15235 | fi | |
15236 | LIBICONV= | |
15237 | if test "$am_cv_lib_iconv" = yes; then | |
15238 | LIBICONV="-liconv" | |
15239 | fi | |
15240 | ||
15241 | ||
15242 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15243 | ac_ext=c |
15244 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15245 | ac_cpp='$CPP $CPPFLAGS' | |
15246 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15247 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15248 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15249 | |
af15babd | 15250 | |
4f14bcd8 GD |
15251 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15252 | for ac_func in sigaction | |
af15babd VZ |
15253 | do |
15254 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15255 | echo "configure:15256: checking for $ac_func" >&5 |
af15babd VZ |
15256 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15258 | else | |
15259 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15260 | #line 15261 "configure" |
af15babd VZ |
15261 | #include "confdefs.h" |
15262 | /* System header to define __stub macros and hopefully few prototypes, | |
15263 | which can conflict with char $ac_func(); below. */ | |
15264 | #include <assert.h> | |
15265 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15266 | /* We use char because int might match the return type of a gcc2 | |
15267 | builtin and then its argument prototype would still apply. */ | |
15268 | char $ac_func(); | |
15269 | ||
15270 | int main() { | |
15271 | ||
15272 | /* The GNU C library defines this for functions which it implements | |
15273 | to always fail with ENOSYS. Some functions are actually named | |
15274 | something starting with __ and the normal name is an alias. */ | |
15275 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15276 | choke me | |
15277 | #else | |
15278 | $ac_func(); | |
15279 | #endif | |
15280 | ||
15281 | ; return 0; } | |
15282 | EOF | |
613d0995 | 15283 | if { (eval echo configure:15284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15284 | rm -rf conftest* |
15285 | eval "ac_cv_func_$ac_func=yes" | |
15286 | else | |
15287 | echo "configure: failed program was:" >&5 | |
15288 | cat conftest.$ac_ext >&5 | |
15289 | rm -rf conftest* | |
15290 | eval "ac_cv_func_$ac_func=no" | |
15291 | fi | |
15292 | rm -f conftest* | |
15293 | fi | |
15294 | ||
15295 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15296 | echo "$ac_t""yes" 1>&6 | |
15297 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15298 | cat >> confdefs.h <<EOF | |
15299 | #define $ac_tr_func 1 | |
15300 | EOF | |
4f14bcd8 | 15301 | |
af15babd VZ |
15302 | else |
15303 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15304 | fi |
15305 | done | |
15306 | ||
15307 | ||
15308 | if test "$ac_cv_func_sigaction" = "no"; then | |
15309 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15310 | wxUSE_ON_FATAL_EXCEPTION=no | |
15311 | fi | |
15312 | ||
15313 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15314 | ||
15315 | ac_ext=C | |
15316 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15317 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15318 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15319 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15320 | cross_compiling=$ac_cv_prog_cxx_cross | |
15321 | ||
15322 | ||
15323 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
613d0995 | 15324 | echo "configure:15325: checking for sa_handler type" >&5 |
4f14bcd8 | 15325 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15326 | echo $ac_n "(cached) $ac_c" 1>&6 |
15327 | else | |
4f14bcd8 GD |
15328 | |
15329 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15330 | #line 15331 "configure" |
af15babd | 15331 | #include "confdefs.h" |
4f14bcd8 | 15332 | #include <signal.h> |
af15babd | 15333 | int main() { |
4f14bcd8 GD |
15334 | |
15335 | extern void testSigHandler(int); | |
15336 | ||
15337 | struct sigaction sa; | |
15338 | sa.sa_handler = testSigHandler; | |
15339 | ||
af15babd VZ |
15340 | ; return 0; } |
15341 | EOF | |
613d0995 | 15342 | if { (eval echo configure:15343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15343 | rm -rf conftest* |
4f14bcd8 GD |
15344 | |
15345 | wx_cv_type_sa_handler=int | |
15346 | ||
af15babd VZ |
15347 | else |
15348 | echo "configure: failed program was:" >&5 | |
15349 | cat conftest.$ac_ext >&5 | |
15350 | rm -rf conftest* | |
4f14bcd8 GD |
15351 | |
15352 | wx_cv_type_sa_handler=void | |
15353 | ||
af15babd VZ |
15354 | fi |
15355 | rm -f conftest* | |
4f14bcd8 GD |
15356 | |
15357 | fi | |
15358 | ||
15359 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
15360 | ||
15361 | ac_ext=c | |
15362 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15363 | ac_cpp='$CPP $CPPFLAGS' | |
15364 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15365 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15366 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15367 | |
4f14bcd8 GD |
15368 | |
15369 | cat >> confdefs.h <<EOF | |
15370 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
15371 | EOF |
15372 | ||
4f14bcd8 GD |
15373 | fi |
15374 | fi | |
af15babd | 15375 | |
4f14bcd8 | 15376 | for ac_func in vfork |
af15babd VZ |
15377 | do |
15378 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15379 | echo "configure:15380: checking for $ac_func" >&5 |
af15babd VZ |
15380 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15382 | else | |
15383 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15384 | #line 15385 "configure" |
af15babd VZ |
15385 | #include "confdefs.h" |
15386 | /* System header to define __stub macros and hopefully few prototypes, | |
15387 | which can conflict with char $ac_func(); below. */ | |
15388 | #include <assert.h> | |
15389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15390 | /* We use char because int might match the return type of a gcc2 | |
15391 | builtin and then its argument prototype would still apply. */ | |
15392 | char $ac_func(); | |
15393 | ||
15394 | int main() { | |
15395 | ||
15396 | /* The GNU C library defines this for functions which it implements | |
15397 | to always fail with ENOSYS. Some functions are actually named | |
15398 | something starting with __ and the normal name is an alias. */ | |
15399 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15400 | choke me | |
15401 | #else | |
15402 | $ac_func(); | |
15403 | #endif | |
15404 | ||
15405 | ; return 0; } | |
15406 | EOF | |
613d0995 | 15407 | if { (eval echo configure:15408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15408 | rm -rf conftest* |
15409 | eval "ac_cv_func_$ac_func=yes" | |
15410 | else | |
15411 | echo "configure: failed program was:" >&5 | |
15412 | cat conftest.$ac_ext >&5 | |
15413 | rm -rf conftest* | |
15414 | eval "ac_cv_func_$ac_func=no" | |
15415 | fi | |
15416 | rm -f conftest* | |
15417 | fi | |
15418 | ||
15419 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15420 | echo "$ac_t""yes" 1>&6 | |
15421 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15422 | cat >> confdefs.h <<EOF | |
15423 | #define $ac_tr_func 1 | |
15424 | EOF | |
4f14bcd8 | 15425 | |
af15babd VZ |
15426 | else |
15427 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15428 | fi |
15429 | done | |
15430 | ||
af15babd | 15431 | |
ade35f11 VZ |
15432 | for ac_func in mkstemp mktemp |
15433 | do | |
15434 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15435 | echo "configure:15436: checking for $ac_func" >&5 |
ade35f11 VZ |
15436 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15438 | else | |
15439 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15440 | #line 15441 "configure" |
ade35f11 VZ |
15441 | #include "confdefs.h" |
15442 | /* System header to define __stub macros and hopefully few prototypes, | |
15443 | which can conflict with char $ac_func(); below. */ | |
15444 | #include <assert.h> | |
15445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15446 | /* We use char because int might match the return type of a gcc2 | |
15447 | builtin and then its argument prototype would still apply. */ | |
15448 | char $ac_func(); | |
15449 | ||
15450 | int main() { | |
15451 | ||
15452 | /* The GNU C library defines this for functions which it implements | |
15453 | to always fail with ENOSYS. Some functions are actually named | |
15454 | something starting with __ and the normal name is an alias. */ | |
15455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15456 | choke me | |
15457 | #else | |
15458 | $ac_func(); | |
15459 | #endif | |
15460 | ||
15461 | ; return 0; } | |
15462 | EOF | |
613d0995 | 15463 | if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
15464 | rm -rf conftest* |
15465 | eval "ac_cv_func_$ac_func=yes" | |
15466 | else | |
15467 | echo "configure: failed program was:" >&5 | |
15468 | cat conftest.$ac_ext >&5 | |
15469 | rm -rf conftest* | |
15470 | eval "ac_cv_func_$ac_func=no" | |
15471 | fi | |
15472 | rm -f conftest* | |
15473 | fi | |
15474 | ||
15475 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15476 | echo "$ac_t""yes" 1>&6 | |
15477 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15478 | cat >> confdefs.h <<EOF | |
15479 | #define $ac_tr_func 1 | |
15480 | EOF | |
15481 | break | |
15482 | else | |
15483 | echo "$ac_t""no" 1>&6 | |
15484 | fi | |
15485 | done | |
15486 | ||
15487 | ||
4f14bcd8 | 15488 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
613d0995 | 15489 | echo "configure:15490: checking for statfs" >&5 |
4f14bcd8 GD |
15490 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
15491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15492 | else | |
15493 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15494 | #line 15495 "configure" |
4f14bcd8 GD |
15495 | #include "confdefs.h" |
15496 | ||
15497 | #if defined(__BSD__) | |
15498 | #include <sys/param.h> | |
15499 | #include <sys/mount.h> | |
15500 | #else | |
15501 | #include <sys/vfs.h> | |
15502 | #endif | |
15503 | ||
15504 | int main() { | |
15505 | ||
15506 | long l; | |
15507 | struct statfs fs; | |
15508 | statfs("/", &fs); | |
15509 | l = fs.f_bsize; | |
15510 | l += fs.f_blocks; | |
15511 | l += fs.f_bavail; | |
15512 | ||
15513 | ; return 0; } | |
15514 | EOF | |
613d0995 | 15515 | if { (eval echo configure:15516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15516 | rm -rf conftest* |
15517 | ||
15518 | wx_cv_func_statfs=yes | |
15519 | ||
15520 | else | |
15521 | echo "configure: failed program was:" >&5 | |
15522 | cat conftest.$ac_ext >&5 | |
15523 | rm -rf conftest* | |
15524 | ||
15525 | wx_cv_func_statfs=no | |
af15babd VZ |
15526 | |
15527 | ||
15528 | fi | |
4f14bcd8 | 15529 | rm -f conftest* |
af15babd VZ |
15530 | |
15531 | fi | |
15532 | ||
4f14bcd8 GD |
15533 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
15534 | ||
15535 | if test "$wx_cv_func_statfs" = "yes"; then | |
15536 | cat >> confdefs.h <<\EOF | |
15537 | #define HAVE_STATFS 1 | |
15538 | EOF | |
15539 | ||
15540 | else | |
15541 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
613d0995 | 15542 | echo "configure:15543: checking for statvfs" >&5 |
4f14bcd8 | 15543 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
15544 | echo $ac_n "(cached) $ac_c" 1>&6 |
15545 | else | |
15546 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15547 | #line 15548 "configure" |
af15babd | 15548 | #include "confdefs.h" |
af15babd | 15549 | |
4f14bcd8 GD |
15550 | #include <sys/statvfs.h> |
15551 | ||
af15babd VZ |
15552 | int main() { |
15553 | ||
4f14bcd8 GD |
15554 | long l; |
15555 | struct statvfs fs; | |
15556 | statvfs("/", &fs); | |
15557 | l = fs.f_bsize; | |
15558 | l += fs.f_blocks; | |
15559 | l += fs.f_bavail; | |
15560 | ||
af15babd VZ |
15561 | ; return 0; } |
15562 | EOF | |
613d0995 | 15563 | if { (eval echo configure:15564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15564 | rm -rf conftest* |
4f14bcd8 GD |
15565 | |
15566 | wx_cv_func_statvfs=yes | |
15567 | ||
af15babd VZ |
15568 | else |
15569 | echo "configure: failed program was:" >&5 | |
15570 | cat conftest.$ac_ext >&5 | |
15571 | rm -rf conftest* | |
4f14bcd8 GD |
15572 | |
15573 | wx_cv_func_statvfs=no | |
15574 | ||
15575 | ||
af15babd VZ |
15576 | fi |
15577 | rm -f conftest* | |
4f14bcd8 | 15578 | |
af15babd VZ |
15579 | fi |
15580 | ||
4f14bcd8 | 15581 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 15582 | |
4f14bcd8 GD |
15583 | if test "$wx_cv_func_statvfs" = "yes"; then |
15584 | cat >> confdefs.h <<\EOF | |
15585 | #define HAVE_STATVFS 1 | |
15586 | EOF | |
af15babd | 15587 | |
4f14bcd8 GD |
15588 | else |
15589 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
15590 | fi | |
15591 | fi | |
af15babd | 15592 | |
4f14bcd8 GD |
15593 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
15594 | for ac_func in fcntl flock | |
af15babd VZ |
15595 | do |
15596 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15597 | echo "configure:15598: checking for $ac_func" >&5 |
af15babd VZ |
15598 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15600 | else | |
15601 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15602 | #line 15603 "configure" |
af15babd VZ |
15603 | #include "confdefs.h" |
15604 | /* System header to define __stub macros and hopefully few prototypes, | |
15605 | which can conflict with char $ac_func(); below. */ | |
15606 | #include <assert.h> | |
15607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
15608 | /* We use char because int might match the return type of a gcc2 |
15609 | builtin and then its argument prototype would still apply. */ | |
15610 | char $ac_func(); | |
15611 | ||
15612 | int main() { | |
15613 | ||
15614 | /* The GNU C library defines this for functions which it implements | |
15615 | to always fail with ENOSYS. Some functions are actually named | |
15616 | something starting with __ and the normal name is an alias. */ | |
15617 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15618 | choke me | |
15619 | #else | |
15620 | $ac_func(); | |
15621 | #endif | |
15622 | ||
15623 | ; return 0; } | |
15624 | EOF | |
613d0995 | 15625 | if { (eval echo configure:15626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15626 | rm -rf conftest* |
15627 | eval "ac_cv_func_$ac_func=yes" | |
15628 | else | |
15629 | echo "configure: failed program was:" >&5 | |
15630 | cat conftest.$ac_ext >&5 | |
15631 | rm -rf conftest* | |
15632 | eval "ac_cv_func_$ac_func=no" | |
15633 | fi | |
15634 | rm -f conftest* | |
15635 | fi | |
15636 | ||
15637 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15638 | echo "$ac_t""yes" 1>&6 | |
15639 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15640 | cat >> confdefs.h <<EOF | |
15641 | #define $ac_tr_func 1 | |
15642 | EOF | |
4f14bcd8 | 15643 | break |
af15babd VZ |
15644 | else |
15645 | echo "$ac_t""no" 1>&6 | |
15646 | fi | |
15647 | done | |
15648 | ||
15649 | ||
4f14bcd8 GD |
15650 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
15651 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
15652 | wxUSE_SNGLINST_CHECKER=no | |
15653 | fi | |
15654 | fi | |
af15babd | 15655 | |
4f14bcd8 | 15656 | for ac_func in timegm |
af15babd VZ |
15657 | do |
15658 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15659 | echo "configure:15660: checking for $ac_func" >&5 |
af15babd VZ |
15660 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15662 | else | |
15663 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15664 | #line 15665 "configure" |
af15babd VZ |
15665 | #include "confdefs.h" |
15666 | /* System header to define __stub macros and hopefully few prototypes, | |
15667 | which can conflict with char $ac_func(); below. */ | |
15668 | #include <assert.h> | |
15669 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15670 | /* We use char because int might match the return type of a gcc2 | |
15671 | builtin and then its argument prototype would still apply. */ | |
15672 | char $ac_func(); | |
15673 | ||
698dcdb6 | 15674 | int main() { |
698dcdb6 | 15675 | |
af15babd VZ |
15676 | /* The GNU C library defines this for functions which it implements |
15677 | to always fail with ENOSYS. Some functions are actually named | |
15678 | something starting with __ and the normal name is an alias. */ | |
15679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15680 | choke me | |
15681 | #else | |
15682 | $ac_func(); | |
15683 | #endif | |
15684 | ||
698dcdb6 VZ |
15685 | ; return 0; } |
15686 | EOF | |
613d0995 | 15687 | if { (eval echo configure:15688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15688 | rm -rf conftest* |
af15babd | 15689 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15690 | else |
15691 | echo "configure: failed program was:" >&5 | |
15692 | cat conftest.$ac_ext >&5 | |
15693 | rm -rf conftest* | |
af15babd | 15694 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 15695 | fi |
9952adac | 15696 | rm -f conftest* |
af15babd | 15697 | fi |
703e0a69 | 15698 | |
af15babd VZ |
15699 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15700 | echo "$ac_t""yes" 1>&6 | |
15701 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
15702 | cat >> confdefs.h <<EOF |
15703 | #define $ac_tr_func 1 | |
15704 | EOF | |
15705 | ||
15706 | else | |
15707 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15708 | fi |
15709 | done | |
15710 | ||
15711 | ||
4f14bcd8 | 15712 | for ac_func in putenv setenv |
10f2d63a | 15713 | do |
698dcdb6 | 15714 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 15715 | echo "configure:15716: checking for $ac_func" >&5 |
698dcdb6 VZ |
15716 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15718 | else | |
15719 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15720 | #line 15721 "configure" |
af15babd VZ |
15721 | #include "confdefs.h" |
15722 | /* System header to define __stub macros and hopefully few prototypes, | |
15723 | which can conflict with char $ac_func(); below. */ | |
15724 | #include <assert.h> | |
15725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15726 | /* We use char because int might match the return type of a gcc2 | |
15727 | builtin and then its argument prototype would still apply. */ | |
15728 | char $ac_func(); | |
15729 | ||
15730 | int main() { | |
15731 | ||
15732 | /* The GNU C library defines this for functions which it implements | |
15733 | to always fail with ENOSYS. Some functions are actually named | |
15734 | something starting with __ and the normal name is an alias. */ | |
15735 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15736 | choke me | |
15737 | #else | |
15738 | $ac_func(); | |
15739 | #endif | |
15740 | ||
15741 | ; return 0; } | |
15742 | EOF | |
613d0995 | 15743 | if { (eval echo configure:15744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15744 | rm -rf conftest* |
15745 | eval "ac_cv_func_$ac_func=yes" | |
15746 | else | |
15747 | echo "configure: failed program was:" >&5 | |
15748 | cat conftest.$ac_ext >&5 | |
15749 | rm -rf conftest* | |
15750 | eval "ac_cv_func_$ac_func=no" | |
15751 | fi | |
15752 | rm -f conftest* | |
15753 | fi | |
15754 | ||
15755 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15756 | echo "$ac_t""yes" 1>&6 | |
15757 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15758 | cat >> confdefs.h <<EOF | |
15759 | #define $ac_tr_func 1 | |
15760 | EOF | |
4f14bcd8 | 15761 | break |
af15babd VZ |
15762 | else |
15763 | echo "$ac_t""no" 1>&6 | |
15764 | fi | |
af15babd VZ |
15765 | done |
15766 | ||
15767 | ||
4f14bcd8 GD |
15768 | HAVE_SOME_SLEEP_FUNC=0 |
15769 | if test "$USE_BEOS" = 1; then | |
15770 | cat >> confdefs.h <<\EOF | |
15771 | #define HAVE_SLEEP 1 | |
af15babd VZ |
15772 | EOF |
15773 | ||
4f14bcd8 | 15774 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15775 | fi |
15776 | ||
4f14bcd8 GD |
15777 | if test "$USE_DARWIN" = 1; then |
15778 | cat >> confdefs.h <<\EOF | |
15779 | #define HAVE_USLEEP 1 | |
af15babd | 15780 | EOF |
10f2d63a | 15781 | |
4f14bcd8 | 15782 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15783 | fi |
15784 | ||
4f14bcd8 GD |
15785 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
15786 | POSIX4_LINK= | |
15787 | for ac_func in nanosleep | |
15788 | do | |
15789 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15790 | echo "configure:15791: checking for $ac_func" >&5 |
4f14bcd8 | 15791 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15792 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15793 | else |
4f14bcd8 | 15794 | cat > conftest.$ac_ext <<EOF |
613d0995 | 15795 | #line 15796 "configure" |
10f2d63a | 15796 | #include "confdefs.h" |
4f14bcd8 GD |
15797 | /* System header to define __stub macros and hopefully few prototypes, |
15798 | which can conflict with char $ac_func(); below. */ | |
15799 | #include <assert.h> | |
10f2d63a VZ |
15800 | /* Override any gcc2 internal prototype to avoid an error. */ |
15801 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15802 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15803 | char $ac_func(); |
698dcdb6 VZ |
15804 | |
15805 | int main() { | |
4f14bcd8 GD |
15806 | |
15807 | /* The GNU C library defines this for functions which it implements | |
15808 | to always fail with ENOSYS. Some functions are actually named | |
15809 | something starting with __ and the normal name is an alias. */ | |
15810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15811 | choke me | |
15812 | #else | |
15813 | $ac_func(); | |
15814 | #endif | |
15815 | ||
698dcdb6 VZ |
15816 | ; return 0; } |
15817 | EOF | |
613d0995 | 15818 | if { (eval echo configure:15819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15819 | rm -rf conftest* |
4f14bcd8 | 15820 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15821 | else |
15822 | echo "configure: failed program was:" >&5 | |
15823 | cat conftest.$ac_ext >&5 | |
15824 | rm -rf conftest* | |
4f14bcd8 | 15825 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15826 | fi |
15827 | rm -f conftest* | |
698dcdb6 | 15828 | fi |
4f14bcd8 GD |
15829 | |
15830 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15831 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15832 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15833 | cat >> confdefs.h <<EOF | |
15834 | #define $ac_tr_func 1 | |
15835 | EOF | |
15836 | cat >> confdefs.h <<\EOF | |
15837 | #define HAVE_NANOSLEEP 1 | |
15838 | EOF | |
15839 | ||
10f2d63a | 15840 | else |
698dcdb6 | 15841 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15842 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
613d0995 | 15843 | echo "configure:15844: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 15844 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15845 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15847 | else |
698dcdb6 | 15848 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15849 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15850 | cat > conftest.$ac_ext <<EOF |
613d0995 | 15851 | #line 15852 "configure" |
10f2d63a VZ |
15852 | #include "confdefs.h" |
15853 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15854 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15855 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15856 | char nanosleep(); |
698dcdb6 VZ |
15857 | |
15858 | int main() { | |
4f14bcd8 | 15859 | nanosleep() |
698dcdb6 VZ |
15860 | ; return 0; } |
15861 | EOF | |
613d0995 | 15862 | if { (eval echo configure:15863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15863 | rm -rf conftest* |
15864 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15865 | else | |
15866 | echo "configure: failed program was:" >&5 | |
15867 | cat conftest.$ac_ext >&5 | |
15868 | rm -rf conftest* | |
15869 | eval "ac_cv_lib_$ac_lib_var=no" | |
15870 | fi | |
15871 | rm -f conftest* | |
15872 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15873 | |
698dcdb6 VZ |
15874 | fi |
15875 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15876 | echo "$ac_t""yes" 1>&6 | |
15877 | ||
4f14bcd8 GD |
15878 | cat >> confdefs.h <<\EOF |
15879 | #define HAVE_NANOSLEEP 1 | |
15880 | EOF | |
15881 | ||
3d63bc3a | 15882 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 15883 | |
10f2d63a | 15884 | else |
698dcdb6 | 15885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15886 | |
4f14bcd8 GD |
15887 | for ac_func in usleep |
15888 | do | |
15889 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 15890 | echo "configure:15891: checking for $ac_func" >&5 |
4f14bcd8 | 15891 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15892 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15893 | else |
698dcdb6 | 15894 | cat > conftest.$ac_ext <<EOF |
613d0995 | 15895 | #line 15896 "configure" |
10f2d63a | 15896 | #include "confdefs.h" |
4f14bcd8 GD |
15897 | /* System header to define __stub macros and hopefully few prototypes, |
15898 | which can conflict with char $ac_func(); below. */ | |
15899 | #include <assert.h> | |
15900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15901 | /* We use char because int might match the return type of a gcc2 | |
15902 | builtin and then its argument prototype would still apply. */ | |
15903 | char $ac_func(); | |
15904 | ||
15905 | int main() { | |
15906 | ||
15907 | /* The GNU C library defines this for functions which it implements | |
15908 | to always fail with ENOSYS. Some functions are actually named | |
15909 | something starting with __ and the normal name is an alias. */ | |
15910 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15911 | choke me | |
15912 | #else | |
15913 | $ac_func(); | |
15914 | #endif | |
15915 | ||
15916 | ; return 0; } | |
698dcdb6 | 15917 | EOF |
613d0995 | 15918 | if { (eval echo configure:15919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15919 | rm -rf conftest* |
4f14bcd8 | 15920 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15921 | else |
698dcdb6 | 15922 | echo "configure: failed program was:" >&5 |
10f2d63a | 15923 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15924 | rm -rf conftest* |
4f14bcd8 | 15925 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15926 | fi |
698dcdb6 | 15927 | rm -f conftest* |
10f2d63a | 15928 | fi |
4f14bcd8 GD |
15929 | |
15930 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15931 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15932 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15933 | cat >> confdefs.h <<EOF | |
15934 | #define $ac_tr_func 1 | |
15935 | EOF | |
15936 | cat >> confdefs.h <<\EOF | |
15937 | #define HAVE_USLEEP 1 | |
15938 | EOF | |
15939 | ||
698dcdb6 VZ |
15940 | else |
15941 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15942 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
15943 | ||
10f2d63a | 15944 | fi |
4f14bcd8 | 15945 | done |
10f2d63a | 15946 | |
4f14bcd8 | 15947 | |
698dcdb6 | 15948 | |
6232543b | 15949 | fi |
10f2d63a | 15950 | |
698dcdb6 | 15951 | |
4f14bcd8 | 15952 | |
1e487827 | 15953 | fi |
4f14bcd8 | 15954 | done |
703e0a69 | 15955 | |
10f2d63a VZ |
15956 | fi |
15957 | ||
4f14bcd8 | 15958 | for ac_func in uname gethostname |
70846f0a | 15959 | do |
698dcdb6 | 15960 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 15961 | echo "configure:15962: checking for $ac_func" >&5 |
698dcdb6 VZ |
15962 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15964 | else | |
15965 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 15966 | #line 15967 "configure" |
70846f0a VZ |
15967 | #include "confdefs.h" |
15968 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15969 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
15970 | #include <assert.h> |
15971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15972 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15973 | builtin and then its argument prototype would still apply. */ |
15974 | char $ac_func(); | |
15975 | ||
15976 | int main() { | |
70846f0a VZ |
15977 | |
15978 | /* The GNU C library defines this for functions which it implements | |
15979 | to always fail with ENOSYS. Some functions are actually named | |
15980 | something starting with __ and the normal name is an alias. */ | |
15981 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15982 | choke me | |
15983 | #else | |
698dcdb6 | 15984 | $ac_func(); |
70846f0a VZ |
15985 | #endif |
15986 | ||
698dcdb6 | 15987 | ; return 0; } |
70846f0a | 15988 | EOF |
613d0995 | 15989 | if { (eval echo configure:15990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15990 | rm -rf conftest* |
15991 | eval "ac_cv_func_$ac_func=yes" | |
15992 | else | |
15993 | echo "configure: failed program was:" >&5 | |
15994 | cat conftest.$ac_ext >&5 | |
15995 | rm -rf conftest* | |
15996 | eval "ac_cv_func_$ac_func=no" | |
15997 | fi | |
15998 | rm -f conftest* | |
15999 | fi | |
70846f0a | 16000 | |
698dcdb6 VZ |
16001 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16002 | echo "$ac_t""yes" 1>&6 | |
16003 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16004 | cat >> confdefs.h <<EOF | |
16005 | #define $ac_tr_func 1 | |
16006 | EOF | |
4f14bcd8 | 16007 | break |
698dcdb6 VZ |
16008 | else |
16009 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16010 | fi |
16011 | done | |
16012 | ||
698dcdb6 | 16013 | |
4f14bcd8 GD |
16014 | |
16015 | ac_ext=C | |
16016 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16018 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16019 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16020 | cross_compiling=$ac_cv_prog_cxx_cross | |
16021 | ||
16022 | ||
16023 | for ac_func in strtok_r | |
10f2d63a | 16024 | do |
4f14bcd8 | 16025 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 16026 | echo "configure:16027: checking for $ac_func" >&5 |
4f14bcd8 | 16027 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16028 | echo $ac_n "(cached) $ac_c" 1>&6 |
16029 | else | |
16030 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 16031 | #line 16032 "configure" |
10f2d63a | 16032 | #include "confdefs.h" |
4f14bcd8 GD |
16033 | /* System header to define __stub macros and hopefully few prototypes, |
16034 | which can conflict with char $ac_func(); below. */ | |
16035 | #include <assert.h> | |
16036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16037 | #ifdef __cplusplus | |
16038 | extern "C" | |
16039 | #endif | |
16040 | /* We use char because int might match the return type of a gcc2 | |
16041 | builtin and then its argument prototype would still apply. */ | |
16042 | char $ac_func(); | |
16043 | ||
16044 | int main() { | |
16045 | ||
16046 | /* The GNU C library defines this for functions which it implements | |
16047 | to always fail with ENOSYS. Some functions are actually named | |
16048 | something starting with __ and the normal name is an alias. */ | |
16049 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16050 | choke me | |
16051 | #else | |
16052 | $ac_func(); | |
16053 | #endif | |
16054 | ||
16055 | ; return 0; } | |
698dcdb6 | 16056 | EOF |
613d0995 | 16057 | if { (eval echo configure:16058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16058 | rm -rf conftest* |
4f14bcd8 | 16059 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16060 | else |
698dcdb6 | 16061 | echo "configure: failed program was:" >&5 |
10f2d63a | 16062 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16063 | rm -rf conftest* |
4f14bcd8 | 16064 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16065 | fi |
698dcdb6 | 16066 | rm -f conftest* |
10f2d63a | 16067 | fi |
4f14bcd8 GD |
16068 | |
16069 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16070 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16071 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16072 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16073 | #define $ac_tr_func 1 |
10f2d63a | 16074 | EOF |
698dcdb6 VZ |
16075 | |
16076 | else | |
16077 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16078 | fi |
16079 | done | |
16080 | ||
698dcdb6 | 16081 | |
4f14bcd8 GD |
16082 | ac_ext=c |
16083 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16084 | ac_cpp='$CPP $CPPFLAGS' | |
16085 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16086 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16087 | cross_compiling=$ac_cv_prog_cc_cross | |
16088 | ||
16089 | ||
16090 | INET_LINK= | |
16091 | for ac_func in inet_addr | |
16092 | do | |
16093 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 16094 | echo "configure:16095: checking for $ac_func" >&5 |
4f14bcd8 | 16095 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16096 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16097 | else |
4f14bcd8 | 16098 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16099 | #line 16100 "configure" |
10f2d63a | 16100 | #include "confdefs.h" |
4f14bcd8 GD |
16101 | /* System header to define __stub macros and hopefully few prototypes, |
16102 | which can conflict with char $ac_func(); below. */ | |
16103 | #include <assert.h> | |
10f2d63a VZ |
16104 | /* Override any gcc2 internal prototype to avoid an error. */ |
16105 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16106 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16107 | char $ac_func(); |
698dcdb6 VZ |
16108 | |
16109 | int main() { | |
4f14bcd8 GD |
16110 | |
16111 | /* The GNU C library defines this for functions which it implements | |
16112 | to always fail with ENOSYS. Some functions are actually named | |
16113 | something starting with __ and the normal name is an alias. */ | |
16114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16115 | choke me | |
16116 | #else | |
16117 | $ac_func(); | |
16118 | #endif | |
16119 | ||
698dcdb6 VZ |
16120 | ; return 0; } |
16121 | EOF | |
613d0995 | 16122 | if { (eval echo configure:16123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16123 | rm -rf conftest* |
4f14bcd8 | 16124 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16125 | else |
16126 | echo "configure: failed program was:" >&5 | |
16127 | cat conftest.$ac_ext >&5 | |
16128 | rm -rf conftest* | |
4f14bcd8 | 16129 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16130 | fi |
16131 | rm -f conftest* | |
698dcdb6 | 16132 | fi |
4f14bcd8 GD |
16133 | |
16134 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16135 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16136 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16137 | cat >> confdefs.h <<EOF | |
16138 | #define $ac_tr_func 1 | |
16139 | EOF | |
16140 | cat >> confdefs.h <<\EOF | |
16141 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16142 | EOF |
16143 | ||
16144 | else | |
698dcdb6 | 16145 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16146 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
613d0995 | 16147 | echo "configure:16148: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16148 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16151 | else |
698dcdb6 | 16152 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16153 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16154 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16155 | #line 16156 "configure" |
10f2d63a VZ |
16156 | #include "confdefs.h" |
16157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16158 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16159 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16160 | char inet_addr(); |
698dcdb6 VZ |
16161 | |
16162 | int main() { | |
4f14bcd8 | 16163 | inet_addr() |
698dcdb6 VZ |
16164 | ; return 0; } |
16165 | EOF | |
613d0995 | 16166 | if { (eval echo configure:16167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16167 | rm -rf conftest* |
16168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16169 | else | |
16170 | echo "configure: failed program was:" >&5 | |
16171 | cat conftest.$ac_ext >&5 | |
16172 | rm -rf conftest* | |
16173 | eval "ac_cv_lib_$ac_lib_var=no" | |
16174 | fi | |
16175 | rm -f conftest* | |
16176 | LIBS="$ac_save_LIBS" | |
16177 | ||
16178 | fi | |
16179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16180 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16181 | INET_LINK="nsl" |
10f2d63a | 16182 | else |
698dcdb6 | 16183 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16184 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
613d0995 | 16185 | echo "configure:16186: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16186 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16187 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16189 | else |
698dcdb6 | 16190 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16191 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16192 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16193 | #line 16194 "configure" |
10f2d63a VZ |
16194 | #include "confdefs.h" |
16195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16196 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16197 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16198 | char inet_addr(); |
698dcdb6 VZ |
16199 | |
16200 | int main() { | |
4f14bcd8 | 16201 | inet_addr() |
698dcdb6 VZ |
16202 | ; return 0; } |
16203 | EOF | |
613d0995 | 16204 | if { (eval echo configure:16205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16205 | rm -rf conftest* |
16206 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16207 | else | |
16208 | echo "configure: failed program was:" >&5 | |
16209 | cat conftest.$ac_ext >&5 | |
16210 | rm -rf conftest* | |
16211 | eval "ac_cv_lib_$ac_lib_var=no" | |
16212 | fi | |
16213 | rm -f conftest* | |
16214 | LIBS="$ac_save_LIBS" | |
16215 | ||
16216 | fi | |
16217 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16218 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16219 | INET_LINK="resolv" |
16220 | ||
698dcdb6 | 16221 | else |
4f14bcd8 GD |
16222 | echo "$ac_t""no" 1>&6 |
16223 | fi | |
698dcdb6 | 16224 | |
4f14bcd8 | 16225 | |
698dcdb6 | 16226 | fi |
4f14bcd8 GD |
16227 | |
16228 | ||
698dcdb6 VZ |
16229 | |
16230 | fi | |
4f14bcd8 GD |
16231 | done |
16232 | ||
16233 | ||
16234 | for ac_func in inet_aton | |
16235 | do | |
16236 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 16237 | echo "configure:16238: checking for $ac_func" >&5 |
4f14bcd8 | 16238 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16239 | echo $ac_n "(cached) $ac_c" 1>&6 |
16240 | else | |
4f14bcd8 | 16241 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16242 | #line 16243 "configure" |
f6bcfd97 | 16243 | #include "confdefs.h" |
4f14bcd8 GD |
16244 | /* System header to define __stub macros and hopefully few prototypes, |
16245 | which can conflict with char $ac_func(); below. */ | |
16246 | #include <assert.h> | |
f6bcfd97 BP |
16247 | /* Override any gcc2 internal prototype to avoid an error. */ |
16248 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16249 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16250 | char $ac_func(); |
698dcdb6 VZ |
16251 | |
16252 | int main() { | |
4f14bcd8 GD |
16253 | |
16254 | /* The GNU C library defines this for functions which it implements | |
16255 | to always fail with ENOSYS. Some functions are actually named | |
16256 | something starting with __ and the normal name is an alias. */ | |
16257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16258 | choke me | |
16259 | #else | |
16260 | $ac_func(); | |
16261 | #endif | |
16262 | ||
698dcdb6 VZ |
16263 | ; return 0; } |
16264 | EOF | |
613d0995 | 16265 | if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16266 | rm -rf conftest* |
4f14bcd8 | 16267 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16268 | else |
16269 | echo "configure: failed program was:" >&5 | |
16270 | cat conftest.$ac_ext >&5 | |
16271 | rm -rf conftest* | |
4f14bcd8 | 16272 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16273 | fi |
16274 | rm -f conftest* | |
698dcdb6 | 16275 | fi |
4f14bcd8 GD |
16276 | |
16277 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16278 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16279 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16280 | cat >> confdefs.h <<EOF | |
16281 | #define $ac_tr_func 1 | |
16282 | EOF | |
16283 | cat >> confdefs.h <<\EOF | |
16284 | #define HAVE_INET_ATON 1 | |
16285 | EOF | |
16286 | ||
10f2d63a | 16287 | else |
698dcdb6 | 16288 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16289 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
613d0995 | 16290 | echo "configure:16291: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16291 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16294 | else |
698dcdb6 | 16295 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16296 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 16297 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16298 | #line 16299 "configure" |
10f2d63a | 16299 | #include "confdefs.h" |
6232543b | 16300 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 16301 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 16302 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16303 | char inet_aton(); |
698dcdb6 VZ |
16304 | |
16305 | int main() { | |
4f14bcd8 | 16306 | inet_aton() |
698dcdb6 VZ |
16307 | ; return 0; } |
16308 | EOF | |
613d0995 | 16309 | if { (eval echo configure:16310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16310 | rm -rf conftest* |
16311 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16312 | else | |
16313 | echo "configure: failed program was:" >&5 | |
16314 | cat conftest.$ac_ext >&5 | |
16315 | rm -rf conftest* | |
16316 | eval "ac_cv_lib_$ac_lib_var=no" | |
16317 | fi | |
16318 | rm -f conftest* | |
16319 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16320 | |
698dcdb6 VZ |
16321 | fi |
16322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16323 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16324 | cat >> confdefs.h <<\EOF |
16325 | #define HAVE_INET_ATON 1 | |
16326 | EOF | |
16327 | ||
698dcdb6 VZ |
16328 | else |
16329 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16330 | fi |
16331 | ||
4f14bcd8 | 16332 | |
10f2d63a | 16333 | fi |
4f14bcd8 | 16334 | done |
10f2d63a | 16335 | |
4f14bcd8 GD |
16336 | |
16337 | if test "x$INET_LINK" != "x"; then | |
16338 | cat >> confdefs.h <<\EOF | |
16339 | #define HAVE_INET_ADDR 1 | |
16340 | EOF | |
16341 | ||
3d63bc3a | 16342 | INET_LINK=" -l$INET_LINK" |
6232543b | 16343 | fi |
10f2d63a | 16344 | |
1e487827 | 16345 | fi |
703e0a69 | 16346 | |
698dcdb6 | 16347 | |
4f14bcd8 GD |
16348 | cat > confcache <<\EOF |
16349 | # This file is a shell script that caches the results of configure | |
16350 | # tests run on this system so they can be shared between configure | |
16351 | # scripts and configure runs. It is not useful on other systems. | |
16352 | # If it contains results you don't want to keep, you may remove or edit it. | |
16353 | # | |
16354 | # By default, configure uses ./config.cache as the cache file, | |
16355 | # creating it if it does not exist already. You can give configure | |
16356 | # the --cache-file=FILE option to use a different cache file; that is | |
16357 | # what configure does when it calls configure scripts in | |
16358 | # subdirectories, so they share the cache. | |
16359 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
16360 | # config.status only pays attention to the cache file if you give it the | |
16361 | # --recheck option to rerun configure. | |
16362 | # | |
f6bcfd97 | 16363 | EOF |
4f14bcd8 GD |
16364 | # The following way of writing the cache mishandles newlines in values, |
16365 | # but we know of no workaround that is simple, portable, and efficient. | |
16366 | # So, don't put newlines in cache variables' values. | |
16367 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16368 | # and sets the high bit in the cache file unless we assign to the vars. | |
16369 | (set) 2>&1 | | |
16370 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16371 | *ac_space=\ *) | |
16372 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
16373 | # turns \\\\ into \\, and sed turns \\ into \). | |
16374 | sed -n \ | |
16375 | -e "s/'/'\\\\''/g" \ | |
16376 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
16377 | ;; | |
16378 | *) | |
16379 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16380 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
16381 | ;; | |
16382 | esac >> confcache | |
16383 | if cmp -s $cache_file confcache; then | |
16384 | : | |
16385 | else | |
16386 | if test -w $cache_file; then | |
16387 | echo "updating cache $cache_file" | |
16388 | cat confcache > $cache_file | |
f6bcfd97 | 16389 | else |
4f14bcd8 | 16390 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 16391 | fi |
4f14bcd8 GD |
16392 | fi |
16393 | rm -f confcache | |
f6bcfd97 | 16394 | |
4f14bcd8 GD |
16395 | |
16396 | ||
16397 | if test "$TOOLKIT" != "MSW"; then | |
16398 | ||
7274f1c7 RL |
16399 | |
16400 | THREADS_LINK= | |
16401 | THREADS_OBJ= | |
16402 | CODE_GEN_FLAGS= | |
16403 | CODE_GEN_FLAGS_CXX= | |
16404 | ||
16405 | if test "$wxUSE_THREADS" = "yes" ; then | |
16406 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 16407 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
16408 | wxUSE_THREADS="no" |
16409 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 16410 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
16411 | wxUSE_THREADS="no" |
16412 | fi | |
4f14bcd8 | 16413 | fi |
4f14bcd8 | 16414 | |
7274f1c7 RL |
16415 | if test "$wxUSE_THREADS" = "yes" ; then |
16416 | ||
16417 | if test "$USE_AIX" = 1; then | |
16418 | THREADS_LIB=pthreads | |
16419 | else | |
16420 | THREADS_LIB=pthread | |
16421 | fi | |
4f14bcd8 | 16422 | |
7274f1c7 | 16423 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
613d0995 | 16424 | echo "configure:16425: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 16425 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16426 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16428 | else |
698dcdb6 | 16429 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16430 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 16431 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16432 | #line 16433 "configure" |
10f2d63a VZ |
16433 | #include "confdefs.h" |
16434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16435 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16436 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16437 | char pthread_create(); |
698dcdb6 VZ |
16438 | |
16439 | int main() { | |
4f14bcd8 | 16440 | pthread_create() |
698dcdb6 VZ |
16441 | ; return 0; } |
16442 | EOF | |
613d0995 | 16443 | if { (eval echo configure:16444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16444 | rm -rf conftest* |
16445 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16446 | else | |
16447 | echo "configure: failed program was:" >&5 | |
16448 | cat conftest.$ac_ext >&5 | |
16449 | rm -rf conftest* | |
16450 | eval "ac_cv_lib_$ac_lib_var=no" | |
16451 | fi | |
16452 | rm -f conftest* | |
16453 | LIBS="$ac_save_LIBS" | |
16454 | ||
16455 | fi | |
16456 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16457 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16458 | |
7274f1c7 RL |
16459 | THREADS_OBJ="threadpsx.lo" |
16460 | THREADS_LINK=$THREADS_LIB | |
16461 | ||
10f2d63a | 16462 | else |
698dcdb6 | 16463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16464 | |
7274f1c7 | 16465 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
613d0995 | 16466 | echo "configure:16467: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
16467 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
16468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16469 | echo $ac_n "(cached) $ac_c" 1>&6 |
16470 | else | |
4f14bcd8 GD |
16471 | ac_save_LIBS="$LIBS" |
16472 | LIBS="-lc_r $LIBS" | |
16473 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 16474 | #line 16475 "configure" |
10f2d63a | 16475 | #include "confdefs.h" |
4f14bcd8 GD |
16476 | /* Override any gcc2 internal prototype to avoid an error. */ |
16477 | /* We use char because int might match the return type of a gcc2 | |
16478 | builtin and then its argument prototype would still apply. */ | |
16479 | char pthread_create(); | |
10f2d63a | 16480 | |
4f14bcd8 GD |
16481 | int main() { |
16482 | pthread_create() | |
698dcdb6 VZ |
16483 | ; return 0; } |
16484 | EOF | |
613d0995 | 16485 | if { (eval echo configure:16486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16486 | rm -rf conftest* |
4f14bcd8 | 16487 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 16488 | else |
698dcdb6 VZ |
16489 | echo "configure: failed program was:" >&5 |
16490 | cat conftest.$ac_ext >&5 | |
16491 | rm -rf conftest* | |
4f14bcd8 | 16492 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 16493 | fi |
698dcdb6 | 16494 | rm -f conftest* |
4f14bcd8 | 16495 | LIBS="$ac_save_LIBS" |
d9b9876f | 16496 | |
4f14bcd8 GD |
16497 | fi |
16498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16499 | echo "$ac_t""yes" 1>&6 | |
16500 | ||
7274f1c7 RL |
16501 | THREADS_OBJ="threadpsx.lo" |
16502 | THREADS_LINK="c_r" | |
16503 | ||
4f14bcd8 GD |
16504 | else |
16505 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 16506 | |
7274f1c7 | 16507 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 16508 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
613d0995 | 16509 | echo "configure:16510: checking for sys/prctl.h" >&5 |
4f14bcd8 | 16510 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 16511 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 16512 | else |
4f14bcd8 | 16513 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16514 | #line 16515 "configure" |
d9b9876f | 16515 | #include "confdefs.h" |
4f14bcd8 | 16516 | #include <sys/prctl.h> |
698dcdb6 | 16517 | EOF |
4f14bcd8 | 16518 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
613d0995 | 16519 | { (eval echo configure:16520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16520 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16521 | if test -z "$ac_err"; then | |
698dcdb6 | 16522 | rm -rf conftest* |
4f14bcd8 | 16523 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 16524 | else |
4f14bcd8 | 16525 | echo "$ac_err" >&5 |
698dcdb6 VZ |
16526 | echo "configure: failed program was:" >&5 |
16527 | cat conftest.$ac_ext >&5 | |
16528 | rm -rf conftest* | |
4f14bcd8 | 16529 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 16530 | fi |
698dcdb6 | 16531 | rm -f conftest* |
4f14bcd8 GD |
16532 | fi |
16533 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16534 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 16535 | |
7274f1c7 RL |
16536 | THREADS_OBJ="threadsgi.lo" |
16537 | ||
4f14bcd8 GD |
16538 | else |
16539 | echo "$ac_t""no" 1>&6 | |
1e487827 | 16540 | fi |
698dcdb6 | 16541 | |
7274f1c7 | 16542 | |
4f14bcd8 | 16543 | fi |
d9b9876f | 16544 | |
7274f1c7 | 16545 | |
4f14bcd8 | 16546 | fi |
d9b9876f | 16547 | |
4f14bcd8 | 16548 | |
7274f1c7 RL |
16549 | if test -z "$THREADS_OBJ" ; then |
16550 | wxUSE_THREADS=no | |
156b2523 | 16551 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 16552 | fi |
4f14bcd8 | 16553 | fi |
4f14bcd8 | 16554 | |
7274f1c7 RL |
16555 | if test "$wxUSE_THREADS" = "yes" ; then |
16556 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
16557 | do |
16558 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
613d0995 | 16559 | echo "configure:16560: checking for $ac_func" >&5 |
4f14bcd8 | 16560 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16561 | echo $ac_n "(cached) $ac_c" 1>&6 |
16562 | else | |
4f14bcd8 | 16563 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16564 | #line 16565 "configure" |
d9b9876f | 16565 | #include "confdefs.h" |
4f14bcd8 GD |
16566 | /* System header to define __stub macros and hopefully few prototypes, |
16567 | which can conflict with char $ac_func(); below. */ | |
16568 | #include <assert.h> | |
16569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16570 | /* We use char because int might match the return type of a gcc2 | |
16571 | builtin and then its argument prototype would still apply. */ | |
16572 | char $ac_func(); | |
16573 | ||
698dcdb6 | 16574 | int main() { |
d9b9876f | 16575 | |
4f14bcd8 GD |
16576 | /* The GNU C library defines this for functions which it implements |
16577 | to always fail with ENOSYS. Some functions are actually named | |
16578 | something starting with __ and the normal name is an alias. */ | |
16579 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16580 | choke me | |
16581 | #else | |
16582 | $ac_func(); | |
16583 | #endif | |
16584 | ||
698dcdb6 VZ |
16585 | ; return 0; } |
16586 | EOF | |
613d0995 | 16587 | if { (eval echo configure:16588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16588 | rm -rf conftest* |
4f14bcd8 | 16589 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 16590 | else |
698dcdb6 VZ |
16591 | echo "configure: failed program was:" >&5 |
16592 | cat conftest.$ac_ext >&5 | |
16593 | rm -rf conftest* | |
4f14bcd8 | 16594 | eval "ac_cv_func_$ac_func=no" |
6232543b | 16595 | fi |
698dcdb6 | 16596 | rm -f conftest* |
1e487827 | 16597 | fi |
698dcdb6 | 16598 | |
4f14bcd8 GD |
16599 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16600 | echo "$ac_t""yes" 1>&6 | |
16601 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16602 | cat >> confdefs.h <<EOF | |
16603 | #define $ac_tr_func 1 | |
d9b9876f | 16604 | EOF |
4f14bcd8 GD |
16605 | |
16606 | else | |
16607 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 16608 | fi |
4f14bcd8 | 16609 | done |
10f2d63a | 16610 | |
10f2d63a | 16611 | |
7274f1c7 RL |
16612 | |
16613 | for ac_hdr in sched.h | |
4f14bcd8 GD |
16614 | do |
16615 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16616 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 16617 | echo "configure:16618: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
16618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16620 | else |
4f14bcd8 | 16621 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16622 | #line 16623 "configure" |
4f14bcd8 GD |
16623 | #include "confdefs.h" |
16624 | #include <$ac_hdr> | |
13111b2a | 16625 | EOF |
4f14bcd8 | 16626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
613d0995 | 16627 | { (eval echo configure:16628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16628 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16629 | if test -z "$ac_err"; then | |
16630 | rm -rf conftest* | |
16631 | eval "ac_cv_header_$ac_safe=yes" | |
16632 | else | |
16633 | echo "$ac_err" >&5 | |
16634 | echo "configure: failed program was:" >&5 | |
16635 | cat conftest.$ac_ext >&5 | |
16636 | rm -rf conftest* | |
16637 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 16638 | fi |
4f14bcd8 | 16639 | rm -f conftest* |
10f2d63a | 16640 | fi |
4f14bcd8 GD |
16641 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16642 | echo "$ac_t""yes" 1>&6 | |
16643 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 16644 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16645 | #define $ac_tr_hdr 1 |
f6bcfd97 | 16646 | EOF |
4f14bcd8 GD |
16647 | |
16648 | else | |
16649 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 16650 | fi |
4f14bcd8 | 16651 | done |
f6bcfd97 | 16652 | |
10f2d63a | 16653 | |
7274f1c7 | 16654 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
613d0995 | 16655 | echo "configure:16656: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16656 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
16657 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16658 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16659 | else | |
16660 | ac_save_LIBS="$LIBS" | |
16661 | LIBS="-l$THREADS_LINK $LIBS" | |
16662 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 16663 | #line 16664 "configure" |
4f14bcd8 GD |
16664 | #include "confdefs.h" |
16665 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16666 | /* We use char because int might match the return type of a gcc2 | |
16667 | builtin and then its argument prototype would still apply. */ | |
16668 | char sched_yield(); | |
10f2d63a | 16669 | |
4f14bcd8 GD |
16670 | int main() { |
16671 | sched_yield() | |
16672 | ; return 0; } | |
10f2d63a | 16673 | EOF |
613d0995 | 16674 | if { (eval echo configure:16675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16675 | rm -rf conftest* |
16676 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16677 | else |
4f14bcd8 GD |
16678 | echo "configure: failed program was:" >&5 |
16679 | cat conftest.$ac_ext >&5 | |
16680 | rm -rf conftest* | |
16681 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16682 | fi |
4f14bcd8 GD |
16683 | rm -f conftest* |
16684 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16685 | |
4f14bcd8 GD |
16686 | fi |
16687 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16688 | echo "$ac_t""yes" 1>&6 | |
16689 | cat >> confdefs.h <<\EOF | |
16690 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
16691 | EOF |
16692 | ||
4f14bcd8 GD |
16693 | else |
16694 | echo "$ac_t""no" 1>&6 | |
16695 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
613d0995 | 16696 | echo "configure:16697: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
16697 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
16698 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16700 | else | |
16701 | ac_save_LIBS="$LIBS" | |
16702 | LIBS="-lposix4 $LIBS" | |
16703 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 16704 | #line 16705 "configure" |
4f14bcd8 GD |
16705 | #include "confdefs.h" |
16706 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16707 | /* We use char because int might match the return type of a gcc2 | |
16708 | builtin and then its argument prototype would still apply. */ | |
16709 | char sched_yield(); | |
47c13eb7 | 16710 | |
4f14bcd8 GD |
16711 | int main() { |
16712 | sched_yield() | |
16713 | ; return 0; } | |
10f2d63a | 16714 | EOF |
613d0995 | 16715 | if { (eval echo configure:16716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16716 | rm -rf conftest* |
16717 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16718 | else |
4f14bcd8 GD |
16719 | echo "configure: failed program was:" >&5 |
16720 | cat conftest.$ac_ext >&5 | |
16721 | rm -rf conftest* | |
16722 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16723 | fi |
4f14bcd8 GD |
16724 | rm -f conftest* |
16725 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16726 | |
54276ccf | 16727 | fi |
4f14bcd8 GD |
16728 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16729 | echo "$ac_t""yes" 1>&6 | |
16730 | cat >> confdefs.h <<\EOF | |
16731 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 16732 | EOF |
3d63bc3a | 16733 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
16734 | else |
16735 | echo "$ac_t""no" 1>&6 | |
16736 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 16737 | |
54276ccf VZ |
16738 | fi |
16739 | ||
7274f1c7 | 16740 | |
4f14bcd8 | 16741 | fi |
698dcdb6 | 16742 | |
10f2d63a | 16743 | |
7274f1c7 RL |
16744 | HAVE_PRIOR_FUNCS=0 |
16745 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
613d0995 | 16746 | echo "configure:16747: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16747 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
16748 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16749 | echo $ac_n "(cached) $ac_c" 1>&6 |
16750 | else | |
4f14bcd8 GD |
16751 | ac_save_LIBS="$LIBS" |
16752 | LIBS="-l$THREADS_LINK $LIBS" | |
16753 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 16754 | #line 16755 "configure" |
422107f9 | 16755 | #include "confdefs.h" |
4f14bcd8 GD |
16756 | /* Override any gcc2 internal prototype to avoid an error. */ |
16757 | /* We use char because int might match the return type of a gcc2 | |
16758 | builtin and then its argument prototype would still apply. */ | |
16759 | char pthread_attr_getschedpolicy(); | |
16760 | ||
16761 | int main() { | |
16762 | pthread_attr_getschedpolicy() | |
16763 | ; return 0; } | |
698dcdb6 | 16764 | EOF |
613d0995 | 16765 | if { (eval echo configure:16766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16766 | rm -rf conftest* |
4f14bcd8 | 16767 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16768 | else |
698dcdb6 | 16769 | echo "configure: failed program was:" >&5 |
422107f9 | 16770 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16771 | rm -rf conftest* |
4f14bcd8 | 16772 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16773 | fi |
698dcdb6 | 16774 | rm -f conftest* |
4f14bcd8 GD |
16775 | LIBS="$ac_save_LIBS" |
16776 | ||
422107f9 | 16777 | fi |
4f14bcd8 | 16778 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16779 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16780 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
613d0995 | 16781 | echo "configure:16782: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16782 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16783 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16785 | else |
698dcdb6 | 16786 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16787 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16788 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16789 | #line 16790 "configure" |
422107f9 VZ |
16790 | #include "confdefs.h" |
16791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16792 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16793 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16794 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
16795 | |
16796 | int main() { | |
4f14bcd8 | 16797 | pthread_attr_setschedparam() |
698dcdb6 VZ |
16798 | ; return 0; } |
16799 | EOF | |
613d0995 | 16800 | if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16801 | rm -rf conftest* |
16802 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16803 | else | |
16804 | echo "configure: failed program was:" >&5 | |
16805 | cat conftest.$ac_ext >&5 | |
16806 | rm -rf conftest* | |
16807 | eval "ac_cv_lib_$ac_lib_var=no" | |
16808 | fi | |
16809 | rm -f conftest* | |
16810 | LIBS="$ac_save_LIBS" | |
16811 | ||
16812 | fi | |
16813 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16814 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16815 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
613d0995 | 16816 | echo "configure:16817: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16817 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
16818 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16819 | echo $ac_n "(cached) $ac_c" 1>&6 |
16820 | else | |
4f14bcd8 GD |
16821 | ac_save_LIBS="$LIBS" |
16822 | LIBS="-l$THREADS_LINK $LIBS" | |
16823 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 16824 | #line 16825 "configure" |
422107f9 | 16825 | #include "confdefs.h" |
4f14bcd8 GD |
16826 | /* Override any gcc2 internal prototype to avoid an error. */ |
16827 | /* We use char because int might match the return type of a gcc2 | |
16828 | builtin and then its argument prototype would still apply. */ | |
16829 | char sched_get_priority_max(); | |
16830 | ||
16831 | int main() { | |
16832 | sched_get_priority_max() | |
16833 | ; return 0; } | |
698dcdb6 | 16834 | EOF |
613d0995 | 16835 | if { (eval echo configure:16836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16836 | rm -rf conftest* |
4f14bcd8 | 16837 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16838 | else |
698dcdb6 | 16839 | echo "configure: failed program was:" >&5 |
422107f9 | 16840 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16841 | rm -rf conftest* |
4f14bcd8 | 16842 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16843 | fi |
698dcdb6 | 16844 | rm -f conftest* |
4f14bcd8 GD |
16845 | LIBS="$ac_save_LIBS" |
16846 | ||
422107f9 | 16847 | fi |
4f14bcd8 | 16848 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16849 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16850 | HAVE_PRIOR_FUNCS=1 |
16851 | else | |
16852 | echo "$ac_t""no" 1>&6 | |
16853 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
613d0995 | 16854 | echo "configure:16855: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 16855 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16856 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16858 | else |
698dcdb6 | 16859 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16860 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16861 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16862 | #line 16863 "configure" |
422107f9 VZ |
16863 | #include "confdefs.h" |
16864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16865 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16866 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16867 | char sched_get_priority_max(); |
698dcdb6 VZ |
16868 | |
16869 | int main() { | |
4f14bcd8 | 16870 | sched_get_priority_max() |
698dcdb6 VZ |
16871 | ; return 0; } |
16872 | EOF | |
613d0995 | 16873 | if { (eval echo configure:16874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16874 | rm -rf conftest* |
16875 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16876 | else | |
16877 | echo "configure: failed program was:" >&5 | |
16878 | cat conftest.$ac_ext >&5 | |
16879 | rm -rf conftest* | |
16880 | eval "ac_cv_lib_$ac_lib_var=no" | |
16881 | fi | |
16882 | rm -f conftest* | |
16883 | LIBS="$ac_save_LIBS" | |
16884 | ||
16885 | fi | |
16886 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16887 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16888 | |
7274f1c7 RL |
16889 | HAVE_PRIOR_FUNCS=1 |
16890 | POSIX4_LINK=" -lposix4" | |
16891 | ||
698dcdb6 VZ |
16892 | else |
16893 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
16894 | fi |
16895 | ||
7274f1c7 | 16896 | |
422107f9 VZ |
16897 | fi |
16898 | ||
7274f1c7 | 16899 | |
4f14bcd8 GD |
16900 | else |
16901 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16902 | fi |
16903 | ||
7274f1c7 | 16904 | |
698dcdb6 | 16905 | else |
4f14bcd8 GD |
16906 | echo "$ac_t""no" 1>&6 |
16907 | fi | |
463abc64 | 16908 | |
463abc64 | 16909 | |
7274f1c7 RL |
16910 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
16911 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16912 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 16913 | EOF |
463abc64 | 16914 | |
7274f1c7 RL |
16915 | else |
16916 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
16917 | fi | |
463abc64 | 16918 | |
7274f1c7 | 16919 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
613d0995 | 16920 | echo "configure:16921: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16921 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16922 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16924 | else |
698dcdb6 | 16925 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16926 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16927 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16928 | #line 16929 "configure" |
422107f9 VZ |
16929 | #include "confdefs.h" |
16930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16931 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16932 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16933 | char pthread_cancel(); |
698dcdb6 VZ |
16934 | |
16935 | int main() { | |
4f14bcd8 | 16936 | pthread_cancel() |
698dcdb6 VZ |
16937 | ; return 0; } |
16938 | EOF | |
613d0995 | 16939 | if { (eval echo configure:16940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16940 | rm -rf conftest* |
16941 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16942 | else | |
16943 | echo "configure: failed program was:" >&5 | |
16944 | cat conftest.$ac_ext >&5 | |
16945 | rm -rf conftest* | |
16946 | eval "ac_cv_lib_$ac_lib_var=no" | |
16947 | fi | |
16948 | rm -f conftest* | |
16949 | LIBS="$ac_save_LIBS" | |
16950 | ||
16951 | fi | |
16952 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16953 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16954 | cat >> confdefs.h <<\EOF |
16955 | #define HAVE_PTHREAD_CANCEL 1 | |
16956 | EOF | |
16957 | ||
698dcdb6 VZ |
16958 | else |
16959 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16960 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
16961 | fi |
16962 | ||
422107f9 | 16963 | |
7274f1c7 | 16964 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
613d0995 | 16965 | echo "configure:16966: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
16966 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
16967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16968 | else | |
16969 | ||
7274f1c7 | 16970 | cat > conftest.$ac_ext <<EOF |
613d0995 | 16971 | #line 16972 "configure" |
4f14bcd8 GD |
16972 | #include "confdefs.h" |
16973 | #include <pthread.h> | |
16974 | int main() { | |
16975 | ||
7274f1c7 RL |
16976 | pthread_cleanup_push(NULL, NULL); |
16977 | pthread_cleanup_pop(0); | |
16978 | ||
4f14bcd8 GD |
16979 | ; return 0; } |
16980 | EOF | |
613d0995 | 16981 | if { (eval echo configure:16982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16982 | rm -rf conftest* |
16983 | ||
7274f1c7 RL |
16984 | wx_cv_func_pthread_cleanup_push=yes |
16985 | ||
4f14bcd8 GD |
16986 | else |
16987 | echo "configure: failed program was:" >&5 | |
16988 | cat conftest.$ac_ext >&5 | |
16989 | rm -rf conftest* | |
16990 | ||
7274f1c7 RL |
16991 | wx_cv_func_pthread_cleanup_push=no |
16992 | ||
4f14bcd8 GD |
16993 | fi |
16994 | rm -f conftest* | |
7274f1c7 | 16995 | |
10f2d63a VZ |
16996 | fi |
16997 | ||
4f14bcd8 GD |
16998 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
16999 | ||
7274f1c7 RL |
17000 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17001 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17002 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17003 | EOF |
17004 | ||
7274f1c7 | 17005 | fi |
4f14bcd8 | 17006 | |
7274f1c7 RL |
17007 | |
17008 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17009 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17010 | fi | |
4f14bcd8 | 17011 | |
7274f1c7 | 17012 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
613d0995 | 17013 | echo "configure:17014: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17014 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17015 | echo $ac_n "(cached) $ac_c" 1>&6 |
17016 | else | |
4f14bcd8 | 17017 | |
7274f1c7 | 17018 | cat > conftest.$ac_ext <<EOF |
613d0995 | 17019 | #line 17020 "configure" |
0dcf9893 | 17020 | #include "confdefs.h" |
4f14bcd8 GD |
17021 | #include <pthread.h> |
17022 | int main() { | |
17023 | ||
7274f1c7 RL |
17024 | pthread_mutexattr_t attr; |
17025 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17026 | ||
4f14bcd8 | 17027 | ; return 0; } |
698dcdb6 | 17028 | EOF |
613d0995 | 17029 | if { (eval echo configure:17030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17030 | rm -rf conftest* |
4f14bcd8 | 17031 | |
7274f1c7 RL |
17032 | wx_cv_type_pthread_mutexattr_t=yes |
17033 | ||
3fed1840 | 17034 | else |
698dcdb6 | 17035 | echo "configure: failed program was:" >&5 |
3fed1840 | 17036 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17037 | rm -rf conftest* |
4f14bcd8 | 17038 | |
7274f1c7 RL |
17039 | wx_cv_type_pthread_mutexattr_t=no |
17040 | ||
4f14bcd8 | 17041 | |
3fed1840 | 17042 | fi |
698dcdb6 | 17043 | rm -f conftest* |
7274f1c7 | 17044 | |
3fed1840 | 17045 | fi |
4f14bcd8 GD |
17046 | |
17047 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17048 | ||
7274f1c7 RL |
17049 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17050 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17051 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17052 | EOF | |
17053 | ||
7274f1c7 RL |
17054 | else |
17055 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
613d0995 | 17056 | echo "configure:17057: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17057 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17058 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17059 | else |
4f14bcd8 | 17060 | |
7274f1c7 | 17061 | cat > conftest.$ac_ext <<EOF |
613d0995 | 17062 | #line 17063 "configure" |
3fed1840 | 17063 | #include "confdefs.h" |
4f14bcd8 | 17064 | #include <pthread.h> |
698dcdb6 | 17065 | int main() { |
4f14bcd8 | 17066 | |
7274f1c7 RL |
17067 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17068 | ||
698dcdb6 VZ |
17069 | ; return 0; } |
17070 | EOF | |
613d0995 | 17071 | if { (eval echo configure:17072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17072 | rm -rf conftest* |
4f14bcd8 | 17073 | |
7274f1c7 RL |
17074 | wx_cv_type_pthread_rec_mutex_init=yes |
17075 | ||
698dcdb6 VZ |
17076 | else |
17077 | echo "configure: failed program was:" >&5 | |
17078 | cat conftest.$ac_ext >&5 | |
17079 | rm -rf conftest* | |
4f14bcd8 | 17080 | |
7274f1c7 RL |
17081 | wx_cv_type_pthread_rec_mutex_init=no |
17082 | ||
4f14bcd8 | 17083 | |
698dcdb6 VZ |
17084 | fi |
17085 | rm -f conftest* | |
7274f1c7 | 17086 | |
3fed1840 RR |
17087 | fi |
17088 | ||
4f14bcd8 | 17089 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17090 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17091 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17092 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17093 | EOF | |
3fed1840 | 17094 | |
7274f1c7 RL |
17095 | else |
17096 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17097 | fi | |
17098 | fi | |
4f14bcd8 | 17099 | |
7274f1c7 | 17100 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17101 | |
7274f1c7 RL |
17102 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17103 | CPPFLAGS="$CFLAGS -mt" | |
17104 | CXXFLAGS="$CXXFLAGS -mt" | |
17105 | LDFLAGS="$LDFLAGS -mt" | |
17106 | fi | |
17107 | fi | |
3fed1840 | 17108 | |
4f14bcd8 GD |
17109 | fi |
17110 | ||
17111 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17112 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17113 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17114 | EOF |
17115 | ||
4f14bcd8 | 17116 | |
3f345b47 | 17117 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17118 | |
17119 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17120 | else |
4f14bcd8 GD |
17121 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17122 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
613d0995 | 17123 | echo "configure:17124: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17124 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17125 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17126 | echo "$ac_t""yes" 1>&6 | |
17127 | else | |
17128 | echo "$ac_t""no" 1>&6 | |
17129 | fi | |
17130 | fi | |
17131 | fi | |
17132 | ||
17133 | if test "$WXGTK20" = 1 ; then | |
17134 | cat >> confdefs.h <<EOF | |
17135 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17136 | EOF |
4f14bcd8 GD |
17137 | |
17138 | WXGTK12=1 | |
10f2d63a | 17139 | fi |
4f14bcd8 GD |
17140 | |
17141 | if test "$WXGTK12" = 1 ; then | |
17142 | cat >> confdefs.h <<EOF | |
17143 | #define __WXGTK12__ $WXGTK12 | |
17144 | EOF | |
17145 | ||
10f2d63a | 17146 | fi |
698dcdb6 | 17147 | |
4f14bcd8 GD |
17148 | if test "$WXGTK127" = 1 ; then |
17149 | cat >> confdefs.h <<EOF | |
17150 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17151 | EOF |
4f14bcd8 | 17152 | |
698dcdb6 | 17153 | fi |
10f2d63a | 17154 | |
4f14bcd8 GD |
17155 | WXDEBUG= |
17156 | ||
17157 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17158 | WXDEBUG="-g" | |
17159 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17160 | fi |
4f14bcd8 GD |
17161 | |
17162 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17163 | wxUSE_DEBUG_INFO=yes | |
17164 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17165 | fi |
17166 | ||
4f14bcd8 GD |
17167 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17168 | cat >> confdefs.h <<\EOF | |
17169 | #define WXDEBUG 1 | |
17170 | EOF | |
17171 | ||
17172 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17173 | else |
4f14bcd8 GD |
17174 | if test "$wxUSE_GTK" = 1 ; then |
17175 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17176 | fi | |
17177 | fi | |
17178 | ||
17179 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17180 | cat >> confdefs.h <<\EOF | |
17181 | #define wxUSE_MEMORY_TRACING 1 | |
17182 | EOF | |
17183 | ||
17184 | cat >> confdefs.h <<\EOF | |
17185 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17186 | EOF | |
17187 | ||
17188 | cat >> confdefs.h <<\EOF | |
17189 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17190 | EOF | |
17191 | ||
17192 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17193 | fi | |
17194 | ||
17195 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17196 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17197 | fi |
17198 | ||
17199 | PROFILE= | |
17200 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17201 | PROFILE=" -pg" |
10f2d63a VZ |
17202 | fi |
17203 | ||
88e30f2b | 17204 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17205 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17206 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17207 | fi |
4f14bcd8 GD |
17208 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17209 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17210 | fi | |
17211 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17212 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17213 | fi | |
4f14bcd8 GD |
17214 | if test "$USE_WIN32" = 1 ; then |
17215 | # I'm not even really sure what this was ever added to solve, | |
17216 | # but someone added it for mingw native builds, so I guess | |
17217 | # they had a reason, right?? | |
17218 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17219 | fi | |
17220 | fi | |
17221 | ||
17222 | ||
17223 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17224 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17225 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17226 | OPTIMISE= | |
17227 | else | |
17228 | if test "$GCC" = yes ; then | |
17229 | OPTIMISE="-O2" | |
17230 | case "${host}" in | |
17231 | i586-*-*|i686-*-* ) | |
17232 | OPTIMISE="${OPTIMISE} " | |
17233 | ;; | |
17234 | esac | |
17235 | else | |
17236 | OPTIMISE="-O" | |
17237 | fi | |
17238 | fi | |
17239 | ||
17240 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17241 | cat >> confdefs.h <<\EOF | |
17242 | #define WXWIN_COMPATIBILITY_2 1 | |
17243 | EOF | |
17244 | ||
17245 | ||
17246 | WXWIN_COMPATIBILITY_2_2="yes" | |
17247 | fi | |
17248 | ||
17249 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
17250 | cat >> confdefs.h <<\EOF | |
17251 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17252 | EOF | |
17253 | ||
10f2d63a VZ |
17254 | fi |
17255 | ||
698dcdb6 | 17256 | |
10f2d63a | 17257 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17258 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17259 | #define wxUSE_GUI 1 |
17260 | EOF | |
17261 | ||
698dcdb6 | 17262 | |
10f2d63a | 17263 | else |
698dcdb6 | 17264 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17265 | #define wxUSE_NOGUI 1 |
17266 | EOF | |
17267 | ||
17268 | fi | |
17269 | ||
698dcdb6 | 17270 | |
10f2d63a | 17271 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17273 | #define wxUSE_UNIX 1 |
17274 | EOF | |
17275 | ||
17276 | fi | |
17277 | ||
698dcdb6 | 17278 | |
10f2d63a | 17279 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17281 | #define wxUSE_APPLE_IEEE 1 |
17282 | EOF | |
17283 | ||
17284 | fi | |
17285 | ||
1e6feb95 VZ |
17286 | if test "$wxUSE_TIMER" = "yes"; then |
17287 | cat >> confdefs.h <<\EOF | |
17288 | #define wxUSE_TIMER 1 | |
17289 | EOF | |
17290 | ||
17291 | fi | |
17292 | ||
10f2d63a | 17293 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 17294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17295 | #define wxUSE_WAVE 1 |
17296 | EOF | |
17297 | ||
17298 | fi | |
17299 | ||
1e6feb95 VZ |
17300 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
17301 | cat >> confdefs.h <<\EOF | |
17302 | #define wxUSE_CMDLINE_PARSER 1 | |
17303 | EOF | |
17304 | ||
17305 | fi | |
17306 | ||
17307 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
17308 | cat >> confdefs.h <<\EOF | |
17309 | #define wxUSE_STOPWATCH 1 | |
17310 | EOF | |
17311 | ||
17312 | fi | |
17313 | ||
17314 | if test "$wxUSE_DATETIME" = "yes"; then | |
17315 | cat >> confdefs.h <<\EOF | |
17316 | #define wxUSE_DATETIME 1 | |
17317 | EOF | |
17318 | ||
17319 | fi | |
17320 | ||
17321 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
17322 | cat >> confdefs.h <<\EOF | |
17323 | #define wxUSE_TIMEDATE 1 | |
17324 | EOF | |
17325 | ||
17326 | fi | |
17327 | ||
10f2d63a | 17328 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 17329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17330 | #define wxUSE_FILE 1 |
17331 | EOF | |
17332 | ||
17333 | fi | |
17334 | ||
1e6feb95 VZ |
17335 | if test "$wxUSE_FFILE" = "yes"; then |
17336 | cat >> confdefs.h <<\EOF | |
17337 | #define wxUSE_FFILE 1 | |
17338 | EOF | |
17339 | ||
17340 | fi | |
17341 | ||
24528b0c | 17342 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 17343 | cat >> confdefs.h <<\EOF |
24528b0c VS |
17344 | #define wxUSE_FILESYSTEM 1 |
17345 | EOF | |
17346 | ||
17347 | fi | |
17348 | ||
10f2d63a | 17349 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 17350 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17351 | #define wxUSE_FS_INET 1 |
17352 | EOF | |
17353 | ||
17354 | fi | |
17355 | ||
17356 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 17357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17358 | #define wxUSE_FS_ZIP 1 |
17359 | EOF | |
17360 | ||
17361 | fi | |
17362 | ||
17363 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 17364 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17365 | #define wxUSE_ZIPSTREAM 1 |
17366 | EOF | |
17367 | ||
17368 | fi | |
17369 | ||
eb4efbdc | 17370 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 17371 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
17372 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
17373 | EOF | |
17374 | ||
17375 | fi | |
17376 | ||
4f3c5f06 | 17377 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 17378 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
17379 | #define wxUSE_SNGLINST_CHECKER 1 |
17380 | EOF | |
17381 | ||
17382 | fi | |
17383 | ||
10f2d63a | 17384 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 17385 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17386 | #define wxUSE_BUSYINFO 1 |
17387 | EOF | |
17388 | ||
17389 | fi | |
17390 | ||
17391 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 17392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17393 | #define wxUSE_STD_IOSTREAM 1 |
17394 | EOF | |
17395 | ||
17396 | fi | |
17397 | ||
a3a584a7 VZ |
17398 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
17399 | cat >> confdefs.h <<\EOF | |
17400 | #define wxUSE_TEXTBUFFER 1 | |
17401 | EOF | |
17402 | ||
17403 | fi | |
17404 | ||
10f2d63a | 17405 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 17406 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 17407 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 17408 | else |
698dcdb6 | 17409 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17410 | #define wxUSE_TEXTFILE 1 |
17411 | EOF | |
17412 | ||
17413 | fi | |
17414 | fi | |
17415 | ||
17416 | if test "$wxUSE_CONFIG" = "yes" ; then | |
17417 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 17418 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 17419 | else |
698dcdb6 | 17420 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17421 | #define wxUSE_CONFIG 1 |
17422 | EOF | |
17423 | ||
17424 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
17425 | fi | |
17426 | fi | |
17427 | ||
17428 | if test "$wxUSE_INTL" = "yes" ; then | |
17429 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 17430 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 17431 | else |
698dcdb6 | 17432 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17433 | #define wxUSE_INTL 1 |
17434 | EOF | |
17435 | ||
17436 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 17437 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
17438 | fi |
17439 | fi | |
17440 | ||
17441 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 17442 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17443 | #define wxUSE_LOG 1 |
17444 | EOF | |
17445 | ||
d73be714 VZ |
17446 | |
17447 | if test "$wxUSE_LOGGUI" = "yes"; then | |
17448 | cat >> confdefs.h <<\EOF | |
17449 | #define wxUSE_LOGGUI 1 | |
17450 | EOF | |
17451 | ||
17452 | fi | |
17453 | ||
17454 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
17455 | cat >> confdefs.h <<\EOF | |
17456 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
17457 | EOF |
17458 | ||
17459 | fi | |
17460 | ||
17461 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
17462 | cat >> confdefs.h <<\EOF | |
17463 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
17464 | EOF |
17465 | ||
17466 | fi | |
10f2d63a VZ |
17467 | fi |
17468 | ||
17469 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 17470 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17471 | #define wxUSE_LONGLONG 1 |
17472 | EOF | |
17473 | ||
17474 | fi | |
17475 | ||
e8f65ba6 | 17476 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 17477 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
17478 | #define wxUSE_GEOMETRY 1 |
17479 | EOF | |
17480 | ||
17481 | fi | |
17482 | ||
10f2d63a | 17483 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 17484 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17485 | #define wxUSE_DIALUP_MANAGER 1 |
17486 | EOF | |
17487 | ||
70f7a477 | 17488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
17489 | fi |
17490 | ||
17491 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 17492 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17493 | #define wxUSE_STREAMS 1 |
17494 | EOF | |
17495 | ||
17496 | fi | |
17497 | ||
1e487827 | 17498 | |
1e6feb95 | 17499 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 17500 | for ac_func in strptime |
83307f33 | 17501 | do |
698dcdb6 | 17502 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 17503 | echo "configure:17504: checking for $ac_func" >&5 |
698dcdb6 VZ |
17504 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17506 | else | |
17507 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17508 | #line 17509 "configure" |
83307f33 VZ |
17509 | #include "confdefs.h" |
17510 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17511 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
17512 | #include <assert.h> |
17513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17514 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17515 | builtin and then its argument prototype would still apply. */ |
17516 | char $ac_func(); | |
17517 | ||
17518 | int main() { | |
83307f33 VZ |
17519 | |
17520 | /* The GNU C library defines this for functions which it implements | |
17521 | to always fail with ENOSYS. Some functions are actually named | |
17522 | something starting with __ and the normal name is an alias. */ | |
17523 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17524 | choke me | |
17525 | #else | |
698dcdb6 | 17526 | $ac_func(); |
83307f33 VZ |
17527 | #endif |
17528 | ||
698dcdb6 | 17529 | ; return 0; } |
83307f33 | 17530 | EOF |
613d0995 | 17531 | if { (eval echo configure:17532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17532 | rm -rf conftest* |
17533 | eval "ac_cv_func_$ac_func=yes" | |
17534 | else | |
17535 | echo "configure: failed program was:" >&5 | |
17536 | cat conftest.$ac_ext >&5 | |
17537 | rm -rf conftest* | |
17538 | eval "ac_cv_func_$ac_func=no" | |
17539 | fi | |
17540 | rm -f conftest* | |
17541 | fi | |
83307f33 | 17542 | |
698dcdb6 VZ |
17543 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17544 | echo "$ac_t""yes" 1>&6 | |
17545 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17546 | cat >> confdefs.h <<EOF | |
17547 | #define $ac_tr_func 1 | |
17548 | EOF | |
17549 | ||
17550 | else | |
17551 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
17552 | fi |
17553 | done | |
17554 | ||
1e487827 | 17555 | |
698dcdb6 | 17556 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
613d0995 | 17557 | echo "configure:17558: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
17558 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
17559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17560 | else | |
17561 | ||
17562 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17563 | #line 17564 "configure" |
360d6699 VZ |
17564 | #include "confdefs.h" |
17565 | ||
b4085ce6 | 17566 | #include <time.h> |
698dcdb6 VZ |
17567 | |
17568 | int main() { | |
360d6699 VZ |
17569 | |
17570 | int tz; | |
4f11a343 | 17571 | tz = timezone; |
698dcdb6 VZ |
17572 | |
17573 | ; return 0; } | |
17574 | EOF | |
613d0995 | 17575 | if { (eval echo configure:17576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17576 | rm -rf conftest* |
17577 | ||
4f11a343 | 17578 | wx_cv_var_timezone=timezone |
698dcdb6 | 17579 | |
360d6699 | 17580 | else |
698dcdb6 VZ |
17581 | echo "configure: failed program was:" >&5 |
17582 | cat conftest.$ac_ext >&5 | |
17583 | rm -rf conftest* | |
17584 | ||
17585 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17586 | #line 17587 "configure" |
360d6699 VZ |
17587 | #include "confdefs.h" |
17588 | ||
b4085ce6 | 17589 | #include <time.h> |
698dcdb6 VZ |
17590 | |
17591 | int main() { | |
360d6699 VZ |
17592 | |
17593 | int tz; | |
17594 | tz = _timezone; | |
698dcdb6 VZ |
17595 | |
17596 | ; return 0; } | |
17597 | EOF | |
613d0995 | 17598 | if { (eval echo configure:17599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17599 | rm -rf conftest* |
17600 | ||
360d6699 | 17601 | wx_cv_var_timezone=_timezone |
698dcdb6 | 17602 | |
5357c8e8 | 17603 | else |
698dcdb6 VZ |
17604 | echo "configure: failed program was:" >&5 |
17605 | cat conftest.$ac_ext >&5 | |
17606 | rm -rf conftest* | |
17607 | ||
17608 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17609 | #line 17610 "configure" |
5357c8e8 VZ |
17610 | #include "confdefs.h" |
17611 | ||
b4085ce6 | 17612 | #include <time.h> |
698dcdb6 VZ |
17613 | |
17614 | int main() { | |
5357c8e8 VZ |
17615 | |
17616 | int tz; | |
4f11a343 | 17617 | tz = __timezone; |
698dcdb6 VZ |
17618 | |
17619 | ; return 0; } | |
17620 | EOF | |
613d0995 | 17621 | if { (eval echo configure:17622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17622 | rm -rf conftest* |
17623 | ||
4f11a343 | 17624 | wx_cv_var_timezone=__timezone |
698dcdb6 | 17625 | |
360d6699 | 17626 | else |
698dcdb6 VZ |
17627 | echo "configure: failed program was:" >&5 |
17628 | cat conftest.$ac_ext >&5 | |
17629 | rm -rf conftest* | |
f9bc1684 VS |
17630 | |
17631 | if test "$USE_DOS" = 0 ; then | |
17632 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
17633 | fi | |
17634 | ||
698dcdb6 | 17635 | |
360d6699 | 17636 | fi |
698dcdb6 VZ |
17637 | rm -f conftest* |
17638 | ||
17639 | ||
360d6699 | 17640 | fi |
698dcdb6 VZ |
17641 | rm -f conftest* |
17642 | ||
17643 | ||
6232543b | 17644 | fi |
698dcdb6 VZ |
17645 | rm -f conftest* |
17646 | ||
17647 | ||
1e487827 | 17648 | fi |
703e0a69 | 17649 | |
698dcdb6 VZ |
17650 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
17651 | ||
f9bc1684 | 17652 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 17653 | cat >> confdefs.h <<EOF |
360d6699 VZ |
17654 | #define WX_TIMEZONE $wx_cv_var_timezone |
17655 | EOF | |
17656 | ||
f9bc1684 | 17657 | fi |
698dcdb6 VZ |
17658 | |
17659 | for ac_func in localtime | |
afc31813 | 17660 | do |
698dcdb6 | 17661 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 17662 | echo "configure:17663: checking for $ac_func" >&5 |
698dcdb6 VZ |
17663 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17665 | else | |
17666 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17667 | #line 17668 "configure" |
10f2d63a | 17668 | #include "confdefs.h" |
afc31813 | 17669 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 17670 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
17671 | #include <assert.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 | |
698dcdb6 VZ |
17674 | builtin and then its argument prototype would still apply. */ |
17675 | char $ac_func(); | |
17676 | ||
17677 | int main() { | |
afc31813 VZ |
17678 | |
17679 | /* The GNU C library defines this for functions which it implements | |
17680 | to always fail with ENOSYS. Some functions are actually named | |
17681 | something starting with __ and the normal name is an alias. */ | |
17682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17683 | choke me | |
17684 | #else | |
698dcdb6 | 17685 | $ac_func(); |
afc31813 VZ |
17686 | #endif |
17687 | ||
698dcdb6 | 17688 | ; return 0; } |
10f2d63a | 17689 | EOF |
613d0995 | 17690 | if { (eval echo configure:17691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17691 | rm -rf conftest* |
17692 | eval "ac_cv_func_$ac_func=yes" | |
17693 | else | |
17694 | echo "configure: failed program was:" >&5 | |
17695 | cat conftest.$ac_ext >&5 | |
17696 | rm -rf conftest* | |
17697 | eval "ac_cv_func_$ac_func=no" | |
17698 | fi | |
17699 | rm -f conftest* | |
17700 | fi | |
afc31813 | 17701 | |
698dcdb6 VZ |
17702 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17703 | echo "$ac_t""yes" 1>&6 | |
17704 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17705 | cat >> confdefs.h <<EOF | |
17706 | #define $ac_tr_func 1 | |
17707 | EOF | |
17708 | ||
17709 | else | |
17710 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
17711 | fi |
17712 | done | |
17713 | ||
1e487827 | 17714 | |
698dcdb6 VZ |
17715 | if test "$ac_cv_func_localtime" = "yes"; then |
17716 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
613d0995 | 17717 | echo "configure:17718: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
17718 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
17719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17720 | else | |
17721 | ||
17722 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17723 | #line 17724 "configure" |
0470b1e6 VZ |
17724 | #include "confdefs.h" |
17725 | ||
b4085ce6 | 17726 | #include <time.h> |
698dcdb6 VZ |
17727 | |
17728 | int main() { | |
0470b1e6 VZ |
17729 | |
17730 | struct tm tm; | |
17731 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
17732 | |
17733 | ; return 0; } | |
17734 | EOF | |
613d0995 | 17735 | if { (eval echo configure:17736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17736 | rm -rf conftest* |
17737 | ||
f03a98d8 | 17738 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 17739 | |
0470b1e6 | 17740 | else |
698dcdb6 VZ |
17741 | echo "configure: failed program was:" >&5 |
17742 | cat conftest.$ac_ext >&5 | |
17743 | rm -rf conftest* | |
17744 | wx_cv_struct_tm_has_gmtoff=no | |
17745 | ||
0470b1e6 | 17746 | fi |
698dcdb6 VZ |
17747 | rm -f conftest* |
17748 | ||
1e487827 | 17749 | fi |
698dcdb6 VZ |
17750 | |
17751 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
17752 | fi |
17753 | ||
17754 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 17755 | cat >> confdefs.h <<\EOF |
6232543b VS |
17756 | #define WX_GMTOFF_IN_TM 1 |
17757 | EOF | |
0470b1e6 | 17758 | |
3fcdd07b VZ |
17759 | fi |
17760 | ||
698dcdb6 | 17761 | for ac_func in gettimeofday ftime |
3fcdd07b | 17762 | do |
698dcdb6 | 17763 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 17764 | echo "configure:17765: checking for $ac_func" >&5 |
698dcdb6 VZ |
17765 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17767 | else | |
17768 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17769 | #line 17770 "configure" |
3fcdd07b VZ |
17770 | #include "confdefs.h" |
17771 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17772 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
17773 | #include <assert.h> |
17774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17775 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17776 | builtin and then its argument prototype would still apply. */ |
17777 | char $ac_func(); | |
17778 | ||
17779 | int main() { | |
3fcdd07b VZ |
17780 | |
17781 | /* The GNU C library defines this for functions which it implements | |
17782 | to always fail with ENOSYS. Some functions are actually named | |
17783 | something starting with __ and the normal name is an alias. */ | |
17784 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17785 | choke me | |
17786 | #else | |
698dcdb6 | 17787 | $ac_func(); |
3fcdd07b VZ |
17788 | #endif |
17789 | ||
698dcdb6 VZ |
17790 | ; return 0; } |
17791 | EOF | |
613d0995 | 17792 | if { (eval echo configure:17793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17793 | rm -rf conftest* |
17794 | eval "ac_cv_func_$ac_func=yes" | |
17795 | else | |
17796 | echo "configure: failed program was:" >&5 | |
17797 | cat conftest.$ac_ext >&5 | |
17798 | rm -rf conftest* | |
17799 | eval "ac_cv_func_$ac_func=no" | |
17800 | fi | |
17801 | rm -f conftest* | |
17802 | fi | |
17803 | ||
17804 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17805 | echo "$ac_t""yes" 1>&6 | |
17806 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17807 | cat >> confdefs.h <<EOF | |
17808 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
17809 | EOF |
17810 | break | |
698dcdb6 VZ |
17811 | else |
17812 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
17813 | fi |
17814 | done | |
17815 | ||
afc31813 | 17816 | |
698dcdb6 VZ |
17817 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
17818 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
613d0995 | 17819 | echo "configure:17820: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
17820 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
17821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17822 | else | |
17823 | ||
17824 | ||
17825 | ac_ext=C | |
17826 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 17827 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17828 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17829 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17830 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17831 | |
698dcdb6 VZ |
17832 | |
17833 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17834 | #line 17835 "configure" |
10f2d63a | 17835 | #include "confdefs.h" |
afc31813 VZ |
17836 | |
17837 | #include <sys/time.h> | |
17838 | #include <unistd.h> | |
698dcdb6 VZ |
17839 | |
17840 | int main() { | |
afc31813 VZ |
17841 | |
17842 | struct timeval tv; | |
776862b4 | 17843 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
17844 | |
17845 | ; return 0; } | |
17846 | EOF | |
613d0995 | 17847 | if { (eval echo configure:17848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17848 | rm -rf conftest* |
afc31813 | 17849 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 17850 | else |
698dcdb6 VZ |
17851 | echo "configure: failed program was:" >&5 |
17852 | cat conftest.$ac_ext >&5 | |
17853 | rm -rf conftest* | |
17854 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 17855 | #line 17856 "configure" |
10f2d63a | 17856 | #include "confdefs.h" |
afc31813 VZ |
17857 | |
17858 | #include <sys/time.h> | |
17859 | #include <unistd.h> | |
698dcdb6 VZ |
17860 | |
17861 | int main() { | |
afc31813 VZ |
17862 | |
17863 | struct timeval tv; | |
17864 | gettimeofday(&tv); | |
698dcdb6 VZ |
17865 | |
17866 | ; return 0; } | |
17867 | EOF | |
613d0995 | 17868 | if { (eval echo configure:17869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17869 | rm -rf conftest* |
afc31813 | 17870 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 17871 | else |
698dcdb6 VZ |
17872 | echo "configure: failed program was:" >&5 |
17873 | cat conftest.$ac_ext >&5 | |
17874 | rm -rf conftest* | |
776862b4 VZ |
17875 | |
17876 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
17877 | wx_cv_func_gettimeofday_has_2_args=unknown | |
17878 | ||
698dcdb6 | 17879 | |
10f2d63a | 17880 | fi |
698dcdb6 VZ |
17881 | rm -f conftest* |
17882 | ||
10f2d63a | 17883 | fi |
698dcdb6 | 17884 | rm -f conftest* |
afc31813 | 17885 | ac_ext=c |
698dcdb6 | 17886 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 17887 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17888 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17889 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17890 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 17891 | |
698dcdb6 | 17892 | |
afc31813 | 17893 | fi |
698dcdb6 VZ |
17894 | |
17895 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 17896 | |
afc31813 | 17897 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 17898 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17899 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
17900 | EOF | |
17901 | ||
17902 | fi | |
17903 | fi | |
17904 | ||
698dcdb6 | 17905 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17906 | #define wxUSE_TIMEDATE 1 |
17907 | EOF | |
17908 | ||
17909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
17910 | fi | |
17911 | ||
698dcdb6 | 17912 | |
b089607b VZ |
17913 | if test "$TOOLKIT" != "MSW"; then |
17914 | ||
3a922bb4 RL |
17915 | if test "$wxUSE_SOCKETS" = "yes"; then |
17916 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
613d0995 | 17917 | echo "configure:17918: checking for socket" >&5 |
698dcdb6 VZ |
17918 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
17919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17920 | else |
698dcdb6 | 17921 | cat > conftest.$ac_ext <<EOF |
613d0995 | 17922 | #line 17923 "configure" |
c63c7106 VZ |
17923 | #include "confdefs.h" |
17924 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17925 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
17926 | #include <assert.h> |
17927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17928 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17929 | builtin and then its argument prototype would still apply. */ |
17930 | char socket(); | |
17931 | ||
17932 | int main() { | |
c63c7106 VZ |
17933 | |
17934 | /* The GNU C library defines this for functions which it implements | |
17935 | to always fail with ENOSYS. Some functions are actually named | |
17936 | something starting with __ and the normal name is an alias. */ | |
17937 | #if defined (__stub_socket) || defined (__stub___socket) | |
17938 | choke me | |
17939 | #else | |
698dcdb6 | 17940 | socket(); |
c63c7106 VZ |
17941 | #endif |
17942 | ||
698dcdb6 VZ |
17943 | ; return 0; } |
17944 | EOF | |
613d0995 | 17945 | if { (eval echo configure:17946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17946 | rm -rf conftest* |
17947 | eval "ac_cv_func_socket=yes" | |
17948 | else | |
17949 | echo "configure: failed program was:" >&5 | |
17950 | cat conftest.$ac_ext >&5 | |
17951 | rm -rf conftest* | |
17952 | eval "ac_cv_func_socket=no" | |
17953 | fi | |
17954 | rm -f conftest* | |
17955 | fi | |
17956 | ||
17957 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
17958 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
17959 | : |
17960 | else | |
698dcdb6 VZ |
17961 | echo "$ac_t""no" 1>&6 |
17962 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
613d0995 | 17963 | echo "configure:17964: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
17964 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
17965 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17967 | else |
698dcdb6 | 17968 | ac_save_LIBS="$LIBS" |
c63c7106 | 17969 | LIBS="-lsocket $LIBS" |
698dcdb6 | 17970 | cat > conftest.$ac_ext <<EOF |
613d0995 | 17971 | #line 17972 "configure" |
c63c7106 VZ |
17972 | #include "confdefs.h" |
17973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17974 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17975 | builtin and then its argument prototype would still apply. */ |
17976 | char socket(); | |
17977 | ||
17978 | int main() { | |
17979 | socket() | |
17980 | ; return 0; } | |
17981 | EOF | |
613d0995 | 17982 | if { (eval echo configure:17983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17983 | rm -rf conftest* |
17984 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17985 | else | |
17986 | echo "configure: failed program was:" >&5 | |
17987 | cat conftest.$ac_ext >&5 | |
17988 | rm -rf conftest* | |
17989 | eval "ac_cv_lib_$ac_lib_var=no" | |
17990 | fi | |
17991 | rm -f conftest* | |
17992 | LIBS="$ac_save_LIBS" | |
17993 | ||
17994 | fi | |
17995 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17996 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 17997 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 17998 | else |
698dcdb6 | 17999 | echo "$ac_t""no" 1>&6 |
afc31813 | 18000 | |
3a922bb4 RL |
18001 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18002 | wxUSE_SOCKETS=no | |
18003 | ||
698dcdb6 | 18004 | |
6232543b | 18005 | fi |
b089607b | 18006 | |
3a922bb4 | 18007 | |
1e487827 | 18008 | fi |
afc31813 | 18009 | |
3a922bb4 | 18010 | fi |
51a9faba | 18011 | |
3a922bb4 RL |
18012 | |
18013 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
18014 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
613d0995 | 18015 | echo "configure:18016: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18016 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18018 | else | |
18019 | ||
3a922bb4 RL |
18020 | |
18021 | ac_ext=C | |
698dcdb6 | 18022 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18023 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18024 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18025 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18026 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18027 | |
698dcdb6 | 18028 | |
3a922bb4 | 18029 | cat > conftest.$ac_ext <<EOF |
613d0995 | 18030 | #line 18031 "configure" |
afc31813 | 18031 | #include "confdefs.h" |
51a9faba | 18032 | |
3a922bb4 RL |
18033 | #include <sys/types.h> |
18034 | #include <sys/socket.h> | |
18035 | ||
698dcdb6 | 18036 | int main() { |
51a9faba | 18037 | |
3a922bb4 RL |
18038 | socklen_t len; |
18039 | getsockname(0, 0, &len); | |
18040 | ||
698dcdb6 VZ |
18041 | ; return 0; } |
18042 | EOF | |
613d0995 | 18043 | if { (eval echo configure:18044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18044 | rm -rf conftest* |
51a9faba | 18045 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18046 | else |
698dcdb6 VZ |
18047 | echo "configure: failed program was:" >&5 |
18048 | cat conftest.$ac_ext >&5 | |
18049 | rm -rf conftest* | |
18050 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18051 | #line 18052 "configure" |
afc31813 | 18052 | #include "confdefs.h" |
51a9faba | 18053 | |
3a922bb4 RL |
18054 | #include <sys/types.h> |
18055 | #include <sys/socket.h> | |
18056 | ||
698dcdb6 | 18057 | int main() { |
51a9faba | 18058 | |
3a922bb4 RL |
18059 | size_t len; |
18060 | getsockname(0, 0, &len); | |
18061 | ||
698dcdb6 VZ |
18062 | ; return 0; } |
18063 | EOF | |
613d0995 | 18064 | if { (eval echo configure:18065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18065 | rm -rf conftest* |
51a9faba | 18066 | wx_cv_type_getsockname3=size_t |
afc31813 | 18067 | else |
698dcdb6 VZ |
18068 | echo "configure: failed program was:" >&5 |
18069 | cat conftest.$ac_ext >&5 | |
18070 | rm -rf conftest* | |
18071 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18072 | #line 18073 "configure" |
afc31813 | 18073 | #include "confdefs.h" |
51a9faba | 18074 | |
3a922bb4 RL |
18075 | #include <sys/types.h> |
18076 | #include <sys/socket.h> | |
18077 | ||
698dcdb6 | 18078 | int main() { |
51a9faba | 18079 | |
3a922bb4 RL |
18080 | int len; |
18081 | getsockname(0, 0, &len); | |
18082 | ||
698dcdb6 VZ |
18083 | ; return 0; } |
18084 | EOF | |
613d0995 | 18085 | if { (eval echo configure:18086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18086 | rm -rf conftest* |
51a9faba | 18087 | wx_cv_type_getsockname3=int |
afc31813 | 18088 | else |
698dcdb6 VZ |
18089 | echo "configure: failed program was:" >&5 |
18090 | cat conftest.$ac_ext >&5 | |
18091 | rm -rf conftest* | |
18092 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18093 | |
afc31813 | 18094 | fi |
698dcdb6 | 18095 | rm -f conftest* |
3a922bb4 | 18096 | |
afc31813 | 18097 | fi |
698dcdb6 | 18098 | rm -f conftest* |
3a922bb4 | 18099 | |
afc31813 | 18100 | fi |
698dcdb6 | 18101 | rm -f conftest* |
51a9faba | 18102 | |
3a922bb4 | 18103 | ac_ext=c |
698dcdb6 | 18104 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18105 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18106 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18107 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18108 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18109 | |
3a922bb4 | 18110 | |
51a9faba | 18111 | fi |
698dcdb6 VZ |
18112 | |
18113 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18114 | |
3a922bb4 RL |
18115 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18116 | wxUSE_SOCKETS=no | |
18117 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18118 | else | |
18119 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18120 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18121 | EOF | |
18122 | ||
3a922bb4 | 18123 | fi |
51a9faba VZ |
18124 | fi |
18125 | fi | |
afc31813 | 18126 | |
51a9faba | 18127 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18128 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18129 | #define wxUSE_SOCKETS 1 |
18130 | EOF | |
18131 | ||
70f7a477 | 18132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18133 | fi |
18134 | ||
698dcdb6 | 18135 | |
dc3d889d VZ |
18136 | if test "$wxUSE_GUI" = "yes"; then |
18137 | ||
156b2523 GD |
18138 | if test "$TOOLKIT" = "MAC"; then |
18139 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18140 | wxUSE_JOYSTICK=no | |
18141 | fi | |
18142 | if test "$TOOLKIT" = "MOTIF"; then | |
18143 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18144 | wxUSE_JOYSTICK=no | |
18145 | fi | |
18146 | ||
3a922bb4 RL |
18147 | if test "$TOOLKIT" != "MSW"; then |
18148 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18149 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18150 | do |
698dcdb6 VZ |
18151 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18152 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 18153 | echo "configure:18154: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18154 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18156 | else | |
18157 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18158 | #line 18159 "configure" |
10f2d63a | 18159 | #include "confdefs.h" |
698dcdb6 VZ |
18160 | #include <$ac_hdr> |
18161 | EOF | |
18162 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 18163 | { (eval echo configure:18164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18164 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18165 | if test -z "$ac_err"; then | |
18166 | rm -rf conftest* | |
18167 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18168 | else |
698dcdb6 VZ |
18169 | echo "$ac_err" >&5 |
18170 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18171 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18172 | rm -rf conftest* |
18173 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18174 | fi |
698dcdb6 | 18175 | rm -f conftest* |
10f2d63a | 18176 | fi |
698dcdb6 VZ |
18177 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18178 | echo "$ac_t""yes" 1>&6 | |
18179 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18180 | cat >> confdefs.h <<EOF | |
18181 | #define $ac_tr_hdr 1 | |
10f2d63a | 18182 | EOF |
698dcdb6 VZ |
18183 | |
18184 | else | |
18185 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18186 | fi |
18187 | done | |
18188 | ||
3a922bb4 RL |
18189 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18190 | wxUSE_JOYSTICK=no | |
156b2523 | 18191 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18192 | fi |
18193 | fi | |
18194 | fi | |
b089607b | 18195 | |
3a922bb4 RL |
18196 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18197 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18198 | #define wxUSE_JOYSTICK 1 |
18199 | EOF | |
18200 | ||
3a922bb4 RL |
18201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18202 | fi | |
dc3d889d VZ |
18203 | fi |
18204 | ||
698dcdb6 | 18205 | |
b089607b VZ |
18206 | if test "$TOOLKIT" != "MSW"; then |
18207 | ||
3a922bb4 RL |
18208 | HAVE_DL_FUNCS=0 |
18209 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18210 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18211 | if test "$USE_DARWIN" = 1; then |
18212 | HAVE_DL_FUNCS=1 | |
18213 | else | |
18214 | for ac_func in dlopen | |
10f2d63a | 18215 | do |
698dcdb6 | 18216 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 18217 | echo "configure:18218: checking for $ac_func" >&5 |
698dcdb6 VZ |
18218 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18220 | else | |
18221 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18222 | #line 18223 "configure" |
10f2d63a VZ |
18223 | #include "confdefs.h" |
18224 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18225 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18226 | #include <assert.h> |
18227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18228 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18229 | builtin and then its argument prototype would still apply. */ |
18230 | char $ac_func(); | |
18231 | ||
18232 | int main() { | |
10f2d63a VZ |
18233 | |
18234 | /* The GNU C library defines this for functions which it implements | |
18235 | to always fail with ENOSYS. Some functions are actually named | |
18236 | something starting with __ and the normal name is an alias. */ | |
18237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18238 | choke me | |
18239 | #else | |
698dcdb6 | 18240 | $ac_func(); |
10f2d63a VZ |
18241 | #endif |
18242 | ||
698dcdb6 VZ |
18243 | ; return 0; } |
18244 | EOF | |
613d0995 | 18245 | if { (eval echo configure:18246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18246 | rm -rf conftest* |
18247 | eval "ac_cv_func_$ac_func=yes" | |
18248 | else | |
18249 | echo "configure: failed program was:" >&5 | |
18250 | cat conftest.$ac_ext >&5 | |
18251 | rm -rf conftest* | |
18252 | eval "ac_cv_func_$ac_func=no" | |
18253 | fi | |
18254 | rm -f conftest* | |
18255 | fi | |
18256 | ||
18257 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18258 | echo "$ac_t""yes" 1>&6 | |
18259 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18260 | cat >> confdefs.h <<EOF | |
18261 | #define $ac_tr_func 1 | |
18262 | EOF | |
18263 | ||
3a922bb4 | 18264 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18265 | #define HAVE_DLOPEN 1 |
18266 | EOF | |
18267 | ||
3a922bb4 RL |
18268 | HAVE_DL_FUNCS=1 |
18269 | ||
10f2d63a | 18270 | else |
698dcdb6 VZ |
18271 | echo "$ac_t""no" 1>&6 |
18272 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
613d0995 | 18273 | echo "configure:18274: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18274 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18275 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18276 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18277 | else |
698dcdb6 | 18278 | ac_save_LIBS="$LIBS" |
10f2d63a | 18279 | LIBS="-ldl $LIBS" |
698dcdb6 | 18280 | cat > conftest.$ac_ext <<EOF |
613d0995 | 18281 | #line 18282 "configure" |
10f2d63a VZ |
18282 | #include "confdefs.h" |
18283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18284 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18285 | builtin and then its argument prototype would still apply. */ |
18286 | char dlopen(); | |
18287 | ||
18288 | int main() { | |
18289 | dlopen() | |
18290 | ; return 0; } | |
18291 | EOF | |
613d0995 | 18292 | if { (eval echo configure:18293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18293 | rm -rf conftest* |
18294 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18295 | else | |
18296 | echo "configure: failed program was:" >&5 | |
18297 | cat conftest.$ac_ext >&5 | |
18298 | rm -rf conftest* | |
18299 | eval "ac_cv_lib_$ac_lib_var=no" | |
18300 | fi | |
18301 | rm -f conftest* | |
18302 | LIBS="$ac_save_LIBS" | |
18303 | ||
18304 | fi | |
18305 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18306 | echo "$ac_t""yes" 1>&6 | |
18307 | ||
3a922bb4 | 18308 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18309 | #define HAVE_DLOPEN 1 |
18310 | EOF | |
18311 | ||
3a922bb4 | 18312 | HAVE_DL_FUNCS=1 |
3d63bc3a | 18313 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 18314 | |
10f2d63a | 18315 | else |
698dcdb6 | 18316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18317 | |
3a922bb4 | 18318 | for ac_func in shl_load |
10f2d63a | 18319 | do |
698dcdb6 | 18320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 18321 | echo "configure:18322: checking for $ac_func" >&5 |
698dcdb6 VZ |
18322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18324 | else | |
18325 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18326 | #line 18327 "configure" |
10f2d63a VZ |
18327 | #include "confdefs.h" |
18328 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18329 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18330 | #include <assert.h> |
18331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18332 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18333 | builtin and then its argument prototype would still apply. */ |
18334 | char $ac_func(); | |
18335 | ||
18336 | int main() { | |
10f2d63a VZ |
18337 | |
18338 | /* The GNU C library defines this for functions which it implements | |
18339 | to always fail with ENOSYS. Some functions are actually named | |
18340 | something starting with __ and the normal name is an alias. */ | |
18341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18342 | choke me | |
18343 | #else | |
698dcdb6 | 18344 | $ac_func(); |
10f2d63a VZ |
18345 | #endif |
18346 | ||
698dcdb6 VZ |
18347 | ; return 0; } |
18348 | EOF | |
613d0995 | 18349 | if { (eval echo configure:18350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18350 | rm -rf conftest* |
18351 | eval "ac_cv_func_$ac_func=yes" | |
18352 | else | |
18353 | echo "configure: failed program was:" >&5 | |
18354 | cat conftest.$ac_ext >&5 | |
18355 | rm -rf conftest* | |
18356 | eval "ac_cv_func_$ac_func=no" | |
18357 | fi | |
18358 | rm -f conftest* | |
18359 | fi | |
18360 | ||
18361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18362 | echo "$ac_t""yes" 1>&6 | |
18363 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18364 | cat >> confdefs.h <<EOF | |
18365 | #define $ac_tr_func 1 | |
18366 | EOF | |
18367 | ||
3a922bb4 | 18368 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18369 | #define HAVE_SHL_LOAD 1 |
18370 | EOF | |
18371 | ||
3a922bb4 RL |
18372 | HAVE_SHL_FUNCS=1 |
18373 | ||
10f2d63a | 18374 | else |
698dcdb6 VZ |
18375 | echo "$ac_t""no" 1>&6 |
18376 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
613d0995 | 18377 | echo "configure:18378: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
18378 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
18379 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18381 | else |
698dcdb6 | 18382 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18383 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 18384 | cat > conftest.$ac_ext <<EOF |
613d0995 | 18385 | #line 18386 "configure" |
f6bcfd97 BP |
18386 | #include "confdefs.h" |
18387 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18388 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18389 | builtin and then its argument prototype would still apply. */ |
18390 | char dld(); | |
18391 | ||
18392 | int main() { | |
18393 | dld() | |
18394 | ; return 0; } | |
18395 | EOF | |
613d0995 | 18396 | if { (eval echo configure:18397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18397 | rm -rf conftest* |
18398 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18399 | else | |
18400 | echo "configure: failed program was:" >&5 | |
18401 | cat conftest.$ac_ext >&5 | |
18402 | rm -rf conftest* | |
18403 | eval "ac_cv_lib_$ac_lib_var=no" | |
18404 | fi | |
18405 | rm -f conftest* | |
18406 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 18407 | |
698dcdb6 VZ |
18408 | fi |
18409 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18410 | echo "$ac_t""yes" 1>&6 | |
18411 | ||
3a922bb4 | 18412 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 18413 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 18414 | |
698dcdb6 VZ |
18415 | else |
18416 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18417 | fi |
18418 | ||
3a922bb4 | 18419 | |
10f2d63a VZ |
18420 | fi |
18421 | done | |
18422 | ||
3a922bb4 | 18423 | |
10f2d63a VZ |
18424 | fi |
18425 | ||
3a922bb4 | 18426 | |
10f2d63a VZ |
18427 | fi |
18428 | done | |
18429 | ||
1e487827 | 18430 | |
3a922bb4 RL |
18431 | if test "$HAVE_DL_FUNCS" = 1; then |
18432 | for ac_func in dlerror | |
f6bcfd97 | 18433 | do |
698dcdb6 | 18434 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
613d0995 | 18435 | echo "configure:18436: checking for $ac_func" >&5 |
698dcdb6 VZ |
18436 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18438 | else | |
18439 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18440 | #line 18441 "configure" |
f6bcfd97 BP |
18441 | #include "confdefs.h" |
18442 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18443 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
18444 | #include <assert.h> |
18445 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18446 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18447 | builtin and then its argument prototype would still apply. */ |
18448 | char $ac_func(); | |
18449 | ||
18450 | int main() { | |
f6bcfd97 BP |
18451 | |
18452 | /* The GNU C library defines this for functions which it implements | |
18453 | to always fail with ENOSYS. Some functions are actually named | |
18454 | something starting with __ and the normal name is an alias. */ | |
18455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18456 | choke me | |
18457 | #else | |
698dcdb6 | 18458 | $ac_func(); |
f6bcfd97 BP |
18459 | #endif |
18460 | ||
698dcdb6 VZ |
18461 | ; return 0; } |
18462 | EOF | |
613d0995 | 18463 | if { (eval echo configure:18464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18464 | rm -rf conftest* |
18465 | eval "ac_cv_func_$ac_func=yes" | |
18466 | else | |
18467 | echo "configure: failed program was:" >&5 | |
18468 | cat conftest.$ac_ext >&5 | |
18469 | rm -rf conftest* | |
18470 | eval "ac_cv_func_$ac_func=no" | |
18471 | fi | |
18472 | rm -f conftest* | |
18473 | fi | |
18474 | ||
18475 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18476 | echo "$ac_t""yes" 1>&6 | |
18477 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18478 | cat >> confdefs.h <<EOF | |
18479 | #define $ac_tr_func 1 | |
18480 | EOF | |
18481 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
18482 | #define HAVE_DLERROR 1 |
18483 | EOF | |
18484 | ||
18485 | else | |
698dcdb6 VZ |
18486 | echo "$ac_t""no" 1>&6 |
18487 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
613d0995 | 18488 | echo "configure:18489: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
18489 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
18490 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18492 | else |
698dcdb6 | 18493 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18494 | LIBS="-ldl $LIBS" |
698dcdb6 | 18495 | cat > conftest.$ac_ext <<EOF |
613d0995 | 18496 | #line 18497 "configure" |
f6bcfd97 BP |
18497 | #include "confdefs.h" |
18498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18499 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18500 | builtin and then its argument prototype would still apply. */ |
18501 | char dlerror(); | |
18502 | ||
18503 | int main() { | |
18504 | dlerror() | |
18505 | ; return 0; } | |
18506 | EOF | |
613d0995 | 18507 | if { (eval echo configure:18508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18508 | rm -rf conftest* |
18509 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18510 | else | |
18511 | echo "configure: failed program was:" >&5 | |
18512 | cat conftest.$ac_ext >&5 | |
18513 | rm -rf conftest* | |
18514 | eval "ac_cv_lib_$ac_lib_var=no" | |
18515 | fi | |
18516 | rm -f conftest* | |
18517 | LIBS="$ac_save_LIBS" | |
18518 | ||
18519 | fi | |
18520 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18521 | echo "$ac_t""yes" 1>&6 | |
18522 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
18523 | #define HAVE_DLERROR 1 |
18524 | EOF | |
18525 | ||
698dcdb6 VZ |
18526 | else |
18527 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18528 | fi |
18529 | ||
18530 | fi | |
18531 | done | |
18532 | ||
3a922bb4 RL |
18533 | fi |
18534 | fi | |
f6bcfd97 | 18535 | |
3a922bb4 RL |
18536 | if test "$HAVE_DL_FUNCS" = 0; then |
18537 | if test "$HAVE_SHL_FUNCS" = 0; then | |
18538 | if test "$USE_UNIX" = 1; then | |
18539 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 18540 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
18541 | wxUSE_DYNLIB_CLASS=no |
18542 | else | |
18543 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
18544 | fi | |
18545 | fi | |
10f2d63a VZ |
18546 | fi |
18547 | fi | |
18548 | fi | |
18549 | ||
0b9ab0bd RL |
18550 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
18551 | cat >> confdefs.h <<\EOF | |
18552 | #define wxUSE_DYNAMIC_LOADER 1 | |
18553 | EOF | |
18554 | ||
18555 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 18556 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18557 | #define wxUSE_DYNLIB_CLASS 1 |
18558 | EOF | |
18559 | ||
18560 | fi | |
18561 | ||
698dcdb6 | 18562 | |
1e6feb95 VZ |
18563 | if test "$wxUSE_FONTMAP" = "yes" ; then |
18564 | cat >> confdefs.h <<\EOF | |
18565 | #define wxUSE_FONTMAP 1 | |
18566 | EOF | |
18567 | ||
18568 | fi | |
18569 | ||
10f2d63a | 18570 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 18571 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18572 | #define wxUSE_UNICODE 1 |
18573 | EOF | |
18574 | ||
a72a4bfa VS |
18575 | |
18576 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
18577 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
613d0995 | 18578 | echo "configure:18579: checking for main in -lunicows" >&5 |
a72a4bfa VS |
18579 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
18580 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18582 | else | |
18583 | ac_save_LIBS="$LIBS" | |
18584 | LIBS="-lunicows $LIBS" | |
18585 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18586 | #line 18587 "configure" |
a72a4bfa VS |
18587 | #include "confdefs.h" |
18588 | ||
18589 | int main() { | |
18590 | main() | |
18591 | ; return 0; } | |
18592 | EOF | |
613d0995 | 18593 | if { (eval echo configure:18594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
18594 | rm -rf conftest* |
18595 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18596 | else | |
18597 | echo "configure: failed program was:" >&5 | |
18598 | cat conftest.$ac_ext >&5 | |
18599 | rm -rf conftest* | |
18600 | eval "ac_cv_lib_$ac_lib_var=no" | |
18601 | fi | |
18602 | rm -f conftest* | |
18603 | LIBS="$ac_save_LIBS" | |
18604 | ||
18605 | fi | |
18606 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18607 | echo "$ac_t""yes" 1>&6 | |
18608 | ||
18609 | cat >> confdefs.h <<\EOF | |
18610 | #define wxUSE_UNICODE_MSLU 1 | |
18611 | EOF | |
18612 | ||
18613 | ||
18614 | else | |
18615 | echo "$ac_t""no" 1>&6 | |
18616 | ||
18617 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
18618 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
18619 | wxUSE_UNICODE_MSLU=no | |
18620 | ||
18621 | fi | |
18622 | ||
18623 | fi | |
10f2d63a VZ |
18624 | fi |
18625 | ||
10f2d63a | 18626 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 18627 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18628 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
18629 | EOF | |
18630 | ||
18631 | fi | |
18632 | ||
698dcdb6 | 18633 | |
698dcdb6 | 18634 | |
10f2d63a VZ |
18635 | IODBC_C_SRC="" |
18636 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 18637 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18638 | #define wxUSE_ODBC 1 |
18639 | EOF | |
18640 | ||
18641 | WXODBCFLAG="-D_IODBC_" | |
18642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
18643 | fi |
18644 | ||
698dcdb6 | 18645 | |
10f2d63a | 18646 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 18647 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18648 | #define wxUSE_POSTSCRIPT 1 |
18649 | EOF | |
18650 | ||
18651 | fi | |
18652 | ||
698dcdb6 | 18653 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18654 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
18655 | EOF | |
18656 | ||
698dcdb6 VZ |
18657 | |
18658 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18659 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
18660 | EOF | |
18661 | ||
698dcdb6 VZ |
18662 | |
18663 | ||
10f2d63a | 18664 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 18665 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18666 | #define wxUSE_CONSTRAINTS 1 |
18667 | EOF | |
18668 | ||
18669 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
18670 | fi | |
18671 | ||
18672 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 18673 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18674 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
18675 | wxUSE_MDI_ARCHITECTURE=no |
18676 | fi | |
18677 | ||
18678 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18679 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18680 | #define wxUSE_MDI_ARCHITECTURE 1 |
18681 | EOF | |
18682 | ||
fc26f4ab RL |
18683 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
18684 | fi | |
10f2d63a VZ |
18685 | fi |
18686 | ||
18687 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 18688 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18689 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
18690 | EOF | |
18691 | ||
18692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
18693 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18694 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
18695 | fi | |
18696 | fi | |
18697 | ||
18698 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 18699 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18700 | #define wxUSE_HELP 1 |
18701 | EOF | |
18702 | ||
18703 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 18704 | |
77e13408 | 18705 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 18706 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
18707 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
18708 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
613d0995 | 18709 | echo "configure:18710: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
18710 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18712 | else | |
18713 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18714 | #line 18715 "configure" |
29fd3c0c VS |
18715 | #include "confdefs.h" |
18716 | #include <htmlhelp.h> | |
18717 | EOF | |
18718 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 18719 | { (eval echo configure:18720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
18720 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18721 | if test -z "$ac_err"; then | |
18722 | rm -rf conftest* | |
18723 | eval "ac_cv_header_$ac_safe=yes" | |
18724 | else | |
18725 | echo "$ac_err" >&5 | |
18726 | echo "configure: failed program was:" >&5 | |
18727 | cat conftest.$ac_ext >&5 | |
18728 | rm -rf conftest* | |
18729 | eval "ac_cv_header_$ac_safe=no" | |
18730 | fi | |
18731 | rm -f conftest* | |
18732 | fi | |
18733 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18734 | echo "$ac_t""yes" 1>&6 | |
18735 | ||
18736 | cat >> confdefs.h <<\EOF | |
18737 | #define wxUSE_MS_HTML_HELP 1 | |
18738 | EOF | |
18739 | ||
18740 | ||
18741 | else | |
18742 | echo "$ac_t""no" 1>&6 | |
18743 | ||
fc26f4ab | 18744 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
18745 | wxUSE_MS_HTML_HELP=no |
18746 | ||
18747 | fi | |
18748 | ||
3e44f09d | 18749 | fi |
3379ed37 | 18750 | fi |
031d8228 VS |
18751 | |
18752 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
18753 | if test "$wxUSE_HTML" = "yes"; then | |
18754 | cat >> confdefs.h <<\EOF | |
18755 | #define wxUSE_WXHTML_HELP 1 | |
18756 | EOF | |
18757 | ||
18758 | else | |
18759 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
18760 | wxUSE_WXHTML_HELP=no | |
18761 | fi | |
18762 | fi | |
10f2d63a VZ |
18763 | fi |
18764 | ||
18765 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
18766 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 18767 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 18768 | else |
698dcdb6 | 18769 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18770 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
18771 | EOF | |
18772 | ||
18773 | fi | |
18774 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
18775 | fi | |
18776 | ||
18777 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 18778 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18779 | #define wxUSE_PROLOGIO 1 |
18780 | EOF | |
18781 | ||
18782 | fi | |
18783 | ||
18784 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 18785 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18786 | #define wxUSE_RESOURCES 1 |
18787 | EOF | |
18788 | ||
3379ed37 | 18789 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
18790 | fi |
18791 | ||
18792 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 18793 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18794 | #define wxUSE_X_RESOURCES 1 |
18795 | EOF | |
18796 | ||
18797 | fi | |
18798 | ||
698dcdb6 | 18799 | |
77e13408 RL |
18800 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
18801 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
18802 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 18803 | for ac_hdr in ole2.h |
10f2d63a | 18804 | do |
698dcdb6 VZ |
18805 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18806 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
613d0995 | 18807 | echo "configure:18808: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18808 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18810 | else | |
18811 | cat > conftest.$ac_ext <<EOF | |
613d0995 | 18812 | #line 18813 "configure" |
10f2d63a | 18813 | #include "confdefs.h" |
698dcdb6 VZ |
18814 | #include <$ac_hdr> |
18815 | EOF | |
18816 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
613d0995 | 18817 | { (eval echo configure:18818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18818 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18819 | if test -z "$ac_err"; then | |
18820 | rm -rf conftest* | |
18821 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 18822 | else |
698dcdb6 VZ |
18823 | echo "$ac_err" >&5 |
18824 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18825 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18826 | rm -rf conftest* |
18827 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18828 | fi |
698dcdb6 | 18829 | rm -f conftest* |
10f2d63a | 18830 | fi |
698dcdb6 VZ |
18831 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18832 | echo "$ac_t""yes" 1>&6 | |
18833 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18834 | cat >> confdefs.h <<EOF | |
18835 | #define $ac_tr_hdr 1 | |
10f2d63a | 18836 | EOF |
698dcdb6 VZ |
18837 | |
18838 | else | |
18839 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18840 | fi |
18841 | done | |
18842 | ||
698dcdb6 | 18843 | |
2b9bdf71 VZ |
18844 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
18845 | if test "$GCC" = yes ; then | |
18846 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 18847 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 18848 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 18849 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
18850 | #define wxUSE_OLE 1 |
18851 | EOF | |
18852 | ||
b64f0a5f | 18853 | |
2b9bdf71 VZ |
18854 | fi |
18855 | ||
18856 | cat >> confdefs.h <<\EOF | |
18857 | #define wxUSE_DATAOBJ 1 | |
18858 | EOF | |
18859 | ||
18860 | else | |
18861 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
18862 | ||
18863 | wxUSE_CLIPBOARD=no | |
18864 | wxUSE_DRAG_AND_DROP=no | |
18865 | wxUSE_DATAOBJ=no | |
18866 | fi | |
18867 | ||
77e13408 | 18868 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 18869 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
18870 | #define wxUSE_METAFILE 1 |
18871 | EOF | |
18872 | ||
2b9bdf71 VZ |
18873 | |
18874 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
18875 | #define wxUSE_ENH_METAFILE 1 |
18876 | EOF | |
18877 | ||
2b9bdf71 VZ |
18878 | fi |
18879 | fi | |
18880 | ||
18881 | if test "$wxUSE_IPC" = "yes"; then | |
18882 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 18883 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
18884 | fi |
18885 | ||
18886 | cat >> confdefs.h <<\EOF | |
18887 | #define wxUSE_IPC 1 | |
18888 | EOF | |
18889 | ||
18890 | fi | |
18891 | ||
18892 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
18893 | cat >> confdefs.h <<\EOF | |
18894 | #define wxUSE_CLIPBOARD 1 | |
18895 | EOF | |
18896 | ||
673f4220 | 18897 | |
e33ef661 | 18898 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
18899 | #define wxUSE_DATAOBJ 1 |
18900 | EOF | |
18901 | ||
2b9bdf71 VZ |
18902 | fi |
18903 | ||
18904 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
18905 | if test "$wxUSE_GTK" = 1; then | |
18906 | if test "$WXGTK12" != 1; then | |
156b2523 | 18907 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
18908 | wxUSE_DRAG_AND_DROP=no |
18909 | fi | |
18910 | fi | |
18911 | ||
2b9bdf71 | 18912 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 18913 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
18914 | wxUSE_DRAG_AND_DROP=no |
18915 | fi | |
18916 | ||
10f2d63a | 18917 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 18918 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18919 | #define wxUSE_DRAG_AND_DROP 1 |
18920 | EOF | |
18921 | ||
18922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
18923 | fi | |
18924 | ||
18925 | fi | |
18926 | ||
18927 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 18928 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18929 | #define wxUSE_SPLINES 1 |
18930 | EOF | |
18931 | ||
18932 | fi | |
18933 | ||
698dcdb6 | 18934 | |
1e6feb95 VZ |
18935 | USES_CONTROLS=0 |
18936 | if test "$wxUSE_CONTROLS" = "yes"; then | |
18937 | USES_CONTROLS=1 | |
18938 | fi | |
18939 | ||
10f2d63a | 18940 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 18941 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18942 | #define wxUSE_ACCEL 1 |
18943 | EOF | |
18944 | ||
1e6feb95 VZ |
18945 | USES_CONTROLS=1 |
18946 | fi | |
18947 | ||
18948 | if test "$wxUSE_BUTTON" = "yes"; then | |
18949 | cat >> confdefs.h <<\EOF | |
18950 | #define wxUSE_BUTTON 1 | |
18951 | EOF | |
18952 | ||
18953 | USES_CONTROLS=1 | |
18954 | fi | |
18955 | ||
18956 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
18957 | cat >> confdefs.h <<\EOF | |
18958 | #define wxUSE_BMPBUTTON 1 | |
18959 | EOF | |
18960 | ||
18961 | USES_CONTROLS=1 | |
18962 | fi | |
18963 | ||
18964 | if test "$wxUSE_CALCTRL" = "yes"; then | |
18965 | cat >> confdefs.h <<\EOF | |
18966 | #define wxUSE_CALENDARCTRL 1 | |
18967 | EOF | |
18968 | ||
18969 | USES_CONTROLS=1 | |
18970 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
18971 | fi |
18972 | ||
18973 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 18974 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18975 | #define wxUSE_CARET 1 |
18976 | EOF | |
18977 | ||
1e6feb95 | 18978 | USES_CONTROLS=1 |
10f2d63a VZ |
18979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
18980 | fi | |
18981 | ||
18982 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 18983 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18984 | #define wxUSE_COMBOBOX 1 |
18985 | EOF | |
18986 | ||
1e6feb95 | 18987 | USES_CONTROLS=1 |
10f2d63a VZ |
18988 | fi |
18989 | ||
18990 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 18991 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18992 | #define wxUSE_CHOICE 1 |
18993 | EOF | |
18994 | ||
1e6feb95 | 18995 | USES_CONTROLS=1 |
10f2d63a VZ |
18996 | fi |
18997 | ||
18998 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 18999 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19000 | #define wxUSE_CHECKBOX 1 |
19001 | EOF | |
19002 | ||
1e6feb95 | 19003 | USES_CONTROLS=1 |
10f2d63a VZ |
19004 | fi |
19005 | ||
19006 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19007 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19008 | #define wxUSE_CHECKLISTBOX 1 |
19009 | EOF | |
19010 | ||
1e6feb95 | 19011 | USES_CONTROLS=1 |
10f2d63a VZ |
19012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19013 | fi | |
19014 | ||
19015 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19016 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19017 | #define wxUSE_GAUGE 1 |
19018 | EOF | |
19019 | ||
1e6feb95 | 19020 | USES_CONTROLS=1 |
10f2d63a VZ |
19021 | fi |
19022 | ||
d6a55c4b VZ |
19023 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19024 | wxUSE_GRID="yes" | |
698dcdb6 | 19025 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19026 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19027 | EOF |
19028 | ||
1e6feb95 | 19029 | USES_CONTROLS=1 |
d6a55c4b | 19030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19031 | fi |
19032 | ||
d6a55c4b | 19033 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19034 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19035 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19036 | EOF |
19037 | ||
1e6feb95 | 19038 | USES_CONTROLS=1 |
d6a55c4b | 19039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19040 | fi |
19041 | ||
19042 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19044 | #define wxUSE_IMAGLIST 1 |
19045 | EOF | |
19046 | ||
19047 | fi | |
19048 | ||
19049 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19050 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19051 | #define wxUSE_LISTBOX 1 |
19052 | EOF | |
19053 | ||
1e6feb95 | 19054 | USES_CONTROLS=1 |
10f2d63a VZ |
19055 | fi |
19056 | ||
19057 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19058 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19059 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19060 | #define wxUSE_LISTCTRL 1 |
19061 | EOF | |
19062 | ||
1e6feb95 | 19063 | USES_CONTROLS=1 |
10f2d63a VZ |
19064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19065 | else | |
698dcdb6 | 19066 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19067 | fi |
19068 | fi | |
19069 | ||
19070 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19072 | #define wxUSE_NOTEBOOK 1 |
19073 | EOF | |
19074 | ||
1e6feb95 | 19075 | USES_CONTROLS=1 |
10f2d63a VZ |
19076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19077 | fi | |
19078 | ||
24176f2c GD |
19079 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19080 | cat >> confdefs.h <<\EOF | |
19081 | #define wxUSE_PROPSHEET 1 | |
19082 | EOF | |
19083 | ||
19084 | USES_CONTROLS=1 | |
19085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19086 | fi | |
19087 | ||
10f2d63a | 19088 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19090 | #define wxUSE_RADIOBOX 1 |
19091 | EOF | |
19092 | ||
1e6feb95 | 19093 | USES_CONTROLS=1 |
10f2d63a VZ |
19094 | fi |
19095 | ||
19096 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19097 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19098 | #define wxUSE_RADIOBTN 1 |
19099 | EOF | |
19100 | ||
1e6feb95 | 19101 | USES_CONTROLS=1 |
10f2d63a VZ |
19102 | fi |
19103 | ||
19104 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19105 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19106 | #define wxUSE_SASH 1 |
19107 | EOF | |
19108 | ||
19109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19110 | fi | |
19111 | ||
19112 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19113 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19114 | #define wxUSE_SCROLLBAR 1 |
19115 | EOF | |
19116 | ||
1e6feb95 | 19117 | USES_CONTROLS=1 |
741a9306 | 19118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19119 | fi |
19120 | ||
19121 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19123 | #define wxUSE_SLIDER 1 |
19124 | EOF | |
19125 | ||
1e6feb95 | 19126 | USES_CONTROLS=1 |
10f2d63a VZ |
19127 | fi |
19128 | ||
19129 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19130 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19131 | #define wxUSE_SPINBTN 1 |
19132 | EOF | |
19133 | ||
1e6feb95 | 19134 | USES_CONTROLS=1 |
10f2d63a VZ |
19135 | fi |
19136 | ||
56cfaa52 | 19137 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19138 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19139 | #define wxUSE_SPINCTRL 1 |
19140 | EOF | |
19141 | ||
1e6feb95 | 19142 | USES_CONTROLS=1 |
56cfaa52 RR |
19143 | fi |
19144 | ||
10f2d63a | 19145 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19146 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19147 | #define wxUSE_SPLITTER 1 |
19148 | EOF | |
19149 | ||
19150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19151 | fi | |
19152 | ||
19153 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19155 | #define wxUSE_STATBMP 1 |
19156 | EOF | |
19157 | ||
1e6feb95 | 19158 | USES_CONTROLS=1 |
10f2d63a VZ |
19159 | fi |
19160 | ||
19161 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19163 | #define wxUSE_STATBOX 1 |
19164 | EOF | |
19165 | ||
1e6feb95 VZ |
19166 | USES_CONTROLS=1 |
19167 | fi | |
19168 | ||
19169 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19170 | cat >> confdefs.h <<\EOF | |
19171 | #define wxUSE_STATTEXT 1 | |
19172 | EOF | |
19173 | ||
19174 | USES_CONTROLS=1 | |
10f2d63a VZ |
19175 | fi |
19176 | ||
19177 | if test "$wxUSE_STATLINE" = "yes"; then | |
19178 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19179 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19180 | else |
698dcdb6 | 19181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19182 | #define wxUSE_STATLINE 1 |
19183 | EOF | |
19184 | ||
1e6feb95 | 19185 | USES_CONTROLS=1 |
10f2d63a VZ |
19186 | fi |
19187 | fi | |
19188 | ||
19189 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19191 | #define wxUSE_STATUSBAR 1 |
19192 | EOF | |
19193 | ||
1e6feb95 | 19194 | USES_CONTROLS=1 |
698dcdb6 | 19195 | |
2286341c | 19196 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19197 | fi |
19198 | ||
19199 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19200 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19201 | #define wxUSE_TAB_DIALOG 1 |
19202 | EOF | |
19203 | ||
19204 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19205 | fi | |
19206 | ||
1e6feb95 VZ |
19207 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19208 | cat >> confdefs.h <<\EOF | |
19209 | #define wxUSE_TEXTCTRL 1 | |
19210 | EOF | |
19211 | ||
19212 | USES_CONTROLS=1 | |
19213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19214 | fi | |
19215 | ||
1db8dc4a | 19216 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19217 | if test "$wxUSE_MAC" = 1; then |
19218 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19219 | wxUSE_TOGGLEBTN=no | |
19220 | fi | |
19221 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19222 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
19223 | wxUSE_TOGGLEBTN=no |
19224 | fi | |
19225 | ||
19226 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19227 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19228 | #define wxUSE_TOGGLEBTN 1 |
19229 | EOF | |
19230 | ||
1e6feb95 | 19231 | USES_CONTROLS=1 |
a45d7ab7 | 19232 | fi |
1db8dc4a VZ |
19233 | fi |
19234 | ||
360d6699 | 19235 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19236 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19237 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19238 | EOF | |
19239 | ||
19240 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19241 | USES_CONTROLS=1 |
360d6699 VZ |
19242 | fi |
19243 | ||
10f2d63a | 19244 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19246 | #define wxUSE_TOOLBAR 1 |
19247 | EOF | |
19248 | ||
1e6feb95 | 19249 | USES_CONTROLS=1 |
698dcdb6 | 19250 | |
360d6699 VZ |
19251 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19252 | wxUSE_TOOLBAR_NATIVE="yes" | |
19253 | fi | |
19254 | ||
1e6feb95 VZ |
19255 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19256 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19257 | #define wxUSE_TOOLBAR_NATIVE 1 |
19258 | EOF | |
19259 | ||
1e6feb95 VZ |
19260 | USES_CONTROLS=1 |
19261 | fi | |
19262 | ||
19263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19264 | fi |
19265 | ||
10f2d63a VZ |
19266 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19267 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19268 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19269 | else |
19270 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19271 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19272 | else |
69d27ff7 | 19273 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 19274 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 MB |
19275 | else |
19276 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19277 | #define wxUSE_TOOLTIPS 1 |
19278 | EOF | |
19279 | ||
69d27ff7 | 19280 | fi |
10f2d63a VZ |
19281 | fi |
19282 | fi | |
19283 | fi | |
19284 | ||
19285 | if test "$wxUSE_TREECTRL" = "yes"; then | |
19286 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19288 | #define wxUSE_TREECTRL 1 |
19289 | EOF | |
19290 | ||
1e6feb95 | 19291 | USES_CONTROLS=1 |
10f2d63a VZ |
19292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
19293 | else | |
698dcdb6 | 19294 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19295 | fi |
19296 | fi | |
19297 | ||
9f41d601 | 19298 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 19299 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 19300 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 19301 | else |
485cf710 VZ |
19302 | if test "$wxUSE_MOTIF" = 1; then |
19303 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
19304 | else | |
19305 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
19306 | #define wxUSE_POPUPWIN 1 |
19307 | EOF | |
19308 | ||
9926e4a4 | 19309 | |
485cf710 VZ |
19310 | USES_CONTROLS=1 |
19311 | fi | |
6abe4b65 | 19312 | fi |
9f41d601 RR |
19313 | fi |
19314 | ||
dd964dcc VZ |
19315 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
19316 | cat >> confdefs.h <<\EOF | |
19317 | #define wxUSE_TIPWINDOW 1 | |
19318 | EOF | |
19319 | ||
19320 | fi | |
19321 | ||
1e6feb95 VZ |
19322 | if test "$USES_CONTROLS" = 1; then |
19323 | cat >> confdefs.h <<\EOF | |
19324 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
19325 | EOF |
19326 | ||
10f2d63a VZ |
19327 | fi |
19328 | ||
1e6feb95 | 19329 | |
24176f2c GD |
19330 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
19331 | cat >> confdefs.h <<\EOF | |
19332 | #define wxUSE_TREELAYOUT 1 | |
19333 | EOF | |
19334 | ||
19335 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
19336 | fi | |
1e6feb95 | 19337 | |
24fd6d87 VZ |
19338 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
19339 | cat >> confdefs.h <<\EOF | |
19340 | #define wxUSE_DRAGIMAGE 1 | |
19341 | EOF | |
19342 | ||
19343 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
19344 | fi | |
19345 | ||
1e6feb95 | 19346 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 19347 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19348 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
19349 | EOF |
19350 | ||
1e6feb95 | 19351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
19352 | fi |
19353 | ||
1e6feb95 VZ |
19354 | if test "$wxUSE_METAFILE" = "yes"; then |
19355 | cat >> confdefs.h <<\EOF | |
19356 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
19357 | EOF |
19358 | ||
10f2d63a VZ |
19359 | fi |
19360 | ||
1e6feb95 VZ |
19361 | if test "$wxUSE_MIMETYPE" = "yes"; then |
19362 | cat >> confdefs.h <<\EOF | |
19363 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
19364 | EOF |
19365 | ||
10f2d63a VZ |
19366 | fi |
19367 | ||
3e44f09d VZ |
19368 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
19369 | cat >> confdefs.h <<\EOF | |
19370 | #define wxUSE_SYSTEM_OPTIONS 1 | |
19371 | EOF | |
19372 | ||
19373 | fi | |
19374 | ||
4cdb0ab0 | 19375 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
19376 | if test "$wxUSE_SOCKETS" != "yes"; then |
19377 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
19378 | wxUSE_PROTOCOL=no | |
19379 | fi | |
19380 | ||
19381 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
19382 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19383 | #define wxUSE_PROTOCOL 1 |
19384 | EOF | |
19385 | ||
19386 | ||
3954f9ca VS |
19387 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
19388 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19389 | #define wxUSE_PROTOCOL_HTTP 1 |
19390 | EOF | |
19391 | ||
3954f9ca VS |
19392 | fi |
19393 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
19394 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19395 | #define wxUSE_PROTOCOL_FTP 1 |
19396 | EOF | |
19397 | ||
3954f9ca VS |
19398 | fi |
19399 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
19400 | cat >> confdefs.h <<\EOF | |
19401 | #define wxUSE_PROTOCOL_FILE 1 | |
19402 | EOF | |
19403 | ||
19404 | fi | |
4cdb0ab0 | 19405 | fi |
3954f9ca VS |
19406 | fi |
19407 | ||
19408 | if test "$wxUSE_URL" = "yes"; then | |
19409 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
19410 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
19411 | wxUSE_URL=no | |
19412 | fi | |
19413 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 19414 | cat >> confdefs.h <<\EOF |
3954f9ca | 19415 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
19416 | EOF |
19417 | ||
19418 | fi | |
19419 | fi | |
19420 | ||
10f2d63a | 19421 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 19422 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19423 | #define wxUSE_MINIFRAME 1 |
19424 | EOF | |
19425 | ||
19426 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
19427 | fi | |
19428 | ||
19429 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 19430 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19431 | #define wxUSE_HTML 1 |
19432 | EOF | |
19433 | ||
19434 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
19435 | fi |
19436 | ||
19437 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 19438 | cat >> confdefs.h <<\EOF |
1e487827 VS |
19439 | #define wxUSE_VALIDATORS 1 |
19440 | EOF | |
703e0a69 | 19441 | |
698dcdb6 VZ |
19442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
19443 | fi | |
19444 | ||
edae8572 VZ |
19445 | if test "$wxUSE_PALETTE" = "yes" ; then |
19446 | cat >> confdefs.h <<\EOF | |
19447 | #define wxUSE_PALETTE 1 | |
19448 | EOF | |
19449 | ||
19450 | fi | |
19451 | ||
698dcdb6 VZ |
19452 | if test "$wxUSE_IMAGE" = "yes" ; then |
19453 | cat >> confdefs.h <<\EOF | |
19454 | #define wxUSE_IMAGE 1 | |
19455 | EOF | |
19456 | ||
19457 | fi | |
19458 | ||
19459 | if test "$wxUSE_GIF" = "yes" ; then | |
19460 | cat >> confdefs.h <<\EOF | |
19461 | #define wxUSE_GIF 1 | |
19462 | EOF | |
19463 | ||
19464 | fi | |
19465 | ||
19466 | if test "$wxUSE_PCX" = "yes" ; then | |
19467 | cat >> confdefs.h <<\EOF | |
19468 | #define wxUSE_PCX 1 | |
19469 | EOF | |
19470 | ||
19471 | fi | |
19472 | ||
4b6b4dfc RR |
19473 | if test "$wxUSE_IFF" = "yes" ; then |
19474 | cat >> confdefs.h <<\EOF | |
19475 | #define wxUSE_IFF 1 | |
19476 | EOF | |
19477 | ||
19478 | fi | |
19479 | ||
698dcdb6 VZ |
19480 | if test "$wxUSE_PNM" = "yes" ; then |
19481 | cat >> confdefs.h <<\EOF | |
19482 | #define wxUSE_PNM 1 | |
19483 | EOF | |
19484 | ||
19485 | fi | |
19486 | ||
19487 | if test "$wxUSE_XPM" = "yes" ; then | |
19488 | cat >> confdefs.h <<\EOF | |
19489 | #define wxUSE_XPM 1 | |
19490 | EOF | |
19491 | ||
19492 | fi | |
19493 | ||
658974ae VS |
19494 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
19495 | cat >> confdefs.h <<\EOF | |
19496 | #define wxUSE_ICO_CUR 1 | |
19497 | EOF | |
19498 | ||
19499 | fi | |
19500 | ||
a72a4bfa VS |
19501 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
19502 | LIBS=" -lunicows $LIBS" | |
19503 | fi | |
19504 | ||
698dcdb6 | 19505 | |
1e6feb95 VZ |
19506 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
19507 | cat >> confdefs.h <<\EOF | |
19508 | #define wxUSE_CHOICEDLG 1 | |
19509 | EOF | |
19510 | ||
19511 | fi | |
19512 | ||
19513 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
19514 | cat >> confdefs.h <<\EOF | |
19515 | #define wxUSE_COLOURDLG 1 | |
19516 | EOF | |
19517 | ||
19518 | fi | |
19519 | ||
19520 | if test "$wxUSE_FILEDLG" = "yes"; then | |
19521 | cat >> confdefs.h <<\EOF | |
19522 | #define wxUSE_FILEDLG 1 | |
19523 | EOF | |
19524 | ||
19525 | fi | |
19526 | ||
8db37e06 VZ |
19527 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
19528 | cat >> confdefs.h <<\EOF | |
19529 | #define wxUSE_FINDREPLDLG 1 | |
19530 | EOF | |
19531 | ||
19532 | fi | |
19533 | ||
1e6feb95 VZ |
19534 | if test "$wxUSE_FONTDLG" = "yes"; then |
19535 | cat >> confdefs.h <<\EOF | |
19536 | #define wxUSE_FONTDLG 1 | |
19537 | EOF | |
19538 | ||
19539 | fi | |
19540 | ||
19541 | if test "$wxUSE_DIRDLG" = "yes"; then | |
19542 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19543 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
19544 | else | |
19545 | if test "$wxUSE_TREECTRL" != "yes"; then | |
19546 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
19547 | else | |
19548 | cat >> confdefs.h <<\EOF | |
19549 | #define wxUSE_DIRDLG 1 | |
19550 | EOF | |
19551 | ||
19552 | fi | |
19553 | fi | |
19554 | fi | |
19555 | ||
19556 | if test "$wxUSE_MSGDLG" = "yes"; then | |
19557 | cat >> confdefs.h <<\EOF | |
19558 | #define wxUSE_MSGDLG 1 | |
19559 | EOF | |
19560 | ||
19561 | fi | |
19562 | ||
19563 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
19564 | cat >> confdefs.h <<\EOF | |
19565 | #define wxUSE_NUMBERDLG 1 | |
19566 | EOF | |
19567 | ||
19568 | fi | |
19569 | ||
19570 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
19571 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19572 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
19573 | else | |
19574 | cat >> confdefs.h <<\EOF | |
19575 | #define wxUSE_PROGRESSDLG 1 | |
19576 | EOF | |
19577 | ||
19578 | fi | |
19579 | fi | |
19580 | ||
cbca9943 VZ |
19581 | if test "$wxUSE_SPLASH" = "yes"; then |
19582 | cat >> confdefs.h <<\EOF | |
19583 | #define wxUSE_SPLASH 1 | |
19584 | EOF | |
19585 | ||
19586 | fi | |
19587 | ||
1e6feb95 VZ |
19588 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
19589 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19590 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
19591 | else | |
19592 | cat >> confdefs.h <<\EOF | |
19593 | #define wxUSE_STARTUP_TIPS 1 | |
19594 | EOF | |
19595 | ||
19596 | fi | |
19597 | fi | |
19598 | ||
19599 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
19600 | cat >> confdefs.h <<\EOF | |
19601 | #define wxUSE_TEXTDLG 1 | |
19602 | EOF | |
19603 | ||
19604 | fi | |
19605 | ||
b1f5d087 VZ |
19606 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
19607 | cat >> confdefs.h <<\EOF | |
19608 | #define wxUSE_WIZARDDLG 1 | |
19609 | EOF | |
19610 | ||
19611 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
19612 | fi | |
19613 | ||
1e6feb95 | 19614 | |
698dcdb6 VZ |
19615 | if test "$cross_compiling" = "yes"; then |
19616 | OSINFO="\"$host\"" | |
19617 | else | |
19618 | OSINFO=`uname -s -r -m` | |
19619 | OSINFO="\"$OSINFO\"" | |
19620 | fi | |
19621 | ||
19622 | cat >> confdefs.h <<EOF | |
19623 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
19624 | EOF | |
19625 | ||
19626 | ||
19627 | ||
06dda230 VZ |
19628 | if test "x$prefix" != "xNONE"; then |
19629 | wxPREFIX=$prefix | |
19630 | else | |
19631 | wxPREFIX=$ac_default_prefix | |
19632 | fi | |
19633 | ||
7e67ed0d | 19634 | cat >> confdefs.h <<EOF |
06dda230 | 19635 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
19636 | EOF |
19637 | ||
19638 | ||
19639 | ||
698dcdb6 | 19640 | |
3a922bb4 | 19641 | |
f11bdd03 | 19642 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 19643 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 19644 | fi |
3a922bb4 | 19645 | |
3d63bc3a RL |
19646 | |
19647 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
19648 | ||
698dcdb6 | 19649 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
19650 | |
19651 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
19652 | |
19653 | ||
19654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
19655 | drawing dynamic erase event exec font image \ | |
19656 | minimal richedit rotate widgets" | |
19657 | ||
3a922bb4 RL |
19658 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
19659 | else | |
19660 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
19661 | fi |
19662 | ||
698dcdb6 | 19663 | |
d714471b | 19664 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
19665 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
19666 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 19667 | |
63e7762e | 19668 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 19669 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
19670 | else |
19671 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
19672 | fi | |
19673 | ||
19674 | if test "$GXX" = yes ; then | |
19675 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
19676 | |
19677 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
19678 | CFLAGS="-MMD $CFLAGS" | |
19679 | CXXFLAGS="-MMD $CXXFLAGS" | |
19680 | fi | |
19681 | fi | |
19682 | ||
1725144d | 19683 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
19684 | |
19685 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
19686 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
19687 | ||
3d63bc3a | 19688 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 19689 | |
698dcdb6 VZ |
19690 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
19691 | ||
19692 | ||
19693 | ||
19694 | ||
19695 | ||
19696 | ||
19697 | ||
19698 | ||
19699 | ||
19700 | ||
19701 | ||
19702 | ||
19703 | ||
19704 | ||
19705 | ||
19706 | ||
19707 | ||
19708 | ||
19709 | ||
19710 | ||
19711 | ||
19712 | ||
19713 | ||
19714 | ||
19715 | ||
19716 | ||
19717 | ||
19718 | ||
19719 | ||
19720 | ||
19721 | ||
19722 | ||
19723 | ||
19724 | ||
19725 | ||
19726 | ||
19727 | ||
19728 | ||
19729 | ||
19730 | ||
19731 | ||
19732 | ||
19733 | ||
19734 | ||
19735 | ||
19736 | ||
19737 | ||
19738 | ||
19739 | ||
19740 | ||
19741 | ||
19742 | ||
19743 | ||
19744 | ||
19745 | ||
19746 | ||
19747 | ||
19748 | ||
19749 | ||
19750 | ||
19751 | ||
19752 | ||
19753 | ||
19754 | ||
19755 | ||
19756 | ||
19757 | ||
32832908 | 19758 | |
2f51a9ec GD |
19759 | |
19760 | ||
19761 | ||
19762 | ||
f6bcfd97 | 19763 | |
dad6c0ea | 19764 | |
caa2c79b | 19765 | |
3711412e | 19766 | |
1e6feb95 VZ |
19767 | |
19768 | ||
885d4bf5 VS |
19769 | |
19770 | ||
19771 | ||
19772 | ||
62d0491b | 19773 | |
10f2d63a VZ |
19774 | |
19775 | ||
698dcdb6 | 19776 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
613d0995 | 19777 | echo "configure:19778: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
19778 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
19779 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
19780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19781 | else |
698dcdb6 | 19782 | cat > conftestmake <<\EOF |
10f2d63a VZ |
19783 | all: |
19784 | @echo 'ac_maketemp="${MAKE}"' | |
19785 | EOF | |
19786 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 19787 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
19788 | if test -n "$ac_maketemp"; then |
19789 | eval ac_cv_prog_make_${ac_make}_set=yes | |
19790 | else | |
19791 | eval ac_cv_prog_make_${ac_make}_set=no | |
19792 | fi | |
698dcdb6 | 19793 | rm -f conftestmake |
10f2d63a VZ |
19794 | fi |
19795 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 19796 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
19797 | SET_MAKE= |
19798 | else | |
698dcdb6 | 19799 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
19800 | SET_MAKE="MAKE=${MAKE-make}" |
19801 | fi | |
19802 | ||
698dcdb6 | 19803 | |
3a922bb4 RL |
19804 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
19805 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 19806 | fi |
665bbe97 | 19807 | |
698dcdb6 | 19808 | |
10f2d63a | 19809 | |
2224580a | 19810 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 19811 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
19812 | wx_cv_path_ifs=$PATH_IFS |
19813 | wx_cv_program_ext=$PROGRAM_EXT | |
19814 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 19815 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 19816 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 19817 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 19818 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 19819 | subdirs="demos samples utils contrib" |
2224580a VZ |
19820 | |
19821 | fi | |
10f2d63a | 19822 | |
698dcdb6 VZ |
19823 | trap '' 1 2 15 |
19824 | cat > confcache <<\EOF | |
10f2d63a VZ |
19825 | # This file is a shell script that caches the results of configure |
19826 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
19827 | # scripts and configure runs. It is not useful on other systems. |
19828 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 19829 | # |
698dcdb6 VZ |
19830 | # By default, configure uses ./config.cache as the cache file, |
19831 | # creating it if it does not exist already. You can give configure | |
19832 | # the --cache-file=FILE option to use a different cache file; that is | |
19833 | # what configure does when it calls configure scripts in | |
19834 | # subdirectories, so they share the cache. | |
19835 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
19836 | # config.status only pays attention to the cache file if you give it the | |
19837 | # --recheck option to rerun configure. | |
10f2d63a | 19838 | # |
698dcdb6 | 19839 | EOF |
10f2d63a VZ |
19840 | # The following way of writing the cache mishandles newlines in values, |
19841 | # but we know of no workaround that is simple, portable, and efficient. | |
19842 | # So, don't put newlines in cache variables' values. | |
19843 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19844 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
19845 | (set) 2>&1 | |
19846 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19847 | *ac_space=\ *) | |
19848 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
19849 | # turns \\\\ into \\, and sed turns \\ into \). | |
19850 | sed -n \ | |
19851 | -e "s/'/'\\\\''/g" \ | |
19852 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
19853 | ;; | |
19854 | *) | |
19855 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19856 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
19857 | ;; | |
19858 | esac >> confcache | |
19859 | if cmp -s $cache_file confcache; then | |
19860 | : | |
19861 | else | |
10f2d63a | 19862 | if test -w $cache_file; then |
698dcdb6 VZ |
19863 | echo "updating cache $cache_file" |
19864 | cat confcache > $cache_file | |
10f2d63a VZ |
19865 | else |
19866 | echo "not updating unwritable cache $cache_file" | |
19867 | fi | |
19868 | fi | |
19869 | rm -f confcache | |
19870 | ||
698dcdb6 VZ |
19871 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
19872 | ||
10f2d63a VZ |
19873 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19874 | # Let make expand exec_prefix. | |
19875 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19876 | ||
698dcdb6 VZ |
19877 | # Any assignment to VPATH causes Sun make to only execute |
19878 | # the first set of double-colon rules, so remove it if not needed. | |
19879 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 19880 | if test "x$srcdir" = x.; then |
698dcdb6 | 19881 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
19882 | fi |
19883 | ||
698dcdb6 VZ |
19884 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
19885 | ||
10f2d63a VZ |
19886 | DEFS=-DHAVE_CONFIG_H |
19887 | ||
698dcdb6 | 19888 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 19889 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
19890 | |
19891 | echo creating $CONFIG_STATUS | |
19892 | rm -f $CONFIG_STATUS | |
19893 | cat > $CONFIG_STATUS <<EOF | |
19894 | #! /bin/sh | |
10f2d63a VZ |
19895 | # Generated automatically by configure. |
19896 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
19897 | # This directory was configured as follows, |
19898 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19899 | # | |
19900 | # $0 $ac_configure_args | |
19901 | # | |
10f2d63a | 19902 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 19903 | # configure, is in ./config.log if it exists. |
1e487827 | 19904 | |
698dcdb6 VZ |
19905 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
19906 | for ac_option | |
10f2d63a | 19907 | do |
698dcdb6 | 19908 | case "\$ac_option" in |
10f2d63a | 19909 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
19910 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
19911 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
19912 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
19913 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
19914 | exit 0 ;; | |
19915 | -help | --help | --hel | --he | --h) | |
19916 | echo "\$ac_cs_usage"; exit 0 ;; | |
19917 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
19918 | esac |
19919 | done | |
19920 | ||
698dcdb6 VZ |
19921 | ac_given_srcdir=$srcdir |
19922 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 19923 | |
698dcdb6 VZ |
19924 | trap 'rm -fr `echo " |
19925 | wx-config | |
19926 | src/make.env | |
19927 | src/makeprog.env | |
19928 | src/makelib.env | |
19929 | Makefile | |
19930 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 19931 | EOF |
698dcdb6 | 19932 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 19933 | |
698dcdb6 VZ |
19934 | # Protect against being on the right side of a sed subst in config.status. |
19935 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
19936 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
19937 | $ac_vpsub | |
19938 | $extrasub | |
19939 | s%@SHELL@%$SHELL%g | |
19940 | s%@CFLAGS@%$CFLAGS%g | |
19941 | s%@CPPFLAGS@%$CPPFLAGS%g | |
19942 | s%@CXXFLAGS@%$CXXFLAGS%g | |
19943 | s%@FFLAGS@%$FFLAGS%g | |
19944 | s%@DEFS@%$DEFS%g | |
19945 | s%@LDFLAGS@%$LDFLAGS%g | |
19946 | s%@LIBS@%$LIBS%g | |
19947 | s%@exec_prefix@%$exec_prefix%g | |
19948 | s%@prefix@%$prefix%g | |
19949 | s%@program_transform_name@%$program_transform_name%g | |
19950 | s%@bindir@%$bindir%g | |
19951 | s%@sbindir@%$sbindir%g | |
19952 | s%@libexecdir@%$libexecdir%g | |
19953 | s%@datadir@%$datadir%g | |
19954 | s%@sysconfdir@%$sysconfdir%g | |
19955 | s%@sharedstatedir@%$sharedstatedir%g | |
19956 | s%@localstatedir@%$localstatedir%g | |
19957 | s%@libdir@%$libdir%g | |
19958 | s%@includedir@%$includedir%g | |
19959 | s%@oldincludedir@%$oldincludedir%g | |
19960 | s%@infodir@%$infodir%g | |
19961 | s%@mandir@%$mandir%g | |
19962 | s%@host@%$host%g | |
19963 | s%@host_alias@%$host_alias%g | |
19964 | s%@host_cpu@%$host_cpu%g | |
19965 | s%@host_vendor@%$host_vendor%g | |
19966 | s%@host_os@%$host_os%g | |
19967 | s%@target@%$target%g | |
19968 | s%@target_alias@%$target_alias%g | |
19969 | s%@target_cpu@%$target_cpu%g | |
19970 | s%@target_vendor@%$target_vendor%g | |
19971 | s%@target_os@%$target_os%g | |
19972 | s%@build@%$build%g | |
19973 | s%@build_alias@%$build_alias%g | |
19974 | s%@build_cpu@%$build_cpu%g | |
19975 | s%@build_vendor@%$build_vendor%g | |
19976 | s%@build_os@%$build_os%g | |
19977 | s%@CC@%$CC%g | |
19978 | s%@CPP@%$CPP%g | |
19979 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
19980 | s%@RANLIB@%$RANLIB%g |
19981 | s%@AR@%$AR%g | |
19982 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 19983 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 19984 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 19985 | s%@STRIP@%$STRIP%g |
613d0995 | 19986 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
19987 | s%@YACC@%$YACC%g |
19988 | s%@LEX@%$LEX%g | |
19989 | s%@LEXLIB@%$LEXLIB%g | |
19990 | s%@LN_S@%$LN_S%g | |
19991 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
19992 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
19993 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 19994 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
19995 | s%@X_CFLAGS@%$X_CFLAGS%g |
19996 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
19997 | s%@X_LIBS@%$X_LIBS%g | |
19998 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 19999 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20000 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20001 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20002 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20003 | s%@LEX_STEM@%$LEX_STEM%g |
20004 | s%@PATH_IFS@%$PATH_IFS%g | |
20005 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20006 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20007 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20008 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20009 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20010 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20011 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20012 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20013 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20014 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20015 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20016 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20017 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20018 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20019 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20020 | s%@WX_ALL@%$WX_ALL%g |
20021 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20022 | s%@SHARED_LD@%$SHARED_LD%g | |
20023 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20024 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20025 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20026 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20027 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20028 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20029 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20030 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20031 | s%@USE_GUI@%$USE_GUI%g | |
20032 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20033 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20034 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20035 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20036 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20037 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20038 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20039 | s%@cross_compiling@%$cross_compiling%g |
20040 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20041 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20042 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20043 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20044 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20045 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
20046 | s%@GUIDIST@%$GUIDIST%g |
20047 | s%@PORT_FILES@%$PORT_FILES%g | |
20048 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20049 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20050 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20051 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20052 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20053 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20054 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20055 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20056 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20057 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
20058 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20059 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20060 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20061 | s%@DLLTOOL@%$DLLTOOL%g |
20062 | s%@AS@%$AS%g | |
20063 | s%@NM@%$NM%g | |
20064 | s%@LD@%$LD%g | |
20065 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20066 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20067 | s%@SET_MAKE@%$SET_MAKE%g |
20068 | s%@subdirs@%$subdirs%g | |
1e487827 | 20069 | |
1e487827 | 20070 | CEOF |
1e487827 VS |
20071 | EOF |
20072 | ||
698dcdb6 VZ |
20073 | cat >> $CONFIG_STATUS <<\EOF |
20074 | ||
20075 | # Split the substitutions into bite-sized pieces for seds with | |
20076 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20077 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20078 | ac_file=1 # Number of current file. | |
20079 | ac_beg=1 # First line for current file. | |
20080 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20081 | ac_more_lines=: | |
20082 | ac_sed_cmds="" | |
20083 | while $ac_more_lines; do | |
20084 | if test $ac_beg -gt 1; then | |
20085 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20086 | else | |
20087 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20088 | fi | |
20089 | if test ! -s conftest.s$ac_file; then | |
20090 | ac_more_lines=false | |
20091 | rm -f conftest.s$ac_file | |
20092 | else | |
20093 | if test -z "$ac_sed_cmds"; then | |
20094 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20095 | else |
698dcdb6 | 20096 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20097 | fi |
698dcdb6 VZ |
20098 | ac_file=`expr $ac_file + 1` |
20099 | ac_beg=$ac_end | |
20100 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20101 | fi |
698dcdb6 VZ |
20102 | done |
20103 | if test -z "$ac_sed_cmds"; then | |
20104 | ac_sed_cmds=cat | |
20105 | fi | |
20106 | EOF | |
10f2d63a | 20107 | |
698dcdb6 VZ |
20108 | cat >> $CONFIG_STATUS <<EOF |
20109 | ||
20110 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20111 | src/make.env | |
20112 | src/makeprog.env | |
20113 | src/makelib.env | |
20114 | Makefile | |
20115 | "} | |
10f2d63a | 20116 | EOF |
698dcdb6 VZ |
20117 | cat >> $CONFIG_STATUS <<\EOF |
20118 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20119 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20120 | case "$ac_file" in |
20121 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20122 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20123 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20124 | esac |
20125 | ||
698dcdb6 | 20126 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20127 | |
698dcdb6 VZ |
20128 | # Remove last slash and all that follows it. Not all systems have dirname. |
20129 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20130 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20131 | # The file is in a subdirectory. | |
20132 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20133 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20134 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20135 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20136 | else |
20137 | ac_dir_suffix= ac_dots= | |
20138 | fi | |
20139 | ||
698dcdb6 VZ |
20140 | case "$ac_given_srcdir" in |
20141 | .) srcdir=. | |
20142 | if test -z "$ac_dots"; then top_srcdir=. | |
20143 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20144 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20145 | *) # Relative path. |
698dcdb6 VZ |
20146 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20147 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20148 | esac |
20149 | ||
698dcdb6 VZ |
20150 | case "$ac_given_INSTALL" in |
20151 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20152 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20153 | esac |
20154 | ||
698dcdb6 VZ |
20155 | echo creating "$ac_file" |
20156 | rm -f "$ac_file" | |
20157 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20158 | case "$ac_file" in | |
20159 | *Makefile*) ac_comsub="1i\\ | |
20160 | # $configure_input" ;; | |
20161 | *) ac_comsub= ;; | |
20162 | esac | |
10f2d63a | 20163 | |
698dcdb6 VZ |
20164 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20165 | sed -e "$ac_comsub | |
20166 | s%@configure_input@%$configure_input%g | |
20167 | s%@srcdir@%$srcdir%g | |
20168 | s%@top_srcdir@%$top_srcdir%g | |
20169 | s%@INSTALL@%$INSTALL%g | |
20170 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20171 | fi; done | |
20172 | rm -f conftest.s* | |
10f2d63a VZ |
20173 | |
20174 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20175 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20176 | # | |
20177 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20178 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20179 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20180 | ac_dC='\3' | |
20181 | ac_dD='%g' | |
20182 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20183 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20184 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20185 | ac_uC=' ' |
698dcdb6 VZ |
20186 | ac_uD='\4%g' |
20187 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20188 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20189 | ac_eB='$%\1#\2define\3' | |
20190 | ac_eC=' ' | |
20191 | ac_eD='%g' | |
10f2d63a | 20192 | |
698dcdb6 VZ |
20193 | if test "${CONFIG_HEADERS+set}" != set; then |
20194 | EOF | |
20195 | cat >> $CONFIG_STATUS <<EOF | |
20196 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20197 | EOF | |
20198 | cat >> $CONFIG_STATUS <<\EOF | |
20199 | fi | |
20200 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20201 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20202 | case "$ac_file" in |
20203 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20204 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20205 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20206 | esac |
20207 | ||
698dcdb6 VZ |
20208 | echo creating $ac_file |
20209 | ||
20210 | rm -f conftest.frag conftest.in conftest.out | |
20211 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20212 | cat $ac_file_inputs > conftest.in | |
20213 | ||
20214 | EOF | |
20215 | ||
20216 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20217 | # the proper values into config.h.in to produce config.h. And first: | |
20218 | # Protect against being on the right side of a sed subst in config.status. | |
20219 | # Protect against being in an unquoted here document in config.status. | |
20220 | rm -f conftest.vals | |
20221 | cat > conftest.hdr <<\EOF | |
20222 | s/[\\&%]/\\&/g | |
20223 | s%[\\$`]%\\&%g | |
20224 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20225 | s%ac_d%ac_u%gp | |
20226 | s%ac_u%ac_e%gp | |
20227 | EOF | |
20228 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20229 | rm -f conftest.hdr | |
10f2d63a VZ |
20230 | |
20231 | # This sed command replaces #undef with comments. This is necessary, for | |
20232 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20233 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20234 | cat >> conftest.vals <<\EOF |
20235 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20236 | EOF |
20237 | ||
698dcdb6 VZ |
20238 | # Break up conftest.vals because some shells have a limit on |
20239 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20240 | |
20241 | rm -f conftest.tail | |
698dcdb6 | 20242 | while : |
10f2d63a | 20243 | do |
698dcdb6 VZ |
20244 | ac_lines=`grep -c . conftest.vals` |
20245 | # grep -c gives empty output for an empty file on some AIX systems. | |
20246 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20247 | # Write a limited-size here document to conftest.frag. | |
20248 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20249 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20250 | echo 'CEOF |
698dcdb6 VZ |
20251 | sed -f conftest.frag conftest.in > conftest.out |
20252 | rm -f conftest.in | |
20253 | mv conftest.out conftest.in | |
20254 | ' >> $CONFIG_STATUS | |
20255 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20256 | rm -f conftest.vals | |
20257 | mv conftest.tail conftest.vals | |
10f2d63a | 20258 | done |
698dcdb6 VZ |
20259 | rm -f conftest.vals |
20260 | ||
20261 | cat >> $CONFIG_STATUS <<\EOF | |
20262 | rm -f conftest.frag conftest.h | |
20263 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20264 | cat conftest.in >> conftest.h | |
20265 | rm -f conftest.in | |
20266 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
20267 | echo "$ac_file is unchanged" | |
20268 | rm -f conftest.h | |
10f2d63a | 20269 | else |
698dcdb6 VZ |
20270 | # Remove last slash and all that follows it. Not all systems have dirname. |
20271 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 20272 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
20273 | # The file is in a subdirectory. |
20274 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 20275 | fi |
698dcdb6 VZ |
20276 | rm -f $ac_file |
20277 | mv conftest.h $ac_file | |
10f2d63a | 20278 | fi |
698dcdb6 VZ |
20279 | fi; done |
20280 | ||
10f2d63a | 20281 | EOF |
698dcdb6 | 20282 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 20283 | |
3a922bb4 | 20284 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
20285 | LN_S="${LN_S}" |
20286 | ||
20287 | ||
20288 | EOF | |
20289 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 20290 | |
652d930d | 20291 | if test ! -h wx-config; then |
991a5759 | 20292 | chmod +x wx-config |
3a922bb4 RL |
20293 | mv wx-config wx${TOOLCHAIN_NAME}-config |
20294 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 20295 | fi |
665bbe97 | 20296 | |
00cf1208 RR |
20297 | if test ! -d lib; then |
20298 | mkdir lib | |
20299 | fi | |
20300 | if test ! -d lib/wx; then | |
20301 | mkdir lib/wx | |
20302 | fi | |
20303 | if test ! -d lib/wx/include; then | |
20304 | mkdir lib/wx/include | |
20305 | fi | |
3a922bb4 RL |
20306 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
20307 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 20308 | fi |
3a922bb4 RL |
20309 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
20310 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
20311 | fi |
20312 | if test -f setup.h; then | |
3a922bb4 | 20313 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 20314 | fi |
698dcdb6 VZ |
20315 | |
20316 | exit 0 | |
10f2d63a VZ |
20317 | EOF |
20318 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
20319 | rm -fr confdefs* $ac_clean_files |
20320 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 20321 | |
2224580a VZ |
20322 | if test "$no_recursion" != yes; then |
20323 | ||
20324 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
20325 | ac_sub_configure_args= | |
20326 | ac_prev= | |
20327 | for ac_arg in $ac_configure_args; do | |
20328 | if test -n "$ac_prev"; then | |
20329 | ac_prev= | |
20330 | continue | |
20331 | fi | |
698dcdb6 | 20332 | case "$ac_arg" in |
2224580a VZ |
20333 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
20334 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20335 | ac_prev=cache_file ;; | |
20336 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 20337 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
20338 | ;; |
20339 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20340 | ac_prev=srcdir ;; | |
20341 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20342 | ;; | |
20343 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
20344 | esac | |
20345 | done | |
20346 | ||
698dcdb6 | 20347 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
20348 | |
20349 | # Do not complain, so a configure script can configure whichever | |
20350 | # parts of a large source tree are present. | |
698dcdb6 VZ |
20351 | if test ! -d $srcdir/$ac_config_dir; then |
20352 | continue | |
20353 | fi | |
20354 | ||
20355 | echo configuring in $ac_config_dir | |
2224580a | 20356 | |
698dcdb6 | 20357 | case "$srcdir" in |
2224580a VZ |
20358 | .) ;; |
20359 | *) | |
698dcdb6 VZ |
20360 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
20361 | else | |
20362 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
20363 | fi | |
20364 | ;; | |
2224580a VZ |
20365 | esac |
20366 | ||
20367 | ac_popdir=`pwd` | |
698dcdb6 | 20368 | cd $ac_config_dir |
2224580a | 20369 | |
698dcdb6 VZ |
20370 | # A "../" for each directory in /$ac_config_dir. |
20371 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 20372 | |
698dcdb6 | 20373 | case "$srcdir" in |
2224580a VZ |
20374 | .) # No --srcdir option. We are building in place. |
20375 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
20376 | /*) # Absolute path. |
20377 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 20378 | *) # Relative path. |
698dcdb6 | 20379 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
20380 | esac |
20381 | ||
20382 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
20383 | if test -f $ac_sub_srcdir/configure; then |
20384 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
20385 | elif test -f $ac_sub_srcdir/configure.in; then |
20386 | ac_sub_configure=$ac_configure | |
20387 | else | |
698dcdb6 | 20388 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
20389 | ac_sub_configure= |
20390 | fi | |
20391 | ||
20392 | # The recursion is here. | |
20393 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 20394 | |
2224580a | 20395 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
20396 | case "$cache_file" in |
20397 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 20398 | *) # Relative path. |
698dcdb6 | 20399 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 20400 | esac |
698dcdb6 VZ |
20401 | case "$ac_given_INSTALL" in |
20402 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20403 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
20404 | esac | |
2224580a | 20405 | |
698dcdb6 | 20406 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 20407 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
20408 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
20409 | then : | |
20410 | else | |
20411 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
20412 | fi | |
2224580a VZ |
20413 | fi |
20414 | ||
20415 | cd $ac_popdir | |
20416 | done | |
20417 | fi | |
20418 | ||
698dcdb6 | 20419 |