]>
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 | ||
41 | ||
698dcdb6 VZ |
42 | |
43 | ||
44 | # Guess values for system-dependent variables and create Makefiles. | |
45 | # Generated automatically using autoconf version 2.13 | |
46 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
47 | # | |
48 | # This configure script is free software; the Free Software Foundation | |
49 | # gives unlimited permission to copy, distribute and modify it. | |
50 | ||
51 | # Defaults: | |
52 | ac_help= | |
53 | ac_default_prefix=/usr/local | |
54 | # Any additions from configure.in: | |
55 | ac_help="$ac_help | |
8168de4c | 56 | --enable-gui use GUI classes" |
1e6feb95 | 57 | ac_help="$ac_help |
8168de4c | 58 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
59 | ac_help="$ac_help |
60 | --with-gtk use GTK+" | |
61 | ac_help="$ac_help | |
62 | --with-motif use Motif/Lesstif" | |
63 | ac_help="$ac_help | |
64 | --with-mac use Mac OS X" | |
65 | ac_help="$ac_help | |
66 | --with-wine use WINE" | |
67 | ac_help="$ac_help | |
77e13408 | 68 | --with-msw use MS-Windows" |
698dcdb6 VZ |
69 | ac_help="$ac_help |
70 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 71 | ac_help="$ac_help |
b3e8d00a | 72 | --with-mgl use SciTech MGL" |
1725144d RR |
73 | ac_help="$ac_help |
74 | --with-microwin use MicroWindows" | |
698dcdb6 | 75 | ac_help="$ac_help |
8168de4c | 76 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 77 | ac_help="$ac_help |
8168de4c | 78 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 79 | ac_help="$ac_help |
8168de4c | 80 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 81 | ac_help="$ac_help |
8168de4c | 82 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 83 | ac_help="$ac_help |
8168de4c | 84 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 85 | ac_help="$ac_help |
8168de4c | 86 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 87 | ac_help="$ac_help |
d0e9b150 | 88 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
89 | ac_help="$ac_help |
90 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 91 | ac_help="$ac_help |
8168de4c | 92 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 93 | ac_help="$ac_help |
8168de4c | 94 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 95 | ac_help="$ac_help |
8168de4c | 96 | --enable-shared create shared library code" |
698dcdb6 | 97 | ac_help="$ac_help |
3a922bb4 | 98 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 99 | ac_help="$ac_help |
8168de4c | 100 | --enable-optimise create optimised code" |
698dcdb6 | 101 | ac_help="$ac_help |
8168de4c | 102 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
103 | ac_help="$ac_help |
104 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 105 | ac_help="$ac_help |
8168de4c | 106 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 107 | ac_help="$ac_help |
8168de4c | 108 | --enable-debug_info create code with debugging information" |
698dcdb6 | 109 | ac_help="$ac_help |
8168de4c | 110 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 111 | ac_help="$ac_help |
8168de4c | 112 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 113 | ac_help="$ac_help |
8168de4c | 114 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 115 | ac_help="$ac_help |
8168de4c | 116 | --enable-profile create code with profiling information" |
698dcdb6 | 117 | ac_help="$ac_help |
8168de4c | 118 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 119 | ac_help="$ac_help |
b3e8d00a | 120 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 121 | ac_help="$ac_help |
8168de4c | 122 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 123 | ac_help="$ac_help |
8168de4c | 124 | --enable-no_deps create code without dependency information" |
54276ccf | 125 | ac_help="$ac_help |
b3e8d00a | 126 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 127 | ac_help="$ac_help |
b3e8d00a | 128 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 129 | ac_help="$ac_help |
8168de4c | 130 | --enable-intl use internationalization system" |
698dcdb6 | 131 | ac_help="$ac_help |
8168de4c | 132 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
133 | ac_help="$ac_help |
134 | --enable-protocols use wxProtocol and derived classes" | |
135 | ac_help="$ac_help | |
136 | --enable-ftp use wxFTP (requires wxProtocol" | |
137 | ac_help="$ac_help | |
138 | --enable-http use wxHTTP (requires wxProtocol" | |
139 | ac_help="$ac_help | |
140 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 141 | ac_help="$ac_help |
8168de4c | 142 | --enable-sockets use socket/network classes" |
698dcdb6 | 143 | ac_help="$ac_help |
8168de4c | 144 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 145 | ac_help="$ac_help |
8168de4c | 146 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 147 | ac_help="$ac_help |
8168de4c | 148 | --enable-datetime use wxDateTime class" |
1e6feb95 | 149 | ac_help="$ac_help |
8168de4c | 150 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 151 | ac_help="$ac_help |
8168de4c | 152 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 153 | ac_help="$ac_help |
8168de4c | 154 | --enable-dialupman use dialup network classes" |
698dcdb6 | 155 | ac_help="$ac_help |
8168de4c | 156 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 157 | ac_help="$ac_help |
8168de4c | 158 | --enable-timer use wxTimer class" |
698dcdb6 | 159 | ac_help="$ac_help |
8168de4c | 160 | --enable-wave use wxWave class" |
698dcdb6 | 161 | ac_help="$ac_help |
8168de4c | 162 | --enable-fraction use wxFraction class" |
698dcdb6 | 163 | ac_help="$ac_help |
8168de4c | 164 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
165 | ac_help="$ac_help |
166 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 167 | ac_help="$ac_help |
8168de4c | 168 | --enable-longlong use wxLongLong class" |
698dcdb6 | 169 | ac_help="$ac_help |
8168de4c | 170 | --enable-geometry use geometry class" |
698dcdb6 | 171 | ac_help="$ac_help |
8168de4c | 172 | --enable-log use logging system" |
698dcdb6 | 173 | ac_help="$ac_help |
8168de4c | 174 | --enable-streams use wxStream etc classes" |
698dcdb6 | 175 | ac_help="$ac_help |
8168de4c | 176 | --enable-file use wxFile classes" |
698dcdb6 | 177 | ac_help="$ac_help |
8168de4c | 178 | --enable-ffile use wxFFile classes" |
1e6feb95 | 179 | ac_help="$ac_help |
a3a584a7 VZ |
180 | --enable-textbuf use wxTextBuffer class" |
181 | ac_help="$ac_help | |
182 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 183 | ac_help="$ac_help |
8168de4c | 184 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 185 | ac_help="$ac_help |
8168de4c | 186 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
187 | ac_help="$ac_help |
188 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 189 | ac_help="$ac_help |
8168de4c | 190 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 191 | ac_help="$ac_help |
8168de4c | 192 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 193 | ac_help="$ac_help |
8168de4c | 194 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 195 | ac_help="$ac_help |
8168de4c | 196 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 197 | ac_help="$ac_help |
8168de4c | 198 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 199 | ac_help="$ac_help |
8168de4c | 200 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 201 | ac_help="$ac_help |
8168de4c | 202 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 203 | ac_help="$ac_help |
8168de4c | 204 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 205 | ac_help="$ac_help |
69d27ff7 | 206 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 207 | ac_help="$ac_help |
b3e8d00a | 208 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 209 | ac_help="$ac_help |
8168de4c | 210 | --enable-threads use threads" |
698dcdb6 | 211 | ac_help="$ac_help |
8168de4c | 212 | --enable-docview use document view architecture" |
698dcdb6 | 213 | ac_help="$ac_help |
3379ed37 | 214 | --enable-help use help subsystem" |
29fd3c0c VS |
215 | ac_help="$ac_help |
216 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
217 | ac_help="$ac_help |
218 | --enable-html use wxHTML sub-library" | |
219 | ac_help="$ac_help | |
220 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 221 | ac_help="$ac_help |
8168de4c | 222 | --enable-constraints use layout-constraints system" |
698dcdb6 | 223 | ac_help="$ac_help |
8168de4c | 224 | --enable-printarch use printing architecture" |
698dcdb6 | 225 | ac_help="$ac_help |
8168de4c | 226 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 227 | ac_help="$ac_help |
8168de4c | 228 | --enable-loggui use standard GUI logger" |
1e6feb95 | 229 | ac_help="$ac_help |
8168de4c | 230 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
231 | ac_help="$ac_help |
232 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 233 | ac_help="$ac_help |
8168de4c | 234 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 235 | ac_help="$ac_help |
8168de4c | 236 | --enable-prologio use Prolog IO library" |
698dcdb6 | 237 | ac_help="$ac_help |
8168de4c | 238 | --enable-resources use wxWindows resources" |
698dcdb6 | 239 | ac_help="$ac_help |
8168de4c | 240 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 241 | ac_help="$ac_help |
8168de4c | 242 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 243 | ac_help="$ac_help |
8168de4c | 244 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 245 | ac_help="$ac_help |
8168de4c | 246 | --enable-metafile use win32 metafiles" |
698dcdb6 | 247 | ac_help="$ac_help |
24176f2c | 248 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 249 | ac_help="$ac_help |
8168de4c | 250 | --enable-controls use all usual controls" |
698dcdb6 | 251 | ac_help="$ac_help |
8168de4c | 252 | --enable-accel use accelerators" |
698dcdb6 | 253 | ac_help="$ac_help |
8168de4c | 254 | --enable-button use wxButton class" |
698dcdb6 | 255 | ac_help="$ac_help |
8168de4c | 256 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 257 | ac_help="$ac_help |
8168de4c | 258 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 259 | ac_help="$ac_help |
8168de4c | 260 | --enable-caret use wxCaret class" |
1e6feb95 | 261 | ac_help="$ac_help |
8168de4c | 262 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 263 | ac_help="$ac_help |
8168de4c | 264 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 265 | ac_help="$ac_help |
8168de4c | 266 | --enable-choice use wxChoice class" |
698dcdb6 | 267 | ac_help="$ac_help |
8168de4c | 268 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 269 | ac_help="$ac_help |
8168de4c | 270 | --enable-gauge use wxGauge class" |
698dcdb6 | 271 | ac_help="$ac_help |
8168de4c | 272 | --enable-grid use wxGrid class" |
698dcdb6 | 273 | ac_help="$ac_help |
8168de4c | 274 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 275 | ac_help="$ac_help |
8168de4c | 276 | --enable-imaglist use wxImageList class" |
698dcdb6 | 277 | ac_help="$ac_help |
8168de4c | 278 | --enable-listbox use wxListBox class" |
698dcdb6 | 279 | ac_help="$ac_help |
8168de4c | 280 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 281 | ac_help="$ac_help |
8168de4c | 282 | --enable-notebook use wxNotebook class" |
24176f2c GD |
283 | ac_help="$ac_help |
284 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 285 | ac_help="$ac_help |
8168de4c | 286 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 287 | ac_help="$ac_help |
8168de4c | 288 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 289 | ac_help="$ac_help |
8168de4c | 290 | --enable-sash use wxSashWindow class" |
698dcdb6 | 291 | ac_help="$ac_help |
8168de4c | 292 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 293 | ac_help="$ac_help |
8168de4c | 294 | --enable-slider use wxSlider class" |
698dcdb6 | 295 | ac_help="$ac_help |
8168de4c | 296 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 297 | ac_help="$ac_help |
8168de4c | 298 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 299 | ac_help="$ac_help |
8168de4c | 300 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 301 | ac_help="$ac_help |
8168de4c | 302 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 303 | ac_help="$ac_help |
8168de4c | 304 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 305 | ac_help="$ac_help |
8168de4c | 306 | --enable-statline use wxStaticLine class" |
698dcdb6 | 307 | ac_help="$ac_help |
8168de4c | 308 | --enable-stattext use wxStaticText class" |
1e6feb95 | 309 | ac_help="$ac_help |
8168de4c | 310 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 311 | ac_help="$ac_help |
8168de4c | 312 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 313 | ac_help="$ac_help |
8168de4c | 314 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 315 | ac_help="$ac_help |
8168de4c | 316 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 317 | ac_help="$ac_help |
8168de4c | 318 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 319 | ac_help="$ac_help |
8168de4c | 320 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 321 | ac_help="$ac_help |
8168de4c | 322 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 323 | ac_help="$ac_help |
8168de4c | 324 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
325 | ac_help="$ac_help |
326 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
327 | ac_help="$ac_help |
328 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 329 | ac_help="$ac_help |
b3e8d00a | 330 | --enable-commondlg use all common dialogs" |
698dcdb6 | 331 | ac_help="$ac_help |
8168de4c | 332 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 333 | ac_help="$ac_help |
8168de4c | 334 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 335 | ac_help="$ac_help |
8168de4c | 336 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
337 | ac_help="$ac_help |
338 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 339 | ac_help="$ac_help |
8168de4c | 340 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 341 | ac_help="$ac_help |
8168de4c | 342 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 343 | ac_help="$ac_help |
8168de4c | 344 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 345 | ac_help="$ac_help |
8168de4c | 346 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
347 | ac_help="$ac_help |
348 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 349 | ac_help="$ac_help |
8168de4c | 350 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 351 | ac_help="$ac_help |
8168de4c | 352 | --enable-tipdlg use startup tips" |
698dcdb6 | 353 | ac_help="$ac_help |
8168de4c | 354 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
355 | ac_help="$ac_help |
356 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 357 | ac_help="$ac_help |
8168de4c | 358 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 359 | ac_help="$ac_help |
8168de4c | 360 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 361 | ac_help="$ac_help |
8168de4c | 362 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 363 | ac_help="$ac_help |
8168de4c | 364 | --enable-splines use spline drawing code" |
698dcdb6 | 365 | ac_help="$ac_help |
8168de4c | 366 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 367 | ac_help="$ac_help |
8168de4c | 368 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 369 | ac_help="$ac_help |
b3e8d00a | 370 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 371 | ac_help="$ac_help |
8168de4c | 372 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
373 | ac_help="$ac_help |
374 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
375 | ac_help="$ac_help |
376 | --enable-palette use wxPalette class" | |
1e6feb95 | 377 | ac_help="$ac_help |
8168de4c | 378 | --enable-image use wxImage class" |
698dcdb6 | 379 | ac_help="$ac_help |
8168de4c | 380 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 381 | ac_help="$ac_help |
8168de4c | 382 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 383 | ac_help="$ac_help |
8168de4c | 384 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 385 | ac_help="$ac_help |
8168de4c | 386 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
387 | ac_help="$ac_help |
388 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
389 | ac_help="$ac_help | |
390 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
391 | ac_help="$ac_help | |
392 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
393 | ac_help="$ac_help |
394 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
395 | ac_help="$ac_help | |
396 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
397 | ac_help="$ac_help | |
398 | --disable-gtktest Do not try to compile and run a test GTK program" | |
399 | ac_help="$ac_help | |
400 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
401 | ac_help="$ac_help | |
402 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
403 | ac_help="$ac_help | |
404 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
405 | ac_help="$ac_help |
406 | --with-x use the X Window System" | |
10f2d63a VZ |
407 | |
408 | # Initialize some variables set by options. | |
409 | # The variables have the same names as the options, with | |
410 | # dashes changed to underlines. | |
698dcdb6 VZ |
411 | build=NONE |
412 | cache_file=./config.cache | |
10f2d63a | 413 | exec_prefix=NONE |
698dcdb6 | 414 | host=NONE |
10f2d63a | 415 | no_create= |
698dcdb6 | 416 | nonopt=NONE |
10f2d63a VZ |
417 | no_recursion= |
418 | prefix=NONE | |
419 | program_prefix=NONE | |
420 | program_suffix=NONE | |
421 | program_transform_name=s,x,x, | |
422 | silent= | |
423 | site= | |
424 | srcdir= | |
698dcdb6 | 425 | target=NONE |
10f2d63a VZ |
426 | verbose= |
427 | x_includes=NONE | |
428 | x_libraries=NONE | |
429 | bindir='${exec_prefix}/bin' | |
430 | sbindir='${exec_prefix}/sbin' | |
431 | libexecdir='${exec_prefix}/libexec' | |
432 | datadir='${prefix}/share' | |
433 | sysconfdir='${prefix}/etc' | |
434 | sharedstatedir='${prefix}/com' | |
435 | localstatedir='${prefix}/var' | |
436 | libdir='${exec_prefix}/lib' | |
437 | includedir='${prefix}/include' | |
438 | oldincludedir='/usr/include' | |
439 | infodir='${prefix}/info' | |
440 | mandir='${prefix}/man' | |
441 | ||
698dcdb6 VZ |
442 | # Initialize some other variables. |
443 | subdirs= | |
444 | MFLAGS= MAKEFLAGS= | |
445 | SHELL=${CONFIG_SHELL-/bin/sh} | |
446 | # Maximum number of lines to put in a shell here document. | |
447 | ac_max_here_lines=12 | |
10f2d63a VZ |
448 | |
449 | ac_prev= | |
450 | for ac_option | |
451 | do | |
698dcdb6 | 452 | |
10f2d63a VZ |
453 | # If the previous option needs an argument, assign it. |
454 | if test -n "$ac_prev"; then | |
455 | eval "$ac_prev=\$ac_option" | |
456 | ac_prev= | |
457 | continue | |
458 | fi | |
459 | ||
698dcdb6 VZ |
460 | case "$ac_option" in |
461 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
462 | *) ac_optarg= ;; | |
463 | esac | |
10f2d63a VZ |
464 | |
465 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
466 | ||
698dcdb6 | 467 | case "$ac_option" in |
10f2d63a VZ |
468 | |
469 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
470 | ac_prev=bindir ;; | |
471 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 472 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
473 | |
474 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 475 | ac_prev=build ;; |
10f2d63a | 476 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 477 | build="$ac_optarg" ;; |
10f2d63a VZ |
478 | |
479 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
480 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
481 | ac_prev=cache_file ;; | |
482 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
483 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 484 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
485 | |
486 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
487 | ac_prev=datadir ;; | |
488 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
489 | | --da=*) | |
698dcdb6 | 490 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
491 | |
492 | -disable-* | --disable-*) | |
698dcdb6 | 493 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 494 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
495 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
496 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
497 | fi | |
498 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
499 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
500 | |
501 | -enable-* | --enable-*) | |
698dcdb6 | 502 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 503 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
504 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
505 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
506 | fi | |
507 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
508 | case "$ac_option" in | |
509 | *=*) ;; | |
10f2d63a VZ |
510 | *) ac_optarg=yes ;; |
511 | esac | |
698dcdb6 | 512 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
513 | |
514 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
515 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
516 | | --exec | --exe | --ex) | |
517 | ac_prev=exec_prefix ;; | |
518 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
519 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
520 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 521 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
522 | |
523 | -gas | --gas | --ga | --g) | |
524 | # Obsolete; use --with-gas. | |
525 | with_gas=yes ;; | |
526 | ||
698dcdb6 VZ |
527 | -help | --help | --hel | --he) |
528 | # Omit some internal or obsolete options to make the list less imposing. | |
529 | # This message is too long to be a string in the A/UX 3.1 sh. | |
530 | cat << EOF | |
531 | Usage: configure [options] [host] | |
532 | Options: [defaults in brackets after descriptions] | |
533 | Configuration: | |
534 | --cache-file=FILE cache test results in FILE | |
535 | --help print this message | |
536 | --no-create do not create output files | |
537 | --quiet, --silent do not print \`checking...' messages | |
538 | --version print the version of autoconf that created configure | |
539 | Directory and file names: | |
540 | --prefix=PREFIX install architecture-independent files in PREFIX | |
541 | [$ac_default_prefix] | |
542 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
543 | [same as prefix] | |
544 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
545 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
546 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
547 | --datadir=DIR read-only architecture-independent data in DIR | |
548 | [PREFIX/share] | |
549 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
550 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
551 | [PREFIX/com] | |
552 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
553 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
554 | --includedir=DIR C header files in DIR [PREFIX/include] | |
555 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
556 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
557 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
558 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
559 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
560 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
561 | --program-transform-name=PROGRAM | |
562 | run sed PROGRAM on installed program names | |
563 | EOF | |
564 | cat << EOF | |
565 | Host type: | |
566 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
567 | --host=HOST configure for HOST [guessed] | |
568 | --target=TARGET configure for TARGET [TARGET=HOST] | |
569 | Features and packages: | |
570 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
571 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
572 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
573 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
574 | --x-includes=DIR X include files are in DIR | |
575 | --x-libraries=DIR X library files are in DIR | |
576 | EOF | |
577 | if test -n "$ac_help"; then | |
578 | echo "--enable and --with options recognized:$ac_help" | |
579 | fi | |
580 | exit 0 ;; | |
10f2d63a VZ |
581 | |
582 | -host | --host | --hos | --ho) | |
698dcdb6 | 583 | ac_prev=host ;; |
10f2d63a | 584 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 585 | host="$ac_optarg" ;; |
10f2d63a VZ |
586 | |
587 | -includedir | --includedir | --includedi | --included | --include \ | |
588 | | --includ | --inclu | --incl | --inc) | |
589 | ac_prev=includedir ;; | |
590 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
591 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 592 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
593 | |
594 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
595 | ac_prev=infodir ;; | |
596 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 597 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
598 | |
599 | -libdir | --libdir | --libdi | --libd) | |
600 | ac_prev=libdir ;; | |
601 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 602 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
603 | |
604 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
605 | | --libexe | --libex | --libe) | |
606 | ac_prev=libexecdir ;; | |
607 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
608 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 609 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
610 | |
611 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
612 | | --localstate | --localstat | --localsta | --localst \ | |
613 | | --locals | --local | --loca | --loc | --lo) | |
614 | ac_prev=localstatedir ;; | |
615 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
616 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
617 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 618 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
619 | |
620 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
621 | ac_prev=mandir ;; | |
622 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 623 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
624 | |
625 | -nfp | --nfp | --nf) | |
626 | # Obsolete; use --without-fp. | |
627 | with_fp=no ;; | |
628 | ||
629 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
630 | | --no-cr | --no-c) | |
631 | no_create=yes ;; | |
632 | ||
633 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
634 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
635 | no_recursion=yes ;; | |
636 | ||
637 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
638 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
639 | | --oldin | --oldi | --old | --ol | --o) | |
640 | ac_prev=oldincludedir ;; | |
641 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
642 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
643 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 644 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
645 | |
646 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
647 | ac_prev=prefix ;; | |
648 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 649 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
652 | | --program-pre | --program-pr | --program-p) | |
653 | ac_prev=program_prefix ;; | |
654 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
655 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 656 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
659 | | --program-suf | --program-su | --program-s) | |
660 | ac_prev=program_suffix ;; | |
661 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
662 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 663 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -program-transform-name | --program-transform-name \ | |
666 | | --program-transform-nam | --program-transform-na \ | |
667 | | --program-transform-n | --program-transform- \ | |
668 | | --program-transform | --program-transfor \ | |
669 | | --program-transfo | --program-transf \ | |
670 | | --program-trans | --program-tran \ | |
671 | | --progr-tra | --program-tr | --program-t) | |
672 | ac_prev=program_transform_name ;; | |
673 | -program-transform-name=* | --program-transform-name=* \ | |
674 | | --program-transform-nam=* | --program-transform-na=* \ | |
675 | | --program-transform-n=* | --program-transform-=* \ | |
676 | | --program-transform=* | --program-transfor=* \ | |
677 | | --program-transfo=* | --program-transf=* \ | |
678 | | --program-trans=* | --program-tran=* \ | |
679 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 680 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
683 | | -silent | --silent | --silen | --sile | --sil) | |
684 | silent=yes ;; | |
685 | ||
686 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
687 | ac_prev=sbindir ;; | |
688 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
689 | | --sbi=* | --sb=*) | |
698dcdb6 | 690 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
691 | |
692 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
693 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
694 | | --sharedst | --shareds | --shared | --share | --shar \ | |
695 | | --sha | --sh) | |
696 | ac_prev=sharedstatedir ;; | |
697 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
698 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
699 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
700 | | --sha=* | --sh=*) | |
698dcdb6 | 701 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
702 | |
703 | -site | --site | --sit) | |
704 | ac_prev=site ;; | |
705 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 706 | site="$ac_optarg" ;; |
10f2d63a VZ |
707 | |
708 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
709 | ac_prev=srcdir ;; | |
710 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 711 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
714 | | --syscon | --sysco | --sysc | --sys | --sy) | |
715 | ac_prev=sysconfdir ;; | |
716 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
717 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 718 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
720 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 721 | ac_prev=target ;; |
10f2d63a | 722 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 723 | target="$ac_optarg" ;; |
10f2d63a VZ |
724 | |
725 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
726 | verbose=yes ;; | |
727 | ||
698dcdb6 VZ |
728 | -version | --version | --versio | --versi | --vers) |
729 | echo "configure generated by autoconf version 2.13" | |
730 | exit 0 ;; | |
10f2d63a VZ |
731 | |
732 | -with-* | --with-*) | |
698dcdb6 | 733 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 734 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
735 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
736 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
737 | fi | |
10f2d63a | 738 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
739 | case "$ac_option" in |
740 | *=*) ;; | |
10f2d63a VZ |
741 | *) ac_optarg=yes ;; |
742 | esac | |
698dcdb6 | 743 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
744 | |
745 | -without-* | --without-*) | |
698dcdb6 | 746 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 747 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
748 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
749 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
750 | fi | |
751 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
752 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
753 | |
754 | --x) | |
755 | # Obsolete; use --with-x. | |
756 | with_x=yes ;; | |
757 | ||
758 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
759 | | --x-incl | --x-inc | --x-in | --x-i) | |
760 | ac_prev=x_includes ;; | |
761 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
762 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 763 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
764 | |
765 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
766 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
767 | ac_prev=x_libraries ;; | |
768 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
769 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 770 | x_libraries="$ac_optarg" ;; |
10f2d63a | 771 | |
698dcdb6 | 772 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
773 | ;; |
774 | ||
775 | *) | |
698dcdb6 VZ |
776 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
777 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
778 | fi | |
779 | if test "x$nonopt" != xNONE; then | |
780 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
781 | fi | |
782 | nonopt="$ac_option" | |
10f2d63a VZ |
783 | ;; |
784 | ||
785 | esac | |
786 | done | |
787 | ||
788 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
789 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
790 | fi | |
791 | ||
792 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
793 | ||
794 | # File descriptor usage: | |
795 | # 0 standard input | |
796 | # 1 file creation | |
797 | # 2 errors and warnings | |
798 | # 3 some systems may open it to /dev/tty | |
799 | # 4 used on the Kubota Titan | |
800 | # 6 checking for... messages and results | |
801 | # 5 compiler messages saved in config.log | |
802 | if test "$silent" = yes; then | |
803 | exec 6>/dev/null | |
804 | else | |
805 | exec 6>&1 | |
10f2d63a | 806 | fi |
698dcdb6 VZ |
807 | exec 5>./config.log |
808 | ||
809 | echo "\ | |
810 | This file contains any messages produced by compilers while | |
811 | running configure, to aid debugging if configure makes a mistake. | |
812 | " 1>&5 | |
10f2d63a | 813 | |
698dcdb6 VZ |
814 | # Strip out --no-create and --no-recursion so they do not pile up. |
815 | # Also quote any args containing shell metacharacters. | |
816 | ac_configure_args= | |
817 | for ac_arg | |
10f2d63a | 818 | do |
698dcdb6 VZ |
819 | case "$ac_arg" in |
820 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
821 | | --no-cr | --no-c) ;; | |
822 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
823 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
824 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
825 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
826 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
827 | esac |
828 | done | |
829 | ||
698dcdb6 VZ |
830 | # NLS nuisances. |
831 | # Only set these to C if already set. These must not be set unconditionally | |
832 | # because not all systems understand e.g. LANG=C (notably SCO). | |
833 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
834 | # Non-C LC_CTYPE values break the ctype check. | |
835 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
836 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
837 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
838 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 839 | |
698dcdb6 VZ |
840 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
841 | rm -rf conftest* confdefs.h | |
842 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
843 | echo > confdefs.h | |
10f2d63a | 844 | |
698dcdb6 VZ |
845 | # A filename unique to this package, relative to the directory that |
846 | # configure is in, which we can look for to find out if srcdir is correct. | |
847 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
848 | |
849 | # Find the source files, if location was not specified. | |
850 | if test -z "$srcdir"; then | |
851 | ac_srcdir_defaulted=yes | |
852 | # Try the directory containing this script, then its parent. | |
853 | ac_prog=$0 | |
698dcdb6 | 854 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
855 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
856 | srcdir=$ac_confdir | |
857 | if test ! -r $srcdir/$ac_unique_file; then | |
858 | srcdir=.. | |
859 | fi | |
860 | else | |
861 | ac_srcdir_defaulted=no | |
862 | fi | |
863 | if test ! -r $srcdir/$ac_unique_file; then | |
864 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 865 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 866 | else |
698dcdb6 | 867 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
868 | fi |
869 | fi | |
698dcdb6 | 870 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
871 | |
872 | # Prefer explicitly selected file to automatically selected ones. | |
873 | if test -z "$CONFIG_SITE"; then | |
874 | if test "x$prefix" != xNONE; then | |
875 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
876 | else | |
877 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
878 | fi | |
879 | fi | |
880 | for ac_site_file in $CONFIG_SITE; do | |
881 | if test -r "$ac_site_file"; then | |
698dcdb6 | 882 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
883 | . "$ac_site_file" |
884 | fi | |
885 | done | |
886 | ||
887 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
888 | echo "loading cache $cache_file" |
889 | . $cache_file | |
10f2d63a | 890 | else |
698dcdb6 VZ |
891 | echo "creating cache $cache_file" |
892 | > $cache_file | |
10f2d63a VZ |
893 | fi |
894 | ||
895 | ac_ext=c | |
698dcdb6 | 896 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 897 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
898 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
899 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
900 | cross_compiling=$ac_cv_prog_cc_cross | |
901 | ||
902 | ac_exeext= | |
903 | ac_objext=o | |
904 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
905 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
906 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
907 | ac_n= ac_c=' | |
908 | ' ac_t=' ' | |
909 | else | |
910 | ac_n=-n ac_c= ac_t= | |
911 | fi | |
10f2d63a | 912 | else |
698dcdb6 | 913 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 914 | fi |
698dcdb6 VZ |
915 | |
916 | ||
10f2d63a | 917 | |
7c66a493 VZ |
918 | ac_aux_dir= |
919 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
920 | if test -f $ac_dir/install-sh; then | |
921 | ac_aux_dir=$ac_dir | |
922 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
923 | break | |
924 | elif test -f $ac_dir/install.sh; then | |
925 | ac_aux_dir=$ac_dir | |
926 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
927 | break | |
928 | fi | |
929 | done | |
930 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 931 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 932 | fi |
698dcdb6 VZ |
933 | ac_config_guess=$ac_aux_dir/config.guess |
934 | ac_config_sub=$ac_aux_dir/config.sub | |
935 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 936 | |
698dcdb6 VZ |
937 | |
938 | # Do some error checking and defaulting for the host and target type. | |
939 | # The inputs are: | |
940 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
941 | # | |
942 | # The rules are: | |
943 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
944 | # same time. | |
945 | # 2. Host defaults to nonopt. | |
946 | # 3. If nonopt is not specified, then host defaults to the current host, | |
947 | # as determined by config.guess. | |
948 | # 4. Target and build default to nonopt. | |
949 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
950 | |
951 | # The aliases save the names the user supplied, while $host etc. | |
952 | # will get canonicalized. | |
698dcdb6 VZ |
953 | case $host---$target---$nonopt in |
954 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
955 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
956 | esac | |
957 | ||
958 | ||
959 | # Make sure we can run config.sub. | |
960 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
961 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
962 | fi | |
963 | ||
964 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a1622950 | 965 | echo "configure:966: checking host system type" >&5 |
698dcdb6 VZ |
966 | |
967 | host_alias=$host | |
968 | case "$host_alias" in | |
969 | NONE) | |
970 | case $nonopt in | |
971 | NONE) | |
972 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
973 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
974 | fi ;; | |
975 | *) host_alias=$nonopt ;; | |
976 | esac ;; | |
977 | esac | |
978 | ||
979 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
980 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
981 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
982 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
983 | echo "$ac_t""$host" 1>&6 | |
984 | ||
985 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
a1622950 | 986 | echo "configure:987: checking target system type" >&5 |
698dcdb6 VZ |
987 | |
988 | target_alias=$target | |
989 | case "$target_alias" in | |
990 | NONE) | |
991 | case $nonopt in | |
992 | NONE) target_alias=$host_alias ;; | |
993 | *) target_alias=$nonopt ;; | |
994 | esac ;; | |
995 | esac | |
996 | ||
997 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
998 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
999 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1000 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1001 | echo "$ac_t""$target" 1>&6 | |
1002 | ||
1003 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
a1622950 | 1004 | echo "configure:1005: checking build system type" >&5 |
698dcdb6 VZ |
1005 | |
1006 | build_alias=$build | |
1007 | case "$build_alias" in | |
1008 | NONE) | |
1009 | case $nonopt in | |
1010 | NONE) build_alias=$host_alias ;; | |
1011 | *) build_alias=$nonopt ;; | |
1012 | esac ;; | |
1013 | esac | |
1014 | ||
1015 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1016 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1017 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1018 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1019 | echo "$ac_t""$build" 1>&6 | |
1020 | ||
1021 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1022 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1023 | NONENONEs,x,x, && | |
1024 | program_prefix=${target_alias}- | |
1025 | ||
698dcdb6 VZ |
1026 | |
1027 | ||
10f2d63a | 1028 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1029 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1030 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1031 | |
10f2d63a | 1032 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1033 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1034 | |
978f1259 RL |
1035 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1036 | ||
a0d927d1 | 1037 | WX_CURRENT=2 |
6426998c RL |
1038 | WX_REVISION=0 |
1039 | WX_AGE=0 | |
1040 | ||
698dcdb6 VZ |
1041 | |
1042 | ||
10f2d63a VZ |
1043 | USE_UNIX=1 |
1044 | USE_WIN32=0 | |
f9bc1684 | 1045 | USE_DOS=0 |
b12915c1 | 1046 | USE_BEOS=0 |
1216f52d | 1047 | USE_MAC=0 |
b12915c1 | 1048 | |
10f2d63a VZ |
1049 | USE_LINUX= |
1050 | USE_SGI= | |
1051 | USE_HPUX= | |
1052 | USE_SYSV= | |
1053 | USE_SVR4= | |
1054 | USE_AIX= | |
1055 | USE_SUN= | |
1056 | USE_SOLARIS= | |
1057 | USE_SUNOS= | |
1058 | USE_ALPHA= | |
1059 | USE_OSF= | |
1060 | USE_BSD= | |
f11bdd03 | 1061 | USE_DARWIN= |
10f2d63a | 1062 | USE_FREEBSD= |
95c8801c | 1063 | USE_OPENBSD= |
f6bcfd97 | 1064 | USE_NETBSD= |
10f2d63a VZ |
1065 | USE_VMS= |
1066 | USE_ULTRIX= | |
10f2d63a VZ |
1067 | USE_DATA_GENERAL= |
1068 | ||
ab9b9eab VZ |
1069 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1070 | ||
3f345b47 VZ |
1071 | CPP_MT_FLAG=-D_REENTRANT |
1072 | ||
1725144d | 1073 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE" |
10f2d63a VZ |
1074 | |
1075 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1076 | DEFAULT_wxUSE_MAC=0 |
1077 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1078 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1079 | DEFAULT_wxUSE_MOTIF=0 |
1080 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1081 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1082 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1083 | |
1084 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1085 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1086 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1087 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1088 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1089 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1090 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1091 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1092 | |
d6a55c4b | 1093 | PROGRAM_EXT= |
3a922bb4 | 1094 | SO_SUFFIX=so |
d6a55c4b | 1095 | |
10f2d63a VZ |
1096 | case "${host}" in |
1097 | *-hp-hpux* ) | |
1098 | USE_HPUX=1 | |
1099 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1100 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1101 | SO_SUFFIX=sl |
698dcdb6 | 1102 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1103 | #define __HPUX__ 1 |
1104 | EOF | |
1105 | ||
1106 | ;; | |
1107 | *-*-linux* ) | |
1108 | USE_LINUX=1 | |
698dcdb6 | 1109 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1110 | #define __LINUX__ 1 |
1111 | EOF | |
1112 | ||
1113 | TMP=`uname -m` | |
1114 | if test "x$TMP" = "xalpha"; then | |
1115 | USE_ALPHA=1 | |
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __ALPHA__ 1 |
1118 | EOF | |
1119 | ||
1120 | fi | |
1121 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1122 | ;; | |
1123 | *-*-irix5* | *-*-irix6* ) | |
1124 | USE_SGI=1 | |
1125 | USE_SVR4=1 | |
698dcdb6 | 1126 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1127 | #define __SGI__ 1 |
1128 | EOF | |
1129 | ||
698dcdb6 | 1130 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1131 | #define __SVR4__ 1 |
1132 | EOF | |
1133 | ||
1134 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1135 | ;; | |
1136 | *-*-solaris2* ) | |
1137 | USE_SUN=1 | |
1138 | USE_SOLARIS=1 | |
1139 | USE_SVR4=1 | |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __SUN__ 1 |
1142 | EOF | |
1143 | ||
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1145 | #define __SOLARIS__ 1 |
1146 | EOF | |
1147 | ||
698dcdb6 | 1148 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1149 | #define __SVR4__ 1 |
1150 | EOF | |
1151 | ||
1152 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1153 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1154 | ;; |
1155 | *-*-sunos4* ) | |
1156 | USE_SUN=1 | |
1157 | USE_SUNOS=1 | |
1158 | USE_BSD=1 | |
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1160 | #define __SUN__ 1 |
1161 | EOF | |
1162 | ||
698dcdb6 | 1163 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1164 | #define __SUNOS__ 1 |
1165 | EOF | |
1166 | ||
698dcdb6 | 1167 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1168 | #define __BSD__ 1 |
1169 | EOF | |
1170 | ||
1171 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1172 | ;; | |
f6bcfd97 | 1173 | *-*-freebsd*) |
10f2d63a VZ |
1174 | USE_BSD=1 |
1175 | USE_FREEBSD=1 | |
3f345b47 | 1176 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1178 | #define __FREEBSD__ 1 |
1179 | EOF | |
1180 | ||
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a | 1182 | #define __BSD__ 1 |
95c8801c VS |
1183 | EOF |
1184 | ||
1185 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1186 | ;; | |
1187 | *-*-openbsd*) | |
1188 | USE_BSD=1 | |
1189 | USE_OPENBSD=1 | |
698dcdb6 | 1190 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1191 | #define __FREEBSD__ 1 |
1192 | EOF | |
1193 | ||
698dcdb6 | 1194 | cat >> confdefs.h <<\EOF |
95c8801c | 1195 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1196 | EOF |
1197 | ||
1198 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1199 | ;; | |
1200 | *-*-netbsd*) | |
1201 | USE_BSD=1 | |
1202 | USE_NETBSD=1 | |
698dcdb6 | 1203 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1204 | #define __FREEBSD__ 1 |
1205 | EOF | |
1206 | ||
698dcdb6 | 1207 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1208 | #define __NETBSD__ 1 |
10f2d63a VZ |
1209 | EOF |
1210 | ||
1211 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1212 | ;; | |
1213 | *-*-osf* ) | |
1214 | USE_ALPHA=1 | |
1215 | USE_OSF=1 | |
698dcdb6 | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1217 | #define __ALPHA__ 1 |
1218 | EOF | |
1219 | ||
698dcdb6 | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1221 | #define __OSF__ 1 |
1222 | EOF | |
1223 | ||
1224 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1225 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1226 | ;; |
1227 | *-*-dgux5* ) | |
1228 | USE_ALPHA=1 | |
1229 | USE_SVR4=1 | |
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1231 | #define __ALPHA__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1235 | #define __SVR4__ 1 |
1236 | EOF | |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1239 | ;; | |
1240 | *-*-sysv5* ) | |
1241 | USE_SYSV=1 | |
1242 | USE_SVR4=1 | |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1244 | #define __SYSV__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define __SVR4__ 1 |
1249 | EOF | |
1250 | ||
1251 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1252 | ;; | |
1253 | *-*-aix* ) | |
1254 | USE_AIX=1 | |
1255 | USE_SYSV=1 | |
1256 | USE_SVR4=1 | |
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __AIX__ 1 |
1259 | EOF | |
1260 | ||
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __SYSV__ 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 | ||
1c8183e2 | 1272 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1273 | USE_UNIX=0 |
1274 | USE_WIN32=1 | |
3a922bb4 | 1275 | SO_SUFFIX=dll |
698dcdb6 | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1277 | #define __WIN32__ 1 |
1278 | EOF | |
1279 | ||
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1281 | #define __WIN95__ 1 |
1282 | EOF | |
1283 | ||
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1285 | #define __WINDOWS__ 1 |
1286 | EOF | |
1287 | ||
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define __GNUWIN32__ 1 |
1290 | EOF | |
1291 | ||
698dcdb6 | 1292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define STRICT 1 |
1294 | EOF | |
1295 | ||
698dcdb6 | 1296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1297 | #define WINVER 0x0400 |
1298 | EOF | |
1299 | ||
cf27ef00 | 1300 | PROGRAM_EXT=".exe" |
7b7a7637 | 1301 | RESCOMP=windres |
10f2d63a VZ |
1302 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1303 | ;; | |
1304 | ||
f9bc1684 VS |
1305 | *-pc-msdosdjgpp ) |
1306 | USE_UNIX=0 | |
1307 | USE_DOS=1 | |
1308 | cat >> confdefs.h <<\EOF | |
1309 | #define __DOS__ 1 | |
1310 | EOF | |
1311 | ||
1312 | PROGRAM_EXT=".exe" | |
1313 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1314 | DEFAULT_DEFAULT_wxUSE_SHARED=0 | |
1315 | ;; | |
1316 | ||
6fa882bd | 1317 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1318 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1319 | #define __EMX__ 1 |
1320 | EOF | |
1321 | ||
cf27ef00 | 1322 | PROGRAM_EXT=".exe" |
e07802fc | 1323 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1324 | ;; |
1325 | ||
d08b457b GD |
1326 | powerpc-*-darwin* ) |
1327 | USE_BSD=1 | |
f11bdd03 | 1328 | USE_DARWIN=1 |
3f345b47 | 1329 | CPP_MT_FLAG= |
3a922bb4 | 1330 | SO_SUFFIX=dylib |
698dcdb6 | 1331 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1332 | #define __BSD__ 1 |
b4085ce6 GD |
1333 | EOF |
1334 | ||
698dcdb6 | 1335 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1336 | #define __DARWIN__ 1 |
d08b457b GD |
1337 | EOF |
1338 | ||
1339 | cat >> confdefs.h <<\EOF | |
1340 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1341 | EOF |
1342 | ||
1343 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1344 | ;; | |
1345 | ||
b12915c1 VZ |
1346 | *-*-beos* ) |
1347 | USE_BEOS=1 | |
698dcdb6 | 1348 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1349 | #define __BEOS__ 1 |
1350 | EOF | |
1351 | ||
1352 | ;; | |
1353 | ||
10f2d63a | 1354 | *) |
698dcdb6 | 1355 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1356 | esac |
1357 | ||
1358 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1359 | wxUSE_UNIX=yes |
698dcdb6 | 1360 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1361 | #define __UNIX__ 1 |
1362 | EOF | |
1363 | ||
10f2d63a VZ |
1364 | fi |
1365 | ||
2389f33b VZ |
1366 | if test "$USE_LINUX" = 1; then |
1367 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
a1622950 | 1368 | echo "configure:1369: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1369 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1371 | else | |
a72a4bfa VS |
1372 | |
1373 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 1374 | #line 1375 "configure" |
2389f33b VZ |
1375 | #include "confdefs.h" |
1376 | #include <features.h> | |
1377 | int main() { | |
1378 | ||
1379 | #if !__GLIBC_PREREQ(2, 1) | |
1380 | #error not glibc2.1 | |
1381 | #endif | |
1382 | ||
1383 | ; return 0; } | |
1384 | EOF | |
a1622950 | 1385 | if { (eval echo configure:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1386 | rm -rf conftest* |
1387 | ||
1388 | wx_lib_glibc21=yes | |
1389 | ||
1390 | else | |
1391 | echo "configure: failed program was:" >&5 | |
1392 | cat conftest.$ac_ext >&5 | |
1393 | rm -rf conftest* | |
1394 | ||
1395 | wx_lib_glibc21=no | |
1396 | ||
1397 | ||
1398 | fi | |
1399 | rm -f conftest* | |
1400 | ||
1401 | fi | |
1402 | ||
1403 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1404 | if test "$wx_lib_glibc21" = "yes"; then |
1405 | cat >> confdefs.h <<\EOF | |
1406 | #define wxHAVE_GLIBC2 1 | |
1407 | EOF | |
1408 | ||
1409 | fi | |
1410 | fi | |
10f2d63a | 1411 | |
1e487827 | 1412 | |
1e487827 | 1413 | |
6232543b | 1414 | |
10f2d63a VZ |
1415 | wx_arg_cache_file="configarg.cache" |
1416 | echo "loading argument cache $wx_arg_cache_file" | |
1417 | rm -f ${wx_arg_cache_file}.tmp | |
1418 | touch ${wx_arg_cache_file}.tmp | |
1419 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1420 | |
10f2d63a VZ |
1421 | |
1422 | DEBUG_CONFIGURE=0 | |
1423 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1424 | DEFAULT_wxUSE_UNIVERSAL=no |
1425 | ||
10f2d63a VZ |
1426 | DEFAULT_wxUSE_THREADS=yes |
1427 | ||
1428 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1429 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1430 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1431 | DEFAULT_wxUSE_PROFILE=no |
1432 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1433 | DEFAULT_wxUSE_NO_RTTI=yes |
1434 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_PERMISSIVE=no |
1436 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1437 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1438 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1439 | DEFAULT_wxUSE_MEM_TRACING=no | |
1440 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1441 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1442 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1443 | DEFAULT_wxUSE_APPLE_IEEE=no |
1444 | ||
1445 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1446 | DEFAULT_wxUSE_LOGWINDOW=no |
1447 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1448 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1449 | |
1450 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1451 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1452 | |
3e44f09d | 1453 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1454 | DEFAULT_wxUSE_ZLIB=no |
1455 | DEFAULT_wxUSE_LIBPNG=no | |
1456 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1457 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1458 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1459 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1460 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1461 | |
eb4efbdc | 1462 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1463 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1464 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1465 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1466 | DEFAULT_wxUSE_DATETIME=no | |
1467 | DEFAULT_wxUSE_TIMEDATE=no | |
1468 | DEFAULT_wxUSE_TIMER=no | |
1469 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1470 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1471 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1472 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1473 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1474 | DEFAULT_wxUSE_WAVE=no |
1475 | DEFAULT_wxUSE_INTL=no | |
1476 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1477 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1478 | DEFAULT_wxUSE_STREAMS=no |
1479 | DEFAULT_wxUSE_SOCKETS=no | |
1480 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1481 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1482 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1483 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1484 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1485 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1486 | |
1487 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1488 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1489 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1490 | ||
1491 | DEFAULT_wxUSE_X_RESOURCES=no | |
1492 | DEFAULT_wxUSE_CLIPBOARD=no | |
1493 | DEFAULT_wxUSE_TOOLTIPS=no | |
1494 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1495 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1496 | DEFAULT_wxUSE_SPLINES=no |
1497 | ||
1498 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1499 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1500 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1501 | ||
1502 | DEFAULT_wxUSE_PROLOGIO=no | |
1503 | DEFAULT_wxUSE_RESOURCES=no | |
1504 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1505 | DEFAULT_wxUSE_IPC=no | |
1506 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1507 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1508 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1509 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1510 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1511 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1512 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1513 | |
1514 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1515 | DEFAULT_wxUSE_CHOICEDLG=no |
1516 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1517 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1518 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1519 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1520 | DEFAULT_wxUSE_FONTDLG=no |
1521 | DEFAULT_wxUSE_MSGDLG=no | |
1522 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1523 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1524 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1526 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1527 | DEFAULT_wxUSE_WIZARDDLG=no |
1528 | ||
1e6feb95 | 1529 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_MINIFRAME=no |
1531 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1532 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1533 | DEFAULT_wxUSE_FS_INET=no |
1534 | DEFAULT_wxUSE_FS_ZIP=no | |
1535 | DEFAULT_wxUSE_BUSYINFO=no | |
1536 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1537 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1538 | |
1539 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1540 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1541 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1542 | DEFAULT_wxUSE_CALCTRL=no |
1543 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_CHECKBOX=no |
1545 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1546 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1547 | DEFAULT_wxUSE_COMBOBOX=no |
1548 | DEFAULT_wxUSE_GAUGE=no | |
1549 | DEFAULT_wxUSE_GRID=no | |
1550 | DEFAULT_wxUSE_NEW_GRID=no | |
1551 | DEFAULT_wxUSE_IMAGLIST=no | |
1552 | DEFAULT_wxUSE_LISTBOX=no | |
1553 | DEFAULT_wxUSE_LISTCTRL=no | |
1554 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1555 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_RADIOBOX=no |
1557 | DEFAULT_wxUSE_RADIOBTN=no | |
1558 | DEFAULT_wxUSE_SASH=no | |
1559 | DEFAULT_wxUSE_SCROLLBAR=no | |
1560 | DEFAULT_wxUSE_SLIDER=no | |
1561 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1562 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_SPLITTER=no |
1564 | DEFAULT_wxUSE_STATBMP=no | |
1565 | DEFAULT_wxUSE_STATBOX=no | |
1566 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1567 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1568 | DEFAULT_wxUSE_STATUSBAR=yes |
1569 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1570 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1571 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1572 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1573 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1574 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1575 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1576 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1577 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1578 | |
1579 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1580 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_WCSRTOMBS=no |
1582 | ||
edae8572 | 1583 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1584 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1585 | DEFAULT_wxUSE_GIF=no |
1586 | DEFAULT_wxUSE_PCX=no | |
1587 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1588 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1589 | else |
1e6feb95 VZ |
1590 | DEFAULT_wxUSE_UNIVERSAL=no |
1591 | ||
10f2d63a VZ |
1592 | DEFAULT_wxUSE_THREADS=yes |
1593 | ||
1594 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1595 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_OPTIMISE=yes |
1597 | DEFAULT_wxUSE_PROFILE=no | |
1598 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1599 | DEFAULT_wxUSE_NO_RTTI=yes |
1600 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_PERMISSIVE=no |
1602 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1603 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1604 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1605 | DEFAULT_wxUSE_MEM_TRACING=no | |
1606 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1607 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1608 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1610 | ||
1611 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1612 | DEFAULT_wxUSE_LOGWINDOW=yes |
1613 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1614 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1615 | |
1616 | DEFAULT_wxUSE_GUI=yes | |
1617 | ||
831b3152 | 1618 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_ZLIB=yes |
1620 | DEFAULT_wxUSE_LIBPNG=yes | |
1621 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1622 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1623 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1624 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1625 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1626 | |
eb4efbdc | 1627 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1628 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1629 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1630 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1631 | DEFAULT_wxUSE_DATETIME=yes | |
1632 | DEFAULT_wxUSE_TIMEDATE=no | |
1633 | DEFAULT_wxUSE_TIMER=yes | |
1634 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1635 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1636 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1637 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1638 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_WAVE=no |
1640 | DEFAULT_wxUSE_INTL=yes | |
1641 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1642 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1643 | DEFAULT_wxUSE_STREAMS=yes |
1644 | DEFAULT_wxUSE_SOCKETS=yes | |
1645 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1646 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1647 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1648 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1649 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1650 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1651 | |
1652 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1653 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1654 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1655 | ||
1656 | DEFAULT_wxUSE_X_RESOURCES=no | |
1657 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1658 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1659 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1660 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1661 | DEFAULT_wxUSE_SPLINES=yes |
1662 | ||
1663 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1664 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1665 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1666 | ||
1667 | DEFAULT_wxUSE_PROLOGIO=yes | |
1668 | DEFAULT_wxUSE_RESOURCES=yes | |
1669 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1670 | DEFAULT_wxUSE_IPC=yes | |
1671 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1672 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1673 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1674 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1675 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1676 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1677 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1678 | |
1679 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1680 | DEFAULT_wxUSE_CHOICEDLG=yes |
1681 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1682 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1683 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1684 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1685 | DEFAULT_wxUSE_FONTDLG=yes |
1686 | DEFAULT_wxUSE_MSGDLG=yes | |
1687 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1688 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1689 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1691 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1692 | DEFAULT_wxUSE_WIZARDDLG=yes |
1693 | ||
1e6feb95 | 1694 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1695 | DEFAULT_wxUSE_MINIFRAME=yes |
1696 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1697 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_FS_INET=yes |
1699 | DEFAULT_wxUSE_FS_ZIP=yes | |
1700 | DEFAULT_wxUSE_BUSYINFO=yes | |
1701 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1702 | DEFAULT_wxUSE_VALIDATORS=yes | |
1703 | ||
1704 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1705 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1706 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1707 | DEFAULT_wxUSE_CALCTRL=yes |
1708 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1709 | DEFAULT_wxUSE_CHECKBOX=yes |
1710 | DEFAULT_wxUSE_CHECKLST=yes | |
1711 | DEFAULT_wxUSE_CHOICE=yes | |
1712 | DEFAULT_wxUSE_COMBOBOX=yes | |
1713 | DEFAULT_wxUSE_GAUGE=yes | |
1714 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1715 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1716 | DEFAULT_wxUSE_IMAGLIST=yes |
1717 | DEFAULT_wxUSE_LISTBOX=yes | |
1718 | DEFAULT_wxUSE_LISTCTRL=yes | |
1719 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1720 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1721 | DEFAULT_wxUSE_RADIOBOX=yes |
1722 | DEFAULT_wxUSE_RADIOBTN=yes | |
1723 | DEFAULT_wxUSE_SASH=yes | |
1724 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1725 | DEFAULT_wxUSE_SLIDER=yes | |
1726 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1727 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1728 | DEFAULT_wxUSE_SPLITTER=yes |
1729 | DEFAULT_wxUSE_STATBMP=yes | |
1730 | DEFAULT_wxUSE_STATBOX=yes | |
1731 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1732 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1733 | DEFAULT_wxUSE_STATUSBAR=yes |
1734 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1735 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1736 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1737 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1738 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1739 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1740 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1741 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1742 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1743 | |
1744 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1745 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1746 | DEFAULT_wxUSE_WCSRTOMBS=no |
1747 | ||
edae8572 | 1748 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1749 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1750 | DEFAULT_wxUSE_GIF=yes |
1751 | DEFAULT_wxUSE_PCX=yes | |
1752 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1753 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1754 | fi |
1755 | ||
698dcdb6 VZ |
1756 | |
1757 | ||
10f2d63a VZ |
1758 | for toolkit in `echo $ALL_TOOLKITS`; do |
1759 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1760 | if test "x$LINE" != x ; then | |
1761 | has_toolkit_in_cache=1 | |
1762 | eval "DEFAULT_$LINE" | |
1763 | eval "CACHE_$toolkit=1" | |
1764 | fi | |
1765 | done | |
1766 | ||
698dcdb6 VZ |
1767 | |
1768 | ||
1769 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
a1622950 | 1770 | echo "configure:1771: checking for --enable-gui" >&5 |
10f2d63a VZ |
1771 | no_cache=0 |
1772 | # Check whether --enable-gui or --disable-gui was given. | |
1773 | if test "${enable_gui+set}" = set; then | |
1774 | enableval="$enable_gui" | |
698dcdb6 | 1775 | |
10f2d63a VZ |
1776 | if test "$enableval" = yes; then |
1777 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1778 | else | |
1779 | ac_cv_use_gui='wxUSE_GUI=no' | |
1780 | fi | |
698dcdb6 | 1781 | |
10f2d63a | 1782 | else |
698dcdb6 | 1783 | |
10f2d63a VZ |
1784 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1785 | if test "x$LINE" != x ; then | |
1786 | eval "DEFAULT_$LINE" | |
1787 | else | |
1788 | no_cache=1 | |
1789 | fi | |
1790 | ||
1791 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1792 | |
1793 | fi | |
10f2d63a VZ |
1794 | |
1795 | ||
1796 | eval "$ac_cv_use_gui" | |
1797 | if test "$no_cache" != 1; then | |
1798 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1799 | fi | |
1800 | ||
1801 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1803 | else |
698dcdb6 | 1804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1805 | fi |
698dcdb6 | 1806 | |
10f2d63a | 1807 | |
b12915c1 | 1808 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1809 | |
1e6feb95 VZ |
1810 | |
1811 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
a1622950 | 1812 | echo "configure:1813: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1813 | no_cache=0 |
1814 | # Check whether --enable-universal or --disable-universal was given. | |
1815 | if test "${enable_universal+set}" = set; then | |
1816 | enableval="$enable_universal" | |
1817 | ||
1818 | if test "$enableval" = yes; then | |
1819 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1820 | else | |
1821 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1822 | fi | |
1823 | ||
1824 | else | |
1825 | ||
1826 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1827 | if test "x$LINE" != x ; then | |
1828 | eval "DEFAULT_$LINE" | |
1829 | else | |
1830 | no_cache=1 | |
1831 | fi | |
1832 | ||
1833 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1834 | ||
1835 | fi | |
1836 | ||
1837 | ||
1838 | eval "$ac_cv_use_universal" | |
1839 | if test "$no_cache" != 1; then | |
1840 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1841 | fi | |
1842 | ||
1843 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1844 | echo "$ac_t""yes" 1>&6 | |
1845 | else | |
1846 | echo "$ac_t""no" 1>&6 | |
1847 | fi | |
1848 | ||
10f2d63a VZ |
1849 | # Check whether --with-gtk or --without-gtk was given. |
1850 | if test "${with_gtk+set}" = set; then | |
1851 | withval="$with_gtk" | |
1852 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1853 | fi |
10f2d63a VZ |
1854 | |
1855 | # Check whether --with-motif or --without-motif was given. | |
1856 | if test "${with_motif+set}" = set; then | |
1857 | withval="$with_motif" | |
1858 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1859 | fi |
10f2d63a | 1860 | |
b4085ce6 GD |
1861 | # Check whether --with-mac or --without-mac was given. |
1862 | if test "${with_mac+set}" = set; then | |
1863 | withval="$with_mac" | |
1864 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1865 | fi |
b4085ce6 | 1866 | |
10f2d63a VZ |
1867 | # Check whether --with-wine or --without-wine was given. |
1868 | if test "${with_wine+set}" = set; then | |
1869 | withval="$with_wine" | |
1870 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1871 | fi |
10f2d63a | 1872 | |
77e13408 RL |
1873 | # Check whether --with-msw or --without-msw was given. |
1874 | if test "${with_msw+set}" = set; then | |
1875 | withval="$with_msw" | |
1876 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1877 | fi |
10f2d63a | 1878 | |
e07802fc VZ |
1879 | # Check whether --with-pm or --without-pm was given. |
1880 | if test "${with_pm+set}" = set; then | |
1881 | withval="$with_pm" | |
1882 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1883 | fi |
1884 | ||
1e6feb95 VZ |
1885 | # Check whether --with-mgl or --without-mgl was given. |
1886 | if test "${with_mgl+set}" = set; then | |
1887 | withval="$with_mgl" | |
1888 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1889 | fi | |
1890 | ||
1725144d RR |
1891 | # Check whether --with-microwin or --without-microwin was given. |
1892 | if test "${with_microwin+set}" = set; then | |
1893 | withval="$with_microwin" | |
1894 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1895 | fi | |
1896 | ||
10f2d63a | 1897 | |
8168de4c VZ |
1898 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1899 | if test "${enable_gtk2+set}" = set; then | |
1900 | enableval="$enable_gtk2" | |
1901 | wxUSE_GTK2=1 | |
10f2d63a | 1902 | else |
8168de4c | 1903 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1904 | fi |
1905 | ||
703e0a69 | 1906 | |
1e487827 | 1907 | |
698dcdb6 | 1908 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
a1622950 | 1909 | echo "configure:1910: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1910 | no_cache=0 |
1911 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1912 | if test "${with_libpng+set}" = set; then |
1913 | withval="$with_libpng" | |
698dcdb6 | 1914 | |
10f2d63a | 1915 | if test "$withval" = yes; then |
b12915c1 | 1916 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1917 | elif test "$withval" = no; then |
b12915c1 | 1918 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1919 | elif test "$withval" = sys; then |
1920 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1921 | elif test "$withval" = builtin; then |
1922 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1923 | else |
4f14bcd8 | 1924 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1925 | fi |
698dcdb6 | 1926 | |
10f2d63a | 1927 | else |
698dcdb6 | 1928 | |
b12915c1 | 1929 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1930 | if test "x$LINE" != x ; then |
1931 | eval "DEFAULT_$LINE" | |
1932 | else | |
1933 | no_cache=1 | |
1934 | fi | |
1935 | ||
b12915c1 | 1936 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1937 | |
1938 | fi | |
10f2d63a VZ |
1939 | |
1940 | ||
b12915c1 | 1941 | eval "$ac_cv_use_libpng" |
10f2d63a | 1942 | if test "$no_cache" != 1; then |
b12915c1 | 1943 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1944 | fi |
1945 | ||
b12915c1 | 1946 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1947 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1948 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1949 | echo "$ac_t""no" 1>&6 |
422107f9 | 1950 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1951 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1952 | elif test "$wxUSE_LIBPNG" = builtin; then |
1953 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1954 | else |
4f14bcd8 | 1955 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1956 | fi |
698dcdb6 | 1957 | |
10f2d63a | 1958 | |
698dcdb6 | 1959 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
a1622950 | 1960 | echo "configure:1961: checking for --with-libjpeg" >&5 |
10f2d63a | 1961 | no_cache=0 |
698dcdb6 | 1962 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1963 | if test "${with_libjpeg+set}" = set; then |
1964 | withval="$with_libjpeg" | |
698dcdb6 | 1965 | |
10f2d63a | 1966 | if test "$withval" = yes; then |
b12915c1 | 1967 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1968 | elif test "$withval" = no; then |
b12915c1 | 1969 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1970 | elif test "$withval" = sys; then |
1971 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1972 | elif test "$withval" = builtin; then |
1973 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1974 | else |
4f14bcd8 | 1975 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1976 | fi |
698dcdb6 | 1977 | |
10f2d63a | 1978 | else |
698dcdb6 | 1979 | |
b12915c1 | 1980 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1981 | if test "x$LINE" != x ; then |
1982 | eval "DEFAULT_$LINE" | |
1983 | else | |
1984 | no_cache=1 | |
1985 | fi | |
1986 | ||
b12915c1 | 1987 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1988 | |
1989 | fi | |
10f2d63a VZ |
1990 | |
1991 | ||
b12915c1 | 1992 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1993 | if test "$no_cache" != 1; then |
b12915c1 | 1994 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1995 | fi |
1996 | ||
b12915c1 | 1997 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1998 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1999 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2000 | echo "$ac_t""no" 1>&6 |
422107f9 | 2001 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2002 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2003 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2004 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2005 | else |
4f14bcd8 | 2006 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2007 | fi |
698dcdb6 | 2008 | |
10f2d63a | 2009 | |
698dcdb6 | 2010 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
a1622950 | 2011 | echo "configure:2012: checking for --with-libtiff" >&5 |
10f2d63a | 2012 | no_cache=0 |
698dcdb6 | 2013 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2014 | if test "${with_libtiff+set}" = set; then |
2015 | withval="$with_libtiff" | |
698dcdb6 | 2016 | |
10f2d63a | 2017 | if test "$withval" = yes; then |
b12915c1 | 2018 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2019 | elif test "$withval" = no; then |
b12915c1 | 2020 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2021 | elif test "$withval" = sys; then |
2022 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2023 | elif test "$withval" = builtin; then |
2024 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2025 | else |
4f14bcd8 | 2026 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2027 | fi |
698dcdb6 | 2028 | |
10f2d63a | 2029 | else |
698dcdb6 | 2030 | |
b12915c1 | 2031 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2032 | if test "x$LINE" != x ; then |
2033 | eval "DEFAULT_$LINE" | |
2034 | else | |
2035 | no_cache=1 | |
2036 | fi | |
2037 | ||
b12915c1 | 2038 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2039 | |
2040 | fi | |
10f2d63a VZ |
2041 | |
2042 | ||
b12915c1 | 2043 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2044 | if test "$no_cache" != 1; then |
b12915c1 | 2045 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2046 | fi |
2047 | ||
b12915c1 | 2048 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2049 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2050 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2051 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2052 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2053 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2054 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2055 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2056 | else |
4f14bcd8 | 2057 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2058 | fi |
698dcdb6 | 2059 | |
10f2d63a | 2060 | |
698dcdb6 | 2061 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
a1622950 | 2062 | echo "configure:2063: checking for --with-freetype" >&5 |
3fed1840 | 2063 | no_cache=0 |
698dcdb6 | 2064 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2065 | if test "${with_freetype+set}" = set; then |
2066 | withval="$with_freetype" | |
698dcdb6 | 2067 | |
3fed1840 RR |
2068 | if test "$withval" = yes; then |
2069 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2070 | elif test "$withval" = no; then | |
2071 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2072 | elif test "$withval" = sys; then | |
2073 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2074 | elif test "$withval" = builtin; then |
2075 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2076 | else |
4f14bcd8 | 2077 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2078 | fi |
698dcdb6 | 2079 | |
3fed1840 | 2080 | else |
698dcdb6 | 2081 | |
3fed1840 RR |
2082 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2083 | if test "x$LINE" != x ; then | |
2084 | eval "DEFAULT_$LINE" | |
2085 | else | |
2086 | no_cache=1 | |
2087 | fi | |
2088 | ||
2089 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2090 | |
2091 | fi | |
3fed1840 RR |
2092 | |
2093 | ||
2094 | eval "$ac_cv_use_freetype" | |
2095 | if test "$no_cache" != 1; then | |
2096 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2097 | fi | |
2098 | ||
2099 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2100 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2101 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2102 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2103 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2104 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2105 | elif test "$wxUSE_FREETYPE" = builtin; then |
2106 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2107 | else |
4f14bcd8 | 2108 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2109 | fi |
698dcdb6 | 2110 | |
3fed1840 | 2111 | |
698dcdb6 | 2112 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
a1622950 | 2113 | echo "configure:2114: checking for --with-opengl" >&5 |
10f2d63a | 2114 | no_cache=0 |
698dcdb6 | 2115 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2116 | if test "${with_opengl+set}" = set; then |
2117 | withval="$with_opengl" | |
698dcdb6 | 2118 | |
10f2d63a | 2119 | if test "$withval" = yes; then |
b12915c1 | 2120 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2121 | else |
b12915c1 | 2122 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2123 | fi |
698dcdb6 | 2124 | |
10f2d63a | 2125 | else |
698dcdb6 | 2126 | |
b12915c1 | 2127 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2128 | if test "x$LINE" != x ; then |
2129 | eval "DEFAULT_$LINE" | |
2130 | else | |
2131 | no_cache=1 | |
2132 | fi | |
2133 | ||
b12915c1 | 2134 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2135 | |
2136 | fi | |
10f2d63a VZ |
2137 | |
2138 | ||
b12915c1 | 2139 | eval "$ac_cv_use_opengl" |
10f2d63a | 2140 | if test "$no_cache" != 1; then |
b12915c1 | 2141 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2142 | fi |
2143 | ||
b12915c1 | 2144 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2145 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2146 | else |
698dcdb6 | 2147 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2148 | fi |
698dcdb6 | 2149 | |
10f2d63a | 2150 | |
b12915c1 VZ |
2151 | fi |
2152 | ||
1e487827 | 2153 | |
698dcdb6 | 2154 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
a1622950 | 2155 | echo "configure:2156: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2156 | no_cache=0 |
2157 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2158 | if test "${with_dmalloc+set}" = set; then |
2159 | withval="$with_dmalloc" | |
698dcdb6 | 2160 | |
c7a2bf27 | 2161 | if test "$withval" = yes; then |
b12915c1 | 2162 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2163 | else |
b12915c1 | 2164 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2165 | fi |
698dcdb6 | 2166 | |
c7a2bf27 | 2167 | else |
698dcdb6 | 2168 | |
b12915c1 | 2169 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2170 | if test "x$LINE" != x ; then |
2171 | eval "DEFAULT_$LINE" | |
2172 | else | |
2173 | no_cache=1 | |
2174 | fi | |
2175 | ||
b12915c1 | 2176 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2177 | |
2178 | fi | |
c7a2bf27 RR |
2179 | |
2180 | ||
b12915c1 | 2181 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2182 | if test "$no_cache" != 1; then |
b12915c1 | 2183 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2184 | fi |
2185 | ||
b12915c1 | 2186 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2187 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2188 | else |
698dcdb6 | 2189 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2190 | fi |
698dcdb6 | 2191 | |
c7a2bf27 | 2192 | |
3e44f09d | 2193 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
a1622950 | 2194 | echo "configure:2195: checking for --with-regex" >&5 |
3e44f09d VZ |
2195 | no_cache=0 |
2196 | # Check whether --with-regex or --without-regex was given. | |
2197 | if test "${with_regex+set}" = set; then | |
2198 | withval="$with_regex" | |
2199 | ||
2200 | if test "$withval" = yes; then | |
2201 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2202 | elif test "$withval" = no; then | |
2203 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2204 | elif test "$withval" = sys; then | |
2205 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2206 | elif test "$withval" = builtin; then |
2207 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2208 | else |
4f14bcd8 | 2209 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2210 | fi |
2211 | ||
2212 | else | |
2213 | ||
2214 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2215 | if test "x$LINE" != x ; then | |
2216 | eval "DEFAULT_$LINE" | |
2217 | else | |
2218 | no_cache=1 | |
2219 | fi | |
2220 | ||
2221 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2222 | ||
2223 | fi | |
2224 | ||
2225 | ||
2226 | eval "$ac_cv_use_regex" | |
2227 | if test "$no_cache" != 1; then | |
2228 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2229 | fi | |
2230 | ||
2231 | if test "$wxUSE_REGEX" = yes; then | |
2232 | echo "$ac_t""yes" 1>&6 | |
2233 | elif test "$wxUSE_REGEX" = no; then | |
2234 | echo "$ac_t""no" 1>&6 | |
2235 | elif test "$wxUSE_REGEX" = sys; then | |
2236 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2237 | elif test "$wxUSE_REGEX" = builtin; then |
2238 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2239 | else |
4f14bcd8 | 2240 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2241 | fi |
2242 | ||
2243 | ||
698dcdb6 | 2244 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
a1622950 | 2245 | echo "configure:2246: checking for --with-zlib" >&5 |
10f2d63a | 2246 | no_cache=0 |
698dcdb6 | 2247 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2248 | if test "${with_zlib+set}" = set; then |
2249 | withval="$with_zlib" | |
698dcdb6 | 2250 | |
10f2d63a | 2251 | if test "$withval" = yes; then |
b12915c1 | 2252 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2253 | elif test "$withval" = no; then |
b12915c1 | 2254 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2255 | elif test "$withval" = sys; then |
2256 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2257 | elif test "$withval" = builtin; then |
2258 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2259 | else |
4f14bcd8 | 2260 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2261 | fi |
698dcdb6 | 2262 | |
10f2d63a | 2263 | else |
698dcdb6 | 2264 | |
b12915c1 | 2265 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2266 | if test "x$LINE" != x ; then |
2267 | eval "DEFAULT_$LINE" | |
2268 | else | |
2269 | no_cache=1 | |
2270 | fi | |
2271 | ||
b12915c1 | 2272 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2273 | |
2274 | fi | |
10f2d63a VZ |
2275 | |
2276 | ||
b12915c1 | 2277 | eval "$ac_cv_use_zlib" |
10f2d63a | 2278 | if test "$no_cache" != 1; then |
b12915c1 | 2279 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2280 | fi |
2281 | ||
b12915c1 | 2282 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2283 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2284 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2285 | echo "$ac_t""no" 1>&6 |
422107f9 | 2286 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2287 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2288 | elif test "$wxUSE_ZLIB" = builtin; then |
2289 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2290 | else |
4f14bcd8 | 2291 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2292 | fi |
698dcdb6 | 2293 | |
10f2d63a | 2294 | |
698dcdb6 | 2295 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
a1622950 | 2296 | echo "configure:2297: checking for --with-odbc" >&5 |
10f2d63a | 2297 | no_cache=0 |
698dcdb6 | 2298 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2299 | if test "${with_odbc+set}" = set; then |
2300 | withval="$with_odbc" | |
698dcdb6 | 2301 | |
10f2d63a VZ |
2302 | if test "$withval" = yes; then |
2303 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2304 | else | |
2305 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2306 | fi | |
698dcdb6 | 2307 | |
10f2d63a | 2308 | else |
698dcdb6 | 2309 | |
10f2d63a VZ |
2310 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2311 | if test "x$LINE" != x ; then | |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
2317 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2318 | |
2319 | fi | |
10f2d63a VZ |
2320 | |
2321 | ||
2322 | eval "$ac_cv_use_odbc" | |
2323 | if test "$no_cache" != 1; then | |
2324 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2325 | fi | |
2326 | ||
2327 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2329 | else |
698dcdb6 | 2330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2331 | fi |
698dcdb6 VZ |
2332 | |
2333 | ||
10f2d63a | 2334 | |
698dcdb6 | 2335 | |
698dcdb6 | 2336 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
a1622950 | 2337 | echo "configure:2338: checking for --enable-shared" >&5 |
10f2d63a VZ |
2338 | no_cache=0 |
2339 | # Check whether --enable-shared or --disable-shared was given. | |
2340 | if test "${enable_shared+set}" = set; then | |
2341 | enableval="$enable_shared" | |
698dcdb6 | 2342 | |
10f2d63a VZ |
2343 | if test "$enableval" = yes; then |
2344 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2345 | else | |
2346 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2347 | fi | |
698dcdb6 | 2348 | |
10f2d63a | 2349 | else |
698dcdb6 | 2350 | |
10f2d63a VZ |
2351 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2352 | if test "x$LINE" != x ; then | |
2353 | eval "DEFAULT_$LINE" | |
2354 | else | |
2355 | no_cache=1 | |
2356 | fi | |
2357 | ||
2358 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2359 | |
2360 | fi | |
10f2d63a VZ |
2361 | |
2362 | ||
2363 | eval "$ac_cv_use_shared" | |
2364 | if test "$no_cache" != 1; then | |
2365 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2366 | fi | |
2367 | ||
2368 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2369 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2370 | else |
698dcdb6 | 2371 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2372 | fi |
698dcdb6 | 2373 | |
10f2d63a | 2374 | |
3a922bb4 | 2375 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
a1622950 | 2376 | echo "configure:2377: checking for --enable-soname" >&5 |
00cf1208 | 2377 | no_cache=0 |
3a922bb4 RL |
2378 | # Check whether --enable-soname or --disable-soname was given. |
2379 | if test "${enable_soname+set}" = set; then | |
2380 | enableval="$enable_soname" | |
698dcdb6 | 2381 | |
00cf1208 | 2382 | if test "$enableval" = yes; then |
3a922bb4 | 2383 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2384 | else |
3a922bb4 | 2385 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2386 | fi |
698dcdb6 | 2387 | |
00cf1208 | 2388 | else |
698dcdb6 | 2389 | |
3a922bb4 | 2390 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2391 | if test "x$LINE" != x ; then |
2392 | eval "DEFAULT_$LINE" | |
2393 | else | |
2394 | no_cache=1 | |
2395 | fi | |
2396 | ||
3a922bb4 | 2397 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2398 | |
2399 | fi | |
00cf1208 RR |
2400 | |
2401 | ||
3a922bb4 | 2402 | eval "$ac_cv_use_soname" |
00cf1208 | 2403 | if test "$no_cache" != 1; then |
3a922bb4 | 2404 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2405 | fi |
2406 | ||
3a922bb4 | 2407 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2408 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2409 | else |
698dcdb6 | 2410 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2411 | fi |
698dcdb6 | 2412 | |
00cf1208 | 2413 | |
698dcdb6 | 2414 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
a1622950 | 2415 | echo "configure:2416: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2416 | no_cache=0 |
2417 | # Check whether --enable-optimise or --disable-optimise was given. | |
2418 | if test "${enable_optimise+set}" = set; then | |
2419 | enableval="$enable_optimise" | |
698dcdb6 | 2420 | |
10f2d63a VZ |
2421 | if test "$enableval" = yes; then |
2422 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2423 | else | |
2424 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2425 | fi | |
698dcdb6 | 2426 | |
10f2d63a | 2427 | else |
698dcdb6 | 2428 | |
10f2d63a VZ |
2429 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2430 | if test "x$LINE" != x ; then | |
2431 | eval "DEFAULT_$LINE" | |
2432 | else | |
2433 | no_cache=1 | |
2434 | fi | |
2435 | ||
2436 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2437 | |
2438 | fi | |
10f2d63a VZ |
2439 | |
2440 | ||
2441 | eval "$ac_cv_use_optimise" | |
2442 | if test "$no_cache" != 1; then | |
2443 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2444 | fi | |
2445 | ||
2446 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2447 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2448 | else |
698dcdb6 | 2449 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2450 | fi |
698dcdb6 | 2451 | |
10f2d63a | 2452 | |
698dcdb6 | 2453 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
a1622950 | 2454 | echo "configure:2455: checking for --enable-debug" >&5 |
10f2d63a VZ |
2455 | no_cache=0 |
2456 | # Check whether --enable-debug or --disable-debug was given. | |
2457 | if test "${enable_debug+set}" = set; then | |
2458 | enableval="$enable_debug" | |
698dcdb6 | 2459 | |
10f2d63a VZ |
2460 | if test "$enableval" = yes; then |
2461 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2462 | else | |
2463 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2464 | fi | |
698dcdb6 | 2465 | |
10f2d63a | 2466 | else |
698dcdb6 | 2467 | |
10f2d63a VZ |
2468 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2469 | if test "x$LINE" != x ; then | |
2470 | eval "DEFAULT_$LINE" | |
2471 | else | |
2472 | no_cache=1 | |
2473 | fi | |
2474 | ||
2475 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2476 | |
2477 | fi | |
10f2d63a VZ |
2478 | |
2479 | ||
2480 | eval "$ac_cv_use_debug" | |
2481 | if test "$no_cache" != 1; then | |
2482 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2483 | fi | |
2484 | ||
2485 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2486 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2487 | else |
698dcdb6 | 2488 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2489 | fi |
698dcdb6 | 2490 | |
10f2d63a | 2491 | |
683dccda GD |
2492 | |
2493 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
a1622950 | 2494 | echo "configure:2495: checking for --enable-precomp" >&5 |
683dccda GD |
2495 | no_cache=0 |
2496 | # Check whether --enable-precomp or --disable-precomp was given. | |
2497 | if test "${enable_precomp+set}" = set; then | |
2498 | enableval="$enable_precomp" | |
2499 | ||
2500 | if test "$enableval" = yes; then | |
2501 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2502 | else | |
2503 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2504 | fi | |
2505 | ||
2506 | else | |
2507 | ||
2508 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2516 | ||
2517 | fi | |
2518 | ||
2519 | ||
2520 | eval "$ac_cv_use_precomp" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_PRECOMP" = yes; then | |
2526 | echo "$ac_t""yes" 1>&6 | |
2527 | else | |
2528 | echo "$ac_t""no" 1>&6 | |
2529 | fi | |
2530 | ||
2531 | ||
10f2d63a VZ |
2532 | if test "$wxUSE_DEBUG" = "yes"; then |
2533 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2534 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2535 | elif test "$wxUSE_DEBUG" = "no"; then | |
2536 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2537 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2538 | fi | |
2539 | ||
698dcdb6 VZ |
2540 | |
2541 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
a1622950 | 2542 | echo "configure:2543: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2543 | no_cache=0 |
2544 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2545 | if test "${enable_debug_flag+set}" = set; then | |
2546 | enableval="$enable_debug_flag" | |
698dcdb6 | 2547 | |
10f2d63a VZ |
2548 | if test "$enableval" = yes; then |
2549 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2550 | else | |
2551 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2552 | fi | |
698dcdb6 | 2553 | |
10f2d63a | 2554 | else |
698dcdb6 | 2555 | |
10f2d63a VZ |
2556 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2557 | if test "x$LINE" != x ; then | |
2558 | eval "DEFAULT_$LINE" | |
2559 | else | |
2560 | no_cache=1 | |
2561 | fi | |
2562 | ||
2563 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2564 | |
2565 | fi | |
10f2d63a VZ |
2566 | |
2567 | ||
2568 | eval "$ac_cv_use_debug_flag" | |
2569 | if test "$no_cache" != 1; then | |
2570 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2571 | fi | |
2572 | ||
2573 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2574 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2575 | else |
698dcdb6 | 2576 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2577 | fi |
698dcdb6 | 2578 | |
10f2d63a | 2579 | |
698dcdb6 | 2580 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
a1622950 | 2581 | echo "configure:2582: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2582 | no_cache=0 |
2583 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2584 | if test "${enable_debug_info+set}" = set; then | |
2585 | enableval="$enable_debug_info" | |
698dcdb6 | 2586 | |
10f2d63a VZ |
2587 | if test "$enableval" = yes; then |
2588 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2589 | else | |
2590 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2591 | fi | |
698dcdb6 | 2592 | |
10f2d63a | 2593 | else |
698dcdb6 | 2594 | |
10f2d63a VZ |
2595 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2596 | if test "x$LINE" != x ; then | |
2597 | eval "DEFAULT_$LINE" | |
2598 | else | |
2599 | no_cache=1 | |
2600 | fi | |
2601 | ||
2602 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2603 | |
2604 | fi | |
10f2d63a VZ |
2605 | |
2606 | ||
2607 | eval "$ac_cv_use_debug_info" | |
2608 | if test "$no_cache" != 1; then | |
2609 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2610 | fi | |
2611 | ||
2612 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2613 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2614 | else |
698dcdb6 | 2615 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2616 | fi |
698dcdb6 | 2617 | |
10f2d63a | 2618 | |
698dcdb6 | 2619 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
a1622950 | 2620 | echo "configure:2621: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2621 | no_cache=0 |
2622 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2623 | if test "${enable_debug_gdb+set}" = set; then | |
2624 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2625 | |
10f2d63a VZ |
2626 | if test "$enableval" = yes; then |
2627 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2628 | else | |
2629 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2630 | fi | |
698dcdb6 | 2631 | |
10f2d63a | 2632 | else |
698dcdb6 | 2633 | |
10f2d63a VZ |
2634 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2635 | if test "x$LINE" != x ; then | |
2636 | eval "DEFAULT_$LINE" | |
2637 | else | |
2638 | no_cache=1 | |
2639 | fi | |
2640 | ||
2641 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2642 | |
2643 | fi | |
10f2d63a VZ |
2644 | |
2645 | ||
2646 | eval "$ac_cv_use_debug_gdb" | |
2647 | if test "$no_cache" != 1; then | |
2648 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2649 | fi | |
2650 | ||
2651 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2652 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2653 | else |
698dcdb6 | 2654 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2655 | fi |
698dcdb6 | 2656 | |
10f2d63a | 2657 | |
698dcdb6 | 2658 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
a1622950 | 2659 | echo "configure:2660: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2660 | no_cache=0 |
2661 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2662 | if test "${enable_debug_cntxt+set}" = set; then | |
2663 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2664 | |
10f2d63a VZ |
2665 | if test "$enableval" = yes; then |
2666 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2667 | else | |
2668 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2669 | fi | |
698dcdb6 | 2670 | |
10f2d63a | 2671 | else |
698dcdb6 | 2672 | |
10f2d63a VZ |
2673 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2674 | if test "x$LINE" != x ; then | |
2675 | eval "DEFAULT_$LINE" | |
2676 | else | |
2677 | no_cache=1 | |
2678 | fi | |
2679 | ||
2680 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2681 | |
2682 | fi | |
10f2d63a VZ |
2683 | |
2684 | ||
2685 | eval "$ac_cv_use_debug_cntxt" | |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2691 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2692 | else |
698dcdb6 | 2693 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2694 | fi |
698dcdb6 | 2695 | |
10f2d63a | 2696 | |
698dcdb6 | 2697 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
a1622950 | 2698 | echo "configure:2699: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2699 | no_cache=0 |
2700 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2701 | if test "${enable_mem_tracing+set}" = set; then | |
2702 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2703 | |
10f2d63a VZ |
2704 | if test "$enableval" = yes; then |
2705 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2706 | else | |
2707 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2708 | fi | |
698dcdb6 | 2709 | |
10f2d63a | 2710 | else |
698dcdb6 | 2711 | |
10f2d63a VZ |
2712 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2713 | if test "x$LINE" != x ; then | |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
2719 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2720 | |
2721 | fi | |
10f2d63a VZ |
2722 | |
2723 | ||
2724 | eval "$ac_cv_use_mem_tracing" | |
2725 | if test "$no_cache" != 1; then | |
2726 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2727 | fi | |
2728 | ||
2729 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2730 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2731 | else |
698dcdb6 | 2732 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2733 | fi |
698dcdb6 | 2734 | |
10f2d63a | 2735 | |
698dcdb6 | 2736 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
a1622950 | 2737 | echo "configure:2738: checking for --enable-profile" >&5 |
10f2d63a VZ |
2738 | no_cache=0 |
2739 | # Check whether --enable-profile or --disable-profile was given. | |
2740 | if test "${enable_profile+set}" = set; then | |
2741 | enableval="$enable_profile" | |
698dcdb6 | 2742 | |
10f2d63a VZ |
2743 | if test "$enableval" = yes; then |
2744 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2745 | else | |
2746 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2747 | fi | |
698dcdb6 | 2748 | |
10f2d63a | 2749 | else |
698dcdb6 | 2750 | |
10f2d63a VZ |
2751 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2752 | if test "x$LINE" != x ; then | |
2753 | eval "DEFAULT_$LINE" | |
2754 | else | |
2755 | no_cache=1 | |
2756 | fi | |
2757 | ||
2758 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2759 | |
2760 | fi | |
10f2d63a VZ |
2761 | |
2762 | ||
2763 | eval "$ac_cv_use_profile" | |
2764 | if test "$no_cache" != 1; then | |
2765 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2766 | fi | |
2767 | ||
2768 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2769 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2770 | else |
698dcdb6 | 2771 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2772 | fi |
698dcdb6 | 2773 | |
10f2d63a | 2774 | |
698dcdb6 | 2775 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
a1622950 | 2776 | echo "configure:2777: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2777 | no_cache=0 |
2778 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2779 | if test "${enable_no_rtti+set}" = set; then | |
2780 | enableval="$enable_no_rtti" | |
698dcdb6 | 2781 | |
10f2d63a VZ |
2782 | if test "$enableval" = yes; then |
2783 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2784 | else | |
2785 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2786 | fi | |
698dcdb6 | 2787 | |
10f2d63a | 2788 | else |
698dcdb6 | 2789 | |
10f2d63a VZ |
2790 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2791 | if test "x$LINE" != x ; then | |
2792 | eval "DEFAULT_$LINE" | |
2793 | else | |
2794 | no_cache=1 | |
2795 | fi | |
2796 | ||
2797 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2798 | |
2799 | fi | |
10f2d63a VZ |
2800 | |
2801 | ||
2802 | eval "$ac_cv_use_no_rtti" | |
2803 | if test "$no_cache" != 1; then | |
2804 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2805 | fi | |
2806 | ||
2807 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2809 | else |
698dcdb6 | 2810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2811 | fi |
698dcdb6 | 2812 | |
10f2d63a | 2813 | |
698dcdb6 | 2814 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
a1622950 | 2815 | echo "configure:2816: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2816 | no_cache=0 |
2817 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2818 | if test "${enable_no_exceptions+set}" = set; then | |
2819 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2820 | |
10f2d63a VZ |
2821 | if test "$enableval" = yes; then |
2822 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2823 | else | |
2824 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2825 | fi | |
698dcdb6 | 2826 | |
10f2d63a | 2827 | else |
698dcdb6 | 2828 | |
10f2d63a VZ |
2829 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2830 | if test "x$LINE" != x ; then | |
2831 | eval "DEFAULT_$LINE" | |
2832 | else | |
2833 | no_cache=1 | |
2834 | fi | |
2835 | ||
2836 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2837 | |
2838 | fi | |
10f2d63a VZ |
2839 | |
2840 | ||
2841 | eval "$ac_cv_use_no_exceptions" | |
2842 | if test "$no_cache" != 1; then | |
2843 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2844 | fi | |
2845 | ||
2846 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2847 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2848 | else |
698dcdb6 | 2849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2850 | fi |
698dcdb6 | 2851 | |
10f2d63a | 2852 | |
698dcdb6 | 2853 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
a1622950 | 2854 | echo "configure:2855: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2855 | no_cache=0 |
2856 | # Check whether --enable-permissive or --disable-permissive was given. | |
2857 | if test "${enable_permissive+set}" = set; then | |
2858 | enableval="$enable_permissive" | |
698dcdb6 | 2859 | |
10f2d63a VZ |
2860 | if test "$enableval" = yes; then |
2861 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2862 | else | |
2863 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2864 | fi | |
698dcdb6 | 2865 | |
10f2d63a | 2866 | else |
698dcdb6 | 2867 | |
10f2d63a VZ |
2868 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2869 | if test "x$LINE" != x ; then | |
2870 | eval "DEFAULT_$LINE" | |
2871 | else | |
2872 | no_cache=1 | |
2873 | fi | |
2874 | ||
2875 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2876 | |
2877 | fi | |
10f2d63a VZ |
2878 | |
2879 | ||
2880 | eval "$ac_cv_use_permissive" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2886 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2887 | else |
698dcdb6 | 2888 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2889 | fi |
698dcdb6 | 2890 | |
10f2d63a | 2891 | |
698dcdb6 | 2892 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
a1622950 | 2893 | echo "configure:2894: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2894 | no_cache=0 |
2895 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2896 | if test "${enable_no_deps+set}" = set; then | |
2897 | enableval="$enable_no_deps" | |
698dcdb6 | 2898 | |
10f2d63a VZ |
2899 | if test "$enableval" = yes; then |
2900 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2901 | else | |
2902 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2903 | fi | |
698dcdb6 | 2904 | |
10f2d63a | 2905 | else |
698dcdb6 | 2906 | |
10f2d63a VZ |
2907 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2908 | if test "x$LINE" != x ; then | |
2909 | eval "DEFAULT_$LINE" | |
2910 | else | |
2911 | no_cache=1 | |
2912 | fi | |
2913 | ||
2914 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2915 | |
2916 | fi | |
10f2d63a VZ |
2917 | |
2918 | ||
2919 | eval "$ac_cv_use_no_deps" | |
2920 | if test "$no_cache" != 1; then | |
2921 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2922 | fi | |
2923 | ||
2924 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2925 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2926 | else |
698dcdb6 | 2927 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2928 | fi |
698dcdb6 VZ |
2929 | |
2930 | ||
10f2d63a | 2931 | |
54276ccf | 2932 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
a1622950 | 2933 | echo "configure:2934: checking for --enable-compat20" >&5 |
54276ccf VZ |
2934 | no_cache=0 |
2935 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2936 | if test "${enable_compat20+set}" = set; then | |
2937 | enableval="$enable_compat20" | |
2938 | ||
2939 | if test "$enableval" = yes; then | |
2940 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2941 | else | |
2942 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2943 | fi | |
2944 | ||
2945 | else | |
2946 | ||
2947 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2948 | if test "x$LINE" != x ; then | |
2949 | eval "DEFAULT_$LINE" | |
2950 | else | |
2951 | no_cache=1 | |
2952 | fi | |
2953 | ||
2954 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2955 | ||
2956 | fi | |
2957 | ||
2958 | ||
2959 | eval "$ac_cv_use_compat20" | |
2960 | if test "$no_cache" != 1; then | |
2961 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2962 | fi | |
2963 | ||
2964 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2965 | echo "$ac_t""yes" 1>&6 | |
2966 | else | |
2967 | echo "$ac_t""no" 1>&6 | |
2968 | fi | |
2969 | ||
2970 | ||
2971 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
a1622950 | 2972 | echo "configure:2973: checking for --enable-compat22" >&5 |
54276ccf VZ |
2973 | no_cache=0 |
2974 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2975 | if test "${enable_compat22+set}" = set; then | |
2976 | enableval="$enable_compat22" | |
2977 | ||
2978 | if test "$enableval" = yes; then | |
2979 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2980 | else | |
2981 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2982 | fi | |
2983 | ||
2984 | else | |
2985 | ||
2986 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | ||
2998 | eval "$ac_cv_use_compat22" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3004 | echo "$ac_t""yes" 1>&6 | |
3005 | else | |
3006 | echo "$ac_t""no" 1>&6 | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | ||
698dcdb6 VZ |
3011 | |
3012 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
a1622950 | 3013 | echo "configure:3014: checking for --enable-intl" >&5 |
10f2d63a VZ |
3014 | no_cache=0 |
3015 | # Check whether --enable-intl or --disable-intl was given. | |
3016 | if test "${enable_intl+set}" = set; then | |
3017 | enableval="$enable_intl" | |
698dcdb6 | 3018 | |
10f2d63a VZ |
3019 | if test "$enableval" = yes; then |
3020 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3021 | else | |
3022 | ac_cv_use_intl='wxUSE_INTL=no' | |
3023 | fi | |
698dcdb6 | 3024 | |
10f2d63a | 3025 | else |
698dcdb6 | 3026 | |
10f2d63a VZ |
3027 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3035 | |
3036 | fi | |
10f2d63a VZ |
3037 | |
3038 | ||
3039 | eval "$ac_cv_use_intl" | |
3040 | if test "$no_cache" != 1; then | |
3041 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3042 | fi | |
3043 | ||
3044 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3045 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3046 | else |
698dcdb6 | 3047 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3048 | fi |
698dcdb6 | 3049 | |
10f2d63a | 3050 | |
698dcdb6 | 3051 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
a1622950 | 3052 | echo "configure:3053: checking for --enable-config" >&5 |
10f2d63a VZ |
3053 | no_cache=0 |
3054 | # Check whether --enable-config or --disable-config was given. | |
3055 | if test "${enable_config+set}" = set; then | |
3056 | enableval="$enable_config" | |
698dcdb6 | 3057 | |
10f2d63a VZ |
3058 | if test "$enableval" = yes; then |
3059 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3060 | else | |
3061 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3062 | fi | |
698dcdb6 | 3063 | |
10f2d63a | 3064 | else |
698dcdb6 | 3065 | |
10f2d63a VZ |
3066 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3074 | |
3075 | fi | |
10f2d63a VZ |
3076 | |
3077 | ||
3078 | eval "$ac_cv_use_config" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3084 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3085 | else |
698dcdb6 | 3086 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3087 | fi |
698dcdb6 VZ |
3088 | |
3089 | ||
b12915c1 | 3090 | |
a1622950 VZ |
3091 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
3092 | echo "configure:3093: checking for --enable-protocols" >&5 | |
3093 | no_cache=0 | |
3094 | # Check whether --enable-protocols or --disable-protocols was given. | |
3095 | if test "${enable_protocols+set}" = set; then | |
3096 | enableval="$enable_protocols" | |
3097 | ||
3098 | if test "$enableval" = yes; then | |
3099 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3100 | else | |
3101 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3102 | fi | |
3103 | ||
3104 | else | |
3105 | ||
3106 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3107 | if test "x$LINE" != x ; then | |
3108 | eval "DEFAULT_$LINE" | |
3109 | else | |
3110 | no_cache=1 | |
3111 | fi | |
3112 | ||
3113 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3114 | ||
3115 | fi | |
3116 | ||
3117 | ||
3118 | eval "$ac_cv_use_protocols" | |
3119 | if test "$no_cache" != 1; then | |
3120 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3121 | fi | |
3122 | ||
3123 | if test "$wxUSE_PROTOCOL" = yes; then | |
3124 | echo "$ac_t""yes" 1>&6 | |
3125 | else | |
3126 | echo "$ac_t""no" 1>&6 | |
3127 | fi | |
3128 | ||
3129 | ||
3130 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
3131 | echo "configure:3132: checking for --enable-ftp" >&5 | |
3132 | no_cache=0 | |
3133 | # Check whether --enable-ftp or --disable-ftp was given. | |
3134 | if test "${enable_ftp+set}" = set; then | |
3135 | enableval="$enable_ftp" | |
3136 | ||
3137 | if test "$enableval" = yes; then | |
3138 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3139 | else | |
3140 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3141 | fi | |
3142 | ||
3143 | else | |
3144 | ||
3145 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3146 | if test "x$LINE" != x ; then | |
3147 | eval "DEFAULT_$LINE" | |
3148 | else | |
3149 | no_cache=1 | |
3150 | fi | |
3151 | ||
3152 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3153 | ||
3154 | fi | |
3155 | ||
3156 | ||
3157 | eval "$ac_cv_use_ftp" | |
3158 | if test "$no_cache" != 1; then | |
3159 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3160 | fi | |
3161 | ||
3162 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3163 | echo "$ac_t""yes" 1>&6 | |
3164 | else | |
3165 | echo "$ac_t""no" 1>&6 | |
3166 | fi | |
3167 | ||
3168 | ||
3169 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
3170 | echo "configure:3171: checking for --enable-http" >&5 | |
3171 | no_cache=0 | |
3172 | # Check whether --enable-http or --disable-http was given. | |
3173 | if test "${enable_http+set}" = set; then | |
3174 | enableval="$enable_http" | |
3175 | ||
3176 | if test "$enableval" = yes; then | |
3177 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3178 | else | |
3179 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3180 | fi | |
3181 | ||
3182 | else | |
3183 | ||
3184 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3185 | if test "x$LINE" != x ; then | |
3186 | eval "DEFAULT_$LINE" | |
3187 | else | |
3188 | no_cache=1 | |
3189 | fi | |
3190 | ||
3191 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3192 | ||
3193 | fi | |
3194 | ||
3195 | ||
3196 | eval "$ac_cv_use_http" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3202 | echo "$ac_t""yes" 1>&6 | |
3203 | else | |
3204 | echo "$ac_t""no" 1>&6 | |
3205 | fi | |
3206 | ||
3207 | ||
3208 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
3209 | echo "configure:3210: checking for --enable-fileproto" >&5 | |
3210 | no_cache=0 | |
3211 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3212 | if test "${enable_fileproto+set}" = set; then | |
3213 | enableval="$enable_fileproto" | |
3214 | ||
3215 | if test "$enableval" = yes; then | |
3216 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3217 | else | |
3218 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3219 | fi | |
3220 | ||
3221 | else | |
3222 | ||
3223 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3224 | if test "x$LINE" != x ; then | |
3225 | eval "DEFAULT_$LINE" | |
3226 | else | |
3227 | no_cache=1 | |
3228 | fi | |
3229 | ||
3230 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3231 | ||
3232 | fi | |
3233 | ||
3234 | ||
3235 | eval "$ac_cv_use_fileproto" | |
3236 | if test "$no_cache" != 1; then | |
3237 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3238 | fi | |
3239 | ||
3240 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3241 | echo "$ac_t""yes" 1>&6 | |
3242 | else | |
3243 | echo "$ac_t""no" 1>&6 | |
3244 | fi | |
3245 | ||
3246 | ||
698dcdb6 | 3247 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
a1622950 | 3248 | echo "configure:3249: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3249 | no_cache=0 |
3250 | # Check whether --enable-sockets or --disable-sockets was given. | |
3251 | if test "${enable_sockets+set}" = set; then | |
3252 | enableval="$enable_sockets" | |
698dcdb6 | 3253 | |
10f2d63a VZ |
3254 | if test "$enableval" = yes; then |
3255 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3256 | else | |
3257 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3258 | fi | |
698dcdb6 | 3259 | |
10f2d63a | 3260 | else |
698dcdb6 | 3261 | |
10f2d63a VZ |
3262 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3263 | if test "x$LINE" != x ; then | |
3264 | eval "DEFAULT_$LINE" | |
3265 | else | |
3266 | no_cache=1 | |
3267 | fi | |
3268 | ||
3269 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3270 | |
3271 | fi | |
10f2d63a VZ |
3272 | |
3273 | ||
3274 | eval "$ac_cv_use_sockets" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3280 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3281 | else |
698dcdb6 | 3282 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3283 | fi |
698dcdb6 | 3284 | |
b12915c1 | 3285 | |
698dcdb6 VZ |
3286 | |
3287 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
a1622950 | 3288 | echo "configure:3289: checking for --enable-ipc" >&5 |
10f2d63a | 3289 | no_cache=0 |
eb4efbdc VZ |
3290 | # Check whether --enable-ipc or --disable-ipc was given. |
3291 | if test "${enable_ipc+set}" = set; then | |
3292 | enableval="$enable_ipc" | |
698dcdb6 | 3293 | |
10f2d63a | 3294 | if test "$enableval" = yes; then |
eb4efbdc | 3295 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3296 | else |
eb4efbdc | 3297 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3298 | fi |
698dcdb6 | 3299 | |
10f2d63a | 3300 | else |
698dcdb6 | 3301 | |
eb4efbdc | 3302 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3303 | if test "x$LINE" != x ; then |
3304 | eval "DEFAULT_$LINE" | |
3305 | else | |
3306 | no_cache=1 | |
3307 | fi | |
3308 | ||
eb4efbdc | 3309 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3310 | |
3311 | fi | |
10f2d63a VZ |
3312 | |
3313 | ||
eb4efbdc | 3314 | eval "$ac_cv_use_ipc" |
10f2d63a | 3315 | if test "$no_cache" != 1; then |
eb4efbdc | 3316 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3317 | fi |
3318 | ||
eb4efbdc | 3319 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3320 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3321 | else |
698dcdb6 | 3322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3323 | fi |
698dcdb6 VZ |
3324 | |
3325 | ||
eb4efbdc | 3326 | |
1e6feb95 | 3327 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
a1622950 | 3328 | echo "configure:3329: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3329 | no_cache=0 |
3330 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3331 | if test "${enable_cmdline+set}" = set; then | |
3332 | enableval="$enable_cmdline" | |
3333 | ||
3334 | if test "$enableval" = yes; then | |
3335 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3336 | else | |
3337 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3338 | fi | |
3339 | ||
3340 | else | |
3341 | ||
3342 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3343 | if test "x$LINE" != x ; then | |
3344 | eval "DEFAULT_$LINE" | |
3345 | else | |
3346 | no_cache=1 | |
3347 | fi | |
3348 | ||
3349 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3350 | ||
3351 | fi | |
3352 | ||
3353 | ||
3354 | eval "$ac_cv_use_cmdline" | |
3355 | if test "$no_cache" != 1; then | |
3356 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3357 | fi | |
3358 | ||
3359 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3360 | echo "$ac_t""yes" 1>&6 | |
3361 | else | |
3362 | echo "$ac_t""no" 1>&6 | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
a1622950 | 3367 | echo "configure:3368: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3368 | no_cache=0 |
3369 | # Check whether --enable-datetime or --disable-datetime was given. | |
3370 | if test "${enable_datetime+set}" = set; then | |
3371 | enableval="$enable_datetime" | |
3372 | ||
3373 | if test "$enableval" = yes; then | |
3374 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3375 | else | |
3376 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3377 | fi | |
3378 | ||
3379 | else | |
3380 | ||
3381 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3382 | if test "x$LINE" != x ; then | |
3383 | eval "DEFAULT_$LINE" | |
3384 | else | |
3385 | no_cache=1 | |
3386 | fi | |
3387 | ||
3388 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3389 | ||
3390 | fi | |
3391 | ||
3392 | ||
3393 | eval "$ac_cv_use_datetime" | |
3394 | if test "$no_cache" != 1; then | |
3395 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3396 | fi | |
3397 | ||
3398 | if test "$wxUSE_DATETIME" = yes; then | |
3399 | echo "$ac_t""yes" 1>&6 | |
3400 | else | |
3401 | echo "$ac_t""no" 1>&6 | |
3402 | fi | |
3403 | ||
3404 | ||
3405 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
a1622950 | 3406 | echo "configure:3407: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3407 | no_cache=0 |
3408 | # Check whether --enable-timedate or --disable-timedate was given. | |
3409 | if test "${enable_timedate+set}" = set; then | |
3410 | enableval="$enable_timedate" | |
3411 | ||
3412 | if test "$enableval" = yes; then | |
3413 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3414 | else | |
3415 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3416 | fi | |
3417 | ||
3418 | else | |
3419 | ||
3420 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3421 | if test "x$LINE" != x ; then | |
3422 | eval "DEFAULT_$LINE" | |
3423 | else | |
3424 | no_cache=1 | |
3425 | fi | |
3426 | ||
3427 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3428 | ||
3429 | fi | |
3430 | ||
3431 | ||
3432 | eval "$ac_cv_use_timedate" | |
3433 | if test "$no_cache" != 1; then | |
3434 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3435 | fi | |
3436 | ||
3437 | if test "$wxUSE_TIMEDATE" = yes; then | |
3438 | echo "$ac_t""yes" 1>&6 | |
3439 | else | |
3440 | echo "$ac_t""no" 1>&6 | |
3441 | fi | |
3442 | ||
3443 | ||
3444 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
a1622950 | 3445 | echo "configure:3446: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3446 | no_cache=0 |
3447 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3448 | if test "${enable_stopwatch+set}" = set; then | |
3449 | enableval="$enable_stopwatch" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3453 | else | |
3454 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3467 | ||
3468 | fi | |
3469 | ||
3470 | ||
3471 | eval "$ac_cv_use_stopwatch" | |
3472 | if test "$no_cache" != 1; then | |
3473 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3474 | fi | |
3475 | ||
3476 | if test "$wxUSE_STOPWATCH" = yes; then | |
3477 | echo "$ac_t""yes" 1>&6 | |
3478 | else | |
3479 | echo "$ac_t""no" 1>&6 | |
3480 | fi | |
3481 | ||
3482 | ||
698dcdb6 | 3483 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
a1622950 | 3484 | echo "configure:3485: checking for --enable-dialupman" >&5 |
10f2d63a | 3485 | no_cache=0 |
eb4efbdc VZ |
3486 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3487 | if test "${enable_dialupman+set}" = set; then | |
3488 | enableval="$enable_dialupman" | |
698dcdb6 | 3489 | |
10f2d63a | 3490 | if test "$enableval" = yes; then |
eb4efbdc | 3491 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3492 | else |
eb4efbdc | 3493 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3494 | fi |
698dcdb6 | 3495 | |
10f2d63a | 3496 | else |
698dcdb6 | 3497 | |
eb4efbdc | 3498 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3499 | if test "x$LINE" != x ; then |
3500 | eval "DEFAULT_$LINE" | |
3501 | else | |
3502 | no_cache=1 | |
3503 | fi | |
3504 | ||
eb4efbdc | 3505 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3506 | |
3507 | fi | |
10f2d63a VZ |
3508 | |
3509 | ||
eb4efbdc | 3510 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3511 | if test "$no_cache" != 1; then |
eb4efbdc | 3512 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3513 | fi |
3514 | ||
eb4efbdc | 3515 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3516 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3517 | else |
698dcdb6 | 3518 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3519 | fi |
698dcdb6 | 3520 | |
10f2d63a | 3521 | |
698dcdb6 | 3522 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
a1622950 | 3523 | echo "configure:3524: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3524 | no_cache=0 |
3525 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3526 | if test "${enable_apple_ieee+set}" = set; then | |
3527 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3528 | |
10f2d63a VZ |
3529 | if test "$enableval" = yes; then |
3530 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3531 | else | |
3532 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3533 | fi | |
698dcdb6 | 3534 | |
10f2d63a | 3535 | else |
698dcdb6 | 3536 | |
10f2d63a VZ |
3537 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3538 | if test "x$LINE" != x ; then | |
3539 | eval "DEFAULT_$LINE" | |
3540 | else | |
3541 | no_cache=1 | |
3542 | fi | |
3543 | ||
3544 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3545 | |
3546 | fi | |
10f2d63a VZ |
3547 | |
3548 | ||
3549 | eval "$ac_cv_use_apple_ieee" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3556 | else |
698dcdb6 | 3557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3558 | fi |
698dcdb6 | 3559 | |
10f2d63a | 3560 | |
1e6feb95 | 3561 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
a1622950 | 3562 | echo "configure:3563: checking for --enable-timer" >&5 |
10f2d63a | 3563 | no_cache=0 |
1e6feb95 VZ |
3564 | # Check whether --enable-timer or --disable-timer was given. |
3565 | if test "${enable_timer+set}" = set; then | |
3566 | enableval="$enable_timer" | |
698dcdb6 | 3567 | |
10f2d63a | 3568 | if test "$enableval" = yes; then |
1e6feb95 | 3569 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3570 | else |
1e6feb95 | 3571 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3572 | fi |
698dcdb6 | 3573 | |
10f2d63a | 3574 | else |
698dcdb6 | 3575 | |
1e6feb95 | 3576 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3577 | if test "x$LINE" != x ; then |
3578 | eval "DEFAULT_$LINE" | |
3579 | else | |
3580 | no_cache=1 | |
3581 | fi | |
3582 | ||
1e6feb95 | 3583 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3584 | |
3585 | fi | |
10f2d63a VZ |
3586 | |
3587 | ||
1e6feb95 | 3588 | eval "$ac_cv_use_timer" |
10f2d63a | 3589 | if test "$no_cache" != 1; then |
1e6feb95 | 3590 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3591 | fi |
3592 | ||
1e6feb95 | 3593 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3594 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3595 | else |
698dcdb6 | 3596 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3597 | fi |
698dcdb6 | 3598 | |
10f2d63a | 3599 | |
698dcdb6 | 3600 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
a1622950 | 3601 | echo "configure:3602: checking for --enable-wave" >&5 |
10f2d63a VZ |
3602 | no_cache=0 |
3603 | # Check whether --enable-wave or --disable-wave was given. | |
3604 | if test "${enable_wave+set}" = set; then | |
3605 | enableval="$enable_wave" | |
698dcdb6 | 3606 | |
10f2d63a VZ |
3607 | if test "$enableval" = yes; then |
3608 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3609 | else | |
3610 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3611 | fi | |
698dcdb6 | 3612 | |
10f2d63a | 3613 | else |
698dcdb6 | 3614 | |
10f2d63a VZ |
3615 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3616 | if test "x$LINE" != x ; then | |
3617 | eval "DEFAULT_$LINE" | |
3618 | else | |
3619 | no_cache=1 | |
3620 | fi | |
3621 | ||
3622 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3623 | |
3624 | fi | |
10f2d63a VZ |
3625 | |
3626 | ||
3627 | eval "$ac_cv_use_wave" | |
3628 | if test "$no_cache" != 1; then | |
3629 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3630 | fi | |
3631 | ||
3632 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3633 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3634 | else |
698dcdb6 | 3635 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3636 | fi |
698dcdb6 | 3637 | |
10f2d63a | 3638 | |
698dcdb6 | 3639 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
a1622950 | 3640 | echo "configure:3641: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3641 | no_cache=0 |
3642 | # Check whether --enable-fraction or --disable-fraction was given. | |
3643 | if test "${enable_fraction+set}" = set; then | |
3644 | enableval="$enable_fraction" | |
698dcdb6 | 3645 | |
10f2d63a VZ |
3646 | if test "$enableval" = yes; then |
3647 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3648 | else | |
3649 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3650 | fi | |
698dcdb6 | 3651 | |
10f2d63a | 3652 | else |
698dcdb6 | 3653 | |
10f2d63a VZ |
3654 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3655 | if test "x$LINE" != x ; then | |
3656 | eval "DEFAULT_$LINE" | |
3657 | else | |
3658 | no_cache=1 | |
3659 | fi | |
3660 | ||
3661 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3662 | |
3663 | fi | |
10f2d63a VZ |
3664 | |
3665 | ||
3666 | eval "$ac_cv_use_fraction" | |
3667 | if test "$no_cache" != 1; then | |
3668 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3672 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3673 | else |
698dcdb6 | 3674 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3675 | fi |
698dcdb6 | 3676 | |
10f2d63a | 3677 | |
698dcdb6 | 3678 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
a1622950 | 3679 | echo "configure:3680: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3680 | no_cache=0 |
3681 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3682 | if test "${enable_dynlib+set}" = set; then | |
3683 | enableval="$enable_dynlib" | |
698dcdb6 | 3684 | |
10f2d63a VZ |
3685 | if test "$enableval" = yes; then |
3686 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3687 | else | |
3688 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3689 | fi | |
698dcdb6 | 3690 | |
10f2d63a | 3691 | else |
698dcdb6 | 3692 | |
10f2d63a VZ |
3693 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3694 | if test "x$LINE" != x ; then | |
3695 | eval "DEFAULT_$LINE" | |
3696 | else | |
3697 | no_cache=1 | |
3698 | fi | |
3699 | ||
3700 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3701 | |
3702 | fi | |
10f2d63a VZ |
3703 | |
3704 | ||
3705 | eval "$ac_cv_use_dynlib" | |
3706 | if test "$no_cache" != 1; then | |
3707 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3708 | fi | |
3709 | ||
3710 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3711 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3712 | else |
698dcdb6 | 3713 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3714 | fi |
698dcdb6 | 3715 | |
10f2d63a | 3716 | |
0b9ab0bd | 3717 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
a1622950 | 3718 | echo "configure:3719: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3719 | no_cache=0 |
3720 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3721 | if test "${enable_dynamicloader+set}" = set; then | |
3722 | enableval="$enable_dynamicloader" | |
3723 | ||
3724 | if test "$enableval" = yes; then | |
3725 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3726 | else | |
3727 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3728 | fi | |
3729 | ||
3730 | else | |
3731 | ||
3732 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3733 | if test "x$LINE" != x ; then | |
3734 | eval "DEFAULT_$LINE" | |
3735 | else | |
3736 | no_cache=1 | |
3737 | fi | |
3738 | ||
3739 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3740 | ||
3741 | fi | |
3742 | ||
3743 | ||
3744 | eval "$ac_cv_use_dynamicloader" | |
3745 | if test "$no_cache" != 1; then | |
3746 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3747 | fi | |
3748 | ||
3749 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3750 | echo "$ac_t""yes" 1>&6 | |
3751 | else | |
3752 | echo "$ac_t""no" 1>&6 | |
3753 | fi | |
3754 | ||
3755 | ||
698dcdb6 | 3756 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
a1622950 | 3757 | echo "configure:3758: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3758 | no_cache=0 |
3759 | # Check whether --enable-longlong or --disable-longlong was given. | |
3760 | if test "${enable_longlong+set}" = set; then | |
3761 | enableval="$enable_longlong" | |
698dcdb6 | 3762 | |
10f2d63a VZ |
3763 | if test "$enableval" = yes; then |
3764 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3765 | else | |
3766 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3767 | fi | |
698dcdb6 | 3768 | |
10f2d63a | 3769 | else |
698dcdb6 | 3770 | |
10f2d63a VZ |
3771 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3772 | if test "x$LINE" != x ; then | |
3773 | eval "DEFAULT_$LINE" | |
3774 | else | |
3775 | no_cache=1 | |
3776 | fi | |
3777 | ||
3778 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3779 | |
3780 | fi | |
10f2d63a VZ |
3781 | |
3782 | ||
3783 | eval "$ac_cv_use_longlong" | |
3784 | if test "$no_cache" != 1; then | |
3785 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3786 | fi | |
3787 | ||
3788 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3789 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3790 | else |
698dcdb6 | 3791 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3792 | fi |
698dcdb6 | 3793 | |
10f2d63a | 3794 | |
698dcdb6 | 3795 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
a1622950 | 3796 | echo "configure:3797: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3797 | no_cache=0 |
3798 | # Check whether --enable-geometry or --disable-geometry was given. | |
3799 | if test "${enable_geometry+set}" = set; then | |
3800 | enableval="$enable_geometry" | |
698dcdb6 | 3801 | |
e8f65ba6 RR |
3802 | if test "$enableval" = yes; then |
3803 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3804 | else | |
3805 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3806 | fi | |
698dcdb6 | 3807 | |
e8f65ba6 | 3808 | else |
698dcdb6 | 3809 | |
e8f65ba6 RR |
3810 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3811 | if test "x$LINE" != x ; then | |
3812 | eval "DEFAULT_$LINE" | |
3813 | else | |
3814 | no_cache=1 | |
3815 | fi | |
3816 | ||
3817 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3818 | |
3819 | fi | |
e8f65ba6 RR |
3820 | |
3821 | ||
3822 | eval "$ac_cv_use_geometry" | |
3823 | if test "$no_cache" != 1; then | |
3824 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3825 | fi | |
3826 | ||
3827 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3828 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3829 | else |
698dcdb6 | 3830 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3831 | fi |
698dcdb6 | 3832 | |
e8f65ba6 | 3833 | |
698dcdb6 | 3834 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
a1622950 | 3835 | echo "configure:3836: checking for --enable-log" >&5 |
10f2d63a VZ |
3836 | no_cache=0 |
3837 | # Check whether --enable-log or --disable-log was given. | |
3838 | if test "${enable_log+set}" = set; then | |
3839 | enableval="$enable_log" | |
698dcdb6 | 3840 | |
10f2d63a VZ |
3841 | if test "$enableval" = yes; then |
3842 | ac_cv_use_log='wxUSE_LOG=yes' | |
3843 | else | |
3844 | ac_cv_use_log='wxUSE_LOG=no' | |
3845 | fi | |
698dcdb6 | 3846 | |
10f2d63a | 3847 | else |
698dcdb6 | 3848 | |
10f2d63a VZ |
3849 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3850 | if test "x$LINE" != x ; then | |
3851 | eval "DEFAULT_$LINE" | |
3852 | else | |
3853 | no_cache=1 | |
3854 | fi | |
3855 | ||
3856 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3857 | |
3858 | fi | |
10f2d63a VZ |
3859 | |
3860 | ||
3861 | eval "$ac_cv_use_log" | |
3862 | if test "$no_cache" != 1; then | |
3863 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3864 | fi | |
3865 | ||
3866 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3867 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3868 | else |
698dcdb6 | 3869 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3870 | fi |
698dcdb6 | 3871 | |
10f2d63a | 3872 | |
698dcdb6 | 3873 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
a1622950 | 3874 | echo "configure:3875: checking for --enable-streams" >&5 |
10f2d63a VZ |
3875 | no_cache=0 |
3876 | # Check whether --enable-streams or --disable-streams was given. | |
3877 | if test "${enable_streams+set}" = set; then | |
3878 | enableval="$enable_streams" | |
698dcdb6 | 3879 | |
10f2d63a VZ |
3880 | if test "$enableval" = yes; then |
3881 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3882 | else | |
3883 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3884 | fi | |
698dcdb6 | 3885 | |
10f2d63a | 3886 | else |
698dcdb6 | 3887 | |
10f2d63a VZ |
3888 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3889 | if test "x$LINE" != x ; then | |
3890 | eval "DEFAULT_$LINE" | |
3891 | else | |
3892 | no_cache=1 | |
3893 | fi | |
3894 | ||
3895 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3896 | |
3897 | fi | |
10f2d63a VZ |
3898 | |
3899 | ||
3900 | eval "$ac_cv_use_streams" | |
3901 | if test "$no_cache" != 1; then | |
3902 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3903 | fi | |
3904 | ||
3905 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3906 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3907 | else |
698dcdb6 | 3908 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3909 | fi |
698dcdb6 | 3910 | |
10f2d63a | 3911 | |
698dcdb6 | 3912 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
a1622950 | 3913 | echo "configure:3914: checking for --enable-file" >&5 |
10f2d63a VZ |
3914 | no_cache=0 |
3915 | # Check whether --enable-file or --disable-file was given. | |
3916 | if test "${enable_file+set}" = set; then | |
3917 | enableval="$enable_file" | |
698dcdb6 | 3918 | |
10f2d63a VZ |
3919 | if test "$enableval" = yes; then |
3920 | ac_cv_use_file='wxUSE_FILE=yes' | |
3921 | else | |
3922 | ac_cv_use_file='wxUSE_FILE=no' | |
3923 | fi | |
698dcdb6 | 3924 | |
10f2d63a | 3925 | else |
698dcdb6 | 3926 | |
10f2d63a VZ |
3927 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3928 | if test "x$LINE" != x ; then | |
3929 | eval "DEFAULT_$LINE" | |
3930 | else | |
3931 | no_cache=1 | |
3932 | fi | |
3933 | ||
3934 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3935 | |
3936 | fi | |
10f2d63a VZ |
3937 | |
3938 | ||
3939 | eval "$ac_cv_use_file" | |
3940 | if test "$no_cache" != 1; then | |
3941 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3942 | fi | |
3943 | ||
3944 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3945 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3946 | else |
698dcdb6 | 3947 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3948 | fi |
698dcdb6 | 3949 | |
10f2d63a | 3950 | |
1e6feb95 | 3951 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
a1622950 | 3952 | echo "configure:3953: checking for --enable-ffile" >&5 |
10f2d63a | 3953 | no_cache=0 |
1e6feb95 VZ |
3954 | # Check whether --enable-ffile or --disable-ffile was given. |
3955 | if test "${enable_ffile+set}" = set; then | |
3956 | enableval="$enable_ffile" | |
698dcdb6 | 3957 | |
10f2d63a | 3958 | if test "$enableval" = yes; then |
1e6feb95 | 3959 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3960 | else |
1e6feb95 | 3961 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3962 | fi |
698dcdb6 | 3963 | |
10f2d63a | 3964 | else |
698dcdb6 | 3965 | |
1e6feb95 | 3966 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3967 | if test "x$LINE" != x ; then |
3968 | eval "DEFAULT_$LINE" | |
3969 | else | |
3970 | no_cache=1 | |
3971 | fi | |
3972 | ||
1e6feb95 | 3973 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3974 | |
3975 | fi | |
10f2d63a VZ |
3976 | |
3977 | ||
1e6feb95 | 3978 | eval "$ac_cv_use_ffile" |
10f2d63a | 3979 | if test "$no_cache" != 1; then |
1e6feb95 | 3980 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3981 | fi |
3982 | ||
1e6feb95 | 3983 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3984 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3985 | else |
698dcdb6 | 3986 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3987 | fi |
698dcdb6 | 3988 | |
10f2d63a | 3989 | |
a3a584a7 | 3990 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
a1622950 | 3991 | echo "configure:3992: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3992 | no_cache=0 |
3993 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3994 | if test "${enable_textbuf+set}" = set; then | |
3995 | enableval="$enable_textbuf" | |
3996 | ||
3997 | if test "$enableval" = yes; then | |
3998 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3999 | else | |
4000 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4001 | fi | |
4002 | ||
4003 | else | |
4004 | ||
4005 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4006 | if test "x$LINE" != x ; then | |
4007 | eval "DEFAULT_$LINE" | |
4008 | else | |
4009 | no_cache=1 | |
4010 | fi | |
4011 | ||
4012 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4013 | ||
4014 | fi | |
4015 | ||
4016 | ||
4017 | eval "$ac_cv_use_textbuf" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4023 | echo "$ac_t""yes" 1>&6 | |
4024 | else | |
4025 | echo "$ac_t""no" 1>&6 | |
4026 | fi | |
4027 | ||
4028 | ||
1e6feb95 | 4029 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
a1622950 | 4030 | echo "configure:4031: checking for --enable-textfile" >&5 |
10f2d63a | 4031 | no_cache=0 |
1e6feb95 VZ |
4032 | # Check whether --enable-textfile or --disable-textfile was given. |
4033 | if test "${enable_textfile+set}" = set; then | |
4034 | enableval="$enable_textfile" | |
698dcdb6 | 4035 | |
10f2d63a | 4036 | if test "$enableval" = yes; then |
1e6feb95 | 4037 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4038 | else |
1e6feb95 | 4039 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4040 | fi |
698dcdb6 | 4041 | |
10f2d63a | 4042 | else |
698dcdb6 | 4043 | |
1e6feb95 | 4044 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4045 | if test "x$LINE" != x ; then |
4046 | eval "DEFAULT_$LINE" | |
4047 | else | |
4048 | no_cache=1 | |
4049 | fi | |
4050 | ||
1e6feb95 | 4051 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4052 | |
4053 | fi | |
10f2d63a VZ |
4054 | |
4055 | ||
1e6feb95 | 4056 | eval "$ac_cv_use_textfile" |
10f2d63a | 4057 | if test "$no_cache" != 1; then |
1e6feb95 | 4058 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4059 | fi |
4060 | ||
1e6feb95 | 4061 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4062 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4063 | else |
698dcdb6 | 4064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4065 | fi |
698dcdb6 | 4066 | |
10f2d63a | 4067 | |
1e6feb95 | 4068 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
a1622950 | 4069 | echo "configure:4070: checking for --enable-fontmap" >&5 |
10f2d63a | 4070 | no_cache=0 |
1e6feb95 VZ |
4071 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4072 | if test "${enable_fontmap+set}" = set; then | |
4073 | enableval="$enable_fontmap" | |
698dcdb6 | 4074 | |
10f2d63a | 4075 | if test "$enableval" = yes; then |
1e6feb95 | 4076 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4077 | else |
1e6feb95 | 4078 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4079 | fi |
698dcdb6 | 4080 | |
10f2d63a | 4081 | else |
698dcdb6 | 4082 | |
1e6feb95 | 4083 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4084 | if test "x$LINE" != x ; then |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
1e6feb95 | 4090 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4091 | |
4092 | fi | |
10f2d63a VZ |
4093 | |
4094 | ||
1e6feb95 | 4095 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4096 | if test "$no_cache" != 1; then |
1e6feb95 | 4097 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4098 | fi |
4099 | ||
1e6feb95 | 4100 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4102 | else |
698dcdb6 | 4103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4104 | fi |
698dcdb6 | 4105 | |
10f2d63a | 4106 | |
1e6feb95 | 4107 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
a1622950 | 4108 | echo "configure:4109: checking for --enable-unicode" >&5 |
10f2d63a | 4109 | no_cache=0 |
1e6feb95 VZ |
4110 | # Check whether --enable-unicode or --disable-unicode was given. |
4111 | if test "${enable_unicode+set}" = set; then | |
4112 | enableval="$enable_unicode" | |
4113 | ||
4114 | if test "$enableval" = yes; then | |
4115 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4116 | else | |
4117 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4118 | fi | |
4119 | ||
4120 | else | |
4121 | ||
4122 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4123 | if test "x$LINE" != x ; then | |
4124 | eval "DEFAULT_$LINE" | |
4125 | else | |
4126 | no_cache=1 | |
4127 | fi | |
4128 | ||
4129 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4130 | ||
4131 | fi | |
4132 | ||
4133 | ||
4134 | eval "$ac_cv_use_unicode" | |
4135 | if test "$no_cache" != 1; then | |
4136 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4137 | fi | |
4138 | ||
4139 | if test "$wxUSE_UNICODE" = yes; then | |
4140 | echo "$ac_t""yes" 1>&6 | |
4141 | else | |
4142 | echo "$ac_t""no" 1>&6 | |
4143 | fi | |
4144 | ||
4145 | ||
a72a4bfa | 4146 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
a1622950 | 4147 | echo "configure:4148: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4148 | no_cache=0 |
4149 | # Check whether --enable-mslu or --disable-mslu was given. | |
4150 | if test "${enable_mslu+set}" = set; then | |
4151 | enableval="$enable_mslu" | |
4152 | ||
4153 | if test "$enableval" = yes; then | |
4154 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4155 | else | |
4156 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4157 | fi | |
4158 | ||
4159 | else | |
4160 | ||
4161 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4169 | ||
4170 | fi | |
4171 | ||
4172 | ||
4173 | eval "$ac_cv_use_mslu" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4179 | echo "$ac_t""yes" 1>&6 | |
4180 | else | |
4181 | echo "$ac_t""no" 1>&6 | |
4182 | fi | |
4183 | ||
4184 | ||
1e6feb95 | 4185 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
a1622950 | 4186 | echo "configure:4187: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4187 | no_cache=0 |
4188 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4189 | if test "${enable_wxprintfv+set}" = set; then | |
4190 | enableval="$enable_wxprintfv" | |
4191 | ||
4192 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4193 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4194 | else | |
4195 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4196 | fi | |
698dcdb6 | 4197 | |
10f2d63a | 4198 | else |
698dcdb6 | 4199 | |
10f2d63a VZ |
4200 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4201 | if test "x$LINE" != x ; then | |
4202 | eval "DEFAULT_$LINE" | |
4203 | else | |
4204 | no_cache=1 | |
4205 | fi | |
4206 | ||
4207 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4208 | |
4209 | fi | |
10f2d63a VZ |
4210 | |
4211 | ||
4212 | eval "$ac_cv_use_wxprintfv" | |
4213 | if test "$no_cache" != 1; then | |
4214 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4215 | fi | |
4216 | ||
4217 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4218 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4219 | else |
698dcdb6 | 4220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4221 | fi |
698dcdb6 | 4222 | |
10f2d63a | 4223 | |
698dcdb6 | 4224 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
a1622950 | 4225 | echo "configure:4226: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4226 | no_cache=0 |
4227 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4228 | if test "${enable_std_iostreams+set}" = set; then | |
4229 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4230 | |
10f2d63a VZ |
4231 | if test "$enableval" = yes; then |
4232 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4233 | else | |
4234 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4235 | fi | |
698dcdb6 | 4236 | |
10f2d63a | 4237 | else |
698dcdb6 | 4238 | |
10f2d63a VZ |
4239 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4240 | if test "x$LINE" != x ; then | |
4241 | eval "DEFAULT_$LINE" | |
4242 | else | |
4243 | no_cache=1 | |
4244 | fi | |
4245 | ||
4246 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4247 | |
4248 | fi | |
10f2d63a VZ |
4249 | |
4250 | ||
4251 | eval "$ac_cv_use_std_iostreams" | |
4252 | if test "$no_cache" != 1; then | |
4253 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4254 | fi | |
4255 | ||
4256 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4257 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4258 | else |
698dcdb6 | 4259 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4260 | fi |
698dcdb6 | 4261 | |
10f2d63a | 4262 | |
698dcdb6 | 4263 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
a1622950 | 4264 | echo "configure:4265: checking for --enable-filesystem" >&5 |
24528b0c VS |
4265 | no_cache=0 |
4266 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4267 | if test "${enable_filesystem+set}" = set; then | |
4268 | enableval="$enable_filesystem" | |
698dcdb6 | 4269 | |
24528b0c VS |
4270 | if test "$enableval" = yes; then |
4271 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4272 | else | |
4273 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4274 | fi | |
698dcdb6 | 4275 | |
24528b0c | 4276 | else |
698dcdb6 | 4277 | |
24528b0c VS |
4278 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4286 | |
4287 | fi | |
24528b0c VS |
4288 | |
4289 | ||
4290 | eval "$ac_cv_use_filesystem" | |
4291 | if test "$no_cache" != 1; then | |
4292 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4293 | fi | |
4294 | ||
4295 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4296 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4297 | else |
698dcdb6 | 4298 | echo "$ac_t""no" 1>&6 |
24528b0c | 4299 | fi |
698dcdb6 | 4300 | |
24528b0c | 4301 | |
698dcdb6 | 4302 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
a1622950 | 4303 | echo "configure:4304: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4304 | no_cache=0 |
4305 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4306 | if test "${enable_fs_inet+set}" = set; then | |
4307 | enableval="$enable_fs_inet" | |
698dcdb6 | 4308 | |
10f2d63a VZ |
4309 | if test "$enableval" = yes; then |
4310 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4311 | else | |
4312 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4313 | fi | |
698dcdb6 | 4314 | |
10f2d63a | 4315 | else |
698dcdb6 | 4316 | |
10f2d63a VZ |
4317 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4318 | if test "x$LINE" != x ; then | |
4319 | eval "DEFAULT_$LINE" | |
4320 | else | |
4321 | no_cache=1 | |
4322 | fi | |
4323 | ||
4324 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4325 | |
4326 | fi | |
10f2d63a VZ |
4327 | |
4328 | ||
4329 | eval "$ac_cv_use_fs_inet" | |
4330 | if test "$no_cache" != 1; then | |
4331 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4332 | fi | |
4333 | ||
4334 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4335 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4336 | else |
698dcdb6 | 4337 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4338 | fi |
698dcdb6 | 4339 | |
10f2d63a | 4340 | |
698dcdb6 | 4341 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
a1622950 | 4342 | echo "configure:4343: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4343 | no_cache=0 |
4344 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4345 | if test "${enable_fs_zip+set}" = set; then | |
4346 | enableval="$enable_fs_zip" | |
698dcdb6 | 4347 | |
10f2d63a VZ |
4348 | if test "$enableval" = yes; then |
4349 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4350 | else | |
4351 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4352 | fi | |
698dcdb6 | 4353 | |
10f2d63a | 4354 | else |
698dcdb6 | 4355 | |
10f2d63a VZ |
4356 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4357 | if test "x$LINE" != x ; then | |
4358 | eval "DEFAULT_$LINE" | |
4359 | else | |
4360 | no_cache=1 | |
4361 | fi | |
4362 | ||
4363 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4364 | |
4365 | fi | |
10f2d63a VZ |
4366 | |
4367 | ||
4368 | eval "$ac_cv_use_fs_zip" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4374 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4375 | else |
698dcdb6 | 4376 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4377 | fi |
698dcdb6 | 4378 | |
10f2d63a | 4379 | |
698dcdb6 | 4380 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
a1622950 | 4381 | echo "configure:4382: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4382 | no_cache=0 |
4383 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4384 | if test "${enable_zipstream+set}" = set; then | |
4385 | enableval="$enable_zipstream" | |
698dcdb6 | 4386 | |
10f2d63a VZ |
4387 | if test "$enableval" = yes; then |
4388 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4389 | else | |
4390 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4391 | fi | |
698dcdb6 | 4392 | |
10f2d63a | 4393 | else |
698dcdb6 | 4394 | |
10f2d63a VZ |
4395 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4396 | if test "x$LINE" != x ; then | |
4397 | eval "DEFAULT_$LINE" | |
4398 | else | |
4399 | no_cache=1 | |
4400 | fi | |
4401 | ||
4402 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4403 | |
4404 | fi | |
10f2d63a VZ |
4405 | |
4406 | ||
4407 | eval "$ac_cv_use_zipstream" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4413 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4414 | else |
698dcdb6 | 4415 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4416 | fi |
698dcdb6 | 4417 | |
10f2d63a | 4418 | |
698dcdb6 VZ |
4419 | |
4420 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
a1622950 | 4421 | echo "configure:4422: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4422 | no_cache=0 |
4423 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4424 | if test "${enable_catch_segvs+set}" = set; then | |
4425 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4426 | |
eb4efbdc VZ |
4427 | if test "$enableval" = yes; then |
4428 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4429 | else | |
4430 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4431 | fi | |
698dcdb6 | 4432 | |
eb4efbdc | 4433 | else |
698dcdb6 | 4434 | |
eb4efbdc VZ |
4435 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4436 | if test "x$LINE" != x ; then | |
4437 | eval "DEFAULT_$LINE" | |
4438 | else | |
4439 | no_cache=1 | |
4440 | fi | |
4441 | ||
4442 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4443 | |
4444 | fi | |
eb4efbdc VZ |
4445 | |
4446 | ||
4447 | eval "$ac_cv_use_catch_segvs" | |
4448 | if test "$no_cache" != 1; then | |
4449 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4450 | fi | |
4451 | ||
4452 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4453 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4454 | else |
698dcdb6 | 4455 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4456 | fi |
698dcdb6 | 4457 | |
eb4efbdc | 4458 | |
698dcdb6 | 4459 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
a1622950 | 4460 | echo "configure:4461: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4461 | no_cache=0 |
4462 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4463 | if test "${enable_snglinst+set}" = set; then | |
4464 | enableval="$enable_snglinst" | |
698dcdb6 | 4465 | |
4f3c5f06 VZ |
4466 | if test "$enableval" = yes; then |
4467 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4468 | else | |
4469 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4470 | fi | |
698dcdb6 | 4471 | |
4f3c5f06 | 4472 | else |
698dcdb6 | 4473 | |
4f3c5f06 VZ |
4474 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4475 | if test "x$LINE" != x ; then | |
4476 | eval "DEFAULT_$LINE" | |
4477 | else | |
4478 | no_cache=1 | |
4479 | fi | |
4480 | ||
4481 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4482 | |
4483 | fi | |
4f3c5f06 VZ |
4484 | |
4485 | ||
4486 | eval "$ac_cv_use_snglinst" | |
4487 | if test "$no_cache" != 1; then | |
4488 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4489 | fi | |
4490 | ||
4491 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4492 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4493 | else |
698dcdb6 | 4494 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4495 | fi |
698dcdb6 VZ |
4496 | |
4497 | ||
eb4efbdc | 4498 | |
1e6feb95 | 4499 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
a1622950 | 4500 | echo "configure:4501: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4501 | no_cache=0 |
4502 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4503 | if test "${enable_mimetype+set}" = set; then | |
4504 | enableval="$enable_mimetype" | |
4505 | ||
4506 | if test "$enableval" = yes; then | |
4507 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4508 | else | |
4509 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4510 | fi | |
4511 | ||
4512 | else | |
4513 | ||
4514 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4515 | if test "x$LINE" != x ; then | |
4516 | eval "DEFAULT_$LINE" | |
4517 | else | |
4518 | no_cache=1 | |
4519 | fi | |
4520 | ||
4521 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4522 | ||
4523 | fi | |
4524 | ||
4525 | ||
4526 | eval "$ac_cv_use_mimetype" | |
4527 | if test "$no_cache" != 1; then | |
4528 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4529 | fi | |
4530 | ||
4531 | if test "$wxUSE_MIMETYPE" = yes; then | |
4532 | echo "$ac_t""yes" 1>&6 | |
4533 | else | |
4534 | echo "$ac_t""no" 1>&6 | |
4535 | fi | |
4536 | ||
4537 | ||
3e44f09d | 4538 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
a1622950 | 4539 | echo "configure:4540: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4540 | no_cache=0 |
4541 | # Check whether --enable-system_options or --disable-system_options was given. | |
4542 | if test "${enable_system_options+set}" = set; then | |
4543 | enableval="$enable_system_options" | |
4544 | ||
4545 | if test "$enableval" = yes; then | |
4546 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4547 | else | |
4548 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4549 | fi | |
4550 | ||
4551 | else | |
4552 | ||
4553 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4554 | if test "x$LINE" != x ; then | |
4555 | eval "DEFAULT_$LINE" | |
4556 | else | |
4557 | no_cache=1 | |
4558 | fi | |
4559 | ||
4560 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4561 | ||
4562 | fi | |
4563 | ||
4564 | ||
4565 | eval "$ac_cv_use_system_options" | |
4566 | if test "$no_cache" != 1; then | |
4567 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4568 | fi | |
4569 | ||
4570 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4571 | echo "$ac_t""yes" 1>&6 | |
4572 | else | |
4573 | echo "$ac_t""no" 1>&6 | |
4574 | fi | |
4575 | ||
4576 | ||
1e6feb95 | 4577 | |
698dcdb6 VZ |
4578 | |
4579 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
a1622950 | 4580 | echo "configure:4581: checking for --enable-threads" >&5 |
10f2d63a VZ |
4581 | no_cache=0 |
4582 | # Check whether --enable-threads or --disable-threads was given. | |
4583 | if test "${enable_threads+set}" = set; then | |
4584 | enableval="$enable_threads" | |
698dcdb6 | 4585 | |
10f2d63a VZ |
4586 | if test "$enableval" = yes; then |
4587 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4588 | else | |
4589 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4590 | fi | |
698dcdb6 | 4591 | |
10f2d63a | 4592 | else |
698dcdb6 | 4593 | |
10f2d63a VZ |
4594 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4595 | if test "x$LINE" != x ; then | |
4596 | eval "DEFAULT_$LINE" | |
4597 | else | |
4598 | no_cache=1 | |
4599 | fi | |
4600 | ||
4601 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4602 | |
4603 | fi | |
10f2d63a VZ |
4604 | |
4605 | ||
4606 | eval "$ac_cv_use_threads" | |
4607 | if test "$no_cache" != 1; then | |
4608 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4609 | fi | |
4610 | ||
4611 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4612 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4613 | else |
698dcdb6 | 4614 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4615 | fi |
698dcdb6 | 4616 | |
10f2d63a | 4617 | |
b12915c1 VZ |
4618 | if test "$wxUSE_GUI" = "yes"; then |
4619 | ||
698dcdb6 VZ |
4620 | |
4621 | ||
4622 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
a1622950 | 4623 | echo "configure:4624: checking for --enable-docview" >&5 |
10f2d63a VZ |
4624 | no_cache=0 |
4625 | # Check whether --enable-docview or --disable-docview was given. | |
4626 | if test "${enable_docview+set}" = set; then | |
4627 | enableval="$enable_docview" | |
698dcdb6 | 4628 | |
10f2d63a VZ |
4629 | if test "$enableval" = yes; then |
4630 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4631 | else | |
4632 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4633 | fi | |
698dcdb6 | 4634 | |
10f2d63a | 4635 | else |
698dcdb6 | 4636 | |
10f2d63a VZ |
4637 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4638 | if test "x$LINE" != x ; then | |
4639 | eval "DEFAULT_$LINE" | |
4640 | else | |
4641 | no_cache=1 | |
4642 | fi | |
4643 | ||
4644 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4645 | |
4646 | fi | |
10f2d63a VZ |
4647 | |
4648 | ||
4649 | eval "$ac_cv_use_docview" | |
4650 | if test "$no_cache" != 1; then | |
4651 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4652 | fi | |
4653 | ||
4654 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4655 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4656 | else |
698dcdb6 | 4657 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4658 | fi |
698dcdb6 | 4659 | |
10f2d63a | 4660 | |
698dcdb6 | 4661 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
a1622950 | 4662 | echo "configure:4663: checking for --enable-help" >&5 |
10f2d63a VZ |
4663 | no_cache=0 |
4664 | # Check whether --enable-help or --disable-help was given. | |
4665 | if test "${enable_help+set}" = set; then | |
4666 | enableval="$enable_help" | |
698dcdb6 | 4667 | |
10f2d63a VZ |
4668 | if test "$enableval" = yes; then |
4669 | ac_cv_use_help='wxUSE_HELP=yes' | |
4670 | else | |
4671 | ac_cv_use_help='wxUSE_HELP=no' | |
4672 | fi | |
698dcdb6 | 4673 | |
10f2d63a | 4674 | else |
698dcdb6 | 4675 | |
10f2d63a VZ |
4676 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4677 | if test "x$LINE" != x ; then | |
4678 | eval "DEFAULT_$LINE" | |
4679 | else | |
4680 | no_cache=1 | |
4681 | fi | |
4682 | ||
4683 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4684 | |
4685 | fi | |
10f2d63a VZ |
4686 | |
4687 | ||
4688 | eval "$ac_cv_use_help" | |
4689 | if test "$no_cache" != 1; then | |
4690 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4691 | fi | |
4692 | ||
4693 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4694 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4695 | else |
698dcdb6 | 4696 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4697 | fi |
698dcdb6 | 4698 | |
10f2d63a | 4699 | |
29fd3c0c | 4700 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
a1622950 | 4701 | echo "configure:4702: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4702 | no_cache=0 |
4703 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4704 | if test "${enable_mshtmlhelp+set}" = set; then | |
4705 | enableval="$enable_mshtmlhelp" | |
4706 | ||
4707 | if test "$enableval" = yes; then | |
4708 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4709 | else | |
4710 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4711 | fi | |
4712 | ||
4713 | else | |
4714 | ||
4715 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4716 | if test "x$LINE" != x ; then | |
4717 | eval "DEFAULT_$LINE" | |
4718 | else | |
4719 | no_cache=1 | |
4720 | fi | |
4721 | ||
4722 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4723 | ||
4724 | fi | |
4725 | ||
4726 | ||
4727 | eval "$ac_cv_use_mshtmlhelp" | |
4728 | if test "$no_cache" != 1; then | |
4729 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4730 | fi | |
4731 | ||
4732 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4733 | echo "$ac_t""yes" 1>&6 | |
4734 | else | |
4735 | echo "$ac_t""no" 1>&6 | |
4736 | fi | |
4737 | ||
4738 | ||
3379ed37 | 4739 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
a1622950 | 4740 | echo "configure:4741: checking for --enable-html" >&5 |
3379ed37 VZ |
4741 | no_cache=0 |
4742 | # Check whether --enable-html or --disable-html was given. | |
4743 | if test "${enable_html+set}" = set; then | |
4744 | enableval="$enable_html" | |
4745 | ||
4746 | if test "$enableval" = yes; then | |
4747 | ac_cv_use_html='wxUSE_HTML=yes' | |
4748 | else | |
4749 | ac_cv_use_html='wxUSE_HTML=no' | |
4750 | fi | |
4751 | ||
4752 | else | |
4753 | ||
4754 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4755 | if test "x$LINE" != x ; then | |
4756 | eval "DEFAULT_$LINE" | |
4757 | else | |
4758 | no_cache=1 | |
4759 | fi | |
4760 | ||
4761 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4762 | ||
4763 | fi | |
4764 | ||
4765 | ||
4766 | eval "$ac_cv_use_html" | |
4767 | if test "$no_cache" != 1; then | |
4768 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4769 | fi | |
4770 | ||
4771 | if test "$wxUSE_HTML" = yes; then | |
4772 | echo "$ac_t""yes" 1>&6 | |
4773 | else | |
4774 | echo "$ac_t""no" 1>&6 | |
4775 | fi | |
4776 | ||
4777 | ||
4778 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
a1622950 | 4779 | echo "configure:4780: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4780 | no_cache=0 |
4781 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4782 | if test "${enable_htmlhelp+set}" = set; then | |
4783 | enableval="$enable_htmlhelp" | |
4784 | ||
4785 | if test "$enableval" = yes; then | |
4786 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4787 | else | |
4788 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4789 | fi | |
4790 | ||
4791 | else | |
4792 | ||
4793 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4794 | if test "x$LINE" != x ; then | |
4795 | eval "DEFAULT_$LINE" | |
4796 | else | |
4797 | no_cache=1 | |
4798 | fi | |
4799 | ||
4800 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4801 | ||
4802 | fi | |
4803 | ||
4804 | ||
4805 | eval "$ac_cv_use_htmlhelp" | |
4806 | if test "$no_cache" != 1; then | |
4807 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4808 | fi | |
4809 | ||
4810 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4811 | echo "$ac_t""yes" 1>&6 | |
4812 | else | |
4813 | echo "$ac_t""no" 1>&6 | |
4814 | fi | |
4815 | ||
4816 | ||
698dcdb6 | 4817 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
a1622950 | 4818 | echo "configure:4819: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4819 | no_cache=0 |
4820 | # Check whether --enable-constraints or --disable-constraints was given. | |
4821 | if test "${enable_constraints+set}" = set; then | |
4822 | enableval="$enable_constraints" | |
698dcdb6 | 4823 | |
10f2d63a VZ |
4824 | if test "$enableval" = yes; then |
4825 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4826 | else | |
4827 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4828 | fi | |
698dcdb6 | 4829 | |
10f2d63a | 4830 | else |
698dcdb6 | 4831 | |
10f2d63a VZ |
4832 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4833 | if test "x$LINE" != x ; then | |
4834 | eval "DEFAULT_$LINE" | |
4835 | else | |
4836 | no_cache=1 | |
4837 | fi | |
4838 | ||
4839 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4840 | |
4841 | fi | |
10f2d63a VZ |
4842 | |
4843 | ||
4844 | eval "$ac_cv_use_constraints" | |
4845 | if test "$no_cache" != 1; then | |
4846 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4847 | fi | |
4848 | ||
4849 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4851 | else |
698dcdb6 | 4852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4853 | fi |
698dcdb6 | 4854 | |
10f2d63a | 4855 | |
698dcdb6 | 4856 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
a1622950 | 4857 | echo "configure:4858: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4858 | no_cache=0 |
4859 | # Check whether --enable-printarch or --disable-printarch was given. | |
4860 | if test "${enable_printarch+set}" = set; then | |
4861 | enableval="$enable_printarch" | |
698dcdb6 | 4862 | |
10f2d63a VZ |
4863 | if test "$enableval" = yes; then |
4864 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4865 | else | |
4866 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4867 | fi | |
698dcdb6 | 4868 | |
10f2d63a | 4869 | else |
698dcdb6 | 4870 | |
10f2d63a VZ |
4871 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4872 | if test "x$LINE" != x ; then | |
4873 | eval "DEFAULT_$LINE" | |
4874 | else | |
4875 | no_cache=1 | |
4876 | fi | |
4877 | ||
4878 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4879 | |
4880 | fi | |
10f2d63a VZ |
4881 | |
4882 | ||
4883 | eval "$ac_cv_use_printarch" | |
4884 | if test "$no_cache" != 1; then | |
4885 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4886 | fi | |
4887 | ||
4888 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4890 | else |
698dcdb6 | 4891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4892 | fi |
698dcdb6 | 4893 | |
10f2d63a | 4894 | |
698dcdb6 | 4895 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
a1622950 | 4896 | echo "configure:4897: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4897 | no_cache=0 |
4898 | # Check whether --enable-mdi or --disable-mdi was given. | |
4899 | if test "${enable_mdi+set}" = set; then | |
4900 | enableval="$enable_mdi" | |
698dcdb6 | 4901 | |
10f2d63a VZ |
4902 | if test "$enableval" = yes; then |
4903 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4904 | else | |
4905 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4906 | fi | |
698dcdb6 | 4907 | |
10f2d63a | 4908 | else |
698dcdb6 | 4909 | |
10f2d63a VZ |
4910 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4911 | if test "x$LINE" != x ; then | |
4912 | eval "DEFAULT_$LINE" | |
4913 | else | |
4914 | no_cache=1 | |
4915 | fi | |
4916 | ||
4917 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4918 | |
4919 | fi | |
10f2d63a VZ |
4920 | |
4921 | ||
4922 | eval "$ac_cv_use_mdi" | |
4923 | if test "$no_cache" != 1; then | |
4924 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4925 | fi | |
4926 | ||
4927 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4928 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4929 | else |
698dcdb6 | 4930 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4931 | fi |
698dcdb6 VZ |
4932 | |
4933 | ||
1e6feb95 | 4934 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
a1622950 | 4935 | echo "configure:4936: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4936 | no_cache=0 |
4937 | # Check whether --enable-loggui or --disable-loggui was given. | |
4938 | if test "${enable_loggui+set}" = set; then | |
4939 | enableval="$enable_loggui" | |
4940 | ||
4941 | if test "$enableval" = yes; then | |
4942 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4943 | else | |
4944 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4945 | fi | |
4946 | ||
4947 | else | |
4948 | ||
4949 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4950 | if test "x$LINE" != x ; then | |
4951 | eval "DEFAULT_$LINE" | |
4952 | else | |
4953 | no_cache=1 | |
4954 | fi | |
4955 | ||
4956 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4957 | ||
4958 | fi | |
4959 | ||
4960 | ||
4961 | eval "$ac_cv_use_loggui" | |
4962 | if test "$no_cache" != 1; then | |
4963 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4964 | fi | |
4965 | ||
4966 | if test "$wxUSE_LOGGUI" = yes; then | |
4967 | echo "$ac_t""yes" 1>&6 | |
4968 | else | |
4969 | echo "$ac_t""no" 1>&6 | |
4970 | fi | |
4971 | ||
4972 | ||
4973 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
a1622950 | 4974 | echo "configure:4975: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4975 | no_cache=0 |
4976 | # Check whether --enable-logwin or --disable-logwin was given. | |
4977 | if test "${enable_logwin+set}" = set; then | |
4978 | enableval="$enable_logwin" | |
4979 | ||
4980 | if test "$enableval" = yes; then | |
4981 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4982 | else | |
4983 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4984 | fi | |
4985 | ||
4986 | else | |
4987 | ||
4988 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4989 | if test "x$LINE" != x ; then | |
4990 | eval "DEFAULT_$LINE" | |
4991 | else | |
4992 | no_cache=1 | |
4993 | fi | |
4994 | ||
4995 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4996 | ||
4997 | fi | |
4998 | ||
4999 | ||
5000 | eval "$ac_cv_use_logwin" | |
5001 | if test "$no_cache" != 1; then | |
5002 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5003 | fi | |
5004 | ||
5005 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5006 | echo "$ac_t""yes" 1>&6 | |
5007 | else | |
5008 | echo "$ac_t""no" 1>&6 | |
5009 | fi | |
5010 | ||
5011 | ||
69d27ff7 | 5012 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
a1622950 | 5013 | echo "configure:5014: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5014 | no_cache=0 |
5015 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5016 | if test "${enable_logdialog+set}" = set; then | |
5017 | enableval="$enable_logdialog" | |
5018 | ||
5019 | if test "$enableval" = yes; then | |
5020 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5021 | else | |
5022 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5023 | fi | |
5024 | ||
5025 | else | |
5026 | ||
5027 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5028 | if test "x$LINE" != x ; then | |
5029 | eval "DEFAULT_$LINE" | |
5030 | else | |
5031 | no_cache=1 | |
5032 | fi | |
5033 | ||
5034 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5035 | ||
5036 | fi | |
5037 | ||
5038 | ||
5039 | eval "$ac_cv_use_logdialog" | |
5040 | if test "$no_cache" != 1; then | |
5041 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5042 | fi | |
5043 | ||
5044 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5045 | echo "$ac_t""yes" 1>&6 | |
5046 | else | |
5047 | echo "$ac_t""no" 1>&6 | |
5048 | fi | |
5049 | ||
5050 | ||
10f2d63a | 5051 | |
698dcdb6 | 5052 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
a1622950 | 5053 | echo "configure:5054: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5054 | no_cache=0 |
5055 | # Check whether --enable-postscript or --disable-postscript was given. | |
5056 | if test "${enable_postscript+set}" = set; then | |
5057 | enableval="$enable_postscript" | |
698dcdb6 | 5058 | |
10f2d63a VZ |
5059 | if test "$enableval" = yes; then |
5060 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5061 | else | |
5062 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5063 | fi | |
698dcdb6 | 5064 | |
10f2d63a | 5065 | else |
698dcdb6 | 5066 | |
10f2d63a VZ |
5067 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5068 | if test "x$LINE" != x ; then | |
5069 | eval "DEFAULT_$LINE" | |
5070 | else | |
5071 | no_cache=1 | |
5072 | fi | |
5073 | ||
5074 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5075 | |
5076 | fi | |
10f2d63a VZ |
5077 | |
5078 | ||
5079 | eval "$ac_cv_use_postscript" | |
5080 | if test "$no_cache" != 1; then | |
5081 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5082 | fi | |
5083 | ||
5084 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5085 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5086 | else |
698dcdb6 | 5087 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5088 | fi |
698dcdb6 VZ |
5089 | |
5090 | ||
5091 | ||
10f2d63a | 5092 | |
1e6feb95 | 5093 | |
698dcdb6 | 5094 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
a1622950 | 5095 | echo "configure:5096: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5096 | no_cache=0 |
5097 | # Check whether --enable-prologio or --disable-prologio was given. | |
5098 | if test "${enable_prologio+set}" = set; then | |
5099 | enableval="$enable_prologio" | |
698dcdb6 | 5100 | |
10f2d63a VZ |
5101 | if test "$enableval" = yes; then |
5102 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5103 | else | |
5104 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5105 | fi | |
698dcdb6 | 5106 | |
10f2d63a | 5107 | else |
698dcdb6 | 5108 | |
10f2d63a VZ |
5109 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5110 | if test "x$LINE" != x ; then | |
5111 | eval "DEFAULT_$LINE" | |
5112 | else | |
5113 | no_cache=1 | |
5114 | fi | |
5115 | ||
5116 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5117 | |
5118 | fi | |
10f2d63a VZ |
5119 | |
5120 | ||
5121 | eval "$ac_cv_use_prologio" | |
5122 | if test "$no_cache" != 1; then | |
5123 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5124 | fi | |
5125 | ||
5126 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5127 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5128 | else |
698dcdb6 | 5129 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5130 | fi |
698dcdb6 | 5131 | |
10f2d63a | 5132 | |
698dcdb6 | 5133 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
a1622950 | 5134 | echo "configure:5135: checking for --enable-resources" >&5 |
10f2d63a VZ |
5135 | no_cache=0 |
5136 | # Check whether --enable-resources or --disable-resources was given. | |
5137 | if test "${enable_resources+set}" = set; then | |
5138 | enableval="$enable_resources" | |
698dcdb6 | 5139 | |
10f2d63a VZ |
5140 | if test "$enableval" = yes; then |
5141 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5142 | else | |
5143 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5144 | fi | |
698dcdb6 | 5145 | |
10f2d63a | 5146 | else |
698dcdb6 | 5147 | |
10f2d63a VZ |
5148 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5149 | if test "x$LINE" != x ; then | |
5150 | eval "DEFAULT_$LINE" | |
5151 | else | |
5152 | no_cache=1 | |
5153 | fi | |
5154 | ||
5155 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5156 | |
5157 | fi | |
10f2d63a VZ |
5158 | |
5159 | ||
5160 | eval "$ac_cv_use_resources" | |
5161 | if test "$no_cache" != 1; then | |
5162 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5163 | fi | |
5164 | ||
5165 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5167 | else |
698dcdb6 | 5168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5169 | fi |
698dcdb6 | 5170 | |
10f2d63a | 5171 | |
698dcdb6 VZ |
5172 | |
5173 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
a1622950 | 5174 | echo "configure:5175: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-xresources or --disable-xresources was given. | |
5177 | if test "${enable_xresources+set}" = set; then | |
5178 | enableval="$enable_xresources" | |
698dcdb6 | 5179 | |
10f2d63a VZ |
5180 | if test "$enableval" = yes; then |
5181 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5182 | else | |
5183 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5184 | fi | |
698dcdb6 | 5185 | |
10f2d63a | 5186 | else |
698dcdb6 | 5187 | |
10f2d63a VZ |
5188 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5196 | |
5197 | fi | |
10f2d63a VZ |
5198 | |
5199 | ||
5200 | eval "$ac_cv_use_xresources" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5207 | else |
698dcdb6 | 5208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5209 | fi |
698dcdb6 VZ |
5210 | |
5211 | ||
10f2d63a | 5212 | |
698dcdb6 VZ |
5213 | |
5214 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
a1622950 | 5215 | echo "configure:5216: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5216 | no_cache=0 |
5217 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5218 | if test "${enable_clipboard+set}" = set; then | |
5219 | enableval="$enable_clipboard" | |
698dcdb6 | 5220 | |
10f2d63a VZ |
5221 | if test "$enableval" = yes; then |
5222 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5223 | else | |
5224 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5225 | fi | |
698dcdb6 | 5226 | |
10f2d63a | 5227 | else |
698dcdb6 | 5228 | |
10f2d63a VZ |
5229 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5230 | if test "x$LINE" != x ; then | |
5231 | eval "DEFAULT_$LINE" | |
5232 | else | |
5233 | no_cache=1 | |
5234 | fi | |
5235 | ||
5236 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5237 | |
5238 | fi | |
10f2d63a VZ |
5239 | |
5240 | ||
5241 | eval "$ac_cv_use_clipboard" | |
5242 | if test "$no_cache" != 1; then | |
5243 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5244 | fi | |
5245 | ||
5246 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5247 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5248 | else |
698dcdb6 | 5249 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5250 | fi |
698dcdb6 | 5251 | |
10f2d63a | 5252 | |
698dcdb6 | 5253 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
a1622950 | 5254 | echo "configure:5255: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5255 | no_cache=0 |
5256 | # Check whether --enable-dnd or --disable-dnd was given. | |
5257 | if test "${enable_dnd+set}" = set; then | |
5258 | enableval="$enable_dnd" | |
698dcdb6 | 5259 | |
10f2d63a VZ |
5260 | if test "$enableval" = yes; then |
5261 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5262 | else | |
5263 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5264 | fi | |
698dcdb6 | 5265 | |
10f2d63a | 5266 | else |
698dcdb6 | 5267 | |
10f2d63a VZ |
5268 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5276 | |
5277 | fi | |
10f2d63a VZ |
5278 | |
5279 | ||
5280 | eval "$ac_cv_use_dnd" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5286 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5287 | else |
698dcdb6 | 5288 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5289 | fi |
698dcdb6 | 5290 | |
10f2d63a | 5291 | |
698dcdb6 | 5292 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
a1622950 | 5293 | echo "configure:5294: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5294 | no_cache=0 |
5295 | # Check whether --enable-metafile or --disable-metafile was given. | |
5296 | if test "${enable_metafile+set}" = set; then | |
5297 | enableval="$enable_metafile" | |
698dcdb6 | 5298 | |
b64f0a5f RL |
5299 | if test "$enableval" = yes; then |
5300 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5301 | else | |
5302 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5303 | fi | |
698dcdb6 | 5304 | |
b64f0a5f | 5305 | else |
698dcdb6 | 5306 | |
b64f0a5f RL |
5307 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5315 | |
5316 | fi | |
b64f0a5f RL |
5317 | |
5318 | ||
5319 | eval "$ac_cv_use_metafile" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5325 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5326 | else |
698dcdb6 | 5327 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5328 | fi |
698dcdb6 VZ |
5329 | |
5330 | ||
10f2d63a | 5331 | |
24176f2c | 5332 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
a1622950 | 5333 | echo "configure:5334: checking for --enable-treelayout" >&5 |
10f2d63a | 5334 | no_cache=0 |
24176f2c GD |
5335 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5336 | if test "${enable_treelayout+set}" = set; then | |
5337 | enableval="$enable_treelayout" | |
698dcdb6 | 5338 | |
10f2d63a | 5339 | if test "$enableval" = yes; then |
24176f2c | 5340 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5341 | else |
24176f2c | 5342 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5343 | fi |
698dcdb6 | 5344 | |
10f2d63a | 5345 | else |
698dcdb6 | 5346 | |
24176f2c | 5347 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5348 | if test "x$LINE" != x ; then |
5349 | eval "DEFAULT_$LINE" | |
5350 | else | |
5351 | no_cache=1 | |
5352 | fi | |
5353 | ||
24176f2c | 5354 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5355 | |
5356 | fi | |
10f2d63a VZ |
5357 | |
5358 | ||
24176f2c | 5359 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5360 | if test "$no_cache" != 1; then |
24176f2c | 5361 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5362 | fi |
5363 | ||
24176f2c | 5364 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5365 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5366 | else |
698dcdb6 | 5367 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5368 | fi |
698dcdb6 | 5369 | |
10f2d63a | 5370 | |
698dcdb6 VZ |
5371 | |
5372 | ||
5373 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
a1622950 | 5374 | echo "configure:5375: checking for --enable-controls" >&5 |
10f2d63a VZ |
5375 | no_cache=0 |
5376 | # Check whether --enable-controls or --disable-controls was given. | |
5377 | if test "${enable_controls+set}" = set; then | |
5378 | enableval="$enable_controls" | |
698dcdb6 | 5379 | |
10f2d63a VZ |
5380 | if test "$enableval" = yes; then |
5381 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5382 | else | |
5383 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5384 | fi | |
698dcdb6 | 5385 | |
10f2d63a | 5386 | else |
698dcdb6 | 5387 | |
10f2d63a VZ |
5388 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5396 | |
5397 | fi | |
10f2d63a VZ |
5398 | |
5399 | ||
5400 | eval "$ac_cv_use_controls" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5406 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5407 | else |
698dcdb6 | 5408 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5409 | fi |
698dcdb6 | 5410 | |
10f2d63a VZ |
5411 | |
5412 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5413 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5414 | DEFAULT_wxUSE_BMPBUTTON=yes |
5415 | DEFAULT_wxUSE_BUTTON=yes | |
5416 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5417 | DEFAULT_wxUSE_CARET=yes |
5418 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5419 | DEFAULT_wxUSE_CHECKBOX=yes |
5420 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5421 | DEFAULT_wxUSE_CHOICE=yes | |
5422 | DEFAULT_wxUSE_GAUGE=yes | |
5423 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5424 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5425 | DEFAULT_wxUSE_IMAGLIST=yes |
5426 | DEFAULT_wxUSE_LISTBOX=yes | |
5427 | DEFAULT_wxUSE_LISTCTRL=yes | |
5428 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5429 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5430 | DEFAULT_wxUSE_RADIOBOX=yes |
5431 | DEFAULT_wxUSE_RADIOBTN=yes | |
5432 | DEFAULT_wxUSE_SASH=yes | |
5433 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5434 | DEFAULT_wxUSE_SLIDER=yes | |
5435 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5436 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5437 | DEFAULT_wxUSE_SPLITTER=yes |
5438 | DEFAULT_wxUSE_STATBMP=yes | |
5439 | DEFAULT_wxUSE_STATBOX=yes | |
5440 | DEFAULT_wxUSE_STATLINE=yes | |
5441 | DEFAULT_wxUSE_STATUSBAR=yes | |
5442 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5443 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5444 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5445 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5446 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5447 | DEFAULT_wxUSE_TOOLTIPS=yes |
5448 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5449 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5450 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5451 | elif test "$wxUSE_CONTROLS" = "no"; then |
5452 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5453 | DEFAULT_wxUSE_BMPBUTTON=no |
5454 | DEFAULT_wxUSE_BUTTON=no | |
5455 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5456 | DEFAULT_wxUSE_CARET=no |
5457 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5458 | DEFAULT_wxUSE_CHECKBOX=no |
5459 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5460 | DEFAULT_wxUSE_CHOICE=no | |
5461 | DEFAULT_wxUSE_GAUGE=no | |
5462 | DEFAULT_wxUSE_GRID=no | |
5463 | DEFAULT_wxUSE_NEW_GRID=no | |
5464 | DEFAULT_wxUSE_IMAGLIST=no | |
5465 | DEFAULT_wxUSE_LISTBOX=no | |
5466 | DEFAULT_wxUSE_LISTCTRL=no | |
5467 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5468 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5469 | DEFAULT_wxUSE_RADIOBOX=no |
5470 | DEFAULT_wxUSE_RADIOBTN=no | |
5471 | DEFAULT_wxUSE_SASH=no | |
5472 | DEFAULT_wxUSE_SCROLLBAR=no | |
5473 | DEFAULT_wxUSE_SLIDER=no | |
5474 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5475 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5476 | DEFAULT_wxUSE_SPLITTER=no |
5477 | DEFAULT_wxUSE_STATBMP=no | |
5478 | DEFAULT_wxUSE_STATBOX=no | |
5479 | DEFAULT_wxUSE_STATLINE=no | |
5480 | DEFAULT_wxUSE_STATUSBAR=no | |
5481 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5482 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5483 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5484 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5485 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5486 | DEFAULT_wxUSE_TOOLTIPS=no |
5487 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5488 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5489 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5490 | fi |
5491 | ||
698dcdb6 VZ |
5492 | |
5493 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
a1622950 | 5494 | echo "configure:5495: checking for --enable-accel" >&5 |
10f2d63a VZ |
5495 | no_cache=0 |
5496 | # Check whether --enable-accel or --disable-accel was given. | |
5497 | if test "${enable_accel+set}" = set; then | |
5498 | enableval="$enable_accel" | |
698dcdb6 | 5499 | |
10f2d63a VZ |
5500 | if test "$enableval" = yes; then |
5501 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5502 | else | |
5503 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5504 | fi | |
698dcdb6 | 5505 | |
10f2d63a | 5506 | else |
698dcdb6 | 5507 | |
10f2d63a VZ |
5508 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5509 | if test "x$LINE" != x ; then | |
5510 | eval "DEFAULT_$LINE" | |
5511 | else | |
5512 | no_cache=1 | |
5513 | fi | |
5514 | ||
5515 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5516 | |
5517 | fi | |
10f2d63a VZ |
5518 | |
5519 | ||
5520 | eval "$ac_cv_use_accel" | |
5521 | if test "$no_cache" != 1; then | |
5522 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5523 | fi | |
5524 | ||
5525 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5527 | else |
698dcdb6 | 5528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5529 | fi |
698dcdb6 | 5530 | |
10f2d63a | 5531 | |
1e6feb95 | 5532 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
a1622950 | 5533 | echo "configure:5534: checking for --enable-button" >&5 |
10f2d63a | 5534 | no_cache=0 |
1e6feb95 VZ |
5535 | # Check whether --enable-button or --disable-button was given. |
5536 | if test "${enable_button+set}" = set; then | |
5537 | enableval="$enable_button" | |
698dcdb6 | 5538 | |
10f2d63a | 5539 | if test "$enableval" = yes; then |
1e6feb95 | 5540 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5541 | else |
1e6feb95 | 5542 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5543 | fi |
698dcdb6 | 5544 | |
10f2d63a | 5545 | else |
698dcdb6 | 5546 | |
1e6feb95 | 5547 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5548 | if test "x$LINE" != x ; then |
5549 | eval "DEFAULT_$LINE" | |
5550 | else | |
5551 | no_cache=1 | |
5552 | fi | |
5553 | ||
1e6feb95 | 5554 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5555 | |
5556 | fi | |
10f2d63a VZ |
5557 | |
5558 | ||
1e6feb95 | 5559 | eval "$ac_cv_use_button" |
10f2d63a | 5560 | if test "$no_cache" != 1; then |
1e6feb95 | 5561 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5562 | fi |
5563 | ||
1e6feb95 | 5564 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5565 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5566 | else |
698dcdb6 | 5567 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5568 | fi |
698dcdb6 | 5569 | |
10f2d63a | 5570 | |
698dcdb6 | 5571 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
a1622950 | 5572 | echo "configure:5573: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5573 | no_cache=0 |
5574 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5575 | if test "${enable_bmpbutton+set}" = set; then | |
5576 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5577 | |
10f2d63a VZ |
5578 | if test "$enableval" = yes; then |
5579 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5580 | else | |
5581 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5582 | fi | |
698dcdb6 | 5583 | |
10f2d63a | 5584 | else |
698dcdb6 | 5585 | |
10f2d63a VZ |
5586 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5587 | if test "x$LINE" != x ; then | |
5588 | eval "DEFAULT_$LINE" | |
5589 | else | |
5590 | no_cache=1 | |
5591 | fi | |
5592 | ||
5593 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5594 | |
5595 | fi | |
10f2d63a VZ |
5596 | |
5597 | ||
5598 | eval "$ac_cv_use_bmpbutton" | |
5599 | if test "$no_cache" != 1; then | |
5600 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5601 | fi | |
5602 | ||
5603 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5605 | else |
698dcdb6 | 5606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5607 | fi |
698dcdb6 | 5608 | |
10f2d63a | 5609 | |
1e6feb95 | 5610 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
a1622950 | 5611 | echo "configure:5612: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5612 | no_cache=0 |
5613 | # Check whether --enable-calendar or --disable-calendar was given. | |
5614 | if test "${enable_calendar+set}" = set; then | |
5615 | enableval="$enable_calendar" | |
5616 | ||
5617 | if test "$enableval" = yes; then | |
5618 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5619 | else | |
5620 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5621 | fi | |
5622 | ||
5623 | else | |
5624 | ||
5625 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5626 | if test "x$LINE" != x ; then | |
5627 | eval "DEFAULT_$LINE" | |
5628 | else | |
5629 | no_cache=1 | |
5630 | fi | |
5631 | ||
5632 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5633 | ||
5634 | fi | |
5635 | ||
5636 | ||
5637 | eval "$ac_cv_use_calendar" | |
5638 | if test "$no_cache" != 1; then | |
5639 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5640 | fi | |
5641 | ||
5642 | if test "$wxUSE_CALCTRL" = yes; then | |
5643 | echo "$ac_t""yes" 1>&6 | |
5644 | else | |
5645 | echo "$ac_t""no" 1>&6 | |
5646 | fi | |
5647 | ||
5648 | ||
5649 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
a1622950 | 5650 | echo "configure:5651: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5651 | no_cache=0 |
5652 | # Check whether --enable-caret or --disable-caret was given. | |
5653 | if test "${enable_caret+set}" = set; then | |
5654 | enableval="$enable_caret" | |
5655 | ||
5656 | if test "$enableval" = yes; then | |
5657 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5658 | else | |
5659 | ac_cv_use_caret='wxUSE_CARET=no' | |
5660 | fi | |
5661 | ||
5662 | else | |
5663 | ||
5664 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5665 | if test "x$LINE" != x ; then | |
5666 | eval "DEFAULT_$LINE" | |
5667 | else | |
5668 | no_cache=1 | |
5669 | fi | |
5670 | ||
5671 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5672 | ||
5673 | fi | |
5674 | ||
5675 | ||
5676 | eval "$ac_cv_use_caret" | |
5677 | if test "$no_cache" != 1; then | |
5678 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5679 | fi | |
5680 | ||
5681 | if test "$wxUSE_CARET" = yes; then | |
5682 | echo "$ac_t""yes" 1>&6 | |
5683 | else | |
5684 | echo "$ac_t""no" 1>&6 | |
5685 | fi | |
5686 | ||
5687 | ||
698dcdb6 | 5688 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
a1622950 | 5689 | echo "configure:5690: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5690 | no_cache=0 |
5691 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5692 | if test "${enable_checkbox+set}" = set; then | |
5693 | enableval="$enable_checkbox" | |
698dcdb6 | 5694 | |
10f2d63a VZ |
5695 | if test "$enableval" = yes; then |
5696 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5697 | else | |
5698 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5699 | fi | |
698dcdb6 | 5700 | |
10f2d63a | 5701 | else |
698dcdb6 | 5702 | |
10f2d63a VZ |
5703 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5704 | if test "x$LINE" != x ; then | |
5705 | eval "DEFAULT_$LINE" | |
5706 | else | |
5707 | no_cache=1 | |
5708 | fi | |
5709 | ||
5710 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5711 | |
5712 | fi | |
10f2d63a VZ |
5713 | |
5714 | ||
5715 | eval "$ac_cv_use_checkbox" | |
5716 | if test "$no_cache" != 1; then | |
5717 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5718 | fi | |
5719 | ||
5720 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5722 | else |
698dcdb6 | 5723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5724 | fi |
698dcdb6 | 5725 | |
10f2d63a | 5726 | |
698dcdb6 | 5727 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
a1622950 | 5728 | echo "configure:5729: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5729 | no_cache=0 |
5730 | # Check whether --enable-checklst or --disable-checklst was given. | |
5731 | if test "${enable_checklst+set}" = set; then | |
5732 | enableval="$enable_checklst" | |
698dcdb6 | 5733 | |
10f2d63a VZ |
5734 | if test "$enableval" = yes; then |
5735 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5736 | else | |
5737 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5738 | fi | |
698dcdb6 | 5739 | |
10f2d63a | 5740 | else |
698dcdb6 | 5741 | |
10f2d63a VZ |
5742 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5743 | if test "x$LINE" != x ; then | |
5744 | eval "DEFAULT_$LINE" | |
5745 | else | |
5746 | no_cache=1 | |
5747 | fi | |
5748 | ||
5749 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5750 | |
5751 | fi | |
10f2d63a VZ |
5752 | |
5753 | ||
5754 | eval "$ac_cv_use_checklst" | |
5755 | if test "$no_cache" != 1; then | |
5756 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5757 | fi | |
5758 | ||
5759 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5760 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5761 | else |
698dcdb6 | 5762 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5763 | fi |
698dcdb6 | 5764 | |
10f2d63a | 5765 | |
698dcdb6 | 5766 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
a1622950 | 5767 | echo "configure:5768: checking for --enable-choice" >&5 |
10f2d63a VZ |
5768 | no_cache=0 |
5769 | # Check whether --enable-choice or --disable-choice was given. | |
5770 | if test "${enable_choice+set}" = set; then | |
5771 | enableval="$enable_choice" | |
698dcdb6 | 5772 | |
10f2d63a VZ |
5773 | if test "$enableval" = yes; then |
5774 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5775 | else | |
5776 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5777 | fi | |
698dcdb6 | 5778 | |
10f2d63a | 5779 | else |
698dcdb6 | 5780 | |
10f2d63a VZ |
5781 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5782 | if test "x$LINE" != x ; then | |
5783 | eval "DEFAULT_$LINE" | |
5784 | else | |
5785 | no_cache=1 | |
5786 | fi | |
5787 | ||
5788 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5789 | |
5790 | fi | |
10f2d63a VZ |
5791 | |
5792 | ||
5793 | eval "$ac_cv_use_choice" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5800 | else |
698dcdb6 | 5801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5802 | fi |
698dcdb6 | 5803 | |
10f2d63a | 5804 | |
698dcdb6 | 5805 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
a1622950 | 5806 | echo "configure:5807: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5807 | no_cache=0 |
5808 | # Check whether --enable-combobox or --disable-combobox was given. | |
5809 | if test "${enable_combobox+set}" = set; then | |
5810 | enableval="$enable_combobox" | |
698dcdb6 | 5811 | |
10f2d63a VZ |
5812 | if test "$enableval" = yes; then |
5813 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5814 | else | |
5815 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5816 | fi | |
698dcdb6 | 5817 | |
10f2d63a | 5818 | else |
698dcdb6 | 5819 | |
10f2d63a VZ |
5820 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5821 | if test "x$LINE" != x ; then | |
5822 | eval "DEFAULT_$LINE" | |
5823 | else | |
5824 | no_cache=1 | |
5825 | fi | |
5826 | ||
5827 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5828 | |
5829 | fi | |
10f2d63a VZ |
5830 | |
5831 | ||
5832 | eval "$ac_cv_use_combobox" | |
5833 | if test "$no_cache" != 1; then | |
5834 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5835 | fi | |
5836 | ||
5837 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5838 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5839 | else |
698dcdb6 | 5840 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5841 | fi |
698dcdb6 | 5842 | |
10f2d63a | 5843 | |
698dcdb6 | 5844 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
a1622950 | 5845 | echo "configure:5846: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5846 | no_cache=0 |
5847 | # Check whether --enable-gauge or --disable-gauge was given. | |
5848 | if test "${enable_gauge+set}" = set; then | |
5849 | enableval="$enable_gauge" | |
698dcdb6 | 5850 | |
10f2d63a VZ |
5851 | if test "$enableval" = yes; then |
5852 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5853 | else | |
5854 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5855 | fi | |
698dcdb6 | 5856 | |
10f2d63a | 5857 | else |
698dcdb6 | 5858 | |
10f2d63a VZ |
5859 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5860 | if test "x$LINE" != x ; then | |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
5866 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5867 | |
5868 | fi | |
10f2d63a VZ |
5869 | |
5870 | ||
5871 | eval "$ac_cv_use_gauge" | |
5872 | if test "$no_cache" != 1; then | |
5873 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5874 | fi | |
5875 | ||
5876 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5877 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5878 | else |
698dcdb6 | 5879 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5880 | fi |
698dcdb6 | 5881 | |
10f2d63a | 5882 | |
698dcdb6 | 5883 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
a1622950 | 5884 | echo "configure:5885: checking for --enable-grid" >&5 |
10f2d63a VZ |
5885 | no_cache=0 |
5886 | # Check whether --enable-grid or --disable-grid was given. | |
5887 | if test "${enable_grid+set}" = set; then | |
5888 | enableval="$enable_grid" | |
698dcdb6 | 5889 | |
10f2d63a VZ |
5890 | if test "$enableval" = yes; then |
5891 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5892 | else | |
5893 | ac_cv_use_grid='wxUSE_GRID=no' | |
5894 | fi | |
698dcdb6 | 5895 | |
10f2d63a | 5896 | else |
698dcdb6 | 5897 | |
10f2d63a VZ |
5898 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5899 | if test "x$LINE" != x ; then | |
5900 | eval "DEFAULT_$LINE" | |
5901 | else | |
5902 | no_cache=1 | |
5903 | fi | |
5904 | ||
5905 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5906 | |
5907 | fi | |
10f2d63a VZ |
5908 | |
5909 | ||
5910 | eval "$ac_cv_use_grid" | |
5911 | if test "$no_cache" != 1; then | |
5912 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5913 | fi | |
5914 | ||
5915 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5917 | else |
698dcdb6 | 5918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5919 | fi |
698dcdb6 | 5920 | |
10f2d63a | 5921 | |
698dcdb6 | 5922 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
a1622950 | 5923 | echo "configure:5924: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5924 | no_cache=0 |
5925 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5926 | if test "${enable_newgrid+set}" = set; then | |
5927 | enableval="$enable_newgrid" | |
698dcdb6 | 5928 | |
10f2d63a VZ |
5929 | if test "$enableval" = yes; then |
5930 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5931 | else | |
5932 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5933 | fi | |
698dcdb6 | 5934 | |
10f2d63a | 5935 | else |
698dcdb6 | 5936 | |
10f2d63a VZ |
5937 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5938 | if test "x$LINE" != x ; then | |
5939 | eval "DEFAULT_$LINE" | |
5940 | else | |
5941 | no_cache=1 | |
5942 | fi | |
5943 | ||
5944 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5945 | |
5946 | fi | |
10f2d63a VZ |
5947 | |
5948 | ||
5949 | eval "$ac_cv_use_newgrid" | |
5950 | if test "$no_cache" != 1; then | |
5951 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5952 | fi | |
5953 | ||
5954 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5955 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5956 | else |
698dcdb6 | 5957 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5958 | fi |
698dcdb6 | 5959 | |
10f2d63a | 5960 | |
698dcdb6 | 5961 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
a1622950 | 5962 | echo "configure:5963: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5963 | no_cache=0 |
5964 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5965 | if test "${enable_imaglist+set}" = set; then | |
5966 | enableval="$enable_imaglist" | |
698dcdb6 | 5967 | |
10f2d63a VZ |
5968 | if test "$enableval" = yes; then |
5969 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5970 | else | |
5971 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5972 | fi | |
698dcdb6 | 5973 | |
10f2d63a | 5974 | else |
698dcdb6 | 5975 | |
10f2d63a VZ |
5976 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5977 | if test "x$LINE" != x ; then | |
5978 | eval "DEFAULT_$LINE" | |
5979 | else | |
5980 | no_cache=1 | |
5981 | fi | |
5982 | ||
5983 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5984 | |
5985 | fi | |
10f2d63a VZ |
5986 | |
5987 | ||
5988 | eval "$ac_cv_use_imaglist" | |
5989 | if test "$no_cache" != 1; then | |
5990 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5991 | fi | |
5992 | ||
5993 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5994 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5995 | else |
698dcdb6 | 5996 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5997 | fi |
698dcdb6 | 5998 | |
10f2d63a | 5999 | |
698dcdb6 | 6000 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
a1622950 | 6001 | echo "configure:6002: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6002 | no_cache=0 |
6003 | # Check whether --enable-listbox or --disable-listbox was given. | |
6004 | if test "${enable_listbox+set}" = set; then | |
6005 | enableval="$enable_listbox" | |
698dcdb6 | 6006 | |
10f2d63a VZ |
6007 | if test "$enableval" = yes; then |
6008 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6009 | else | |
6010 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6011 | fi | |
698dcdb6 | 6012 | |
10f2d63a | 6013 | else |
698dcdb6 | 6014 | |
10f2d63a VZ |
6015 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6016 | if test "x$LINE" != x ; then | |
6017 | eval "DEFAULT_$LINE" | |
6018 | else | |
6019 | no_cache=1 | |
6020 | fi | |
6021 | ||
6022 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6023 | |
6024 | fi | |
10f2d63a VZ |
6025 | |
6026 | ||
6027 | eval "$ac_cv_use_listbox" | |
6028 | if test "$no_cache" != 1; then | |
6029 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6030 | fi | |
6031 | ||
6032 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6033 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6034 | else |
698dcdb6 | 6035 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6036 | fi |
698dcdb6 | 6037 | |
10f2d63a | 6038 | |
698dcdb6 | 6039 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
a1622950 | 6040 | echo "configure:6041: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6041 | no_cache=0 |
6042 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6043 | if test "${enable_listctrl+set}" = set; then | |
6044 | enableval="$enable_listctrl" | |
698dcdb6 | 6045 | |
10f2d63a VZ |
6046 | if test "$enableval" = yes; then |
6047 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6048 | else | |
6049 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6050 | fi | |
698dcdb6 | 6051 | |
10f2d63a | 6052 | else |
698dcdb6 | 6053 | |
10f2d63a VZ |
6054 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6055 | if test "x$LINE" != x ; then | |
6056 | eval "DEFAULT_$LINE" | |
6057 | else | |
6058 | no_cache=1 | |
6059 | fi | |
6060 | ||
6061 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6062 | |
6063 | fi | |
10f2d63a VZ |
6064 | |
6065 | ||
6066 | eval "$ac_cv_use_listctrl" | |
6067 | if test "$no_cache" != 1; then | |
6068 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6069 | fi | |
6070 | ||
6071 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6072 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6073 | else |
698dcdb6 | 6074 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6075 | fi |
698dcdb6 | 6076 | |
10f2d63a | 6077 | |
698dcdb6 | 6078 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
a1622950 | 6079 | echo "configure:6080: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6080 | no_cache=0 |
6081 | # Check whether --enable-notebook or --disable-notebook was given. | |
6082 | if test "${enable_notebook+set}" = set; then | |
6083 | enableval="$enable_notebook" | |
698dcdb6 | 6084 | |
10f2d63a VZ |
6085 | if test "$enableval" = yes; then |
6086 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6087 | else | |
6088 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6089 | fi | |
698dcdb6 | 6090 | |
10f2d63a | 6091 | else |
698dcdb6 | 6092 | |
10f2d63a VZ |
6093 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6094 | if test "x$LINE" != x ; then | |
6095 | eval "DEFAULT_$LINE" | |
6096 | else | |
6097 | no_cache=1 | |
6098 | fi | |
6099 | ||
6100 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6101 | |
6102 | fi | |
10f2d63a VZ |
6103 | |
6104 | ||
6105 | eval "$ac_cv_use_notebook" | |
6106 | if test "$no_cache" != 1; then | |
6107 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6108 | fi | |
6109 | ||
6110 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6111 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6112 | else |
698dcdb6 | 6113 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6114 | fi |
698dcdb6 | 6115 | |
10f2d63a | 6116 | |
24176f2c | 6117 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
a1622950 | 6118 | echo "configure:6119: checking for --enable-propsheet" >&5 |
24176f2c GD |
6119 | no_cache=0 |
6120 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6121 | if test "${enable_propsheet+set}" = set; then | |
6122 | enableval="$enable_propsheet" | |
6123 | ||
6124 | if test "$enableval" = yes; then | |
6125 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6126 | else | |
6127 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6128 | fi | |
6129 | ||
6130 | else | |
6131 | ||
6132 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6133 | if test "x$LINE" != x ; then | |
6134 | eval "DEFAULT_$LINE" | |
6135 | else | |
6136 | no_cache=1 | |
6137 | fi | |
6138 | ||
6139 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6140 | ||
6141 | fi | |
6142 | ||
6143 | ||
6144 | eval "$ac_cv_use_propsheet" | |
6145 | if test "$no_cache" != 1; then | |
6146 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6147 | fi | |
6148 | ||
6149 | if test "$wxUSE_PROPSHEET" = yes; then | |
6150 | echo "$ac_t""yes" 1>&6 | |
6151 | else | |
6152 | echo "$ac_t""no" 1>&6 | |
6153 | fi | |
6154 | ||
6155 | ||
698dcdb6 | 6156 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
a1622950 | 6157 | echo "configure:6158: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6158 | no_cache=0 |
6159 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6160 | if test "${enable_radiobox+set}" = set; then | |
6161 | enableval="$enable_radiobox" | |
698dcdb6 | 6162 | |
10f2d63a VZ |
6163 | if test "$enableval" = yes; then |
6164 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6165 | else | |
6166 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6167 | fi | |
698dcdb6 | 6168 | |
10f2d63a | 6169 | else |
698dcdb6 | 6170 | |
10f2d63a VZ |
6171 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6172 | if test "x$LINE" != x ; then | |
6173 | eval "DEFAULT_$LINE" | |
6174 | else | |
6175 | no_cache=1 | |
6176 | fi | |
6177 | ||
6178 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6179 | |
6180 | fi | |
10f2d63a VZ |
6181 | |
6182 | ||
6183 | eval "$ac_cv_use_radiobox" | |
6184 | if test "$no_cache" != 1; then | |
6185 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6186 | fi | |
6187 | ||
6188 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6190 | else |
698dcdb6 | 6191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6192 | fi |
698dcdb6 | 6193 | |
10f2d63a | 6194 | |
698dcdb6 | 6195 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
a1622950 | 6196 | echo "configure:6197: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6197 | no_cache=0 |
6198 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6199 | if test "${enable_radiobtn+set}" = set; then | |
6200 | enableval="$enable_radiobtn" | |
698dcdb6 | 6201 | |
10f2d63a VZ |
6202 | if test "$enableval" = yes; then |
6203 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6204 | else | |
6205 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6206 | fi | |
698dcdb6 | 6207 | |
10f2d63a | 6208 | else |
698dcdb6 | 6209 | |
10f2d63a VZ |
6210 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6211 | if test "x$LINE" != x ; then | |
6212 | eval "DEFAULT_$LINE" | |
6213 | else | |
6214 | no_cache=1 | |
6215 | fi | |
6216 | ||
6217 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6218 | |
6219 | fi | |
10f2d63a VZ |
6220 | |
6221 | ||
6222 | eval "$ac_cv_use_radiobtn" | |
6223 | if test "$no_cache" != 1; then | |
6224 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6225 | fi | |
6226 | ||
6227 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6228 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6229 | else |
698dcdb6 | 6230 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6231 | fi |
698dcdb6 | 6232 | |
10f2d63a | 6233 | |
698dcdb6 | 6234 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
a1622950 | 6235 | echo "configure:6236: checking for --enable-sash" >&5 |
10f2d63a VZ |
6236 | no_cache=0 |
6237 | # Check whether --enable-sash or --disable-sash was given. | |
6238 | if test "${enable_sash+set}" = set; then | |
6239 | enableval="$enable_sash" | |
698dcdb6 | 6240 | |
10f2d63a VZ |
6241 | if test "$enableval" = yes; then |
6242 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6243 | else | |
6244 | ac_cv_use_sash='wxUSE_SASH=no' | |
6245 | fi | |
698dcdb6 | 6246 | |
10f2d63a | 6247 | else |
698dcdb6 | 6248 | |
10f2d63a VZ |
6249 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6250 | if test "x$LINE" != x ; then | |
6251 | eval "DEFAULT_$LINE" | |
6252 | else | |
6253 | no_cache=1 | |
6254 | fi | |
6255 | ||
6256 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6257 | |
6258 | fi | |
10f2d63a VZ |
6259 | |
6260 | ||
6261 | eval "$ac_cv_use_sash" | |
6262 | if test "$no_cache" != 1; then | |
6263 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6264 | fi | |
6265 | ||
6266 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6268 | else |
698dcdb6 | 6269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6270 | fi |
698dcdb6 | 6271 | |
10f2d63a | 6272 | |
698dcdb6 | 6273 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
a1622950 | 6274 | echo "configure:6275: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6275 | no_cache=0 |
6276 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6277 | if test "${enable_scrollbar+set}" = set; then | |
6278 | enableval="$enable_scrollbar" | |
698dcdb6 | 6279 | |
10f2d63a VZ |
6280 | if test "$enableval" = yes; then |
6281 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6282 | else | |
6283 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6284 | fi | |
698dcdb6 | 6285 | |
10f2d63a | 6286 | else |
698dcdb6 | 6287 | |
10f2d63a VZ |
6288 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6289 | if test "x$LINE" != x ; then | |
6290 | eval "DEFAULT_$LINE" | |
6291 | else | |
6292 | no_cache=1 | |
6293 | fi | |
6294 | ||
6295 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6296 | |
6297 | fi | |
10f2d63a VZ |
6298 | |
6299 | ||
6300 | eval "$ac_cv_use_scrollbar" | |
6301 | if test "$no_cache" != 1; then | |
6302 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6303 | fi | |
6304 | ||
6305 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6307 | else |
698dcdb6 | 6308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6309 | fi |
698dcdb6 | 6310 | |
10f2d63a | 6311 | |
698dcdb6 | 6312 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
a1622950 | 6313 | echo "configure:6314: checking for --enable-slider" >&5 |
10f2d63a VZ |
6314 | no_cache=0 |
6315 | # Check whether --enable-slider or --disable-slider was given. | |
6316 | if test "${enable_slider+set}" = set; then | |
6317 | enableval="$enable_slider" | |
698dcdb6 | 6318 | |
10f2d63a VZ |
6319 | if test "$enableval" = yes; then |
6320 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6321 | else | |
6322 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6323 | fi | |
698dcdb6 | 6324 | |
10f2d63a | 6325 | else |
698dcdb6 | 6326 | |
10f2d63a VZ |
6327 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6328 | if test "x$LINE" != x ; then | |
6329 | eval "DEFAULT_$LINE" | |
6330 | else | |
6331 | no_cache=1 | |
6332 | fi | |
6333 | ||
6334 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6335 | |
6336 | fi | |
10f2d63a VZ |
6337 | |
6338 | ||
6339 | eval "$ac_cv_use_slider" | |
6340 | if test "$no_cache" != 1; then | |
6341 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6342 | fi | |
6343 | ||
6344 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6345 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6346 | else |
698dcdb6 | 6347 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6348 | fi |
698dcdb6 | 6349 | |
10f2d63a | 6350 | |
698dcdb6 | 6351 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
a1622950 | 6352 | echo "configure:6353: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6353 | no_cache=0 |
6354 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6355 | if test "${enable_spinbtn+set}" = set; then | |
6356 | enableval="$enable_spinbtn" | |
698dcdb6 | 6357 | |
10f2d63a VZ |
6358 | if test "$enableval" = yes; then |
6359 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6360 | else | |
6361 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6362 | fi | |
698dcdb6 | 6363 | |
10f2d63a | 6364 | else |
698dcdb6 | 6365 | |
10f2d63a VZ |
6366 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6367 | if test "x$LINE" != x ; then | |
6368 | eval "DEFAULT_$LINE" | |
6369 | else | |
6370 | no_cache=1 | |
6371 | fi | |
6372 | ||
6373 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6374 | |
6375 | fi | |
10f2d63a VZ |
6376 | |
6377 | ||
6378 | eval "$ac_cv_use_spinbtn" | |
6379 | if test "$no_cache" != 1; then | |
6380 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6381 | fi | |
6382 | ||
6383 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6385 | else |
698dcdb6 | 6386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6387 | fi |
698dcdb6 | 6388 | |
10f2d63a | 6389 | |
698dcdb6 | 6390 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
a1622950 | 6391 | echo "configure:6392: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6392 | no_cache=0 |
6393 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6394 | if test "${enable_spinctrl+set}" = set; then | |
6395 | enableval="$enable_spinctrl" | |
698dcdb6 | 6396 | |
56cfaa52 RR |
6397 | if test "$enableval" = yes; then |
6398 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6399 | else | |
6400 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6401 | fi | |
698dcdb6 | 6402 | |
56cfaa52 | 6403 | else |
698dcdb6 | 6404 | |
56cfaa52 RR |
6405 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6406 | if test "x$LINE" != x ; then | |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
6412 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6413 | |
6414 | fi | |
56cfaa52 RR |
6415 | |
6416 | ||
6417 | eval "$ac_cv_use_spinctrl" | |
6418 | if test "$no_cache" != 1; then | |
6419 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6420 | fi | |
6421 | ||
6422 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6423 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6424 | else |
698dcdb6 | 6425 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6426 | fi |
698dcdb6 | 6427 | |
56cfaa52 | 6428 | |
698dcdb6 | 6429 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
a1622950 | 6430 | echo "configure:6431: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6431 | no_cache=0 |
6432 | # Check whether --enable-splitter or --disable-splitter was given. | |
6433 | if test "${enable_splitter+set}" = set; then | |
6434 | enableval="$enable_splitter" | |
698dcdb6 | 6435 | |
10f2d63a VZ |
6436 | if test "$enableval" = yes; then |
6437 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6438 | else | |
6439 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6440 | fi | |
698dcdb6 | 6441 | |
10f2d63a | 6442 | else |
698dcdb6 | 6443 | |
10f2d63a VZ |
6444 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6445 | if test "x$LINE" != x ; then | |
6446 | eval "DEFAULT_$LINE" | |
6447 | else | |
6448 | no_cache=1 | |
6449 | fi | |
6450 | ||
6451 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6452 | |
6453 | fi | |
10f2d63a VZ |
6454 | |
6455 | ||
6456 | eval "$ac_cv_use_splitter" | |
6457 | if test "$no_cache" != 1; then | |
6458 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6459 | fi | |
6460 | ||
6461 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6462 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6463 | else |
698dcdb6 | 6464 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6465 | fi |
698dcdb6 | 6466 | |
10f2d63a | 6467 | |
698dcdb6 | 6468 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
a1622950 | 6469 | echo "configure:6470: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6470 | no_cache=0 |
6471 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6472 | if test "${enable_statbmp+set}" = set; then | |
6473 | enableval="$enable_statbmp" | |
698dcdb6 | 6474 | |
10f2d63a VZ |
6475 | if test "$enableval" = yes; then |
6476 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6477 | else | |
6478 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6479 | fi | |
698dcdb6 | 6480 | |
10f2d63a | 6481 | else |
698dcdb6 | 6482 | |
10f2d63a VZ |
6483 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6484 | if test "x$LINE" != x ; then | |
6485 | eval "DEFAULT_$LINE" | |
6486 | else | |
6487 | no_cache=1 | |
6488 | fi | |
6489 | ||
6490 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6491 | |
6492 | fi | |
10f2d63a VZ |
6493 | |
6494 | ||
6495 | eval "$ac_cv_use_statbmp" | |
6496 | if test "$no_cache" != 1; then | |
6497 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6498 | fi | |
6499 | ||
6500 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6502 | else |
698dcdb6 | 6503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6504 | fi |
698dcdb6 | 6505 | |
10f2d63a | 6506 | |
698dcdb6 | 6507 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
a1622950 | 6508 | echo "configure:6509: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6509 | no_cache=0 |
6510 | # Check whether --enable-statbox or --disable-statbox was given. | |
6511 | if test "${enable_statbox+set}" = set; then | |
6512 | enableval="$enable_statbox" | |
698dcdb6 | 6513 | |
10f2d63a VZ |
6514 | if test "$enableval" = yes; then |
6515 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6516 | else | |
6517 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6518 | fi | |
698dcdb6 | 6519 | |
10f2d63a | 6520 | else |
698dcdb6 | 6521 | |
10f2d63a VZ |
6522 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6523 | if test "x$LINE" != x ; then | |
6524 | eval "DEFAULT_$LINE" | |
6525 | else | |
6526 | no_cache=1 | |
6527 | fi | |
6528 | ||
6529 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6530 | |
6531 | fi | |
10f2d63a VZ |
6532 | |
6533 | ||
6534 | eval "$ac_cv_use_statbox" | |
6535 | if test "$no_cache" != 1; then | |
6536 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6537 | fi | |
6538 | ||
6539 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6540 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6541 | else |
698dcdb6 | 6542 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6543 | fi |
698dcdb6 | 6544 | |
10f2d63a | 6545 | |
698dcdb6 | 6546 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
a1622950 | 6547 | echo "configure:6548: checking for --enable-statline" >&5 |
10f2d63a VZ |
6548 | no_cache=0 |
6549 | # Check whether --enable-statline or --disable-statline was given. | |
6550 | if test "${enable_statline+set}" = set; then | |
6551 | enableval="$enable_statline" | |
698dcdb6 | 6552 | |
10f2d63a VZ |
6553 | if test "$enableval" = yes; then |
6554 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6555 | else | |
6556 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6557 | fi | |
698dcdb6 | 6558 | |
10f2d63a | 6559 | else |
698dcdb6 | 6560 | |
10f2d63a VZ |
6561 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6562 | if test "x$LINE" != x ; then | |
6563 | eval "DEFAULT_$LINE" | |
6564 | else | |
6565 | no_cache=1 | |
6566 | fi | |
6567 | ||
6568 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6569 | |
6570 | fi | |
10f2d63a VZ |
6571 | |
6572 | ||
6573 | eval "$ac_cv_use_statline" | |
6574 | if test "$no_cache" != 1; then | |
6575 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6576 | fi | |
6577 | ||
6578 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6580 | else |
698dcdb6 | 6581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6582 | fi |
698dcdb6 | 6583 | |
10f2d63a | 6584 | |
1e6feb95 | 6585 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
a1622950 | 6586 | echo "configure:6587: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6587 | no_cache=0 |
6588 | # Check whether --enable-stattext or --disable-stattext was given. | |
6589 | if test "${enable_stattext+set}" = set; then | |
6590 | enableval="$enable_stattext" | |
6591 | ||
6592 | if test "$enableval" = yes; then | |
6593 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6594 | else | |
6595 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6596 | fi | |
6597 | ||
6598 | else | |
6599 | ||
6600 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6601 | if test "x$LINE" != x ; then | |
6602 | eval "DEFAULT_$LINE" | |
6603 | else | |
6604 | no_cache=1 | |
6605 | fi | |
6606 | ||
6607 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6608 | ||
6609 | fi | |
6610 | ||
6611 | ||
6612 | eval "$ac_cv_use_stattext" | |
6613 | if test "$no_cache" != 1; then | |
6614 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6615 | fi | |
6616 | ||
6617 | if test "$wxUSE_STATTEXT" = yes; then | |
6618 | echo "$ac_t""yes" 1>&6 | |
6619 | else | |
6620 | echo "$ac_t""no" 1>&6 | |
6621 | fi | |
6622 | ||
6623 | ||
698dcdb6 | 6624 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
a1622950 | 6625 | echo "configure:6626: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6626 | no_cache=0 |
6627 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6628 | if test "${enable_statusbar+set}" = set; then | |
6629 | enableval="$enable_statusbar" | |
698dcdb6 | 6630 | |
10f2d63a VZ |
6631 | if test "$enableval" = yes; then |
6632 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6633 | else | |
6634 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6635 | fi | |
698dcdb6 | 6636 | |
10f2d63a | 6637 | else |
698dcdb6 | 6638 | |
10f2d63a VZ |
6639 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6640 | if test "x$LINE" != x ; then | |
6641 | eval "DEFAULT_$LINE" | |
6642 | else | |
6643 | no_cache=1 | |
6644 | fi | |
6645 | ||
6646 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6647 | |
6648 | fi | |
10f2d63a VZ |
6649 | |
6650 | ||
6651 | eval "$ac_cv_use_statusbar" | |
6652 | if test "$no_cache" != 1; then | |
6653 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6654 | fi | |
6655 | ||
6656 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6658 | else |
698dcdb6 | 6659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6660 | fi |
698dcdb6 | 6661 | |
10f2d63a | 6662 | |
698dcdb6 | 6663 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
a1622950 | 6664 | echo "configure:6665: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6665 | no_cache=0 |
6666 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6667 | if test "${enable_tabdialog+set}" = set; then | |
6668 | enableval="$enable_tabdialog" | |
698dcdb6 | 6669 | |
10f2d63a VZ |
6670 | if test "$enableval" = yes; then |
6671 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6672 | else | |
6673 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6674 | fi | |
698dcdb6 | 6675 | |
10f2d63a | 6676 | else |
698dcdb6 | 6677 | |
10f2d63a VZ |
6678 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6679 | if test "x$LINE" != x ; then | |
6680 | eval "DEFAULT_$LINE" | |
6681 | else | |
6682 | no_cache=1 | |
6683 | fi | |
6684 | ||
6685 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6686 | |
6687 | fi | |
10f2d63a VZ |
6688 | |
6689 | ||
6690 | eval "$ac_cv_use_tabdialog" | |
6691 | if test "$no_cache" != 1; then | |
6692 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6693 | fi | |
6694 | ||
6695 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6697 | else |
698dcdb6 | 6698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6699 | fi |
698dcdb6 | 6700 | |
10f2d63a | 6701 | |
1e6feb95 | 6702 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
a1622950 | 6703 | echo "configure:6704: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6704 | no_cache=0 |
6705 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6706 | if test "${enable_textctrl+set}" = set; then | |
6707 | enableval="$enable_textctrl" | |
6708 | ||
6709 | if test "$enableval" = yes; then | |
6710 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6711 | else | |
6712 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6713 | fi | |
6714 | ||
6715 | else | |
6716 | ||
6717 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6718 | if test "x$LINE" != x ; then | |
6719 | eval "DEFAULT_$LINE" | |
6720 | else | |
6721 | no_cache=1 | |
6722 | fi | |
6723 | ||
6724 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6725 | ||
6726 | fi | |
6727 | ||
6728 | ||
6729 | eval "$ac_cv_use_textctrl" | |
6730 | if test "$no_cache" != 1; then | |
6731 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6732 | fi | |
6733 | ||
6734 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6735 | echo "$ac_t""yes" 1>&6 | |
6736 | else | |
6737 | echo "$ac_t""no" 1>&6 | |
6738 | fi | |
6739 | ||
6740 | ||
698dcdb6 | 6741 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
a1622950 | 6742 | echo "configure:6743: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6743 | no_cache=0 |
6744 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6745 | if test "${enable_togglebtn+set}" = set; then | |
6746 | enableval="$enable_togglebtn" | |
698dcdb6 | 6747 | |
1db8dc4a VZ |
6748 | if test "$enableval" = yes; then |
6749 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6750 | else | |
6751 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6752 | fi | |
698dcdb6 | 6753 | |
1db8dc4a | 6754 | else |
698dcdb6 | 6755 | |
1db8dc4a VZ |
6756 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6757 | if test "x$LINE" != x ; then | |
6758 | eval "DEFAULT_$LINE" | |
6759 | else | |
6760 | no_cache=1 | |
6761 | fi | |
6762 | ||
6763 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6764 | |
6765 | fi | |
1db8dc4a VZ |
6766 | |
6767 | ||
6768 | eval "$ac_cv_use_togglebtn" | |
6769 | if test "$no_cache" != 1; then | |
6770 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6771 | fi | |
6772 | ||
6773 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6774 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6775 | else |
698dcdb6 | 6776 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6777 | fi |
698dcdb6 | 6778 | |
1db8dc4a | 6779 | |
698dcdb6 | 6780 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
a1622950 | 6781 | echo "configure:6782: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6782 | no_cache=0 |
6783 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6784 | if test "${enable_toolbar+set}" = set; then | |
6785 | enableval="$enable_toolbar" | |
698dcdb6 | 6786 | |
10f2d63a VZ |
6787 | if test "$enableval" = yes; then |
6788 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6789 | else | |
6790 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6791 | fi | |
698dcdb6 | 6792 | |
10f2d63a | 6793 | else |
698dcdb6 | 6794 | |
10f2d63a VZ |
6795 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6796 | if test "x$LINE" != x ; then | |
6797 | eval "DEFAULT_$LINE" | |
6798 | else | |
6799 | no_cache=1 | |
6800 | fi | |
6801 | ||
6802 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6803 | |
6804 | fi | |
10f2d63a VZ |
6805 | |
6806 | ||
6807 | eval "$ac_cv_use_toolbar" | |
6808 | if test "$no_cache" != 1; then | |
6809 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6810 | fi | |
6811 | ||
6812 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6813 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6814 | else |
698dcdb6 | 6815 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6816 | fi |
698dcdb6 | 6817 | |
10f2d63a | 6818 | |
698dcdb6 | 6819 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
a1622950 | 6820 | echo "configure:6821: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6821 | no_cache=0 |
6822 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6823 | if test "${enable_tbarnative+set}" = set; then | |
6824 | enableval="$enable_tbarnative" | |
698dcdb6 | 6825 | |
360d6699 VZ |
6826 | if test "$enableval" = yes; then |
6827 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6828 | else | |
6829 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6830 | fi | |
698dcdb6 | 6831 | |
360d6699 | 6832 | else |
698dcdb6 | 6833 | |
360d6699 VZ |
6834 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6835 | if test "x$LINE" != x ; then | |
6836 | eval "DEFAULT_$LINE" | |
6837 | else | |
6838 | no_cache=1 | |
6839 | fi | |
6840 | ||
6841 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6842 | |
6843 | fi | |
360d6699 VZ |
6844 | |
6845 | ||
6846 | eval "$ac_cv_use_tbarnative" | |
6847 | if test "$no_cache" != 1; then | |
6848 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6849 | fi | |
6850 | ||
6851 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6852 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6853 | else |
698dcdb6 | 6854 | echo "$ac_t""no" 1>&6 |
360d6699 | 6855 | fi |
698dcdb6 | 6856 | |
360d6699 | 6857 | |
698dcdb6 | 6858 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
a1622950 | 6859 | echo "configure:6860: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6860 | no_cache=0 |
6861 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6862 | if test "${enable_tbarsmpl+set}" = set; then | |
6863 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6864 | |
360d6699 VZ |
6865 | if test "$enableval" = yes; then |
6866 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6867 | else | |
6868 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6869 | fi | |
698dcdb6 | 6870 | |
360d6699 | 6871 | else |
698dcdb6 | 6872 | |
360d6699 VZ |
6873 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6874 | if test "x$LINE" != x ; then | |
6875 | eval "DEFAULT_$LINE" | |
6876 | else | |
6877 | no_cache=1 | |
6878 | fi | |
6879 | ||
6880 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6881 | |
6882 | fi | |
360d6699 VZ |
6883 | |
6884 | ||
6885 | eval "$ac_cv_use_tbarsmpl" | |
6886 | if test "$no_cache" != 1; then | |
6887 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6888 | fi | |
6889 | ||
6890 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6891 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6892 | else |
698dcdb6 | 6893 | echo "$ac_t""no" 1>&6 |
360d6699 | 6894 | fi |
698dcdb6 | 6895 | |
360d6699 | 6896 | |
698dcdb6 | 6897 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
a1622950 | 6898 | echo "configure:6899: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6899 | no_cache=0 |
6900 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6901 | if test "${enable_treectrl+set}" = set; then | |
6902 | enableval="$enable_treectrl" | |
698dcdb6 | 6903 | |
10f2d63a VZ |
6904 | if test "$enableval" = yes; then |
6905 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6906 | else | |
6907 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6908 | fi | |
698dcdb6 | 6909 | |
10f2d63a | 6910 | else |
698dcdb6 | 6911 | |
10f2d63a VZ |
6912 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6913 | if test "x$LINE" != x ; then | |
6914 | eval "DEFAULT_$LINE" | |
6915 | else | |
6916 | no_cache=1 | |
6917 | fi | |
6918 | ||
6919 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6920 | |
6921 | fi | |
10f2d63a VZ |
6922 | |
6923 | ||
1e6feb95 VZ |
6924 | eval "$ac_cv_use_treectrl" |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_TREECTRL" = yes; then | |
6930 | echo "$ac_t""yes" 1>&6 | |
6931 | else | |
6932 | echo "$ac_t""no" 1>&6 | |
6933 | fi | |
6934 | ||
6935 | ||
9926e4a4 | 6936 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
a1622950 | 6937 | echo "configure:6938: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
6938 | no_cache=0 |
6939 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
6940 | if test "${enable_tipwindow+set}" = set; then | |
6941 | enableval="$enable_tipwindow" | |
6942 | ||
6943 | if test "$enableval" = yes; then | |
6944 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
6945 | else | |
6946 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
6947 | fi | |
6948 | ||
6949 | else | |
6950 | ||
6951 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
6952 | if test "x$LINE" != x ; then | |
6953 | eval "DEFAULT_$LINE" | |
6954 | else | |
6955 | no_cache=1 | |
6956 | fi | |
6957 | ||
6958 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
6959 | ||
6960 | fi | |
6961 | ||
6962 | ||
6963 | eval "$ac_cv_use_tipwindow" | |
6964 | if test "$no_cache" != 1; then | |
6965 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
6966 | fi | |
6967 | ||
6968 | if test "$wxUSE_TIPWINDOW" = yes; then | |
6969 | echo "$ac_t""yes" 1>&6 | |
6970 | else | |
6971 | echo "$ac_t""no" 1>&6 | |
6972 | fi | |
6973 | ||
6974 | ||
9f41d601 | 6975 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
a1622950 | 6976 | echo "configure:6977: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6977 | no_cache=0 |
6978 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6979 | if test "${enable_popupwin+set}" = set; then | |
6980 | enableval="$enable_popupwin" | |
6981 | ||
6982 | if test "$enableval" = yes; then | |
6983 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6984 | else | |
6985 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6986 | fi | |
6987 | ||
6988 | else | |
6989 | ||
6990 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6991 | if test "x$LINE" != x ; then | |
6992 | eval "DEFAULT_$LINE" | |
6993 | else | |
6994 | no_cache=1 | |
6995 | fi | |
6996 | ||
6997 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6998 | ||
6999 | fi | |
7000 | ||
7001 | ||
7002 | eval "$ac_cv_use_popupwin" | |
7003 | if test "$no_cache" != 1; then | |
7004 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7005 | fi | |
7006 | ||
7007 | if test "$wxUSE_POPUPWIN" = yes; then | |
7008 | echo "$ac_t""yes" 1>&6 | |
7009 | else | |
7010 | echo "$ac_t""no" 1>&6 | |
7011 | fi | |
7012 | ||
7013 | ||
1e6feb95 VZ |
7014 | |
7015 | ||
7016 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
a1622950 | 7017 | echo "configure:7018: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7018 | no_cache=0 |
7019 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7020 | if test "${enable_commondlg+set}" = set; then | |
7021 | enableval="$enable_commondlg" | |
7022 | ||
7023 | if test "$enableval" = yes; then | |
7024 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7025 | else | |
7026 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7027 | fi | |
7028 | ||
7029 | else | |
7030 | ||
7031 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7032 | if test "x$LINE" != x ; then | |
7033 | eval "DEFAULT_$LINE" | |
7034 | else | |
7035 | no_cache=1 | |
7036 | fi | |
7037 | ||
7038 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7039 | ||
7040 | fi | |
7041 | ||
7042 | ||
7043 | eval "$ac_cv_use_commondlg" | |
7044 | if test "$no_cache" != 1; then | |
7045 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7046 | fi | |
7047 | ||
7048 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7049 | echo "$ac_t""yes" 1>&6 | |
7050 | else | |
7051 | echo "$ac_t""no" 1>&6 | |
7052 | fi | |
7053 | ||
7054 | ||
7055 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
a1622950 | 7056 | echo "configure:7057: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7057 | no_cache=0 |
7058 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7059 | if test "${enable_choicedlg+set}" = set; then | |
7060 | enableval="$enable_choicedlg" | |
7061 | ||
7062 | if test "$enableval" = yes; then | |
7063 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7064 | else | |
7065 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7066 | fi | |
7067 | ||
7068 | else | |
7069 | ||
7070 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7071 | if test "x$LINE" != x ; then | |
7072 | eval "DEFAULT_$LINE" | |
7073 | else | |
7074 | no_cache=1 | |
7075 | fi | |
7076 | ||
7077 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7078 | ||
7079 | fi | |
7080 | ||
7081 | ||
7082 | eval "$ac_cv_use_choicedlg" | |
7083 | if test "$no_cache" != 1; then | |
7084 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7085 | fi | |
7086 | ||
7087 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7088 | echo "$ac_t""yes" 1>&6 | |
7089 | else | |
7090 | echo "$ac_t""no" 1>&6 | |
7091 | fi | |
7092 | ||
7093 | ||
7094 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
a1622950 | 7095 | echo "configure:7096: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7096 | no_cache=0 |
7097 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7098 | if test "${enable_coldlg+set}" = set; then | |
7099 | enableval="$enable_coldlg" | |
7100 | ||
7101 | if test "$enableval" = yes; then | |
7102 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7103 | else | |
7104 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7105 | fi | |
7106 | ||
7107 | else | |
7108 | ||
7109 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7110 | if test "x$LINE" != x ; then | |
7111 | eval "DEFAULT_$LINE" | |
7112 | else | |
7113 | no_cache=1 | |
7114 | fi | |
7115 | ||
7116 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7117 | ||
7118 | fi | |
7119 | ||
7120 | ||
7121 | eval "$ac_cv_use_coldlg" | |
7122 | if test "$no_cache" != 1; then | |
7123 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7124 | fi | |
7125 | ||
7126 | if test "$wxUSE_COLOURDLG" = yes; then | |
7127 | echo "$ac_t""yes" 1>&6 | |
7128 | else | |
7129 | echo "$ac_t""no" 1>&6 | |
7130 | fi | |
7131 | ||
7132 | ||
7133 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
a1622950 | 7134 | echo "configure:7135: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7135 | no_cache=0 |
7136 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7137 | if test "${enable_filedlg+set}" = set; then | |
7138 | enableval="$enable_filedlg" | |
7139 | ||
7140 | if test "$enableval" = yes; then | |
7141 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7142 | else | |
7143 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7144 | fi | |
7145 | ||
7146 | else | |
7147 | ||
7148 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7149 | if test "x$LINE" != x ; then | |
7150 | eval "DEFAULT_$LINE" | |
7151 | else | |
7152 | no_cache=1 | |
7153 | fi | |
7154 | ||
7155 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7156 | ||
7157 | fi | |
7158 | ||
7159 | ||
7160 | eval "$ac_cv_use_filedlg" | |
7161 | if test "$no_cache" != 1; then | |
7162 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7163 | fi | |
7164 | ||
7165 | if test "$wxUSE_FILEDLG" = yes; then | |
7166 | echo "$ac_t""yes" 1>&6 | |
7167 | else | |
7168 | echo "$ac_t""no" 1>&6 | |
7169 | fi | |
7170 | ||
7171 | ||
69d27ff7 | 7172 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
a1622950 | 7173 | echo "configure:7174: checking for --enable-finddlg" >&5 |
8db37e06 | 7174 | no_cache=0 |
69d27ff7 MB |
7175 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7176 | if test "${enable_finddlg+set}" = set; then | |
7177 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7178 | |
7179 | if test "$enableval" = yes; then | |
69d27ff7 | 7180 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7181 | else |
69d27ff7 | 7182 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7183 | fi |
7184 | ||
7185 | else | |
7186 | ||
7187 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7188 | if test "x$LINE" != x ; then | |
7189 | eval "DEFAULT_$LINE" | |
7190 | else | |
7191 | no_cache=1 | |
7192 | fi | |
7193 | ||
69d27ff7 | 7194 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7195 | |
7196 | fi | |
7197 | ||
7198 | ||
69d27ff7 | 7199 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7200 | if test "$no_cache" != 1; then |
69d27ff7 | 7201 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7202 | fi |
7203 | ||
7204 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7205 | echo "$ac_t""yes" 1>&6 | |
7206 | else | |
7207 | echo "$ac_t""no" 1>&6 | |
7208 | fi | |
7209 | ||
7210 | ||
1e6feb95 | 7211 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
a1622950 | 7212 | echo "configure:7213: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7213 | no_cache=0 |
7214 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7215 | if test "${enable_fontdlg+set}" = set; then | |
7216 | enableval="$enable_fontdlg" | |
7217 | ||
7218 | if test "$enableval" = yes; then | |
7219 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7220 | else | |
7221 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7222 | fi | |
7223 | ||
7224 | else | |
7225 | ||
7226 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7227 | if test "x$LINE" != x ; then | |
7228 | eval "DEFAULT_$LINE" | |
7229 | else | |
7230 | no_cache=1 | |
7231 | fi | |
7232 | ||
7233 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7234 | ||
7235 | fi | |
7236 | ||
7237 | ||
7238 | eval "$ac_cv_use_fontdlg" | |
7239 | if test "$no_cache" != 1; then | |
7240 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7241 | fi | |
7242 | ||
7243 | if test "$wxUSE_FONTDLG" = yes; then | |
7244 | echo "$ac_t""yes" 1>&6 | |
7245 | else | |
7246 | echo "$ac_t""no" 1>&6 | |
7247 | fi | |
7248 | ||
7249 | ||
7250 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
a1622950 | 7251 | echo "configure:7252: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7252 | no_cache=0 |
7253 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7254 | if test "${enable_dirdlg+set}" = set; then | |
7255 | enableval="$enable_dirdlg" | |
7256 | ||
7257 | if test "$enableval" = yes; then | |
7258 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7259 | else | |
7260 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7261 | fi | |
7262 | ||
7263 | else | |
7264 | ||
7265 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7266 | if test "x$LINE" != x ; then | |
7267 | eval "DEFAULT_$LINE" | |
7268 | else | |
7269 | no_cache=1 | |
7270 | fi | |
7271 | ||
7272 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7273 | ||
7274 | fi | |
7275 | ||
7276 | ||
7277 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7278 | if test "$no_cache" != 1; then |
1e6feb95 | 7279 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7280 | fi |
7281 | ||
1e6feb95 | 7282 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7283 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7284 | else |
698dcdb6 | 7285 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7286 | fi |
698dcdb6 VZ |
7287 | |
7288 | ||
1e6feb95 | 7289 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
a1622950 | 7290 | echo "configure:7291: checking for --enable-msgdlg" >&5 |
10f2d63a | 7291 | no_cache=0 |
1e6feb95 VZ |
7292 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7293 | if test "${enable_msgdlg+set}" = set; then | |
7294 | enableval="$enable_msgdlg" | |
698dcdb6 | 7295 | |
10f2d63a | 7296 | if test "$enableval" = yes; then |
1e6feb95 | 7297 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7298 | else |
1e6feb95 | 7299 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7300 | fi |
698dcdb6 | 7301 | |
10f2d63a | 7302 | else |
698dcdb6 | 7303 | |
1e6feb95 | 7304 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7305 | if test "x$LINE" != x ; then |
7306 | eval "DEFAULT_$LINE" | |
7307 | else | |
7308 | no_cache=1 | |
7309 | fi | |
7310 | ||
1e6feb95 | 7311 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7312 | |
7313 | fi | |
10f2d63a VZ |
7314 | |
7315 | ||
1e6feb95 | 7316 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7317 | if test "$no_cache" != 1; then |
1e6feb95 | 7318 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7319 | fi |
7320 | ||
1e6feb95 | 7321 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7323 | else |
698dcdb6 | 7324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7325 | fi |
698dcdb6 | 7326 | |
10f2d63a | 7327 | |
1e6feb95 | 7328 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
a1622950 | 7329 | echo "configure:7330: checking for --enable-numberdlg" >&5 |
10f2d63a | 7330 | no_cache=0 |
1e6feb95 VZ |
7331 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7332 | if test "${enable_numberdlg+set}" = set; then | |
7333 | enableval="$enable_numberdlg" | |
698dcdb6 | 7334 | |
10f2d63a | 7335 | if test "$enableval" = yes; then |
1e6feb95 | 7336 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7337 | else |
1e6feb95 | 7338 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7339 | fi |
698dcdb6 | 7340 | |
10f2d63a | 7341 | else |
698dcdb6 | 7342 | |
1e6feb95 | 7343 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7344 | if test "x$LINE" != x ; then |
7345 | eval "DEFAULT_$LINE" | |
7346 | else | |
7347 | no_cache=1 | |
7348 | fi | |
7349 | ||
1e6feb95 | 7350 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7351 | |
7352 | fi | |
10f2d63a VZ |
7353 | |
7354 | ||
1e6feb95 | 7355 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7356 | if test "$no_cache" != 1; then |
1e6feb95 | 7357 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7358 | fi |
7359 | ||
1e6feb95 | 7360 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7361 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7362 | else |
698dcdb6 | 7363 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7364 | fi |
698dcdb6 | 7365 | |
10f2d63a | 7366 | |
cbca9943 | 7367 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
a1622950 | 7368 | echo "configure:7369: checking for --enable-splash" >&5 |
cbca9943 VZ |
7369 | no_cache=0 |
7370 | # Check whether --enable-splash or --disable-splash was given. | |
7371 | if test "${enable_splash+set}" = set; then | |
7372 | enableval="$enable_splash" | |
7373 | ||
7374 | if test "$enableval" = yes; then | |
7375 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7376 | else | |
7377 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7378 | fi | |
7379 | ||
7380 | else | |
7381 | ||
7382 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7383 | if test "x$LINE" != x ; then | |
7384 | eval "DEFAULT_$LINE" | |
7385 | else | |
7386 | no_cache=1 | |
7387 | fi | |
7388 | ||
7389 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7390 | ||
7391 | fi | |
7392 | ||
7393 | ||
7394 | eval "$ac_cv_use_splash" | |
7395 | if test "$no_cache" != 1; then | |
7396 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7397 | fi | |
7398 | ||
7399 | if test "$wxUSE_SPLASH" = yes; then | |
7400 | echo "$ac_t""yes" 1>&6 | |
7401 | else | |
7402 | echo "$ac_t""no" 1>&6 | |
7403 | fi | |
7404 | ||
7405 | ||
698dcdb6 | 7406 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
a1622950 | 7407 | echo "configure:7408: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7408 | no_cache=0 |
7409 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7410 | if test "${enable_textdlg+set}" = set; then | |
7411 | enableval="$enable_textdlg" | |
698dcdb6 | 7412 | |
10f2d63a VZ |
7413 | if test "$enableval" = yes; then |
7414 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7415 | else | |
7416 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7417 | fi | |
698dcdb6 | 7418 | |
10f2d63a | 7419 | else |
698dcdb6 | 7420 | |
10f2d63a VZ |
7421 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7422 | if test "x$LINE" != x ; then | |
7423 | eval "DEFAULT_$LINE" | |
7424 | else | |
7425 | no_cache=1 | |
7426 | fi | |
7427 | ||
7428 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7429 | |
7430 | fi | |
10f2d63a VZ |
7431 | |
7432 | ||
7433 | eval "$ac_cv_use_textdlg" | |
7434 | if test "$no_cache" != 1; then | |
7435 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7436 | fi | |
7437 | ||
7438 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7439 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7440 | else |
698dcdb6 | 7441 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7442 | fi |
698dcdb6 | 7443 | |
10f2d63a | 7444 | |
698dcdb6 | 7445 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
a1622950 | 7446 | echo "configure:7447: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7447 | no_cache=0 |
7448 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7449 | if test "${enable_tipdlg+set}" = set; then | |
7450 | enableval="$enable_tipdlg" | |
698dcdb6 | 7451 | |
10f2d63a VZ |
7452 | if test "$enableval" = yes; then |
7453 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7454 | else | |
7455 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7456 | fi | |
698dcdb6 | 7457 | |
10f2d63a | 7458 | else |
698dcdb6 | 7459 | |
10f2d63a VZ |
7460 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7461 | if test "x$LINE" != x ; then | |
7462 | eval "DEFAULT_$LINE" | |
7463 | else | |
7464 | no_cache=1 | |
7465 | fi | |
7466 | ||
7467 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7468 | |
7469 | fi | |
10f2d63a VZ |
7470 | |
7471 | ||
7472 | eval "$ac_cv_use_tipdlg" | |
7473 | if test "$no_cache" != 1; then | |
7474 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7475 | fi | |
7476 | ||
7477 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7478 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7479 | else |
698dcdb6 | 7480 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7481 | fi |
698dcdb6 | 7482 | |
10f2d63a | 7483 | |
698dcdb6 | 7484 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
a1622950 | 7485 | echo "configure:7486: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7486 | no_cache=0 |
7487 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7488 | if test "${enable_progressdlg+set}" = set; then | |
7489 | enableval="$enable_progressdlg" | |
698dcdb6 | 7490 | |
10f2d63a VZ |
7491 | if test "$enableval" = yes; then |
7492 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7493 | else | |
7494 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7495 | fi | |
698dcdb6 | 7496 | |
10f2d63a | 7497 | else |
698dcdb6 | 7498 | |
10f2d63a VZ |
7499 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7500 | if test "x$LINE" != x ; then | |
7501 | eval "DEFAULT_$LINE" | |
7502 | else | |
7503 | no_cache=1 | |
7504 | fi | |
7505 | ||
7506 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7507 | |
7508 | fi | |
10f2d63a VZ |
7509 | |
7510 | ||
7511 | eval "$ac_cv_use_progressdlg" | |
7512 | if test "$no_cache" != 1; then | |
7513 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7514 | fi | |
7515 | ||
7516 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7517 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7518 | else |
698dcdb6 | 7519 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7520 | fi |
698dcdb6 | 7521 | |
10f2d63a | 7522 | |
b1f5d087 | 7523 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
a1622950 | 7524 | echo "configure:7525: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7525 | no_cache=0 |
7526 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7527 | if test "${enable_wizarddlg+set}" = set; then | |
7528 | enableval="$enable_wizarddlg" | |
7529 | ||
7530 | if test "$enableval" = yes; then | |
7531 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7532 | else | |
7533 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7534 | fi | |
7535 | ||
7536 | else | |
7537 | ||
7538 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7539 | if test "x$LINE" != x ; then | |
7540 | eval "DEFAULT_$LINE" | |
7541 | else | |
7542 | no_cache=1 | |
7543 | fi | |
7544 | ||
7545 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7546 | ||
7547 | fi | |
7548 | ||
7549 | ||
7550 | eval "$ac_cv_use_wizarddlg" | |
7551 | if test "$no_cache" != 1; then | |
7552 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7553 | fi | |
7554 | ||
7555 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7556 | echo "$ac_t""yes" 1>&6 | |
7557 | else | |
7558 | echo "$ac_t""no" 1>&6 | |
7559 | fi | |
7560 | ||
7561 | ||
7562 | ||
7563 | ||
1e6feb95 | 7564 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
a1622950 | 7565 | echo "configure:7566: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7566 | no_cache=0 |
7567 | # Check whether --enable-menus or --disable-menus was given. | |
7568 | if test "${enable_menus+set}" = set; then | |
7569 | enableval="$enable_menus" | |
7570 | ||
7571 | if test "$enableval" = yes; then | |
7572 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7573 | else | |
7574 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7575 | fi | |
7576 | ||
7577 | else | |
7578 | ||
7579 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7580 | if test "x$LINE" != x ; then | |
7581 | eval "DEFAULT_$LINE" | |
7582 | else | |
7583 | no_cache=1 | |
7584 | fi | |
7585 | ||
7586 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7587 | ||
7588 | fi | |
7589 | ||
7590 | ||
7591 | eval "$ac_cv_use_menus" | |
7592 | if test "$no_cache" != 1; then | |
7593 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7594 | fi | |
7595 | ||
7596 | if test "$wxUSE_MENUS" = yes; then | |
7597 | echo "$ac_t""yes" 1>&6 | |
7598 | else | |
7599 | echo "$ac_t""no" 1>&6 | |
7600 | fi | |
7601 | ||
7602 | ||
698dcdb6 | 7603 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
a1622950 | 7604 | echo "configure:7605: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7605 | no_cache=0 |
7606 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7607 | if test "${enable_miniframe+set}" = set; then | |
7608 | enableval="$enable_miniframe" | |
698dcdb6 | 7609 | |
10f2d63a VZ |
7610 | if test "$enableval" = yes; then |
7611 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7612 | else | |
7613 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7614 | fi | |
698dcdb6 | 7615 | |
10f2d63a | 7616 | else |
698dcdb6 | 7617 | |
10f2d63a VZ |
7618 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7619 | if test "x$LINE" != x ; then | |
7620 | eval "DEFAULT_$LINE" | |
7621 | else | |
7622 | no_cache=1 | |
7623 | fi | |
7624 | ||
7625 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7626 | |
7627 | fi | |
10f2d63a VZ |
7628 | |
7629 | ||
7630 | eval "$ac_cv_use_miniframe" | |
7631 | if test "$no_cache" != 1; then | |
7632 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7633 | fi | |
7634 | ||
7635 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7637 | else |
698dcdb6 | 7638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7639 | fi |
698dcdb6 | 7640 | |
10f2d63a | 7641 | |
698dcdb6 | 7642 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
a1622950 | 7643 | echo "configure:7644: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7644 | no_cache=0 |
7645 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7646 | if test "${enable_tooltips+set}" = set; then | |
7647 | enableval="$enable_tooltips" | |
698dcdb6 | 7648 | |
10f2d63a VZ |
7649 | if test "$enableval" = yes; then |
7650 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7651 | else | |
7652 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7653 | fi | |
698dcdb6 | 7654 | |
10f2d63a | 7655 | else |
698dcdb6 | 7656 | |
10f2d63a VZ |
7657 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7658 | if test "x$LINE" != x ; then | |
7659 | eval "DEFAULT_$LINE" | |
7660 | else | |
7661 | no_cache=1 | |
7662 | fi | |
7663 | ||
7664 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7665 | |
7666 | fi | |
10f2d63a VZ |
7667 | |
7668 | ||
7669 | eval "$ac_cv_use_tooltips" | |
7670 | if test "$no_cache" != 1; then | |
7671 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7672 | fi | |
7673 | ||
7674 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7676 | else |
698dcdb6 | 7677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7678 | fi |
698dcdb6 | 7679 | |
10f2d63a | 7680 | |
698dcdb6 | 7681 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
a1622950 | 7682 | echo "configure:7683: checking for --enable-splines" >&5 |
10f2d63a VZ |
7683 | no_cache=0 |
7684 | # Check whether --enable-splines or --disable-splines was given. | |
7685 | if test "${enable_splines+set}" = set; then | |
7686 | enableval="$enable_splines" | |
698dcdb6 | 7687 | |
10f2d63a VZ |
7688 | if test "$enableval" = yes; then |
7689 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7690 | else | |
7691 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7692 | fi | |
698dcdb6 | 7693 | |
10f2d63a | 7694 | else |
698dcdb6 | 7695 | |
10f2d63a VZ |
7696 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7697 | if test "x$LINE" != x ; then | |
7698 | eval "DEFAULT_$LINE" | |
7699 | else | |
7700 | no_cache=1 | |
7701 | fi | |
7702 | ||
7703 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7704 | |
7705 | fi | |
10f2d63a VZ |
7706 | |
7707 | ||
7708 | eval "$ac_cv_use_splines" | |
7709 | if test "$no_cache" != 1; then | |
7710 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7711 | fi | |
7712 | ||
7713 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7715 | else |
698dcdb6 | 7716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7717 | fi |
698dcdb6 | 7718 | |
10f2d63a | 7719 | |
698dcdb6 | 7720 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
a1622950 | 7721 | echo "configure:7722: checking for --enable-validators" >&5 |
10f2d63a VZ |
7722 | no_cache=0 |
7723 | # Check whether --enable-validators or --disable-validators was given. | |
7724 | if test "${enable_validators+set}" = set; then | |
7725 | enableval="$enable_validators" | |
698dcdb6 | 7726 | |
10f2d63a VZ |
7727 | if test "$enableval" = yes; then |
7728 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7729 | else | |
7730 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7731 | fi | |
698dcdb6 | 7732 | |
10f2d63a | 7733 | else |
698dcdb6 | 7734 | |
10f2d63a VZ |
7735 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7736 | if test "x$LINE" != x ; then | |
7737 | eval "DEFAULT_$LINE" | |
7738 | else | |
7739 | no_cache=1 | |
7740 | fi | |
7741 | ||
7742 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7743 | |
7744 | fi | |
10f2d63a VZ |
7745 | |
7746 | ||
7747 | eval "$ac_cv_use_validators" | |
7748 | if test "$no_cache" != 1; then | |
7749 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7750 | fi | |
7751 | ||
7752 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7753 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7754 | else |
698dcdb6 | 7755 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7756 | fi |
698dcdb6 | 7757 | |
10f2d63a | 7758 | |
698dcdb6 | 7759 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
a1622950 | 7760 | echo "configure:7761: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7761 | no_cache=0 |
7762 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7763 | if test "${enable_busyinfo+set}" = set; then | |
7764 | enableval="$enable_busyinfo" | |
698dcdb6 | 7765 | |
10f2d63a VZ |
7766 | if test "$enableval" = yes; then |
7767 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7768 | else | |
7769 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7770 | fi | |
698dcdb6 | 7771 | |
10f2d63a | 7772 | else |
698dcdb6 | 7773 | |
10f2d63a VZ |
7774 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7775 | if test "x$LINE" != x ; then | |
7776 | eval "DEFAULT_$LINE" | |
7777 | else | |
7778 | no_cache=1 | |
7779 | fi | |
7780 | ||
7781 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7782 | |
7783 | fi | |
10f2d63a VZ |
7784 | |
7785 | ||
7786 | eval "$ac_cv_use_busyinfo" | |
7787 | if test "$no_cache" != 1; then | |
7788 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7789 | fi | |
7790 | ||
7791 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7792 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7793 | else |
698dcdb6 | 7794 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7795 | fi |
698dcdb6 | 7796 | |
10f2d63a | 7797 | |
698dcdb6 | 7798 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
a1622950 | 7799 | echo "configure:7800: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7800 | no_cache=0 |
7801 | # Check whether --enable-joystick or --disable-joystick was given. | |
7802 | if test "${enable_joystick+set}" = set; then | |
7803 | enableval="$enable_joystick" | |
698dcdb6 | 7804 | |
f6bcfd97 BP |
7805 | if test "$enableval" = yes; then |
7806 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7807 | else | |
7808 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7809 | fi | |
698dcdb6 | 7810 | |
f6bcfd97 | 7811 | else |
698dcdb6 | 7812 | |
f6bcfd97 BP |
7813 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7814 | if test "x$LINE" != x ; then | |
7815 | eval "DEFAULT_$LINE" | |
7816 | else | |
7817 | no_cache=1 | |
7818 | fi | |
7819 | ||
7820 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7821 | |
7822 | fi | |
f6bcfd97 BP |
7823 | |
7824 | ||
7825 | eval "$ac_cv_use_joystick" | |
7826 | if test "$no_cache" != 1; then | |
7827 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7828 | fi | |
7829 | ||
7830 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7831 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7832 | else |
698dcdb6 | 7833 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7834 | fi |
698dcdb6 VZ |
7835 | |
7836 | ||
1e6feb95 | 7837 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
a1622950 | 7838 | echo "configure:7839: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7839 | no_cache=0 |
7840 | # Check whether --enable-metafile or --disable-metafile was given. | |
7841 | if test "${enable_metafile+set}" = set; then | |
7842 | enableval="$enable_metafile" | |
7843 | ||
7844 | if test "$enableval" = yes; then | |
7845 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7846 | else | |
7847 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7848 | fi | |
7849 | ||
7850 | else | |
7851 | ||
7852 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7853 | if test "x$LINE" != x ; then | |
7854 | eval "DEFAULT_$LINE" | |
7855 | else | |
7856 | no_cache=1 | |
7857 | fi | |
7858 | ||
7859 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7860 | ||
7861 | fi | |
7862 | ||
7863 | ||
7864 | eval "$ac_cv_use_metafile" | |
7865 | if test "$no_cache" != 1; then | |
7866 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7867 | fi | |
7868 | ||
7869 | if test "$wxUSE_METAFILE" = yes; then | |
7870 | echo "$ac_t""yes" 1>&6 | |
7871 | else | |
7872 | echo "$ac_t""no" 1>&6 | |
7873 | fi | |
7874 | ||
7875 | ||
24fd6d87 | 7876 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
a1622950 | 7877 | echo "configure:7878: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7878 | no_cache=0 |
7879 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7880 | if test "${enable_dragimage+set}" = set; then | |
7881 | enableval="$enable_dragimage" | |
7882 | ||
7883 | if test "$enableval" = yes; then | |
7884 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7885 | else | |
7886 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7887 | fi | |
7888 | ||
7889 | else | |
7890 | ||
7891 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7892 | if test "x$LINE" != x ; then | |
7893 | eval "DEFAULT_$LINE" | |
7894 | else | |
7895 | no_cache=1 | |
7896 | fi | |
7897 | ||
7898 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7899 | ||
7900 | fi | |
7901 | ||
7902 | ||
7903 | eval "$ac_cv_use_dragimage" | |
7904 | if test "$no_cache" != 1; then | |
7905 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7906 | fi | |
7907 | ||
7908 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7909 | echo "$ac_t""yes" 1>&6 | |
7910 | else | |
7911 | echo "$ac_t""no" 1>&6 | |
7912 | fi | |
7913 | ||
7914 | ||
10f2d63a | 7915 | |
698dcdb6 | 7916 | |
edae8572 | 7917 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
a1622950 | 7918 | echo "configure:7919: checking for --enable-palette" >&5 |
edae8572 VZ |
7919 | no_cache=0 |
7920 | # Check whether --enable-palette or --disable-palette was given. | |
7921 | if test "${enable_palette+set}" = set; then | |
7922 | enableval="$enable_palette" | |
7923 | ||
7924 | if test "$enableval" = yes; then | |
7925 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7926 | else | |
7927 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7928 | fi | |
7929 | ||
7930 | else | |
7931 | ||
7932 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7933 | if test "x$LINE" != x ; then | |
7934 | eval "DEFAULT_$LINE" | |
7935 | else | |
7936 | no_cache=1 | |
7937 | fi | |
7938 | ||
7939 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7940 | ||
7941 | fi | |
7942 | ||
7943 | ||
7944 | eval "$ac_cv_use_palette" | |
7945 | if test "$no_cache" != 1; then | |
7946 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7947 | fi | |
7948 | ||
7949 | if test "$wxUSE_PALETTE" = yes; then | |
7950 | echo "$ac_t""yes" 1>&6 | |
7951 | else | |
7952 | echo "$ac_t""no" 1>&6 | |
7953 | fi | |
7954 | ||
7955 | ||
698dcdb6 | 7956 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
a1622950 | 7957 | echo "configure:7958: checking for --enable-image" >&5 |
0046ff7c VS |
7958 | no_cache=0 |
7959 | # Check whether --enable-image or --disable-image was given. | |
7960 | if test "${enable_image+set}" = set; then | |
7961 | enableval="$enable_image" | |
698dcdb6 | 7962 | |
0046ff7c VS |
7963 | if test "$enableval" = yes; then |
7964 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7965 | else | |
7966 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7967 | fi | |
698dcdb6 | 7968 | |
0046ff7c | 7969 | else |
698dcdb6 | 7970 | |
0046ff7c VS |
7971 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7972 | if test "x$LINE" != x ; then | |
7973 | eval "DEFAULT_$LINE" | |
7974 | else | |
7975 | no_cache=1 | |
7976 | fi | |
7977 | ||
7978 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7979 | |
7980 | fi | |
0046ff7c VS |
7981 | |
7982 | ||
7983 | eval "$ac_cv_use_image" | |
7984 | if test "$no_cache" != 1; then | |
7985 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7986 | fi | |
7987 | ||
7988 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7989 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7990 | else |
698dcdb6 | 7991 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7992 | fi |
698dcdb6 | 7993 | |
0046ff7c | 7994 | |
698dcdb6 | 7995 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
a1622950 | 7996 | echo "configure:7997: checking for --enable-gif" >&5 |
10f2d63a VZ |
7997 | no_cache=0 |
7998 | # Check whether --enable-gif or --disable-gif was given. | |
7999 | if test "${enable_gif+set}" = set; then | |
8000 | enableval="$enable_gif" | |
698dcdb6 | 8001 | |
10f2d63a VZ |
8002 | if test "$enableval" = yes; then |
8003 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8004 | else | |
8005 | ac_cv_use_gif='wxUSE_GIF=no' | |
8006 | fi | |
698dcdb6 | 8007 | |
10f2d63a | 8008 | else |
698dcdb6 | 8009 | |
10f2d63a VZ |
8010 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8011 | if test "x$LINE" != x ; then | |
8012 | eval "DEFAULT_$LINE" | |
8013 | else | |
8014 | no_cache=1 | |
8015 | fi | |
8016 | ||
8017 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8018 | |
8019 | fi | |
10f2d63a VZ |
8020 | |
8021 | ||
8022 | eval "$ac_cv_use_gif" | |
8023 | if test "$no_cache" != 1; then | |
8024 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8025 | fi | |
8026 | ||
8027 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8028 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8029 | else |
698dcdb6 | 8030 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8031 | fi |
698dcdb6 | 8032 | |
10f2d63a | 8033 | |
698dcdb6 | 8034 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
a1622950 | 8035 | echo "configure:8036: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8036 | no_cache=0 |
8037 | # Check whether --enable-pcx or --disable-pcx was given. | |
8038 | if test "${enable_pcx+set}" = set; then | |
8039 | enableval="$enable_pcx" | |
698dcdb6 | 8040 | |
10f2d63a VZ |
8041 | if test "$enableval" = yes; then |
8042 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8043 | else | |
8044 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8045 | fi | |
698dcdb6 | 8046 | |
10f2d63a | 8047 | else |
698dcdb6 | 8048 | |
10f2d63a VZ |
8049 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8050 | if test "x$LINE" != x ; then | |
8051 | eval "DEFAULT_$LINE" | |
8052 | else | |
8053 | no_cache=1 | |
8054 | fi | |
8055 | ||
8056 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8057 | |
8058 | fi | |
10f2d63a VZ |
8059 | |
8060 | ||
8061 | eval "$ac_cv_use_pcx" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8067 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8068 | else |
698dcdb6 | 8069 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8070 | fi |
698dcdb6 | 8071 | |
10f2d63a | 8072 | |
698dcdb6 | 8073 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
a1622950 | 8074 | echo "configure:8075: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8075 | no_cache=0 |
8076 | # Check whether --enable-pnm or --disable-pnm was given. | |
8077 | if test "${enable_pnm+set}" = set; then | |
8078 | enableval="$enable_pnm" | |
698dcdb6 | 8079 | |
10f2d63a VZ |
8080 | if test "$enableval" = yes; then |
8081 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8082 | else | |
8083 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8084 | fi | |
698dcdb6 | 8085 | |
10f2d63a | 8086 | else |
698dcdb6 | 8087 | |
10f2d63a VZ |
8088 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8089 | if test "x$LINE" != x ; then | |
8090 | eval "DEFAULT_$LINE" | |
8091 | else | |
8092 | no_cache=1 | |
8093 | fi | |
8094 | ||
8095 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8096 | |
8097 | fi | |
10f2d63a VZ |
8098 | |
8099 | ||
8100 | eval "$ac_cv_use_pnm" | |
8101 | if test "$no_cache" != 1; then | |
8102 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8103 | fi | |
8104 | ||
8105 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8106 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8107 | else |
698dcdb6 | 8108 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8109 | fi |
698dcdb6 | 8110 | |
10f2d63a | 8111 | |
69d27ff7 | 8112 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
a1622950 | 8113 | echo "configure:8114: checking for --enable-xpm" >&5 |
0046ff7c | 8114 | no_cache=0 |
69d27ff7 MB |
8115 | # Check whether --enable-xpm or --disable-xpm was given. |
8116 | if test "${enable_xpm+set}" = set; then | |
8117 | enableval="$enable_xpm" | |
698dcdb6 | 8118 | |
0046ff7c | 8119 | if test "$enableval" = yes; then |
69d27ff7 | 8120 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8121 | else |
69d27ff7 | 8122 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8123 | fi |
698dcdb6 | 8124 | |
0046ff7c | 8125 | else |
698dcdb6 | 8126 | |
0046ff7c VS |
8127 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8128 | if test "x$LINE" != x ; then | |
8129 | eval "DEFAULT_$LINE" | |
8130 | else | |
8131 | no_cache=1 | |
8132 | fi | |
8133 | ||
69d27ff7 | 8134 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8135 | |
8136 | fi | |
0046ff7c VS |
8137 | |
8138 | ||
69d27ff7 | 8139 | eval "$ac_cv_use_xpm" |
0046ff7c | 8140 | if test "$no_cache" != 1; then |
69d27ff7 | 8141 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8142 | fi |
8143 | ||
8144 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8145 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8146 | else |
698dcdb6 | 8147 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8148 | fi |
698dcdb6 | 8149 | |
0046ff7c | 8150 | |
b12915c1 VZ |
8151 | fi |
8152 | ||
698dcdb6 | 8153 | |
10f2d63a VZ |
8154 | echo "saving argument cache $wx_arg_cache_file" |
8155 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8156 | |
10f2d63a | 8157 | |
698dcdb6 VZ |
8158 | |
8159 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
a1622950 | 8160 | echo "configure:8161: checking for toolkit" >&5 |
10f2d63a VZ |
8161 | |
8162 | if test "$wxUSE_GUI" = "yes"; then | |
8163 | ||
3a922bb4 RL |
8164 | if test "$USE_BEOS" = 1; then |
8165 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8166 | fi | |
b12915c1 | 8167 | |
3a922bb4 RL |
8168 | if test "$TOOLKIT_GIVEN" = 1; then |
8169 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8170 | var=wxUSE_$toolkit | |
8171 | eval "value=\$${var}" | |
8172 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8173 | done | |
10f2d63a | 8174 | else |
3a922bb4 RL |
8175 | for toolkit in `echo $ALL_TOOLKITS`; do |
8176 | if test "$has_toolkit_in_cache" != 1; then | |
8177 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8178 | else | |
8179 | var=DEFAULT_wxUSE_$toolkit | |
8180 | fi | |
8181 | eval "wxUSE_$toolkit=\$${var}" | |
8182 | done | |
10f2d63a | 8183 | fi |
10f2d63a | 8184 | |
3a922bb4 | 8185 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
1725144d | 8186 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}` |
10f2d63a | 8187 | |
3a922bb4 | 8188 | case "${host}" in |
6fa882bd | 8189 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8190 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8191 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8192 | LEX_STEM="lexyy" | |
8193 | ;; | |
8194 | *) | |
8195 | PATH_IFS=':' | |
8196 | LEX_STEM="lex.yy" | |
8197 | ;; | |
8198 | esac | |
10f2d63a | 8199 | |
3a922bb4 RL |
8200 | case "$NUM_TOOLKITS" in |
8201 | 1) | |
8202 | ;; | |
8203 | 0) | |
8204 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8205 | ;; | |
8206 | *) | |
8207 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8208 | esac | |
10f2d63a | 8209 | |
3a922bb4 RL |
8210 | for toolkit in `echo $ALL_TOOLKITS`; do |
8211 | var=wxUSE_$toolkit | |
8212 | eval "value=\$${var}" | |
8213 | if test "x$value" != x; then | |
8214 | cache_var=CACHE_$toolkit | |
8215 | eval "cache=\$${cache_var}" | |
8216 | if test "$cache" = 1; then | |
8217 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8218 | fi | |
8219 | if test "$value" = 1; then | |
8220 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8221 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8222 | fi | |
8223 | fi | |
8224 | done | |
10f2d63a | 8225 | else |
cf27ef00 | 8226 | PATH_IFS=':' |
3a922bb4 | 8227 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8228 | fi |
8229 | ||
698dcdb6 VZ |
8230 | |
8231 | cat > confcache <<\EOF | |
10f2d63a VZ |
8232 | # This file is a shell script that caches the results of configure |
8233 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8234 | # scripts and configure runs. It is not useful on other systems. |
8235 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8236 | # |
698dcdb6 VZ |
8237 | # By default, configure uses ./config.cache as the cache file, |
8238 | # creating it if it does not exist already. You can give configure | |
8239 | # the --cache-file=FILE option to use a different cache file; that is | |
8240 | # what configure does when it calls configure scripts in | |
8241 | # subdirectories, so they share the cache. | |
8242 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8243 | # config.status only pays attention to the cache file if you give it the | |
8244 | # --recheck option to rerun configure. | |
10f2d63a | 8245 | # |
698dcdb6 | 8246 | EOF |
10f2d63a VZ |
8247 | # The following way of writing the cache mishandles newlines in values, |
8248 | # but we know of no workaround that is simple, portable, and efficient. | |
8249 | # So, don't put newlines in cache variables' values. | |
8250 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8251 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8252 | (set) 2>&1 | |
8253 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8254 | *ac_space=\ *) | |
8255 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8256 | # turns \\\\ into \\, and sed turns \\ into \). | |
8257 | sed -n \ | |
8258 | -e "s/'/'\\\\''/g" \ | |
8259 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8260 | ;; | |
8261 | *) | |
8262 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8263 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8264 | ;; | |
8265 | esac >> confcache | |
8266 | if cmp -s $cache_file confcache; then | |
8267 | : | |
8268 | else | |
10f2d63a | 8269 | if test -w $cache_file; then |
698dcdb6 VZ |
8270 | echo "updating cache $cache_file" |
8271 | cat confcache > $cache_file | |
10f2d63a VZ |
8272 | else |
8273 | echo "not updating unwritable cache $cache_file" | |
8274 | fi | |
8275 | fi | |
8276 | rm -f confcache | |
8277 | ||
698dcdb6 | 8278 | |
e59890c3 | 8279 | if test "$build" != "$host" ; then |
f9bc1684 | 8280 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8281 | CC=$host_alias-gcc |
8282 | CXX=$host_alias-c++ | |
8283 | AR=$host_alias-ar | |
8284 | RANLIB=$host_alias-ranlib | |
8285 | DLLTOOL=$host_alias-dlltool | |
8286 | RESCOMP=$host_alias-windres | |
8287 | LD=$host_alias-ld | |
8288 | NM=$host_alias-nm | |
8289 | STRIP=$host_alias-strip | |
8290 | else | |
8291 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8292 | fi | |
10f2d63a VZ |
8293 | fi |
8294 | ||
698dcdb6 | 8295 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8296 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8297 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 8298 | echo "configure:8299: checking for $ac_word" >&5 |
698dcdb6 VZ |
8299 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8301 | else |
8302 | if test -n "$CC"; then | |
8303 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8304 | else |
698dcdb6 VZ |
8305 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8306 | ac_dummy="$PATH" | |
8307 | for ac_dir in $ac_dummy; do | |
8308 | test -z "$ac_dir" && ac_dir=. | |
8309 | if test -f $ac_dir/$ac_word; then | |
8310 | ac_cv_prog_CC="gcc" | |
8311 | break | |
8312 | fi | |
8313 | done | |
8314 | IFS="$ac_save_ifs" | |
10f2d63a | 8315 | fi |
6232543b | 8316 | fi |
698dcdb6 | 8317 | CC="$ac_cv_prog_CC" |
6232543b | 8318 | if test -n "$CC"; then |
698dcdb6 | 8319 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8320 | else |
698dcdb6 | 8321 | echo "$ac_t""no" 1>&6 |
1e487827 | 8322 | fi |
6232543b | 8323 | |
1e487827 VS |
8324 | if test -z "$CC"; then |
8325 | # Extract the first word of "cc", so it can be a program name with args. | |
8326 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8327 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 8328 | echo "configure:8329: checking for $ac_word" >&5 |
698dcdb6 VZ |
8329 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8331 | else |
8332 | if test -n "$CC"; then | |
8333 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8334 | else | |
698dcdb6 | 8335 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8336 | ac_prog_rejected=no |
698dcdb6 VZ |
8337 | ac_dummy="$PATH" |
8338 | for ac_dir in $ac_dummy; do | |
8339 | test -z "$ac_dir" && ac_dir=. | |
8340 | if test -f $ac_dir/$ac_word; then | |
8341 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8342 | ac_prog_rejected=yes | |
8343 | continue | |
8344 | fi | |
8345 | ac_cv_prog_CC="cc" | |
8346 | break | |
8347 | fi | |
8348 | done | |
8349 | IFS="$ac_save_ifs" | |
1e487827 VS |
8350 | if test $ac_prog_rejected = yes; then |
8351 | # We found a bogon in the path, so make sure we never use it. | |
8352 | set dummy $ac_cv_prog_CC | |
8353 | shift | |
698dcdb6 | 8354 | if test $# -gt 0; then |
1e487827 VS |
8355 | # We chose a different compiler from the bogus one. |
8356 | # However, it has the same basename, so the bogon will be chosen | |
8357 | # first if we set CC to just the basename; use the full file name. | |
8358 | shift | |
698dcdb6 | 8359 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8360 | shift |
8361 | ac_cv_prog_CC="$@" | |
703e0a69 | 8362 | fi |
1e487827 VS |
8363 | fi |
8364 | fi | |
8365 | fi | |
698dcdb6 | 8366 | CC="$ac_cv_prog_CC" |
1e487827 | 8367 | if test -n "$CC"; then |
698dcdb6 | 8368 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8369 | else |
698dcdb6 | 8370 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8371 | fi |
1e487827 | 8372 | |
698dcdb6 VZ |
8373 | if test -z "$CC"; then |
8374 | case "`uname -s`" in | |
8375 | *win32* | *WIN32*) | |
8376 | # Extract the first word of "cl", so it can be a program name with args. | |
8377 | set dummy cl; ac_word=$2 | |
8378 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a1622950 | 8379 | echo "configure:8380: checking for $ac_word" >&5 |
698dcdb6 VZ |
8380 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8382 | else |
8383 | if test -n "$CC"; then | |
8384 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8385 | else |
698dcdb6 VZ |
8386 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8387 | ac_dummy="$PATH" | |
8388 | for ac_dir in $ac_dummy; do | |
8389 | test -z "$ac_dir" && ac_dir=. | |
8390 | if test -f $ac_dir/$ac_word; then | |
8391 | ac_cv_prog_CC="cl" | |
8392 | break | |
8393 | fi | |
8394 | done | |
8395 | IFS="$ac_save_ifs" | |
703e0a69 | 8396 | fi |
1e487827 | 8397 | fi |
698dcdb6 | 8398 | CC="$ac_cv_prog_CC" |
1e487827 | 8399 | if test -n "$CC"; then |
698dcdb6 | 8400 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8401 | else |
698dcdb6 | 8402 | echo "$ac_t""no" 1>&6 |
1e487827 | 8403 | fi |
698dcdb6 VZ |
8404 | ;; |
8405 | esac | |
8406 | fi | |
8407 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8408 | fi |
8409 | ||
698dcdb6 | 8410 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
a1622950 | 8411 | echo "configure:8412: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8412 | |
698dcdb6 VZ |
8413 | ac_ext=c |
8414 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8415 | ac_cpp='$CPP $CPPFLAGS' | |
8416 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8417 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8418 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8419 | |
698dcdb6 | 8420 | cat > conftest.$ac_ext << EOF |
1e487827 | 8421 | |
a1622950 | 8422 | #line 8423 "configure" |
1e487827 VS |
8423 | #include "confdefs.h" |
8424 | ||
698dcdb6 VZ |
8425 | main(){return(0);} |
8426 | EOF | |
a1622950 | 8427 | if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8428 | ac_cv_prog_cc_works=yes |
8429 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8430 | if (./conftest; exit) 2>/dev/null; then | |
8431 | ac_cv_prog_cc_cross=no | |
8432 | else | |
8433 | ac_cv_prog_cc_cross=yes | |
8434 | fi | |
8435 | else | |
8436 | echo "configure: failed program was:" >&5 | |
8437 | cat conftest.$ac_ext >&5 | |
8438 | ac_cv_prog_cc_works=no | |
8439 | fi | |
8440 | rm -fr conftest* | |
8441 | ac_ext=c | |
8442 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8443 | ac_cpp='$CPP $CPPFLAGS' | |
8444 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8445 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8446 | cross_compiling=$ac_cv_prog_cc_cross | |
8447 | ||
8448 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8449 | if test $ac_cv_prog_cc_works = no; then | |
8450 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8451 | fi | |
8452 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a1622950 | 8453 | echo "configure:8454: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8454 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8455 | cross_compiling=$ac_cv_prog_cc_cross | |
8456 | ||
8457 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
a1622950 | 8458 | echo "configure:8459: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8459 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8461 | else | |
8462 | cat > conftest.c <<EOF | |
8463 | #ifdef __GNUC__ | |
8464 | yes; | |
1e487827 | 8465 | #endif |
698dcdb6 | 8466 | EOF |
a1622950 | 8467 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8468 | ac_cv_prog_gcc=yes |
8469 | else | |
8470 | ac_cv_prog_gcc=no | |
8471 | fi | |
8472 | fi | |
1e487827 | 8473 | |
698dcdb6 | 8474 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8475 | |
698dcdb6 VZ |
8476 | if test $ac_cv_prog_gcc = yes; then |
8477 | GCC=yes | |
8478 | else | |
8479 | GCC= | |
8480 | fi | |
1e487827 | 8481 | |
698dcdb6 VZ |
8482 | ac_test_CFLAGS="${CFLAGS+set}" |
8483 | ac_save_CFLAGS="$CFLAGS" | |
8484 | CFLAGS= | |
8485 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
a1622950 | 8486 | echo "configure:8487: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8487 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8489 | else | |
8490 | echo 'void f(){}' > conftest.c | |
8491 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8492 | ac_cv_prog_cc_g=yes |
8493 | else | |
698dcdb6 | 8494 | ac_cv_prog_cc_g=no |
10f2d63a | 8495 | fi |
698dcdb6 VZ |
8496 | rm -f conftest* |
8497 | ||
10f2d63a | 8498 | fi |
698dcdb6 VZ |
8499 | |
8500 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8501 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8502 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8503 | elif test $ac_cv_prog_cc_g = yes; then |
8504 | if test "$GCC" = yes; then | |
8505 | CFLAGS="-g -O2" | |
8506 | else | |
8507 | CFLAGS="-g" | |
8508 | fi | |
8509 | else | |
8510 | if test "$GCC" = yes; then | |
8511 | CFLAGS="-O2" | |
8512 | else | |
8513 | CFLAGS= | |
8514 | fi | |
8515 | fi | |
8516 | ||
8517 | ||
8518 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8519 | ||
698dcdb6 | 8520 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
a1622950 | 8521 | echo "configure:8522: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8522 | # On Suns, sometimes $CPP names a directory. |
8523 | if test -n "$CPP" && test -d "$CPP"; then | |
8524 | CPP= | |
8525 | fi | |
8526 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8527 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8529 | else | |
8530 | # This must be in double quotes, not single quotes, because CPP may get | |
8531 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8532 | CPP="${CC-cc} -E" | |
10f2d63a | 8533 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8534 | # not just through cpp. |
8535 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 8536 | #line 8537 "configure" |
10f2d63a VZ |
8537 | #include "confdefs.h" |
8538 | #include <assert.h> | |
698dcdb6 VZ |
8539 | Syntax Error |
8540 | EOF | |
8541 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 8542 | { (eval echo configure:8543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8543 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8544 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8545 | : |
8546 | else | |
698dcdb6 VZ |
8547 | echo "$ac_err" >&5 |
8548 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8549 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8550 | rm -rf conftest* |
8551 | CPP="${CC-cc} -E -traditional-cpp" | |
8552 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 8553 | #line 8554 "configure" |
10f2d63a | 8554 | #include "confdefs.h" |
698dcdb6 VZ |
8555 | #include <assert.h> |
8556 | Syntax Error | |
8557 | EOF | |
8558 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 8559 | { (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8560 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8561 | if test -z "$ac_err"; then | |
8562 | : | |
10f2d63a | 8563 | else |
698dcdb6 VZ |
8564 | echo "$ac_err" >&5 |
8565 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8566 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8567 | rm -rf conftest* |
8568 | CPP="${CC-cc} -nologo -E" | |
8569 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 8570 | #line 8571 "configure" |
10f2d63a VZ |
8571 | #include "confdefs.h" |
8572 | #include <assert.h> | |
698dcdb6 VZ |
8573 | Syntax Error |
8574 | EOF | |
8575 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 8576 | { (eval echo configure:8577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8577 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8578 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8579 | : |
8580 | else | |
698dcdb6 VZ |
8581 | echo "$ac_err" >&5 |
8582 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8583 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8584 | rm -rf conftest* |
8585 | CPP=/lib/cpp | |
10f2d63a | 8586 | fi |
698dcdb6 | 8587 | rm -f conftest* |
10f2d63a | 8588 | fi |
698dcdb6 | 8589 | rm -f conftest* |
703e0a69 | 8590 | fi |
698dcdb6 VZ |
8591 | rm -f conftest* |
8592 | ac_cv_prog_CPP="$CPP" | |
8593 | fi | |
8594 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8595 | else |
698dcdb6 | 8596 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8597 | fi |
698dcdb6 | 8598 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8599 | |
698dcdb6 VZ |
8600 | if test $ac_cv_prog_gcc = yes; then |
8601 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
a1622950 | 8602 | echo "configure:8603: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8603 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8605 | else |
8606 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8607 | cat > conftest.$ac_ext <<EOF |
a1622950 | 8608 | #line 8609 "configure" |
10f2d63a VZ |
8609 | #include "confdefs.h" |
8610 | #include <sgtty.h> | |
8611 | Autoconf TIOCGETP | |
698dcdb6 | 8612 | EOF |
10f2d63a VZ |
8613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8614 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8615 | rm -rf conftest* |
10f2d63a VZ |
8616 | ac_cv_prog_gcc_traditional=yes |
8617 | else | |
698dcdb6 | 8618 | rm -rf conftest* |
10f2d63a VZ |
8619 | ac_cv_prog_gcc_traditional=no |
8620 | fi | |
8621 | rm -f conftest* | |
8622 | ||
698dcdb6 | 8623 | |
10f2d63a | 8624 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8625 | cat > conftest.$ac_ext <<EOF |
a1622950 | 8626 | #line 8627 "configure" |
10f2d63a VZ |
8627 | #include "confdefs.h" |
8628 | #include <termio.h> | |
8629 | Autoconf TCGETA | |
698dcdb6 | 8630 | EOF |
10f2d63a VZ |
8631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8632 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8633 | rm -rf conftest* |
10f2d63a VZ |
8634 | ac_cv_prog_gcc_traditional=yes |
8635 | fi | |
8636 | rm -f conftest* | |
8637 | ||
8638 | fi | |
8639 | fi | |
698dcdb6 VZ |
8640 | |
8641 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8642 | if test $ac_cv_prog_gcc_traditional = yes; then |
8643 | CC="$CC -traditional" | |
8644 | fi | |
8645 | fi | |
8646 | ||
703e0a69 | 8647 | |
698dcdb6 VZ |
8648 | |
8649 | ac_ext=C | |
8650 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8651 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8652 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8653 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8654 | cross_compiling=$ac_cv_prog_cxx_cross | |
8655 | ||
8656 | ||
8657 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8658 | do | |
8659 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8660 | set dummy $ac_prog; ac_word=$2 | |
8661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a1622950 | 8662 | echo "configure:8663: checking for $ac_word" >&5 |
698dcdb6 VZ |
8663 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8665 | else |
8666 | if test -n "$CXX"; then | |
8667 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8668 | else | |
698dcdb6 VZ |
8669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8670 | ac_dummy="$PATH" | |
8671 | for ac_dir in $ac_dummy; do | |
8672 | test -z "$ac_dir" && ac_dir=. | |
8673 | if test -f $ac_dir/$ac_word; then | |
8674 | ac_cv_prog_CXX="$ac_prog" | |
8675 | break | |
8676 | fi | |
8677 | done | |
8678 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8679 | fi |
8680 | fi | |
698dcdb6 | 8681 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8682 | if test -n "$CXX"; then |
698dcdb6 | 8683 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8684 | else |
698dcdb6 | 8685 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8686 | fi |
8687 | ||
698dcdb6 | 8688 | test -n "$CXX" && break |
10f2d63a | 8689 | done |
698dcdb6 | 8690 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8691 | |
8692 | ||
698dcdb6 | 8693 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
a1622950 | 8694 | echo "configure:8695: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8695 | |
698dcdb6 VZ |
8696 | ac_ext=C |
8697 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8698 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8699 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8700 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8701 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8702 | |
698dcdb6 VZ |
8703 | cat > conftest.$ac_ext << EOF |
8704 | ||
a1622950 | 8705 | #line 8706 "configure" |
10f2d63a VZ |
8706 | #include "confdefs.h" |
8707 | ||
698dcdb6 VZ |
8708 | int main(){return(0);} |
8709 | EOF | |
a1622950 | 8710 | if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8711 | ac_cv_prog_cxx_works=yes |
8712 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8713 | if (./conftest; exit) 2>/dev/null; then | |
8714 | ac_cv_prog_cxx_cross=no | |
8715 | else | |
8716 | ac_cv_prog_cxx_cross=yes | |
8717 | fi | |
8718 | else | |
8719 | echo "configure: failed program was:" >&5 | |
8720 | cat conftest.$ac_ext >&5 | |
8721 | ac_cv_prog_cxx_works=no | |
8722 | fi | |
8723 | rm -fr conftest* | |
8724 | ac_ext=C | |
8725 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8726 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8727 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8728 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8729 | cross_compiling=$ac_cv_prog_cxx_cross | |
8730 | ||
8731 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8732 | if test $ac_cv_prog_cxx_works = no; then | |
8733 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8734 | fi | |
8735 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a1622950 | 8736 | echo "configure:8737: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8737 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8738 | cross_compiling=$ac_cv_prog_cxx_cross | |
8739 | ||
8740 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
a1622950 | 8741 | echo "configure:8742: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8742 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8744 | else | |
8745 | cat > conftest.C <<EOF | |
8746 | #ifdef __GNUC__ | |
8747 | yes; | |
10f2d63a | 8748 | #endif |
698dcdb6 | 8749 | EOF |
a1622950 | 8750 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8751 | ac_cv_prog_gxx=yes |
8752 | else | |
8753 | ac_cv_prog_gxx=no | |
8754 | fi | |
8755 | fi | |
10f2d63a | 8756 | |
698dcdb6 | 8757 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8758 | |
698dcdb6 VZ |
8759 | if test $ac_cv_prog_gxx = yes; then |
8760 | GXX=yes | |
8761 | else | |
8762 | GXX= | |
8763 | fi | |
10f2d63a | 8764 | |
698dcdb6 VZ |
8765 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8766 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8767 | CXXFLAGS= | |
8768 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
a1622950 | 8769 | echo "configure:8770: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8770 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8772 | else | |
8773 | echo 'void f(){}' > conftest.cc | |
8774 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8775 | ac_cv_prog_cxx_g=yes |
8776 | else | |
698dcdb6 | 8777 | ac_cv_prog_cxx_g=no |
10f2d63a | 8778 | fi |
698dcdb6 VZ |
8779 | rm -f conftest* |
8780 | ||
10f2d63a | 8781 | fi |
698dcdb6 VZ |
8782 | |
8783 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8784 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8785 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8786 | elif test $ac_cv_prog_cxx_g = yes; then |
8787 | if test "$GXX" = yes; then | |
8788 | CXXFLAGS="-g -O2" | |
8789 | else | |
8790 | CXXFLAGS="-g" | |
8791 | fi | |
8792 | else | |
8793 | if test "$GXX" = yes; then | |
8794 | CXXFLAGS="-O2" | |
8795 | else | |
8796 | CXXFLAGS= | |
8797 | fi | |
8798 | fi | |
8799 | ||
8800 | ||
10f2d63a VZ |
8801 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8802 | ||
8803 | ac_ext=c | |
698dcdb6 | 8804 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8805 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8806 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8807 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8808 | cross_compiling=$ac_cv_prog_cc_cross | |
8809 | ||
8810 | ||
8811 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8812 | set dummy ranlib; ac_word=$2 | |
8813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a1622950 | 8814 | echo "configure:8815: checking for $ac_word" >&5 |
698dcdb6 VZ |
8815 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8817 | else |
8818 | if test -n "$RANLIB"; then | |
8819 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8820 | else | |
698dcdb6 VZ |
8821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8822 | ac_dummy="$PATH" | |
8823 | for ac_dir in $ac_dummy; do | |
8824 | test -z "$ac_dir" && ac_dir=. | |
8825 | if test -f $ac_dir/$ac_word; then | |
8826 | ac_cv_prog_RANLIB="ranlib" | |
8827 | break | |
8828 | fi | |
8829 | done | |
8830 | IFS="$ac_save_ifs" | |
8831 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8832 | fi |
8833 | fi | |
698dcdb6 | 8834 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8835 | if test -n "$RANLIB"; then |
698dcdb6 | 8836 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8837 | else |
698dcdb6 | 8838 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8839 | fi |
8840 | ||
8841 | ||
8842 | # Extract the first word of "ar", so it can be a program name with args. | |
8843 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 8845 | echo "configure:8846: checking for $ac_word" >&5 |
698dcdb6 VZ |
8846 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8848 | else |
8849 | if test -n "$AR"; then | |
8850 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8851 | else | |
698dcdb6 VZ |
8852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8853 | ac_dummy="$PATH" | |
8854 | for ac_dir in $ac_dummy; do | |
8855 | test -z "$ac_dir" && ac_dir=. | |
8856 | if test -f $ac_dir/$ac_word; then | |
8857 | ac_cv_prog_AR="ar" | |
8858 | break | |
8859 | fi | |
8860 | done | |
8861 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8862 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8863 | fi | |
8864 | fi | |
698dcdb6 | 8865 | AR="$ac_cv_prog_AR" |
10f2d63a | 8866 | if test -n "$AR"; then |
698dcdb6 | 8867 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8868 | else |
698dcdb6 | 8869 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8870 | fi |
8871 | ||
698dcdb6 | 8872 | |
6054113a | 8873 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
8874 | # so one script is as good as another. But avoid the broken or |
8875 | # incompatible versions: | |
8876 | # SysV /etc/install, /usr/sbin/install | |
8877 | # SunOS /usr/etc/install | |
8878 | # IRIX /sbin/install | |
8879 | # AIX /bin/install | |
8880 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8881 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8882 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8883 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8884 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
a1622950 | 8885 | echo "configure:8886: checking for a BSD compatible install" >&5 |
10f2d63a | 8886 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8887 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8889 | else |
698dcdb6 | 8890 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8891 | for ac_dir in $PATH; do |
8892 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8893 | case "$ac_dir/" in |
8894 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8895 | *) |
8896 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8897 | # Don't use installbsd from OSF since it installs stuff as root | |
8898 | # by default. | |
8899 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8900 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8901 | if test $ac_prog = install && |
698dcdb6 | 8902 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8903 | # AIX install. It has an incompatible calling convention. |
8904 | : | |
8905 | else | |
8906 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8907 | break 2 | |
8908 | fi | |
8909 | fi | |
8910 | done | |
8911 | ;; | |
8912 | esac | |
8913 | done | |
698dcdb6 | 8914 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8915 | |
8916 | fi | |
8917 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8918 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8919 | else |
8920 | # As a last resort, use the slow shell script. We don't cache a | |
8921 | # path for INSTALL within a source directory, because that will | |
8922 | # break other packages using the cache if that directory is | |
8923 | # removed, or if the path is relative. | |
698dcdb6 | 8924 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8925 | fi |
8926 | fi | |
698dcdb6 | 8927 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8928 | |
8929 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8930 | # It thinks the first close brace ends the variable substitution. | |
8931 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8932 | ||
698dcdb6 | 8933 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8934 | |
8935 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8936 | ||
6054113a GD |
8937 | case "${host}" in |
8938 | ||
b5853384 | 8939 | powerpc-*-darwin* ) |
eb99ae0b GD |
8940 | INSTALL_PROGRAM="cp -fp" |
8941 | INSTALL_DATA="cp -fp" | |
6054113a GD |
8942 | ;; |
8943 | *) | |
8944 | ;; | |
d6853540 | 8945 | esac |
698dcdb6 | 8946 | |
10f2d63a VZ |
8947 | # Extract the first word of "strip", so it can be a program name with args. |
8948 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 8950 | echo "configure:8951: checking for $ac_word" >&5 |
698dcdb6 VZ |
8951 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8953 | else |
8954 | if test -n "$STRIP"; then | |
8955 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8956 | else | |
698dcdb6 VZ |
8957 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8958 | ac_dummy="$PATH" | |
8959 | for ac_dir in $ac_dummy; do | |
8960 | test -z "$ac_dir" && ac_dir=. | |
8961 | if test -f $ac_dir/$ac_word; then | |
8962 | ac_cv_prog_STRIP="strip" | |
8963 | break | |
8964 | fi | |
8965 | done | |
8966 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8967 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8968 | fi | |
8969 | fi | |
698dcdb6 | 8970 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8971 | if test -n "$STRIP"; then |
698dcdb6 | 8972 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8973 | else |
698dcdb6 | 8974 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8975 | fi |
8976 | ||
698dcdb6 VZ |
8977 | |
8978 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
a1622950 | 8979 | echo "configure:8980: checking make for VPATH support" >&5 |
10f2d63a VZ |
8980 | cat - << EOF > confMake |
8981 | check : file | |
8982 | cp \$? \$@ | |
8983 | cp \$? final_file | |
8984 | EOF | |
8985 | ||
8986 | if test ! -d sub ; then | |
8987 | mkdir sub | |
8988 | fi | |
8989 | echo dummy > sub/file | |
f6bcfd97 | 8990 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8991 | RESULT=$? |
8992 | rm -f sub/file check final_file confMake | |
8993 | rmdir sub | |
8994 | if test "$RESULT" = 0; then | |
698dcdb6 | 8995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8996 | else |
698dcdb6 VZ |
8997 | echo "$ac_t""no" 1>&6 |
8998 | { echo "configure: error: | |
1e487827 VS |
8999 | You need a make-utility that is able to use the variable |
9000 | VPATH correctly. | |
9001 | If your version of make does not support VPATH correctly, | |
9002 | please install GNU-make (possibly as gmake), and start | |
9003 | configure with the following command: | |
9004 | export MAKE=gmake; ./configure for sh-type shells | |
9005 | setenv MAKE gmake; ./configure for csh-type shells | |
9006 | Also please do remember to use gmake in this case every time | |
9007 | you are trying to compile. | |
698dcdb6 | 9008 | " 1>&2; exit 1; } |
10f2d63a VZ |
9009 | fi |
9010 | ||
9011 | for ac_prog in 'bison -y' byacc | |
9012 | do | |
698dcdb6 | 9013 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9014 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9015 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 9016 | echo "configure:9017: checking for $ac_word" >&5 |
698dcdb6 VZ |
9017 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9018 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9019 | else |
9020 | if test -n "$YACC"; then | |
9021 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9022 | else | |
698dcdb6 VZ |
9023 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9024 | ac_dummy="$PATH" | |
9025 | for ac_dir in $ac_dummy; do | |
9026 | test -z "$ac_dir" && ac_dir=. | |
9027 | if test -f $ac_dir/$ac_word; then | |
9028 | ac_cv_prog_YACC="$ac_prog" | |
9029 | break | |
9030 | fi | |
9031 | done | |
9032 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9033 | fi |
9034 | fi | |
698dcdb6 | 9035 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9036 | if test -n "$YACC"; then |
698dcdb6 | 9037 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9038 | else |
698dcdb6 | 9039 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9040 | fi |
9041 | ||
698dcdb6 | 9042 | test -n "$YACC" && break |
10f2d63a VZ |
9043 | done |
9044 | test -n "$YACC" || YACC="yacc" | |
9045 | ||
698dcdb6 VZ |
9046 | |
9047 | # Extract the first word of "flex", so it can be a program name with args. | |
9048 | set dummy flex; ac_word=$2 | |
9049 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a1622950 | 9050 | echo "configure:9051: checking for $ac_word" >&5 |
698dcdb6 VZ |
9051 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9053 | else |
9054 | if test -n "$LEX"; then | |
9055 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9056 | else | |
698dcdb6 VZ |
9057 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9058 | ac_dummy="$PATH" | |
9059 | for ac_dir in $ac_dummy; do | |
9060 | test -z "$ac_dir" && ac_dir=. | |
9061 | if test -f $ac_dir/$ac_word; then | |
9062 | ac_cv_prog_LEX="flex" | |
9063 | break | |
9064 | fi | |
9065 | done | |
9066 | IFS="$ac_save_ifs" | |
9067 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9068 | fi |
9069 | fi | |
698dcdb6 | 9070 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9071 | if test -n "$LEX"; then |
698dcdb6 | 9072 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9073 | else |
698dcdb6 | 9074 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9075 | fi |
9076 | ||
9077 | if test -z "$LEXLIB" | |
9078 | then | |
698dcdb6 VZ |
9079 | case "$LEX" in |
9080 | flex*) ac_lib=fl ;; | |
9081 | *) ac_lib=l ;; | |
9082 | esac | |
9083 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
a1622950 | 9084 | echo "configure:9085: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9085 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9086 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9088 | else | |
9089 | ac_save_LIBS="$LIBS" | |
9090 | LIBS="-l$ac_lib $LIBS" | |
9091 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9092 | #line 9093 "configure" |
10f2d63a VZ |
9093 | #include "confdefs.h" |
9094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9095 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9096 | builtin and then its argument prototype would still apply. */ |
9097 | char yywrap(); | |
10f2d63a | 9098 | |
698dcdb6 VZ |
9099 | int main() { |
9100 | yywrap() | |
9101 | ; return 0; } | |
9102 | EOF | |
a1622950 | 9103 | if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9104 | rm -rf conftest* |
9105 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9106 | else |
698dcdb6 VZ |
9107 | echo "configure: failed program was:" >&5 |
9108 | cat conftest.$ac_ext >&5 | |
9109 | rm -rf conftest* | |
9110 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9111 | fi |
698dcdb6 VZ |
9112 | rm -f conftest* |
9113 | LIBS="$ac_save_LIBS" | |
9114 | ||
10f2d63a | 9115 | fi |
698dcdb6 VZ |
9116 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9117 | echo "$ac_t""yes" 1>&6 | |
9118 | LEXLIB="-l$ac_lib" | |
9119 | else | |
9120 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9121 | fi |
9122 | ||
9123 | fi | |
9124 | ||
9125 | ||
698dcdb6 | 9126 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
a1622950 | 9127 | echo "configure:9128: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9128 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9130 | else |
698dcdb6 VZ |
9131 | rm -f conftestdata |
9132 | if ln -s X conftestdata 2>/dev/null | |
9133 | then | |
9134 | rm -f conftestdata | |
9135 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9136 | else |
698dcdb6 | 9137 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9138 | fi |
9139 | fi | |
698dcdb6 VZ |
9140 | LN_S="$ac_cv_prog_LN_S" |
9141 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9142 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9143 | else |
698dcdb6 | 9144 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9145 | fi |
9146 | ||
9147 | ||
9148 | ||
9149 | SEARCH_INCLUDE="\ | |
9150 | /usr/local/include \ | |
9151 | \ | |
9152 | /usr/Motif-1.2/include \ | |
9153 | /usr/Motif-2.1/include \ | |
9154 | \ | |
9155 | /usr/include/Motif1.2 \ | |
9156 | /opt/xpm/include/X11 \ | |
9157 | /opt/GBxpm/include/ \ | |
9158 | /opt/GBxpm/X11/include/ \ | |
9159 | \ | |
9160 | /usr/Motif1.2/include \ | |
9161 | /usr/dt/include \ | |
afc31813 VZ |
9162 | /usr/openwin/include \ |
9163 | \ | |
10f2d63a VZ |
9164 | /usr/include/Xm \ |
9165 | \ | |
9166 | /usr/X11R6/include \ | |
afc31813 | 9167 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9168 | /usr/X11R5/include \ |
9169 | /usr/X11R4/include \ | |
9170 | \ | |
10f2d63a VZ |
9171 | /usr/include/X11R6 \ |
9172 | /usr/include/X11R5 \ | |
9173 | /usr/include/X11R4 \ | |
9174 | \ | |
9175 | /usr/local/X11R6/include \ | |
9176 | /usr/local/X11R5/include \ | |
9177 | /usr/local/X11R4/include \ | |
9178 | \ | |
9179 | /usr/local/include/X11R6 \ | |
9180 | /usr/local/include/X11R5 \ | |
9181 | /usr/local/include/X11R4 \ | |
9182 | \ | |
9183 | /usr/X11/include \ | |
9184 | /usr/include/X11 \ | |
9185 | /usr/local/X11/include \ | |
9186 | /usr/local/include/X11 \ | |
9187 | \ | |
9188 | /usr/X386/include \ | |
9189 | /usr/x386/include \ | |
9190 | /usr/XFree86/include/X11 \ | |
9191 | \ | |
cf27ef00 | 9192 | X:/XFree86/include \ |
ec14dd32 VZ |
9193 | X:/XFree86/include/X11 \ |
9194 | \ | |
10f2d63a VZ |
9195 | /usr/include/gtk \ |
9196 | /usr/local/include/gtk \ | |
9197 | /usr/include/glib \ | |
9198 | /usr/local/include/glib \ | |
9199 | \ | |
9200 | /usr/include/qt \ | |
9201 | /usr/local/include/qt \ | |
9202 | \ | |
9203 | /usr/include/windows \ | |
9204 | /usr/include/wine \ | |
9205 | /usr/local/include/wine \ | |
9206 | \ | |
9207 | /usr/unsupported/include \ | |
9208 | /usr/athena/include \ | |
9209 | /usr/local/x11r5/include \ | |
9210 | /usr/lpp/Xamples/include \ | |
9211 | \ | |
10f2d63a | 9212 | /usr/openwin/share/include \ |
928b5c08 VZ |
9213 | \ |
9214 | /usr/include" | |
10f2d63a VZ |
9215 | |
9216 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9217 | ||
698dcdb6 VZ |
9218 | |
9219 | cat > confcache <<\EOF | |
10f2d63a VZ |
9220 | # This file is a shell script that caches the results of configure |
9221 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9222 | # scripts and configure runs. It is not useful on other systems. |
9223 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9224 | # |
698dcdb6 VZ |
9225 | # By default, configure uses ./config.cache as the cache file, |
9226 | # creating it if it does not exist already. You can give configure | |
9227 | # the --cache-file=FILE option to use a different cache file; that is | |
9228 | # what configure does when it calls configure scripts in | |
9229 | # subdirectories, so they share the cache. | |
9230 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9231 | # config.status only pays attention to the cache file if you give it the | |
9232 | # --recheck option to rerun configure. | |
10f2d63a | 9233 | # |
698dcdb6 | 9234 | EOF |
10f2d63a VZ |
9235 | # The following way of writing the cache mishandles newlines in values, |
9236 | # but we know of no workaround that is simple, portable, and efficient. | |
9237 | # So, don't put newlines in cache variables' values. | |
9238 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9239 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9240 | (set) 2>&1 | |
9241 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9242 | *ac_space=\ *) | |
9243 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9244 | # turns \\\\ into \\, and sed turns \\ into \). | |
9245 | sed -n \ | |
9246 | -e "s/'/'\\\\''/g" \ | |
9247 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9248 | ;; | |
9249 | *) | |
9250 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9251 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9252 | ;; | |
9253 | esac >> confcache | |
9254 | if cmp -s $cache_file confcache; then | |
9255 | : | |
9256 | else | |
10f2d63a | 9257 | if test -w $cache_file; then |
698dcdb6 VZ |
9258 | echo "updating cache $cache_file" |
9259 | cat confcache > $cache_file | |
10f2d63a VZ |
9260 | else |
9261 | echo "not updating unwritable cache $cache_file" | |
9262 | fi | |
9263 | fi | |
9264 | rm -f confcache | |
9265 | ||
698dcdb6 VZ |
9266 | |
9267 | ||
4f14bcd8 | 9268 | |
18dbb1f6 VZ |
9269 | REGEX_INCLUDE= |
9270 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9271 | cat >> confdefs.h <<\EOF |
9272 | #define wxUSE_REGEX 1 | |
9273 | EOF | |
9274 | ||
9275 | ||
9276 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9277 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9278 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
a1622950 | 9279 | echo "configure:9280: checking for regex.h" >&5 |
18dbb1f6 VZ |
9280 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9282 | else | |
9283 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9284 | #line 9285 "configure" |
18dbb1f6 VZ |
9285 | #include "confdefs.h" |
9286 | #include <regex.h> | |
9287 | EOF | |
9288 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9289 | { (eval echo configure:9290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9290 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9291 | if test -z "$ac_err"; then | |
9292 | rm -rf conftest* | |
9293 | eval "ac_cv_header_$ac_safe=yes" | |
9294 | else | |
9295 | echo "$ac_err" >&5 | |
9296 | echo "configure: failed program was:" >&5 | |
9297 | cat conftest.$ac_ext >&5 | |
9298 | rm -rf conftest* | |
9299 | eval "ac_cv_header_$ac_safe=no" | |
9300 | fi | |
9301 | rm -f conftest* | |
9302 | fi | |
9303 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9304 | echo "$ac_t""yes" 1>&6 | |
9305 | for ac_func in regcomp | |
9306 | do | |
9307 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 9308 | echo "configure:9309: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9309 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9311 | else | |
9312 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9313 | #line 9314 "configure" |
18dbb1f6 VZ |
9314 | #include "confdefs.h" |
9315 | /* System header to define __stub macros and hopefully few prototypes, | |
9316 | which can conflict with char $ac_func(); below. */ | |
9317 | #include <assert.h> | |
9318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9319 | /* We use char because int might match the return type of a gcc2 | |
9320 | builtin and then its argument prototype would still apply. */ | |
9321 | char $ac_func(); | |
9322 | ||
9323 | int main() { | |
9324 | ||
9325 | /* The GNU C library defines this for functions which it implements | |
9326 | to always fail with ENOSYS. Some functions are actually named | |
9327 | something starting with __ and the normal name is an alias. */ | |
9328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9329 | choke me | |
9330 | #else | |
9331 | $ac_func(); | |
9332 | #endif | |
9333 | ||
9334 | ; return 0; } | |
9335 | EOF | |
a1622950 | 9336 | if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9337 | rm -rf conftest* |
9338 | eval "ac_cv_func_$ac_func=yes" | |
9339 | else | |
9340 | echo "configure: failed program was:" >&5 | |
9341 | cat conftest.$ac_ext >&5 | |
9342 | rm -rf conftest* | |
9343 | eval "ac_cv_func_$ac_func=no" | |
9344 | fi | |
9345 | rm -f conftest* | |
9346 | fi | |
9347 | ||
9348 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9349 | echo "$ac_t""yes" 1>&6 | |
9350 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9351 | cat >> confdefs.h <<EOF | |
9352 | #define $ac_tr_func 1 | |
9353 | EOF | |
9354 | ||
9355 | else | |
9356 | echo "$ac_t""no" 1>&6 | |
9357 | fi | |
9358 | done | |
9359 | ||
9360 | else | |
9361 | echo "$ac_t""no" 1>&6 | |
9362 | fi | |
9363 | ||
9364 | ||
4f14bcd8 GD |
9365 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9366 | if test "$wxUSE_REGEX" = "sys" ; then | |
9367 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9368 | else | |
a3df447d | 9369 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9370 | wxUSE_REGEX=builtin |
9371 | fi | |
9372 | else | |
9373 | wxUSE_REGEX=sys | |
18dbb1f6 | 9374 | fi |
18dbb1f6 VZ |
9375 | fi |
9376 | ||
4f14bcd8 GD |
9377 | if test "$wxUSE_REGEX" = "builtin" ; then |
9378 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9379 | fi | |
18dbb1f6 VZ |
9380 | fi |
9381 | ||
9382 | ||
4f14bcd8 GD |
9383 | ZLIB_INCLUDE= |
9384 | ZLIB_LINK= | |
9385 | if test "$wxUSE_ZLIB" != "no" ; then | |
9386 | cat >> confdefs.h <<\EOF | |
9387 | #define wxUSE_ZLIB 1 | |
9388 | EOF | |
dad6c0ea | 9389 | |
10f2d63a | 9390 | |
4f14bcd8 GD |
9391 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9392 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9393 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
a1622950 | 9394 | echo "configure:9395: checking for zlib.h" >&5 |
3a922bb4 RL |
9395 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9397 | else | |
9398 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9399 | #line 9400 "configure" |
3a922bb4 | 9400 | #include "confdefs.h" |
4f14bcd8 | 9401 | #include <zlib.h> |
3a922bb4 RL |
9402 | EOF |
9403 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9404 | { (eval echo configure:9405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9405 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9406 | if test -z "$ac_err"; then | |
9407 | rm -rf conftest* | |
9408 | eval "ac_cv_header_$ac_safe=yes" | |
9409 | else | |
9410 | echo "$ac_err" >&5 | |
9411 | echo "configure: failed program was:" >&5 | |
9412 | cat conftest.$ac_ext >&5 | |
9413 | rm -rf conftest* | |
9414 | eval "ac_cv_header_$ac_safe=no" | |
9415 | fi | |
9416 | rm -f conftest* | |
9417 | fi | |
9418 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9419 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9420 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
a1622950 | 9421 | echo "configure:9422: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9422 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9423 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9425 | else | |
9426 | ac_save_LIBS="$LIBS" | |
9427 | LIBS="-lz $LIBS" | |
9428 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9429 | #line 9430 "configure" |
4f14bcd8 GD |
9430 | #include "confdefs.h" |
9431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9432 | /* We use char because int might match the return type of a gcc2 | |
9433 | builtin and then its argument prototype would still apply. */ | |
9434 | char deflate(); | |
9435 | ||
9436 | int main() { | |
9437 | deflate() | |
9438 | ; return 0; } | |
3a922bb4 | 9439 | EOF |
a1622950 | 9440 | if { (eval echo configure:9441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9441 | rm -rf conftest* |
9442 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9443 | else | |
9444 | echo "configure: failed program was:" >&5 | |
9445 | cat conftest.$ac_ext >&5 | |
9446 | rm -rf conftest* | |
9447 | eval "ac_cv_lib_$ac_lib_var=no" | |
9448 | fi | |
9449 | rm -f conftest* | |
9450 | LIBS="$ac_save_LIBS" | |
9451 | ||
9452 | fi | |
9453 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9454 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9455 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9456 | else |
9457 | echo "$ac_t""no" 1>&6 | |
9458 | fi | |
10f2d63a | 9459 | |
4f14bcd8 GD |
9460 | else |
9461 | echo "$ac_t""no" 1>&6 | |
9462 | fi | |
9463 | ||
9464 | ||
9465 | if test "x$ZLIB_LINK" = "x" ; then | |
9466 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9467 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9468 | else | |
a3df447d | 9469 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9470 | wxUSE_ZLIB=builtin |
9471 | fi | |
9472 | else | |
9473 | wxUSE_ZLIB=sys | |
9474 | fi | |
9475 | fi | |
9476 | ||
9477 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9478 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9479 | fi | |
9480 | fi | |
9481 | ||
9482 | ||
9483 | PNG_INCLUDE= | |
9484 | PNG_LINK= | |
9485 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9486 | cat >> confdefs.h <<\EOF | |
9487 | #define wxUSE_LIBPNG 1 | |
9488 | EOF | |
9489 | ||
9490 | ||
9491 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9492 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9493 | wxUSE_LIBPNG=builtin |
9494 | fi | |
9495 | ||
9496 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9497 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9498 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
a1622950 | 9499 | echo "configure:9500: checking for png.h" >&5 |
d4158b5d VS |
9500 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9502 | else | |
9503 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9504 | #line 9505 "configure" |
d4158b5d | 9505 | #include "confdefs.h" |
4f14bcd8 | 9506 | #include <png.h> |
d4158b5d VS |
9507 | EOF |
9508 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9509 | { (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9510 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9511 | if test -z "$ac_err"; then | |
9512 | rm -rf conftest* | |
9513 | eval "ac_cv_header_$ac_safe=yes" | |
9514 | else | |
9515 | echo "$ac_err" >&5 | |
9516 | echo "configure: failed program was:" >&5 | |
9517 | cat conftest.$ac_ext >&5 | |
9518 | rm -rf conftest* | |
9519 | eval "ac_cv_header_$ac_safe=no" | |
9520 | fi | |
9521 | rm -f conftest* | |
9522 | fi | |
9523 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9524 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9525 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
a1622950 | 9526 | echo "configure:9527: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9527 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9528 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9529 | echo $ac_n "(cached) $ac_c" 1>&6 |
9530 | else | |
4f14bcd8 GD |
9531 | ac_save_LIBS="$LIBS" |
9532 | LIBS="-lpng -lz -lm $LIBS" | |
9533 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9534 | #line 9535 "configure" |
3a922bb4 | 9535 | #include "confdefs.h" |
4f14bcd8 GD |
9536 | /* Override any gcc2 internal prototype to avoid an error. */ |
9537 | /* We use char because int might match the return type of a gcc2 | |
9538 | builtin and then its argument prototype would still apply. */ | |
9539 | char png_check_sig(); | |
f6bcfd97 | 9540 | |
4f14bcd8 GD |
9541 | int main() { |
9542 | png_check_sig() | |
3a922bb4 RL |
9543 | ; return 0; } |
9544 | EOF | |
a1622950 | 9545 | if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9546 | rm -rf conftest* |
4f14bcd8 | 9547 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9548 | else |
9549 | echo "configure: failed program was:" >&5 | |
9550 | cat conftest.$ac_ext >&5 | |
9551 | rm -rf conftest* | |
4f14bcd8 | 9552 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9553 | fi |
9554 | rm -f conftest* | |
4f14bcd8 | 9555 | LIBS="$ac_save_LIBS" |
10f2d63a | 9556 | |
4f14bcd8 GD |
9557 | fi |
9558 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9559 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9560 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9561 | else |
9562 | echo "$ac_t""no" 1>&6 | |
9563 | fi | |
32832908 | 9564 | |
4f14bcd8 GD |
9565 | |
9566 | else | |
9567 | echo "$ac_t""no" 1>&6 | |
9568 | fi | |
3a922bb4 | 9569 | |
7b7a7637 | 9570 | |
4f14bcd8 GD |
9571 | if test "x$PNG_LINK" = "x" ; then |
9572 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9573 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9574 | else | |
a3df447d | 9575 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9576 | wxUSE_LIBPNG=builtin |
9577 | fi | |
9578 | else | |
9579 | wxUSE_LIBPNG=yes | |
9580 | fi | |
3a922bb4 RL |
9581 | fi |
9582 | ||
4f14bcd8 GD |
9583 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9584 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9585 | fi |
9586 | ||
4f14bcd8 | 9587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9588 | fi |
9589 | ||
32832908 | 9590 | |
4f14bcd8 GD |
9591 | JPEG_INCLUDE= |
9592 | JPEG_LINK= | |
9593 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9594 | cat >> confdefs.h <<\EOF | |
9595 | #define wxUSE_LIBJPEG 1 | |
9596 | EOF | |
10f2d63a | 9597 | |
8168de4c | 9598 | |
4f14bcd8 GD |
9599 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9600 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
a1622950 | 9601 | echo "configure:9602: checking for jpeglib.h" >&5 |
4f14bcd8 | 9602 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9603 | echo $ac_n "(cached) $ac_c" 1>&6 |
9604 | else | |
4f14bcd8 | 9605 | cat > conftest.$ac_ext <<EOF |
a1622950 | 9606 | #line 9607 "configure" |
4f14bcd8 | 9607 | #include "confdefs.h" |
8168de4c | 9608 | |
4f14bcd8 GD |
9609 | #undef HAVE_STDLIB_H |
9610 | #include <stdio.h> | |
9611 | #include <jpeglib.h> | |
9612 | ||
9613 | int main() { | |
9614 | ||
9615 | ||
9616 | ; return 0; } | |
9617 | EOF | |
a1622950 | 9618 | if { (eval echo configure:9619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9619 | rm -rf conftest* |
9620 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9621 | else |
4f14bcd8 GD |
9622 | echo "configure: failed program was:" >&5 |
9623 | cat conftest.$ac_ext >&5 | |
9624 | rm -rf conftest* | |
9625 | ac_cv_header_jpeglib_h=no | |
9626 | ||
9627 | fi | |
9628 | rm -f conftest* | |
9629 | ||
698dcdb6 | 9630 | fi |
6f72b082 | 9631 | |
4f14bcd8 GD |
9632 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9633 | ||
9634 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9635 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
a1622950 | 9636 | echo "configure:9637: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9637 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9638 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9640 | else |
4f14bcd8 GD |
9641 | ac_save_LIBS="$LIBS" |
9642 | LIBS="-ljpeg $LIBS" | |
9643 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9644 | #line 9645 "configure" |
4f14bcd8 GD |
9645 | #include "confdefs.h" |
9646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9647 | /* We use char because int might match the return type of a gcc2 | |
9648 | builtin and then its argument prototype would still apply. */ | |
9649 | char jpeg_read_header(); | |
698dcdb6 | 9650 | |
4f14bcd8 GD |
9651 | int main() { |
9652 | jpeg_read_header() | |
9653 | ; return 0; } | |
9654 | EOF | |
a1622950 | 9655 | if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9656 | rm -rf conftest* |
9657 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9658 | else |
4f14bcd8 GD |
9659 | echo "configure: failed program was:" >&5 |
9660 | cat conftest.$ac_ext >&5 | |
9661 | rm -rf conftest* | |
9662 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9663 | fi |
4f14bcd8 GD |
9664 | rm -f conftest* |
9665 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9666 | |
4f14bcd8 GD |
9667 | fi |
9668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9669 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9670 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9671 | else |
9672 | echo "$ac_t""no" 1>&6 | |
9673 | fi | |
9674 | ||
9675 | fi | |
9676 | ||
9677 | if test "x$JPEG_LINK" = "x" ; then | |
9678 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9679 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9680 | else | |
a3df447d | 9681 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9682 | wxUSE_LIBJPEG=builtin |
9683 | fi | |
9684 | else | |
9685 | wxUSE_LIBJPEG=sys | |
9686 | fi | |
9687 | fi | |
9688 | ||
9689 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9690 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9691 | fi | |
9692 | fi | |
9693 | ||
9694 | ||
9695 | TIFF_INCLUDE= | |
9696 | TIFF_LINK= | |
9697 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9698 | cat >> confdefs.h <<\EOF | |
9699 | #define wxUSE_LIBTIFF 1 | |
9700 | EOF | |
9701 | ||
9702 | ||
9703 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9704 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9705 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
a1622950 | 9706 | echo "configure:9707: checking for tiffio.h" >&5 |
4f14bcd8 GD |
9707 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9709 | else | |
9710 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9711 | #line 9712 "configure" |
4f14bcd8 GD |
9712 | #include "confdefs.h" |
9713 | #include <tiffio.h> | |
9714 | EOF | |
9715 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9716 | { (eval echo configure:9717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9717 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9718 | if test -z "$ac_err"; then | |
9719 | rm -rf conftest* | |
9720 | eval "ac_cv_header_$ac_safe=yes" | |
9721 | else | |
9722 | echo "$ac_err" >&5 | |
9723 | echo "configure: failed program was:" >&5 | |
9724 | cat conftest.$ac_ext >&5 | |
9725 | rm -rf conftest* | |
9726 | eval "ac_cv_header_$ac_safe=no" | |
9727 | fi | |
9728 | rm -f conftest* | |
9729 | fi | |
9730 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9731 | echo "$ac_t""yes" 1>&6 | |
9732 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
a1622950 | 9733 | echo "configure:9734: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
9734 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
9735 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9737 | else | |
9738 | ac_save_LIBS="$LIBS" | |
9739 | LIBS="-ltiff -lm $LIBS" | |
9740 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9741 | #line 9742 "configure" |
4f14bcd8 GD |
9742 | #include "confdefs.h" |
9743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9744 | /* We use char because int might match the return type of a gcc2 | |
9745 | builtin and then its argument prototype would still apply. */ | |
9746 | char TIFFError(); | |
9747 | ||
9748 | int main() { | |
9749 | TIFFError() | |
9750 | ; return 0; } | |
9751 | EOF | |
a1622950 | 9752 | if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9753 | rm -rf conftest* |
9754 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9755 | else | |
9756 | echo "configure: failed program was:" >&5 | |
9757 | cat conftest.$ac_ext >&5 | |
9758 | rm -rf conftest* | |
9759 | eval "ac_cv_lib_$ac_lib_var=no" | |
9760 | fi | |
9761 | rm -f conftest* | |
9762 | LIBS="$ac_save_LIBS" | |
9763 | ||
9764 | fi | |
9765 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9766 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9767 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
9768 | else |
9769 | echo "$ac_t""no" 1>&6 | |
9770 | fi | |
9771 | ||
9772 | ||
9773 | else | |
9774 | echo "$ac_t""no" 1>&6 | |
9775 | fi | |
9776 | ||
9777 | ||
9778 | if test "x$TIFF_LINK" = "x" ; then | |
9779 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9780 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9781 | else | |
a3df447d | 9782 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9783 | wxUSE_LIBTIFF=builtin |
9784 | fi | |
9785 | else | |
9786 | wxUSE_LIBTIFF=sys | |
9787 | fi | |
9788 | fi | |
9789 | ||
9790 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9791 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9792 | fi | |
9793 | fi | |
9794 | ||
9795 | ||
9796 | FREETYPE_INCLUDE= | |
9797 | FREETYPE_LINK= | |
9798 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9799 | cat >> confdefs.h <<\EOF | |
9800 | #define wxUSE_FREETYPE 1 | |
9801 | EOF | |
9802 | ||
9803 | ||
9804 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9805 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9806 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
a1622950 | 9807 | echo "configure:9808: checking for freetype.h" >&5 |
4f14bcd8 GD |
9808 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9810 | else | |
9811 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9812 | #line 9813 "configure" |
4f14bcd8 GD |
9813 | #include "confdefs.h" |
9814 | #include <freetype.h> | |
9815 | EOF | |
9816 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9817 | { (eval echo configure:9818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9818 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9819 | if test -z "$ac_err"; then | |
9820 | rm -rf conftest* | |
9821 | eval "ac_cv_header_$ac_safe=yes" | |
9822 | else | |
9823 | echo "$ac_err" >&5 | |
9824 | echo "configure: failed program was:" >&5 | |
9825 | cat conftest.$ac_ext >&5 | |
9826 | rm -rf conftest* | |
9827 | eval "ac_cv_header_$ac_safe=no" | |
9828 | fi | |
9829 | rm -f conftest* | |
9830 | fi | |
9831 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9832 | echo "$ac_t""yes" 1>&6 | |
9833 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
a1622950 | 9834 | echo "configure:9835: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
9835 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
9836 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9838 | else | |
9839 | ac_save_LIBS="$LIBS" | |
9840 | LIBS="-lfreetype -lm $LIBS" | |
9841 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9842 | #line 9843 "configure" |
4f14bcd8 GD |
9843 | #include "confdefs.h" |
9844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9845 | /* We use char because int might match the return type of a gcc2 | |
9846 | builtin and then its argument prototype would still apply. */ | |
9847 | char FT_Render_Glyph(); | |
9848 | ||
9849 | int main() { | |
9850 | FT_Render_Glyph() | |
9851 | ; return 0; } | |
9852 | EOF | |
a1622950 | 9853 | if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9854 | rm -rf conftest* |
9855 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9856 | else | |
9857 | echo "configure: failed program was:" >&5 | |
9858 | cat conftest.$ac_ext >&5 | |
9859 | rm -rf conftest* | |
9860 | eval "ac_cv_lib_$ac_lib_var=no" | |
9861 | fi | |
9862 | rm -f conftest* | |
9863 | LIBS="$ac_save_LIBS" | |
9864 | ||
9865 | fi | |
9866 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9867 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9868 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
9869 | else |
9870 | echo "$ac_t""no" 1>&6 | |
9871 | fi | |
9872 | ||
9873 | ||
9874 | else | |
9875 | echo "$ac_t""no" 1>&6 | |
9876 | fi | |
9877 | ||
9878 | ||
9879 | if test "x$FREETYPE_LINK" = "x" ; then | |
9880 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9881 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9882 | else | |
a3df447d | 9883 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9884 | wxUSE_FREETYPE=builtin |
9885 | fi | |
9886 | else | |
9887 | wxUSE_FREETYPE=sys | |
9888 | fi | |
9889 | fi | |
9890 | ||
9891 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9892 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9893 | fi | |
9894 | fi | |
9895 | ||
9896 | ||
9897 | AFMINSTALL= | |
9898 | ||
9899 | TOOLKIT= | |
9900 | TOOLKIT_INCLUDE= | |
9901 | WIDGET_SET= | |
9902 | ||
9903 | if test "$USE_WIN32" = 1 ; then | |
9904 | for ac_hdr in w32api.h | |
9905 | do | |
9906 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9907 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 9908 | echo "configure:9909: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
9909 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9911 | else | |
9912 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9913 | #line 9914 "configure" |
4f14bcd8 GD |
9914 | #include "confdefs.h" |
9915 | #include <$ac_hdr> | |
9916 | EOF | |
9917 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9918 | { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9919 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9920 | if test -z "$ac_err"; then | |
9921 | rm -rf conftest* | |
9922 | eval "ac_cv_header_$ac_safe=yes" | |
9923 | else | |
9924 | echo "$ac_err" >&5 | |
9925 | echo "configure: failed program was:" >&5 | |
9926 | cat conftest.$ac_ext >&5 | |
9927 | rm -rf conftest* | |
9928 | eval "ac_cv_header_$ac_safe=no" | |
9929 | fi | |
9930 | rm -f conftest* | |
9931 | fi | |
9932 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9933 | echo "$ac_t""yes" 1>&6 | |
9934 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9935 | cat >> confdefs.h <<EOF | |
9936 | #define $ac_tr_hdr 1 | |
9937 | EOF | |
9938 | ||
9939 | else | |
9940 | echo "$ac_t""no" 1>&6 | |
9941 | fi | |
9942 | done | |
9943 | ||
9944 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9945 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
a1622950 | 9946 | echo "configure:9947: checking for windows.h" >&5 |
4f14bcd8 GD |
9947 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9949 | else | |
9950 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9951 | #line 9952 "configure" |
4f14bcd8 GD |
9952 | #include "confdefs.h" |
9953 | #include <windows.h> | |
9954 | EOF | |
9955 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 9956 | { (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9957 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9958 | if test -z "$ac_err"; then | |
9959 | rm -rf conftest* | |
9960 | eval "ac_cv_header_$ac_safe=yes" | |
9961 | else | |
9962 | echo "$ac_err" >&5 | |
9963 | echo "configure: failed program was:" >&5 | |
9964 | cat conftest.$ac_ext >&5 | |
9965 | rm -rf conftest* | |
9966 | eval "ac_cv_header_$ac_safe=no" | |
9967 | fi | |
9968 | rm -f conftest* | |
9969 | fi | |
9970 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9971 | echo "$ac_t""yes" 1>&6 | |
9972 | : | |
9973 | else | |
9974 | echo "$ac_t""no" 1>&6 | |
9975 | ||
9976 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9977 | ||
9978 | fi | |
9979 | ||
9980 | ||
9981 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
a1622950 | 9982 | echo "configure:9983: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 9983 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
9984 | echo $ac_n "(cached) $ac_c" 1>&6 |
9985 | else | |
9986 | ||
9987 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 9988 | #line 9989 "configure" |
4f14bcd8 GD |
9989 | #include "confdefs.h" |
9990 | #include <w32api.h> | |
9991 | int main() { | |
9992 | ||
9993 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9994 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9995 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9996 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9997 | ||
9998 | #if !wxCHECK_W32API_VERSION(1,1) | |
9999 | #error You need w32api 1.1 or newer | |
10000 | #endif | |
10001 | ||
10002 | ; return 0; } | |
10003 | EOF | |
a1622950 | 10004 | if { (eval echo configure:10005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10005 | rm -rf conftest* |
10006 | ||
ea7682f0 | 10007 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10008 | |
10009 | else | |
10010 | echo "configure: failed program was:" >&5 | |
10011 | cat conftest.$ac_ext >&5 | |
10012 | rm -rf conftest* | |
10013 | ||
ea7682f0 | 10014 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10015 | |
10016 | fi | |
10017 | rm -f conftest* | |
10018 | ||
10019 | fi | |
10020 | ||
ea7682f0 VS |
10021 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10022 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10023 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10024 | fi | |
4f14bcd8 GD |
10025 | |
10026 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10027 | ||
77e13408 RL |
10028 | case "${host}" in |
10029 | *-*-cygwin* ) | |
10030 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10031 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10032 | esac | |
4f14bcd8 GD |
10033 | |
10034 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10035 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10036 | fi |
10037 | ||
4f14bcd8 GD |
10038 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10039 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10040 | fi | |
10041 | ||
10042 | if test "$wxUSE_GUI" = "yes"; then | |
10043 | USE_GUI=1 | |
10044 | ||
10045 | GUI_TK_LIBRARY= | |
10046 | ||
10047 | WXGTK12= | |
10048 | WXGTK127= | |
10049 | WXGTK20= | |
10050 | ||
77e13408 | 10051 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10052 | TOOLKIT=MSW |
10053 | GUIDIST=MSW_DIST | |
77e13408 RL |
10054 | |
10055 | case "${host}" in | |
10056 | *-*-mingw32* ) | |
3d63bc3a | 10057 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10058 | esac |
4f14bcd8 GD |
10059 | fi |
10060 | ||
10061 | if test "$wxUSE_GTK" = 1; then | |
10062 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
a1622950 | 10063 | echo "configure:10064: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10064 | |
10065 | gtk_version_cached=1 | |
10066 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10068 | else | |
10069 | ||
10070 | gtk_version_cached=0 | |
d48ad9bd | 10071 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10072 | |
3f345b47 VZ |
10073 | GTK_MODULES= |
10074 | if test "$wxUSE_THREADS" = "yes"; then | |
10075 | GTK_MODULES=gthread | |
10076 | fi | |
10077 | ||
4f14bcd8 GD |
10078 | wx_cv_lib_gtk= |
10079 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10080 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10081 | if test "${with_gtk_prefix+set}" = set; then | |
10082 | withval="$with_gtk_prefix" | |
10083 | gtk_config_prefix="$withval" | |
10084 | else | |
10085 | gtk_config_prefix="" | |
10086 | fi | |
10087 | ||
10088 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10089 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10090 | withval="$with_gtk_exec_prefix" | |
10091 | gtk_config_exec_prefix="$withval" | |
10092 | else | |
10093 | gtk_config_exec_prefix="" | |
10094 | fi | |
10095 | ||
10096 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10097 | if test "${enable_gtktest+set}" = set; then | |
10098 | enableval="$enable_gtktest" | |
10099 | : | |
10100 | else | |
10101 | enable_gtktest=yes | |
10102 | fi | |
10103 | ||
10104 | ||
3f345b47 | 10105 | for module in . $GTK_MODULES |
4f14bcd8 | 10106 | do |
6f72b082 | 10107 | case "$module" in |
8168de4c | 10108 | gthread) |
6f72b082 OK |
10109 | gtk_config_args="$gtk_config_args gthread" |
10110 | ;; | |
10111 | esac | |
10112 | done | |
10113 | ||
10114 | if test x$gtk_config_exec_prefix != x ; then | |
10115 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10116 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10117 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10118 | fi | |
10119 | fi | |
10120 | if test x$gtk_config_prefix != x ; then | |
10121 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10122 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10123 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10124 | fi | |
10125 | fi | |
10126 | ||
10127 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10128 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10129 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 10130 | echo "configure:10131: checking for $ac_word" >&5 |
698dcdb6 VZ |
10131 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10133 | else |
698dcdb6 VZ |
10134 | case "$GTK_CONFIG_2_0" in |
10135 | /*) | |
6f72b082 OK |
10136 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10137 | ;; | |
698dcdb6 VZ |
10138 | ?:/*) |
10139 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10140 | ;; | |
6f72b082 | 10141 | *) |
698dcdb6 VZ |
10142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10143 | ac_dummy="$PATH" | |
10144 | for ac_dir in $ac_dummy; do | |
10145 | test -z "$ac_dir" && ac_dir=. | |
10146 | if test -f $ac_dir/$ac_word; then | |
10147 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10148 | break | |
10149 | fi | |
10150 | done | |
10151 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10152 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10153 | ;; | |
10154 | esac | |
10155 | fi | |
698dcdb6 | 10156 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10157 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10158 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10159 | else |
698dcdb6 | 10160 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10161 | fi |
10162 | ||
10163 | min_gtk_version=1.3.1 | |
698dcdb6 | 10164 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
a1622950 | 10165 | echo "configure:10166: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10166 | no_gtk="" |
10167 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10168 | no_gtk=yes | |
10169 | else | |
10170 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10171 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10172 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10173 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10174 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10175 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10176 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10177 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10178 | if test "x$enable_gtktest" = "xyes" ; then | |
10179 | ac_save_CFLAGS="$CFLAGS" | |
10180 | ac_save_LIBS="$LIBS" | |
10181 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10182 | LIBS="$GTK_LIBS $LIBS" | |
10183 | rm -f conf.gtktest | |
10184 | if test "$cross_compiling" = yes; then | |
10185 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10186 | else | |
698dcdb6 | 10187 | cat > conftest.$ac_ext <<EOF |
a1622950 | 10188 | #line 10189 "configure" |
6f72b082 OK |
10189 | #include "confdefs.h" |
10190 | ||
10191 | #include <gtk/gtk.h> | |
10192 | #include <stdio.h> | |
10193 | #include <stdlib.h> | |
10194 | ||
8168de4c | 10195 | int |
6f72b082 OK |
10196 | main () |
10197 | { | |
10198 | int major, minor, micro; | |
10199 | char *tmp_version; | |
10200 | ||
10201 | system ("touch conf.gtktest"); | |
10202 | ||
10203 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10204 | tmp_version = g_strdup("$min_gtk_version"); | |
10205 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10206 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10207 | exit(1); | |
10208 | } | |
10209 | ||
10210 | if ((gtk_major_version != $gtk_config_major_version) || | |
10211 | (gtk_minor_version != $gtk_config_minor_version) || | |
10212 | (gtk_micro_version != $gtk_config_micro_version)) | |
10213 | { | |
8168de4c | 10214 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10215 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10216 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10217 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10218 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10219 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10220 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10221 | printf("*** required on your system.\n"); | |
10222 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10223 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10224 | printf("*** before re-running configure\n"); | |
8168de4c | 10225 | } |
6f72b082 OK |
10226 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10227 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10228 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10229 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10230 | { | |
10231 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10232 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10233 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10234 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10235 | } |
10236 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10237 | else | |
10238 | { | |
10239 | if ((gtk_major_version > major) || | |
10240 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10241 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10242 | { | |
10243 | return 0; | |
10244 | } | |
10245 | else | |
10246 | { | |
10247 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10248 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10249 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10250 | major, minor, micro); |
6f72b082 OK |
10251 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10252 | printf("***\n"); | |
10253 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10254 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10255 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10256 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10257 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10258 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10259 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10260 | } | |
10261 | } | |
10262 | return 1; | |
10263 | } | |
10264 | ||
698dcdb6 | 10265 | EOF |
a1622950 | 10266 | if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10267 | then |
6f72b082 OK |
10268 | : |
10269 | else | |
698dcdb6 VZ |
10270 | echo "configure: failed program was:" >&5 |
10271 | cat conftest.$ac_ext >&5 | |
10272 | rm -fr conftest* | |
10273 | no_gtk=yes | |
6f72b082 | 10274 | fi |
698dcdb6 | 10275 | rm -fr conftest* |
6f72b082 | 10276 | fi |
698dcdb6 | 10277 | |
6f72b082 OK |
10278 | CFLAGS="$ac_save_CFLAGS" |
10279 | LIBS="$ac_save_LIBS" | |
10280 | fi | |
10281 | fi | |
10282 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10283 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10284 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10285 | else |
698dcdb6 | 10286 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10287 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10288 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10289 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10290 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10291 | echo "*** full path to gtk-config-2.0." | |
10292 | else | |
10293 | if test -f conf.gtktest ; then | |
10294 | : | |
10295 | else | |
10296 | echo "*** Could not run GTK test program, checking why..." | |
10297 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10298 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10299 | cat > conftest.$ac_ext <<EOF |
a1622950 | 10300 | #line 10301 "configure" |
6f72b082 OK |
10301 | #include "confdefs.h" |
10302 | ||
10303 | #include <gtk/gtk.h> | |
10304 | #include <stdio.h> | |
10305 | ||
698dcdb6 VZ |
10306 | int main() { |
10307 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10308 | ; return 0; } | |
10309 | EOF | |
a1622950 | 10310 | if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10311 | rm -rf conftest* |
6f72b082 OK |
10312 | echo "*** The test program compiled, but did not run. This usually means" |
10313 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10314 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10315 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10316 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10317 | echo "*** is required on your system" | |
8168de4c | 10318 | echo "***" |
6f72b082 OK |
10319 | echo "*** If you have an old version installed, it is best to remove it, although" |
10320 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10321 | echo "***" | |
10322 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10323 | echo "*** came with the system with the command" | |
10324 | echo "***" | |
698dcdb6 | 10325 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10326 | else |
698dcdb6 VZ |
10327 | echo "configure: failed program was:" >&5 |
10328 | cat conftest.$ac_ext >&5 | |
10329 | rm -rf conftest* | |
10330 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10331 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10332 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10333 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10334 | fi |
698dcdb6 | 10335 | rm -f conftest* |
6f72b082 OK |
10336 | CFLAGS="$ac_save_CFLAGS" |
10337 | LIBS="$ac_save_LIBS" | |
10338 | fi | |
10339 | fi | |
10340 | GTK_CFLAGS="" | |
10341 | GTK_LIBS="" | |
3f345b47 | 10342 | : |
8168de4c VZ |
10343 | fi |
10344 | ||
10345 | ||
10346 | rm -f conf.gtktest | |
10347 | ||
10348 | fi | |
10349 | ||
10350 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10351 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10352 | if test "${with_gtk_prefix+set}" = set; then | |
10353 | withval="$with_gtk_prefix" | |
10354 | gtk_config_prefix="$withval" | |
10355 | else | |
10356 | gtk_config_prefix="" | |
10357 | fi | |
10358 | ||
10359 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10360 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10361 | withval="$with_gtk_exec_prefix" | |
10362 | gtk_config_exec_prefix="$withval" | |
10363 | else | |
10364 | gtk_config_exec_prefix="" | |
10365 | fi | |
10366 | ||
10367 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10368 | if test "${enable_gtktest+set}" = set; then | |
10369 | enableval="$enable_gtktest" | |
10370 | : | |
10371 | else | |
10372 | enable_gtktest=yes | |
10373 | fi | |
10374 | ||
10375 | ||
10376 | for module in . $GTK_MODULES | |
10377 | do | |
10378 | case "$module" in | |
10379 | gthread) | |
10380 | gtk_config_args="$gtk_config_args gthread" | |
10381 | ;; | |
10382 | esac | |
10383 | done | |
10384 | ||
10f2d63a VZ |
10385 | if test x$gtk_config_exec_prefix != x ; then |
10386 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10387 | if test x${GTK_CONFIG+set} != xset ; then | |
10388 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10389 | fi | |
10390 | fi | |
10391 | if test x$gtk_config_prefix != x ; then | |
10392 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10393 | if test x${GTK_CONFIG+set} != xset ; then | |
10394 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10395 | fi | |
10396 | fi | |
10397 | ||
10398 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10399 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10400 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 10401 | echo "configure:10402: checking for $ac_word" >&5 |
698dcdb6 VZ |
10402 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10404 | else |
698dcdb6 VZ |
10405 | case "$GTK_CONFIG" in |
10406 | /*) | |
f6bcfd97 BP |
10407 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10408 | ;; | |
698dcdb6 VZ |
10409 | ?:/*) |
10410 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10411 | ;; | |
f6bcfd97 | 10412 | *) |
698dcdb6 VZ |
10413 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10414 | ac_dummy="$PATH" | |
10415 | for ac_dir in $ac_dummy; do | |
10416 | test -z "$ac_dir" && ac_dir=. | |
10417 | if test -f $ac_dir/$ac_word; then | |
10418 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10419 | break | |
10420 | fi | |
10421 | done | |
10422 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10423 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10424 | ;; | |
10425 | esac | |
10426 | fi | |
698dcdb6 | 10427 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10428 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10429 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10430 | else |
698dcdb6 | 10431 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10432 | fi |
10433 | ||
10434 | min_gtk_version=1.2.7 | |
698dcdb6 | 10435 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
a1622950 | 10436 | echo "configure:10437: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10437 | no_gtk="" |
3f345b47 VZ |
10438 | if test "$GTK_CONFIG" = "no" ; then |
10439 | no_gtk=yes | |
10440 | else | |
10441 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10442 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10443 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10444 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10445 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10446 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10447 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10448 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10449 | if test "x$enable_gtktest" = "xyes" ; then | |
10450 | ac_save_CFLAGS="$CFLAGS" | |
10451 | ac_save_LIBS="$LIBS" | |
10452 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10453 | LIBS="$GTK_LIBS $LIBS" | |
10454 | rm -f conf.gtktest | |
10455 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10456 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10457 | else | |
698dcdb6 | 10458 | cat > conftest.$ac_ext <<EOF |
a1622950 | 10459 | #line 10460 "configure" |
f6bcfd97 BP |
10460 | #include "confdefs.h" |
10461 | ||
10462 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10463 | #include <stdio.h> |
10464 | #include <stdlib.h> | |
10465 | ||
3f345b47 | 10466 | int |
f6bcfd97 BP |
10467 | main () |
10468 | { | |
10469 | int major, minor, micro; | |
3f345b47 | 10470 | char *tmp_version; |
f6bcfd97 | 10471 | |
3f345b47 | 10472 | system ("touch conf.gtktest"); |
f6bcfd97 | 10473 | |
3f345b47 VZ |
10474 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10475 | tmp_version = g_strdup("$min_gtk_version"); | |
10476 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10477 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10478 | exit(1); |
10479 | } | |
10480 | ||
3f345b47 VZ |
10481 | if ((gtk_major_version != $gtk_config_major_version) || |
10482 | (gtk_minor_version != $gtk_config_minor_version) || | |
10483 | (gtk_micro_version != $gtk_config_micro_version)) | |
10484 | { | |
10485 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10486 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10487 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10488 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10489 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10490 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10491 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10492 | printf("*** required on your system.\n"); | |
10493 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10494 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10495 | printf("*** before re-running configure\n"); | |
10496 | } | |
10497 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10498 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10499 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10500 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10501 | { | |
10502 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10503 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10504 | printf("*** library (version %d.%d.%d)\n", | |
10505 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10506 | } | |
10507 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10508 | else | |
10509 | { | |
10510 | if ((gtk_major_version > major) || | |
10511 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10512 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10513 | { | |
10514 | return 0; | |
10515 | } | |
10516 | else | |
10517 | { | |
10518 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10519 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10520 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10521 | major, minor, micro); | |
10522 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10523 | printf("***\n"); | |
10524 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10525 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10526 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10527 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10528 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10529 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10530 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10531 | } | |
10532 | } | |
10533 | return 1; | |
f6bcfd97 BP |
10534 | } |
10535 | ||
698dcdb6 | 10536 | EOF |
a1622950 | 10537 | if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10538 | then |
f6bcfd97 BP |
10539 | : |
10540 | else | |
698dcdb6 VZ |
10541 | echo "configure: failed program was:" >&5 |
10542 | cat conftest.$ac_ext >&5 | |
10543 | rm -fr conftest* | |
10544 | no_gtk=yes | |
f6bcfd97 | 10545 | fi |
698dcdb6 | 10546 | rm -fr conftest* |
f6bcfd97 | 10547 | fi |
698dcdb6 | 10548 | |
3f345b47 VZ |
10549 | CFLAGS="$ac_save_CFLAGS" |
10550 | LIBS="$ac_save_LIBS" | |
10551 | fi | |
f6bcfd97 BP |
10552 | fi |
10553 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10554 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10555 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10556 | else |
698dcdb6 | 10557 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10558 | if test "$GTK_CONFIG" = "no" ; then |
10559 | echo "*** The gtk-config script installed by GTK could not be found" | |
10560 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10561 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10562 | echo "*** full path to gtk-config." | |
10563 | else | |
10564 | if test -f conf.gtktest ; then | |
10565 | : | |
10566 | else | |
10567 | echo "*** Could not run GTK test program, checking why..." | |
10568 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10569 | LIBS="$LIBS $GTK_LIBS" | |
10570 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 10571 | #line 10572 "configure" |
3f345b47 VZ |
10572 | #include "confdefs.h" |
10573 | ||
10574 | #include <gtk/gtk.h> | |
10575 | #include <stdio.h> | |
10576 | ||
10577 | int main() { | |
10578 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10579 | ; return 0; } | |
10580 | EOF | |
a1622950 | 10581 | if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10582 | rm -rf conftest* |
10583 | echo "*** The test program compiled, but did not run. This usually means" | |
10584 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10585 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10586 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10587 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10588 | echo "*** is required on your system" | |
10589 | echo "***" | |
10590 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10591 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10592 | echo "***" | |
10593 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10594 | echo "*** came with the system with the command" | |
10595 | echo "***" | |
10596 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10597 | else | |
10598 | echo "configure: failed program was:" >&5 | |
10599 | cat conftest.$ac_ext >&5 | |
10600 | rm -rf conftest* | |
10601 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10602 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10603 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10604 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10605 | fi | |
10606 | rm -f conftest* | |
10607 | CFLAGS="$ac_save_CFLAGS" | |
10608 | LIBS="$ac_save_LIBS" | |
10609 | fi | |
10610 | fi | |
f6bcfd97 BP |
10611 | GTK_CFLAGS="" |
10612 | GTK_LIBS="" | |
10613 | : | |
10614 | fi | |
698dcdb6 VZ |
10615 | |
10616 | ||
3f345b47 | 10617 | rm -f conf.gtktest |
f6bcfd97 | 10618 | |
8168de4c VZ |
10619 | fi |
10620 | ||
10621 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10622 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10623 | if test "${with_gtk_prefix+set}" = set; then | |
10624 | withval="$with_gtk_prefix" | |
10625 | gtk_config_prefix="$withval" | |
10626 | else | |
10627 | gtk_config_prefix="" | |
10628 | fi | |
10629 | ||
10630 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10631 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10632 | withval="$with_gtk_exec_prefix" | |
10633 | gtk_config_exec_prefix="$withval" | |
10634 | else | |
10635 | gtk_config_exec_prefix="" | |
10636 | fi | |
10637 | ||
10638 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10639 | if test "${enable_gtktest+set}" = set; then | |
10640 | enableval="$enable_gtktest" | |
10641 | : | |
10642 | else | |
10643 | enable_gtktest=yes | |
10644 | fi | |
10645 | ||
10646 | ||
10647 | for module in . $GTK_MODULES | |
10648 | do | |
10649 | case "$module" in | |
10650 | gthread) | |
10651 | gtk_config_args="$gtk_config_args gthread" | |
10652 | ;; | |
10653 | esac | |
10654 | done | |
10655 | ||
f6bcfd97 BP |
10656 | if test x$gtk_config_exec_prefix != x ; then |
10657 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10658 | if test x${GTK_CONFIG+set} != xset ; then | |
10659 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10660 | fi | |
10661 | fi | |
10662 | if test x$gtk_config_prefix != x ; then | |
10663 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10664 | if test x${GTK_CONFIG+set} != xset ; then | |
10665 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10666 | fi | |
10667 | fi | |
10668 | ||
10669 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10670 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10671 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 10672 | echo "configure:10673: checking for $ac_word" >&5 |
698dcdb6 VZ |
10673 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10675 | else |
698dcdb6 VZ |
10676 | case "$GTK_CONFIG" in |
10677 | /*) | |
10f2d63a VZ |
10678 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10679 | ;; | |
698dcdb6 VZ |
10680 | ?:/*) |
10681 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10682 | ;; | |
10f2d63a | 10683 | *) |
698dcdb6 VZ |
10684 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10685 | ac_dummy="$PATH" | |
10686 | for ac_dir in $ac_dummy; do | |
10687 | test -z "$ac_dir" && ac_dir=. | |
10688 | if test -f $ac_dir/$ac_word; then | |
10689 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10690 | break | |
10691 | fi | |
10692 | done | |
10693 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10694 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10695 | ;; | |
10696 | esac | |
10697 | fi | |
698dcdb6 | 10698 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10699 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10700 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10701 | else |
698dcdb6 | 10702 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10703 | fi |
10704 | ||
04165bec | 10705 | min_gtk_version=1.2.3 |
698dcdb6 | 10706 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
a1622950 | 10707 | echo "configure:10708: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10708 | no_gtk="" |
3f345b47 VZ |
10709 | if test "$GTK_CONFIG" = "no" ; then |
10710 | no_gtk=yes | |
10711 | else | |
10712 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10713 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10714 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10715 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10716 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10717 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10718 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10719 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10720 | if test "x$enable_gtktest" = "xyes" ; then | |
10721 | ac_save_CFLAGS="$CFLAGS" | |
10722 | ac_save_LIBS="$LIBS" | |
10723 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10724 | LIBS="$GTK_LIBS $LIBS" | |
10725 | rm -f conf.gtktest | |
10726 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10727 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10728 | else | |
698dcdb6 | 10729 | cat > conftest.$ac_ext <<EOF |
a1622950 | 10730 | #line 10731 "configure" |
10f2d63a VZ |
10731 | #include "confdefs.h" |
10732 | ||
10733 | #include <gtk/gtk.h> | |
10734 | #include <stdio.h> | |
32832908 | 10735 | #include <stdlib.h> |
10f2d63a | 10736 | |
3f345b47 | 10737 | int |
10f2d63a VZ |
10738 | main () |
10739 | { | |
10740 | int major, minor, micro; | |
3f345b47 | 10741 | char *tmp_version; |
10f2d63a | 10742 | |
3f345b47 | 10743 | system ("touch conf.gtktest"); |
10f2d63a | 10744 | |
3f345b47 VZ |
10745 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10746 | tmp_version = g_strdup("$min_gtk_version"); | |
10747 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10748 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
10749 | exit(1); |
10750 | } | |
10751 | ||
3f345b47 VZ |
10752 | if ((gtk_major_version != $gtk_config_major_version) || |
10753 | (gtk_minor_version != $gtk_config_minor_version) || | |
10754 | (gtk_micro_version != $gtk_config_micro_version)) | |
10755 | { | |
10756 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10757 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10758 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10759 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10760 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10761 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10762 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10763 | printf("*** required on your system.\n"); | |
10764 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10765 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10766 | printf("*** before re-running configure\n"); | |
10767 | } | |
10768 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10769 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10770 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10771 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10772 | { | |
10773 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10774 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10775 | printf("*** library (version %d.%d.%d)\n", | |
10776 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10777 | } | |
10778 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10779 | else | |
10780 | { | |
10781 | if ((gtk_major_version > major) || | |
10782 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10783 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10784 | { | |
10785 | return 0; | |
10786 | } | |
10787 | else | |
10788 | { | |
10789 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10790 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10791 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10792 | major, minor, micro); | |
10793 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10794 | printf("***\n"); | |
10795 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10796 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10797 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10798 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10799 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10800 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10801 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10802 | } | |
10803 | } | |
10804 | return 1; | |
10f2d63a VZ |
10805 | } |
10806 | ||
698dcdb6 | 10807 | EOF |
a1622950 | 10808 | if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10809 | then |
10f2d63a VZ |
10810 | : |
10811 | else | |
698dcdb6 VZ |
10812 | echo "configure: failed program was:" >&5 |
10813 | cat conftest.$ac_ext >&5 | |
10814 | rm -fr conftest* | |
10815 | no_gtk=yes | |
10f2d63a | 10816 | fi |
698dcdb6 | 10817 | rm -fr conftest* |
10f2d63a | 10818 | fi |
698dcdb6 | 10819 | |
3f345b47 VZ |
10820 | CFLAGS="$ac_save_CFLAGS" |
10821 | LIBS="$ac_save_LIBS" | |
10822 | fi | |
10f2d63a VZ |
10823 | fi |
10824 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10825 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10826 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10827 | else |
698dcdb6 | 10828 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10829 | if test "$GTK_CONFIG" = "no" ; then |
10830 | echo "*** The gtk-config script installed by GTK could not be found" | |
10831 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10832 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10833 | echo "*** full path to gtk-config." | |
10834 | else | |
10835 | if test -f conf.gtktest ; then | |
10836 | : | |
10837 | else | |
10838 | echo "*** Could not run GTK test program, checking why..." | |
10839 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10840 | LIBS="$LIBS $GTK_LIBS" | |
10841 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 10842 | #line 10843 "configure" |
3f345b47 VZ |
10843 | #include "confdefs.h" |
10844 | ||
10845 | #include <gtk/gtk.h> | |
10846 | #include <stdio.h> | |
10847 | ||
10848 | int main() { | |
10849 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10850 | ; return 0; } | |
10851 | EOF | |
a1622950 | 10852 | if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10853 | rm -rf conftest* |
10854 | echo "*** The test program compiled, but did not run. This usually means" | |
10855 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10856 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10857 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10858 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10859 | echo "*** is required on your system" | |
10860 | echo "***" | |
10861 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10862 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10863 | echo "***" | |
10864 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10865 | echo "*** came with the system with the command" | |
10866 | echo "***" | |
10867 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10868 | else | |
10869 | echo "configure: failed program was:" >&5 | |
10870 | cat conftest.$ac_ext >&5 | |
10871 | rm -rf conftest* | |
10872 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10873 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10874 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10875 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10876 | fi | |
10877 | rm -f conftest* | |
10878 | CFLAGS="$ac_save_CFLAGS" | |
10879 | LIBS="$ac_save_LIBS" | |
10880 | fi | |
10881 | fi | |
10f2d63a VZ |
10882 | GTK_CFLAGS="" |
10883 | GTK_LIBS="" | |
7e99ad86 | 10884 | : |
10f2d63a | 10885 | fi |
698dcdb6 VZ |
10886 | |
10887 | ||
3f345b47 | 10888 | rm -f conf.gtktest |
10f2d63a | 10889 | |
8168de4c VZ |
10890 | fi |
10891 | ||
10892 | if test -z "$wx_cv_lib_gtk"; then | |
10893 | wx_cv_lib_gtk=none | |
138be253 VZ |
10894 | else |
10895 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10896 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10897 | fi |
10898 | ||
1e6feb95 | 10899 | |
8168de4c | 10900 | fi |
703e0a69 | 10901 | |
698dcdb6 | 10902 | |
8168de4c VZ |
10903 | if test "$gtk_version_cached" = 1; then |
10904 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10905 | fi |
698dcdb6 | 10906 | |
8168de4c VZ |
10907 | case "$wx_cv_lib_gtk" in |
10908 | 2.0) WXGTK20=1 | |
10909 | ;; | |
10910 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10911 | WXGTK12=1 |
8168de4c VZ |
10912 | ;; |
10913 | 1.2.3) WXGTK12=1 | |
10914 | ;; | |
10915 | *) { echo "configure: error: | |
10916 | Please check that gtk-config is in path, the directory | |
10917 | where GTK+ libraries are installed (returned by | |
10918 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10919 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10920 | " 1>&2; exit 1; } | |
10921 | ;; | |
10922 | esac | |
2224580a | 10923 | |
138be253 | 10924 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10925 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10926 | |
1e6feb95 VZ |
10927 | AFMINSTALL=afminstall |
10928 | TOOLKIT=GTK | |
10929 | GUIDIST=GTK_DIST | |
7ec2881a | 10930 | |
1e6feb95 | 10931 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
a1622950 | 10932 | echo "configure:10933: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10933 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10934 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10936 | else |
698dcdb6 | 10937 | ac_save_LIBS="$LIBS" |
7ec2881a | 10938 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10939 | cat > conftest.$ac_ext <<EOF |
a1622950 | 10940 | #line 10941 "configure" |
7ec2881a RR |
10941 | #include "confdefs.h" |
10942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10943 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10944 | builtin and then its argument prototype would still apply. */ |
10945 | char gdk_im_open(); | |
10946 | ||
10947 | int main() { | |
10948 | gdk_im_open() | |
10949 | ; return 0; } | |
10950 | EOF | |
a1622950 | 10951 | if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10952 | rm -rf conftest* |
10953 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10954 | else | |
10955 | echo "configure: failed program was:" >&5 | |
10956 | cat conftest.$ac_ext >&5 | |
10957 | rm -rf conftest* | |
10958 | eval "ac_cv_lib_$ac_lib_var=no" | |
10959 | fi | |
10960 | rm -f conftest* | |
10961 | LIBS="$ac_save_LIBS" | |
10962 | ||
10963 | fi | |
10964 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10965 | echo "$ac_t""yes" 1>&6 | |
10966 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10967 | #define HAVE_XIM 1 |
10968 | EOF | |
10969 | ||
698dcdb6 VZ |
10970 | else |
10971 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10972 | fi |
10973 | ||
1e6feb95 | 10974 | fi |
10f2d63a | 10975 | |
1e6feb95 | 10976 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 10977 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
a1622950 | 10978 | echo "configure:10979: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10979 | if test "x$MGL_ROOT" = x ; then |
10980 | echo "$ac_t""not found" 1>&6 | |
10981 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10982 | else | |
10983 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10984 | fi | |
10985 | ||
f9bc1684 VS |
10986 | case "${host}" in |
10987 | *-*-linux* ) | |
10988 | mgl_os=linux/gcc/glibc | |
10989 | ;; | |
10990 | *-pc-msdosdjgpp ) | |
10991 | mgl_os=dos32/dj2 | |
10992 | ;; | |
10993 | *) | |
10994 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
10995 | esac | |
10996 | ||
3a922bb4 | 10997 | mgl_lib_type="" |
1e6feb95 VZ |
10998 | |
10999 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11000 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11001 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11002 | mgl_lib_type=debug |
1e6feb95 VZ |
11003 | fi |
11004 | fi | |
3a922bb4 | 11005 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11006 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11007 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11008 | mgl_lib_type=release |
1e6feb95 VZ |
11009 | else |
11010 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11011 | fi | |
11012 | fi | |
11013 | ||
11014 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11015 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11016 | |
11017 | AFMINSTALL=afminstall | |
11018 | TOOLKIT=MGL | |
11019 | GUIDIST=MGL_DIST | |
11020 | fi | |
11021 | ||
1725144d RR |
11022 | if test "$wxUSE_MICROWIN" = 1; then |
11023 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
a1622950 | 11024 | echo "configure:11025: checking for MicroWindows" >&5 |
1725144d RR |
11025 | if test "x$MICROWINDOWS" = x ; then |
11026 | echo "$ac_t""not found" 1>&6 | |
11027 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11028 | else | |
11029 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11030 | fi | |
11031 | ||
11032 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11033 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11034 | else | |
11035 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11036 | fi | |
11037 | ||
11038 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11039 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11040 | ||
11041 | AFMINSTALL=afminstall | |
11042 | TOOLKIT=MICROWIN | |
11043 | GUIDIST=MICROWIN_DIST | |
11044 | ||
11045 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11046 | fi | |
11047 | ||
1e6feb95 | 11048 | if test "$wxUSE_WINE" = 1; then |
3a922bb4 RL |
11049 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11050 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
a1622950 | 11051 | echo "configure:11052: checking for windows.h" >&5 |
3a922bb4 RL |
11052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11054 | else | |
11055 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 11056 | #line 11057 "configure" |
3a922bb4 RL |
11057 | #include "confdefs.h" |
11058 | #include <windows.h> | |
11059 | EOF | |
11060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 11061 | { (eval echo configure:11062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11063 | if test -z "$ac_err"; then | |
11064 | rm -rf conftest* | |
11065 | eval "ac_cv_header_$ac_safe=yes" | |
11066 | else | |
11067 | echo "$ac_err" >&5 | |
11068 | echo "configure: failed program was:" >&5 | |
11069 | cat conftest.$ac_ext >&5 | |
11070 | rm -rf conftest* | |
11071 | eval "ac_cv_header_$ac_safe=no" | |
11072 | fi | |
11073 | rm -f conftest* | |
11074 | fi | |
11075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11076 | echo "$ac_t""yes" 1>&6 | |
11077 | : | |
11078 | else | |
11079 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 11080 | |
1e6feb95 | 11081 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
11082 | |
11083 | fi | |
11084 | ||
10f2d63a | 11085 | |
3d63bc3a | 11086 | xpm_link= |
1e6feb95 | 11087 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
a1622950 | 11088 | echo "configure:11089: checking for Xpm library" >&5 |
1e6feb95 | 11089 | |
10f2d63a VZ |
11090 | ac_find_libraries= |
11091 | for ac_dir in $SEARCH_LIB; | |
11092 | do | |
f11bdd03 | 11093 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
11094 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11095 | ac_find_libraries=$ac_dir | |
11096 | break 2 | |
11097 | fi | |
11098 | done | |
11099 | done | |
11100 | ||
1e6feb95 VZ |
11101 | if test "$ac_find_libraries" != "" ; then |
11102 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 11103 | xpm_link=" -lXpm" |
1e6feb95 | 11104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11105 | #define wxHAVE_LIB_XPM 1 |
11106 | EOF | |
11107 | ||
1e6feb95 VZ |
11108 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11109 | else | |
11110 | echo "$ac_t""no" 1>&6 | |
11111 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11112 | fi | |
10f2d63a | 11113 | |
3d63bc3a | 11114 | mesa_link= |
1e6feb95 | 11115 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
a1622950 | 11116 | echo "configure:11117: checking for Mesa library" >&5 |
1e6feb95 | 11117 | |
10f2d63a VZ |
11118 | ac_find_libraries= |
11119 | for ac_dir in $SEARCH_LIB; | |
11120 | do | |
f11bdd03 | 11121 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
11122 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
11123 | ac_find_libraries=$ac_dir | |
11124 | break 2 | |
11125 | fi | |
11126 | done | |
11127 | done | |
11128 | ||
1e6feb95 VZ |
11129 | if test "$ac_find_libraries" != "" ; then |
11130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 11131 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
11132 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11133 | else | |
11134 | { echo "configure: error: no" 1>&2; exit 1; } | |
11135 | fi | |
10f2d63a | 11136 | |
3d63bc3a | 11137 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
11138 | TOOLKIT=MSW |
11139 | GUIDIST=MSW_DIST | |
3a922bb4 | 11140 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 11141 | fi |
698dcdb6 | 11142 | |
d714471b VZ |
11143 | if test "$wxUSE_MOTIF" = 1; then |
11144 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
11145 | # paths, otherwise set no_x=yes. |
11146 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11147 | # --without-x overrides everything else, but does not touch the cache. | |
11148 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
a1622950 | 11149 | echo "configure:11150: checking for X" >&5 |
ab9b9eab VZ |
11150 | |
11151 | # Check whether --with-x or --without-x was given. | |
11152 | if test "${with_x+set}" = set; then | |
11153 | withval="$with_x" | |
698dcdb6 VZ |
11154 | : |
11155 | fi | |
ba337fe7 | 11156 | |
ab9b9eab VZ |
11157 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11158 | if test "x$with_x" = xno; then | |
11159 | # The user explicitly disabled X. | |
11160 | have_x=disabled | |
11161 | else | |
11162 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11163 | # Both variables are already set. | |
11164 | have_x=yes | |
11165 | else | |
698dcdb6 VZ |
11166 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11168 | else |
11169 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11170 | ac_x_includes=NO ac_x_libraries=NO |
11171 | rm -fr conftestdir | |
11172 | if mkdir conftestdir; then | |
11173 | cd conftestdir | |
ab9b9eab | 11174 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11175 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11176 | acfindx: |
11177 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11178 | EOF | |
11179 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11180 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11181 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11182 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11183 | for ac_extension in a so sl; do |
ab9b9eab | 11184 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11185 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11186 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11187 | fi |
11188 | done | |
ab9b9eab VZ |
11189 | # Screen out bogus values from the imake configuration. They are |
11190 | # bogus both because they are the default anyway, and because | |
11191 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11192 | case "$ac_im_incroot" in |
ab9b9eab | 11193 | /usr/include) ;; |
698dcdb6 | 11194 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11195 | esac |
698dcdb6 | 11196 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11197 | /usr/lib | /lib) ;; |
698dcdb6 | 11198 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11199 | esac |
ba337fe7 | 11200 | fi |
ab9b9eab | 11201 | cd .. |
698dcdb6 | 11202 | rm -fr conftestdir |
ab9b9eab | 11203 | fi |
10f2d63a | 11204 | |
698dcdb6 VZ |
11205 | if test "$ac_x_includes" = NO; then |
11206 | # Guess where to find include files, by looking for this one X11 .h file. | |
11207 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11208 | ||
ab9b9eab | 11209 | # First, try using that file with no special directory specified. |
698dcdb6 | 11210 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11211 | #line 11212 "configure" |
ab9b9eab | 11212 | #include "confdefs.h" |
698dcdb6 VZ |
11213 | #include <$x_direct_test_include> |
11214 | EOF | |
11215 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 11216 | { (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11217 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11218 | if test -z "$ac_err"; then | |
11219 | rm -rf conftest* | |
ab9b9eab VZ |
11220 | # We can compile using X headers with no special include directory. |
11221 | ac_x_includes= | |
11222 | else | |
698dcdb6 VZ |
11223 | echo "$ac_err" >&5 |
11224 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11225 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11226 | rm -rf conftest* |
11227 | # Look for the header file in a standard set of common directories. | |
11228 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11229 | for ac_dir in \ | |
11230 | /usr/X11/include \ | |
11231 | /usr/X11R6/include \ | |
11232 | /usr/X11R5/include \ | |
11233 | /usr/X11R4/include \ | |
11234 | \ | |
11235 | /usr/include/X11 \ | |
11236 | /usr/include/X11R6 \ | |
11237 | /usr/include/X11R5 \ | |
11238 | /usr/include/X11R4 \ | |
11239 | \ | |
11240 | /usr/local/X11/include \ | |
11241 | /usr/local/X11R6/include \ | |
11242 | /usr/local/X11R5/include \ | |
11243 | /usr/local/X11R4/include \ | |
11244 | \ | |
11245 | /usr/local/include/X11 \ | |
11246 | /usr/local/include/X11R6 \ | |
11247 | /usr/local/include/X11R5 \ | |
11248 | /usr/local/include/X11R4 \ | |
11249 | \ | |
11250 | /usr/X386/include \ | |
11251 | /usr/x386/include \ | |
11252 | /usr/XFree86/include/X11 \ | |
11253 | \ | |
11254 | /usr/include \ | |
11255 | /usr/local/include \ | |
11256 | /usr/unsupported/include \ | |
11257 | /usr/athena/include \ | |
11258 | /usr/local/x11r5/include \ | |
11259 | /usr/lpp/Xamples/include \ | |
11260 | \ | |
11261 | /usr/openwin/include \ | |
11262 | /usr/openwin/share/include \ | |
11263 | ; \ | |
11264 | do | |
11265 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11266 | ac_x_includes=$ac_dir | |
11267 | break | |
11268 | fi | |
11269 | done | |
ab9b9eab | 11270 | fi |
698dcdb6 VZ |
11271 | rm -f conftest* |
11272 | fi # $ac_x_includes = NO | |
10f2d63a | 11273 | |
698dcdb6 | 11274 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11275 | # Check for the libraries. |
698dcdb6 VZ |
11276 | |
11277 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11278 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11279 | ||
ab9b9eab VZ |
11280 | # See if we find them without any special options. |
11281 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11282 | ac_save_LIBS="$LIBS" |
11283 | LIBS="-l$x_direct_test_library $LIBS" | |
11284 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 11285 | #line 11286 "configure" |
ab9b9eab | 11286 | #include "confdefs.h" |
698dcdb6 VZ |
11287 | |
11288 | int main() { | |
11289 | ${x_direct_test_function}() | |
11290 | ; return 0; } | |
11291 | EOF | |
a1622950 | 11292 | if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11293 | rm -rf conftest* |
11294 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11295 | # We can link X programs with no special library path. |
11296 | ac_x_libraries= | |
11297 | else | |
698dcdb6 VZ |
11298 | echo "configure: failed program was:" >&5 |
11299 | cat conftest.$ac_ext >&5 | |
11300 | rm -rf conftest* | |
11301 | LIBS="$ac_save_LIBS" | |
11302 | # First see if replacing the include by lib works. | |
11303 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11304 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11305 | /usr/X11/lib \ | |
11306 | /usr/X11R6/lib \ | |
11307 | /usr/X11R5/lib \ | |
11308 | /usr/X11R4/lib \ | |
11309 | \ | |
11310 | /usr/lib/X11 \ | |
11311 | /usr/lib/X11R6 \ | |
11312 | /usr/lib/X11R5 \ | |
11313 | /usr/lib/X11R4 \ | |
11314 | \ | |
11315 | /usr/local/X11/lib \ | |
11316 | /usr/local/X11R6/lib \ | |
11317 | /usr/local/X11R5/lib \ | |
11318 | /usr/local/X11R4/lib \ | |
11319 | \ | |
11320 | /usr/local/lib/X11 \ | |
11321 | /usr/local/lib/X11R6 \ | |
11322 | /usr/local/lib/X11R5 \ | |
11323 | /usr/local/lib/X11R4 \ | |
11324 | \ | |
11325 | /usr/X386/lib \ | |
11326 | /usr/x386/lib \ | |
11327 | /usr/XFree86/lib/X11 \ | |
11328 | \ | |
11329 | /usr/lib \ | |
11330 | /usr/local/lib \ | |
11331 | /usr/unsupported/lib \ | |
11332 | /usr/athena/lib \ | |
11333 | /usr/local/x11r5/lib \ | |
11334 | /usr/lpp/Xamples/lib \ | |
11335 | /lib/usr/lib/X11 \ | |
11336 | \ | |
11337 | /usr/openwin/lib \ | |
11338 | /usr/openwin/share/lib \ | |
11339 | ; \ | |
ab9b9eab VZ |
11340 | do |
11341 | for ac_extension in a so sl; do | |
698dcdb6 | 11342 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11343 | ac_x_libraries=$ac_dir |
11344 | break 2 | |
10f2d63a | 11345 | fi |
10f2d63a | 11346 | done |
ab9b9eab VZ |
11347 | done |
11348 | fi | |
698dcdb6 VZ |
11349 | rm -f conftest* |
11350 | fi # $ac_x_libraries = NO | |
10f2d63a | 11351 | |
698dcdb6 | 11352 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11353 | # Didn't find X anywhere. Cache the known absence of X. |
11354 | ac_cv_have_x="have_x=no" | |
11355 | else | |
11356 | # Record where we found X for the cache. | |
11357 | ac_cv_have_x="have_x=yes \ | |
11358 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11359 | fi | |
11360 | fi | |
10f2d63a | 11361 | fi |
ab9b9eab VZ |
11362 | eval "$ac_cv_have_x" |
11363 | fi # $with_x != no | |
10f2d63a | 11364 | |
ab9b9eab | 11365 | if test "$have_x" != yes; then |
698dcdb6 | 11366 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11367 | no_x=yes |
11368 | else | |
11369 | # If each of the values was on the command line, it overrides each guess. | |
11370 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11371 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11372 | # Update the cache value to reflect the command line values. | |
11373 | ac_cv_have_x="have_x=yes \ | |
11374 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11375 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11376 | fi |
10f2d63a | 11377 | |
ab9b9eab VZ |
11378 | if test "$no_x" = yes; then |
11379 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11380 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11381 | #define X_DISPLAY_MISSING 1 |
11382 | EOF | |
10f2d63a | 11383 | |
ab9b9eab VZ |
11384 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11385 | else | |
11386 | if test -n "$x_includes"; then | |
11387 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11388 | fi |
11389 | ||
ab9b9eab VZ |
11390 | # It would also be nice to do this for all -L options, not just this one. |
11391 | if test -n "$x_libraries"; then | |
11392 | X_LIBS="$X_LIBS -L$x_libraries" | |
11393 | # For Solaris; some versions of Sun CC require a space after -R and | |
11394 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11395 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11396 | "SunOS 5"*) |
698dcdb6 | 11397 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
a1622950 | 11398 | echo "configure:11399: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11399 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11400 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 11401 | #line 11402 "configure" |
ab9b9eab | 11402 | #include "confdefs.h" |
10f2d63a | 11403 | |
698dcdb6 | 11404 | int main() { |
788deba1 | 11405 | |
698dcdb6 VZ |
11406 | ; return 0; } |
11407 | EOF | |
a1622950 | 11408 | if { (eval echo configure:11409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11409 | rm -rf conftest* |
ab9b9eab VZ |
11410 | ac_R_nospace=yes |
11411 | else | |
698dcdb6 VZ |
11412 | echo "configure: failed program was:" >&5 |
11413 | cat conftest.$ac_ext >&5 | |
11414 | rm -rf conftest* | |
11415 | ac_R_nospace=no | |
ab9b9eab | 11416 | fi |
698dcdb6 | 11417 | rm -f conftest* |
ab9b9eab | 11418 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11419 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11420 | X_LIBS="$X_LIBS -R$x_libraries" |
11421 | else | |
11422 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11423 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11424 | #line 11425 "configure" |
ab9b9eab | 11425 | #include "confdefs.h" |
788deba1 | 11426 | |
698dcdb6 | 11427 | int main() { |
ab9b9eab | 11428 | |
698dcdb6 VZ |
11429 | ; return 0; } |
11430 | EOF | |
a1622950 | 11431 | if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11432 | rm -rf conftest* |
ab9b9eab VZ |
11433 | ac_R_space=yes |
11434 | else | |
698dcdb6 VZ |
11435 | echo "configure: failed program was:" >&5 |
11436 | cat conftest.$ac_ext >&5 | |
11437 | rm -rf conftest* | |
11438 | ac_R_space=no | |
ab9b9eab | 11439 | fi |
698dcdb6 | 11440 | rm -f conftest* |
ab9b9eab | 11441 | if test $ac_R_space = yes; then |
698dcdb6 | 11442 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11443 | X_LIBS="$X_LIBS -R $x_libraries" |
11444 | else | |
698dcdb6 | 11445 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11446 | fi |
11447 | fi | |
698dcdb6 | 11448 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11449 | esac |
11450 | fi | |
11451 | ||
11452 | # Check for system-dependent libraries X programs must link with. | |
11453 | # Do this before checking for the system-independent R6 libraries | |
11454 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11455 | ||
11456 | if test "$ISC" = yes; then | |
11457 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11458 | else | |
698dcdb6 VZ |
11459 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11460 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11461 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11462 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
a1622950 | 11463 | echo "configure:11464: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11464 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11465 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11467 | else |
698dcdb6 | 11468 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11469 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11470 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11471 | #line 11472 "configure" |
ab9b9eab VZ |
11472 | #include "confdefs.h" |
11473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11474 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11475 | builtin and then its argument prototype would still apply. */ |
11476 | char dnet_ntoa(); | |
11477 | ||
11478 | int main() { | |
11479 | dnet_ntoa() | |
11480 | ; return 0; } | |
11481 | EOF | |
a1622950 | 11482 | if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11483 | rm -rf conftest* |
11484 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11485 | else | |
11486 | echo "configure: failed program was:" >&5 | |
11487 | cat conftest.$ac_ext >&5 | |
11488 | rm -rf conftest* | |
11489 | eval "ac_cv_lib_$ac_lib_var=no" | |
11490 | fi | |
11491 | rm -f conftest* | |
11492 | LIBS="$ac_save_LIBS" | |
11493 | ||
11494 | fi | |
11495 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11496 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11497 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11498 | else |
11499 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11500 | fi |
11501 | ||
11502 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11503 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
a1622950 | 11504 | echo "configure:11505: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11505 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11506 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11508 | else |
698dcdb6 | 11509 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11510 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11511 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11512 | #line 11513 "configure" |
ab9b9eab VZ |
11513 | #include "confdefs.h" |
11514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11515 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11516 | builtin and then its argument prototype would still apply. */ |
11517 | char dnet_ntoa(); | |
11518 | ||
11519 | int main() { | |
11520 | dnet_ntoa() | |
11521 | ; return 0; } | |
11522 | EOF | |
a1622950 | 11523 | if { (eval echo configure:11524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11524 | rm -rf conftest* |
11525 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11526 | else | |
11527 | echo "configure: failed program was:" >&5 | |
11528 | cat conftest.$ac_ext >&5 | |
11529 | rm -rf conftest* | |
11530 | eval "ac_cv_lib_$ac_lib_var=no" | |
11531 | fi | |
11532 | rm -f conftest* | |
11533 | LIBS="$ac_save_LIBS" | |
11534 | ||
11535 | fi | |
11536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11537 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11538 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11539 | else |
11540 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11541 | fi |
11542 | ||
11543 | fi | |
11544 | ||
11545 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11546 | # to get the SysV transport functions. | |
698dcdb6 | 11547 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11548 | # needs -lnsl. |
11549 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11550 | # on Irix 5.2, according to dickey@clark.net. |
11551 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
a1622950 | 11552 | echo "configure:11553: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11553 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11555 | else | |
11556 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 11557 | #line 11558 "configure" |
ab9b9eab VZ |
11558 | #include "confdefs.h" |
11559 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11560 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11561 | #include <assert.h> |
11562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11563 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11564 | builtin and then its argument prototype would still apply. */ |
11565 | char gethostbyname(); | |
11566 | ||
11567 | int main() { | |
ab9b9eab VZ |
11568 | |
11569 | /* The GNU C library defines this for functions which it implements | |
11570 | to always fail with ENOSYS. Some functions are actually named | |
11571 | something starting with __ and the normal name is an alias. */ | |
11572 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11573 | choke me | |
11574 | #else | |
698dcdb6 | 11575 | gethostbyname(); |
ab9b9eab VZ |
11576 | #endif |
11577 | ||
698dcdb6 VZ |
11578 | ; return 0; } |
11579 | EOF | |
a1622950 | 11580 | if { (eval echo configure:11581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11581 | rm -rf conftest* |
11582 | eval "ac_cv_func_gethostbyname=yes" | |
11583 | else | |
11584 | echo "configure: failed program was:" >&5 | |
11585 | cat conftest.$ac_ext >&5 | |
11586 | rm -rf conftest* | |
11587 | eval "ac_cv_func_gethostbyname=no" | |
11588 | fi | |
11589 | rm -f conftest* | |
11590 | fi | |
11591 | ||
11592 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11593 | echo "$ac_t""yes" 1>&6 | |
11594 | : | |
11595 | else | |
11596 | echo "$ac_t""no" 1>&6 | |
11597 | fi | |
ab9b9eab VZ |
11598 | |
11599 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11600 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
a1622950 | 11601 | echo "configure:11602: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11602 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11603 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11605 | else |
698dcdb6 | 11606 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11607 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11608 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11609 | #line 11610 "configure" |
ab9b9eab VZ |
11610 | #include "confdefs.h" |
11611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11612 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11613 | builtin and then its argument prototype would still apply. */ |
11614 | char gethostbyname(); | |
6232543b | 11615 | |
698dcdb6 VZ |
11616 | int main() { |
11617 | gethostbyname() | |
11618 | ; return 0; } | |
11619 | EOF | |
a1622950 | 11620 | if { (eval echo configure:11621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11621 | rm -rf conftest* |
11622 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11623 | else |
698dcdb6 VZ |
11624 | echo "configure: failed program was:" >&5 |
11625 | cat conftest.$ac_ext >&5 | |
11626 | rm -rf conftest* | |
11627 | eval "ac_cv_lib_$ac_lib_var=no" | |
11628 | fi | |
11629 | rm -f conftest* | |
11630 | LIBS="$ac_save_LIBS" | |
1e487827 | 11631 | |
698dcdb6 VZ |
11632 | fi |
11633 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11634 | echo "$ac_t""yes" 1>&6 | |
11635 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11636 | else | |
11637 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11638 | fi |
11639 | ||
11640 | fi | |
11641 | ||
11642 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11643 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11644 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11645 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11646 | # gethostby* variants that don't use the nameserver (or something). | |
11647 | # -lsocket must be given before -lnsl if both are needed. | |
11648 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11649 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
a1622950 | 11650 | echo "configure:11651: checking for connect" >&5 |
698dcdb6 VZ |
11651 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11653 | else | |
11654 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 11655 | #line 11656 "configure" |
ab9b9eab VZ |
11656 | #include "confdefs.h" |
11657 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11658 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11659 | #include <assert.h> |
11660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11661 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11662 | builtin and then its argument prototype would still apply. */ |
11663 | char connect(); | |
11664 | ||
11665 | int main() { | |
ab9b9eab VZ |
11666 | |
11667 | /* The GNU C library defines this for functions which it implements | |
11668 | to always fail with ENOSYS. Some functions are actually named | |
11669 | something starting with __ and the normal name is an alias. */ | |
11670 | #if defined (__stub_connect) || defined (__stub___connect) | |
11671 | choke me | |
11672 | #else | |
698dcdb6 | 11673 | connect(); |
ab9b9eab VZ |
11674 | #endif |
11675 | ||
698dcdb6 VZ |
11676 | ; return 0; } |
11677 | EOF | |
a1622950 | 11678 | if { (eval echo configure:11679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11679 | rm -rf conftest* |
11680 | eval "ac_cv_func_connect=yes" | |
11681 | else | |
11682 | echo "configure: failed program was:" >&5 | |
11683 | cat conftest.$ac_ext >&5 | |
11684 | rm -rf conftest* | |
11685 | eval "ac_cv_func_connect=no" | |
11686 | fi | |
11687 | rm -f conftest* | |
11688 | fi | |
11689 | ||
11690 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11691 | echo "$ac_t""yes" 1>&6 | |
11692 | : | |
11693 | else | |
11694 | echo "$ac_t""no" 1>&6 | |
11695 | fi | |
ab9b9eab VZ |
11696 | |
11697 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11698 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
a1622950 | 11699 | echo "configure:11700: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11700 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11701 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11703 | else |
698dcdb6 | 11704 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11705 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11706 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11707 | #line 11708 "configure" |
ab9b9eab VZ |
11708 | #include "confdefs.h" |
11709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11710 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11711 | builtin and then its argument prototype would still apply. */ |
11712 | char connect(); | |
11713 | ||
11714 | int main() { | |
11715 | connect() | |
11716 | ; return 0; } | |
11717 | EOF | |
a1622950 | 11718 | if { (eval echo configure:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11719 | rm -rf conftest* |
11720 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11721 | else | |
11722 | echo "configure: failed program was:" >&5 | |
11723 | cat conftest.$ac_ext >&5 | |
11724 | rm -rf conftest* | |
11725 | eval "ac_cv_lib_$ac_lib_var=no" | |
11726 | fi | |
11727 | rm -f conftest* | |
11728 | LIBS="$ac_save_LIBS" | |
11729 | ||
11730 | fi | |
11731 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11732 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11733 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11734 | else |
11735 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11736 | fi |
11737 | ||
11738 | fi | |
11739 | ||
698dcdb6 VZ |
11740 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11741 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
a1622950 | 11742 | echo "configure:11743: checking for remove" >&5 |
698dcdb6 VZ |
11743 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11745 | else |
698dcdb6 | 11746 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11747 | #line 11748 "configure" |
ab9b9eab VZ |
11748 | #include "confdefs.h" |
11749 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11750 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11751 | #include <assert.h> |
11752 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11753 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11754 | builtin and then its argument prototype would still apply. */ |
11755 | char remove(); | |
11756 | ||
11757 | int main() { | |
ab9b9eab VZ |
11758 | |
11759 | /* The GNU C library defines this for functions which it implements | |
11760 | to always fail with ENOSYS. Some functions are actually named | |
11761 | something starting with __ and the normal name is an alias. */ | |
11762 | #if defined (__stub_remove) || defined (__stub___remove) | |
11763 | choke me | |
11764 | #else | |
698dcdb6 | 11765 | remove(); |
ab9b9eab VZ |
11766 | #endif |
11767 | ||
698dcdb6 VZ |
11768 | ; return 0; } |
11769 | EOF | |
a1622950 | 11770 | if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11771 | rm -rf conftest* |
11772 | eval "ac_cv_func_remove=yes" | |
11773 | else | |
11774 | echo "configure: failed program was:" >&5 | |
11775 | cat conftest.$ac_ext >&5 | |
11776 | rm -rf conftest* | |
11777 | eval "ac_cv_func_remove=no" | |
11778 | fi | |
11779 | rm -f conftest* | |
11780 | fi | |
11781 | ||
11782 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11783 | echo "$ac_t""yes" 1>&6 | |
11784 | : | |
11785 | else | |
11786 | echo "$ac_t""no" 1>&6 | |
11787 | fi | |
ab9b9eab VZ |
11788 | |
11789 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11790 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
a1622950 | 11791 | echo "configure:11792: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11792 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11793 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11795 | else |
698dcdb6 | 11796 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11797 | LIBS="-lposix $LIBS" |
698dcdb6 | 11798 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11799 | #line 11800 "configure" |
ab9b9eab VZ |
11800 | #include "confdefs.h" |
11801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11802 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11803 | builtin and then its argument prototype would still apply. */ |
11804 | char remove(); | |
11805 | ||
11806 | int main() { | |
11807 | remove() | |
11808 | ; return 0; } | |
11809 | EOF | |
a1622950 | 11810 | if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11811 | rm -rf conftest* |
11812 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11813 | else | |
11814 | echo "configure: failed program was:" >&5 | |
11815 | cat conftest.$ac_ext >&5 | |
11816 | rm -rf conftest* | |
11817 | eval "ac_cv_lib_$ac_lib_var=no" | |
11818 | fi | |
11819 | rm -f conftest* | |
11820 | LIBS="$ac_save_LIBS" | |
11821 | ||
11822 | fi | |
11823 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11824 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11825 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11826 | else |
11827 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11828 | fi |
11829 | ||
11830 | fi | |
11831 | ||
11832 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11833 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
a1622950 | 11834 | echo "configure:11835: checking for shmat" >&5 |
698dcdb6 VZ |
11835 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11837 | else |
698dcdb6 | 11838 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11839 | #line 11840 "configure" |
ab9b9eab VZ |
11840 | #include "confdefs.h" |
11841 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11842 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11843 | #include <assert.h> |
11844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11845 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11846 | builtin and then its argument prototype would still apply. */ |
11847 | char shmat(); | |
11848 | ||
11849 | int main() { | |
ab9b9eab VZ |
11850 | |
11851 | /* The GNU C library defines this for functions which it implements | |
11852 | to always fail with ENOSYS. Some functions are actually named | |
11853 | something starting with __ and the normal name is an alias. */ | |
11854 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11855 | choke me | |
11856 | #else | |
698dcdb6 | 11857 | shmat(); |
ab9b9eab VZ |
11858 | #endif |
11859 | ||
698dcdb6 VZ |
11860 | ; return 0; } |
11861 | EOF | |
a1622950 | 11862 | if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11863 | rm -rf conftest* |
11864 | eval "ac_cv_func_shmat=yes" | |
11865 | else | |
11866 | echo "configure: failed program was:" >&5 | |
11867 | cat conftest.$ac_ext >&5 | |
11868 | rm -rf conftest* | |
11869 | eval "ac_cv_func_shmat=no" | |
11870 | fi | |
11871 | rm -f conftest* | |
11872 | fi | |
11873 | ||
11874 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11875 | echo "$ac_t""yes" 1>&6 | |
11876 | : | |
11877 | else | |
11878 | echo "$ac_t""no" 1>&6 | |
11879 | fi | |
ab9b9eab VZ |
11880 | |
11881 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11882 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
a1622950 | 11883 | echo "configure:11884: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11884 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11885 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11887 | else |
698dcdb6 | 11888 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11889 | LIBS="-lipc $LIBS" |
698dcdb6 | 11890 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11891 | #line 11892 "configure" |
ab9b9eab VZ |
11892 | #include "confdefs.h" |
11893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11894 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11895 | builtin and then its argument prototype would still apply. */ |
11896 | char shmat(); | |
11897 | ||
11898 | int main() { | |
11899 | shmat() | |
11900 | ; return 0; } | |
11901 | EOF | |
a1622950 | 11902 | if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11903 | rm -rf conftest* |
11904 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11905 | else | |
11906 | echo "configure: failed program was:" >&5 | |
11907 | cat conftest.$ac_ext >&5 | |
11908 | rm -rf conftest* | |
11909 | eval "ac_cv_lib_$ac_lib_var=no" | |
11910 | fi | |
11911 | rm -f conftest* | |
11912 | LIBS="$ac_save_LIBS" | |
11913 | ||
11914 | fi | |
11915 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11916 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11917 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11918 | else |
11919 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11920 | fi |
11921 | ||
11922 | fi | |
11923 | fi | |
11924 | ||
11925 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11926 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11927 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11928 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11929 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11930 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11931 | # These have to be linked with before -lX11, unlike the other | |
11932 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11933 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11934 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
a1622950 | 11935 | echo "configure:11936: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11936 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11937 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11939 | else | |
11940 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11941 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11942 | cat > conftest.$ac_ext <<EOF |
a1622950 | 11943 | #line 11944 "configure" |
ab9b9eab VZ |
11944 | #include "confdefs.h" |
11945 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11946 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11947 | builtin and then its argument prototype would still apply. */ |
11948 | char IceConnectionNumber(); | |
11949 | ||
11950 | int main() { | |
11951 | IceConnectionNumber() | |
11952 | ; return 0; } | |
11953 | EOF | |
a1622950 | 11954 | if { (eval echo configure:11955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11955 | rm -rf conftest* |
11956 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11957 | else | |
11958 | echo "configure: failed program was:" >&5 | |
11959 | cat conftest.$ac_ext >&5 | |
11960 | rm -rf conftest* | |
11961 | eval "ac_cv_lib_$ac_lib_var=no" | |
11962 | fi | |
11963 | rm -f conftest* | |
11964 | LIBS="$ac_save_LIBS" | |
11965 | ||
11966 | fi | |
11967 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11968 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11969 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11970 | else |
11971 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11972 | fi |
11973 | ||
698dcdb6 | 11974 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11975 | |
11976 | fi | |
11977 | ||
11978 | ||
1e6feb95 VZ |
11979 | if test "$no_x" = "yes"; then |
11980 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11981 | fi | |
ab9b9eab | 11982 | |
1e6feb95 VZ |
11983 | GUI_TK_LIBRARY="$X_LIBS" |
11984 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11985 | AFMINSTALL=afminstall |
1e6feb95 | 11986 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11987 | |
1e6feb95 | 11988 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
a1622950 | 11989 | echo "configure:11990: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11990 | |
ab9b9eab VZ |
11991 | ac_find_includes= |
11992 | for ac_dir in $SEARCH_INCLUDE; | |
11993 | do | |
11994 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11995 | ac_find_includes=$ac_dir | |
11996 | break | |
11997 | fi | |
11998 | done | |
11999 | ||
1e6feb95 VZ |
12000 | if test "$ac_find_includes" != "" ; then |
12001 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12002 | else | |
12003 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12004 | #line 12005 "configure" |
cd6d6d5b VZ |
12005 | #include "confdefs.h" |
12006 | ||
1e6feb95 VZ |
12007 | #include <Xm/Xm.h> |
12008 | ||
698dcdb6 | 12009 | int main() { |
cd6d6d5b | 12010 | |
1e6feb95 | 12011 | int version; |
1e6feb95 VZ |
12012 | version = xmUseVersion; |
12013 | ||
698dcdb6 VZ |
12014 | ; return 0; } |
12015 | EOF | |
a1622950 | 12016 | if { (eval echo configure:12017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12017 | rm -rf conftest* |
12018 | ||
1e6feb95 VZ |
12019 | echo "$ac_t""found in default search path" 1>&6 |
12020 | COMPILED_X_PROGRAM=1 | |
12021 | ||
cd6d6d5b | 12022 | else |
698dcdb6 VZ |
12023 | echo "configure: failed program was:" >&5 |
12024 | cat conftest.$ac_ext >&5 | |
12025 | rm -rf conftest* | |
12026 | ||
1e6feb95 VZ |
12027 | echo "$ac_t""no" 1>&6 |
12028 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12029 | ||
698dcdb6 | 12030 | |
cd6d6d5b | 12031 | fi |
698dcdb6 | 12032 | rm -f conftest* |
1e6feb95 | 12033 | fi |
ab9b9eab | 12034 | |
1e6feb95 VZ |
12035 | if test "$COMPILED_X_PROGRAM" = 0; then |
12036 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
a1622950 | 12037 | echo "configure:12038: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 12038 | |
ab9b9eab VZ |
12039 | ac_find_libraries= |
12040 | for ac_dir in $SEARCH_LIB; | |
12041 | do | |
f11bdd03 | 12042 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12043 | if test -f "$ac_dir/libXm.$ac_extension"; then |
12044 | ac_find_libraries=$ac_dir | |
12045 | break 2 | |
12046 | fi | |
12047 | done | |
12048 | done | |
12049 | ||
1e6feb95 VZ |
12050 | if test "$ac_find_libraries" != "" ; then |
12051 | ||
ab9b9eab VZ |
12052 | ac_path_to_include=$ac_find_includes |
12053 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
12054 | result=$? | |
12055 | if test $result = 0; then | |
12056 | ac_path_to_include="" | |
12057 | else | |
62d0491b | 12058 | ac_path_to_include=" -I$ac_find_includes" |
ab9b9eab VZ |
12059 | fi |
12060 | ||
1e6feb95 | 12061 | |
ab9b9eab VZ |
12062 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12063 | result=$? | |
12064 | if test $result = 0; then | |
12065 | ac_path_to_link="" | |
12066 | else | |
62d0491b | 12067 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12068 | fi |
12069 | ||
698dcdb6 | 12070 | |
62d0491b RL |
12071 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
12072 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
1e6feb95 VZ |
12073 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12074 | else | |
12075 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12076 | #line 12077 "configure" |
cd6d6d5b | 12077 | #include "confdefs.h" |
ab9b9eab | 12078 | |
1e6feb95 VZ |
12079 | #include <Xm/Xm.h> |
12080 | ||
698dcdb6 | 12081 | int main() { |
ab9b9eab | 12082 | |
1e6feb95 | 12083 | int version; |
1e6feb95 VZ |
12084 | version = xmUseVersion; |
12085 | ||
698dcdb6 VZ |
12086 | ; return 0; } |
12087 | EOF | |
a1622950 | 12088 | if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12089 | rm -rf conftest* |
12090 | ||
1e6feb95 VZ |
12091 | echo "$ac_t""found in default search path" 1>&6 |
12092 | COMPILED_X_PROGRAM=1 | |
12093 | ||
cd6d6d5b | 12094 | else |
698dcdb6 VZ |
12095 | echo "configure: failed program was:" >&5 |
12096 | cat conftest.$ac_ext >&5 | |
12097 | rm -rf conftest* | |
12098 | ||
1e6feb95 VZ |
12099 | echo "$ac_t""no" 1>&6 |
12100 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
12101 | ||
698dcdb6 | 12102 | |
cd6d6d5b | 12103 | fi |
698dcdb6 | 12104 | rm -f conftest* |
1e6feb95 | 12105 | fi |
cd6d6d5b | 12106 | fi |
ab9b9eab | 12107 | |
3d63bc3a | 12108 | xpm_link= |
1e6feb95 | 12109 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
a1622950 | 12110 | echo "configure:12111: checking for Xpm library" >&5 |
1e6feb95 | 12111 | |
ab9b9eab VZ |
12112 | ac_find_libraries= |
12113 | for ac_dir in $SEARCH_LIB; | |
12114 | do | |
f11bdd03 | 12115 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12116 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12117 | ac_find_libraries=$ac_dir | |
12118 | break 2 | |
12119 | fi | |
12120 | done | |
12121 | done | |
12122 | ||
1e6feb95 VZ |
12123 | if test "$ac_find_libraries" != "" ; then |
12124 | ||
ab9b9eab VZ |
12125 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12126 | result=$? | |
12127 | if test $result = 0; then | |
12128 | ac_path_to_link="" | |
12129 | else | |
62d0491b | 12130 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12131 | fi |
12132 | ||
62d0491b | 12133 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12134 | xpm_link=" -lXpm" |
1e6feb95 | 12135 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12136 | #define wxHAVE_LIB_XPM 1 |
12137 | EOF | |
12138 | ||
1e6feb95 VZ |
12139 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12140 | else | |
12141 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12142 | #line 12143 "configure" |
cd6d6d5b VZ |
12143 | #include "confdefs.h" |
12144 | ||
1e6feb95 VZ |
12145 | #include <X11/xpm.h> |
12146 | ||
698dcdb6 | 12147 | int main() { |
cd6d6d5b | 12148 | |
1e6feb95 | 12149 | int version; |
1e6feb95 VZ |
12150 | version = XpmLibraryVersion(); |
12151 | ||
698dcdb6 VZ |
12152 | ; return 0; } |
12153 | EOF | |
a1622950 | 12154 | if { (eval echo configure:12155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12155 | rm -rf conftest* |
12156 | ||
3d63bc3a | 12157 | xpm_link=" -lXpm" |
3a922bb4 | 12158 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12159 | #define wxHAVE_LIB_XPM 1 |
12160 | EOF | |
12161 | ||
1e6feb95 VZ |
12162 | echo "$ac_t""found in default search path" 1>&6 |
12163 | COMPILED_X_PROGRAM=0 | |
12164 | ||
cd6d6d5b | 12165 | else |
698dcdb6 VZ |
12166 | echo "configure: failed program was:" >&5 |
12167 | cat conftest.$ac_ext >&5 | |
12168 | rm -rf conftest* | |
12169 | ||
1e6feb95 VZ |
12170 | echo "$ac_t""no" 1>&6 |
12171 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12172 | ||
698dcdb6 | 12173 | |
cd6d6d5b | 12174 | fi |
698dcdb6 | 12175 | rm -f conftest* |
1e6feb95 VZ |
12176 | fi |
12177 | ||
3d63bc3a | 12178 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 12179 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
12180 | TOOLKIT=MOTIF |
12181 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
12182 | fi |
12183 | ||
683dccda GD |
12184 | if test "$wxUSE_MAC" = 1; then |
12185 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 12186 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 12187 | fi |
3d63bc3a RL |
12188 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
12189 | CFLAGS="$CFLAGS -fpascal-strings" | |
12190 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
12191 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON" | |
d08b457b | 12192 | |
13c0541d | 12193 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 12194 | TOOLKIT=MAC |
683dccda | 12195 | GUIDIST=MACX_DIST |
1e6feb95 | 12196 | fi |
10f2d63a | 12197 | |
1e6feb95 VZ |
12198 | if test "$wxUSE_PM" = 1; then |
12199 | TOOLKIT=PM | |
12200 | GUIDIST=GTK_DIST | |
12201 | fi | |
b4085ce6 | 12202 | |
3a922bb4 | 12203 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 12204 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
12205 | else |
12206 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 12207 | fi |
e07802fc | 12208 | |
3a922bb4 | 12209 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 12210 | |
3a922bb4 RL |
12211 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
12212 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
12213 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
12214 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12215 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
12216 | WIDGET_SET=univ | |
f6bcfd97 | 12217 | else |
3a922bb4 | 12218 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
12219 | fi |
12220 | ||
ba0e650c | 12221 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 12222 | |
f9bc1684 | 12223 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
12224 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
12225 | fi | |
12226 | ||
12227 | if test "$wxUSE_HTML" = "yes"; then | |
12228 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
12229 | fi | |
3fcdd07b | 12230 | |
3a922bb4 RL |
12231 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
12232 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 12233 | fi |
4f14bcd8 | 12234 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 12235 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 12236 | fi |
4f14bcd8 | 12237 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
12238 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
12239 | fi | |
4f14bcd8 | 12240 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
12241 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
12242 | fi | |
4f14bcd8 | 12243 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
12244 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
12245 | fi | |
2224580a | 12246 | |
2224580a VZ |
12247 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
12248 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 12249 | else |
dad6c0ea VZ |
12250 | USE_GUI=0 |
12251 | ||
3a922bb4 | 12252 | TOOLKIT_DIR="base" |
f6bcfd97 | 12253 | |
3a922bb4 RL |
12254 | if test "$USE_WIN32" = 1 ; then |
12255 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
12256 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 12257 | |
3a922bb4 | 12258 | TOOLKIT="MSW" |
f6bcfd97 | 12259 | else |
3a922bb4 RL |
12260 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
12261 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
12262 | fi |
12263 | ||
831b3152 | 12264 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
12265 | |
12266 | GUIDIST="BASE_DIST" | |
12267 | DISTDIR="wxBase" | |
10f2d63a VZ |
12268 | fi |
12269 | ||
4f14bcd8 | 12270 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
12271 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
12272 | fi | |
4f14bcd8 | 12273 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
12274 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
12275 | fi | |
10f2d63a | 12276 | |
3a922bb4 | 12277 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
12278 | if test "$wxUSE_MAC" = 1; then |
12279 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
12280 | else | |
570cb8cb | 12281 | |
62d0491b | 12282 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 12283 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
a1622950 | 12284 | echo "configure:12285: checking for GL/gl.h" >&5 |
3a922bb4 RL |
12285 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12287 | else | |
12288 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12289 | #line 12290 "configure" |
3a922bb4 RL |
12290 | #include "confdefs.h" |
12291 | #include <GL/gl.h> | |
12292 | EOF | |
12293 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12294 | { (eval echo configure:12295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12295 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12296 | if test -z "$ac_err"; then | |
12297 | rm -rf conftest* | |
12298 | eval "ac_cv_header_$ac_safe=yes" | |
12299 | else | |
12300 | echo "$ac_err" >&5 | |
12301 | echo "configure: failed program was:" >&5 | |
12302 | cat conftest.$ac_ext >&5 | |
12303 | rm -rf conftest* | |
12304 | eval "ac_cv_header_$ac_safe=no" | |
12305 | fi | |
12306 | rm -f conftest* | |
12307 | fi | |
12308 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12309 | echo "$ac_t""yes" 1>&6 | |
12310 | ||
1352efdf | 12311 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
a1622950 | 12312 | echo "configure:12313: checking for -lGL" >&5 |
57964555 | 12313 | |
62d0491b RL |
12314 | ac_find_libraries= |
12315 | for ac_dir in $SEARCH_LIB; | |
12316 | do | |
12317 | for ac_extension in a so sl dylib; do | |
12318 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
12319 | ac_find_libraries=$ac_dir | |
12320 | break 2 | |
12321 | fi | |
12322 | done | |
12323 | done | |
3a922bb4 | 12324 | |
62d0491b RL |
12325 | if test "$ac_find_libraries" != "" ; then |
12326 | ||
12327 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
12328 | result=$? | |
12329 | if test $result = 0; then | |
12330 | ac_path_to_link="" | |
12331 | else | |
12332 | ac_path_to_link=" -L$ac_find_libraries" | |
12333 | fi | |
3a922bb4 | 12334 | |
62d0491b RL |
12335 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12336 | OPENGL_LIBS="-lGL -lGLU" | |
1352efdf | 12337 | echo "$ac_t""yes" 1>&6 |
62d0491b | 12338 | else |
1352efdf RL |
12339 | echo "$ac_t""no" 1>&6 |
12340 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
a1622950 | 12341 | echo "configure:12342: checking for -lMesaGL" >&5 |
62d0491b RL |
12342 | |
12343 | ac_find_libraries= | |
12344 | for ac_dir in $SEARCH_LIB; | |
12345 | do | |
12346 | for ac_extension in a so sl dylib; do | |
12347 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12348 | ac_find_libraries=$ac_dir | |
12349 | break 2 | |
12350 | fi | |
12351 | done | |
12352 | done | |
3a922bb4 | 12353 | |
62d0491b | 12354 | if test "$ac_find_libraries" != "" ; then |
57964555 | 12355 | |
62d0491b RL |
12356 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
12357 | result=$? | |
12358 | if test $result = 0; then | |
12359 | ac_path_to_link="" | |
12360 | else | |
12361 | ac_path_to_link=" -L$ac_find_libraries" | |
12362 | fi | |
3a922bb4 | 12363 | |
62d0491b RL |
12364 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12365 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
12366 | echo "$ac_t""yes" 1>&6 |
12367 | else | |
12368 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
12369 | fi |
12370 | fi | |
12371 | ||
3a922bb4 RL |
12372 | else |
12373 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12374 | fi |
12375 | ||
6f754473 | 12376 | |
62d0491b RL |
12377 | |
12378 | # AC_CHECK_HEADER(GL/gl.h, | |
12379 | # [ | |
12380 | # AC_CHECK_LIB(GL, glFlush, | |
12381 | # [ | |
12382 | # OPENGL_LIBS="-lGL -lGLU" | |
12383 | # ], | |
12384 | # [ | |
12385 | # AC_CHECK_LIB(MesaGL, glFlush, | |
12386 | # [ | |
12387 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
12388 | # ], | |
12389 | # [], | |
12390 | # [-lm]) | |
12391 | # ], | |
12392 | # [-lm]) | |
12393 | # ]) | |
12394 | ||
12395 | if test "x$OPENGL_LIBS" = "x"; then | |
12396 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
12397 | fi | |
6f754473 | 12398 | fi |
6f754473 | 12399 | |
62d0491b RL |
12400 | if test "$wxUSE_OPENGL" = "yes"; then |
12401 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
12402 | #define wxUSE_OPENGL 1 |
12403 | EOF | |
12404 | ||
62d0491b | 12405 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
12406 | #define wxUSE_GLCANVAS 1 |
12407 | EOF | |
12408 | ||
62d0491b RL |
12409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
12410 | fi | |
3a922bb4 RL |
12411 | fi |
12412 | ||
12413 | if test -z "$TOOLKIT_VPATH" ; then | |
12414 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12415 | fi | |
12416 | ||
12417 | if test -n "$TOOLKIT" ; then | |
12418 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
12419 | fi | |
12420 | ||
f676c7ff MB |
12421 | lib_unicode_suffix= |
12422 | if test "$wxUSE_UNICODE" = "yes"; then | |
12423 | lib_unicode_suffix=u | |
12424 | fi | |
12425 | ||
3a922bb4 RL |
12426 | lib_debug_suffix= |
12427 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
12428 | lib_debug_suffix=d | |
3a922bb4 RL |
12429 | fi |
12430 | ||
f676c7ff MB |
12431 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
12432 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
12433 | |
12434 | if test "$cross_compiling" = "yes"; then | |
12435 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
12436 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
12437 | fi | |
12438 | ||
12439 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
12440 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
12441 | ||
3a922bb4 RL |
12442 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
12443 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
12444 | ||
12445 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
12446 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12447 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
12448 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
12449 | ||
d08b457b | 12450 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 12451 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 12452 | |
978f1259 RL |
12453 | case "${host}" in |
12454 | *-*-cygwin* | *-*-mingw32* ) | |
12455 | ||
2da4f892 | 12456 | |
978f1259 RL |
12457 | |
12458 | if test "$cross_compiling" != "yes"; then | |
12459 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12460 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12461 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
12462 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
12463 | else |
12464 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12465 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
12466 | fi |
12467 | ||
12468 | esac | |
12469 | ||
12470 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
12471 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
12472 | ||
12473 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 12474 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
12475 | |
12476 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
12477 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
12478 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
12479 | fi |
12480 | ||
12481 | ||
3a922bb4 RL |
12482 | |
12483 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
12484 | |
12485 | if test "$wxUSE_OPENGL" = "yes"; then | |
12486 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 12487 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
12488 | else |
12489 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 12490 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
12491 | fi |
12492 | ||
dd4f7467 | 12493 | if test "$GCC" = "yes"; then |
55e80573 | 12494 | PIC_FLAG="-fPIC" |
dd4f7467 | 12495 | fi |
55e80573 VZ |
12496 | |
12497 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 12498 | |
10f2d63a VZ |
12499 | case "${host}" in |
12500 | *-hp-hpux* ) | |
55e80573 | 12501 | if test "$GCC" != "yes"; then |
3d63bc3a | 12502 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 12503 | |
10f2d63a VZ |
12504 | SHARED_LD="${CXX} -b -o" |
12505 | PIC_FLAG="+Z" | |
12506 | fi | |
55e80573 | 12507 | |
7b7a7637 RL |
12508 | if test "$wxUSE_OPENGL" = "yes"; then |
12509 | WX_ALL_INSTALLED="preinstall_gl" | |
12510 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
12511 | else | |
12512 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
12513 | fi | |
10f2d63a | 12514 | ;; |
b12915c1 | 12515 | |
55e80573 VZ |
12516 | *-*-linux* ) |
12517 | if test "$GCC" != "yes"; then | |
12518 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
a1622950 | 12519 | echo "configure:12520: checking for Intel compiler" >&5 |
55e80573 VZ |
12520 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
12521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12522 | else | |
12523 | ||
12524 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12525 | #line 12526 "configure" |
55e80573 VZ |
12526 | #include "confdefs.h" |
12527 | ||
12528 | int main() { | |
12529 | ||
12530 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 12531 | #error Not icc |
55e80573 VZ |
12532 | #endif |
12533 | ||
12534 | ; return 0; } | |
12535 | EOF | |
a1622950 | 12536 | if { (eval echo configure:12537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
12537 | rm -rf conftest* |
12538 | wx_cv_prog_icc=yes | |
12539 | else | |
12540 | echo "configure: failed program was:" >&5 | |
12541 | cat conftest.$ac_ext >&5 | |
12542 | rm -rf conftest* | |
12543 | wx_cv_prog_icc=no | |
12544 | ||
12545 | fi | |
12546 | rm -f conftest* | |
12547 | ||
12548 | fi | |
12549 | ||
12550 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
12551 | if test "$wx_cv_prog_icc" = "yes"; then |
12552 | PIC_FLAG="-KPIC" | |
12553 | fi | |
12554 | fi | |
12555 | ||
3a922bb4 RL |
12556 | if test "$wxUSE_SONAME" = "yes" ; then |
12557 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
12558 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 12559 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 12560 | fi |
10f2d63a | 12561 | ;; |
55e80573 | 12562 | |
10f2d63a VZ |
12563 | *-*-solaris2* ) |
12564 | if test "$GCC" = yes ; then | |
f6bcfd97 | 12565 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
12566 | else |
12567 | SHARED_LD="${CXX} -G -o" | |
12568 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
12569 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
12570 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 12571 | fi |
10f2d63a | 12572 | ;; |
55e80573 | 12573 | |
b4085ce6 | 12574 | *-*-darwin* ) |
156b2523 GD |
12575 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
12576 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
12577 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 12578 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 12579 | ;; |
55e80573 | 12580 | |
10f2d63a VZ |
12581 | *-*-aix* ) |
12582 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 12583 | ;; |
55e80573 | 12584 | |
7b7a7637 | 12585 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 12586 | |
2da4f892 | 12587 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 12588 | |
77e13408 | 12589 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 12590 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
12591 | |
12592 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
12593 | |
12594 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 12595 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 12596 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 12597 | else |
978f1259 | 12598 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 12599 | fi |
10f2d63a | 12600 | ;; |
55e80573 | 12601 | |
6fa882bd | 12602 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 12603 | wxUSE_SHARED=no |
10f2d63a | 12604 | ;; |
55e80573 | 12605 | |
b12915c1 | 12606 | *-*-beos* ) |
e2b8b066 | 12607 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 12608 | ;; |
55e80573 VZ |
12609 | |
12610 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
12611 | *-*-sunos4* | \ | |
12612 | *-*-irix5* | *-*-irix6* | \ | |
12613 | *-*-osf* | \ | |
12614 | *-*-dgux5* | \ | |
12615 | *-*-sysv5* ) | |
12616 | ;; | |
12617 | ||
10f2d63a | 12618 | *) |
7b7a7637 | 12619 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
12620 | esac |
12621 | ||
12622 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
12623 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 12624 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 12625 | fi |
55e80573 | 12626 | |
3711412e | 12627 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 12628 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 12629 | fi |
f6bcfd97 | 12630 | |
3a922bb4 | 12631 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 12632 | |
3a922bb4 | 12633 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
12634 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
12635 | fi | |
12636 | ||
6fa882bd RR |
12637 | if test "$wxUSE_MAC" = 1; then |
12638 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
12639 | fi | |
12640 | ||
3a922bb4 RL |
12641 | if test "$wxUSE_OPENGL" = "yes"; then |
12642 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
12643 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
12644 | else | |
12645 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
12646 | fi | |
698dcdb6 | 12647 | |
3a922bb4 RL |
12648 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
12649 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
12650 | ||
12651 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 12652 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 12653 | fi |
10f2d63a | 12654 | |
d08b457b GD |
12655 | if test "$wxUSE_MAC" = 1; then |
12656 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 12657 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
12658 | # Extract the first word of "Rez", so it can be a program name with args. |
12659 | set dummy Rez; ac_word=$2 | |
12660 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a1622950 | 12661 | echo "configure:12662: checking for $ac_word" >&5 |
d08b457b GD |
12662 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
12663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12664 | else | |
12665 | if test -n "$RESCOMP"; then | |
12666 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
12667 | else | |
12668 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12669 | ac_dummy="$PATH" | |
12670 | for ac_dir in $ac_dummy; do | |
12671 | test -z "$ac_dir" && ac_dir=. | |
12672 | if test -f $ac_dir/$ac_word; then | |
12673 | ac_cv_prog_RESCOMP="Rez" | |
12674 | break | |
12675 | fi | |
12676 | done | |
12677 | IFS="$ac_save_ifs" | |
12678 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
12679 | fi | |
12680 | fi | |
12681 | RESCOMP="$ac_cv_prog_RESCOMP" | |
12682 | if test -n "$RESCOMP"; then | |
12683 | echo "$ac_t""$RESCOMP" 1>&6 | |
12684 | else | |
12685 | echo "$ac_t""no" 1>&6 | |
12686 | fi | |
12687 | ||
9f8148b1 GD |
12688 | # Extract the first word of "DeRez", so it can be a program name with args. |
12689 | set dummy DeRez; ac_word=$2 | |
d08b457b | 12690 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a1622950 | 12691 | echo "configure:12692: checking for $ac_word" >&5 |
d08b457b GD |
12692 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
12693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12694 | else | |
12695 | if test -n "$DEREZ"; then | |
12696 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12697 | else | |
12698 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12699 | ac_dummy="$PATH" | |
12700 | for ac_dir in $ac_dummy; do | |
12701 | test -z "$ac_dir" && ac_dir=. | |
12702 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 12703 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
12704 | break |
12705 | fi | |
12706 | done | |
12707 | IFS="$ac_save_ifs" | |
9f8148b1 | 12708 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
12709 | fi |
12710 | fi | |
12711 | DEREZ="$ac_cv_prog_DEREZ" | |
12712 | if test -n "$DEREZ"; then | |
12713 | echo "$ac_t""$DEREZ" 1>&6 | |
12714 | else | |
12715 | echo "$ac_t""no" 1>&6 | |
12716 | fi | |
12717 | ||
12718 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12719 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12720 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12721 | fi |
12722 | ||
3a922bb4 | 12723 | |
13c0541d GD |
12724 | if test "$wxUSE_MAC" != 1; then |
12725 | for ac_hdr in strings.h | |
9cfadba2 | 12726 | do |
698dcdb6 VZ |
12727 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12728 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12729 | echo "configure:12730: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12730 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12732 | else | |
12733 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12734 | #line 12735 "configure" |
9cfadba2 | 12735 | #include "confdefs.h" |
698dcdb6 VZ |
12736 | #include <$ac_hdr> |
12737 | EOF | |
12738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12739 | { (eval echo configure:12740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12740 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12741 | if test -z "$ac_err"; then | |
12742 | rm -rf conftest* | |
12743 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12744 | else |
698dcdb6 VZ |
12745 | echo "$ac_err" >&5 |
12746 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12747 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12748 | rm -rf conftest* |
12749 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12750 | fi |
698dcdb6 | 12751 | rm -f conftest* |
9cfadba2 | 12752 | fi |
698dcdb6 VZ |
12753 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12754 | echo "$ac_t""yes" 1>&6 | |
12755 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12756 | cat >> confdefs.h <<EOF | |
12757 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12758 | EOF |
698dcdb6 VZ |
12759 | |
12760 | else | |
12761 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12762 | fi |
12763 | done | |
10f2d63a | 12764 | |
13c0541d GD |
12765 | fi |
12766 | ||
3a922bb4 | 12767 | for ac_hdr in stdlib.h |
10f2d63a | 12768 | do |
698dcdb6 VZ |
12769 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12770 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12771 | echo "configure:12772: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12772 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12774 | else | |
12775 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12776 | #line 12777 "configure" |
10f2d63a | 12777 | #include "confdefs.h" |
698dcdb6 VZ |
12778 | #include <$ac_hdr> |
12779 | EOF | |
12780 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12781 | { (eval echo configure:12782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12782 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12783 | if test -z "$ac_err"; then | |
12784 | rm -rf conftest* | |
12785 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12786 | else |
698dcdb6 VZ |
12787 | echo "$ac_err" >&5 |
12788 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12789 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12790 | rm -rf conftest* |
12791 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12792 | fi |
698dcdb6 | 12793 | rm -f conftest* |
10f2d63a | 12794 | fi |
698dcdb6 VZ |
12795 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12796 | echo "$ac_t""yes" 1>&6 | |
12797 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12798 | cat >> confdefs.h <<EOF | |
12799 | #define $ac_tr_hdr 1 | |
10f2d63a | 12800 | EOF |
698dcdb6 VZ |
12801 | |
12802 | else | |
12803 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12804 | fi |
12805 | done | |
12806 | ||
9f8148b1 | 12807 | for ac_hdr in malloc.h |
10f2d63a | 12808 | do |
698dcdb6 VZ |
12809 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12810 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12811 | echo "configure:12812: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12814 | else | |
12815 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12816 | #line 12817 "configure" |
10f2d63a | 12817 | #include "confdefs.h" |
698dcdb6 VZ |
12818 | #include <$ac_hdr> |
12819 | EOF | |
12820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12821 | { (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12823 | if test -z "$ac_err"; then | |
12824 | rm -rf conftest* | |
12825 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12826 | else |
698dcdb6 VZ |
12827 | echo "$ac_err" >&5 |
12828 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12829 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12830 | rm -rf conftest* |
12831 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12832 | fi |
698dcdb6 | 12833 | rm -f conftest* |
6f72b082 | 12834 | fi |
698dcdb6 VZ |
12835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12836 | echo "$ac_t""yes" 1>&6 | |
12837 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12838 | cat >> confdefs.h <<EOF | |
12839 | #define $ac_tr_hdr 1 | |
6f72b082 | 12840 | EOF |
698dcdb6 VZ |
12841 | |
12842 | else | |
12843 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12844 | fi |
12845 | done | |
12846 | ||
9f8148b1 | 12847 | for ac_hdr in unistd.h |
6f72b082 | 12848 | do |
698dcdb6 VZ |
12849 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12850 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12851 | echo "configure:12852: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12852 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12854 | else | |
12855 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12856 | #line 12857 "configure" |
6f72b082 | 12857 | #include "confdefs.h" |
698dcdb6 VZ |
12858 | #include <$ac_hdr> |
12859 | EOF | |
12860 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12861 | { (eval echo configure:12862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12862 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12863 | if test -z "$ac_err"; then | |
12864 | rm -rf conftest* | |
12865 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12866 | else |
698dcdb6 VZ |
12867 | echo "$ac_err" >&5 |
12868 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12869 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12870 | rm -rf conftest* |
12871 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12872 | fi |
698dcdb6 | 12873 | rm -f conftest* |
6f72b082 | 12874 | fi |
698dcdb6 VZ |
12875 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12876 | echo "$ac_t""yes" 1>&6 | |
12877 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12878 | cat >> confdefs.h <<EOF | |
12879 | #define $ac_tr_hdr 1 | |
6f72b082 | 12880 | EOF |
698dcdb6 VZ |
12881 | |
12882 | else | |
12883 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12884 | fi |
12885 | done | |
12886 | ||
9f8148b1 | 12887 | for ac_hdr in wchar.h |
6f72b082 | 12888 | do |
698dcdb6 VZ |
12889 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12890 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12891 | echo "configure:12892: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12892 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12894 | else | |
12895 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12896 | #line 12897 "configure" |
6f72b082 | 12897 | #include "confdefs.h" |
698dcdb6 VZ |
12898 | #include <$ac_hdr> |
12899 | EOF | |
12900 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12901 | { (eval echo configure:12902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12902 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12903 | if test -z "$ac_err"; then | |
12904 | rm -rf conftest* | |
12905 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12906 | else |
698dcdb6 VZ |
12907 | echo "$ac_err" >&5 |
12908 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12909 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12910 | rm -rf conftest* |
12911 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12912 | fi |
698dcdb6 | 12913 | rm -f conftest* |
10f2d63a | 12914 | fi |
698dcdb6 VZ |
12915 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12916 | echo "$ac_t""yes" 1>&6 | |
12917 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12918 | cat >> confdefs.h <<EOF | |
12919 | #define $ac_tr_hdr 1 | |
10f2d63a | 12920 | EOF |
698dcdb6 VZ |
12921 | |
12922 | else | |
12923 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12924 | fi |
12925 | done | |
12926 | ||
9f8148b1 | 12927 | for ac_hdr in wcstr.h |
0fb0dd83 | 12928 | do |
698dcdb6 VZ |
12929 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12930 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12931 | echo "configure:12932: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12932 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12934 | else | |
12935 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12936 | #line 12937 "configure" |
0fb0dd83 | 12937 | #include "confdefs.h" |
698dcdb6 VZ |
12938 | #include <$ac_hdr> |
12939 | EOF | |
12940 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12941 | { (eval echo configure:12942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12942 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12943 | if test -z "$ac_err"; then | |
12944 | rm -rf conftest* | |
12945 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12946 | else |
698dcdb6 VZ |
12947 | echo "$ac_err" >&5 |
12948 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12949 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12950 | rm -rf conftest* |
12951 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12952 | fi |
698dcdb6 | 12953 | rm -f conftest* |
0fb0dd83 | 12954 | fi |
698dcdb6 VZ |
12955 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12956 | echo "$ac_t""yes" 1>&6 | |
12957 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12958 | cat >> confdefs.h <<EOF | |
12959 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12960 | EOF |
698dcdb6 VZ |
12961 | |
12962 | else | |
12963 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12964 | fi |
12965 | done | |
12966 | ||
9f8148b1 | 12967 | for ac_hdr in wctype.h |
1f8ae82f | 12968 | do |
698dcdb6 VZ |
12969 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12970 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 12971 | echo "configure:12972: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12972 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12974 | else | |
12975 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 12976 | #line 12977 "configure" |
1f8ae82f | 12977 | #include "confdefs.h" |
698dcdb6 VZ |
12978 | #include <$ac_hdr> |
12979 | EOF | |
12980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 12981 | { (eval echo configure:12982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12983 | if test -z "$ac_err"; then | |
12984 | rm -rf conftest* | |
12985 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12986 | else |
698dcdb6 VZ |
12987 | echo "$ac_err" >&5 |
12988 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12989 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12990 | rm -rf conftest* |
12991 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12992 | fi |
698dcdb6 | 12993 | rm -f conftest* |
1f8ae82f | 12994 | fi |
698dcdb6 VZ |
12995 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12996 | echo "$ac_t""yes" 1>&6 | |
12997 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12998 | cat >> confdefs.h <<EOF | |
12999 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13000 | EOF |
698dcdb6 VZ |
13001 | |
13002 | else | |
13003 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
13004 | fi |
13005 | done | |
13006 | ||
9f8148b1 | 13007 | for ac_hdr in fnmatch.h |
10f2d63a | 13008 | do |
698dcdb6 VZ |
13009 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13010 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 13011 | echo "configure:13012: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13012 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13014 | else | |
13015 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13016 | #line 13017 "configure" |
10f2d63a | 13017 | #include "confdefs.h" |
698dcdb6 VZ |
13018 | #include <$ac_hdr> |
13019 | EOF | |
13020 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 13021 | { (eval echo configure:13022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13022 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13023 | if test -z "$ac_err"; then | |
13024 | rm -rf conftest* | |
13025 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13026 | else |
698dcdb6 VZ |
13027 | echo "$ac_err" >&5 |
13028 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13029 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13030 | rm -rf conftest* |
13031 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13032 | fi |
698dcdb6 | 13033 | rm -f conftest* |
10f2d63a | 13034 | fi |
698dcdb6 VZ |
13035 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13036 | echo "$ac_t""yes" 1>&6 | |
13037 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13038 | cat >> confdefs.h <<EOF | |
13039 | #define $ac_tr_hdr 1 | |
10f2d63a | 13040 | EOF |
698dcdb6 VZ |
13041 | |
13042 | else | |
13043 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13044 | fi |
13045 | done | |
13046 | ||
9f8148b1 | 13047 | for ac_hdr in iconv.h |
0fbb762e MB |
13048 | do |
13049 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13050 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 13051 | echo "configure:13052: checking for $ac_hdr" >&5 |
0fbb762e MB |
13052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13054 | else | |
13055 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13056 | #line 13057 "configure" |
0fbb762e MB |
13057 | #include "confdefs.h" |
13058 | #include <$ac_hdr> | |
13059 | EOF | |
13060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 13061 | { (eval echo configure:13062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13063 | if test -z "$ac_err"; then | |
13064 | rm -rf conftest* | |
13065 | eval "ac_cv_header_$ac_safe=yes" | |
13066 | else | |
13067 | echo "$ac_err" >&5 | |
13068 | echo "configure: failed program was:" >&5 | |
13069 | cat conftest.$ac_ext >&5 | |
13070 | rm -rf conftest* | |
13071 | eval "ac_cv_header_$ac_safe=no" | |
13072 | fi | |
13073 | rm -f conftest* | |
13074 | fi | |
13075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13076 | echo "$ac_t""yes" 1>&6 | |
13077 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13078 | cat >> confdefs.h <<EOF | |
13079 | #define $ac_tr_hdr 1 | |
13080 | EOF | |
13081 | ||
13082 | else | |
13083 | echo "$ac_t""no" 1>&6 | |
13084 | fi | |
13085 | done | |
13086 | ||
9f8148b1 GD |
13087 | for ac_hdr in langinfo.h |
13088 | do | |
13089 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13090 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 13091 | echo "configure:13092: checking for $ac_hdr" >&5 |
9f8148b1 GD |
13092 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13094 | else | |
13095 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13096 | #line 13097 "configure" |
9f8148b1 GD |
13097 | #include "confdefs.h" |
13098 | #include <$ac_hdr> | |
13099 | EOF | |
13100 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 13101 | { (eval echo configure:13102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
13102 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13103 | if test -z "$ac_err"; then | |
13104 | rm -rf conftest* | |
13105 | eval "ac_cv_header_$ac_safe=yes" | |
13106 | else | |
13107 | echo "$ac_err" >&5 | |
13108 | echo "configure: failed program was:" >&5 | |
13109 | cat conftest.$ac_ext >&5 | |
13110 | rm -rf conftest* | |
13111 | eval "ac_cv_header_$ac_safe=no" | |
13112 | fi | |
13113 | rm -f conftest* | |
13114 | fi | |
13115 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13116 | echo "$ac_t""yes" 1>&6 | |
13117 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13118 | cat >> confdefs.h <<EOF | |
13119 | #define $ac_tr_hdr 1 | |
13120 | EOF | |
13121 | ||
13122 | else | |
13123 | echo "$ac_t""no" 1>&6 | |
13124 | fi | |
13125 | done | |
13126 | ||
10f2d63a | 13127 | |
3a922bb4 RL |
13128 | if test "$wxUSE_GUI" = "yes"; then |
13129 | if test "$wxUSE_UNIX" = "yes"; then | |
13130 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
13131 | do |
13132 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13133 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 13134 | echo "configure:13135: checking for $ac_hdr" >&5 |
29fd3c0c VS |
13135 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13137 | else | |
13138 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13139 | #line 13140 "configure" |
29fd3c0c VS |
13140 | #include "confdefs.h" |
13141 | #include <$ac_hdr> | |
13142 | EOF | |
13143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 13144 | { (eval echo configure:13145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
13145 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13146 | if test -z "$ac_err"; then | |
13147 | rm -rf conftest* | |
13148 | eval "ac_cv_header_$ac_safe=yes" | |
13149 | else | |
13150 | echo "$ac_err" >&5 | |
13151 | echo "configure: failed program was:" >&5 | |
13152 | cat conftest.$ac_ext >&5 | |
13153 | rm -rf conftest* | |
13154 | eval "ac_cv_header_$ac_safe=no" | |
13155 | fi | |
13156 | rm -f conftest* | |
13157 | fi | |
13158 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13159 | echo "$ac_t""yes" 1>&6 | |
13160 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13161 | cat >> confdefs.h <<EOF | |
13162 | #define $ac_tr_hdr 1 | |
13163 | EOF | |
13164 | ||
13165 | else | |
13166 | echo "$ac_t""no" 1>&6 | |
13167 | fi | |
13168 | done | |
13169 | ||
3a922bb4 | 13170 | fi |
29fd3c0c VS |
13171 | fi |
13172 | ||
698dcdb6 VZ |
13173 | |
13174 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
a1622950 | 13175 | echo "configure:13176: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
13176 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
13177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13178 | else |
698dcdb6 | 13179 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13180 | #line 13181 "configure" |
10f2d63a VZ |
13181 | #include "confdefs.h" |
13182 | #include <stdlib.h> | |
13183 | #include <stdarg.h> | |
13184 | #include <string.h> | |
13185 | #include <float.h> | |
698dcdb6 VZ |
13186 | EOF |
13187 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 13188 | { (eval echo configure:13189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13189 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13190 | if test -z "$ac_err"; then | |
13191 | rm -rf conftest* | |
10f2d63a VZ |
13192 | ac_cv_header_stdc=yes |
13193 | else | |
698dcdb6 VZ |
13194 | echo "$ac_err" >&5 |
13195 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13196 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13197 | rm -rf conftest* |
10f2d63a VZ |
13198 | ac_cv_header_stdc=no |
13199 | fi | |
698dcdb6 | 13200 | rm -f conftest* |
10f2d63a VZ |
13201 | |
13202 | if test $ac_cv_header_stdc = yes; then | |
13203 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 13204 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13205 | #line 13206 "configure" |
10f2d63a VZ |
13206 | #include "confdefs.h" |
13207 | #include <string.h> | |
698dcdb6 | 13208 | EOF |
10f2d63a VZ |
13209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13210 | egrep "memchr" >/dev/null 2>&1; then | |
13211 | : | |
13212 | else | |
698dcdb6 | 13213 | rm -rf conftest* |
10f2d63a VZ |
13214 | ac_cv_header_stdc=no |
13215 | fi | |
13216 | rm -f conftest* | |
13217 | ||
13218 | fi | |
13219 | ||
13220 | if test $ac_cv_header_stdc = yes; then | |
13221 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 13222 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13223 | #line 13224 "configure" |
10f2d63a VZ |
13224 | #include "confdefs.h" |
13225 | #include <stdlib.h> | |
698dcdb6 | 13226 | EOF |
10f2d63a VZ |
13227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13228 | egrep "free" >/dev/null 2>&1; then | |
13229 | : | |
13230 | else | |
698dcdb6 | 13231 | rm -rf conftest* |
10f2d63a VZ |
13232 | ac_cv_header_stdc=no |
13233 | fi | |
13234 | rm -f conftest* | |
13235 | ||
13236 | fi | |
13237 | ||
13238 | if test $ac_cv_header_stdc = yes; then | |
13239 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 13240 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
13241 | : |
13242 | else | |
698dcdb6 | 13243 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13244 | #line 13245 "configure" |
10f2d63a VZ |
13245 | #include "confdefs.h" |
13246 | #include <ctype.h> | |
698dcdb6 VZ |
13247 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
13248 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 13249 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
13250 | int main () { int i; for (i = 0; i < 256; i++) |
13251 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
13252 | exit (0); } | |
13253 | ||
13254 | EOF | |
a1622950 | 13255 | if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13256 | then |
10f2d63a VZ |
13257 | : |
13258 | else | |
698dcdb6 VZ |
13259 | echo "configure: failed program was:" >&5 |
13260 | cat conftest.$ac_ext >&5 | |
13261 | rm -fr conftest* | |
13262 | ac_cv_header_stdc=no | |
10f2d63a | 13263 | fi |
698dcdb6 | 13264 | rm -fr conftest* |
10f2d63a | 13265 | fi |
698dcdb6 | 13266 | |
10f2d63a VZ |
13267 | fi |
13268 | fi | |
1e487827 | 13269 | |
698dcdb6 VZ |
13270 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
13271 | if test $ac_cv_header_stdc = yes; then | |
13272 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13273 | #define STDC_HEADERS 1 |
13274 | EOF | |
13275 | ||
13276 | fi | |
13277 | ||
698dcdb6 | 13278 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
a1622950 | 13279 | echo "configure:13280: checking for mode_t" >&5 |
698dcdb6 VZ |
13280 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
13281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13282 | else |
698dcdb6 | 13283 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13284 | #line 13285 "configure" |
1e487827 | 13285 | #include "confdefs.h" |
698dcdb6 VZ |
13286 | #include <sys/types.h> |
13287 | #if STDC_HEADERS | |
13288 | #include <stdlib.h> | |
13289 | #include <stddef.h> | |
13290 | #endif | |
13291 | EOF | |
13292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13293 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13294 | rm -rf conftest* | |
10f2d63a VZ |
13295 | ac_cv_type_mode_t=yes |
13296 | else | |
698dcdb6 VZ |
13297 | rm -rf conftest* |
13298 | ac_cv_type_mode_t=no | |
703e0a69 | 13299 | fi |
698dcdb6 | 13300 | rm -f conftest* |
1e487827 | 13301 | |
698dcdb6 VZ |
13302 | fi |
13303 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
13304 | if test $ac_cv_type_mode_t = no; then | |
13305 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13306 | #define mode_t int |
13307 | EOF | |
13308 | ||
13309 | fi | |
13310 | ||
698dcdb6 | 13311 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
a1622950 | 13312 | echo "configure:13313: checking for off_t" >&5 |
698dcdb6 VZ |
13313 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
13314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13315 | else |
698dcdb6 | 13316 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13317 | #line 13318 "configure" |
10f2d63a | 13318 | #include "confdefs.h" |
698dcdb6 VZ |
13319 | #include <sys/types.h> |
13320 | #if STDC_HEADERS | |
13321 | #include <stdlib.h> | |
13322 | #include <stddef.h> | |
13323 | #endif | |
13324 | EOF | |
13325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13326 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13327 | rm -rf conftest* | |
10f2d63a VZ |
13328 | ac_cv_type_off_t=yes |
13329 | else | |
698dcdb6 VZ |
13330 | rm -rf conftest* |
13331 | ac_cv_type_off_t=no | |
703e0a69 | 13332 | fi |
698dcdb6 | 13333 | rm -f conftest* |
1e487827 | 13334 | |
698dcdb6 VZ |
13335 | fi |
13336 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
13337 | if test $ac_cv_type_off_t = no; then | |
13338 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13339 | #define off_t long |
13340 | EOF | |
13341 | ||
13342 | fi | |
13343 | ||
698dcdb6 | 13344 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
a1622950 | 13345 | echo "configure:13346: checking for pid_t" >&5 |
698dcdb6 VZ |
13346 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
13347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13348 | else |
698dcdb6 | 13349 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13350 | #line 13351 "configure" |
10f2d63a | 13351 | #include "confdefs.h" |
698dcdb6 VZ |
13352 | #include <sys/types.h> |
13353 | #if STDC_HEADERS | |
13354 | #include <stdlib.h> | |
13355 | #include <stddef.h> | |
13356 | #endif | |
13357 | EOF | |
13358 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13359 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13360 | rm -rf conftest* | |
10f2d63a VZ |
13361 | ac_cv_type_pid_t=yes |
13362 | else | |
698dcdb6 VZ |
13363 | rm -rf conftest* |
13364 | ac_cv_type_pid_t=no | |
703e0a69 | 13365 | fi |
698dcdb6 | 13366 | rm -f conftest* |
1e487827 | 13367 | |
698dcdb6 VZ |
13368 | fi |
13369 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
13370 | if test $ac_cv_type_pid_t = no; then | |
13371 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13372 | #define pid_t int |
13373 | EOF | |
13374 | ||
13375 | fi | |
13376 | ||
698dcdb6 | 13377 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
a1622950 | 13378 | echo "configure:13379: checking for size_t" >&5 |
698dcdb6 VZ |
13379 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
13380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13381 | else |
698dcdb6 | 13382 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13383 | #line 13384 "configure" |
10f2d63a | 13384 | #include "confdefs.h" |
698dcdb6 VZ |
13385 | #include <sys/types.h> |
13386 | #if STDC_HEADERS | |
13387 | #include <stdlib.h> | |
13388 | #include <stddef.h> | |
13389 | #endif | |
13390 | EOF | |
13391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13392 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13393 | rm -rf conftest* | |
10f2d63a VZ |
13394 | ac_cv_type_size_t=yes |
13395 | else | |
698dcdb6 VZ |
13396 | rm -rf conftest* |
13397 | ac_cv_type_size_t=no | |
703e0a69 | 13398 | fi |
698dcdb6 | 13399 | rm -f conftest* |
1e487827 | 13400 | |
698dcdb6 VZ |
13401 | fi |
13402 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
13403 | if test $ac_cv_type_size_t = no; then | |
13404 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13405 | #define size_t unsigned |
13406 | EOF | |
13407 | ||
13408 | fi | |
13409 | ||
698dcdb6 | 13410 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
a1622950 | 13411 | echo "configure:13412: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
13412 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
13413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13414 | else |
698dcdb6 | 13415 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13416 | #line 13417 "configure" |
10f2d63a VZ |
13417 | #include "confdefs.h" |
13418 | #include <sys/types.h> | |
698dcdb6 | 13419 | EOF |
10f2d63a VZ |
13420 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13421 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 13422 | rm -rf conftest* |
10f2d63a VZ |
13423 | ac_cv_type_uid_t=yes |
13424 | else | |
698dcdb6 | 13425 | rm -rf conftest* |
10f2d63a VZ |
13426 | ac_cv_type_uid_t=no |
13427 | fi | |
13428 | rm -f conftest* | |
13429 | ||
13430 | fi | |
1e487827 | 13431 | |
698dcdb6 VZ |
13432 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
13433 | if test $ac_cv_type_uid_t = no; then | |
13434 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13435 | #define uid_t int |
13436 | EOF | |
13437 | ||
698dcdb6 | 13438 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13439 | #define gid_t int |
13440 | EOF | |
13441 | ||
13442 | fi | |
13443 | ||
1e487827 | 13444 | |
698dcdb6 | 13445 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
a1622950 | 13446 | echo "configure:13447: checking for wchar_t" >&5 |
698dcdb6 VZ |
13447 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
13448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13449 | else | |
13450 | ||
13451 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13452 | #line 13453 "configure" |
0046ff7c | 13453 | #include "confdefs.h" |
4b42290e GD |
13454 | |
13455 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
13456 | # ifdef __CYGWIN__ |
13457 | # include <stddef.h> | |
13458 | # endif | |
4b42290e GD |
13459 | # include <wchar.h> |
13460 | #endif | |
13461 | #ifdef HAVE_STDLIB_H | |
13462 | # include <stdlib.h> | |
13463 | #endif | |
13464 | ||
698dcdb6 | 13465 | int main() { |
0046ff7c | 13466 | |
d836ee96 VZ |
13467 | wchar_t wc, *ws; |
13468 | wc = L'a'; | |
13469 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
13470 | |
13471 | ; return 0; } | |
13472 | EOF | |
a1622950 | 13473 | if { (eval echo configure:13474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13474 | rm -rf conftest* |
1f8ae82f | 13475 | wx_cv_type_wchar_t=yes |
0046ff7c | 13476 | else |
698dcdb6 VZ |
13477 | echo "configure: failed program was:" >&5 |
13478 | cat conftest.$ac_ext >&5 | |
13479 | rm -rf conftest* | |
13480 | wx_cv_type_wchar_t=no | |
d836ee96 | 13481 | |
6232543b | 13482 | fi |
698dcdb6 | 13483 | rm -f conftest* |
703e0a69 | 13484 | |
1e487827 | 13485 | fi |
698dcdb6 VZ |
13486 | |
13487 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
13488 | |
13489 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 13490 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
13491 | #define wxUSE_WCHAR_T 1 |
13492 | EOF | |
13493 | ||
13494 | fi | |
13495 | ||
19af3b06 VZ |
13496 | |
13497 | ac_ext=C | |
13498 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13499 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13500 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13501 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13502 | cross_compiling=$ac_cv_prog_cxx_cross | |
13503 | ||
d836ee96 | 13504 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
a1622950 | 13505 | echo "configure:13506: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
13506 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
13507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13508 | else | |
dd2c8b7c | 13509 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13510 | #line 13511 "configure" |
d836ee96 VZ |
13511 | #include "confdefs.h" |
13512 | #include <stddef.h> | |
13513 | int main() { | |
13514 | ||
dd2c8b7c VZ |
13515 | return 0; } |
13516 | ||
d836ee96 | 13517 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
13518 | |
13519 | int bar() { | |
d836ee96 VZ |
13520 | |
13521 | ; return 0; } | |
13522 | EOF | |
a1622950 | 13523 | if { (eval echo configure:13524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13524 | rm -rf conftest* |
13525 | wx_cv_size_t_is_uint=no | |
13526 | else | |
13527 | echo "configure: failed program was:" >&5 | |
13528 | cat conftest.$ac_ext >&5 | |
13529 | rm -rf conftest* | |
13530 | wx_cv_size_t_is_uint=yes | |
13531 | ||
13532 | fi | |
13533 | rm -f conftest* | |
13534 | ||
13535 | fi | |
13536 | ||
13537 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
13538 | ||
13539 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
13540 | cat >> confdefs.h <<\EOF | |
13541 | #define wxSIZE_T_IS_UINT 1 | |
13542 | EOF | |
13543 | ||
13544 | else | |
13545 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
a1622950 | 13546 | echo "configure:13547: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
13547 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
13548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13549 | else | |
13550 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13551 | #line 13552 "configure" |
d836ee96 VZ |
13552 | #include "confdefs.h" |
13553 | #include <stddef.h> | |
13554 | int main() { | |
13555 | ||
dd2c8b7c VZ |
13556 | return 0; } |
13557 | ||
d836ee96 | 13558 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
13559 | |
13560 | int bar() { | |
d836ee96 VZ |
13561 | |
13562 | ; return 0; } | |
13563 | EOF | |
a1622950 | 13564 | if { (eval echo configure:13565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13565 | rm -rf conftest* |
13566 | wx_cv_size_t_is_ulong=no | |
13567 | else | |
13568 | echo "configure: failed program was:" >&5 | |
13569 | cat conftest.$ac_ext >&5 | |
13570 | rm -rf conftest* | |
13571 | wx_cv_size_t_is_ulong=yes | |
13572 | ||
13573 | fi | |
13574 | rm -f conftest* | |
13575 | ||
13576 | fi | |
13577 | ||
13578 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
13579 | ||
13580 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
13581 | cat >> confdefs.h <<\EOF | |
13582 | #define wxSIZE_T_IS_ULONG 1 | |
13583 | EOF | |
13584 | ||
13585 | fi | |
13586 | fi | |
13587 | ||
19af3b06 VZ |
13588 | ac_ext=c |
13589 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13590 | ac_cpp='$CPP $CPPFLAGS' | |
13591 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13592 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13593 | cross_compiling=$ac_cv_prog_cc_cross | |
13594 | ||
13595 | ||
1e487827 | 13596 | |
698dcdb6 | 13597 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
a1622950 | 13598 | echo "configure:13599: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
13599 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
13600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13601 | else | |
13602 | ||
13603 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13604 | #line 13605 "configure" |
b12915c1 VZ |
13605 | #include "confdefs.h" |
13606 | #include <pwd.h> | |
698dcdb6 | 13607 | int main() { |
b12915c1 VZ |
13608 | |
13609 | char *p; | |
13610 | struct passwd *pw; | |
13611 | p = pw->pw_gecos; | |
698dcdb6 VZ |
13612 | |
13613 | ; return 0; } | |
13614 | EOF | |
a1622950 | 13615 | if { (eval echo configure:13616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13616 | rm -rf conftest* |
13617 | ||
b12915c1 | 13618 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 13619 | |
b12915c1 | 13620 | else |
698dcdb6 VZ |
13621 | echo "configure: failed program was:" >&5 |
13622 | cat conftest.$ac_ext >&5 | |
13623 | rm -rf conftest* | |
13624 | ||
b12915c1 | 13625 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
13626 | |
13627 | ||
6232543b | 13628 | fi |
698dcdb6 VZ |
13629 | rm -f conftest* |
13630 | ||
703e0a69 | 13631 | |
1e487827 | 13632 | fi |
698dcdb6 VZ |
13633 | |
13634 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 13635 | |
bd3277fe | 13636 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 13637 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
13638 | #define HAVE_PW_GECOS 1 |
13639 | EOF | |
13640 | ||
13641 | fi | |
13642 | ||
698dcdb6 VZ |
13643 | |
13644 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
a1622950 | 13645 | echo "configure:13646: checking for working const" >&5 |
698dcdb6 VZ |
13646 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
13647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13648 | else |
698dcdb6 | 13649 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13650 | #line 13651 "configure" |
10f2d63a | 13651 | #include "confdefs.h" |
698dcdb6 VZ |
13652 | |
13653 | int main() { | |
13654 | ||
13655 | /* Ultrix mips cc rejects this. */ | |
a1622950 | 13656 | typedef int charset[2]; const charset x = {0,0}; |
698dcdb6 VZ |
13657 | /* SunOS 4.1.1 cc rejects this. */ |
13658 | char const *const *ccp; | |
13659 | char **p; | |
13660 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13661 | struct point {int x, y;}; | |
13662 | static struct point const zero = {0,0}; | |
13663 | /* AIX XL C 1.02.0.0 rejects this. | |
13664 | It does not let you subtract one const X* pointer from another in an arm | |
13665 | of an if-expression whose if-part is not a constant expression */ | |
13666 | const char *g = "string"; | |
13667 | ccp = &g + (g ? g-g : 0); | |
13668 | /* HPUX 7.0 cc rejects these. */ | |
13669 | ++ccp; | |
13670 | p = (char**) ccp; | |
13671 | ccp = (char const *const *) p; | |
13672 | { /* SCO 3.2v4 cc rejects this. */ | |
13673 | char *t; | |
13674 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13675 | ||
13676 | *t++ = 0; | |
10f2d63a | 13677 | } |
698dcdb6 VZ |
13678 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
13679 | int x[] = {25, 17}; | |
13680 | const int *foo = &x[0]; | |
13681 | ++foo; | |
703e0a69 | 13682 | } |
698dcdb6 VZ |
13683 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
13684 | typedef const int *iptr; | |
13685 | iptr p = 0; | |
13686 | ++p; | |
6232543b | 13687 | } |
698dcdb6 VZ |
13688 | { /* AIX XL C 1.02.0.0 rejects this saying |
13689 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13690 | struct s { int j; const int *ap[3]; }; | |
13691 | struct s *b; b->j = 5; | |
1e487827 | 13692 | } |
698dcdb6 VZ |
13693 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
13694 | const int foo = 10; | |
13695 | } | |
4f14bcd8 GD |
13696 | |
13697 | ; return 0; } | |
698dcdb6 | 13698 | EOF |
a1622950 | 13699 | if { (eval echo configure:13700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13700 | rm -rf conftest* |
13701 | ac_cv_c_const=yes | |
698dcdb6 VZ |
13702 | else |
13703 | echo "configure: failed program was:" >&5 | |
13704 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13705 | rm -rf conftest* |
13706 | ac_cv_c_const=no | |
703e0a69 | 13707 | fi |
4f14bcd8 | 13708 | rm -f conftest* |
698dcdb6 VZ |
13709 | fi |
13710 | ||
4f14bcd8 GD |
13711 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
13712 | if test $ac_cv_c_const = no; then | |
13713 | cat >> confdefs.h <<\EOF | |
13714 | #define const | |
698dcdb6 VZ |
13715 | EOF |
13716 | ||
4f14bcd8 | 13717 | fi |
698dcdb6 | 13718 | |
4f14bcd8 | 13719 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
a1622950 | 13720 | echo "configure:13721: checking for inline" >&5 |
4f14bcd8 | 13721 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 13722 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13723 | else |
4f14bcd8 GD |
13724 | ac_cv_c_inline=no |
13725 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 13726 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13727 | #line 13728 "configure" |
10f2d63a | 13728 | #include "confdefs.h" |
4f14bcd8 GD |
13729 | |
13730 | int main() { | |
a1622950 | 13731 | } int $ac_kw foo() { |
4f14bcd8 | 13732 | ; return 0; } |
698dcdb6 | 13733 | EOF |
a1622950 | 13734 | if { (eval echo configure:13735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13735 | rm -rf conftest* |
13736 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 13737 | else |
698dcdb6 VZ |
13738 | echo "configure: failed program was:" >&5 |
13739 | cat conftest.$ac_ext >&5 | |
10f2d63a | 13740 | fi |
4f14bcd8 GD |
13741 | rm -f conftest* |
13742 | done | |
698dcdb6 | 13743 | |
10f2d63a | 13744 | fi |
4f14bcd8 GD |
13745 | |
13746 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
13747 | case "$ac_cv_c_inline" in | |
13748 | inline | yes) ;; | |
13749 | no) cat >> confdefs.h <<\EOF | |
13750 | #define inline | |
13751 | EOF | |
13752 | ;; | |
13753 | *) cat >> confdefs.h <<EOF | |
13754 | #define inline $ac_cv_c_inline | |
698dcdb6 | 13755 | EOF |
4f14bcd8 GD |
13756 | ;; |
13757 | esac | |
698dcdb6 VZ |
13758 | |
13759 | ||
4f14bcd8 | 13760 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
a1622950 | 13761 | echo "configure:13762: checking size of char" >&5 |
4f14bcd8 | 13762 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
13763 | echo $ac_n "(cached) $ac_c" 1>&6 |
13764 | else | |
13765 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 13766 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
13767 | else |
13768 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13769 | #line 13770 "configure" |
698dcdb6 VZ |
13770 | #include "confdefs.h" |
13771 | #include <stdio.h> | |
13772 | main() | |
13773 | { | |
13774 | FILE *f=fopen("conftestval", "w"); | |
13775 | if (!f) exit(1); | |
4f14bcd8 | 13776 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
13777 | exit(0); |
13778 | } | |
13779 | EOF | |
a1622950 | 13780 | if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13781 | then |
4f14bcd8 | 13782 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 13783 | else |
698dcdb6 VZ |
13784 | echo "configure: failed program was:" >&5 |
13785 | cat conftest.$ac_ext >&5 | |
13786 | rm -fr conftest* | |
4f14bcd8 | 13787 | ac_cv_sizeof_char=0 |
6232543b | 13788 | fi |
698dcdb6 VZ |
13789 | rm -fr conftest* |
13790 | fi | |
13791 | ||
703e0a69 | 13792 | fi |
4f14bcd8 | 13793 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 13794 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13795 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13796 | EOF |
13797 | ||
1e487827 | 13798 | |
4f14bcd8 | 13799 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
a1622950 | 13800 | echo "configure:13801: checking size of short" >&5 |
4f14bcd8 | 13801 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
13802 | echo $ac_n "(cached) $ac_c" 1>&6 |
13803 | else | |
4f14bcd8 GD |
13804 | if test "$cross_compiling" = yes; then |
13805 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13806 | else |
698dcdb6 | 13807 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13808 | #line 13809 "configure" |
b93d0d08 | 13809 | #include "confdefs.h" |
4f14bcd8 GD |
13810 | #include <stdio.h> |
13811 | main() | |
13812 | { | |
13813 | FILE *f=fopen("conftestval", "w"); | |
13814 | if (!f) exit(1); | |
13815 | fprintf(f, "%d\n", sizeof(short)); | |
13816 | exit(0); | |
13817 | } | |
698dcdb6 | 13818 | EOF |
a1622950 | 13819 | if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13820 | then |
4f14bcd8 | 13821 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13822 | else |
698dcdb6 VZ |
13823 | echo "configure: failed program was:" >&5 |
13824 | cat conftest.$ac_ext >&5 | |
13825 | rm -fr conftest* | |
4f14bcd8 | 13826 | ac_cv_sizeof_short=0 |
b93d0d08 | 13827 | fi |
698dcdb6 | 13828 | rm -fr conftest* |
b93d0d08 VS |
13829 | fi |
13830 | ||
b93d0d08 | 13831 | fi |
4f14bcd8 | 13832 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13833 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13834 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13835 | EOF |
13836 | ||
698dcdb6 | 13837 | |
4f14bcd8 | 13838 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
a1622950 | 13839 | echo "configure:13840: checking size of int *" >&5 |
4f14bcd8 | 13840 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 13841 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13842 | else |
4f14bcd8 GD |
13843 | if test "$cross_compiling" = yes; then |
13844 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13845 | else |
3a922bb4 | 13846 | cat > conftest.$ac_ext <<EOF |
a1622950 | 13847 | #line 13848 "configure" |
3a922bb4 | 13848 | #include "confdefs.h" |
4f14bcd8 GD |
13849 | #include <stdio.h> |
13850 | main() | |
13851 | { | |
13852 | FILE *f=fopen("conftestval", "w"); | |
13853 | if (!f) exit(1); | |
13854 | fprintf(f, "%d\n", sizeof(int *)); | |
13855 | exit(0); | |
13856 | } | |
13857 | EOF | |
a1622950 | 13858 | if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13859 | then |
13860 | ac_cv_sizeof_int_p=`cat conftestval` | |
13861 | else | |
13862 | echo "configure: failed program was:" >&5 | |
13863 | cat conftest.$ac_ext >&5 | |
13864 | rm -fr conftest* | |
13865 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13866 | fi |
4f14bcd8 | 13867 | rm -fr conftest* |
3a922bb4 | 13868 | fi |
698dcdb6 | 13869 | |
4f14bcd8 GD |
13870 | fi |
13871 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13872 | cat >> confdefs.h <<EOF | |
13873 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13874 | EOF |
13875 | ||
703e0a69 | 13876 | |
4f14bcd8 | 13877 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
a1622950 | 13878 | echo "configure:13879: checking size of int" >&5 |
4f14bcd8 | 13879 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 13880 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13881 | else |
13882 | if test "$cross_compiling" = yes; then | |
13883 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13884 | else |
13885 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13886 | #line 13887 "configure" |
10f2d63a | 13887 | #include "confdefs.h" |
4f14bcd8 GD |
13888 | #include <stdio.h> |
13889 | main() | |
13890 | { | |
13891 | FILE *f=fopen("conftestval", "w"); | |
13892 | if (!f) exit(1); | |
13893 | fprintf(f, "%d\n", sizeof(int)); | |
13894 | exit(0); | |
13895 | } | |
698dcdb6 | 13896 | EOF |
a1622950 | 13897 | if { (eval echo configure:13898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13898 | then |
13899 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13900 | else |
698dcdb6 | 13901 | echo "configure: failed program was:" >&5 |
10f2d63a | 13902 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13903 | rm -fr conftest* |
13904 | ac_cv_sizeof_int=0 | |
10f2d63a | 13905 | fi |
4f14bcd8 | 13906 | rm -fr conftest* |
10f2d63a | 13907 | fi |
10f2d63a | 13908 | |
4f14bcd8 GD |
13909 | fi |
13910 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13911 | cat >> confdefs.h <<EOF | |
13912 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13913 | EOF |
13914 | ||
698dcdb6 | 13915 | |
4f14bcd8 | 13916 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
a1622950 | 13917 | echo "configure:13918: checking size of long" >&5 |
4f14bcd8 | 13918 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
13919 | echo $ac_n "(cached) $ac_c" 1>&6 |
13920 | else | |
4f14bcd8 GD |
13921 | if test "$cross_compiling" = yes; then |
13922 | ac_cv_sizeof_long=4 | |
13923 | else | |
13924 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13925 | #line 13926 "configure" |
10f2d63a | 13926 | #include "confdefs.h" |
4f14bcd8 GD |
13927 | #include <stdio.h> |
13928 | main() | |
13929 | { | |
13930 | FILE *f=fopen("conftestval", "w"); | |
13931 | if (!f) exit(1); | |
13932 | fprintf(f, "%d\n", sizeof(long)); | |
13933 | exit(0); | |
13934 | } | |
698dcdb6 | 13935 | EOF |
a1622950 | 13936 | if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13937 | then |
13938 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13939 | else |
698dcdb6 VZ |
13940 | echo "configure: failed program was:" >&5 |
13941 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13942 | rm -fr conftest* |
13943 | ac_cv_sizeof_long=0 | |
10f2d63a | 13944 | fi |
4f14bcd8 | 13945 | rm -fr conftest* |
10f2d63a | 13946 | fi |
698dcdb6 | 13947 | |
4f14bcd8 GD |
13948 | fi |
13949 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13950 | cat >> confdefs.h <<EOF | |
13951 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13952 | EOF |
13953 | ||
698dcdb6 | 13954 | |
4f14bcd8 | 13955 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
a1622950 | 13956 | echo "configure:13957: checking size of long long" >&5 |
4f14bcd8 | 13957 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 13958 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13959 | else |
4f14bcd8 GD |
13960 | if test "$cross_compiling" = yes; then |
13961 | ac_cv_sizeof_long_long=0 | |
13962 | else | |
13963 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 13964 | #line 13965 "configure" |
10f2d63a | 13965 | #include "confdefs.h" |
4f14bcd8 GD |
13966 | #include <stdio.h> |
13967 | main() | |
13968 | { | |
13969 | FILE *f=fopen("conftestval", "w"); | |
13970 | if (!f) exit(1); | |
13971 | fprintf(f, "%d\n", sizeof(long long)); | |
13972 | exit(0); | |
13973 | } | |
698dcdb6 | 13974 | EOF |
a1622950 | 13975 | if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13976 | then |
13977 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13978 | else |
13979 | echo "configure: failed program was:" >&5 | |
13980 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13981 | rm -fr conftest* |
13982 | ac_cv_sizeof_long_long=0 | |
13983 | fi | |
13984 | rm -fr conftest* | |
698dcdb6 | 13985 | fi |
698dcdb6 VZ |
13986 | |
13987 | fi | |
4f14bcd8 GD |
13988 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13989 | cat >> confdefs.h <<EOF | |
13990 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13991 | EOF |
13992 | ||
10f2d63a | 13993 | |
4f14bcd8 GD |
13994 | |
13995 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
a1622950 | 13996 | echo "configure:13997: checking size of wchar_t" >&5 |
4f14bcd8 | 13997 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 13998 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13999 | else |
4f14bcd8 GD |
14000 | |
14001 | if test "$cross_compiling" = yes; then | |
14002 | wx_cv_sizeof_wchar_t=4 | |
14003 | ||
14004 | else | |
14005 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14006 | #line 14007 "configure" |
10f2d63a | 14007 | #include "confdefs.h" |
698dcdb6 | 14008 | |
4f14bcd8 | 14009 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14010 | # ifdef __CYGWIN__ |
14011 | # include <stddef.h> | |
14012 | # endif | |
4f14bcd8 GD |
14013 | # include <wchar.h> |
14014 | #endif | |
14015 | #ifdef HAVE_STDLIB_H | |
14016 | # include <stdlib.h> | |
14017 | #endif | |
14018 | #include <stdio.h> | |
14019 | int main() | |
14020 | { | |
14021 | FILE *f=fopen("conftestval", "w"); | |
14022 | if (!f) exit(1); | |
14023 | fprintf(f, "%i", sizeof(wchar_t)); | |
14024 | exit(0); | |
14025 | } | |
14026 | ||
698dcdb6 | 14027 | EOF |
a1622950 | 14028 | if { (eval echo configure:14029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14029 | then |
14030 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14031 | else |
14032 | echo "configure: failed program was:" >&5 | |
14033 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14034 | rm -fr conftest* |
14035 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14036 | fi |
4f14bcd8 GD |
14037 | rm -fr conftest* |
14038 | fi | |
14039 | ||
698dcdb6 VZ |
14040 | |
14041 | fi | |
4f14bcd8 GD |
14042 | |
14043 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
14044 | ||
14045 | cat >> confdefs.h <<EOF | |
14046 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
14047 | EOF |
14048 | ||
18dbb1f6 | 14049 | |
4f14bcd8 | 14050 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
a1622950 | 14051 | echo "configure:14052: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 14052 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
14053 | echo $ac_n "(cached) $ac_c" 1>&6 |
14054 | else | |
4f14bcd8 GD |
14055 | ac_cv_c_bigendian=unknown |
14056 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 14057 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14058 | #line 14059 "configure" |
18dbb1f6 | 14059 | #include "confdefs.h" |
4f14bcd8 GD |
14060 | #include <sys/types.h> |
14061 | #include <sys/param.h> | |
14062 | int main() { | |
18dbb1f6 | 14063 | |
4f14bcd8 GD |
14064 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
14065 | bogus endian macros | |
14066 | #endif | |
14067 | ; return 0; } | |
14068 | EOF | |
a1622950 | 14069 | if { (eval echo configure:14070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14070 | rm -rf conftest* |
14071 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14072 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14073 | #line 14074 "configure" |
4f14bcd8 GD |
14074 | #include "confdefs.h" |
14075 | #include <sys/types.h> | |
14076 | #include <sys/param.h> | |
18dbb1f6 | 14077 | int main() { |
4f14bcd8 GD |
14078 | |
14079 | #if BYTE_ORDER != BIG_ENDIAN | |
14080 | not big endian | |
14081 | #endif | |
18dbb1f6 VZ |
14082 | ; return 0; } |
14083 | EOF | |
a1622950 | 14084 | if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 14085 | rm -rf conftest* |
4f14bcd8 | 14086 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
14087 | else |
14088 | echo "configure: failed program was:" >&5 | |
14089 | cat conftest.$ac_ext >&5 | |
14090 | rm -rf conftest* | |
4f14bcd8 | 14091 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
14092 | fi |
14093 | rm -f conftest* | |
698dcdb6 | 14094 | else |
4f14bcd8 GD |
14095 | echo "configure: failed program was:" >&5 |
14096 | cat conftest.$ac_ext >&5 | |
1e487827 | 14097 | fi |
4f14bcd8 GD |
14098 | rm -f conftest* |
14099 | if test $ac_cv_c_bigendian = unknown; then | |
14100 | if test "$cross_compiling" = yes; then | |
14101 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
14102 | else |
14103 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14104 | #line 14105 "configure" |
b3e8d00a | 14105 | #include "confdefs.h" |
4f14bcd8 GD |
14106 | main () { |
14107 | /* Are we little or big endian? From Harbison&Steele. */ | |
14108 | union | |
14109 | { | |
14110 | long l; | |
14111 | char c[sizeof (long)]; | |
14112 | } u; | |
14113 | u.l = 1; | |
14114 | exit (u.c[sizeof (long) - 1] == 1); | |
14115 | } | |
b3e8d00a | 14116 | EOF |
a1622950 | 14117 | if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14118 | then |
14119 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
14120 | else |
14121 | echo "configure: failed program was:" >&5 | |
14122 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14123 | rm -fr conftest* |
14124 | ac_cv_c_bigendian=yes | |
b3e8d00a | 14125 | fi |
4f14bcd8 | 14126 | rm -fr conftest* |
b3e8d00a VZ |
14127 | fi |
14128 | ||
4f14bcd8 GD |
14129 | fi |
14130 | fi | |
14131 | ||
14132 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
14133 | if test $ac_cv_c_bigendian = unknown; then | |
14134 | 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 | |
14135 | fi | |
14136 | if test $ac_cv_c_bigendian = yes; then | |
14137 | cat >> confdefs.h <<\EOF | |
14138 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 14139 | EOF |
4f14bcd8 | 14140 | |
b3e8d00a | 14141 | fi |
b3e8d00a VZ |
14142 | |
14143 | ||
4f14bcd8 | 14144 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
a1622950 | 14145 | echo "configure:14146: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
14146 | if test -z "$CXXCPP"; then |
14147 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
14148 | echo $ac_n "(cached) $ac_c" 1>&6 |
14149 | else | |
4f14bcd8 GD |
14150 | ac_ext=C |
14151 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14152 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14153 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14154 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14155 | cross_compiling=$ac_cv_prog_cxx_cross | |
14156 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 14157 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14158 | #line 14159 "configure" |
10f2d63a | 14159 | #include "confdefs.h" |
4f14bcd8 | 14160 | #include <stdlib.h> |
698dcdb6 | 14161 | EOF |
4f14bcd8 | 14162 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a1622950 | 14163 | { (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14164 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14165 | if test -z "$ac_err"; then | |
14166 | : | |
698dcdb6 | 14167 | else |
4f14bcd8 | 14168 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14169 | echo "configure: failed program was:" >&5 |
14170 | cat conftest.$ac_ext >&5 | |
14171 | rm -rf conftest* | |
4f14bcd8 | 14172 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
14173 | fi |
14174 | rm -f conftest* | |
4f14bcd8 GD |
14175 | ac_cv_prog_CXXCPP="$CXXCPP" |
14176 | ac_ext=C | |
14177 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14178 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14179 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14180 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14181 | cross_compiling=$ac_cv_prog_cxx_cross | |
14182 | fi | |
698dcdb6 | 14183 | fi |
4f14bcd8 GD |
14184 | CXXCPP="$ac_cv_prog_CXXCPP" |
14185 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 14186 | |
4f14bcd8 GD |
14187 | |
14188 | if test "$cross_compiling" = "yes"; then | |
14189 | cat >> confdefs.h <<\EOF | |
14190 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
14191 | EOF |
14192 | ||
4f14bcd8 GD |
14193 | else |
14194 | ||
14195 | ac_ext=C | |
14196 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14198 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14199 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14200 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 14201 | |
4f14bcd8 GD |
14202 | |
14203 | for ac_hdr in iostream | |
14204 | do | |
14205 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14206 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 14207 | echo "configure:14208: checking for $ac_hdr" >&5 |
4f14bcd8 | 14208 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
14209 | echo $ac_n "(cached) $ac_c" 1>&6 |
14210 | else | |
14211 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14212 | #line 14213 "configure" |
10f2d63a | 14213 | #include "confdefs.h" |
4f14bcd8 | 14214 | #include <$ac_hdr> |
698dcdb6 | 14215 | EOF |
4f14bcd8 | 14216 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a1622950 | 14217 | { (eval echo configure:14218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14218 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14219 | if test -z "$ac_err"; then | |
698dcdb6 | 14220 | rm -rf conftest* |
4f14bcd8 | 14221 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14222 | else |
4f14bcd8 | 14223 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14224 | echo "configure: failed program was:" >&5 |
14225 | cat conftest.$ac_ext >&5 | |
14226 | rm -rf conftest* | |
4f14bcd8 | 14227 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
14228 | fi |
14229 | rm -f conftest* | |
14230 | fi | |
4f14bcd8 | 14231 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 14232 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14233 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
14234 | cat >> confdefs.h <<EOF | |
14235 | #define $ac_tr_hdr 1 | |
10f2d63a | 14236 | EOF |
4f14bcd8 | 14237 | |
698dcdb6 VZ |
14238 | else |
14239 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 14240 | fi |
4f14bcd8 | 14241 | done |
10f2d63a | 14242 | |
10f2d63a | 14243 | |
4f14bcd8 GD |
14244 | if test "$ac_cv_header_iostream" = "yes" ; then |
14245 | : | |
14246 | else | |
14247 | cat >> confdefs.h <<\EOF | |
14248 | #define wxUSE_IOSTREAMH 1 | |
14249 | EOF | |
14250 | ||
14251 | fi | |
1e487827 | 14252 | |
4f14bcd8 GD |
14253 | ac_ext=c |
14254 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14255 | ac_cpp='$CPP $CPPFLAGS' | |
14256 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14257 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14258 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 14259 | |
4f14bcd8 | 14260 | fi |
698dcdb6 VZ |
14261 | |
14262 | ||
14263 | ||
4f14bcd8 | 14264 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
a1622950 | 14265 | echo "configure:14266: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 14266 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
14267 | echo $ac_n "(cached) $ac_c" 1>&6 |
14268 | else | |
14269 | ||
4f14bcd8 GD |
14270 | |
14271 | ac_ext=C | |
14272 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14273 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14274 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14275 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14276 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 14277 | |
10f2d63a | 14278 | |
4f14bcd8 | 14279 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14280 | #line 14281 "configure" |
4f14bcd8 | 14281 | #include "confdefs.h" |
10f2d63a | 14282 | |
4f14bcd8 GD |
14283 | |
14284 | int main() { | |
f6bcfd97 | 14285 | |
4f14bcd8 | 14286 | bool b = true; |
f6bcfd97 | 14287 | |
4f14bcd8 GD |
14288 | return 0; |
14289 | ||
698dcdb6 VZ |
14290 | ; return 0; } |
14291 | EOF | |
a1622950 | 14292 | if { (eval echo configure:14293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14293 | rm -rf conftest* |
14294 | ||
4f14bcd8 GD |
14295 | wx_cv_cpp_bool=yes |
14296 | ||
10f2d63a | 14297 | else |
698dcdb6 VZ |
14298 | echo "configure: failed program was:" >&5 |
14299 | cat conftest.$ac_ext >&5 | |
14300 | rm -rf conftest* | |
14301 | ||
4f14bcd8 GD |
14302 | wx_cv_cpp_bool=no |
14303 | ||
14304 | ||
14305 | fi | |
14306 | rm -f conftest* | |
c521c494 | 14307 | |
4f14bcd8 GD |
14308 | ac_ext=c |
14309 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14310 | ac_cpp='$CPP $CPPFLAGS' | |
14311 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14312 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14313 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 14314 | |
4f14bcd8 GD |
14315 | |
14316 | fi | |
c521c494 | 14317 | |
4f14bcd8 | 14318 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 14319 | |
4f14bcd8 GD |
14320 | if test "$wx_cv_cpp_bool" = "yes"; then |
14321 | cat >> confdefs.h <<\EOF | |
14322 | #define HAVE_BOOL 1 | |
14323 | EOF | |
c521c494 | 14324 | |
4f14bcd8 GD |
14325 | fi |
14326 | ||
14327 | ||
14328 | ||
14329 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
a1622950 | 14330 | echo "configure:14331: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
14331 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
14332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14334 | else | |
14335 | ac_save_LIBS="$LIBS" | |
14336 | LIBS="-lc $LIBS" | |
14337 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14338 | #line 14339 "configure" |
4f14bcd8 GD |
14339 | #include "confdefs.h" |
14340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14341 | /* We use char because int might match the return type of a gcc2 | |
14342 | builtin and then its argument prototype would still apply. */ | |
14343 | char wcslen(); | |
14344 | ||
14345 | int main() { | |
14346 | wcslen() | |
698dcdb6 VZ |
14347 | ; return 0; } |
14348 | EOF | |
a1622950 | 14349 | if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14350 | rm -rf conftest* |
4f14bcd8 | 14351 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 14352 | else |
698dcdb6 VZ |
14353 | echo "configure: failed program was:" >&5 |
14354 | cat conftest.$ac_ext >&5 | |
14355 | rm -rf conftest* | |
4f14bcd8 | 14356 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14357 | fi |
698dcdb6 | 14358 | rm -f conftest* |
4f14bcd8 | 14359 | LIBS="$ac_save_LIBS" |
703e0a69 | 14360 | |
1e487827 | 14361 | fi |
4f14bcd8 GD |
14362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14363 | echo "$ac_t""yes" 1>&6 | |
14364 | ||
14365 | cat >> confdefs.h <<\EOF | |
14366 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14367 | EOF |
14368 | ||
3d63bc3a | 14369 | WCHAR_LINK= |
4f14bcd8 | 14370 | |
9d8deca0 | 14371 | else |
4f14bcd8 | 14372 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 14373 | |
4f14bcd8 | 14374 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
a1622950 | 14375 | echo "configure:14376: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
14376 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
14377 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 14378 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14379 | else |
4f14bcd8 GD |
14380 | ac_save_LIBS="$LIBS" |
14381 | LIBS="-lw $LIBS" | |
14382 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14383 | #line 14384 "configure" |
10f2d63a | 14384 | #include "confdefs.h" |
4f14bcd8 GD |
14385 | /* Override any gcc2 internal prototype to avoid an error. */ |
14386 | /* We use char because int might match the return type of a gcc2 | |
14387 | builtin and then its argument prototype would still apply. */ | |
14388 | char wcslen(); | |
10f2d63a | 14389 | |
698dcdb6 | 14390 | int main() { |
4f14bcd8 | 14391 | wcslen() |
698dcdb6 VZ |
14392 | ; return 0; } |
14393 | EOF | |
a1622950 | 14394 | if { (eval echo configure:14395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14395 | rm -rf conftest* |
4f14bcd8 | 14396 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 14397 | else |
698dcdb6 VZ |
14398 | echo "configure: failed program was:" >&5 |
14399 | cat conftest.$ac_ext >&5 | |
14400 | rm -rf conftest* | |
4f14bcd8 | 14401 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14402 | fi |
698dcdb6 | 14403 | rm -f conftest* |
4f14bcd8 | 14404 | LIBS="$ac_save_LIBS" |
703e0a69 | 14405 | |
1e487827 | 14406 | fi |
4f14bcd8 GD |
14407 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14408 | echo "$ac_t""yes" 1>&6 | |
14409 | ||
14410 | cat >> confdefs.h <<\EOF | |
14411 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14412 | EOF |
14413 | ||
3d63bc3a | 14414 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
14415 | |
14416 | else | |
14417 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 14418 | |
4f14bcd8 | 14419 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
a1622950 | 14420 | echo "configure:14421: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
14421 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
14422 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
14423 | echo $ac_n "(cached) $ac_c" 1>&6 |
14424 | else | |
4f14bcd8 GD |
14425 | ac_save_LIBS="$LIBS" |
14426 | LIBS="-lmsvcrt $LIBS" | |
14427 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14428 | #line 14429 "configure" |
95c8801c | 14429 | #include "confdefs.h" |
4f14bcd8 GD |
14430 | /* Override any gcc2 internal prototype to avoid an error. */ |
14431 | /* We use char because int might match the return type of a gcc2 | |
14432 | builtin and then its argument prototype would still apply. */ | |
14433 | char wcslen(); | |
95c8801c | 14434 | |
4f14bcd8 GD |
14435 | int main() { |
14436 | wcslen() | |
698dcdb6 VZ |
14437 | ; return 0; } |
14438 | EOF | |
a1622950 | 14439 | if { (eval echo configure:14440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14440 | rm -rf conftest* |
4f14bcd8 | 14441 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 14442 | else |
698dcdb6 VZ |
14443 | echo "configure: failed program was:" >&5 |
14444 | cat conftest.$ac_ext >&5 | |
14445 | rm -rf conftest* | |
4f14bcd8 | 14446 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 14447 | fi |
698dcdb6 | 14448 | rm -f conftest* |
4f14bcd8 | 14449 | LIBS="$ac_save_LIBS" |
95c8801c VS |
14450 | |
14451 | fi | |
4f14bcd8 GD |
14452 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14453 | echo "$ac_t""yes" 1>&6 | |
14454 | ||
14455 | cat >> confdefs.h <<\EOF | |
14456 | #define HAVE_WCSLEN 1 | |
14457 | EOF | |
698dcdb6 | 14458 | |
3d63bc3a | 14459 | WCHAR_LINK= |
4f14bcd8 GD |
14460 | |
14461 | else | |
14462 | echo "$ac_t""no" 1>&6 | |
14463 | fi | |
10f2d63a | 14464 | |
4f14bcd8 GD |
14465 | |
14466 | fi | |
95c8801c | 14467 | |
4f14bcd8 | 14468 | |
95c8801c | 14469 | fi |
10f2d63a | 14470 | |
1e487827 | 14471 | |
4f14bcd8 | 14472 | for ac_func in wcsrtombs |
eb4efbdc | 14473 | do |
698dcdb6 | 14474 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 14475 | echo "configure:14476: checking for $ac_func" >&5 |
698dcdb6 VZ |
14476 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14478 | else | |
14479 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14480 | #line 14481 "configure" |
eb4efbdc VZ |
14481 | #include "confdefs.h" |
14482 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14483 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
14484 | #include <assert.h> |
14485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14486 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14487 | builtin and then its argument prototype would still apply. */ |
14488 | char $ac_func(); | |
14489 | ||
14490 | int main() { | |
eb4efbdc VZ |
14491 | |
14492 | /* The GNU C library defines this for functions which it implements | |
14493 | to always fail with ENOSYS. Some functions are actually named | |
14494 | something starting with __ and the normal name is an alias. */ | |
14495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14496 | choke me | |
14497 | #else | |
698dcdb6 | 14498 | $ac_func(); |
eb4efbdc VZ |
14499 | #endif |
14500 | ||
698dcdb6 | 14501 | ; return 0; } |
eb4efbdc | 14502 | EOF |
a1622950 | 14503 | if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14504 | rm -rf conftest* |
14505 | eval "ac_cv_func_$ac_func=yes" | |
14506 | else | |
14507 | echo "configure: failed program was:" >&5 | |
14508 | cat conftest.$ac_ext >&5 | |
14509 | rm -rf conftest* | |
14510 | eval "ac_cv_func_$ac_func=no" | |
14511 | fi | |
14512 | rm -f conftest* | |
14513 | fi | |
eb4efbdc | 14514 | |
698dcdb6 VZ |
14515 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14516 | echo "$ac_t""yes" 1>&6 | |
14517 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14518 | cat >> confdefs.h <<EOF | |
14519 | #define $ac_tr_func 1 | |
14520 | EOF | |
14521 | ||
14522 | else | |
14523 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14524 | fi |
14525 | done | |
14526 | ||
698dcdb6 | 14527 | |
4f14bcd8 | 14528 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
a1622950 | 14529 | echo "configure:14530: checking for vprintf" >&5 |
4f14bcd8 | 14530 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
14531 | echo $ac_n "(cached) $ac_c" 1>&6 |
14532 | else | |
4f14bcd8 | 14533 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14534 | #line 14535 "configure" |
f6bcfd97 | 14535 | #include "confdefs.h" |
4f14bcd8 GD |
14536 | /* System header to define __stub macros and hopefully few prototypes, |
14537 | which can conflict with char vprintf(); below. */ | |
14538 | #include <assert.h> | |
14539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14540 | /* We use char because int might match the return type of a gcc2 | |
14541 | builtin and then its argument prototype would still apply. */ | |
14542 | char vprintf(); | |
14543 | ||
698dcdb6 | 14544 | int main() { |
f6bcfd97 | 14545 | |
4f14bcd8 GD |
14546 | /* The GNU C library defines this for functions which it implements |
14547 | to always fail with ENOSYS. Some functions are actually named | |
14548 | something starting with __ and the normal name is an alias. */ | |
14549 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
14550 | choke me | |
14551 | #else | |
14552 | vprintf(); | |
14553 | #endif | |
f6bcfd97 | 14554 | |
698dcdb6 VZ |
14555 | ; return 0; } |
14556 | EOF | |
a1622950 | 14557 | if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14558 | rm -rf conftest* |
4f14bcd8 | 14559 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 14560 | else |
698dcdb6 VZ |
14561 | echo "configure: failed program was:" >&5 |
14562 | cat conftest.$ac_ext >&5 | |
14563 | rm -rf conftest* | |
4f14bcd8 | 14564 | eval "ac_cv_func_vprintf=no" |
6232543b | 14565 | fi |
698dcdb6 | 14566 | rm -f conftest* |
1e487827 | 14567 | fi |
698dcdb6 | 14568 | |
4f14bcd8 GD |
14569 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
14570 | echo "$ac_t""yes" 1>&6 | |
14571 | cat >> confdefs.h <<\EOF | |
14572 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
14573 | EOF |
14574 | ||
4f14bcd8 GD |
14575 | else |
14576 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14577 | fi |
14578 | ||
4f14bcd8 GD |
14579 | if test "$ac_cv_func_vprintf" != yes; then |
14580 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
a1622950 | 14581 | echo "configure:14582: checking for _doprnt" >&5 |
4f14bcd8 | 14582 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
14583 | echo $ac_n "(cached) $ac_c" 1>&6 |
14584 | else | |
14585 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14586 | #line 14587 "configure" |
10f2d63a VZ |
14587 | #include "confdefs.h" |
14588 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 14589 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
14590 | #include <assert.h> |
14591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14592 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14593 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14594 | char _doprnt(); |
698dcdb6 VZ |
14595 | |
14596 | int main() { | |
10f2d63a VZ |
14597 | |
14598 | /* The GNU C library defines this for functions which it implements | |
14599 | to always fail with ENOSYS. Some functions are actually named | |
14600 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 14601 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
14602 | choke me |
14603 | #else | |
4f14bcd8 | 14604 | _doprnt(); |
10f2d63a VZ |
14605 | #endif |
14606 | ||
698dcdb6 | 14607 | ; return 0; } |
10f2d63a | 14608 | EOF |
a1622950 | 14609 | if { (eval echo configure:14610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14610 | rm -rf conftest* |
4f14bcd8 | 14611 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
14612 | else |
14613 | echo "configure: failed program was:" >&5 | |
14614 | cat conftest.$ac_ext >&5 | |
14615 | rm -rf conftest* | |
4f14bcd8 | 14616 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
14617 | fi |
14618 | rm -f conftest* | |
14619 | fi | |
270a909e | 14620 | |
4f14bcd8 | 14621 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 14622 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14623 | cat >> confdefs.h <<\EOF |
14624 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 14625 | EOF |
4f14bcd8 | 14626 | |
698dcdb6 VZ |
14627 | else |
14628 | echo "$ac_t""no" 1>&6 | |
270a909e | 14629 | fi |
270a909e | 14630 | |
4f14bcd8 | 14631 | fi |
1e487827 | 14632 | |
52e8b690 | 14633 | |
52e8b690 | 14634 | |
52e8b690 | 14635 | |
52e8b690 | 14636 | |
52e8b690 | 14637 | |
4f14bcd8 | 14638 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
a1622950 | 14639 | echo "configure:14640: checking for vsnprintf" >&5 |
4f14bcd8 | 14640 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 14641 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 14642 | else |
4f14bcd8 | 14643 | |
af15babd | 14644 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14645 | #line 14646 "configure" |
c63c7106 | 14646 | #include "confdefs.h" |
698dcdb6 | 14647 | |
4f14bcd8 GD |
14648 | #include <stdio.h> |
14649 | #include <stdarg.h> | |
14650 | ||
af15babd VZ |
14651 | int main() { |
14652 | ||
4f14bcd8 GD |
14653 | int wx_test_vsnprintf(const char *, ...); |
14654 | ||
14655 | wx_test_vsnprintf("%s"); | |
14656 | return 0; | |
14657 | } | |
14658 | ||
14659 | int wx_test_vsnprintf(const char *fmt, ...) | |
14660 | { | |
14661 | char *s; | |
14662 | ||
14663 | va_list argp; | |
14664 | va_start(argp, fmt); | |
14665 | vsnprintf(s, 42, fmt, argp); | |
14666 | va_end(argp); | |
14667 | ||
af15babd VZ |
14668 | ; return 0; } |
14669 | EOF | |
a1622950 | 14670 | if { (eval echo configure:14671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14671 | rm -rf conftest* |
14672 | ||
4f14bcd8 GD |
14673 | wx_cv_func_vsnprintf=yes |
14674 | ||
af15babd VZ |
14675 | else |
14676 | echo "configure: failed program was:" >&5 | |
14677 | cat conftest.$ac_ext >&5 | |
14678 | rm -rf conftest* | |
14679 | ||
4f14bcd8 | 14680 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14681 | #line 14682 "configure" |
af15babd | 14682 | #include "confdefs.h" |
af15babd | 14683 | |
4f14bcd8 GD |
14684 | #include <stdio.h> |
14685 | #include <stdarg.h> | |
14686 | ||
af15babd VZ |
14687 | int main() { |
14688 | ||
4f14bcd8 GD |
14689 | int wx_test_vsnprintf(const char *, ...); |
14690 | ||
14691 | wx_test_vsnprintf("%s"); | |
14692 | return 0; | |
14693 | } | |
14694 | ||
14695 | int wx_test_vsnprintf(const char *fmt, ...) | |
14696 | { | |
14697 | char *s; | |
af15babd | 14698 | |
4f14bcd8 GD |
14699 | va_list argp; |
14700 | va_start(argp, fmt); | |
14701 | _vsnprintf(s, 42, fmt, argp); | |
14702 | va_end(argp); | |
14703 | ||
af15babd VZ |
14704 | ; return 0; } |
14705 | EOF | |
a1622950 | 14706 | if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 14707 | rm -rf conftest* |
4f14bcd8 GD |
14708 | |
14709 | wx_cv_func_vsnprintf=yes | |
14710 | ||
af15babd VZ |
14711 | else |
14712 | echo "configure: failed program was:" >&5 | |
14713 | cat conftest.$ac_ext >&5 | |
14714 | rm -rf conftest* | |
4f14bcd8 GD |
14715 | |
14716 | wx_cv_func_vsnprintf=no | |
14717 | ||
af15babd VZ |
14718 | fi |
14719 | rm -f conftest* | |
4f14bcd8 | 14720 | |
af15babd | 14721 | fi |
4f14bcd8 | 14722 | rm -f conftest* |
af15babd | 14723 | |
af15babd | 14724 | fi |
af15babd | 14725 | |
4f14bcd8 | 14726 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 14727 | |
4f14bcd8 GD |
14728 | if test "$wx_cv_func_vsnprintf" = yes; then |
14729 | cat >> confdefs.h <<\EOF | |
14730 | #define HAVE_VSNPRINTF 1 | |
14731 | EOF | |
14732 | ||
14733 | else | |
f9bc1684 | 14734 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
14735 | fi |
14736 | ||
4f14bcd8 | 14737 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
a1622950 | 14738 | echo "configure:14739: checking for vsscanf" >&5 |
4f14bcd8 | 14739 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
14740 | echo $ac_n "(cached) $ac_c" 1>&6 |
14741 | else | |
4f14bcd8 | 14742 | |
af15babd | 14743 | cat > conftest.$ac_ext <<EOF |
a1622950 | 14744 | #line 14745 "configure" |
af15babd | 14745 | #include "confdefs.h" |
af15babd | 14746 | |
4f14bcd8 GD |
14747 | #include <stdio.h> |
14748 | #include <stdarg.h> | |
14749 | ||
af15babd VZ |
14750 | int main() { |
14751 | ||
4f14bcd8 GD |
14752 | int wx_test_vsscanf(const char *, ...); |
14753 | ||
14754 | wx_test_vsscanf("%d"); | |
14755 | return 0; | |
14756 | } | |
af15babd | 14757 | |
4f14bcd8 GD |
14758 | int wx_test_vsscanf(const char *fmt, ...) |
14759 | { | |
14760 | va_list argp; | |
14761 | va_start(argp, fmt); | |
14762 | vsscanf("42", fmt, argp); | |
14763 | va_end(argp); | |
14764 | ||
af15babd VZ |
14765 | ; return 0; } |
14766 | EOF | |
a1622950 | 14767 | if { (eval echo configure:14768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14768 | rm -rf conftest* |
4f14bcd8 GD |
14769 | |
14770 | wx_cv_func_vsscanf=yes | |
14771 | ||
af15babd VZ |
14772 | else |
14773 | echo "configure: failed program was:" >&5 | |
14774 | cat conftest.$ac_ext >&5 | |
14775 | rm -rf conftest* | |
4f14bcd8 GD |
14776 | |
14777 | wx_cv_func_vsscanf=no | |
14778 | ||
af15babd VZ |
14779 | fi |
14780 | rm -f conftest* | |
4f14bcd8 | 14781 | |
af15babd VZ |
14782 | fi |
14783 | ||
4f14bcd8 GD |
14784 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
14785 | ||
14786 | if test "$wx_cv_func_vsscanf" = yes; then | |
14787 | cat >> confdefs.h <<\EOF | |
14788 | #define HAVE_VSSCANF 1 | |
af15babd | 14789 | EOF |
4f14bcd8 | 14790 | |
af15babd | 14791 | fi |
af15babd | 14792 | |
4f14bcd8 | 14793 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 14794 | |
4f14bcd8 GD |
14795 | |
14796 | ||
14797 | ac_ext=C | |
14798 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14799 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14800 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14801 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14802 | cross_compiling=$ac_cv_prog_cxx_cross | |
14803 | ||
14804 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
a1622950 | 14805 | echo "configure:14806: checking if iconv() takes char**" >&5 |
4f14bcd8 | 14806 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
af15babd VZ |
14807 | echo $ac_n "(cached) $ac_c" 1>&6 |
14808 | else | |
4f14bcd8 GD |
14809 | |
14810 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14811 | #line 14812 "configure" |
af15babd | 14812 | #include "confdefs.h" |
4f14bcd8 | 14813 | #include <iconv.h> |
af15babd VZ |
14814 | int main() { |
14815 | ||
4f14bcd8 GD |
14816 | char **inbuf, **outbuf; |
14817 | iconv_t cd; | |
14818 | size_t insz, outsz; | |
14819 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14820 | ||
af15babd VZ |
14821 | ; return 0; } |
14822 | EOF | |
a1622950 | 14823 | if { (eval echo configure:14824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14824 | rm -rf conftest* |
4f14bcd8 | 14825 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14826 | else |
14827 | echo "configure: failed program was:" >&5 | |
14828 | cat conftest.$ac_ext >&5 | |
14829 | rm -rf conftest* | |
4f14bcd8 | 14830 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14831 | fi |
14832 | rm -f conftest* | |
af15babd | 14833 | |
af15babd | 14834 | fi |
af15babd | 14835 | |
4f14bcd8 GD |
14836 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14837 | ac_ext=c | |
14838 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14839 | ac_cpp='$CPP $CPPFLAGS' | |
14840 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14841 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14842 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14843 | |
4f14bcd8 GD |
14844 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14845 | cat >> confdefs.h <<\EOF | |
14846 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14847 | EOF |
14848 | ||
af15babd VZ |
14849 | fi |
14850 | ||
af15babd | 14851 | |
4f14bcd8 GD |
14852 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14853 | for ac_func in sigaction | |
af15babd VZ |
14854 | do |
14855 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 14856 | echo "configure:14857: checking for $ac_func" >&5 |
af15babd VZ |
14857 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14859 | else | |
14860 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14861 | #line 14862 "configure" |
af15babd VZ |
14862 | #include "confdefs.h" |
14863 | /* System header to define __stub macros and hopefully few prototypes, | |
14864 | which can conflict with char $ac_func(); below. */ | |
14865 | #include <assert.h> | |
14866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14867 | /* We use char because int might match the return type of a gcc2 | |
14868 | builtin and then its argument prototype would still apply. */ | |
14869 | char $ac_func(); | |
14870 | ||
14871 | int main() { | |
14872 | ||
14873 | /* The GNU C library defines this for functions which it implements | |
14874 | to always fail with ENOSYS. Some functions are actually named | |
14875 | something starting with __ and the normal name is an alias. */ | |
14876 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14877 | choke me | |
14878 | #else | |
14879 | $ac_func(); | |
14880 | #endif | |
14881 | ||
14882 | ; return 0; } | |
14883 | EOF | |
a1622950 | 14884 | if { (eval echo configure:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14885 | rm -rf conftest* |
14886 | eval "ac_cv_func_$ac_func=yes" | |
14887 | else | |
14888 | echo "configure: failed program was:" >&5 | |
14889 | cat conftest.$ac_ext >&5 | |
14890 | rm -rf conftest* | |
14891 | eval "ac_cv_func_$ac_func=no" | |
14892 | fi | |
14893 | rm -f conftest* | |
14894 | fi | |
14895 | ||
14896 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14897 | echo "$ac_t""yes" 1>&6 | |
14898 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14899 | cat >> confdefs.h <<EOF | |
14900 | #define $ac_tr_func 1 | |
14901 | EOF | |
4f14bcd8 | 14902 | |
af15babd VZ |
14903 | else |
14904 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14905 | fi |
14906 | done | |
14907 | ||
14908 | ||
14909 | if test "$ac_cv_func_sigaction" = "no"; then | |
14910 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14911 | wxUSE_ON_FATAL_EXCEPTION=no | |
14912 | fi | |
14913 | ||
14914 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14915 | ||
14916 | ac_ext=C | |
14917 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14918 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14919 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14920 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14921 | cross_compiling=$ac_cv_prog_cxx_cross | |
14922 | ||
14923 | ||
14924 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
a1622950 | 14925 | echo "configure:14926: checking for sa_handler type" >&5 |
4f14bcd8 | 14926 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
14927 | echo $ac_n "(cached) $ac_c" 1>&6 |
14928 | else | |
4f14bcd8 GD |
14929 | |
14930 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14931 | #line 14932 "configure" |
af15babd | 14932 | #include "confdefs.h" |
4f14bcd8 | 14933 | #include <signal.h> |
af15babd | 14934 | int main() { |
4f14bcd8 GD |
14935 | |
14936 | extern void testSigHandler(int); | |
14937 | ||
14938 | struct sigaction sa; | |
14939 | sa.sa_handler = testSigHandler; | |
14940 | ||
af15babd VZ |
14941 | ; return 0; } |
14942 | EOF | |
a1622950 | 14943 | if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14944 | rm -rf conftest* |
4f14bcd8 GD |
14945 | |
14946 | wx_cv_type_sa_handler=int | |
14947 | ||
af15babd VZ |
14948 | else |
14949 | echo "configure: failed program was:" >&5 | |
14950 | cat conftest.$ac_ext >&5 | |
14951 | rm -rf conftest* | |
4f14bcd8 GD |
14952 | |
14953 | wx_cv_type_sa_handler=void | |
14954 | ||
af15babd VZ |
14955 | fi |
14956 | rm -f conftest* | |
4f14bcd8 GD |
14957 | |
14958 | fi | |
14959 | ||
14960 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14961 | ||
14962 | ac_ext=c | |
14963 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14964 | ac_cpp='$CPP $CPPFLAGS' | |
14965 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14966 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14967 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14968 | |
4f14bcd8 GD |
14969 | |
14970 | cat >> confdefs.h <<EOF | |
14971 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14972 | EOF |
14973 | ||
4f14bcd8 GD |
14974 | fi |
14975 | fi | |
af15babd | 14976 | |
4f14bcd8 | 14977 | for ac_func in vfork |
af15babd VZ |
14978 | do |
14979 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 14980 | echo "configure:14981: checking for $ac_func" >&5 |
af15babd VZ |
14981 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14983 | else | |
14984 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 14985 | #line 14986 "configure" |
af15babd VZ |
14986 | #include "confdefs.h" |
14987 | /* System header to define __stub macros and hopefully few prototypes, | |
14988 | which can conflict with char $ac_func(); below. */ | |
14989 | #include <assert.h> | |
14990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14991 | /* We use char because int might match the return type of a gcc2 | |
14992 | builtin and then its argument prototype would still apply. */ | |
14993 | char $ac_func(); | |
14994 | ||
14995 | int main() { | |
14996 | ||
14997 | /* The GNU C library defines this for functions which it implements | |
14998 | to always fail with ENOSYS. Some functions are actually named | |
14999 | something starting with __ and the normal name is an alias. */ | |
15000 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15001 | choke me | |
15002 | #else | |
15003 | $ac_func(); | |
15004 | #endif | |
15005 | ||
15006 | ; return 0; } | |
15007 | EOF | |
a1622950 | 15008 | if { (eval echo configure:15009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15009 | rm -rf conftest* |
15010 | eval "ac_cv_func_$ac_func=yes" | |
15011 | else | |
15012 | echo "configure: failed program was:" >&5 | |
15013 | cat conftest.$ac_ext >&5 | |
15014 | rm -rf conftest* | |
15015 | eval "ac_cv_func_$ac_func=no" | |
15016 | fi | |
15017 | rm -f conftest* | |
15018 | fi | |
15019 | ||
15020 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15021 | echo "$ac_t""yes" 1>&6 | |
15022 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15023 | cat >> confdefs.h <<EOF | |
15024 | #define $ac_tr_func 1 | |
15025 | EOF | |
4f14bcd8 | 15026 | |
af15babd VZ |
15027 | else |
15028 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15029 | fi |
15030 | done | |
15031 | ||
af15babd | 15032 | |
ade35f11 VZ |
15033 | for ac_func in mkstemp mktemp |
15034 | do | |
15035 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15036 | echo "configure:15037: checking for $ac_func" >&5 |
ade35f11 VZ |
15037 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15039 | else | |
15040 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15041 | #line 15042 "configure" |
ade35f11 VZ |
15042 | #include "confdefs.h" |
15043 | /* System header to define __stub macros and hopefully few prototypes, | |
15044 | which can conflict with char $ac_func(); below. */ | |
15045 | #include <assert.h> | |
15046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15047 | /* We use char because int might match the return type of a gcc2 | |
15048 | builtin and then its argument prototype would still apply. */ | |
15049 | char $ac_func(); | |
15050 | ||
15051 | int main() { | |
15052 | ||
15053 | /* The GNU C library defines this for functions which it implements | |
15054 | to always fail with ENOSYS. Some functions are actually named | |
15055 | something starting with __ and the normal name is an alias. */ | |
15056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15057 | choke me | |
15058 | #else | |
15059 | $ac_func(); | |
15060 | #endif | |
15061 | ||
15062 | ; return 0; } | |
15063 | EOF | |
a1622950 | 15064 | if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
15065 | rm -rf conftest* |
15066 | eval "ac_cv_func_$ac_func=yes" | |
15067 | else | |
15068 | echo "configure: failed program was:" >&5 | |
15069 | cat conftest.$ac_ext >&5 | |
15070 | rm -rf conftest* | |
15071 | eval "ac_cv_func_$ac_func=no" | |
15072 | fi | |
15073 | rm -f conftest* | |
15074 | fi | |
15075 | ||
15076 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15077 | echo "$ac_t""yes" 1>&6 | |
15078 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15079 | cat >> confdefs.h <<EOF | |
15080 | #define $ac_tr_func 1 | |
15081 | EOF | |
15082 | break | |
15083 | else | |
15084 | echo "$ac_t""no" 1>&6 | |
15085 | fi | |
15086 | done | |
15087 | ||
15088 | ||
4f14bcd8 | 15089 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
a1622950 | 15090 | echo "configure:15091: checking for statfs" >&5 |
4f14bcd8 GD |
15091 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
15092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15093 | else | |
15094 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15095 | #line 15096 "configure" |
4f14bcd8 GD |
15096 | #include "confdefs.h" |
15097 | ||
15098 | #if defined(__BSD__) | |
15099 | #include <sys/param.h> | |
15100 | #include <sys/mount.h> | |
15101 | #else | |
15102 | #include <sys/vfs.h> | |
15103 | #endif | |
15104 | ||
15105 | int main() { | |
15106 | ||
15107 | long l; | |
15108 | struct statfs fs; | |
15109 | statfs("/", &fs); | |
15110 | l = fs.f_bsize; | |
15111 | l += fs.f_blocks; | |
15112 | l += fs.f_bavail; | |
15113 | ||
15114 | ; return 0; } | |
15115 | EOF | |
a1622950 | 15116 | if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15117 | rm -rf conftest* |
15118 | ||
15119 | wx_cv_func_statfs=yes | |
15120 | ||
15121 | else | |
15122 | echo "configure: failed program was:" >&5 | |
15123 | cat conftest.$ac_ext >&5 | |
15124 | rm -rf conftest* | |
15125 | ||
15126 | wx_cv_func_statfs=no | |
af15babd VZ |
15127 | |
15128 | ||
15129 | fi | |
4f14bcd8 | 15130 | rm -f conftest* |
af15babd VZ |
15131 | |
15132 | fi | |
15133 | ||
4f14bcd8 GD |
15134 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
15135 | ||
15136 | if test "$wx_cv_func_statfs" = "yes"; then | |
15137 | cat >> confdefs.h <<\EOF | |
15138 | #define HAVE_STATFS 1 | |
15139 | EOF | |
15140 | ||
15141 | else | |
15142 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
a1622950 | 15143 | echo "configure:15144: checking for statvfs" >&5 |
4f14bcd8 | 15144 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
15145 | echo $ac_n "(cached) $ac_c" 1>&6 |
15146 | else | |
15147 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15148 | #line 15149 "configure" |
af15babd | 15149 | #include "confdefs.h" |
af15babd | 15150 | |
4f14bcd8 GD |
15151 | #include <sys/statvfs.h> |
15152 | ||
af15babd VZ |
15153 | int main() { |
15154 | ||
4f14bcd8 GD |
15155 | long l; |
15156 | struct statvfs fs; | |
15157 | statvfs("/", &fs); | |
15158 | l = fs.f_bsize; | |
15159 | l += fs.f_blocks; | |
15160 | l += fs.f_bavail; | |
15161 | ||
af15babd VZ |
15162 | ; return 0; } |
15163 | EOF | |
a1622950 | 15164 | if { (eval echo configure:15165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15165 | rm -rf conftest* |
4f14bcd8 GD |
15166 | |
15167 | wx_cv_func_statvfs=yes | |
15168 | ||
af15babd VZ |
15169 | else |
15170 | echo "configure: failed program was:" >&5 | |
15171 | cat conftest.$ac_ext >&5 | |
15172 | rm -rf conftest* | |
4f14bcd8 GD |
15173 | |
15174 | wx_cv_func_statvfs=no | |
15175 | ||
15176 | ||
af15babd VZ |
15177 | fi |
15178 | rm -f conftest* | |
4f14bcd8 | 15179 | |
af15babd VZ |
15180 | fi |
15181 | ||
4f14bcd8 | 15182 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 15183 | |
4f14bcd8 GD |
15184 | if test "$wx_cv_func_statvfs" = "yes"; then |
15185 | cat >> confdefs.h <<\EOF | |
15186 | #define HAVE_STATVFS 1 | |
15187 | EOF | |
af15babd | 15188 | |
4f14bcd8 GD |
15189 | else |
15190 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
15191 | fi | |
15192 | fi | |
af15babd | 15193 | |
4f14bcd8 GD |
15194 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
15195 | for ac_func in fcntl flock | |
af15babd VZ |
15196 | do |
15197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15198 | echo "configure:15199: checking for $ac_func" >&5 |
af15babd VZ |
15199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15201 | else | |
15202 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15203 | #line 15204 "configure" |
af15babd VZ |
15204 | #include "confdefs.h" |
15205 | /* System header to define __stub macros and hopefully few prototypes, | |
15206 | which can conflict with char $ac_func(); below. */ | |
15207 | #include <assert.h> | |
15208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
15209 | /* We use char because int might match the return type of a gcc2 |
15210 | builtin and then its argument prototype would still apply. */ | |
15211 | char $ac_func(); | |
15212 | ||
15213 | int main() { | |
15214 | ||
15215 | /* The GNU C library defines this for functions which it implements | |
15216 | to always fail with ENOSYS. Some functions are actually named | |
15217 | something starting with __ and the normal name is an alias. */ | |
15218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15219 | choke me | |
15220 | #else | |
15221 | $ac_func(); | |
15222 | #endif | |
15223 | ||
15224 | ; return 0; } | |
15225 | EOF | |
a1622950 | 15226 | if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15227 | rm -rf conftest* |
15228 | eval "ac_cv_func_$ac_func=yes" | |
15229 | else | |
15230 | echo "configure: failed program was:" >&5 | |
15231 | cat conftest.$ac_ext >&5 | |
15232 | rm -rf conftest* | |
15233 | eval "ac_cv_func_$ac_func=no" | |
15234 | fi | |
15235 | rm -f conftest* | |
15236 | fi | |
15237 | ||
15238 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15239 | echo "$ac_t""yes" 1>&6 | |
15240 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15241 | cat >> confdefs.h <<EOF | |
15242 | #define $ac_tr_func 1 | |
15243 | EOF | |
4f14bcd8 | 15244 | break |
af15babd VZ |
15245 | else |
15246 | echo "$ac_t""no" 1>&6 | |
15247 | fi | |
15248 | done | |
15249 | ||
15250 | ||
4f14bcd8 GD |
15251 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
15252 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
15253 | wxUSE_SNGLINST_CHECKER=no | |
15254 | fi | |
15255 | fi | |
af15babd | 15256 | |
4f14bcd8 | 15257 | for ac_func in timegm |
af15babd VZ |
15258 | do |
15259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15260 | echo "configure:15261: checking for $ac_func" >&5 |
af15babd VZ |
15261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15263 | else | |
15264 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15265 | #line 15266 "configure" |
af15babd VZ |
15266 | #include "confdefs.h" |
15267 | /* System header to define __stub macros and hopefully few prototypes, | |
15268 | which can conflict with char $ac_func(); below. */ | |
15269 | #include <assert.h> | |
15270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15271 | /* We use char because int might match the return type of a gcc2 | |
15272 | builtin and then its argument prototype would still apply. */ | |
15273 | char $ac_func(); | |
15274 | ||
698dcdb6 | 15275 | int main() { |
698dcdb6 | 15276 | |
af15babd VZ |
15277 | /* The GNU C library defines this for functions which it implements |
15278 | to always fail with ENOSYS. Some functions are actually named | |
15279 | something starting with __ and the normal name is an alias. */ | |
15280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15281 | choke me | |
15282 | #else | |
15283 | $ac_func(); | |
15284 | #endif | |
15285 | ||
698dcdb6 VZ |
15286 | ; return 0; } |
15287 | EOF | |
a1622950 | 15288 | if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15289 | rm -rf conftest* |
af15babd | 15290 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15291 | else |
15292 | echo "configure: failed program was:" >&5 | |
15293 | cat conftest.$ac_ext >&5 | |
15294 | rm -rf conftest* | |
af15babd | 15295 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 15296 | fi |
9952adac | 15297 | rm -f conftest* |
af15babd | 15298 | fi |
703e0a69 | 15299 | |
af15babd VZ |
15300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15301 | echo "$ac_t""yes" 1>&6 | |
15302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
15303 | cat >> confdefs.h <<EOF |
15304 | #define $ac_tr_func 1 | |
15305 | EOF | |
15306 | ||
15307 | else | |
15308 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15309 | fi |
15310 | done | |
15311 | ||
15312 | ||
4f14bcd8 | 15313 | for ac_func in putenv setenv |
10f2d63a | 15314 | do |
698dcdb6 | 15315 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 15316 | echo "configure:15317: checking for $ac_func" >&5 |
698dcdb6 VZ |
15317 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15319 | else | |
15320 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15321 | #line 15322 "configure" |
af15babd VZ |
15322 | #include "confdefs.h" |
15323 | /* System header to define __stub macros and hopefully few prototypes, | |
15324 | which can conflict with char $ac_func(); below. */ | |
15325 | #include <assert.h> | |
15326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15327 | /* We use char because int might match the return type of a gcc2 | |
15328 | builtin and then its argument prototype would still apply. */ | |
15329 | char $ac_func(); | |
15330 | ||
15331 | int main() { | |
15332 | ||
15333 | /* The GNU C library defines this for functions which it implements | |
15334 | to always fail with ENOSYS. Some functions are actually named | |
15335 | something starting with __ and the normal name is an alias. */ | |
15336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15337 | choke me | |
15338 | #else | |
15339 | $ac_func(); | |
15340 | #endif | |
15341 | ||
15342 | ; return 0; } | |
15343 | EOF | |
a1622950 | 15344 | if { (eval echo configure:15345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15345 | rm -rf conftest* |
15346 | eval "ac_cv_func_$ac_func=yes" | |
15347 | else | |
15348 | echo "configure: failed program was:" >&5 | |
15349 | cat conftest.$ac_ext >&5 | |
15350 | rm -rf conftest* | |
15351 | eval "ac_cv_func_$ac_func=no" | |
15352 | fi | |
15353 | rm -f conftest* | |
15354 | fi | |
15355 | ||
15356 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15357 | echo "$ac_t""yes" 1>&6 | |
15358 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15359 | cat >> confdefs.h <<EOF | |
15360 | #define $ac_tr_func 1 | |
15361 | EOF | |
4f14bcd8 | 15362 | break |
af15babd VZ |
15363 | else |
15364 | echo "$ac_t""no" 1>&6 | |
15365 | fi | |
af15babd VZ |
15366 | done |
15367 | ||
15368 | ||
4f14bcd8 GD |
15369 | HAVE_SOME_SLEEP_FUNC=0 |
15370 | if test "$USE_BEOS" = 1; then | |
15371 | cat >> confdefs.h <<\EOF | |
15372 | #define HAVE_SLEEP 1 | |
af15babd VZ |
15373 | EOF |
15374 | ||
4f14bcd8 | 15375 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15376 | fi |
15377 | ||
4f14bcd8 GD |
15378 | if test "$USE_DARWIN" = 1; then |
15379 | cat >> confdefs.h <<\EOF | |
15380 | #define HAVE_USLEEP 1 | |
af15babd | 15381 | EOF |
10f2d63a | 15382 | |
4f14bcd8 | 15383 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15384 | fi |
15385 | ||
4f14bcd8 GD |
15386 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
15387 | POSIX4_LINK= | |
15388 | for ac_func in nanosleep | |
15389 | do | |
15390 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15391 | echo "configure:15392: checking for $ac_func" >&5 |
4f14bcd8 | 15392 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15393 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15394 | else |
4f14bcd8 | 15395 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15396 | #line 15397 "configure" |
10f2d63a | 15397 | #include "confdefs.h" |
4f14bcd8 GD |
15398 | /* System header to define __stub macros and hopefully few prototypes, |
15399 | which can conflict with char $ac_func(); below. */ | |
15400 | #include <assert.h> | |
10f2d63a VZ |
15401 | /* Override any gcc2 internal prototype to avoid an error. */ |
15402 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15403 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15404 | char $ac_func(); |
698dcdb6 VZ |
15405 | |
15406 | int main() { | |
4f14bcd8 GD |
15407 | |
15408 | /* The GNU C library defines this for functions which it implements | |
15409 | to always fail with ENOSYS. Some functions are actually named | |
15410 | something starting with __ and the normal name is an alias. */ | |
15411 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15412 | choke me | |
15413 | #else | |
15414 | $ac_func(); | |
15415 | #endif | |
15416 | ||
698dcdb6 VZ |
15417 | ; return 0; } |
15418 | EOF | |
a1622950 | 15419 | if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15420 | rm -rf conftest* |
4f14bcd8 | 15421 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15422 | else |
15423 | echo "configure: failed program was:" >&5 | |
15424 | cat conftest.$ac_ext >&5 | |
15425 | rm -rf conftest* | |
4f14bcd8 | 15426 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15427 | fi |
15428 | rm -f conftest* | |
698dcdb6 | 15429 | fi |
4f14bcd8 GD |
15430 | |
15431 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15432 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15433 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15434 | cat >> confdefs.h <<EOF | |
15435 | #define $ac_tr_func 1 | |
15436 | EOF | |
15437 | cat >> confdefs.h <<\EOF | |
15438 | #define HAVE_NANOSLEEP 1 | |
15439 | EOF | |
15440 | ||
10f2d63a | 15441 | else |
698dcdb6 | 15442 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15443 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
a1622950 | 15444 | echo "configure:15445: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 15445 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15448 | else |
698dcdb6 | 15449 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15450 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15451 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15452 | #line 15453 "configure" |
10f2d63a VZ |
15453 | #include "confdefs.h" |
15454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15455 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15456 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15457 | char nanosleep(); |
698dcdb6 VZ |
15458 | |
15459 | int main() { | |
4f14bcd8 | 15460 | nanosleep() |
698dcdb6 VZ |
15461 | ; return 0; } |
15462 | EOF | |
a1622950 | 15463 | if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15464 | rm -rf conftest* |
15465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15466 | else | |
15467 | echo "configure: failed program was:" >&5 | |
15468 | cat conftest.$ac_ext >&5 | |
15469 | rm -rf conftest* | |
15470 | eval "ac_cv_lib_$ac_lib_var=no" | |
15471 | fi | |
15472 | rm -f conftest* | |
15473 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15474 | |
698dcdb6 VZ |
15475 | fi |
15476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15477 | echo "$ac_t""yes" 1>&6 | |
15478 | ||
4f14bcd8 GD |
15479 | cat >> confdefs.h <<\EOF |
15480 | #define HAVE_NANOSLEEP 1 | |
15481 | EOF | |
15482 | ||
3d63bc3a | 15483 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 15484 | |
10f2d63a | 15485 | else |
698dcdb6 | 15486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15487 | |
4f14bcd8 GD |
15488 | for ac_func in usleep |
15489 | do | |
15490 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15491 | echo "configure:15492: checking for $ac_func" >&5 |
4f14bcd8 | 15492 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15493 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15494 | else |
698dcdb6 | 15495 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15496 | #line 15497 "configure" |
10f2d63a | 15497 | #include "confdefs.h" |
4f14bcd8 GD |
15498 | /* System header to define __stub macros and hopefully few prototypes, |
15499 | which can conflict with char $ac_func(); below. */ | |
15500 | #include <assert.h> | |
15501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15502 | /* We use char because int might match the return type of a gcc2 | |
15503 | builtin and then its argument prototype would still apply. */ | |
15504 | char $ac_func(); | |
15505 | ||
15506 | int main() { | |
15507 | ||
15508 | /* The GNU C library defines this for functions which it implements | |
15509 | to always fail with ENOSYS. Some functions are actually named | |
15510 | something starting with __ and the normal name is an alias. */ | |
15511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15512 | choke me | |
15513 | #else | |
15514 | $ac_func(); | |
15515 | #endif | |
15516 | ||
15517 | ; return 0; } | |
698dcdb6 | 15518 | EOF |
a1622950 | 15519 | if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15520 | rm -rf conftest* |
4f14bcd8 | 15521 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15522 | else |
698dcdb6 | 15523 | echo "configure: failed program was:" >&5 |
10f2d63a | 15524 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15525 | rm -rf conftest* |
4f14bcd8 | 15526 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15527 | fi |
698dcdb6 | 15528 | rm -f conftest* |
10f2d63a | 15529 | fi |
4f14bcd8 GD |
15530 | |
15531 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15532 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15533 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15534 | cat >> confdefs.h <<EOF | |
15535 | #define $ac_tr_func 1 | |
15536 | EOF | |
15537 | cat >> confdefs.h <<\EOF | |
15538 | #define HAVE_USLEEP 1 | |
15539 | EOF | |
15540 | ||
698dcdb6 VZ |
15541 | else |
15542 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15543 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
15544 | ||
10f2d63a | 15545 | fi |
4f14bcd8 | 15546 | done |
10f2d63a | 15547 | |
4f14bcd8 | 15548 | |
698dcdb6 | 15549 | |
6232543b | 15550 | fi |
10f2d63a | 15551 | |
698dcdb6 | 15552 | |
4f14bcd8 | 15553 | |
1e487827 | 15554 | fi |
4f14bcd8 | 15555 | done |
703e0a69 | 15556 | |
10f2d63a VZ |
15557 | fi |
15558 | ||
4f14bcd8 | 15559 | for ac_func in uname gethostname |
70846f0a | 15560 | do |
698dcdb6 | 15561 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 15562 | echo "configure:15563: checking for $ac_func" >&5 |
698dcdb6 VZ |
15563 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15565 | else | |
15566 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15567 | #line 15568 "configure" |
70846f0a VZ |
15568 | #include "confdefs.h" |
15569 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15570 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
15571 | #include <assert.h> |
15572 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15573 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15574 | builtin and then its argument prototype would still apply. */ |
15575 | char $ac_func(); | |
15576 | ||
15577 | int main() { | |
70846f0a VZ |
15578 | |
15579 | /* The GNU C library defines this for functions which it implements | |
15580 | to always fail with ENOSYS. Some functions are actually named | |
15581 | something starting with __ and the normal name is an alias. */ | |
15582 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15583 | choke me | |
15584 | #else | |
698dcdb6 | 15585 | $ac_func(); |
70846f0a VZ |
15586 | #endif |
15587 | ||
698dcdb6 | 15588 | ; return 0; } |
70846f0a | 15589 | EOF |
a1622950 | 15590 | if { (eval echo configure:15591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15591 | rm -rf conftest* |
15592 | eval "ac_cv_func_$ac_func=yes" | |
15593 | else | |
15594 | echo "configure: failed program was:" >&5 | |
15595 | cat conftest.$ac_ext >&5 | |
15596 | rm -rf conftest* | |
15597 | eval "ac_cv_func_$ac_func=no" | |
15598 | fi | |
15599 | rm -f conftest* | |
15600 | fi | |
70846f0a | 15601 | |
698dcdb6 VZ |
15602 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15603 | echo "$ac_t""yes" 1>&6 | |
15604 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15605 | cat >> confdefs.h <<EOF | |
15606 | #define $ac_tr_func 1 | |
15607 | EOF | |
4f14bcd8 | 15608 | break |
698dcdb6 VZ |
15609 | else |
15610 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
15611 | fi |
15612 | done | |
15613 | ||
698dcdb6 | 15614 | |
4f14bcd8 GD |
15615 | |
15616 | ac_ext=C | |
15617 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15618 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15619 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15620 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15621 | cross_compiling=$ac_cv_prog_cxx_cross | |
15622 | ||
15623 | ||
15624 | for ac_func in strtok_r | |
10f2d63a | 15625 | do |
4f14bcd8 | 15626 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 15627 | echo "configure:15628: checking for $ac_func" >&5 |
4f14bcd8 | 15628 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15629 | echo $ac_n "(cached) $ac_c" 1>&6 |
15630 | else | |
15631 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 15632 | #line 15633 "configure" |
10f2d63a | 15633 | #include "confdefs.h" |
4f14bcd8 GD |
15634 | /* System header to define __stub macros and hopefully few prototypes, |
15635 | which can conflict with char $ac_func(); below. */ | |
15636 | #include <assert.h> | |
15637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15638 | #ifdef __cplusplus | |
15639 | extern "C" | |
15640 | #endif | |
15641 | /* We use char because int might match the return type of a gcc2 | |
15642 | builtin and then its argument prototype would still apply. */ | |
15643 | char $ac_func(); | |
15644 | ||
15645 | int main() { | |
15646 | ||
15647 | /* The GNU C library defines this for functions which it implements | |
15648 | to always fail with ENOSYS. Some functions are actually named | |
15649 | something starting with __ and the normal name is an alias. */ | |
15650 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15651 | choke me | |
15652 | #else | |
15653 | $ac_func(); | |
15654 | #endif | |
15655 | ||
15656 | ; return 0; } | |
698dcdb6 | 15657 | EOF |
a1622950 | 15658 | if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15659 | rm -rf conftest* |
4f14bcd8 | 15660 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15661 | else |
698dcdb6 | 15662 | echo "configure: failed program was:" >&5 |
10f2d63a | 15663 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15664 | rm -rf conftest* |
4f14bcd8 | 15665 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15666 | fi |
698dcdb6 | 15667 | rm -f conftest* |
10f2d63a | 15668 | fi |
4f14bcd8 GD |
15669 | |
15670 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15671 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 15672 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 15673 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15674 | #define $ac_tr_func 1 |
10f2d63a | 15675 | EOF |
698dcdb6 VZ |
15676 | |
15677 | else | |
15678 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15679 | fi |
15680 | done | |
15681 | ||
698dcdb6 | 15682 | |
4f14bcd8 GD |
15683 | ac_ext=c |
15684 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15685 | ac_cpp='$CPP $CPPFLAGS' | |
15686 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15687 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15688 | cross_compiling=$ac_cv_prog_cc_cross | |
15689 | ||
15690 | ||
15691 | INET_LINK= | |
15692 | for ac_func in inet_addr | |
15693 | do | |
15694 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15695 | echo "configure:15696: checking for $ac_func" >&5 |
4f14bcd8 | 15696 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15697 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15698 | else |
4f14bcd8 | 15699 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15700 | #line 15701 "configure" |
10f2d63a | 15701 | #include "confdefs.h" |
4f14bcd8 GD |
15702 | /* System header to define __stub macros and hopefully few prototypes, |
15703 | which can conflict with char $ac_func(); below. */ | |
15704 | #include <assert.h> | |
10f2d63a VZ |
15705 | /* Override any gcc2 internal prototype to avoid an error. */ |
15706 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15707 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15708 | char $ac_func(); |
698dcdb6 VZ |
15709 | |
15710 | int main() { | |
4f14bcd8 GD |
15711 | |
15712 | /* The GNU C library defines this for functions which it implements | |
15713 | to always fail with ENOSYS. Some functions are actually named | |
15714 | something starting with __ and the normal name is an alias. */ | |
15715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15716 | choke me | |
15717 | #else | |
15718 | $ac_func(); | |
15719 | #endif | |
15720 | ||
698dcdb6 VZ |
15721 | ; return 0; } |
15722 | EOF | |
a1622950 | 15723 | if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15724 | rm -rf conftest* |
4f14bcd8 | 15725 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15726 | else |
15727 | echo "configure: failed program was:" >&5 | |
15728 | cat conftest.$ac_ext >&5 | |
15729 | rm -rf conftest* | |
4f14bcd8 | 15730 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15731 | fi |
15732 | rm -f conftest* | |
698dcdb6 | 15733 | fi |
4f14bcd8 GD |
15734 | |
15735 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15736 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15737 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15738 | cat >> confdefs.h <<EOF | |
15739 | #define $ac_tr_func 1 | |
15740 | EOF | |
15741 | cat >> confdefs.h <<\EOF | |
15742 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
15743 | EOF |
15744 | ||
15745 | else | |
698dcdb6 | 15746 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15747 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
a1622950 | 15748 | echo "configure:15749: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 15749 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15750 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15752 | else |
698dcdb6 | 15753 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15754 | LIBS="-lnsl $LIBS" |
698dcdb6 | 15755 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15756 | #line 15757 "configure" |
10f2d63a VZ |
15757 | #include "confdefs.h" |
15758 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15759 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15760 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15761 | char inet_addr(); |
698dcdb6 VZ |
15762 | |
15763 | int main() { | |
4f14bcd8 | 15764 | inet_addr() |
698dcdb6 VZ |
15765 | ; return 0; } |
15766 | EOF | |
a1622950 | 15767 | if { (eval echo configure:15768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15768 | rm -rf conftest* |
15769 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15770 | else | |
15771 | echo "configure: failed program was:" >&5 | |
15772 | cat conftest.$ac_ext >&5 | |
15773 | rm -rf conftest* | |
15774 | eval "ac_cv_lib_$ac_lib_var=no" | |
15775 | fi | |
15776 | rm -f conftest* | |
15777 | LIBS="$ac_save_LIBS" | |
15778 | ||
15779 | fi | |
15780 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15781 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15782 | INET_LINK="nsl" |
10f2d63a | 15783 | else |
698dcdb6 | 15784 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15785 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
a1622950 | 15786 | echo "configure:15787: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 15787 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15788 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15790 | else |
698dcdb6 | 15791 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15792 | LIBS="-lresolv $LIBS" |
698dcdb6 | 15793 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15794 | #line 15795 "configure" |
10f2d63a VZ |
15795 | #include "confdefs.h" |
15796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15797 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15798 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15799 | char inet_addr(); |
698dcdb6 VZ |
15800 | |
15801 | int main() { | |
4f14bcd8 | 15802 | inet_addr() |
698dcdb6 VZ |
15803 | ; return 0; } |
15804 | EOF | |
a1622950 | 15805 | if { (eval echo configure:15806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15806 | rm -rf conftest* |
15807 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15808 | else | |
15809 | echo "configure: failed program was:" >&5 | |
15810 | cat conftest.$ac_ext >&5 | |
15811 | rm -rf conftest* | |
15812 | eval "ac_cv_lib_$ac_lib_var=no" | |
15813 | fi | |
15814 | rm -f conftest* | |
15815 | LIBS="$ac_save_LIBS" | |
15816 | ||
15817 | fi | |
15818 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15819 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15820 | INET_LINK="resolv" |
15821 | ||
698dcdb6 | 15822 | else |
4f14bcd8 GD |
15823 | echo "$ac_t""no" 1>&6 |
15824 | fi | |
698dcdb6 | 15825 | |
4f14bcd8 | 15826 | |
698dcdb6 | 15827 | fi |
4f14bcd8 GD |
15828 | |
15829 | ||
698dcdb6 VZ |
15830 | |
15831 | fi | |
4f14bcd8 GD |
15832 | done |
15833 | ||
15834 | ||
15835 | for ac_func in inet_aton | |
15836 | do | |
15837 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 15838 | echo "configure:15839: checking for $ac_func" >&5 |
4f14bcd8 | 15839 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15840 | echo $ac_n "(cached) $ac_c" 1>&6 |
15841 | else | |
4f14bcd8 | 15842 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15843 | #line 15844 "configure" |
f6bcfd97 | 15844 | #include "confdefs.h" |
4f14bcd8 GD |
15845 | /* System header to define __stub macros and hopefully few prototypes, |
15846 | which can conflict with char $ac_func(); below. */ | |
15847 | #include <assert.h> | |
f6bcfd97 BP |
15848 | /* Override any gcc2 internal prototype to avoid an error. */ |
15849 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15850 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15851 | char $ac_func(); |
698dcdb6 VZ |
15852 | |
15853 | int main() { | |
4f14bcd8 GD |
15854 | |
15855 | /* The GNU C library defines this for functions which it implements | |
15856 | to always fail with ENOSYS. Some functions are actually named | |
15857 | something starting with __ and the normal name is an alias. */ | |
15858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15859 | choke me | |
15860 | #else | |
15861 | $ac_func(); | |
15862 | #endif | |
15863 | ||
698dcdb6 VZ |
15864 | ; return 0; } |
15865 | EOF | |
a1622950 | 15866 | if { (eval echo configure:15867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15867 | rm -rf conftest* |
4f14bcd8 | 15868 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15869 | else |
15870 | echo "configure: failed program was:" >&5 | |
15871 | cat conftest.$ac_ext >&5 | |
15872 | rm -rf conftest* | |
4f14bcd8 | 15873 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15874 | fi |
15875 | rm -f conftest* | |
698dcdb6 | 15876 | fi |
4f14bcd8 GD |
15877 | |
15878 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15879 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15880 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15881 | cat >> confdefs.h <<EOF | |
15882 | #define $ac_tr_func 1 | |
15883 | EOF | |
15884 | cat >> confdefs.h <<\EOF | |
15885 | #define HAVE_INET_ATON 1 | |
15886 | EOF | |
15887 | ||
10f2d63a | 15888 | else |
698dcdb6 | 15889 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15890 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
a1622950 | 15891 | echo "configure:15892: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 15892 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15893 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15895 | else |
698dcdb6 | 15896 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15897 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15898 | cat > conftest.$ac_ext <<EOF |
a1622950 | 15899 | #line 15900 "configure" |
10f2d63a | 15900 | #include "confdefs.h" |
6232543b | 15901 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15902 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15903 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15904 | char inet_aton(); |
698dcdb6 VZ |
15905 | |
15906 | int main() { | |
4f14bcd8 | 15907 | inet_aton() |
698dcdb6 VZ |
15908 | ; return 0; } |
15909 | EOF | |
a1622950 | 15910 | if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15911 | rm -rf conftest* |
15912 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15913 | else | |
15914 | echo "configure: failed program was:" >&5 | |
15915 | cat conftest.$ac_ext >&5 | |
15916 | rm -rf conftest* | |
15917 | eval "ac_cv_lib_$ac_lib_var=no" | |
15918 | fi | |
15919 | rm -f conftest* | |
15920 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15921 | |
698dcdb6 VZ |
15922 | fi |
15923 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15924 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15925 | cat >> confdefs.h <<\EOF |
15926 | #define HAVE_INET_ATON 1 | |
15927 | EOF | |
15928 | ||
698dcdb6 VZ |
15929 | else |
15930 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15931 | fi |
15932 | ||
4f14bcd8 | 15933 | |
10f2d63a | 15934 | fi |
4f14bcd8 | 15935 | done |
10f2d63a | 15936 | |
4f14bcd8 GD |
15937 | |
15938 | if test "x$INET_LINK" != "x"; then | |
15939 | cat >> confdefs.h <<\EOF | |
15940 | #define HAVE_INET_ADDR 1 | |
15941 | EOF | |
15942 | ||
3d63bc3a | 15943 | INET_LINK=" -l$INET_LINK" |
6232543b | 15944 | fi |
10f2d63a | 15945 | |
1e487827 | 15946 | fi |
703e0a69 | 15947 | |
698dcdb6 | 15948 | |
4f14bcd8 GD |
15949 | cat > confcache <<\EOF |
15950 | # This file is a shell script that caches the results of configure | |
15951 | # tests run on this system so they can be shared between configure | |
15952 | # scripts and configure runs. It is not useful on other systems. | |
15953 | # If it contains results you don't want to keep, you may remove or edit it. | |
15954 | # | |
15955 | # By default, configure uses ./config.cache as the cache file, | |
15956 | # creating it if it does not exist already. You can give configure | |
15957 | # the --cache-file=FILE option to use a different cache file; that is | |
15958 | # what configure does when it calls configure scripts in | |
15959 | # subdirectories, so they share the cache. | |
15960 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15961 | # config.status only pays attention to the cache file if you give it the | |
15962 | # --recheck option to rerun configure. | |
15963 | # | |
f6bcfd97 | 15964 | EOF |
4f14bcd8 GD |
15965 | # The following way of writing the cache mishandles newlines in values, |
15966 | # but we know of no workaround that is simple, portable, and efficient. | |
15967 | # So, don't put newlines in cache variables' values. | |
15968 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15969 | # and sets the high bit in the cache file unless we assign to the vars. | |
15970 | (set) 2>&1 | | |
15971 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15972 | *ac_space=\ *) | |
15973 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15974 | # turns \\\\ into \\, and sed turns \\ into \). | |
15975 | sed -n \ | |
15976 | -e "s/'/'\\\\''/g" \ | |
15977 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15978 | ;; | |
15979 | *) | |
15980 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15981 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15982 | ;; | |
15983 | esac >> confcache | |
15984 | if cmp -s $cache_file confcache; then | |
15985 | : | |
15986 | else | |
15987 | if test -w $cache_file; then | |
15988 | echo "updating cache $cache_file" | |
15989 | cat confcache > $cache_file | |
f6bcfd97 | 15990 | else |
4f14bcd8 | 15991 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15992 | fi |
4f14bcd8 GD |
15993 | fi |
15994 | rm -f confcache | |
f6bcfd97 | 15995 | |
4f14bcd8 GD |
15996 | |
15997 | ||
15998 | if test "$TOOLKIT" != "MSW"; then | |
15999 | ||
7274f1c7 RL |
16000 | |
16001 | THREADS_LINK= | |
16002 | THREADS_OBJ= | |
16003 | CODE_GEN_FLAGS= | |
16004 | CODE_GEN_FLAGS_CXX= | |
16005 | ||
16006 | if test "$wxUSE_THREADS" = "yes" ; then | |
16007 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 16008 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
16009 | wxUSE_THREADS="no" |
16010 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 16011 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
16012 | wxUSE_THREADS="no" |
16013 | fi | |
4f14bcd8 | 16014 | fi |
4f14bcd8 | 16015 | |
7274f1c7 RL |
16016 | if test "$wxUSE_THREADS" = "yes" ; then |
16017 | ||
16018 | if test "$USE_AIX" = 1; then | |
16019 | THREADS_LIB=pthreads | |
16020 | else | |
16021 | THREADS_LIB=pthread | |
16022 | fi | |
4f14bcd8 | 16023 | |
7274f1c7 | 16024 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
a1622950 | 16025 | echo "configure:16026: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 16026 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16027 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16029 | else |
698dcdb6 | 16030 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16031 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 16032 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16033 | #line 16034 "configure" |
10f2d63a VZ |
16034 | #include "confdefs.h" |
16035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16036 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16037 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16038 | char pthread_create(); |
698dcdb6 VZ |
16039 | |
16040 | int main() { | |
4f14bcd8 | 16041 | pthread_create() |
698dcdb6 VZ |
16042 | ; return 0; } |
16043 | EOF | |
a1622950 | 16044 | if { (eval echo configure:16045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16045 | rm -rf conftest* |
16046 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16047 | else | |
16048 | echo "configure: failed program was:" >&5 | |
16049 | cat conftest.$ac_ext >&5 | |
16050 | rm -rf conftest* | |
16051 | eval "ac_cv_lib_$ac_lib_var=no" | |
16052 | fi | |
16053 | rm -f conftest* | |
16054 | LIBS="$ac_save_LIBS" | |
16055 | ||
16056 | fi | |
16057 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16058 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16059 | |
7274f1c7 RL |
16060 | THREADS_OBJ="threadpsx.lo" |
16061 | THREADS_LINK=$THREADS_LIB | |
16062 | ||
10f2d63a | 16063 | else |
698dcdb6 | 16064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16065 | |
7274f1c7 | 16066 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
a1622950 | 16067 | echo "configure:16068: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
16068 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
16069 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16070 | echo $ac_n "(cached) $ac_c" 1>&6 |
16071 | else | |
4f14bcd8 GD |
16072 | ac_save_LIBS="$LIBS" |
16073 | LIBS="-lc_r $LIBS" | |
16074 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 16075 | #line 16076 "configure" |
10f2d63a | 16076 | #include "confdefs.h" |
4f14bcd8 GD |
16077 | /* Override any gcc2 internal prototype to avoid an error. */ |
16078 | /* We use char because int might match the return type of a gcc2 | |
16079 | builtin and then its argument prototype would still apply. */ | |
16080 | char pthread_create(); | |
10f2d63a | 16081 | |
4f14bcd8 GD |
16082 | int main() { |
16083 | pthread_create() | |
698dcdb6 VZ |
16084 | ; return 0; } |
16085 | EOF | |
a1622950 | 16086 | if { (eval echo configure:16087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16087 | rm -rf conftest* |
4f14bcd8 | 16088 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 16089 | else |
698dcdb6 VZ |
16090 | echo "configure: failed program was:" >&5 |
16091 | cat conftest.$ac_ext >&5 | |
16092 | rm -rf conftest* | |
4f14bcd8 | 16093 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 16094 | fi |
698dcdb6 | 16095 | rm -f conftest* |
4f14bcd8 | 16096 | LIBS="$ac_save_LIBS" |
d9b9876f | 16097 | |
4f14bcd8 GD |
16098 | fi |
16099 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16100 | echo "$ac_t""yes" 1>&6 | |
16101 | ||
7274f1c7 RL |
16102 | THREADS_OBJ="threadpsx.lo" |
16103 | THREADS_LINK="c_r" | |
16104 | ||
4f14bcd8 GD |
16105 | else |
16106 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 16107 | |
7274f1c7 | 16108 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 16109 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
a1622950 | 16110 | echo "configure:16111: checking for sys/prctl.h" >&5 |
4f14bcd8 | 16111 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 16112 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 16113 | else |
4f14bcd8 | 16114 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16115 | #line 16116 "configure" |
d9b9876f | 16116 | #include "confdefs.h" |
4f14bcd8 | 16117 | #include <sys/prctl.h> |
698dcdb6 | 16118 | EOF |
4f14bcd8 | 16119 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a1622950 | 16120 | { (eval echo configure:16121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16121 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16122 | if test -z "$ac_err"; then | |
698dcdb6 | 16123 | rm -rf conftest* |
4f14bcd8 | 16124 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 16125 | else |
4f14bcd8 | 16126 | echo "$ac_err" >&5 |
698dcdb6 VZ |
16127 | echo "configure: failed program was:" >&5 |
16128 | cat conftest.$ac_ext >&5 | |
16129 | rm -rf conftest* | |
4f14bcd8 | 16130 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 16131 | fi |
698dcdb6 | 16132 | rm -f conftest* |
4f14bcd8 GD |
16133 | fi |
16134 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16135 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 16136 | |
7274f1c7 RL |
16137 | THREADS_OBJ="threadsgi.lo" |
16138 | ||
4f14bcd8 GD |
16139 | else |
16140 | echo "$ac_t""no" 1>&6 | |
1e487827 | 16141 | fi |
698dcdb6 | 16142 | |
7274f1c7 | 16143 | |
4f14bcd8 | 16144 | fi |
d9b9876f | 16145 | |
7274f1c7 | 16146 | |
4f14bcd8 | 16147 | fi |
d9b9876f | 16148 | |
4f14bcd8 | 16149 | |
7274f1c7 RL |
16150 | if test -z "$THREADS_OBJ" ; then |
16151 | wxUSE_THREADS=no | |
156b2523 | 16152 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 16153 | fi |
4f14bcd8 | 16154 | fi |
4f14bcd8 | 16155 | |
7274f1c7 RL |
16156 | if test "$wxUSE_THREADS" = "yes" ; then |
16157 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
16158 | do |
16159 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a1622950 | 16160 | echo "configure:16161: checking for $ac_func" >&5 |
4f14bcd8 | 16161 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16162 | echo $ac_n "(cached) $ac_c" 1>&6 |
16163 | else | |
4f14bcd8 | 16164 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16165 | #line 16166 "configure" |
d9b9876f | 16166 | #include "confdefs.h" |
4f14bcd8 GD |
16167 | /* System header to define __stub macros and hopefully few prototypes, |
16168 | which can conflict with char $ac_func(); below. */ | |
16169 | #include <assert.h> | |
16170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16171 | /* We use char because int might match the return type of a gcc2 | |
16172 | builtin and then its argument prototype would still apply. */ | |
16173 | char $ac_func(); | |
16174 | ||
698dcdb6 | 16175 | int main() { |
d9b9876f | 16176 | |
4f14bcd8 GD |
16177 | /* The GNU C library defines this for functions which it implements |
16178 | to always fail with ENOSYS. Some functions are actually named | |
16179 | something starting with __ and the normal name is an alias. */ | |
16180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16181 | choke me | |
16182 | #else | |
16183 | $ac_func(); | |
16184 | #endif | |
16185 | ||
698dcdb6 VZ |
16186 | ; return 0; } |
16187 | EOF | |
a1622950 | 16188 | if { (eval echo configure:16189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16189 | rm -rf conftest* |
4f14bcd8 | 16190 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 16191 | else |
698dcdb6 VZ |
16192 | echo "configure: failed program was:" >&5 |
16193 | cat conftest.$ac_ext >&5 | |
16194 | rm -rf conftest* | |
4f14bcd8 | 16195 | eval "ac_cv_func_$ac_func=no" |
6232543b | 16196 | fi |
698dcdb6 | 16197 | rm -f conftest* |
1e487827 | 16198 | fi |
698dcdb6 | 16199 | |
4f14bcd8 GD |
16200 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16201 | echo "$ac_t""yes" 1>&6 | |
16202 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16203 | cat >> confdefs.h <<EOF | |
16204 | #define $ac_tr_func 1 | |
d9b9876f | 16205 | EOF |
4f14bcd8 GD |
16206 | |
16207 | else | |
16208 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 16209 | fi |
4f14bcd8 | 16210 | done |
10f2d63a | 16211 | |
10f2d63a | 16212 | |
7274f1c7 RL |
16213 | |
16214 | for ac_hdr in sched.h | |
4f14bcd8 GD |
16215 | do |
16216 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16217 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 16218 | echo "configure:16219: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
16219 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16221 | else |
4f14bcd8 | 16222 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16223 | #line 16224 "configure" |
4f14bcd8 GD |
16224 | #include "confdefs.h" |
16225 | #include <$ac_hdr> | |
13111b2a | 16226 | EOF |
4f14bcd8 | 16227 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a1622950 | 16228 | { (eval echo configure:16229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16229 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16230 | if test -z "$ac_err"; then | |
16231 | rm -rf conftest* | |
16232 | eval "ac_cv_header_$ac_safe=yes" | |
16233 | else | |
16234 | echo "$ac_err" >&5 | |
16235 | echo "configure: failed program was:" >&5 | |
16236 | cat conftest.$ac_ext >&5 | |
16237 | rm -rf conftest* | |
16238 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 16239 | fi |
4f14bcd8 | 16240 | rm -f conftest* |
10f2d63a | 16241 | fi |
4f14bcd8 GD |
16242 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16243 | echo "$ac_t""yes" 1>&6 | |
16244 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 16245 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16246 | #define $ac_tr_hdr 1 |
f6bcfd97 | 16247 | EOF |
4f14bcd8 GD |
16248 | |
16249 | else | |
16250 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 16251 | fi |
4f14bcd8 | 16252 | done |
f6bcfd97 | 16253 | |
10f2d63a | 16254 | |
7274f1c7 | 16255 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
a1622950 | 16256 | echo "configure:16257: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16257 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
16258 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16260 | else | |
16261 | ac_save_LIBS="$LIBS" | |
16262 | LIBS="-l$THREADS_LINK $LIBS" | |
16263 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 16264 | #line 16265 "configure" |
4f14bcd8 GD |
16265 | #include "confdefs.h" |
16266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16267 | /* We use char because int might match the return type of a gcc2 | |
16268 | builtin and then its argument prototype would still apply. */ | |
16269 | char sched_yield(); | |
10f2d63a | 16270 | |
4f14bcd8 GD |
16271 | int main() { |
16272 | sched_yield() | |
16273 | ; return 0; } | |
10f2d63a | 16274 | EOF |
a1622950 | 16275 | if { (eval echo configure:16276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16276 | rm -rf conftest* |
16277 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16278 | else |
4f14bcd8 GD |
16279 | echo "configure: failed program was:" >&5 |
16280 | cat conftest.$ac_ext >&5 | |
16281 | rm -rf conftest* | |
16282 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16283 | fi |
4f14bcd8 GD |
16284 | rm -f conftest* |
16285 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16286 | |
4f14bcd8 GD |
16287 | fi |
16288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16289 | echo "$ac_t""yes" 1>&6 | |
16290 | cat >> confdefs.h <<\EOF | |
16291 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
16292 | EOF |
16293 | ||
4f14bcd8 GD |
16294 | else |
16295 | echo "$ac_t""no" 1>&6 | |
16296 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
a1622950 | 16297 | echo "configure:16298: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
16298 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
16299 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16301 | else | |
16302 | ac_save_LIBS="$LIBS" | |
16303 | LIBS="-lposix4 $LIBS" | |
16304 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 16305 | #line 16306 "configure" |
4f14bcd8 GD |
16306 | #include "confdefs.h" |
16307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16308 | /* We use char because int might match the return type of a gcc2 | |
16309 | builtin and then its argument prototype would still apply. */ | |
16310 | char sched_yield(); | |
47c13eb7 | 16311 | |
4f14bcd8 GD |
16312 | int main() { |
16313 | sched_yield() | |
16314 | ; return 0; } | |
10f2d63a | 16315 | EOF |
a1622950 | 16316 | if { (eval echo configure:16317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16317 | rm -rf conftest* |
16318 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16319 | else |
4f14bcd8 GD |
16320 | echo "configure: failed program was:" >&5 |
16321 | cat conftest.$ac_ext >&5 | |
16322 | rm -rf conftest* | |
16323 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16324 | fi |
4f14bcd8 GD |
16325 | rm -f conftest* |
16326 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16327 | |
54276ccf | 16328 | fi |
4f14bcd8 GD |
16329 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16330 | echo "$ac_t""yes" 1>&6 | |
16331 | cat >> confdefs.h <<\EOF | |
16332 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 16333 | EOF |
3d63bc3a | 16334 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
16335 | else |
16336 | echo "$ac_t""no" 1>&6 | |
16337 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 16338 | |
54276ccf VZ |
16339 | fi |
16340 | ||
7274f1c7 | 16341 | |
4f14bcd8 | 16342 | fi |
698dcdb6 | 16343 | |
10f2d63a | 16344 | |
7274f1c7 RL |
16345 | HAVE_PRIOR_FUNCS=0 |
16346 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
a1622950 | 16347 | echo "configure:16348: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16348 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
16349 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16350 | echo $ac_n "(cached) $ac_c" 1>&6 |
16351 | else | |
4f14bcd8 GD |
16352 | ac_save_LIBS="$LIBS" |
16353 | LIBS="-l$THREADS_LINK $LIBS" | |
16354 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 16355 | #line 16356 "configure" |
422107f9 | 16356 | #include "confdefs.h" |
4f14bcd8 GD |
16357 | /* Override any gcc2 internal prototype to avoid an error. */ |
16358 | /* We use char because int might match the return type of a gcc2 | |
16359 | builtin and then its argument prototype would still apply. */ | |
16360 | char pthread_attr_getschedpolicy(); | |
16361 | ||
16362 | int main() { | |
16363 | pthread_attr_getschedpolicy() | |
16364 | ; return 0; } | |
698dcdb6 | 16365 | EOF |
a1622950 | 16366 | if { (eval echo configure:16367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16367 | rm -rf conftest* |
4f14bcd8 | 16368 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16369 | else |
698dcdb6 | 16370 | echo "configure: failed program was:" >&5 |
422107f9 | 16371 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16372 | rm -rf conftest* |
4f14bcd8 | 16373 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16374 | fi |
698dcdb6 | 16375 | rm -f conftest* |
4f14bcd8 GD |
16376 | LIBS="$ac_save_LIBS" |
16377 | ||
422107f9 | 16378 | fi |
4f14bcd8 | 16379 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16380 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16381 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
a1622950 | 16382 | echo "configure:16383: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16383 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16384 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16386 | else |
698dcdb6 | 16387 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16388 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16389 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16390 | #line 16391 "configure" |
422107f9 VZ |
16391 | #include "confdefs.h" |
16392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16393 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16394 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16395 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
16396 | |
16397 | int main() { | |
4f14bcd8 | 16398 | pthread_attr_setschedparam() |
698dcdb6 VZ |
16399 | ; return 0; } |
16400 | EOF | |
a1622950 | 16401 | if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16402 | rm -rf conftest* |
16403 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16404 | else | |
16405 | echo "configure: failed program was:" >&5 | |
16406 | cat conftest.$ac_ext >&5 | |
16407 | rm -rf conftest* | |
16408 | eval "ac_cv_lib_$ac_lib_var=no" | |
16409 | fi | |
16410 | rm -f conftest* | |
16411 | LIBS="$ac_save_LIBS" | |
16412 | ||
16413 | fi | |
16414 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16415 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16416 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
a1622950 | 16417 | echo "configure:16418: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16418 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
16419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16420 | echo $ac_n "(cached) $ac_c" 1>&6 |
16421 | else | |
4f14bcd8 GD |
16422 | ac_save_LIBS="$LIBS" |
16423 | LIBS="-l$THREADS_LINK $LIBS" | |
16424 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 16425 | #line 16426 "configure" |
422107f9 | 16426 | #include "confdefs.h" |
4f14bcd8 GD |
16427 | /* Override any gcc2 internal prototype to avoid an error. */ |
16428 | /* We use char because int might match the return type of a gcc2 | |
16429 | builtin and then its argument prototype would still apply. */ | |
16430 | char sched_get_priority_max(); | |
16431 | ||
16432 | int main() { | |
16433 | sched_get_priority_max() | |
16434 | ; return 0; } | |
698dcdb6 | 16435 | EOF |
a1622950 | 16436 | if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16437 | rm -rf conftest* |
4f14bcd8 | 16438 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16439 | else |
698dcdb6 | 16440 | echo "configure: failed program was:" >&5 |
422107f9 | 16441 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16442 | rm -rf conftest* |
4f14bcd8 | 16443 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16444 | fi |
698dcdb6 | 16445 | rm -f conftest* |
4f14bcd8 GD |
16446 | LIBS="$ac_save_LIBS" |
16447 | ||
422107f9 | 16448 | fi |
4f14bcd8 | 16449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16450 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16451 | HAVE_PRIOR_FUNCS=1 |
16452 | else | |
16453 | echo "$ac_t""no" 1>&6 | |
16454 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
a1622950 | 16455 | echo "configure:16456: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 16456 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16457 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16459 | else |
698dcdb6 | 16460 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16461 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16462 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16463 | #line 16464 "configure" |
422107f9 VZ |
16464 | #include "confdefs.h" |
16465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16466 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16467 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16468 | char sched_get_priority_max(); |
698dcdb6 VZ |
16469 | |
16470 | int main() { | |
4f14bcd8 | 16471 | sched_get_priority_max() |
698dcdb6 VZ |
16472 | ; return 0; } |
16473 | EOF | |
a1622950 | 16474 | if { (eval echo configure:16475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16475 | rm -rf conftest* |
16476 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16477 | else | |
16478 | echo "configure: failed program was:" >&5 | |
16479 | cat conftest.$ac_ext >&5 | |
16480 | rm -rf conftest* | |
16481 | eval "ac_cv_lib_$ac_lib_var=no" | |
16482 | fi | |
16483 | rm -f conftest* | |
16484 | LIBS="$ac_save_LIBS" | |
16485 | ||
16486 | fi | |
16487 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16488 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16489 | |
7274f1c7 RL |
16490 | HAVE_PRIOR_FUNCS=1 |
16491 | POSIX4_LINK=" -lposix4" | |
16492 | ||
698dcdb6 VZ |
16493 | else |
16494 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
16495 | fi |
16496 | ||
7274f1c7 | 16497 | |
422107f9 VZ |
16498 | fi |
16499 | ||
7274f1c7 | 16500 | |
4f14bcd8 GD |
16501 | else |
16502 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16503 | fi |
16504 | ||
7274f1c7 | 16505 | |
698dcdb6 | 16506 | else |
4f14bcd8 GD |
16507 | echo "$ac_t""no" 1>&6 |
16508 | fi | |
463abc64 | 16509 | |
463abc64 | 16510 | |
7274f1c7 RL |
16511 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
16512 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16513 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 16514 | EOF |
463abc64 | 16515 | |
7274f1c7 RL |
16516 | else |
16517 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
16518 | fi | |
463abc64 | 16519 | |
7274f1c7 | 16520 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
a1622950 | 16521 | echo "configure:16522: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16522 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16523 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16524 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16525 | else |
698dcdb6 | 16526 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16527 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16528 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16529 | #line 16530 "configure" |
422107f9 VZ |
16530 | #include "confdefs.h" |
16531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16532 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16533 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16534 | char pthread_cancel(); |
698dcdb6 VZ |
16535 | |
16536 | int main() { | |
4f14bcd8 | 16537 | pthread_cancel() |
698dcdb6 VZ |
16538 | ; return 0; } |
16539 | EOF | |
a1622950 | 16540 | if { (eval echo configure:16541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16541 | rm -rf conftest* |
16542 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16543 | else | |
16544 | echo "configure: failed program was:" >&5 | |
16545 | cat conftest.$ac_ext >&5 | |
16546 | rm -rf conftest* | |
16547 | eval "ac_cv_lib_$ac_lib_var=no" | |
16548 | fi | |
16549 | rm -f conftest* | |
16550 | LIBS="$ac_save_LIBS" | |
16551 | ||
16552 | fi | |
16553 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16554 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16555 | cat >> confdefs.h <<\EOF |
16556 | #define HAVE_PTHREAD_CANCEL 1 | |
16557 | EOF | |
16558 | ||
698dcdb6 VZ |
16559 | else |
16560 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16561 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
16562 | fi |
16563 | ||
422107f9 | 16564 | |
7274f1c7 | 16565 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
a1622950 | 16566 | echo "configure:16567: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
16567 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
16568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16569 | else | |
16570 | ||
7274f1c7 | 16571 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16572 | #line 16573 "configure" |
4f14bcd8 GD |
16573 | #include "confdefs.h" |
16574 | #include <pthread.h> | |
16575 | int main() { | |
16576 | ||
7274f1c7 RL |
16577 | pthread_cleanup_push(NULL, NULL); |
16578 | pthread_cleanup_pop(0); | |
16579 | ||
4f14bcd8 GD |
16580 | ; return 0; } |
16581 | EOF | |
a1622950 | 16582 | if { (eval echo configure:16583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16583 | rm -rf conftest* |
16584 | ||
7274f1c7 RL |
16585 | wx_cv_func_pthread_cleanup_push=yes |
16586 | ||
4f14bcd8 GD |
16587 | else |
16588 | echo "configure: failed program was:" >&5 | |
16589 | cat conftest.$ac_ext >&5 | |
16590 | rm -rf conftest* | |
16591 | ||
7274f1c7 RL |
16592 | wx_cv_func_pthread_cleanup_push=no |
16593 | ||
4f14bcd8 GD |
16594 | fi |
16595 | rm -f conftest* | |
7274f1c7 | 16596 | |
10f2d63a VZ |
16597 | fi |
16598 | ||
4f14bcd8 GD |
16599 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
16600 | ||
7274f1c7 RL |
16601 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
16602 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16603 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
16604 | EOF |
16605 | ||
7274f1c7 | 16606 | fi |
4f14bcd8 | 16607 | |
7274f1c7 RL |
16608 | |
16609 | if test "x$wx_lib_glibc21" = "xyes"; then | |
16610 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
16611 | fi | |
4f14bcd8 | 16612 | |
7274f1c7 | 16613 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
a1622950 | 16614 | echo "configure:16615: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 16615 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
16616 | echo $ac_n "(cached) $ac_c" 1>&6 |
16617 | else | |
4f14bcd8 | 16618 | |
7274f1c7 | 16619 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16620 | #line 16621 "configure" |
0dcf9893 | 16621 | #include "confdefs.h" |
4f14bcd8 GD |
16622 | #include <pthread.h> |
16623 | int main() { | |
16624 | ||
7274f1c7 RL |
16625 | pthread_mutexattr_t attr; |
16626 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
16627 | ||
4f14bcd8 | 16628 | ; return 0; } |
698dcdb6 | 16629 | EOF |
a1622950 | 16630 | if { (eval echo configure:16631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16631 | rm -rf conftest* |
4f14bcd8 | 16632 | |
7274f1c7 RL |
16633 | wx_cv_type_pthread_mutexattr_t=yes |
16634 | ||
3fed1840 | 16635 | else |
698dcdb6 | 16636 | echo "configure: failed program was:" >&5 |
3fed1840 | 16637 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16638 | rm -rf conftest* |
4f14bcd8 | 16639 | |
7274f1c7 RL |
16640 | wx_cv_type_pthread_mutexattr_t=no |
16641 | ||
4f14bcd8 | 16642 | |
3fed1840 | 16643 | fi |
698dcdb6 | 16644 | rm -f conftest* |
7274f1c7 | 16645 | |
3fed1840 | 16646 | fi |
4f14bcd8 GD |
16647 | |
16648 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
16649 | ||
7274f1c7 RL |
16650 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
16651 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16652 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
16653 | EOF | |
16654 | ||
7274f1c7 RL |
16655 | else |
16656 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
a1622950 | 16657 | echo "configure:16658: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 16658 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 16659 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 16660 | else |
4f14bcd8 | 16661 | |
7274f1c7 | 16662 | cat > conftest.$ac_ext <<EOF |
a1622950 | 16663 | #line 16664 "configure" |
3fed1840 | 16664 | #include "confdefs.h" |
4f14bcd8 | 16665 | #include <pthread.h> |
698dcdb6 | 16666 | int main() { |
4f14bcd8 | 16667 | |
7274f1c7 RL |
16668 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
16669 | ||
698dcdb6 VZ |
16670 | ; return 0; } |
16671 | EOF | |
a1622950 | 16672 | if { (eval echo configure:16673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16673 | rm -rf conftest* |
4f14bcd8 | 16674 | |
7274f1c7 RL |
16675 | wx_cv_type_pthread_rec_mutex_init=yes |
16676 | ||
698dcdb6 VZ |
16677 | else |
16678 | echo "configure: failed program was:" >&5 | |
16679 | cat conftest.$ac_ext >&5 | |
16680 | rm -rf conftest* | |
4f14bcd8 | 16681 | |
7274f1c7 RL |
16682 | wx_cv_type_pthread_rec_mutex_init=no |
16683 | ||
4f14bcd8 | 16684 | |
698dcdb6 VZ |
16685 | fi |
16686 | rm -f conftest* | |
7274f1c7 | 16687 | |
3fed1840 RR |
16688 | fi |
16689 | ||
4f14bcd8 | 16690 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
16691 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
16692 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16693 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
16694 | EOF | |
3fed1840 | 16695 | |
7274f1c7 RL |
16696 | else |
16697 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
16698 | fi | |
16699 | fi | |
4f14bcd8 | 16700 | |
7274f1c7 | 16701 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 16702 | |
7274f1c7 RL |
16703 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
16704 | CPPFLAGS="$CFLAGS -mt" | |
16705 | CXXFLAGS="$CXXFLAGS -mt" | |
16706 | LDFLAGS="$LDFLAGS -mt" | |
16707 | fi | |
16708 | fi | |
3fed1840 | 16709 | |
4f14bcd8 GD |
16710 | fi |
16711 | ||
16712 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 16713 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16714 | #define wxUSE_THREADS 1 |
7b6058cd GD |
16715 | EOF |
16716 | ||
4f14bcd8 | 16717 | |
3f345b47 | 16718 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
16719 | |
16720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 16721 | else |
4f14bcd8 GD |
16722 | if test "$ac_cv_func_strtok_r" = "yes"; then |
16723 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
a1622950 | 16724 | echo "configure:16725: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
16725 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
16726 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
16727 | echo "$ac_t""yes" 1>&6 | |
16728 | else | |
16729 | echo "$ac_t""no" 1>&6 | |
16730 | fi | |
16731 | fi | |
16732 | fi | |
16733 | ||
16734 | if test "$WXGTK20" = 1 ; then | |
16735 | cat >> confdefs.h <<EOF | |
16736 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 16737 | EOF |
4f14bcd8 GD |
16738 | |
16739 | WXGTK12=1 | |
10f2d63a | 16740 | fi |
4f14bcd8 GD |
16741 | |
16742 | if test "$WXGTK12" = 1 ; then | |
16743 | cat >> confdefs.h <<EOF | |
16744 | #define __WXGTK12__ $WXGTK12 | |
16745 | EOF | |
16746 | ||
10f2d63a | 16747 | fi |
698dcdb6 | 16748 | |
4f14bcd8 GD |
16749 | if test "$WXGTK127" = 1 ; then |
16750 | cat >> confdefs.h <<EOF | |
16751 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 16752 | EOF |
4f14bcd8 | 16753 | |
698dcdb6 | 16754 | fi |
10f2d63a | 16755 | |
4f14bcd8 GD |
16756 | WXDEBUG= |
16757 | ||
16758 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
16759 | WXDEBUG="-g" | |
16760 | wxUSE_OPTIMISE=no | |
698dcdb6 | 16761 | fi |
4f14bcd8 GD |
16762 | |
16763 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
16764 | wxUSE_DEBUG_INFO=yes | |
16765 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
16766 | fi |
16767 | ||
4f14bcd8 GD |
16768 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
16769 | cat >> confdefs.h <<\EOF | |
16770 | #define WXDEBUG 1 | |
16771 | EOF | |
16772 | ||
16773 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 16774 | else |
4f14bcd8 GD |
16775 | if test "$wxUSE_GTK" = 1 ; then |
16776 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
16777 | fi | |
16778 | fi | |
16779 | ||
16780 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
16781 | cat >> confdefs.h <<\EOF | |
16782 | #define wxUSE_MEMORY_TRACING 1 | |
16783 | EOF | |
16784 | ||
16785 | cat >> confdefs.h <<\EOF | |
16786 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
16787 | EOF | |
16788 | ||
16789 | cat >> confdefs.h <<\EOF | |
16790 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
16791 | EOF | |
16792 | ||
16793 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
16794 | fi | |
16795 | ||
16796 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 16797 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
16798 | fi |
16799 | ||
16800 | PROFILE= | |
16801 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 16802 | PROFILE=" -pg" |
10f2d63a VZ |
16803 | fi |
16804 | ||
88e30f2b | 16805 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
16806 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
16807 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 16808 | fi |
4f14bcd8 GD |
16809 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
16810 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
16811 | fi | |
16812 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
16813 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
16814 | fi | |
4f14bcd8 GD |
16815 | if test "$USE_WIN32" = 1 ; then |
16816 | # I'm not even really sure what this was ever added to solve, | |
16817 | # but someone added it for mingw native builds, so I guess | |
16818 | # they had a reason, right?? | |
16819 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
16820 | fi | |
16821 | fi | |
16822 | ||
16823 | ||
16824 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16825 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16826 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16827 | OPTIMISE= | |
16828 | else | |
16829 | if test "$GCC" = yes ; then | |
16830 | OPTIMISE="-O2" | |
16831 | case "${host}" in | |
16832 | i586-*-*|i686-*-* ) | |
16833 | OPTIMISE="${OPTIMISE} " | |
16834 | ;; | |
16835 | esac | |
16836 | else | |
16837 | OPTIMISE="-O" | |
16838 | fi | |
16839 | fi | |
16840 | ||
16841 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16842 | cat >> confdefs.h <<\EOF | |
16843 | #define WXWIN_COMPATIBILITY_2 1 | |
16844 | EOF | |
16845 | ||
16846 | ||
16847 | WXWIN_COMPATIBILITY_2_2="yes" | |
16848 | fi | |
16849 | ||
16850 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16851 | cat >> confdefs.h <<\EOF | |
16852 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16853 | EOF | |
16854 | ||
10f2d63a VZ |
16855 | fi |
16856 | ||
698dcdb6 | 16857 | |
10f2d63a | 16858 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16859 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16860 | #define wxUSE_GUI 1 |
16861 | EOF | |
16862 | ||
698dcdb6 | 16863 | |
10f2d63a | 16864 | else |
698dcdb6 | 16865 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16866 | #define wxUSE_NOGUI 1 |
16867 | EOF | |
16868 | ||
16869 | fi | |
16870 | ||
698dcdb6 | 16871 | |
10f2d63a | 16872 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16873 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16874 | #define wxUSE_UNIX 1 |
16875 | EOF | |
16876 | ||
16877 | fi | |
16878 | ||
698dcdb6 | 16879 | |
10f2d63a | 16880 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16881 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16882 | #define wxUSE_APPLE_IEEE 1 |
16883 | EOF | |
16884 | ||
16885 | fi | |
16886 | ||
1e6feb95 VZ |
16887 | if test "$wxUSE_TIMER" = "yes"; then |
16888 | cat >> confdefs.h <<\EOF | |
16889 | #define wxUSE_TIMER 1 | |
16890 | EOF | |
16891 | ||
16892 | fi | |
16893 | ||
10f2d63a | 16894 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16895 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16896 | #define wxUSE_WAVE 1 |
16897 | EOF | |
16898 | ||
16899 | fi | |
16900 | ||
1e6feb95 VZ |
16901 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16902 | cat >> confdefs.h <<\EOF | |
16903 | #define wxUSE_CMDLINE_PARSER 1 | |
16904 | EOF | |
16905 | ||
16906 | fi | |
16907 | ||
16908 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16909 | cat >> confdefs.h <<\EOF | |
16910 | #define wxUSE_STOPWATCH 1 | |
16911 | EOF | |
16912 | ||
16913 | fi | |
16914 | ||
16915 | if test "$wxUSE_DATETIME" = "yes"; then | |
16916 | cat >> confdefs.h <<\EOF | |
16917 | #define wxUSE_DATETIME 1 | |
16918 | EOF | |
16919 | ||
16920 | fi | |
16921 | ||
16922 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16923 | cat >> confdefs.h <<\EOF | |
16924 | #define wxUSE_TIMEDATE 1 | |
16925 | EOF | |
16926 | ||
16927 | fi | |
16928 | ||
10f2d63a | 16929 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16930 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16931 | #define wxUSE_FILE 1 |
16932 | EOF | |
16933 | ||
16934 | fi | |
16935 | ||
1e6feb95 VZ |
16936 | if test "$wxUSE_FFILE" = "yes"; then |
16937 | cat >> confdefs.h <<\EOF | |
16938 | #define wxUSE_FFILE 1 | |
16939 | EOF | |
16940 | ||
16941 | fi | |
16942 | ||
24528b0c | 16943 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16944 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16945 | #define wxUSE_FILESYSTEM 1 |
16946 | EOF | |
16947 | ||
16948 | fi | |
16949 | ||
10f2d63a | 16950 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16952 | #define wxUSE_FS_INET 1 |
16953 | EOF | |
16954 | ||
16955 | fi | |
16956 | ||
16957 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16958 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16959 | #define wxUSE_FS_ZIP 1 |
16960 | EOF | |
16961 | ||
16962 | fi | |
16963 | ||
16964 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16966 | #define wxUSE_ZIPSTREAM 1 |
16967 | EOF | |
16968 | ||
16969 | fi | |
16970 | ||
eb4efbdc | 16971 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16972 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16973 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16974 | EOF | |
16975 | ||
16976 | fi | |
16977 | ||
4f3c5f06 | 16978 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16979 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16980 | #define wxUSE_SNGLINST_CHECKER 1 |
16981 | EOF | |
16982 | ||
16983 | fi | |
16984 | ||
10f2d63a | 16985 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16986 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16987 | #define wxUSE_BUSYINFO 1 |
16988 | EOF | |
16989 | ||
16990 | fi | |
16991 | ||
16992 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16993 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16994 | #define wxUSE_STD_IOSTREAM 1 |
16995 | EOF | |
16996 | ||
16997 | fi | |
16998 | ||
a3a584a7 VZ |
16999 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
17000 | cat >> confdefs.h <<\EOF | |
17001 | #define wxUSE_TEXTBUFFER 1 | |
17002 | EOF | |
17003 | ||
17004 | fi | |
17005 | ||
10f2d63a | 17006 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 17007 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 17008 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 17009 | else |
698dcdb6 | 17010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17011 | #define wxUSE_TEXTFILE 1 |
17012 | EOF | |
17013 | ||
17014 | fi | |
17015 | fi | |
17016 | ||
17017 | if test "$wxUSE_CONFIG" = "yes" ; then | |
17018 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 17019 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 17020 | else |
698dcdb6 | 17021 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17022 | #define wxUSE_CONFIG 1 |
17023 | EOF | |
17024 | ||
17025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
17026 | fi | |
17027 | fi | |
17028 | ||
17029 | if test "$wxUSE_INTL" = "yes" ; then | |
17030 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 17031 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 17032 | else |
698dcdb6 | 17033 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17034 | #define wxUSE_INTL 1 |
17035 | EOF | |
17036 | ||
17037 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 17038 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
17039 | fi |
17040 | fi | |
17041 | ||
17042 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 17043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17044 | #define wxUSE_LOG 1 |
17045 | EOF | |
17046 | ||
d73be714 VZ |
17047 | |
17048 | if test "$wxUSE_LOGGUI" = "yes"; then | |
17049 | cat >> confdefs.h <<\EOF | |
17050 | #define wxUSE_LOGGUI 1 | |
17051 | EOF | |
17052 | ||
17053 | fi | |
17054 | ||
17055 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
17056 | cat >> confdefs.h <<\EOF | |
17057 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
17058 | EOF |
17059 | ||
17060 | fi | |
17061 | ||
17062 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
17063 | cat >> confdefs.h <<\EOF | |
17064 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
17065 | EOF |
17066 | ||
17067 | fi | |
10f2d63a VZ |
17068 | fi |
17069 | ||
17070 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 17071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17072 | #define wxUSE_LONGLONG 1 |
17073 | EOF | |
17074 | ||
17075 | fi | |
17076 | ||
e8f65ba6 | 17077 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 17078 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
17079 | #define wxUSE_GEOMETRY 1 |
17080 | EOF | |
17081 | ||
17082 | fi | |
17083 | ||
10f2d63a | 17084 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 17085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17086 | #define wxUSE_DIALUP_MANAGER 1 |
17087 | EOF | |
17088 | ||
70f7a477 | 17089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
17090 | fi |
17091 | ||
17092 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 17093 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17094 | #define wxUSE_STREAMS 1 |
17095 | EOF | |
17096 | ||
17097 | fi | |
17098 | ||
1e487827 | 17099 | |
1e6feb95 | 17100 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 17101 | for ac_func in strptime |
83307f33 | 17102 | do |
698dcdb6 | 17103 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 17104 | echo "configure:17105: checking for $ac_func" >&5 |
698dcdb6 VZ |
17105 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17107 | else | |
17108 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17109 | #line 17110 "configure" |
83307f33 VZ |
17110 | #include "confdefs.h" |
17111 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17112 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
17113 | #include <assert.h> |
17114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17115 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17116 | builtin and then its argument prototype would still apply. */ |
17117 | char $ac_func(); | |
17118 | ||
17119 | int main() { | |
83307f33 VZ |
17120 | |
17121 | /* The GNU C library defines this for functions which it implements | |
17122 | to always fail with ENOSYS. Some functions are actually named | |
17123 | something starting with __ and the normal name is an alias. */ | |
17124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17125 | choke me | |
17126 | #else | |
698dcdb6 | 17127 | $ac_func(); |
83307f33 VZ |
17128 | #endif |
17129 | ||
698dcdb6 | 17130 | ; return 0; } |
83307f33 | 17131 | EOF |
a1622950 | 17132 | if { (eval echo configure:17133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17133 | rm -rf conftest* |
17134 | eval "ac_cv_func_$ac_func=yes" | |
17135 | else | |
17136 | echo "configure: failed program was:" >&5 | |
17137 | cat conftest.$ac_ext >&5 | |
17138 | rm -rf conftest* | |
17139 | eval "ac_cv_func_$ac_func=no" | |
17140 | fi | |
17141 | rm -f conftest* | |
17142 | fi | |
83307f33 | 17143 | |
698dcdb6 VZ |
17144 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17145 | echo "$ac_t""yes" 1>&6 | |
17146 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17147 | cat >> confdefs.h <<EOF | |
17148 | #define $ac_tr_func 1 | |
17149 | EOF | |
17150 | ||
17151 | else | |
17152 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
17153 | fi |
17154 | done | |
17155 | ||
1e487827 | 17156 | |
698dcdb6 | 17157 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
a1622950 | 17158 | echo "configure:17159: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
17159 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
17160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17161 | else | |
17162 | ||
17163 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17164 | #line 17165 "configure" |
360d6699 VZ |
17165 | #include "confdefs.h" |
17166 | ||
b4085ce6 | 17167 | #include <time.h> |
698dcdb6 VZ |
17168 | |
17169 | int main() { | |
360d6699 VZ |
17170 | |
17171 | int tz; | |
4f11a343 | 17172 | tz = timezone; |
698dcdb6 VZ |
17173 | |
17174 | ; return 0; } | |
17175 | EOF | |
a1622950 | 17176 | if { (eval echo configure:17177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17177 | rm -rf conftest* |
17178 | ||
4f11a343 | 17179 | wx_cv_var_timezone=timezone |
698dcdb6 | 17180 | |
360d6699 | 17181 | else |
698dcdb6 VZ |
17182 | echo "configure: failed program was:" >&5 |
17183 | cat conftest.$ac_ext >&5 | |
17184 | rm -rf conftest* | |
17185 | ||
17186 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17187 | #line 17188 "configure" |
360d6699 VZ |
17188 | #include "confdefs.h" |
17189 | ||
b4085ce6 | 17190 | #include <time.h> |
698dcdb6 VZ |
17191 | |
17192 | int main() { | |
360d6699 VZ |
17193 | |
17194 | int tz; | |
17195 | tz = _timezone; | |
698dcdb6 VZ |
17196 | |
17197 | ; return 0; } | |
17198 | EOF | |
a1622950 | 17199 | if { (eval echo configure:17200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17200 | rm -rf conftest* |
17201 | ||
360d6699 | 17202 | wx_cv_var_timezone=_timezone |
698dcdb6 | 17203 | |
5357c8e8 | 17204 | else |
698dcdb6 VZ |
17205 | echo "configure: failed program was:" >&5 |
17206 | cat conftest.$ac_ext >&5 | |
17207 | rm -rf conftest* | |
17208 | ||
17209 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17210 | #line 17211 "configure" |
5357c8e8 VZ |
17211 | #include "confdefs.h" |
17212 | ||
b4085ce6 | 17213 | #include <time.h> |
698dcdb6 VZ |
17214 | |
17215 | int main() { | |
5357c8e8 VZ |
17216 | |
17217 | int tz; | |
4f11a343 | 17218 | tz = __timezone; |
698dcdb6 VZ |
17219 | |
17220 | ; return 0; } | |
17221 | EOF | |
a1622950 | 17222 | if { (eval echo configure:17223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17223 | rm -rf conftest* |
17224 | ||
4f11a343 | 17225 | wx_cv_var_timezone=__timezone |
698dcdb6 | 17226 | |
360d6699 | 17227 | else |
698dcdb6 VZ |
17228 | echo "configure: failed program was:" >&5 |
17229 | cat conftest.$ac_ext >&5 | |
17230 | rm -rf conftest* | |
f9bc1684 VS |
17231 | |
17232 | if test "$USE_DOS" = 0 ; then | |
17233 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
17234 | fi | |
17235 | ||
698dcdb6 | 17236 | |
360d6699 | 17237 | fi |
698dcdb6 VZ |
17238 | rm -f conftest* |
17239 | ||
17240 | ||
360d6699 | 17241 | fi |
698dcdb6 VZ |
17242 | rm -f conftest* |
17243 | ||
17244 | ||
6232543b | 17245 | fi |
698dcdb6 VZ |
17246 | rm -f conftest* |
17247 | ||
17248 | ||
1e487827 | 17249 | fi |
703e0a69 | 17250 | |
698dcdb6 VZ |
17251 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
17252 | ||
f9bc1684 | 17253 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 17254 | cat >> confdefs.h <<EOF |
360d6699 VZ |
17255 | #define WX_TIMEZONE $wx_cv_var_timezone |
17256 | EOF | |
17257 | ||
f9bc1684 | 17258 | fi |
698dcdb6 VZ |
17259 | |
17260 | for ac_func in localtime | |
afc31813 | 17261 | do |
698dcdb6 | 17262 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 17263 | echo "configure:17264: checking for $ac_func" >&5 |
698dcdb6 VZ |
17264 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17266 | else | |
17267 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17268 | #line 17269 "configure" |
10f2d63a | 17269 | #include "confdefs.h" |
afc31813 | 17270 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 17271 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
17272 | #include <assert.h> |
17273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17274 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17275 | builtin and then its argument prototype would still apply. */ |
17276 | char $ac_func(); | |
17277 | ||
17278 | int main() { | |
afc31813 VZ |
17279 | |
17280 | /* The GNU C library defines this for functions which it implements | |
17281 | to always fail with ENOSYS. Some functions are actually named | |
17282 | something starting with __ and the normal name is an alias. */ | |
17283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17284 | choke me | |
17285 | #else | |
698dcdb6 | 17286 | $ac_func(); |
afc31813 VZ |
17287 | #endif |
17288 | ||
698dcdb6 | 17289 | ; return 0; } |
10f2d63a | 17290 | EOF |
a1622950 | 17291 | if { (eval echo configure:17292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17292 | rm -rf conftest* |
17293 | eval "ac_cv_func_$ac_func=yes" | |
17294 | else | |
17295 | echo "configure: failed program was:" >&5 | |
17296 | cat conftest.$ac_ext >&5 | |
17297 | rm -rf conftest* | |
17298 | eval "ac_cv_func_$ac_func=no" | |
17299 | fi | |
17300 | rm -f conftest* | |
17301 | fi | |
afc31813 | 17302 | |
698dcdb6 VZ |
17303 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17304 | echo "$ac_t""yes" 1>&6 | |
17305 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17306 | cat >> confdefs.h <<EOF | |
17307 | #define $ac_tr_func 1 | |
17308 | EOF | |
17309 | ||
17310 | else | |
17311 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
17312 | fi |
17313 | done | |
17314 | ||
1e487827 | 17315 | |
698dcdb6 VZ |
17316 | if test "$ac_cv_func_localtime" = "yes"; then |
17317 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
a1622950 | 17318 | echo "configure:17319: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
17319 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
17320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17321 | else | |
17322 | ||
17323 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17324 | #line 17325 "configure" |
0470b1e6 VZ |
17325 | #include "confdefs.h" |
17326 | ||
b4085ce6 | 17327 | #include <time.h> |
698dcdb6 VZ |
17328 | |
17329 | int main() { | |
0470b1e6 VZ |
17330 | |
17331 | struct tm tm; | |
17332 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
17333 | |
17334 | ; return 0; } | |
17335 | EOF | |
a1622950 | 17336 | if { (eval echo configure:17337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17337 | rm -rf conftest* |
17338 | ||
f03a98d8 | 17339 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 17340 | |
0470b1e6 | 17341 | else |
698dcdb6 VZ |
17342 | echo "configure: failed program was:" >&5 |
17343 | cat conftest.$ac_ext >&5 | |
17344 | rm -rf conftest* | |
17345 | wx_cv_struct_tm_has_gmtoff=no | |
17346 | ||
0470b1e6 | 17347 | fi |
698dcdb6 VZ |
17348 | rm -f conftest* |
17349 | ||
1e487827 | 17350 | fi |
698dcdb6 VZ |
17351 | |
17352 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
17353 | fi |
17354 | ||
17355 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 17356 | cat >> confdefs.h <<\EOF |
6232543b VS |
17357 | #define WX_GMTOFF_IN_TM 1 |
17358 | EOF | |
0470b1e6 | 17359 | |
3fcdd07b VZ |
17360 | fi |
17361 | ||
698dcdb6 | 17362 | for ac_func in gettimeofday ftime |
3fcdd07b | 17363 | do |
698dcdb6 | 17364 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 17365 | echo "configure:17366: checking for $ac_func" >&5 |
698dcdb6 VZ |
17366 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17368 | else | |
17369 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17370 | #line 17371 "configure" |
3fcdd07b VZ |
17371 | #include "confdefs.h" |
17372 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17373 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
17374 | #include <assert.h> |
17375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17376 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17377 | builtin and then its argument prototype would still apply. */ |
17378 | char $ac_func(); | |
17379 | ||
17380 | int main() { | |
3fcdd07b VZ |
17381 | |
17382 | /* The GNU C library defines this for functions which it implements | |
17383 | to always fail with ENOSYS. Some functions are actually named | |
17384 | something starting with __ and the normal name is an alias. */ | |
17385 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17386 | choke me | |
17387 | #else | |
698dcdb6 | 17388 | $ac_func(); |
3fcdd07b VZ |
17389 | #endif |
17390 | ||
698dcdb6 VZ |
17391 | ; return 0; } |
17392 | EOF | |
a1622950 | 17393 | if { (eval echo configure:17394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17394 | rm -rf conftest* |
17395 | eval "ac_cv_func_$ac_func=yes" | |
17396 | else | |
17397 | echo "configure: failed program was:" >&5 | |
17398 | cat conftest.$ac_ext >&5 | |
17399 | rm -rf conftest* | |
17400 | eval "ac_cv_func_$ac_func=no" | |
17401 | fi | |
17402 | rm -f conftest* | |
17403 | fi | |
17404 | ||
17405 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17406 | echo "$ac_t""yes" 1>&6 | |
17407 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17408 | cat >> confdefs.h <<EOF | |
17409 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
17410 | EOF |
17411 | break | |
698dcdb6 VZ |
17412 | else |
17413 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
17414 | fi |
17415 | done | |
17416 | ||
afc31813 | 17417 | |
698dcdb6 VZ |
17418 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
17419 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
a1622950 | 17420 | echo "configure:17421: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
17421 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
17422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17423 | else | |
17424 | ||
17425 | ||
17426 | ac_ext=C | |
17427 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 17428 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17429 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17430 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17431 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17432 | |
698dcdb6 VZ |
17433 | |
17434 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17435 | #line 17436 "configure" |
10f2d63a | 17436 | #include "confdefs.h" |
afc31813 VZ |
17437 | |
17438 | #include <sys/time.h> | |
17439 | #include <unistd.h> | |
698dcdb6 VZ |
17440 | |
17441 | int main() { | |
afc31813 VZ |
17442 | |
17443 | struct timeval tv; | |
776862b4 | 17444 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
17445 | |
17446 | ; return 0; } | |
17447 | EOF | |
a1622950 | 17448 | if { (eval echo configure:17449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17449 | rm -rf conftest* |
afc31813 | 17450 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 17451 | else |
698dcdb6 VZ |
17452 | echo "configure: failed program was:" >&5 |
17453 | cat conftest.$ac_ext >&5 | |
17454 | rm -rf conftest* | |
17455 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17456 | #line 17457 "configure" |
10f2d63a | 17457 | #include "confdefs.h" |
afc31813 VZ |
17458 | |
17459 | #include <sys/time.h> | |
17460 | #include <unistd.h> | |
698dcdb6 VZ |
17461 | |
17462 | int main() { | |
afc31813 VZ |
17463 | |
17464 | struct timeval tv; | |
17465 | gettimeofday(&tv); | |
698dcdb6 VZ |
17466 | |
17467 | ; return 0; } | |
17468 | EOF | |
a1622950 | 17469 | if { (eval echo configure:17470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17470 | rm -rf conftest* |
afc31813 | 17471 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 17472 | else |
698dcdb6 VZ |
17473 | echo "configure: failed program was:" >&5 |
17474 | cat conftest.$ac_ext >&5 | |
17475 | rm -rf conftest* | |
776862b4 VZ |
17476 | |
17477 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
17478 | wx_cv_func_gettimeofday_has_2_args=unknown | |
17479 | ||
698dcdb6 | 17480 | |
10f2d63a | 17481 | fi |
698dcdb6 VZ |
17482 | rm -f conftest* |
17483 | ||
10f2d63a | 17484 | fi |
698dcdb6 | 17485 | rm -f conftest* |
afc31813 | 17486 | ac_ext=c |
698dcdb6 | 17487 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 17488 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17489 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17490 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17491 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 17492 | |
698dcdb6 | 17493 | |
afc31813 | 17494 | fi |
698dcdb6 VZ |
17495 | |
17496 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 17497 | |
afc31813 | 17498 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 17499 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17500 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
17501 | EOF | |
17502 | ||
17503 | fi | |
17504 | fi | |
17505 | ||
698dcdb6 | 17506 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17507 | #define wxUSE_TIMEDATE 1 |
17508 | EOF | |
17509 | ||
17510 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
17511 | fi | |
17512 | ||
698dcdb6 | 17513 | |
b089607b VZ |
17514 | if test "$TOOLKIT" != "MSW"; then |
17515 | ||
3a922bb4 RL |
17516 | if test "$wxUSE_SOCKETS" = "yes"; then |
17517 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
a1622950 | 17518 | echo "configure:17519: checking for socket" >&5 |
698dcdb6 VZ |
17519 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
17520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17521 | else |
698dcdb6 | 17522 | cat > conftest.$ac_ext <<EOF |
a1622950 | 17523 | #line 17524 "configure" |
c63c7106 VZ |
17524 | #include "confdefs.h" |
17525 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17526 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
17527 | #include <assert.h> |
17528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17529 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17530 | builtin and then its argument prototype would still apply. */ |
17531 | char socket(); | |
17532 | ||
17533 | int main() { | |
c63c7106 VZ |
17534 | |
17535 | /* The GNU C library defines this for functions which it implements | |
17536 | to always fail with ENOSYS. Some functions are actually named | |
17537 | something starting with __ and the normal name is an alias. */ | |
17538 | #if defined (__stub_socket) || defined (__stub___socket) | |
17539 | choke me | |
17540 | #else | |
698dcdb6 | 17541 | socket(); |
c63c7106 VZ |
17542 | #endif |
17543 | ||
698dcdb6 VZ |
17544 | ; return 0; } |
17545 | EOF | |
a1622950 | 17546 | if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17547 | rm -rf conftest* |
17548 | eval "ac_cv_func_socket=yes" | |
17549 | else | |
17550 | echo "configure: failed program was:" >&5 | |
17551 | cat conftest.$ac_ext >&5 | |
17552 | rm -rf conftest* | |
17553 | eval "ac_cv_func_socket=no" | |
17554 | fi | |
17555 | rm -f conftest* | |
17556 | fi | |
17557 | ||
17558 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
17559 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
17560 | : |
17561 | else | |
698dcdb6 VZ |
17562 | echo "$ac_t""no" 1>&6 |
17563 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
a1622950 | 17564 | echo "configure:17565: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
17565 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
17566 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17568 | else |
698dcdb6 | 17569 | ac_save_LIBS="$LIBS" |
c63c7106 | 17570 | LIBS="-lsocket $LIBS" |
698dcdb6 | 17571 | cat > conftest.$ac_ext <<EOF |
a1622950 | 17572 | #line 17573 "configure" |
c63c7106 VZ |
17573 | #include "confdefs.h" |
17574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17575 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17576 | builtin and then its argument prototype would still apply. */ |
17577 | char socket(); | |
17578 | ||
17579 | int main() { | |
17580 | socket() | |
17581 | ; return 0; } | |
17582 | EOF | |
a1622950 | 17583 | if { (eval echo configure:17584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17584 | rm -rf conftest* |
17585 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17586 | else | |
17587 | echo "configure: failed program was:" >&5 | |
17588 | cat conftest.$ac_ext >&5 | |
17589 | rm -rf conftest* | |
17590 | eval "ac_cv_lib_$ac_lib_var=no" | |
17591 | fi | |
17592 | rm -f conftest* | |
17593 | LIBS="$ac_save_LIBS" | |
17594 | ||
17595 | fi | |
17596 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17597 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 17598 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 17599 | else |
698dcdb6 | 17600 | echo "$ac_t""no" 1>&6 |
afc31813 | 17601 | |
3a922bb4 RL |
17602 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
17603 | wxUSE_SOCKETS=no | |
17604 | ||
698dcdb6 | 17605 | |
6232543b | 17606 | fi |
b089607b | 17607 | |
3a922bb4 | 17608 | |
1e487827 | 17609 | fi |
afc31813 | 17610 | |
3a922bb4 | 17611 | fi |
51a9faba | 17612 | |
3a922bb4 RL |
17613 | |
17614 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
17615 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
a1622950 | 17616 | echo "configure:17617: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
17617 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
17618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17619 | else | |
17620 | ||
3a922bb4 RL |
17621 | |
17622 | ac_ext=C | |
698dcdb6 | 17623 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 17624 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17625 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17626 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17627 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17628 | |
698dcdb6 | 17629 | |
3a922bb4 | 17630 | cat > conftest.$ac_ext <<EOF |
a1622950 | 17631 | #line 17632 "configure" |
afc31813 | 17632 | #include "confdefs.h" |
51a9faba | 17633 | |
3a922bb4 RL |
17634 | #include <sys/types.h> |
17635 | #include <sys/socket.h> | |
17636 | ||
698dcdb6 | 17637 | int main() { |
51a9faba | 17638 | |
3a922bb4 RL |
17639 | socklen_t len; |
17640 | getsockname(0, 0, &len); | |
17641 | ||
698dcdb6 VZ |
17642 | ; return 0; } |
17643 | EOF | |
a1622950 | 17644 | if { (eval echo configure:17645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17645 | rm -rf conftest* |
51a9faba | 17646 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 17647 | else |
698dcdb6 VZ |
17648 | echo "configure: failed program was:" >&5 |
17649 | cat conftest.$ac_ext >&5 | |
17650 | rm -rf conftest* | |
17651 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17652 | #line 17653 "configure" |
afc31813 | 17653 | #include "confdefs.h" |
51a9faba | 17654 | |
3a922bb4 RL |
17655 | #include <sys/types.h> |
17656 | #include <sys/socket.h> | |
17657 | ||
698dcdb6 | 17658 | int main() { |
51a9faba | 17659 | |
3a922bb4 RL |
17660 | size_t len; |
17661 | getsockname(0, 0, &len); | |
17662 | ||
698dcdb6 VZ |
17663 | ; return 0; } |
17664 | EOF | |
a1622950 | 17665 | if { (eval echo configure:17666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17666 | rm -rf conftest* |
51a9faba | 17667 | wx_cv_type_getsockname3=size_t |
afc31813 | 17668 | else |
698dcdb6 VZ |
17669 | echo "configure: failed program was:" >&5 |
17670 | cat conftest.$ac_ext >&5 | |
17671 | rm -rf conftest* | |
17672 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17673 | #line 17674 "configure" |
afc31813 | 17674 | #include "confdefs.h" |
51a9faba | 17675 | |
3a922bb4 RL |
17676 | #include <sys/types.h> |
17677 | #include <sys/socket.h> | |
17678 | ||
698dcdb6 | 17679 | int main() { |
51a9faba | 17680 | |
3a922bb4 RL |
17681 | int len; |
17682 | getsockname(0, 0, &len); | |
17683 | ||
698dcdb6 VZ |
17684 | ; return 0; } |
17685 | EOF | |
a1622950 | 17686 | if { (eval echo configure:17687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17687 | rm -rf conftest* |
51a9faba | 17688 | wx_cv_type_getsockname3=int |
afc31813 | 17689 | else |
698dcdb6 VZ |
17690 | echo "configure: failed program was:" >&5 |
17691 | cat conftest.$ac_ext >&5 | |
17692 | rm -rf conftest* | |
17693 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 17694 | |
afc31813 | 17695 | fi |
698dcdb6 | 17696 | rm -f conftest* |
3a922bb4 | 17697 | |
afc31813 | 17698 | fi |
698dcdb6 | 17699 | rm -f conftest* |
3a922bb4 | 17700 | |
afc31813 | 17701 | fi |
698dcdb6 | 17702 | rm -f conftest* |
51a9faba | 17703 | |
3a922bb4 | 17704 | ac_ext=c |
698dcdb6 | 17705 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 17706 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17707 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17708 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17709 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 17710 | |
3a922bb4 | 17711 | |
51a9faba | 17712 | fi |
698dcdb6 VZ |
17713 | |
17714 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 17715 | |
3a922bb4 RL |
17716 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
17717 | wxUSE_SOCKETS=no | |
17718 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
17719 | else | |
17720 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
17721 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
17722 | EOF | |
17723 | ||
3a922bb4 | 17724 | fi |
51a9faba VZ |
17725 | fi |
17726 | fi | |
afc31813 | 17727 | |
51a9faba | 17728 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 17729 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17730 | #define wxUSE_SOCKETS 1 |
17731 | EOF | |
17732 | ||
70f7a477 | 17733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
17734 | fi |
17735 | ||
698dcdb6 | 17736 | |
dc3d889d VZ |
17737 | if test "$wxUSE_GUI" = "yes"; then |
17738 | ||
156b2523 GD |
17739 | if test "$TOOLKIT" = "MAC"; then |
17740 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
17741 | wxUSE_JOYSTICK=no | |
17742 | fi | |
17743 | if test "$TOOLKIT" = "MOTIF"; then | |
17744 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
17745 | wxUSE_JOYSTICK=no | |
17746 | fi | |
17747 | ||
3a922bb4 RL |
17748 | if test "$TOOLKIT" != "MSW"; then |
17749 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
17750 | for ac_hdr in linux/joystick.h | |
10f2d63a | 17751 | do |
698dcdb6 VZ |
17752 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17753 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 17754 | echo "configure:17755: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17755 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17757 | else | |
17758 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17759 | #line 17760 "configure" |
10f2d63a | 17760 | #include "confdefs.h" |
698dcdb6 VZ |
17761 | #include <$ac_hdr> |
17762 | EOF | |
17763 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 17764 | { (eval echo configure:17765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17765 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17766 | if test -z "$ac_err"; then | |
17767 | rm -rf conftest* | |
17768 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 17769 | else |
698dcdb6 VZ |
17770 | echo "$ac_err" >&5 |
17771 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17772 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17773 | rm -rf conftest* |
17774 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17775 | fi |
698dcdb6 | 17776 | rm -f conftest* |
10f2d63a | 17777 | fi |
698dcdb6 VZ |
17778 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17779 | echo "$ac_t""yes" 1>&6 | |
17780 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17781 | cat >> confdefs.h <<EOF | |
17782 | #define $ac_tr_hdr 1 | |
10f2d63a | 17783 | EOF |
698dcdb6 VZ |
17784 | |
17785 | else | |
17786 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17787 | fi |
17788 | done | |
17789 | ||
3a922bb4 RL |
17790 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
17791 | wxUSE_JOYSTICK=no | |
156b2523 | 17792 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
17793 | fi |
17794 | fi | |
17795 | fi | |
b089607b | 17796 | |
3a922bb4 RL |
17797 | if test "$wxUSE_JOYSTICK" = "yes"; then |
17798 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17799 | #define wxUSE_JOYSTICK 1 |
17800 | EOF | |
17801 | ||
3a922bb4 RL |
17802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
17803 | fi | |
dc3d889d VZ |
17804 | fi |
17805 | ||
698dcdb6 | 17806 | |
b089607b VZ |
17807 | if test "$TOOLKIT" != "MSW"; then |
17808 | ||
3a922bb4 RL |
17809 | HAVE_DL_FUNCS=0 |
17810 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 17811 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
17812 | if test "$USE_DARWIN" = 1; then |
17813 | HAVE_DL_FUNCS=1 | |
17814 | else | |
17815 | for ac_func in dlopen | |
10f2d63a | 17816 | do |
698dcdb6 | 17817 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 17818 | echo "configure:17819: checking for $ac_func" >&5 |
698dcdb6 VZ |
17819 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17821 | else | |
17822 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17823 | #line 17824 "configure" |
10f2d63a VZ |
17824 | #include "confdefs.h" |
17825 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17826 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17827 | #include <assert.h> |
17828 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17829 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17830 | builtin and then its argument prototype would still apply. */ |
17831 | char $ac_func(); | |
17832 | ||
17833 | int main() { | |
10f2d63a VZ |
17834 | |
17835 | /* The GNU C library defines this for functions which it implements | |
17836 | to always fail with ENOSYS. Some functions are actually named | |
17837 | something starting with __ and the normal name is an alias. */ | |
17838 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17839 | choke me | |
17840 | #else | |
698dcdb6 | 17841 | $ac_func(); |
10f2d63a VZ |
17842 | #endif |
17843 | ||
698dcdb6 VZ |
17844 | ; return 0; } |
17845 | EOF | |
a1622950 | 17846 | if { (eval echo configure:17847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17847 | rm -rf conftest* |
17848 | eval "ac_cv_func_$ac_func=yes" | |
17849 | else | |
17850 | echo "configure: failed program was:" >&5 | |
17851 | cat conftest.$ac_ext >&5 | |
17852 | rm -rf conftest* | |
17853 | eval "ac_cv_func_$ac_func=no" | |
17854 | fi | |
17855 | rm -f conftest* | |
17856 | fi | |
17857 | ||
17858 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17859 | echo "$ac_t""yes" 1>&6 | |
17860 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17861 | cat >> confdefs.h <<EOF | |
17862 | #define $ac_tr_func 1 | |
17863 | EOF | |
17864 | ||
3a922bb4 | 17865 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17866 | #define HAVE_DLOPEN 1 |
17867 | EOF | |
17868 | ||
3a922bb4 RL |
17869 | HAVE_DL_FUNCS=1 |
17870 | ||
10f2d63a | 17871 | else |
698dcdb6 VZ |
17872 | echo "$ac_t""no" 1>&6 |
17873 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
a1622950 | 17874 | echo "configure:17875: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
17875 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
17876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17878 | else |
698dcdb6 | 17879 | ac_save_LIBS="$LIBS" |
10f2d63a | 17880 | LIBS="-ldl $LIBS" |
698dcdb6 | 17881 | cat > conftest.$ac_ext <<EOF |
a1622950 | 17882 | #line 17883 "configure" |
10f2d63a VZ |
17883 | #include "confdefs.h" |
17884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17885 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17886 | builtin and then its argument prototype would still apply. */ |
17887 | char dlopen(); | |
17888 | ||
17889 | int main() { | |
17890 | dlopen() | |
17891 | ; return 0; } | |
17892 | EOF | |
a1622950 | 17893 | if { (eval echo configure:17894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17894 | rm -rf conftest* |
17895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17896 | else | |
17897 | echo "configure: failed program was:" >&5 | |
17898 | cat conftest.$ac_ext >&5 | |
17899 | rm -rf conftest* | |
17900 | eval "ac_cv_lib_$ac_lib_var=no" | |
17901 | fi | |
17902 | rm -f conftest* | |
17903 | LIBS="$ac_save_LIBS" | |
17904 | ||
17905 | fi | |
17906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17907 | echo "$ac_t""yes" 1>&6 | |
17908 | ||
3a922bb4 | 17909 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17910 | #define HAVE_DLOPEN 1 |
17911 | EOF | |
17912 | ||
3a922bb4 | 17913 | HAVE_DL_FUNCS=1 |
3d63bc3a | 17914 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 17915 | |
10f2d63a | 17916 | else |
698dcdb6 | 17917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17918 | |
3a922bb4 | 17919 | for ac_func in shl_load |
10f2d63a | 17920 | do |
698dcdb6 | 17921 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 17922 | echo "configure:17923: checking for $ac_func" >&5 |
698dcdb6 VZ |
17923 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17925 | else | |
17926 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 17927 | #line 17928 "configure" |
10f2d63a VZ |
17928 | #include "confdefs.h" |
17929 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17930 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17931 | #include <assert.h> |
17932 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17933 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17934 | builtin and then its argument prototype would still apply. */ |
17935 | char $ac_func(); | |
17936 | ||
17937 | int main() { | |
10f2d63a VZ |
17938 | |
17939 | /* The GNU C library defines this for functions which it implements | |
17940 | to always fail with ENOSYS. Some functions are actually named | |
17941 | something starting with __ and the normal name is an alias. */ | |
17942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17943 | choke me | |
17944 | #else | |
698dcdb6 | 17945 | $ac_func(); |
10f2d63a VZ |
17946 | #endif |
17947 | ||
698dcdb6 VZ |
17948 | ; return 0; } |
17949 | EOF | |
a1622950 | 17950 | if { (eval echo configure:17951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17951 | rm -rf conftest* |
17952 | eval "ac_cv_func_$ac_func=yes" | |
17953 | else | |
17954 | echo "configure: failed program was:" >&5 | |
17955 | cat conftest.$ac_ext >&5 | |
17956 | rm -rf conftest* | |
17957 | eval "ac_cv_func_$ac_func=no" | |
17958 | fi | |
17959 | rm -f conftest* | |
17960 | fi | |
17961 | ||
17962 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17963 | echo "$ac_t""yes" 1>&6 | |
17964 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17965 | cat >> confdefs.h <<EOF | |
17966 | #define $ac_tr_func 1 | |
17967 | EOF | |
17968 | ||
3a922bb4 | 17969 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17970 | #define HAVE_SHL_LOAD 1 |
17971 | EOF | |
17972 | ||
3a922bb4 RL |
17973 | HAVE_SHL_FUNCS=1 |
17974 | ||
10f2d63a | 17975 | else |
698dcdb6 VZ |
17976 | echo "$ac_t""no" 1>&6 |
17977 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
a1622950 | 17978 | echo "configure:17979: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17979 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17980 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17982 | else |
698dcdb6 | 17983 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17984 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17985 | cat > conftest.$ac_ext <<EOF |
a1622950 | 17986 | #line 17987 "configure" |
f6bcfd97 BP |
17987 | #include "confdefs.h" |
17988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17989 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17990 | builtin and then its argument prototype would still apply. */ |
17991 | char dld(); | |
17992 | ||
17993 | int main() { | |
17994 | dld() | |
17995 | ; return 0; } | |
17996 | EOF | |
a1622950 | 17997 | if { (eval echo configure:17998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17998 | rm -rf conftest* |
17999 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18000 | else | |
18001 | echo "configure: failed program was:" >&5 | |
18002 | cat conftest.$ac_ext >&5 | |
18003 | rm -rf conftest* | |
18004 | eval "ac_cv_lib_$ac_lib_var=no" | |
18005 | fi | |
18006 | rm -f conftest* | |
18007 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 18008 | |
698dcdb6 VZ |
18009 | fi |
18010 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18011 | echo "$ac_t""yes" 1>&6 | |
18012 | ||
3a922bb4 | 18013 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 18014 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 18015 | |
698dcdb6 VZ |
18016 | else |
18017 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18018 | fi |
18019 | ||
3a922bb4 | 18020 | |
10f2d63a VZ |
18021 | fi |
18022 | done | |
18023 | ||
3a922bb4 | 18024 | |
10f2d63a VZ |
18025 | fi |
18026 | ||
3a922bb4 | 18027 | |
10f2d63a VZ |
18028 | fi |
18029 | done | |
18030 | ||
1e487827 | 18031 | |
3a922bb4 RL |
18032 | if test "$HAVE_DL_FUNCS" = 1; then |
18033 | for ac_func in dlerror | |
f6bcfd97 | 18034 | do |
698dcdb6 | 18035 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a1622950 | 18036 | echo "configure:18037: checking for $ac_func" >&5 |
698dcdb6 VZ |
18037 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18039 | else | |
18040 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 18041 | #line 18042 "configure" |
f6bcfd97 BP |
18042 | #include "confdefs.h" |
18043 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18044 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
18045 | #include <assert.h> |
18046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18047 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18048 | builtin and then its argument prototype would still apply. */ |
18049 | char $ac_func(); | |
18050 | ||
18051 | int main() { | |
f6bcfd97 BP |
18052 | |
18053 | /* The GNU C library defines this for functions which it implements | |
18054 | to always fail with ENOSYS. Some functions are actually named | |
18055 | something starting with __ and the normal name is an alias. */ | |
18056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18057 | choke me | |
18058 | #else | |
698dcdb6 | 18059 | $ac_func(); |
f6bcfd97 BP |
18060 | #endif |
18061 | ||
698dcdb6 VZ |
18062 | ; return 0; } |
18063 | EOF | |
a1622950 | 18064 | if { (eval echo configure:18065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18065 | rm -rf conftest* |
18066 | eval "ac_cv_func_$ac_func=yes" | |
18067 | else | |
18068 | echo "configure: failed program was:" >&5 | |
18069 | cat conftest.$ac_ext >&5 | |
18070 | rm -rf conftest* | |
18071 | eval "ac_cv_func_$ac_func=no" | |
18072 | fi | |
18073 | rm -f conftest* | |
18074 | fi | |
18075 | ||
18076 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18077 | echo "$ac_t""yes" 1>&6 | |
18078 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18079 | cat >> confdefs.h <<EOF | |
18080 | #define $ac_tr_func 1 | |
18081 | EOF | |
18082 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
18083 | #define HAVE_DLERROR 1 |
18084 | EOF | |
18085 | ||
18086 | else | |
698dcdb6 VZ |
18087 | echo "$ac_t""no" 1>&6 |
18088 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
a1622950 | 18089 | echo "configure:18090: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
18090 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
18091 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18093 | else |
698dcdb6 | 18094 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18095 | LIBS="-ldl $LIBS" |
698dcdb6 | 18096 | cat > conftest.$ac_ext <<EOF |
a1622950 | 18097 | #line 18098 "configure" |
f6bcfd97 BP |
18098 | #include "confdefs.h" |
18099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18100 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18101 | builtin and then its argument prototype would still apply. */ |
18102 | char dlerror(); | |
18103 | ||
18104 | int main() { | |
18105 | dlerror() | |
18106 | ; return 0; } | |
18107 | EOF | |
a1622950 | 18108 | if { (eval echo configure:18109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18109 | rm -rf conftest* |
18110 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18111 | else | |
18112 | echo "configure: failed program was:" >&5 | |
18113 | cat conftest.$ac_ext >&5 | |
18114 | rm -rf conftest* | |
18115 | eval "ac_cv_lib_$ac_lib_var=no" | |
18116 | fi | |
18117 | rm -f conftest* | |
18118 | LIBS="$ac_save_LIBS" | |
18119 | ||
18120 | fi | |
18121 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18122 | echo "$ac_t""yes" 1>&6 | |
18123 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
18124 | #define HAVE_DLERROR 1 |
18125 | EOF | |
18126 | ||
698dcdb6 VZ |
18127 | else |
18128 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18129 | fi |
18130 | ||
18131 | fi | |
18132 | done | |
18133 | ||
3a922bb4 RL |
18134 | fi |
18135 | fi | |
f6bcfd97 | 18136 | |
3a922bb4 RL |
18137 | if test "$HAVE_DL_FUNCS" = 0; then |
18138 | if test "$HAVE_SHL_FUNCS" = 0; then | |
18139 | if test "$USE_UNIX" = 1; then | |
18140 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 18141 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
18142 | wxUSE_DYNLIB_CLASS=no |
18143 | else | |
18144 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
18145 | fi | |
18146 | fi | |
10f2d63a VZ |
18147 | fi |
18148 | fi | |
18149 | fi | |
18150 | ||
0b9ab0bd RL |
18151 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
18152 | cat >> confdefs.h <<\EOF | |
18153 | #define wxUSE_DYNAMIC_LOADER 1 | |
18154 | EOF | |
18155 | ||
18156 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 18157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18158 | #define wxUSE_DYNLIB_CLASS 1 |
18159 | EOF | |
18160 | ||
18161 | fi | |
18162 | ||
698dcdb6 | 18163 | |
1e6feb95 VZ |
18164 | if test "$wxUSE_FONTMAP" = "yes" ; then |
18165 | cat >> confdefs.h <<\EOF | |
18166 | #define wxUSE_FONTMAP 1 | |
18167 | EOF | |
18168 | ||
18169 | fi | |
18170 | ||
10f2d63a | 18171 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 18172 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18173 | #define wxUSE_UNICODE 1 |
18174 | EOF | |
18175 | ||
a72a4bfa VS |
18176 | |
18177 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
18178 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
a1622950 | 18179 | echo "configure:18180: checking for main in -lunicows" >&5 |
a72a4bfa VS |
18180 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
18181 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18183 | else | |
18184 | ac_save_LIBS="$LIBS" | |
18185 | LIBS="-lunicows $LIBS" | |
18186 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 18187 | #line 18188 "configure" |
a72a4bfa VS |
18188 | #include "confdefs.h" |
18189 | ||
18190 | int main() { | |
18191 | main() | |
18192 | ; return 0; } | |
18193 | EOF | |
a1622950 | 18194 | if { (eval echo configure:18195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
18195 | rm -rf conftest* |
18196 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18197 | else | |
18198 | echo "configure: failed program was:" >&5 | |
18199 | cat conftest.$ac_ext >&5 | |
18200 | rm -rf conftest* | |
18201 | eval "ac_cv_lib_$ac_lib_var=no" | |
18202 | fi | |
18203 | rm -f conftest* | |
18204 | LIBS="$ac_save_LIBS" | |
18205 | ||
18206 | fi | |
18207 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18208 | echo "$ac_t""yes" 1>&6 | |
18209 | ||
18210 | cat >> confdefs.h <<\EOF | |
18211 | #define wxUSE_UNICODE_MSLU 1 | |
18212 | EOF | |
18213 | ||
18214 | ||
18215 | else | |
18216 | echo "$ac_t""no" 1>&6 | |
18217 | ||
18218 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
18219 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
18220 | wxUSE_UNICODE_MSLU=no | |
18221 | ||
18222 | fi | |
18223 | ||
18224 | fi | |
10f2d63a VZ |
18225 | fi |
18226 | ||
10f2d63a | 18227 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 18228 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18229 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
18230 | EOF | |
18231 | ||
18232 | fi | |
18233 | ||
698dcdb6 | 18234 | |
698dcdb6 | 18235 | |
10f2d63a VZ |
18236 | IODBC_C_SRC="" |
18237 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 18238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18239 | #define wxUSE_ODBC 1 |
18240 | EOF | |
18241 | ||
18242 | WXODBCFLAG="-D_IODBC_" | |
18243 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
18244 | fi |
18245 | ||
698dcdb6 | 18246 | |
10f2d63a | 18247 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 18248 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18249 | #define wxUSE_POSTSCRIPT 1 |
18250 | EOF | |
18251 | ||
18252 | fi | |
18253 | ||
698dcdb6 | 18254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18255 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
18256 | EOF | |
18257 | ||
698dcdb6 VZ |
18258 | |
18259 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18260 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
18261 | EOF | |
18262 | ||
698dcdb6 VZ |
18263 | |
18264 | ||
10f2d63a | 18265 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 18266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18267 | #define wxUSE_CONSTRAINTS 1 |
18268 | EOF | |
18269 | ||
18270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
18271 | fi | |
18272 | ||
18273 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 18274 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18275 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
18276 | wxUSE_MDI_ARCHITECTURE=no |
18277 | fi | |
18278 | ||
18279 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18280 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18281 | #define wxUSE_MDI_ARCHITECTURE 1 |
18282 | EOF | |
18283 | ||
fc26f4ab RL |
18284 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
18285 | fi | |
10f2d63a VZ |
18286 | fi |
18287 | ||
18288 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 18289 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18290 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
18291 | EOF | |
18292 | ||
18293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
18294 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
18296 | fi | |
18297 | fi | |
18298 | ||
18299 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 18300 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18301 | #define wxUSE_HELP 1 |
18302 | EOF | |
18303 | ||
18304 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 18305 | |
77e13408 | 18306 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 18307 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
18308 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
18309 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
a1622950 | 18310 | echo "configure:18311: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
18311 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18313 | else | |
18314 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 18315 | #line 18316 "configure" |
29fd3c0c VS |
18316 | #include "confdefs.h" |
18317 | #include <htmlhelp.h> | |
18318 | EOF | |
18319 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 18320 | { (eval echo configure:18321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
18321 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18322 | if test -z "$ac_err"; then | |
18323 | rm -rf conftest* | |
18324 | eval "ac_cv_header_$ac_safe=yes" | |
18325 | else | |
18326 | echo "$ac_err" >&5 | |
18327 | echo "configure: failed program was:" >&5 | |
18328 | cat conftest.$ac_ext >&5 | |
18329 | rm -rf conftest* | |
18330 | eval "ac_cv_header_$ac_safe=no" | |
18331 | fi | |
18332 | rm -f conftest* | |
18333 | fi | |
18334 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18335 | echo "$ac_t""yes" 1>&6 | |
18336 | ||
18337 | cat >> confdefs.h <<\EOF | |
18338 | #define wxUSE_MS_HTML_HELP 1 | |
18339 | EOF | |
18340 | ||
18341 | ||
18342 | else | |
18343 | echo "$ac_t""no" 1>&6 | |
18344 | ||
fc26f4ab | 18345 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
18346 | wxUSE_MS_HTML_HELP=no |
18347 | ||
18348 | fi | |
18349 | ||
3e44f09d | 18350 | fi |
3379ed37 | 18351 | fi |
031d8228 VS |
18352 | |
18353 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
18354 | if test "$wxUSE_HTML" = "yes"; then | |
18355 | cat >> confdefs.h <<\EOF | |
18356 | #define wxUSE_WXHTML_HELP 1 | |
18357 | EOF | |
18358 | ||
18359 | else | |
18360 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
18361 | wxUSE_WXHTML_HELP=no | |
18362 | fi | |
18363 | fi | |
10f2d63a VZ |
18364 | fi |
18365 | ||
18366 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
18367 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 18368 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 18369 | else |
698dcdb6 | 18370 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18371 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
18372 | EOF | |
18373 | ||
18374 | fi | |
18375 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
18376 | fi | |
18377 | ||
18378 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 18379 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18380 | #define wxUSE_PROLOGIO 1 |
18381 | EOF | |
18382 | ||
18383 | fi | |
18384 | ||
18385 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 18386 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18387 | #define wxUSE_RESOURCES 1 |
18388 | EOF | |
18389 | ||
3379ed37 | 18390 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
18391 | fi |
18392 | ||
18393 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 18394 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18395 | #define wxUSE_X_RESOURCES 1 |
18396 | EOF | |
18397 | ||
18398 | fi | |
18399 | ||
698dcdb6 | 18400 | |
77e13408 RL |
18401 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
18402 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
18403 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 18404 | for ac_hdr in ole2.h |
10f2d63a | 18405 | do |
698dcdb6 VZ |
18406 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18407 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a1622950 | 18408 | echo "configure:18409: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18409 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18411 | else | |
18412 | cat > conftest.$ac_ext <<EOF | |
a1622950 | 18413 | #line 18414 "configure" |
10f2d63a | 18414 | #include "confdefs.h" |
698dcdb6 VZ |
18415 | #include <$ac_hdr> |
18416 | EOF | |
18417 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a1622950 | 18418 | { (eval echo configure:18419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18419 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18420 | if test -z "$ac_err"; then | |
18421 | rm -rf conftest* | |
18422 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 18423 | else |
698dcdb6 VZ |
18424 | echo "$ac_err" >&5 |
18425 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18426 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18427 | rm -rf conftest* |
18428 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18429 | fi |
698dcdb6 | 18430 | rm -f conftest* |
10f2d63a | 18431 | fi |
698dcdb6 VZ |
18432 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18433 | echo "$ac_t""yes" 1>&6 | |
18434 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18435 | cat >> confdefs.h <<EOF | |
18436 | #define $ac_tr_hdr 1 | |
10f2d63a | 18437 | EOF |
698dcdb6 VZ |
18438 | |
18439 | else | |
18440 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18441 | fi |
18442 | done | |
18443 | ||
698dcdb6 | 18444 | |
2b9bdf71 VZ |
18445 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
18446 | if test "$GCC" = yes ; then | |
18447 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 18448 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 18449 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 18450 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
18451 | #define wxUSE_OLE 1 |
18452 | EOF | |
18453 | ||
b64f0a5f | 18454 | |
2b9bdf71 VZ |
18455 | fi |
18456 | ||
18457 | cat >> confdefs.h <<\EOF | |
18458 | #define wxUSE_DATAOBJ 1 | |
18459 | EOF | |
18460 | ||
18461 | else | |
18462 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
18463 | ||
18464 | wxUSE_CLIPBOARD=no | |
18465 | wxUSE_DRAG_AND_DROP=no | |
18466 | wxUSE_DATAOBJ=no | |
18467 | fi | |
18468 | ||
77e13408 | 18469 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 18470 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
18471 | #define wxUSE_METAFILE 1 |
18472 | EOF | |
18473 | ||
2b9bdf71 VZ |
18474 | |
18475 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
18476 | #define wxUSE_ENH_METAFILE 1 |
18477 | EOF | |
18478 | ||
2b9bdf71 VZ |
18479 | fi |
18480 | fi | |
18481 | ||
18482 | if test "$wxUSE_IPC" = "yes"; then | |
18483 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 18484 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
18485 | fi |
18486 | ||
18487 | cat >> confdefs.h <<\EOF | |
18488 | #define wxUSE_IPC 1 | |
18489 | EOF | |
18490 | ||
18491 | fi | |
18492 | ||
18493 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
18494 | cat >> confdefs.h <<\EOF | |
18495 | #define wxUSE_CLIPBOARD 1 | |
18496 | EOF | |
18497 | ||
673f4220 | 18498 | |
e33ef661 | 18499 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
18500 | #define wxUSE_DATAOBJ 1 |
18501 | EOF | |
18502 | ||
2b9bdf71 VZ |
18503 | fi |
18504 | ||
18505 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
18506 | if test "$wxUSE_GTK" = 1; then | |
18507 | if test "$WXGTK12" != 1; then | |
156b2523 | 18508 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
18509 | wxUSE_DRAG_AND_DROP=no |
18510 | fi | |
18511 | fi | |
18512 | ||
2b9bdf71 | 18513 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 18514 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
18515 | wxUSE_DRAG_AND_DROP=no |
18516 | fi | |
18517 | ||
18518 | if test "$wxUSE_MAC" = 1; then | |
156b2523 | 18519 | echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2 |
2b9bdf71 VZ |
18520 | wxUSE_DRAG_AND_DROP=no |
18521 | fi | |
18522 | ||
10f2d63a | 18523 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 18524 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18525 | #define wxUSE_DRAG_AND_DROP 1 |
18526 | EOF | |
18527 | ||
18528 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
18529 | fi | |
18530 | ||
18531 | fi | |
18532 | ||
18533 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 18534 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18535 | #define wxUSE_SPLINES 1 |
18536 | EOF | |
18537 | ||
18538 | fi | |
18539 | ||
698dcdb6 | 18540 | |
1e6feb95 VZ |
18541 | USES_CONTROLS=0 |
18542 | if test "$wxUSE_CONTROLS" = "yes"; then | |
18543 | USES_CONTROLS=1 | |
18544 | fi | |
18545 | ||
10f2d63a | 18546 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 18547 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18548 | #define wxUSE_ACCEL 1 |
18549 | EOF | |
18550 | ||
1e6feb95 VZ |
18551 | USES_CONTROLS=1 |
18552 | fi | |
18553 | ||
18554 | if test "$wxUSE_BUTTON" = "yes"; then | |
18555 | cat >> confdefs.h <<\EOF | |
18556 | #define wxUSE_BUTTON 1 | |
18557 | EOF | |
18558 | ||
18559 | USES_CONTROLS=1 | |
18560 | fi | |
18561 | ||
18562 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
18563 | cat >> confdefs.h <<\EOF | |
18564 | #define wxUSE_BMPBUTTON 1 | |
18565 | EOF | |
18566 | ||
18567 | USES_CONTROLS=1 | |
18568 | fi | |
18569 | ||
18570 | if test "$wxUSE_CALCTRL" = "yes"; then | |
18571 | cat >> confdefs.h <<\EOF | |
18572 | #define wxUSE_CALENDARCTRL 1 | |
18573 | EOF | |
18574 | ||
18575 | USES_CONTROLS=1 | |
18576 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
18577 | fi |
18578 | ||
18579 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 18580 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18581 | #define wxUSE_CARET 1 |
18582 | EOF | |
18583 | ||
1e6feb95 | 18584 | USES_CONTROLS=1 |
10f2d63a VZ |
18585 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
18586 | fi | |
18587 | ||
18588 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 18589 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18590 | #define wxUSE_COMBOBOX 1 |
18591 | EOF | |
18592 | ||
1e6feb95 | 18593 | USES_CONTROLS=1 |
10f2d63a VZ |
18594 | fi |
18595 | ||
18596 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 18597 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18598 | #define wxUSE_CHOICE 1 |
18599 | EOF | |
18600 | ||
1e6feb95 | 18601 | USES_CONTROLS=1 |
10f2d63a VZ |
18602 | fi |
18603 | ||
18604 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 18605 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18606 | #define wxUSE_CHECKBOX 1 |
18607 | EOF | |
18608 | ||
1e6feb95 | 18609 | USES_CONTROLS=1 |
10f2d63a VZ |
18610 | fi |
18611 | ||
18612 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 18613 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18614 | #define wxUSE_CHECKLISTBOX 1 |
18615 | EOF | |
18616 | ||
1e6feb95 | 18617 | USES_CONTROLS=1 |
10f2d63a VZ |
18618 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
18619 | fi | |
18620 | ||
18621 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 18622 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18623 | #define wxUSE_GAUGE 1 |
18624 | EOF | |
18625 | ||
1e6feb95 | 18626 | USES_CONTROLS=1 |
10f2d63a VZ |
18627 | fi |
18628 | ||
d6a55c4b VZ |
18629 | if test "$wxUSE_NEW_GRID" = "yes"; then |
18630 | wxUSE_GRID="yes" | |
698dcdb6 | 18631 | cat >> confdefs.h <<\EOF |
d6a55c4b | 18632 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
18633 | EOF |
18634 | ||
1e6feb95 | 18635 | USES_CONTROLS=1 |
d6a55c4b | 18636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
18637 | fi |
18638 | ||
d6a55c4b | 18639 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 18640 | cat >> confdefs.h <<\EOF |
d6a55c4b | 18641 | #define wxUSE_GRID 1 |
10f2d63a VZ |
18642 | EOF |
18643 | ||
1e6feb95 | 18644 | USES_CONTROLS=1 |
d6a55c4b | 18645 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
18646 | fi |
18647 | ||
18648 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18649 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18650 | #define wxUSE_IMAGLIST 1 |
18651 | EOF | |
18652 | ||
18653 | fi | |
18654 | ||
18655 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 18656 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18657 | #define wxUSE_LISTBOX 1 |
18658 | EOF | |
18659 | ||
1e6feb95 | 18660 | USES_CONTROLS=1 |
10f2d63a VZ |
18661 | fi |
18662 | ||
18663 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
18664 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18665 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18666 | #define wxUSE_LISTCTRL 1 |
18667 | EOF | |
18668 | ||
1e6feb95 | 18669 | USES_CONTROLS=1 |
10f2d63a VZ |
18670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
18671 | else | |
698dcdb6 | 18672 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18673 | fi |
18674 | fi | |
18675 | ||
18676 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 18677 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18678 | #define wxUSE_NOTEBOOK 1 |
18679 | EOF | |
18680 | ||
1e6feb95 | 18681 | USES_CONTROLS=1 |
10f2d63a VZ |
18682 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
18683 | fi | |
18684 | ||
24176f2c GD |
18685 | if test "$wxUSE_PROPSHEET" = "yes"; then |
18686 | cat >> confdefs.h <<\EOF | |
18687 | #define wxUSE_PROPSHEET 1 | |
18688 | EOF | |
18689 | ||
18690 | USES_CONTROLS=1 | |
18691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
18692 | fi | |
18693 | ||
10f2d63a | 18694 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 18695 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18696 | #define wxUSE_RADIOBOX 1 |
18697 | EOF | |
18698 | ||
1e6feb95 | 18699 | USES_CONTROLS=1 |
10f2d63a VZ |
18700 | fi |
18701 | ||
18702 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 18703 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18704 | #define wxUSE_RADIOBTN 1 |
18705 | EOF | |
18706 | ||
1e6feb95 | 18707 | USES_CONTROLS=1 |
10f2d63a VZ |
18708 | fi |
18709 | ||
18710 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 18711 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18712 | #define wxUSE_SASH 1 |
18713 | EOF | |
18714 | ||
18715 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
18716 | fi | |
18717 | ||
18718 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 18719 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18720 | #define wxUSE_SCROLLBAR 1 |
18721 | EOF | |
18722 | ||
1e6feb95 | 18723 | USES_CONTROLS=1 |
741a9306 | 18724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
18725 | fi |
18726 | ||
18727 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 18728 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18729 | #define wxUSE_SLIDER 1 |
18730 | EOF | |
18731 | ||
1e6feb95 | 18732 | USES_CONTROLS=1 |
10f2d63a VZ |
18733 | fi |
18734 | ||
18735 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 18736 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18737 | #define wxUSE_SPINBTN 1 |
18738 | EOF | |
18739 | ||
1e6feb95 | 18740 | USES_CONTROLS=1 |
10f2d63a VZ |
18741 | fi |
18742 | ||
56cfaa52 | 18743 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 18744 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
18745 | #define wxUSE_SPINCTRL 1 |
18746 | EOF | |
18747 | ||
1e6feb95 | 18748 | USES_CONTROLS=1 |
56cfaa52 RR |
18749 | fi |
18750 | ||
10f2d63a | 18751 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 18752 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18753 | #define wxUSE_SPLITTER 1 |
18754 | EOF | |
18755 | ||
18756 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
18757 | fi | |
18758 | ||
18759 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 18760 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18761 | #define wxUSE_STATBMP 1 |
18762 | EOF | |
18763 | ||
1e6feb95 | 18764 | USES_CONTROLS=1 |
10f2d63a VZ |
18765 | fi |
18766 | ||
18767 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 18768 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18769 | #define wxUSE_STATBOX 1 |
18770 | EOF | |
18771 | ||
1e6feb95 VZ |
18772 | USES_CONTROLS=1 |
18773 | fi | |
18774 | ||
18775 | if test "$wxUSE_STATTEXT" = "yes"; then | |
18776 | cat >> confdefs.h <<\EOF | |
18777 | #define wxUSE_STATTEXT 1 | |
18778 | EOF | |
18779 | ||
18780 | USES_CONTROLS=1 | |
10f2d63a VZ |
18781 | fi |
18782 | ||
18783 | if test "$wxUSE_STATLINE" = "yes"; then | |
18784 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 18785 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 18786 | else |
698dcdb6 | 18787 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18788 | #define wxUSE_STATLINE 1 |
18789 | EOF | |
18790 | ||
1e6feb95 | 18791 | USES_CONTROLS=1 |
10f2d63a VZ |
18792 | fi |
18793 | fi | |
18794 | ||
18795 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 18796 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18797 | #define wxUSE_STATUSBAR 1 |
18798 | EOF | |
18799 | ||
1e6feb95 | 18800 | USES_CONTROLS=1 |
698dcdb6 | 18801 | |
2286341c | 18802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
18803 | fi |
18804 | ||
18805 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 18806 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18807 | #define wxUSE_TAB_DIALOG 1 |
18808 | EOF | |
18809 | ||
18810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
18811 | fi | |
18812 | ||
1e6feb95 VZ |
18813 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
18814 | cat >> confdefs.h <<\EOF | |
18815 | #define wxUSE_TEXTCTRL 1 | |
18816 | EOF | |
18817 | ||
18818 | USES_CONTROLS=1 | |
18819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
18820 | fi | |
18821 | ||
1db8dc4a | 18822 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
18823 | if test "$wxUSE_MAC" = 1; then |
18824 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
18825 | wxUSE_TOGGLEBTN=no | |
18826 | fi | |
18827 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
18828 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
18829 | wxUSE_TOGGLEBTN=no |
18830 | fi | |
18831 | ||
18832 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
18833 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
18834 | #define wxUSE_TOGGLEBTN 1 |
18835 | EOF | |
18836 | ||
1e6feb95 | 18837 | USES_CONTROLS=1 |
a45d7ab7 | 18838 | fi |
1db8dc4a VZ |
18839 | fi |
18840 | ||
360d6699 | 18841 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 18842 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
18843 | #define wxUSE_TOOLBAR_SIMPLE 1 |
18844 | EOF | |
18845 | ||
18846 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 18847 | USES_CONTROLS=1 |
360d6699 VZ |
18848 | fi |
18849 | ||
10f2d63a | 18850 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 18851 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18852 | #define wxUSE_TOOLBAR 1 |
18853 | EOF | |
18854 | ||
1e6feb95 | 18855 | USES_CONTROLS=1 |
698dcdb6 | 18856 | |
360d6699 VZ |
18857 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
18858 | wxUSE_TOOLBAR_NATIVE="yes" | |
18859 | fi | |
18860 | ||
1e6feb95 VZ |
18861 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
18862 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
18863 | #define wxUSE_TOOLBAR_NATIVE 1 |
18864 | EOF | |
18865 | ||
1e6feb95 VZ |
18866 | USES_CONTROLS=1 |
18867 | fi | |
18868 | ||
18869 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
18870 | fi |
18871 | ||
10f2d63a VZ |
18872 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
18873 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 18874 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
18875 | else |
18876 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 18877 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 18878 | else |
69d27ff7 | 18879 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18880 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 MB |
18881 | else |
18882 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18883 | #define wxUSE_TOOLTIPS 1 |
18884 | EOF | |
18885 | ||
69d27ff7 | 18886 | fi |
10f2d63a VZ |
18887 | fi |
18888 | fi | |
18889 | fi | |
18890 | ||
18891 | if test "$wxUSE_TREECTRL" = "yes"; then | |
18892 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18893 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18894 | #define wxUSE_TREECTRL 1 |
18895 | EOF | |
18896 | ||
1e6feb95 | 18897 | USES_CONTROLS=1 |
10f2d63a VZ |
18898 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
18899 | else | |
698dcdb6 | 18900 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18901 | fi |
18902 | fi | |
18903 | ||
9f41d601 | 18904 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 18905 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 18906 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 18907 | else |
485cf710 VZ |
18908 | if test "$wxUSE_MOTIF" = 1; then |
18909 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
18910 | else | |
18911 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
18912 | #define wxUSE_POPUPWIN 1 |
18913 | EOF | |
18914 | ||
9926e4a4 | 18915 | |
485cf710 VZ |
18916 | USES_CONTROLS=1 |
18917 | fi | |
6abe4b65 | 18918 | fi |
9f41d601 RR |
18919 | fi |
18920 | ||
dd964dcc VZ |
18921 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
18922 | cat >> confdefs.h <<\EOF | |
18923 | #define wxUSE_TIPWINDOW 1 | |
18924 | EOF | |
18925 | ||
18926 | fi | |
18927 | ||
1e6feb95 VZ |
18928 | if test "$USES_CONTROLS" = 1; then |
18929 | cat >> confdefs.h <<\EOF | |
18930 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
18931 | EOF |
18932 | ||
10f2d63a VZ |
18933 | fi |
18934 | ||
1e6feb95 | 18935 | |
24176f2c GD |
18936 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
18937 | cat >> confdefs.h <<\EOF | |
18938 | #define wxUSE_TREELAYOUT 1 | |
18939 | EOF | |
18940 | ||
18941 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18942 | fi | |
1e6feb95 | 18943 | |
24fd6d87 VZ |
18944 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18945 | cat >> confdefs.h <<\EOF | |
18946 | #define wxUSE_DRAGIMAGE 1 | |
18947 | EOF | |
18948 | ||
18949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18950 | fi | |
18951 | ||
1e6feb95 | 18952 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18953 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18954 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18955 | EOF |
18956 | ||
1e6feb95 | 18957 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18958 | fi |
18959 | ||
1e6feb95 VZ |
18960 | if test "$wxUSE_METAFILE" = "yes"; then |
18961 | cat >> confdefs.h <<\EOF | |
18962 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18963 | EOF |
18964 | ||
10f2d63a VZ |
18965 | fi |
18966 | ||
1e6feb95 VZ |
18967 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18968 | cat >> confdefs.h <<\EOF | |
18969 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18970 | EOF |
18971 | ||
10f2d63a VZ |
18972 | fi |
18973 | ||
3e44f09d VZ |
18974 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18975 | cat >> confdefs.h <<\EOF | |
18976 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18977 | EOF | |
18978 | ||
18979 | fi | |
18980 | ||
10f2d63a | 18981 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18982 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18983 | #define wxUSE_MINIFRAME 1 |
18984 | EOF | |
18985 | ||
18986 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18987 | fi | |
18988 | ||
18989 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18990 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18991 | #define wxUSE_HTML 1 |
18992 | EOF | |
18993 | ||
18994 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18995 | fi |
18996 | ||
18997 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18998 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18999 | #define wxUSE_VALIDATORS 1 |
19000 | EOF | |
703e0a69 | 19001 | |
698dcdb6 VZ |
19002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
19003 | fi | |
19004 | ||
edae8572 VZ |
19005 | if test "$wxUSE_PALETTE" = "yes" ; then |
19006 | cat >> confdefs.h <<\EOF | |
19007 | #define wxUSE_PALETTE 1 | |
19008 | EOF | |
19009 | ||
19010 | fi | |
19011 | ||
698dcdb6 VZ |
19012 | if test "$wxUSE_IMAGE" = "yes" ; then |
19013 | cat >> confdefs.h <<\EOF | |
19014 | #define wxUSE_IMAGE 1 | |
19015 | EOF | |
19016 | ||
19017 | fi | |
19018 | ||
19019 | if test "$wxUSE_GIF" = "yes" ; then | |
19020 | cat >> confdefs.h <<\EOF | |
19021 | #define wxUSE_GIF 1 | |
19022 | EOF | |
19023 | ||
19024 | fi | |
19025 | ||
19026 | if test "$wxUSE_PCX" = "yes" ; then | |
19027 | cat >> confdefs.h <<\EOF | |
19028 | #define wxUSE_PCX 1 | |
19029 | EOF | |
19030 | ||
19031 | fi | |
19032 | ||
19033 | if test "$wxUSE_PNM" = "yes" ; then | |
19034 | cat >> confdefs.h <<\EOF | |
19035 | #define wxUSE_PNM 1 | |
19036 | EOF | |
19037 | ||
19038 | fi | |
19039 | ||
19040 | if test "$wxUSE_XPM" = "yes" ; then | |
19041 | cat >> confdefs.h <<\EOF | |
19042 | #define wxUSE_XPM 1 | |
19043 | EOF | |
19044 | ||
19045 | fi | |
19046 | ||
a72a4bfa VS |
19047 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
19048 | LIBS=" -lunicows $LIBS" | |
19049 | fi | |
19050 | ||
698dcdb6 | 19051 | |
1e6feb95 VZ |
19052 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
19053 | cat >> confdefs.h <<\EOF | |
19054 | #define wxUSE_CHOICEDLG 1 | |
19055 | EOF | |
19056 | ||
19057 | fi | |
19058 | ||
19059 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
19060 | cat >> confdefs.h <<\EOF | |
19061 | #define wxUSE_COLOURDLG 1 | |
19062 | EOF | |
19063 | ||
19064 | fi | |
19065 | ||
19066 | if test "$wxUSE_FILEDLG" = "yes"; then | |
19067 | cat >> confdefs.h <<\EOF | |
19068 | #define wxUSE_FILEDLG 1 | |
19069 | EOF | |
19070 | ||
19071 | fi | |
19072 | ||
8db37e06 VZ |
19073 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
19074 | cat >> confdefs.h <<\EOF | |
19075 | #define wxUSE_FINDREPLDLG 1 | |
19076 | EOF | |
19077 | ||
19078 | fi | |
19079 | ||
1e6feb95 VZ |
19080 | if test "$wxUSE_FONTDLG" = "yes"; then |
19081 | cat >> confdefs.h <<\EOF | |
19082 | #define wxUSE_FONTDLG 1 | |
19083 | EOF | |
19084 | ||
19085 | fi | |
19086 | ||
19087 | if test "$wxUSE_DIRDLG" = "yes"; then | |
19088 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19089 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
19090 | else | |
19091 | if test "$wxUSE_TREECTRL" != "yes"; then | |
19092 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
19093 | else | |
19094 | cat >> confdefs.h <<\EOF | |
19095 | #define wxUSE_DIRDLG 1 | |
19096 | EOF | |
19097 | ||
19098 | fi | |
19099 | fi | |
19100 | fi | |
19101 | ||
19102 | if test "$wxUSE_MSGDLG" = "yes"; then | |
19103 | cat >> confdefs.h <<\EOF | |
19104 | #define wxUSE_MSGDLG 1 | |
19105 | EOF | |
19106 | ||
19107 | fi | |
19108 | ||
19109 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
19110 | cat >> confdefs.h <<\EOF | |
19111 | #define wxUSE_NUMBERDLG 1 | |
19112 | EOF | |
19113 | ||
19114 | fi | |
19115 | ||
19116 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
19117 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19118 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
19119 | else | |
19120 | cat >> confdefs.h <<\EOF | |
19121 | #define wxUSE_PROGRESSDLG 1 | |
19122 | EOF | |
19123 | ||
19124 | fi | |
19125 | fi | |
19126 | ||
cbca9943 VZ |
19127 | if test "$wxUSE_SPLASH" = "yes"; then |
19128 | cat >> confdefs.h <<\EOF | |
19129 | #define wxUSE_SPLASH 1 | |
19130 | EOF | |
19131 | ||
19132 | fi | |
19133 | ||
1e6feb95 VZ |
19134 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
19135 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19136 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
19137 | else | |
19138 | cat >> confdefs.h <<\EOF | |
19139 | #define wxUSE_STARTUP_TIPS 1 | |
19140 | EOF | |
19141 | ||
19142 | fi | |
19143 | fi | |
19144 | ||
19145 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
19146 | cat >> confdefs.h <<\EOF | |
19147 | #define wxUSE_TEXTDLG 1 | |
19148 | EOF | |
19149 | ||
19150 | fi | |
19151 | ||
b1f5d087 VZ |
19152 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
19153 | cat >> confdefs.h <<\EOF | |
19154 | #define wxUSE_WIZARDDLG 1 | |
19155 | EOF | |
19156 | ||
19157 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
19158 | fi | |
19159 | ||
1e6feb95 | 19160 | |
698dcdb6 VZ |
19161 | if test "$cross_compiling" = "yes"; then |
19162 | OSINFO="\"$host\"" | |
19163 | else | |
19164 | OSINFO=`uname -s -r -m` | |
19165 | OSINFO="\"$OSINFO\"" | |
19166 | fi | |
19167 | ||
19168 | cat >> confdefs.h <<EOF | |
19169 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
19170 | EOF | |
19171 | ||
19172 | ||
19173 | ||
06dda230 VZ |
19174 | if test "x$prefix" != "xNONE"; then |
19175 | wxPREFIX=$prefix | |
19176 | else | |
19177 | wxPREFIX=$ac_default_prefix | |
19178 | fi | |
19179 | ||
7e67ed0d | 19180 | cat >> confdefs.h <<EOF |
06dda230 | 19181 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
19182 | EOF |
19183 | ||
19184 | ||
19185 | ||
698dcdb6 | 19186 | |
3a922bb4 | 19187 | |
f11bdd03 | 19188 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 19189 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 19190 | fi |
3a922bb4 | 19191 | |
3d63bc3a RL |
19192 | |
19193 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
19194 | ||
698dcdb6 | 19195 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
19196 | |
19197 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
19198 | |
19199 | ||
19200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
19201 | drawing dynamic erase event exec font image \ | |
19202 | minimal richedit rotate widgets" | |
19203 | ||
3a922bb4 RL |
19204 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
19205 | else | |
19206 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
19207 | fi |
19208 | ||
698dcdb6 | 19209 | |
d714471b | 19210 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
19211 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
19212 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 19213 | |
63e7762e | 19214 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 19215 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
19216 | else |
19217 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
19218 | fi | |
19219 | ||
19220 | if test "$GXX" = yes ; then | |
19221 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
19222 | |
19223 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
19224 | CFLAGS="-MMD $CFLAGS" | |
19225 | CXXFLAGS="-MMD $CXXFLAGS" | |
19226 | fi | |
19227 | fi | |
19228 | ||
1725144d | 19229 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
19230 | |
19231 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
19232 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
19233 | ||
3d63bc3a | 19234 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 19235 | |
698dcdb6 VZ |
19236 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
19237 | ||
19238 | ||
19239 | ||
19240 | ||
19241 | ||
19242 | ||
19243 | ||
19244 | ||
19245 | ||
19246 | ||
19247 | ||
19248 | ||
19249 | ||
19250 | ||
19251 | ||
19252 | ||
19253 | ||
19254 | ||
19255 | ||
19256 | ||
19257 | ||
19258 | ||
19259 | ||
19260 | ||
19261 | ||
19262 | ||
19263 | ||
19264 | ||
19265 | ||
19266 | ||
19267 | ||
19268 | ||
19269 | ||
19270 | ||
19271 | ||
19272 | ||
19273 | ||
19274 | ||
19275 | ||
19276 | ||
19277 | ||
19278 | ||
19279 | ||
19280 | ||
19281 | ||
19282 | ||
19283 | ||
19284 | ||
19285 | ||
19286 | ||
19287 | ||
19288 | ||
19289 | ||
19290 | ||
19291 | ||
19292 | ||
19293 | ||
19294 | ||
19295 | ||
19296 | ||
19297 | ||
19298 | ||
19299 | ||
19300 | ||
19301 | ||
19302 | ||
19303 | ||
32832908 | 19304 | |
2f51a9ec GD |
19305 | |
19306 | ||
19307 | ||
19308 | ||
f6bcfd97 | 19309 | |
dad6c0ea | 19310 | |
caa2c79b | 19311 | |
3711412e | 19312 | |
1e6feb95 VZ |
19313 | |
19314 | ||
885d4bf5 VS |
19315 | |
19316 | ||
19317 | ||
19318 | ||
62d0491b | 19319 | |
10f2d63a VZ |
19320 | |
19321 | ||
698dcdb6 | 19322 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
a1622950 | 19323 | echo "configure:19324: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
19324 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
19325 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
19326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19327 | else |
698dcdb6 | 19328 | cat > conftestmake <<\EOF |
10f2d63a VZ |
19329 | all: |
19330 | @echo 'ac_maketemp="${MAKE}"' | |
19331 | EOF | |
19332 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 19333 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
19334 | if test -n "$ac_maketemp"; then |
19335 | eval ac_cv_prog_make_${ac_make}_set=yes | |
19336 | else | |
19337 | eval ac_cv_prog_make_${ac_make}_set=no | |
19338 | fi | |
698dcdb6 | 19339 | rm -f conftestmake |
10f2d63a VZ |
19340 | fi |
19341 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 19342 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
19343 | SET_MAKE= |
19344 | else | |
698dcdb6 | 19345 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
19346 | SET_MAKE="MAKE=${MAKE-make}" |
19347 | fi | |
19348 | ||
698dcdb6 | 19349 | |
3a922bb4 RL |
19350 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
19351 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 19352 | fi |
665bbe97 | 19353 | |
698dcdb6 | 19354 | |
10f2d63a | 19355 | |
2224580a | 19356 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 19357 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
19358 | wx_cv_path_ifs=$PATH_IFS |
19359 | wx_cv_program_ext=$PROGRAM_EXT | |
19360 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 19361 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 19362 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 19363 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 19364 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 19365 | subdirs="demos samples utils contrib" |
2224580a VZ |
19366 | |
19367 | fi | |
10f2d63a | 19368 | |
698dcdb6 VZ |
19369 | trap '' 1 2 15 |
19370 | cat > confcache <<\EOF | |
10f2d63a VZ |
19371 | # This file is a shell script that caches the results of configure |
19372 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
19373 | # scripts and configure runs. It is not useful on other systems. |
19374 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 19375 | # |
698dcdb6 VZ |
19376 | # By default, configure uses ./config.cache as the cache file, |
19377 | # creating it if it does not exist already. You can give configure | |
19378 | # the --cache-file=FILE option to use a different cache file; that is | |
19379 | # what configure does when it calls configure scripts in | |
19380 | # subdirectories, so they share the cache. | |
19381 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
19382 | # config.status only pays attention to the cache file if you give it the | |
19383 | # --recheck option to rerun configure. | |
10f2d63a | 19384 | # |
698dcdb6 | 19385 | EOF |
10f2d63a VZ |
19386 | # The following way of writing the cache mishandles newlines in values, |
19387 | # but we know of no workaround that is simple, portable, and efficient. | |
19388 | # So, don't put newlines in cache variables' values. | |
19389 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19390 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
19391 | (set) 2>&1 | |
19392 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19393 | *ac_space=\ *) | |
19394 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
19395 | # turns \\\\ into \\, and sed turns \\ into \). | |
19396 | sed -n \ | |
19397 | -e "s/'/'\\\\''/g" \ | |
19398 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
19399 | ;; | |
19400 | *) | |
19401 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19402 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
19403 | ;; | |
19404 | esac >> confcache | |
19405 | if cmp -s $cache_file confcache; then | |
19406 | : | |
19407 | else | |
10f2d63a | 19408 | if test -w $cache_file; then |
698dcdb6 VZ |
19409 | echo "updating cache $cache_file" |
19410 | cat confcache > $cache_file | |
10f2d63a VZ |
19411 | else |
19412 | echo "not updating unwritable cache $cache_file" | |
19413 | fi | |
19414 | fi | |
19415 | rm -f confcache | |
19416 | ||
698dcdb6 VZ |
19417 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
19418 | ||
10f2d63a VZ |
19419 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19420 | # Let make expand exec_prefix. | |
19421 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19422 | ||
698dcdb6 VZ |
19423 | # Any assignment to VPATH causes Sun make to only execute |
19424 | # the first set of double-colon rules, so remove it if not needed. | |
19425 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 19426 | if test "x$srcdir" = x.; then |
698dcdb6 | 19427 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
19428 | fi |
19429 | ||
698dcdb6 VZ |
19430 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
19431 | ||
10f2d63a VZ |
19432 | DEFS=-DHAVE_CONFIG_H |
19433 | ||
698dcdb6 | 19434 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 19435 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
19436 | |
19437 | echo creating $CONFIG_STATUS | |
19438 | rm -f $CONFIG_STATUS | |
19439 | cat > $CONFIG_STATUS <<EOF | |
19440 | #! /bin/sh | |
10f2d63a VZ |
19441 | # Generated automatically by configure. |
19442 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
19443 | # This directory was configured as follows, |
19444 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19445 | # | |
19446 | # $0 $ac_configure_args | |
19447 | # | |
10f2d63a | 19448 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 19449 | # configure, is in ./config.log if it exists. |
1e487827 | 19450 | |
698dcdb6 VZ |
19451 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
19452 | for ac_option | |
10f2d63a | 19453 | do |
698dcdb6 | 19454 | case "\$ac_option" in |
10f2d63a | 19455 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
19456 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
19457 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
19458 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
19459 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
19460 | exit 0 ;; | |
19461 | -help | --help | --hel | --he | --h) | |
19462 | echo "\$ac_cs_usage"; exit 0 ;; | |
19463 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
19464 | esac |
19465 | done | |
19466 | ||
698dcdb6 VZ |
19467 | ac_given_srcdir=$srcdir |
19468 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 19469 | |
698dcdb6 VZ |
19470 | trap 'rm -fr `echo " |
19471 | wx-config | |
19472 | src/make.env | |
19473 | src/makeprog.env | |
19474 | src/makelib.env | |
19475 | Makefile | |
19476 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 19477 | EOF |
698dcdb6 | 19478 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 19479 | |
698dcdb6 VZ |
19480 | # Protect against being on the right side of a sed subst in config.status. |
19481 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
19482 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
19483 | $ac_vpsub | |
19484 | $extrasub | |
19485 | s%@SHELL@%$SHELL%g | |
19486 | s%@CFLAGS@%$CFLAGS%g | |
19487 | s%@CPPFLAGS@%$CPPFLAGS%g | |
19488 | s%@CXXFLAGS@%$CXXFLAGS%g | |
19489 | s%@FFLAGS@%$FFLAGS%g | |
19490 | s%@DEFS@%$DEFS%g | |
19491 | s%@LDFLAGS@%$LDFLAGS%g | |
19492 | s%@LIBS@%$LIBS%g | |
19493 | s%@exec_prefix@%$exec_prefix%g | |
19494 | s%@prefix@%$prefix%g | |
19495 | s%@program_transform_name@%$program_transform_name%g | |
19496 | s%@bindir@%$bindir%g | |
19497 | s%@sbindir@%$sbindir%g | |
19498 | s%@libexecdir@%$libexecdir%g | |
19499 | s%@datadir@%$datadir%g | |
19500 | s%@sysconfdir@%$sysconfdir%g | |
19501 | s%@sharedstatedir@%$sharedstatedir%g | |
19502 | s%@localstatedir@%$localstatedir%g | |
19503 | s%@libdir@%$libdir%g | |
19504 | s%@includedir@%$includedir%g | |
19505 | s%@oldincludedir@%$oldincludedir%g | |
19506 | s%@infodir@%$infodir%g | |
19507 | s%@mandir@%$mandir%g | |
19508 | s%@host@%$host%g | |
19509 | s%@host_alias@%$host_alias%g | |
19510 | s%@host_cpu@%$host_cpu%g | |
19511 | s%@host_vendor@%$host_vendor%g | |
19512 | s%@host_os@%$host_os%g | |
19513 | s%@target@%$target%g | |
19514 | s%@target_alias@%$target_alias%g | |
19515 | s%@target_cpu@%$target_cpu%g | |
19516 | s%@target_vendor@%$target_vendor%g | |
19517 | s%@target_os@%$target_os%g | |
19518 | s%@build@%$build%g | |
19519 | s%@build_alias@%$build_alias%g | |
19520 | s%@build_cpu@%$build_cpu%g | |
19521 | s%@build_vendor@%$build_vendor%g | |
19522 | s%@build_os@%$build_os%g | |
19523 | s%@CC@%$CC%g | |
19524 | s%@CPP@%$CPP%g | |
19525 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
19526 | s%@RANLIB@%$RANLIB%g |
19527 | s%@AR@%$AR%g | |
19528 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 19529 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 19530 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 VZ |
19531 | s%@STRIP@%$STRIP%g |
19532 | s%@YACC@%$YACC%g | |
19533 | s%@LEX@%$LEX%g | |
19534 | s%@LEXLIB@%$LEXLIB%g | |
19535 | s%@LN_S@%$LN_S%g | |
19536 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
19537 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
19538 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 19539 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
19540 | s%@X_CFLAGS@%$X_CFLAGS%g |
19541 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
19542 | s%@X_LIBS@%$X_LIBS%g | |
19543 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 19544 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 19545 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 19546 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
19547 | s%@LEX_STEM@%$LEX_STEM%g |
19548 | s%@PATH_IFS@%$PATH_IFS%g | |
19549 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
19550 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
19551 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
19552 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
19553 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 19554 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
19555 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
19556 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
19557 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 19558 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
19559 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
19560 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
19561 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
19562 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
19563 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
19564 | s%@WX_ALL@%$WX_ALL%g |
19565 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
19566 | s%@SHARED_LD@%$SHARED_LD%g | |
19567 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
19568 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
19569 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
19570 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
19571 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
19572 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
19573 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
19574 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
19575 | s%@USE_GUI@%$USE_GUI%g | |
19576 | s%@AFMINSTALL@%$AFMINSTALL%g | |
19577 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 19578 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 19579 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
19580 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
19581 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 19582 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
19583 | s%@cross_compiling@%$cross_compiling%g |
19584 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
19585 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
19586 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
19587 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
19588 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
19589 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
19590 | s%@GUIDIST@%$GUIDIST%g |
19591 | s%@PORT_FILES@%$PORT_FILES%g | |
19592 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 19593 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 19594 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 19595 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 19596 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 19597 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 19598 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 19599 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 19600 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 19601 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
19602 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
19603 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 19604 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
19605 | s%@DLLTOOL@%$DLLTOOL%g |
19606 | s%@AS@%$AS%g | |
19607 | s%@NM@%$NM%g | |
19608 | s%@LD@%$LD%g | |
19609 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 19610 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
19611 | s%@SET_MAKE@%$SET_MAKE%g |
19612 | s%@subdirs@%$subdirs%g | |
1e487827 | 19613 | |
1e487827 | 19614 | CEOF |
1e487827 VS |
19615 | EOF |
19616 | ||
698dcdb6 VZ |
19617 | cat >> $CONFIG_STATUS <<\EOF |
19618 | ||
19619 | # Split the substitutions into bite-sized pieces for seds with | |
19620 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
19621 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
19622 | ac_file=1 # Number of current file. | |
19623 | ac_beg=1 # First line for current file. | |
19624 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
19625 | ac_more_lines=: | |
19626 | ac_sed_cmds="" | |
19627 | while $ac_more_lines; do | |
19628 | if test $ac_beg -gt 1; then | |
19629 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
19630 | else | |
19631 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
19632 | fi | |
19633 | if test ! -s conftest.s$ac_file; then | |
19634 | ac_more_lines=false | |
19635 | rm -f conftest.s$ac_file | |
19636 | else | |
19637 | if test -z "$ac_sed_cmds"; then | |
19638 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 19639 | else |
698dcdb6 | 19640 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 19641 | fi |
698dcdb6 VZ |
19642 | ac_file=`expr $ac_file + 1` |
19643 | ac_beg=$ac_end | |
19644 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 19645 | fi |
698dcdb6 VZ |
19646 | done |
19647 | if test -z "$ac_sed_cmds"; then | |
19648 | ac_sed_cmds=cat | |
19649 | fi | |
19650 | EOF | |
10f2d63a | 19651 | |
698dcdb6 VZ |
19652 | cat >> $CONFIG_STATUS <<EOF |
19653 | ||
19654 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
19655 | src/make.env | |
19656 | src/makeprog.env | |
19657 | src/makelib.env | |
19658 | Makefile | |
19659 | "} | |
10f2d63a | 19660 | EOF |
698dcdb6 VZ |
19661 | cat >> $CONFIG_STATUS <<\EOF |
19662 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 19663 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
19664 | case "$ac_file" in |
19665 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
19666 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19667 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
19668 | esac |
19669 | ||
698dcdb6 | 19670 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 19671 | |
698dcdb6 VZ |
19672 | # Remove last slash and all that follows it. Not all systems have dirname. |
19673 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
19674 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
19675 | # The file is in a subdirectory. | |
19676 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
19677 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 19678 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 19679 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
19680 | else |
19681 | ac_dir_suffix= ac_dots= | |
19682 | fi | |
19683 | ||
698dcdb6 VZ |
19684 | case "$ac_given_srcdir" in |
19685 | .) srcdir=. | |
19686 | if test -z "$ac_dots"; then top_srcdir=. | |
19687 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
19688 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 19689 | *) # Relative path. |
698dcdb6 VZ |
19690 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
19691 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
19692 | esac |
19693 | ||
698dcdb6 VZ |
19694 | case "$ac_given_INSTALL" in |
19695 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19696 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
19697 | esac |
19698 | ||
698dcdb6 VZ |
19699 | echo creating "$ac_file" |
19700 | rm -f "$ac_file" | |
19701 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
19702 | case "$ac_file" in | |
19703 | *Makefile*) ac_comsub="1i\\ | |
19704 | # $configure_input" ;; | |
19705 | *) ac_comsub= ;; | |
19706 | esac | |
10f2d63a | 19707 | |
698dcdb6 VZ |
19708 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
19709 | sed -e "$ac_comsub | |
19710 | s%@configure_input@%$configure_input%g | |
19711 | s%@srcdir@%$srcdir%g | |
19712 | s%@top_srcdir@%$top_srcdir%g | |
19713 | s%@INSTALL@%$INSTALL%g | |
19714 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
19715 | fi; done | |
19716 | rm -f conftest.s* | |
10f2d63a VZ |
19717 | |
19718 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
19719 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
19720 | # | |
19721 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
19722 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
19723 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
19724 | ac_dC='\3' | |
19725 | ac_dD='%g' | |
19726 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
19727 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19728 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 19729 | ac_uC=' ' |
698dcdb6 VZ |
19730 | ac_uD='\4%g' |
19731 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
19732 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19733 | ac_eB='$%\1#\2define\3' | |
19734 | ac_eC=' ' | |
19735 | ac_eD='%g' | |
10f2d63a | 19736 | |
698dcdb6 VZ |
19737 | if test "${CONFIG_HEADERS+set}" != set; then |
19738 | EOF | |
19739 | cat >> $CONFIG_STATUS <<EOF | |
19740 | CONFIG_HEADERS="setup.h:setup.h.in" | |
19741 | EOF | |
19742 | cat >> $CONFIG_STATUS <<\EOF | |
19743 | fi | |
19744 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 19745 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
19746 | case "$ac_file" in |
19747 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
19748 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19749 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
19750 | esac |
19751 | ||
698dcdb6 VZ |
19752 | echo creating $ac_file |
19753 | ||
19754 | rm -f conftest.frag conftest.in conftest.out | |
19755 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
19756 | cat $ac_file_inputs > conftest.in | |
19757 | ||
19758 | EOF | |
19759 | ||
19760 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
19761 | # the proper values into config.h.in to produce config.h. And first: | |
19762 | # Protect against being on the right side of a sed subst in config.status. | |
19763 | # Protect against being in an unquoted here document in config.status. | |
19764 | rm -f conftest.vals | |
19765 | cat > conftest.hdr <<\EOF | |
19766 | s/[\\&%]/\\&/g | |
19767 | s%[\\$`]%\\&%g | |
19768 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
19769 | s%ac_d%ac_u%gp | |
19770 | s%ac_u%ac_e%gp | |
19771 | EOF | |
19772 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
19773 | rm -f conftest.hdr | |
10f2d63a VZ |
19774 | |
19775 | # This sed command replaces #undef with comments. This is necessary, for | |
19776 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
19777 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
19778 | cat >> conftest.vals <<\EOF |
19779 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
19780 | EOF |
19781 | ||
698dcdb6 VZ |
19782 | # Break up conftest.vals because some shells have a limit on |
19783 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
19784 | |
19785 | rm -f conftest.tail | |
698dcdb6 | 19786 | while : |
10f2d63a | 19787 | do |
698dcdb6 VZ |
19788 | ac_lines=`grep -c . conftest.vals` |
19789 | # grep -c gives empty output for an empty file on some AIX systems. | |
19790 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
19791 | # Write a limited-size here document to conftest.frag. | |
19792 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
19793 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 19794 | echo 'CEOF |
698dcdb6 VZ |
19795 | sed -f conftest.frag conftest.in > conftest.out |
19796 | rm -f conftest.in | |
19797 | mv conftest.out conftest.in | |
19798 | ' >> $CONFIG_STATUS | |
19799 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
19800 | rm -f conftest.vals | |
19801 | mv conftest.tail conftest.vals | |
10f2d63a | 19802 | done |
698dcdb6 VZ |
19803 | rm -f conftest.vals |
19804 | ||
19805 | cat >> $CONFIG_STATUS <<\EOF | |
19806 | rm -f conftest.frag conftest.h | |
19807 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
19808 | cat conftest.in >> conftest.h | |
19809 | rm -f conftest.in | |
19810 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
19811 | echo "$ac_file is unchanged" | |
19812 | rm -f conftest.h | |
10f2d63a | 19813 | else |
698dcdb6 VZ |
19814 | # Remove last slash and all that follows it. Not all systems have dirname. |
19815 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 19816 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
19817 | # The file is in a subdirectory. |
19818 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 19819 | fi |
698dcdb6 VZ |
19820 | rm -f $ac_file |
19821 | mv conftest.h $ac_file | |
10f2d63a | 19822 | fi |
698dcdb6 VZ |
19823 | fi; done |
19824 | ||
10f2d63a | 19825 | EOF |
698dcdb6 | 19826 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 19827 | |
3a922bb4 | 19828 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
19829 | LN_S="${LN_S}" |
19830 | ||
19831 | ||
19832 | EOF | |
19833 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 19834 | |
652d930d | 19835 | if test ! -h wx-config; then |
991a5759 | 19836 | chmod +x wx-config |
3a922bb4 RL |
19837 | mv wx-config wx${TOOLCHAIN_NAME}-config |
19838 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 19839 | fi |
665bbe97 | 19840 | |
00cf1208 RR |
19841 | if test ! -d lib; then |
19842 | mkdir lib | |
19843 | fi | |
19844 | if test ! -d lib/wx; then | |
19845 | mkdir lib/wx | |
19846 | fi | |
19847 | if test ! -d lib/wx/include; then | |
19848 | mkdir lib/wx/include | |
19849 | fi | |
3a922bb4 RL |
19850 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
19851 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 19852 | fi |
3a922bb4 RL |
19853 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
19854 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
19855 | fi |
19856 | if test -f setup.h; then | |
3a922bb4 | 19857 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 19858 | fi |
698dcdb6 VZ |
19859 | |
19860 | exit 0 | |
10f2d63a VZ |
19861 | EOF |
19862 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
19863 | rm -fr confdefs* $ac_clean_files |
19864 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 19865 | |
2224580a VZ |
19866 | if test "$no_recursion" != yes; then |
19867 | ||
19868 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
19869 | ac_sub_configure_args= | |
19870 | ac_prev= | |
19871 | for ac_arg in $ac_configure_args; do | |
19872 | if test -n "$ac_prev"; then | |
19873 | ac_prev= | |
19874 | continue | |
19875 | fi | |
698dcdb6 | 19876 | case "$ac_arg" in |
2224580a VZ |
19877 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
19878 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
19879 | ac_prev=cache_file ;; | |
19880 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 19881 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
19882 | ;; |
19883 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
19884 | ac_prev=srcdir ;; | |
19885 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
19886 | ;; | |
19887 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
19888 | esac | |
19889 | done | |
19890 | ||
698dcdb6 | 19891 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
19892 | |
19893 | # Do not complain, so a configure script can configure whichever | |
19894 | # parts of a large source tree are present. | |
698dcdb6 VZ |
19895 | if test ! -d $srcdir/$ac_config_dir; then |
19896 | continue | |
19897 | fi | |
19898 | ||
19899 | echo configuring in $ac_config_dir | |
2224580a | 19900 | |
698dcdb6 | 19901 | case "$srcdir" in |
2224580a VZ |
19902 | .) ;; |
19903 | *) | |
698dcdb6 VZ |
19904 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
19905 | else | |
19906 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
19907 | fi | |
19908 | ;; | |
2224580a VZ |
19909 | esac |
19910 | ||
19911 | ac_popdir=`pwd` | |
698dcdb6 | 19912 | cd $ac_config_dir |
2224580a | 19913 | |
698dcdb6 VZ |
19914 | # A "../" for each directory in /$ac_config_dir. |
19915 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 19916 | |
698dcdb6 | 19917 | case "$srcdir" in |
2224580a VZ |
19918 | .) # No --srcdir option. We are building in place. |
19919 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
19920 | /*) # Absolute path. |
19921 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 19922 | *) # Relative path. |
698dcdb6 | 19923 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
19924 | esac |
19925 | ||
19926 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
19927 | if test -f $ac_sub_srcdir/configure; then |
19928 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
19929 | elif test -f $ac_sub_srcdir/configure.in; then |
19930 | ac_sub_configure=$ac_configure | |
19931 | else | |
698dcdb6 | 19932 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
19933 | ac_sub_configure= |
19934 | fi | |
19935 | ||
19936 | # The recursion is here. | |
19937 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 19938 | |
2224580a | 19939 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
19940 | case "$cache_file" in |
19941 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 19942 | *) # Relative path. |
698dcdb6 | 19943 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 19944 | esac |
698dcdb6 VZ |
19945 | case "$ac_given_INSTALL" in |
19946 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19947 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19948 | esac | |
2224580a | 19949 | |
698dcdb6 | 19950 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 19951 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
19952 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
19953 | then : | |
19954 | else | |
19955 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19956 | fi | |
2224580a VZ |
19957 | fi |
19958 | ||
19959 | cd $ac_popdir | |
19960 | done | |
19961 | fi | |
19962 | ||
698dcdb6 | 19963 |