]>
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" |
698dcdb6 | 133 | ac_help="$ac_help |
8168de4c | 134 | --enable-sockets use socket/network classes" |
698dcdb6 | 135 | ac_help="$ac_help |
8168de4c | 136 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 137 | ac_help="$ac_help |
8168de4c | 138 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 139 | ac_help="$ac_help |
8168de4c | 140 | --enable-datetime use wxDateTime class" |
1e6feb95 | 141 | ac_help="$ac_help |
8168de4c | 142 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 143 | ac_help="$ac_help |
8168de4c | 144 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 145 | ac_help="$ac_help |
8168de4c | 146 | --enable-dialupman use dialup network classes" |
698dcdb6 | 147 | ac_help="$ac_help |
8168de4c | 148 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 149 | ac_help="$ac_help |
8168de4c | 150 | --enable-timer use wxTimer class" |
698dcdb6 | 151 | ac_help="$ac_help |
8168de4c | 152 | --enable-wave use wxWave class" |
698dcdb6 | 153 | ac_help="$ac_help |
8168de4c | 154 | --enable-fraction use wxFraction class" |
698dcdb6 | 155 | ac_help="$ac_help |
8168de4c | 156 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
157 | ac_help="$ac_help |
158 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 159 | ac_help="$ac_help |
8168de4c | 160 | --enable-longlong use wxLongLong class" |
698dcdb6 | 161 | ac_help="$ac_help |
8168de4c | 162 | --enable-geometry use geometry class" |
698dcdb6 | 163 | ac_help="$ac_help |
8168de4c | 164 | --enable-log use logging system" |
698dcdb6 | 165 | ac_help="$ac_help |
8168de4c | 166 | --enable-streams use wxStream etc classes" |
698dcdb6 | 167 | ac_help="$ac_help |
8168de4c | 168 | --enable-file use wxFile classes" |
698dcdb6 | 169 | ac_help="$ac_help |
8168de4c | 170 | --enable-ffile use wxFFile classes" |
1e6feb95 | 171 | ac_help="$ac_help |
a3a584a7 VZ |
172 | --enable-textbuf use wxTextBuffer class" |
173 | ac_help="$ac_help | |
174 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 175 | ac_help="$ac_help |
8168de4c | 176 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 177 | ac_help="$ac_help |
8168de4c | 178 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
179 | ac_help="$ac_help |
180 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 181 | ac_help="$ac_help |
8168de4c | 182 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 183 | ac_help="$ac_help |
8168de4c | 184 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 185 | ac_help="$ac_help |
8168de4c | 186 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 187 | ac_help="$ac_help |
8168de4c | 188 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 189 | ac_help="$ac_help |
8168de4c | 190 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 191 | ac_help="$ac_help |
8168de4c | 192 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 193 | ac_help="$ac_help |
8168de4c | 194 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 195 | ac_help="$ac_help |
8168de4c | 196 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 197 | ac_help="$ac_help |
69d27ff7 | 198 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 199 | ac_help="$ac_help |
b3e8d00a | 200 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 201 | ac_help="$ac_help |
8168de4c | 202 | --enable-threads use threads" |
698dcdb6 | 203 | ac_help="$ac_help |
8168de4c | 204 | --enable-docview use document view architecture" |
698dcdb6 | 205 | ac_help="$ac_help |
3379ed37 | 206 | --enable-help use help subsystem" |
29fd3c0c VS |
207 | ac_help="$ac_help |
208 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
209 | ac_help="$ac_help |
210 | --enable-html use wxHTML sub-library" | |
211 | ac_help="$ac_help | |
212 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 213 | ac_help="$ac_help |
8168de4c | 214 | --enable-constraints use layout-constraints system" |
698dcdb6 | 215 | ac_help="$ac_help |
8168de4c | 216 | --enable-printarch use printing architecture" |
698dcdb6 | 217 | ac_help="$ac_help |
8168de4c | 218 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 219 | ac_help="$ac_help |
8168de4c | 220 | --enable-loggui use standard GUI logger" |
1e6feb95 | 221 | ac_help="$ac_help |
8168de4c | 222 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
223 | ac_help="$ac_help |
224 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 225 | ac_help="$ac_help |
8168de4c | 226 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 227 | ac_help="$ac_help |
8168de4c | 228 | --enable-prologio use Prolog IO library" |
698dcdb6 | 229 | ac_help="$ac_help |
8168de4c | 230 | --enable-resources use wxWindows resources" |
698dcdb6 | 231 | ac_help="$ac_help |
8168de4c | 232 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 233 | ac_help="$ac_help |
8168de4c | 234 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 235 | ac_help="$ac_help |
8168de4c | 236 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 237 | ac_help="$ac_help |
8168de4c | 238 | --enable-metafile use win32 metafiles" |
698dcdb6 | 239 | ac_help="$ac_help |
24176f2c | 240 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 241 | ac_help="$ac_help |
8168de4c | 242 | --enable-controls use all usual controls" |
698dcdb6 | 243 | ac_help="$ac_help |
8168de4c | 244 | --enable-accel use accelerators" |
698dcdb6 | 245 | ac_help="$ac_help |
8168de4c | 246 | --enable-button use wxButton class" |
698dcdb6 | 247 | ac_help="$ac_help |
8168de4c | 248 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 249 | ac_help="$ac_help |
8168de4c | 250 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 251 | ac_help="$ac_help |
8168de4c | 252 | --enable-caret use wxCaret class" |
1e6feb95 | 253 | ac_help="$ac_help |
8168de4c | 254 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 255 | ac_help="$ac_help |
8168de4c | 256 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 257 | ac_help="$ac_help |
8168de4c | 258 | --enable-choice use wxChoice class" |
698dcdb6 | 259 | ac_help="$ac_help |
8168de4c | 260 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 261 | ac_help="$ac_help |
8168de4c | 262 | --enable-gauge use wxGauge class" |
698dcdb6 | 263 | ac_help="$ac_help |
8168de4c | 264 | --enable-grid use wxGrid class" |
698dcdb6 | 265 | ac_help="$ac_help |
8168de4c | 266 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 267 | ac_help="$ac_help |
8168de4c | 268 | --enable-imaglist use wxImageList class" |
698dcdb6 | 269 | ac_help="$ac_help |
8168de4c | 270 | --enable-listbox use wxListBox class" |
698dcdb6 | 271 | ac_help="$ac_help |
8168de4c | 272 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 273 | ac_help="$ac_help |
8168de4c | 274 | --enable-notebook use wxNotebook class" |
24176f2c GD |
275 | ac_help="$ac_help |
276 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 277 | ac_help="$ac_help |
8168de4c | 278 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 279 | ac_help="$ac_help |
8168de4c | 280 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 281 | ac_help="$ac_help |
8168de4c | 282 | --enable-sash use wxSashWindow class" |
698dcdb6 | 283 | ac_help="$ac_help |
8168de4c | 284 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 285 | ac_help="$ac_help |
8168de4c | 286 | --enable-slider use wxSlider class" |
698dcdb6 | 287 | ac_help="$ac_help |
8168de4c | 288 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 289 | ac_help="$ac_help |
8168de4c | 290 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 291 | ac_help="$ac_help |
8168de4c | 292 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 293 | ac_help="$ac_help |
8168de4c | 294 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 295 | ac_help="$ac_help |
8168de4c | 296 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 297 | ac_help="$ac_help |
8168de4c | 298 | --enable-statline use wxStaticLine class" |
698dcdb6 | 299 | ac_help="$ac_help |
8168de4c | 300 | --enable-stattext use wxStaticText class" |
1e6feb95 | 301 | ac_help="$ac_help |
8168de4c | 302 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 303 | ac_help="$ac_help |
8168de4c | 304 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 305 | ac_help="$ac_help |
8168de4c | 306 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 307 | ac_help="$ac_help |
8168de4c | 308 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 309 | ac_help="$ac_help |
8168de4c | 310 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 311 | ac_help="$ac_help |
8168de4c | 312 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 313 | ac_help="$ac_help |
8168de4c | 314 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 315 | ac_help="$ac_help |
8168de4c | 316 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
317 | ac_help="$ac_help |
318 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
319 | ac_help="$ac_help |
320 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 321 | ac_help="$ac_help |
b3e8d00a | 322 | --enable-commondlg use all common dialogs" |
698dcdb6 | 323 | ac_help="$ac_help |
8168de4c | 324 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 325 | ac_help="$ac_help |
8168de4c | 326 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 327 | ac_help="$ac_help |
8168de4c | 328 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
329 | ac_help="$ac_help |
330 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 331 | ac_help="$ac_help |
8168de4c | 332 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 333 | ac_help="$ac_help |
8168de4c | 334 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 335 | ac_help="$ac_help |
8168de4c | 336 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 337 | ac_help="$ac_help |
8168de4c | 338 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
339 | ac_help="$ac_help |
340 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 341 | ac_help="$ac_help |
8168de4c | 342 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 343 | ac_help="$ac_help |
8168de4c | 344 | --enable-tipdlg use startup tips" |
698dcdb6 | 345 | ac_help="$ac_help |
8168de4c | 346 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
347 | ac_help="$ac_help |
348 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 349 | ac_help="$ac_help |
8168de4c | 350 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 351 | ac_help="$ac_help |
8168de4c | 352 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 353 | ac_help="$ac_help |
8168de4c | 354 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 355 | ac_help="$ac_help |
8168de4c | 356 | --enable-splines use spline drawing code" |
698dcdb6 | 357 | ac_help="$ac_help |
8168de4c | 358 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 359 | ac_help="$ac_help |
8168de4c | 360 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 361 | ac_help="$ac_help |
b3e8d00a | 362 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 363 | ac_help="$ac_help |
8168de4c | 364 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
365 | ac_help="$ac_help |
366 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
367 | ac_help="$ac_help |
368 | --enable-palette use wxPalette class" | |
1e6feb95 | 369 | ac_help="$ac_help |
8168de4c | 370 | --enable-image use wxImage class" |
698dcdb6 | 371 | ac_help="$ac_help |
8168de4c | 372 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 373 | ac_help="$ac_help |
8168de4c | 374 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 375 | ac_help="$ac_help |
8168de4c | 376 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 377 | ac_help="$ac_help |
8168de4c | 378 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
379 | ac_help="$ac_help |
380 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
381 | ac_help="$ac_help | |
382 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
383 | ac_help="$ac_help | |
384 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
385 | ac_help="$ac_help |
386 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
387 | ac_help="$ac_help | |
388 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
389 | ac_help="$ac_help | |
390 | --disable-gtktest Do not try to compile and run a test GTK program" | |
391 | ac_help="$ac_help | |
392 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
393 | ac_help="$ac_help | |
394 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
395 | ac_help="$ac_help | |
396 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
397 | ac_help="$ac_help |
398 | --with-x use the X Window System" | |
10f2d63a VZ |
399 | |
400 | # Initialize some variables set by options. | |
401 | # The variables have the same names as the options, with | |
402 | # dashes changed to underlines. | |
698dcdb6 VZ |
403 | build=NONE |
404 | cache_file=./config.cache | |
10f2d63a | 405 | exec_prefix=NONE |
698dcdb6 | 406 | host=NONE |
10f2d63a | 407 | no_create= |
698dcdb6 | 408 | nonopt=NONE |
10f2d63a VZ |
409 | no_recursion= |
410 | prefix=NONE | |
411 | program_prefix=NONE | |
412 | program_suffix=NONE | |
413 | program_transform_name=s,x,x, | |
414 | silent= | |
415 | site= | |
416 | srcdir= | |
698dcdb6 | 417 | target=NONE |
10f2d63a VZ |
418 | verbose= |
419 | x_includes=NONE | |
420 | x_libraries=NONE | |
421 | bindir='${exec_prefix}/bin' | |
422 | sbindir='${exec_prefix}/sbin' | |
423 | libexecdir='${exec_prefix}/libexec' | |
424 | datadir='${prefix}/share' | |
425 | sysconfdir='${prefix}/etc' | |
426 | sharedstatedir='${prefix}/com' | |
427 | localstatedir='${prefix}/var' | |
428 | libdir='${exec_prefix}/lib' | |
429 | includedir='${prefix}/include' | |
430 | oldincludedir='/usr/include' | |
431 | infodir='${prefix}/info' | |
432 | mandir='${prefix}/man' | |
433 | ||
698dcdb6 VZ |
434 | # Initialize some other variables. |
435 | subdirs= | |
436 | MFLAGS= MAKEFLAGS= | |
437 | SHELL=${CONFIG_SHELL-/bin/sh} | |
438 | # Maximum number of lines to put in a shell here document. | |
439 | ac_max_here_lines=12 | |
10f2d63a VZ |
440 | |
441 | ac_prev= | |
442 | for ac_option | |
443 | do | |
698dcdb6 | 444 | |
10f2d63a VZ |
445 | # If the previous option needs an argument, assign it. |
446 | if test -n "$ac_prev"; then | |
447 | eval "$ac_prev=\$ac_option" | |
448 | ac_prev= | |
449 | continue | |
450 | fi | |
451 | ||
698dcdb6 VZ |
452 | case "$ac_option" in |
453 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
454 | *) ac_optarg= ;; | |
455 | esac | |
10f2d63a VZ |
456 | |
457 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
458 | ||
698dcdb6 | 459 | case "$ac_option" in |
10f2d63a VZ |
460 | |
461 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
462 | ac_prev=bindir ;; | |
463 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 464 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
465 | |
466 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 467 | ac_prev=build ;; |
10f2d63a | 468 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 469 | build="$ac_optarg" ;; |
10f2d63a VZ |
470 | |
471 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
472 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
473 | ac_prev=cache_file ;; | |
474 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
475 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 476 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
477 | |
478 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
479 | ac_prev=datadir ;; | |
480 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
481 | | --da=*) | |
698dcdb6 | 482 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
483 | |
484 | -disable-* | --disable-*) | |
698dcdb6 | 485 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 486 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
487 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
488 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
489 | fi | |
490 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
491 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
492 | |
493 | -enable-* | --enable-*) | |
698dcdb6 | 494 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 495 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
496 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
497 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
498 | fi | |
499 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
500 | case "$ac_option" in | |
501 | *=*) ;; | |
10f2d63a VZ |
502 | *) ac_optarg=yes ;; |
503 | esac | |
698dcdb6 | 504 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
505 | |
506 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
507 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
508 | | --exec | --exe | --ex) | |
509 | ac_prev=exec_prefix ;; | |
510 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
511 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
512 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 513 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -gas | --gas | --ga | --g) | |
516 | # Obsolete; use --with-gas. | |
517 | with_gas=yes ;; | |
518 | ||
698dcdb6 VZ |
519 | -help | --help | --hel | --he) |
520 | # Omit some internal or obsolete options to make the list less imposing. | |
521 | # This message is too long to be a string in the A/UX 3.1 sh. | |
522 | cat << EOF | |
523 | Usage: configure [options] [host] | |
524 | Options: [defaults in brackets after descriptions] | |
525 | Configuration: | |
526 | --cache-file=FILE cache test results in FILE | |
527 | --help print this message | |
528 | --no-create do not create output files | |
529 | --quiet, --silent do not print \`checking...' messages | |
530 | --version print the version of autoconf that created configure | |
531 | Directory and file names: | |
532 | --prefix=PREFIX install architecture-independent files in PREFIX | |
533 | [$ac_default_prefix] | |
534 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
535 | [same as prefix] | |
536 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
537 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
538 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
539 | --datadir=DIR read-only architecture-independent data in DIR | |
540 | [PREFIX/share] | |
541 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
542 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
543 | [PREFIX/com] | |
544 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
545 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
546 | --includedir=DIR C header files in DIR [PREFIX/include] | |
547 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
548 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
549 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
550 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
551 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
552 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
553 | --program-transform-name=PROGRAM | |
554 | run sed PROGRAM on installed program names | |
555 | EOF | |
556 | cat << EOF | |
557 | Host type: | |
558 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
559 | --host=HOST configure for HOST [guessed] | |
560 | --target=TARGET configure for TARGET [TARGET=HOST] | |
561 | Features and packages: | |
562 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
563 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
564 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
565 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
566 | --x-includes=DIR X include files are in DIR | |
567 | --x-libraries=DIR X library files are in DIR | |
568 | EOF | |
569 | if test -n "$ac_help"; then | |
570 | echo "--enable and --with options recognized:$ac_help" | |
571 | fi | |
572 | exit 0 ;; | |
10f2d63a VZ |
573 | |
574 | -host | --host | --hos | --ho) | |
698dcdb6 | 575 | ac_prev=host ;; |
10f2d63a | 576 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 577 | host="$ac_optarg" ;; |
10f2d63a VZ |
578 | |
579 | -includedir | --includedir | --includedi | --included | --include \ | |
580 | | --includ | --inclu | --incl | --inc) | |
581 | ac_prev=includedir ;; | |
582 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
583 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 584 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
585 | |
586 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
587 | ac_prev=infodir ;; | |
588 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 589 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
590 | |
591 | -libdir | --libdir | --libdi | --libd) | |
592 | ac_prev=libdir ;; | |
593 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 594 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
595 | |
596 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
597 | | --libexe | --libex | --libe) | |
598 | ac_prev=libexecdir ;; | |
599 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
600 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 601 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
602 | |
603 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
604 | | --localstate | --localstat | --localsta | --localst \ | |
605 | | --locals | --local | --loca | --loc | --lo) | |
606 | ac_prev=localstatedir ;; | |
607 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
608 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
609 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 610 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
611 | |
612 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
613 | ac_prev=mandir ;; | |
614 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 615 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
616 | |
617 | -nfp | --nfp | --nf) | |
618 | # Obsolete; use --without-fp. | |
619 | with_fp=no ;; | |
620 | ||
621 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
622 | | --no-cr | --no-c) | |
623 | no_create=yes ;; | |
624 | ||
625 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
626 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
627 | no_recursion=yes ;; | |
628 | ||
629 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
630 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
631 | | --oldin | --oldi | --old | --ol | --o) | |
632 | ac_prev=oldincludedir ;; | |
633 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
634 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
635 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 636 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
637 | |
638 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
639 | ac_prev=prefix ;; | |
640 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 641 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
642 | |
643 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
644 | | --program-pre | --program-pr | --program-p) | |
645 | ac_prev=program_prefix ;; | |
646 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
647 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 648 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
649 | |
650 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
651 | | --program-suf | --program-su | --program-s) | |
652 | ac_prev=program_suffix ;; | |
653 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
654 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 655 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
656 | |
657 | -program-transform-name | --program-transform-name \ | |
658 | | --program-transform-nam | --program-transform-na \ | |
659 | | --program-transform-n | --program-transform- \ | |
660 | | --program-transform | --program-transfor \ | |
661 | | --program-transfo | --program-transf \ | |
662 | | --program-trans | --program-tran \ | |
663 | | --progr-tra | --program-tr | --program-t) | |
664 | ac_prev=program_transform_name ;; | |
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=*) | |
698dcdb6 | 672 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
673 | |
674 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
675 | | -silent | --silent | --silen | --sile | --sil) | |
676 | silent=yes ;; | |
677 | ||
678 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
679 | ac_prev=sbindir ;; | |
680 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
681 | | --sbi=* | --sb=*) | |
698dcdb6 | 682 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
685 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
686 | | --sharedst | --shareds | --shared | --share | --shar \ | |
687 | | --sha | --sh) | |
688 | ac_prev=sharedstatedir ;; | |
689 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
690 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
691 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
692 | | --sha=* | --sh=*) | |
698dcdb6 | 693 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
694 | |
695 | -site | --site | --sit) | |
696 | ac_prev=site ;; | |
697 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 698 | site="$ac_optarg" ;; |
10f2d63a VZ |
699 | |
700 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
701 | ac_prev=srcdir ;; | |
702 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 703 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
704 | |
705 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
706 | | --syscon | --sysco | --sysc | --sys | --sy) | |
707 | ac_prev=sysconfdir ;; | |
708 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
709 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 710 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
711 | |
712 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 713 | ac_prev=target ;; |
10f2d63a | 714 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 715 | target="$ac_optarg" ;; |
10f2d63a VZ |
716 | |
717 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
718 | verbose=yes ;; | |
719 | ||
698dcdb6 VZ |
720 | -version | --version | --versio | --versi | --vers) |
721 | echo "configure generated by autoconf version 2.13" | |
722 | exit 0 ;; | |
10f2d63a VZ |
723 | |
724 | -with-* | --with-*) | |
698dcdb6 | 725 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 726 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
727 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
728 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
729 | fi | |
10f2d63a | 730 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
731 | case "$ac_option" in |
732 | *=*) ;; | |
10f2d63a VZ |
733 | *) ac_optarg=yes ;; |
734 | esac | |
698dcdb6 | 735 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
736 | |
737 | -without-* | --without-*) | |
698dcdb6 | 738 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 739 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
740 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
741 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
742 | fi | |
743 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
744 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
745 | |
746 | --x) | |
747 | # Obsolete; use --with-x. | |
748 | with_x=yes ;; | |
749 | ||
750 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
751 | | --x-incl | --x-inc | --x-in | --x-i) | |
752 | ac_prev=x_includes ;; | |
753 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
754 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 755 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
756 | |
757 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
758 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
759 | ac_prev=x_libraries ;; | |
760 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
761 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 762 | x_libraries="$ac_optarg" ;; |
10f2d63a | 763 | |
698dcdb6 | 764 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
765 | ;; |
766 | ||
767 | *) | |
698dcdb6 VZ |
768 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
769 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
770 | fi | |
771 | if test "x$nonopt" != xNONE; then | |
772 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
773 | fi | |
774 | nonopt="$ac_option" | |
10f2d63a VZ |
775 | ;; |
776 | ||
777 | esac | |
778 | done | |
779 | ||
780 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
781 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
782 | fi | |
783 | ||
784 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
785 | ||
786 | # File descriptor usage: | |
787 | # 0 standard input | |
788 | # 1 file creation | |
789 | # 2 errors and warnings | |
790 | # 3 some systems may open it to /dev/tty | |
791 | # 4 used on the Kubota Titan | |
792 | # 6 checking for... messages and results | |
793 | # 5 compiler messages saved in config.log | |
794 | if test "$silent" = yes; then | |
795 | exec 6>/dev/null | |
796 | else | |
797 | exec 6>&1 | |
10f2d63a | 798 | fi |
698dcdb6 VZ |
799 | exec 5>./config.log |
800 | ||
801 | echo "\ | |
802 | This file contains any messages produced by compilers while | |
803 | running configure, to aid debugging if configure makes a mistake. | |
804 | " 1>&5 | |
10f2d63a | 805 | |
698dcdb6 VZ |
806 | # Strip out --no-create and --no-recursion so they do not pile up. |
807 | # Also quote any args containing shell metacharacters. | |
808 | ac_configure_args= | |
809 | for ac_arg | |
10f2d63a | 810 | do |
698dcdb6 VZ |
811 | case "$ac_arg" in |
812 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
813 | | --no-cr | --no-c) ;; | |
814 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
815 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
816 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
817 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
818 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
819 | esac |
820 | done | |
821 | ||
698dcdb6 VZ |
822 | # NLS nuisances. |
823 | # Only set these to C if already set. These must not be set unconditionally | |
824 | # because not all systems understand e.g. LANG=C (notably SCO). | |
825 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
826 | # Non-C LC_CTYPE values break the ctype check. | |
827 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
828 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
829 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
830 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 831 | |
698dcdb6 VZ |
832 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
833 | rm -rf conftest* confdefs.h | |
834 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
835 | echo > confdefs.h | |
10f2d63a | 836 | |
698dcdb6 VZ |
837 | # A filename unique to this package, relative to the directory that |
838 | # configure is in, which we can look for to find out if srcdir is correct. | |
839 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
840 | |
841 | # Find the source files, if location was not specified. | |
842 | if test -z "$srcdir"; then | |
843 | ac_srcdir_defaulted=yes | |
844 | # Try the directory containing this script, then its parent. | |
845 | ac_prog=$0 | |
698dcdb6 | 846 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
847 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
848 | srcdir=$ac_confdir | |
849 | if test ! -r $srcdir/$ac_unique_file; then | |
850 | srcdir=.. | |
851 | fi | |
852 | else | |
853 | ac_srcdir_defaulted=no | |
854 | fi | |
855 | if test ! -r $srcdir/$ac_unique_file; then | |
856 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 857 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 858 | else |
698dcdb6 | 859 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
860 | fi |
861 | fi | |
698dcdb6 | 862 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
863 | |
864 | # Prefer explicitly selected file to automatically selected ones. | |
865 | if test -z "$CONFIG_SITE"; then | |
866 | if test "x$prefix" != xNONE; then | |
867 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
868 | else | |
869 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
870 | fi | |
871 | fi | |
872 | for ac_site_file in $CONFIG_SITE; do | |
873 | if test -r "$ac_site_file"; then | |
698dcdb6 | 874 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
875 | . "$ac_site_file" |
876 | fi | |
877 | done | |
878 | ||
879 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
880 | echo "loading cache $cache_file" |
881 | . $cache_file | |
10f2d63a | 882 | else |
698dcdb6 VZ |
883 | echo "creating cache $cache_file" |
884 | > $cache_file | |
10f2d63a VZ |
885 | fi |
886 | ||
887 | ac_ext=c | |
698dcdb6 | 888 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 889 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
890 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
891 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
892 | cross_compiling=$ac_cv_prog_cc_cross | |
893 | ||
894 | ac_exeext= | |
895 | ac_objext=o | |
896 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
897 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
898 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
899 | ac_n= ac_c=' | |
900 | ' ac_t=' ' | |
901 | else | |
902 | ac_n=-n ac_c= ac_t= | |
903 | fi | |
10f2d63a | 904 | else |
698dcdb6 | 905 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 906 | fi |
698dcdb6 VZ |
907 | |
908 | ||
10f2d63a | 909 | |
7c66a493 VZ |
910 | ac_aux_dir= |
911 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
912 | if test -f $ac_dir/install-sh; then | |
913 | ac_aux_dir=$ac_dir | |
914 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
915 | break | |
916 | elif test -f $ac_dir/install.sh; then | |
917 | ac_aux_dir=$ac_dir | |
918 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
919 | break | |
920 | fi | |
921 | done | |
922 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 923 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 924 | fi |
698dcdb6 VZ |
925 | ac_config_guess=$ac_aux_dir/config.guess |
926 | ac_config_sub=$ac_aux_dir/config.sub | |
927 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 928 | |
698dcdb6 VZ |
929 | |
930 | # Do some error checking and defaulting for the host and target type. | |
931 | # The inputs are: | |
932 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
933 | # | |
934 | # The rules are: | |
935 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
936 | # same time. | |
937 | # 2. Host defaults to nonopt. | |
938 | # 3. If nonopt is not specified, then host defaults to the current host, | |
939 | # as determined by config.guess. | |
940 | # 4. Target and build default to nonopt. | |
941 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
942 | |
943 | # The aliases save the names the user supplied, while $host etc. | |
944 | # will get canonicalized. | |
698dcdb6 VZ |
945 | case $host---$target---$nonopt in |
946 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
947 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
948 | esac | |
949 | ||
950 | ||
951 | # Make sure we can run config.sub. | |
952 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
953 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
954 | fi | |
955 | ||
956 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a72a4bfa | 957 | echo "configure:958: checking host system type" >&5 |
698dcdb6 VZ |
958 | |
959 | host_alias=$host | |
960 | case "$host_alias" in | |
961 | NONE) | |
962 | case $nonopt in | |
963 | NONE) | |
964 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
965 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
966 | fi ;; | |
967 | *) host_alias=$nonopt ;; | |
968 | esac ;; | |
969 | esac | |
970 | ||
971 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
972 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
973 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
974 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
975 | echo "$ac_t""$host" 1>&6 | |
976 | ||
977 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
a72a4bfa | 978 | echo "configure:979: checking target system type" >&5 |
698dcdb6 VZ |
979 | |
980 | target_alias=$target | |
981 | case "$target_alias" in | |
982 | NONE) | |
983 | case $nonopt in | |
984 | NONE) target_alias=$host_alias ;; | |
985 | *) target_alias=$nonopt ;; | |
986 | esac ;; | |
987 | esac | |
988 | ||
989 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
990 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
991 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
992 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
993 | echo "$ac_t""$target" 1>&6 | |
994 | ||
995 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
a72a4bfa | 996 | echo "configure:997: checking build system type" >&5 |
698dcdb6 VZ |
997 | |
998 | build_alias=$build | |
999 | case "$build_alias" in | |
1000 | NONE) | |
1001 | case $nonopt in | |
1002 | NONE) build_alias=$host_alias ;; | |
1003 | *) build_alias=$nonopt ;; | |
1004 | esac ;; | |
1005 | esac | |
1006 | ||
1007 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1008 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1009 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1010 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1011 | echo "$ac_t""$build" 1>&6 | |
1012 | ||
1013 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1014 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1015 | NONENONEs,x,x, && | |
1016 | program_prefix=${target_alias}- | |
1017 | ||
698dcdb6 VZ |
1018 | |
1019 | ||
10f2d63a | 1020 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1021 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1022 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1023 | |
10f2d63a | 1024 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1025 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1026 | |
978f1259 RL |
1027 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1028 | ||
a0d927d1 | 1029 | WX_CURRENT=2 |
6426998c RL |
1030 | WX_REVISION=0 |
1031 | WX_AGE=0 | |
1032 | ||
698dcdb6 VZ |
1033 | |
1034 | ||
10f2d63a VZ |
1035 | USE_UNIX=1 |
1036 | USE_WIN32=0 | |
f9bc1684 | 1037 | USE_DOS=0 |
b12915c1 | 1038 | USE_BEOS=0 |
1216f52d | 1039 | USE_MAC=0 |
b12915c1 | 1040 | |
10f2d63a VZ |
1041 | USE_LINUX= |
1042 | USE_SGI= | |
1043 | USE_HPUX= | |
1044 | USE_SYSV= | |
1045 | USE_SVR4= | |
1046 | USE_AIX= | |
1047 | USE_SUN= | |
1048 | USE_SOLARIS= | |
1049 | USE_SUNOS= | |
1050 | USE_ALPHA= | |
1051 | USE_OSF= | |
1052 | USE_BSD= | |
f11bdd03 | 1053 | USE_DARWIN= |
10f2d63a | 1054 | USE_FREEBSD= |
95c8801c | 1055 | USE_OPENBSD= |
f6bcfd97 | 1056 | USE_NETBSD= |
10f2d63a VZ |
1057 | USE_VMS= |
1058 | USE_ULTRIX= | |
10f2d63a VZ |
1059 | USE_DATA_GENERAL= |
1060 | ||
ab9b9eab VZ |
1061 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1062 | ||
3f345b47 VZ |
1063 | CPP_MT_FLAG=-D_REENTRANT |
1064 | ||
1725144d | 1065 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE" |
10f2d63a VZ |
1066 | |
1067 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1068 | DEFAULT_wxUSE_MAC=0 |
1069 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1070 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1071 | DEFAULT_wxUSE_MOTIF=0 |
1072 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1073 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1074 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1075 | |
1076 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1077 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1078 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1079 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1080 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1081 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1082 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1083 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1084 | |
d6a55c4b | 1085 | PROGRAM_EXT= |
3a922bb4 | 1086 | SO_SUFFIX=so |
d6a55c4b | 1087 | |
10f2d63a VZ |
1088 | case "${host}" in |
1089 | *-hp-hpux* ) | |
1090 | USE_HPUX=1 | |
1091 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1092 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1093 | SO_SUFFIX=sl |
698dcdb6 | 1094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1095 | #define __HPUX__ 1 |
1096 | EOF | |
1097 | ||
1098 | ;; | |
1099 | *-*-linux* ) | |
1100 | USE_LINUX=1 | |
698dcdb6 | 1101 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1102 | #define __LINUX__ 1 |
1103 | EOF | |
1104 | ||
1105 | TMP=`uname -m` | |
1106 | if test "x$TMP" = "xalpha"; then | |
1107 | USE_ALPHA=1 | |
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __ALPHA__ 1 |
1110 | EOF | |
1111 | ||
1112 | fi | |
1113 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1114 | ;; | |
1115 | *-*-irix5* | *-*-irix6* ) | |
1116 | USE_SGI=1 | |
1117 | USE_SVR4=1 | |
698dcdb6 | 1118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1119 | #define __SGI__ 1 |
1120 | EOF | |
1121 | ||
698dcdb6 | 1122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1123 | #define __SVR4__ 1 |
1124 | EOF | |
1125 | ||
1126 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1127 | ;; | |
1128 | *-*-solaris2* ) | |
1129 | USE_SUN=1 | |
1130 | USE_SOLARIS=1 | |
1131 | USE_SVR4=1 | |
698dcdb6 | 1132 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1133 | #define __SUN__ 1 |
1134 | EOF | |
1135 | ||
698dcdb6 | 1136 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1137 | #define __SOLARIS__ 1 |
1138 | EOF | |
1139 | ||
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __SVR4__ 1 |
1142 | EOF | |
1143 | ||
1144 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1145 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1146 | ;; |
1147 | *-*-sunos4* ) | |
1148 | USE_SUN=1 | |
1149 | USE_SUNOS=1 | |
1150 | USE_BSD=1 | |
698dcdb6 | 1151 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1152 | #define __SUN__ 1 |
1153 | EOF | |
1154 | ||
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1156 | #define __SUNOS__ 1 |
1157 | EOF | |
1158 | ||
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1160 | #define __BSD__ 1 |
1161 | EOF | |
1162 | ||
1163 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1164 | ;; | |
f6bcfd97 | 1165 | *-*-freebsd*) |
10f2d63a VZ |
1166 | USE_BSD=1 |
1167 | USE_FREEBSD=1 | |
3f345b47 | 1168 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1169 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1170 | #define __FREEBSD__ 1 |
1171 | EOF | |
1172 | ||
698dcdb6 | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a | 1174 | #define __BSD__ 1 |
95c8801c VS |
1175 | EOF |
1176 | ||
1177 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1178 | ;; | |
1179 | *-*-openbsd*) | |
1180 | USE_BSD=1 | |
1181 | USE_OPENBSD=1 | |
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1183 | #define __FREEBSD__ 1 |
1184 | EOF | |
1185 | ||
698dcdb6 | 1186 | cat >> confdefs.h <<\EOF |
95c8801c | 1187 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1188 | EOF |
1189 | ||
1190 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1191 | ;; | |
1192 | *-*-netbsd*) | |
1193 | USE_BSD=1 | |
1194 | USE_NETBSD=1 | |
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1196 | #define __FREEBSD__ 1 |
1197 | EOF | |
1198 | ||
698dcdb6 | 1199 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1200 | #define __NETBSD__ 1 |
10f2d63a VZ |
1201 | EOF |
1202 | ||
1203 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1204 | ;; | |
1205 | *-*-osf* ) | |
1206 | USE_ALPHA=1 | |
1207 | USE_OSF=1 | |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __ALPHA__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1213 | #define __OSF__ 1 |
1214 | EOF | |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1217 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1218 | ;; |
1219 | *-*-dgux5* ) | |
1220 | USE_ALPHA=1 | |
1221 | USE_SVR4=1 | |
698dcdb6 | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1223 | #define __ALPHA__ 1 |
1224 | EOF | |
1225 | ||
698dcdb6 | 1226 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1227 | #define __SVR4__ 1 |
1228 | EOF | |
1229 | ||
1230 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1231 | ;; | |
1232 | *-*-sysv5* ) | |
1233 | USE_SYSV=1 | |
1234 | USE_SVR4=1 | |
698dcdb6 | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1236 | #define __SYSV__ 1 |
1237 | EOF | |
1238 | ||
698dcdb6 | 1239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1240 | #define __SVR4__ 1 |
1241 | EOF | |
1242 | ||
1243 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1244 | ;; | |
1245 | *-*-aix* ) | |
1246 | USE_AIX=1 | |
1247 | USE_SYSV=1 | |
1248 | USE_SVR4=1 | |
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define __AIX__ 1 |
1251 | EOF | |
1252 | ||
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __SYSV__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __SVR4__ 1 |
1259 | EOF | |
1260 | ||
1261 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1262 | ;; | |
1263 | ||
1c8183e2 | 1264 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1265 | USE_UNIX=0 |
1266 | USE_WIN32=1 | |
3a922bb4 | 1267 | SO_SUFFIX=dll |
698dcdb6 | 1268 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1269 | #define __WIN32__ 1 |
1270 | EOF | |
1271 | ||
698dcdb6 | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1273 | #define __WIN95__ 1 |
1274 | EOF | |
1275 | ||
698dcdb6 | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1277 | #define __WINDOWS__ 1 |
1278 | EOF | |
1279 | ||
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1281 | #define __GNUWIN32__ 1 |
1282 | EOF | |
1283 | ||
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1285 | #define STRICT 1 |
1286 | EOF | |
1287 | ||
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define WINVER 0x0400 |
1290 | EOF | |
1291 | ||
cf27ef00 | 1292 | PROGRAM_EXT=".exe" |
7b7a7637 | 1293 | RESCOMP=windres |
10f2d63a VZ |
1294 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1295 | ;; | |
1296 | ||
f9bc1684 VS |
1297 | *-pc-msdosdjgpp ) |
1298 | USE_UNIX=0 | |
1299 | USE_DOS=1 | |
1300 | cat >> confdefs.h <<\EOF | |
1301 | #define __DOS__ 1 | |
1302 | EOF | |
1303 | ||
1304 | PROGRAM_EXT=".exe" | |
1305 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1306 | DEFAULT_DEFAULT_wxUSE_SHARED=0 | |
1307 | ;; | |
1308 | ||
6fa882bd | 1309 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1310 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1311 | #define __EMX__ 1 |
1312 | EOF | |
1313 | ||
cf27ef00 | 1314 | PROGRAM_EXT=".exe" |
e07802fc | 1315 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1316 | ;; |
1317 | ||
d08b457b GD |
1318 | powerpc-*-darwin* ) |
1319 | USE_BSD=1 | |
f11bdd03 | 1320 | USE_DARWIN=1 |
3f345b47 | 1321 | CPP_MT_FLAG= |
3a922bb4 | 1322 | SO_SUFFIX=dylib |
698dcdb6 | 1323 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1324 | #define __BSD__ 1 |
b4085ce6 GD |
1325 | EOF |
1326 | ||
698dcdb6 | 1327 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1328 | #define __DARWIN__ 1 |
d08b457b GD |
1329 | EOF |
1330 | ||
1331 | cat >> confdefs.h <<\EOF | |
1332 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1333 | EOF |
1334 | ||
1335 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1336 | ;; | |
1337 | ||
b12915c1 VZ |
1338 | *-*-beos* ) |
1339 | USE_BEOS=1 | |
698dcdb6 | 1340 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1341 | #define __BEOS__ 1 |
1342 | EOF | |
1343 | ||
1344 | ;; | |
1345 | ||
10f2d63a | 1346 | *) |
698dcdb6 | 1347 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1348 | esac |
1349 | ||
1350 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1351 | wxUSE_UNIX=yes |
698dcdb6 | 1352 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1353 | #define __UNIX__ 1 |
1354 | EOF | |
1355 | ||
10f2d63a VZ |
1356 | fi |
1357 | ||
2389f33b VZ |
1358 | if test "$USE_LINUX" = 1; then |
1359 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
a72a4bfa | 1360 | echo "configure:1361: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1361 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1363 | else | |
a72a4bfa VS |
1364 | |
1365 | cat > conftest.$ac_ext <<EOF | |
1366 | #line 1367 "configure" | |
2389f33b VZ |
1367 | #include "confdefs.h" |
1368 | #include <features.h> | |
1369 | int main() { | |
1370 | ||
1371 | #if !__GLIBC_PREREQ(2, 1) | |
1372 | #error not glibc2.1 | |
1373 | #endif | |
1374 | ||
1375 | ; return 0; } | |
1376 | EOF | |
a72a4bfa | 1377 | if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1378 | rm -rf conftest* |
1379 | ||
1380 | wx_lib_glibc21=yes | |
1381 | ||
1382 | else | |
1383 | echo "configure: failed program was:" >&5 | |
1384 | cat conftest.$ac_ext >&5 | |
1385 | rm -rf conftest* | |
1386 | ||
1387 | wx_lib_glibc21=no | |
1388 | ||
1389 | ||
1390 | fi | |
1391 | rm -f conftest* | |
1392 | ||
1393 | fi | |
1394 | ||
1395 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1396 | if test "$wx_lib_glibc21" = "yes"; then |
1397 | cat >> confdefs.h <<\EOF | |
1398 | #define wxHAVE_GLIBC2 1 | |
1399 | EOF | |
1400 | ||
1401 | fi | |
1402 | fi | |
10f2d63a | 1403 | |
1e487827 | 1404 | |
1e487827 | 1405 | |
6232543b | 1406 | |
10f2d63a VZ |
1407 | wx_arg_cache_file="configarg.cache" |
1408 | echo "loading argument cache $wx_arg_cache_file" | |
1409 | rm -f ${wx_arg_cache_file}.tmp | |
1410 | touch ${wx_arg_cache_file}.tmp | |
1411 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1412 | |
10f2d63a VZ |
1413 | |
1414 | DEBUG_CONFIGURE=0 | |
1415 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1416 | DEFAULT_wxUSE_UNIVERSAL=no |
1417 | ||
10f2d63a VZ |
1418 | DEFAULT_wxUSE_THREADS=yes |
1419 | ||
1420 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1421 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1422 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_PROFILE=no |
1424 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1425 | DEFAULT_wxUSE_NO_RTTI=yes |
1426 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_PERMISSIVE=no |
1428 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1429 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1430 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1431 | DEFAULT_wxUSE_MEM_TRACING=no | |
1432 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1433 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1434 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_APPLE_IEEE=no |
1436 | ||
1437 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1438 | DEFAULT_wxUSE_LOGWINDOW=no |
1439 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1440 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1441 | |
1442 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1443 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1444 | |
3e44f09d | 1445 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_ZLIB=no |
1447 | DEFAULT_wxUSE_LIBPNG=no | |
1448 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1449 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1450 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1451 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1452 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1453 | |
eb4efbdc | 1454 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1455 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1456 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1457 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1458 | DEFAULT_wxUSE_DATETIME=no | |
1459 | DEFAULT_wxUSE_TIMEDATE=no | |
1460 | DEFAULT_wxUSE_TIMER=no | |
1461 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1462 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1463 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1464 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1465 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_WAVE=no |
1467 | DEFAULT_wxUSE_INTL=no | |
1468 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1469 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_STREAMS=no |
1471 | DEFAULT_wxUSE_SOCKETS=no | |
1472 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1473 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1474 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1475 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1476 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1477 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1478 | |
1479 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1480 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1481 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1482 | ||
1483 | DEFAULT_wxUSE_X_RESOURCES=no | |
1484 | DEFAULT_wxUSE_CLIPBOARD=no | |
1485 | DEFAULT_wxUSE_TOOLTIPS=no | |
1486 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1487 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1488 | DEFAULT_wxUSE_SPLINES=no |
1489 | ||
1490 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1491 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1492 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1493 | ||
1494 | DEFAULT_wxUSE_PROLOGIO=no | |
1495 | DEFAULT_wxUSE_RESOURCES=no | |
1496 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1497 | DEFAULT_wxUSE_IPC=no | |
1498 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1499 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1500 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1501 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1502 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1503 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1504 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1505 | |
1506 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1507 | DEFAULT_wxUSE_CHOICEDLG=no |
1508 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1509 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1510 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1511 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1512 | DEFAULT_wxUSE_FONTDLG=no |
1513 | DEFAULT_wxUSE_MSGDLG=no | |
1514 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1515 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1516 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1518 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1519 | DEFAULT_wxUSE_WIZARDDLG=no |
1520 | ||
1e6feb95 | 1521 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_MINIFRAME=no |
1523 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1524 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_FS_INET=no |
1526 | DEFAULT_wxUSE_FS_ZIP=no | |
1527 | DEFAULT_wxUSE_BUSYINFO=no | |
1528 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1529 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1530 | |
1531 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1532 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1533 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1534 | DEFAULT_wxUSE_CALCTRL=no |
1535 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1536 | DEFAULT_wxUSE_CHECKBOX=no |
1537 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1538 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1539 | DEFAULT_wxUSE_COMBOBOX=no |
1540 | DEFAULT_wxUSE_GAUGE=no | |
1541 | DEFAULT_wxUSE_GRID=no | |
1542 | DEFAULT_wxUSE_NEW_GRID=no | |
1543 | DEFAULT_wxUSE_IMAGLIST=no | |
1544 | DEFAULT_wxUSE_LISTBOX=no | |
1545 | DEFAULT_wxUSE_LISTCTRL=no | |
1546 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1547 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1548 | DEFAULT_wxUSE_RADIOBOX=no |
1549 | DEFAULT_wxUSE_RADIOBTN=no | |
1550 | DEFAULT_wxUSE_SASH=no | |
1551 | DEFAULT_wxUSE_SCROLLBAR=no | |
1552 | DEFAULT_wxUSE_SLIDER=no | |
1553 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1554 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1555 | DEFAULT_wxUSE_SPLITTER=no |
1556 | DEFAULT_wxUSE_STATBMP=no | |
1557 | DEFAULT_wxUSE_STATBOX=no | |
1558 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1559 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_STATUSBAR=yes |
1561 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1562 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1563 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1564 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1565 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1566 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1567 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1568 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1569 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1570 | |
1571 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1572 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1573 | DEFAULT_wxUSE_WCSRTOMBS=no |
1574 | ||
edae8572 | 1575 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1576 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1577 | DEFAULT_wxUSE_GIF=no |
1578 | DEFAULT_wxUSE_PCX=no | |
1579 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1580 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1581 | else |
1e6feb95 VZ |
1582 | DEFAULT_wxUSE_UNIVERSAL=no |
1583 | ||
10f2d63a VZ |
1584 | DEFAULT_wxUSE_THREADS=yes |
1585 | ||
1586 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1587 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1588 | DEFAULT_wxUSE_OPTIMISE=yes |
1589 | DEFAULT_wxUSE_PROFILE=no | |
1590 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1591 | DEFAULT_wxUSE_NO_RTTI=yes |
1592 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1593 | DEFAULT_wxUSE_PERMISSIVE=no |
1594 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1595 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1596 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1597 | DEFAULT_wxUSE_MEM_TRACING=no | |
1598 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1599 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1600 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1602 | ||
1603 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1604 | DEFAULT_wxUSE_LOGWINDOW=yes |
1605 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1606 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1607 | |
1608 | DEFAULT_wxUSE_GUI=yes | |
1609 | ||
831b3152 | 1610 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1611 | DEFAULT_wxUSE_ZLIB=yes |
1612 | DEFAULT_wxUSE_LIBPNG=yes | |
1613 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1614 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1615 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1616 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1617 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1618 | |
eb4efbdc | 1619 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1620 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1621 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1622 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1623 | DEFAULT_wxUSE_DATETIME=yes | |
1624 | DEFAULT_wxUSE_TIMEDATE=no | |
1625 | DEFAULT_wxUSE_TIMER=yes | |
1626 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1627 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1628 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1629 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1630 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1631 | DEFAULT_wxUSE_WAVE=no |
1632 | DEFAULT_wxUSE_INTL=yes | |
1633 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1634 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1635 | DEFAULT_wxUSE_STREAMS=yes |
1636 | DEFAULT_wxUSE_SOCKETS=yes | |
1637 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1638 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1639 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1640 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1641 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1642 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1643 | |
1644 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1645 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1646 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1647 | ||
1648 | DEFAULT_wxUSE_X_RESOURCES=no | |
1649 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1650 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1651 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1652 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_SPLINES=yes |
1654 | ||
1655 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1656 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1657 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1658 | ||
1659 | DEFAULT_wxUSE_PROLOGIO=yes | |
1660 | DEFAULT_wxUSE_RESOURCES=yes | |
1661 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1662 | DEFAULT_wxUSE_IPC=yes | |
1663 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1664 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1665 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1666 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1667 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1668 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1669 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1670 | |
1671 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1672 | DEFAULT_wxUSE_CHOICEDLG=yes |
1673 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1674 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1675 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1676 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1677 | DEFAULT_wxUSE_FONTDLG=yes |
1678 | DEFAULT_wxUSE_MSGDLG=yes | |
1679 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1680 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1681 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1682 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1683 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1684 | DEFAULT_wxUSE_WIZARDDLG=yes |
1685 | ||
1e6feb95 | 1686 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_MINIFRAME=yes |
1688 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1689 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_FS_INET=yes |
1691 | DEFAULT_wxUSE_FS_ZIP=yes | |
1692 | DEFAULT_wxUSE_BUSYINFO=yes | |
1693 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1694 | DEFAULT_wxUSE_VALIDATORS=yes | |
1695 | ||
1696 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1697 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1698 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1699 | DEFAULT_wxUSE_CALCTRL=yes |
1700 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_CHECKBOX=yes |
1702 | DEFAULT_wxUSE_CHECKLST=yes | |
1703 | DEFAULT_wxUSE_CHOICE=yes | |
1704 | DEFAULT_wxUSE_COMBOBOX=yes | |
1705 | DEFAULT_wxUSE_GAUGE=yes | |
1706 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1707 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1708 | DEFAULT_wxUSE_IMAGLIST=yes |
1709 | DEFAULT_wxUSE_LISTBOX=yes | |
1710 | DEFAULT_wxUSE_LISTCTRL=yes | |
1711 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1712 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1713 | DEFAULT_wxUSE_RADIOBOX=yes |
1714 | DEFAULT_wxUSE_RADIOBTN=yes | |
1715 | DEFAULT_wxUSE_SASH=yes | |
1716 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1717 | DEFAULT_wxUSE_SLIDER=yes | |
1718 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1719 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_SPLITTER=yes |
1721 | DEFAULT_wxUSE_STATBMP=yes | |
1722 | DEFAULT_wxUSE_STATBOX=yes | |
1723 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1724 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_STATUSBAR=yes |
1726 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1727 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1728 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1729 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1730 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1731 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1732 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1733 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1734 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1735 | |
1736 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1737 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_WCSRTOMBS=no |
1739 | ||
edae8572 | 1740 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1741 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1742 | DEFAULT_wxUSE_GIF=yes |
1743 | DEFAULT_wxUSE_PCX=yes | |
1744 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1745 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1746 | fi |
1747 | ||
698dcdb6 VZ |
1748 | |
1749 | ||
10f2d63a VZ |
1750 | for toolkit in `echo $ALL_TOOLKITS`; do |
1751 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1752 | if test "x$LINE" != x ; then | |
1753 | has_toolkit_in_cache=1 | |
1754 | eval "DEFAULT_$LINE" | |
1755 | eval "CACHE_$toolkit=1" | |
1756 | fi | |
1757 | done | |
1758 | ||
698dcdb6 VZ |
1759 | |
1760 | ||
1761 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
a72a4bfa | 1762 | echo "configure:1763: checking for --enable-gui" >&5 |
10f2d63a VZ |
1763 | no_cache=0 |
1764 | # Check whether --enable-gui or --disable-gui was given. | |
1765 | if test "${enable_gui+set}" = set; then | |
1766 | enableval="$enable_gui" | |
698dcdb6 | 1767 | |
10f2d63a VZ |
1768 | if test "$enableval" = yes; then |
1769 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1770 | else | |
1771 | ac_cv_use_gui='wxUSE_GUI=no' | |
1772 | fi | |
698dcdb6 | 1773 | |
10f2d63a | 1774 | else |
698dcdb6 | 1775 | |
10f2d63a VZ |
1776 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1777 | if test "x$LINE" != x ; then | |
1778 | eval "DEFAULT_$LINE" | |
1779 | else | |
1780 | no_cache=1 | |
1781 | fi | |
1782 | ||
1783 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1784 | |
1785 | fi | |
10f2d63a VZ |
1786 | |
1787 | ||
1788 | eval "$ac_cv_use_gui" | |
1789 | if test "$no_cache" != 1; then | |
1790 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1791 | fi | |
1792 | ||
1793 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1795 | else |
698dcdb6 | 1796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1797 | fi |
698dcdb6 | 1798 | |
10f2d63a | 1799 | |
b12915c1 | 1800 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1801 | |
1e6feb95 VZ |
1802 | |
1803 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
a72a4bfa | 1804 | echo "configure:1805: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1805 | no_cache=0 |
1806 | # Check whether --enable-universal or --disable-universal was given. | |
1807 | if test "${enable_universal+set}" = set; then | |
1808 | enableval="$enable_universal" | |
1809 | ||
1810 | if test "$enableval" = yes; then | |
1811 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1812 | else | |
1813 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1814 | fi | |
1815 | ||
1816 | else | |
1817 | ||
1818 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1819 | if test "x$LINE" != x ; then | |
1820 | eval "DEFAULT_$LINE" | |
1821 | else | |
1822 | no_cache=1 | |
1823 | fi | |
1824 | ||
1825 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1826 | ||
1827 | fi | |
1828 | ||
1829 | ||
1830 | eval "$ac_cv_use_universal" | |
1831 | if test "$no_cache" != 1; then | |
1832 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1833 | fi | |
1834 | ||
1835 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1836 | echo "$ac_t""yes" 1>&6 | |
1837 | else | |
1838 | echo "$ac_t""no" 1>&6 | |
1839 | fi | |
1840 | ||
10f2d63a VZ |
1841 | # Check whether --with-gtk or --without-gtk was given. |
1842 | if test "${with_gtk+set}" = set; then | |
1843 | withval="$with_gtk" | |
1844 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1845 | fi |
10f2d63a VZ |
1846 | |
1847 | # Check whether --with-motif or --without-motif was given. | |
1848 | if test "${with_motif+set}" = set; then | |
1849 | withval="$with_motif" | |
1850 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1851 | fi |
10f2d63a | 1852 | |
b4085ce6 GD |
1853 | # Check whether --with-mac or --without-mac was given. |
1854 | if test "${with_mac+set}" = set; then | |
1855 | withval="$with_mac" | |
1856 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1857 | fi |
b4085ce6 | 1858 | |
10f2d63a VZ |
1859 | # Check whether --with-wine or --without-wine was given. |
1860 | if test "${with_wine+set}" = set; then | |
1861 | withval="$with_wine" | |
1862 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1863 | fi |
10f2d63a | 1864 | |
77e13408 RL |
1865 | # Check whether --with-msw or --without-msw was given. |
1866 | if test "${with_msw+set}" = set; then | |
1867 | withval="$with_msw" | |
1868 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1869 | fi |
10f2d63a | 1870 | |
e07802fc VZ |
1871 | # Check whether --with-pm or --without-pm was given. |
1872 | if test "${with_pm+set}" = set; then | |
1873 | withval="$with_pm" | |
1874 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1875 | fi |
1876 | ||
1e6feb95 VZ |
1877 | # Check whether --with-mgl or --without-mgl was given. |
1878 | if test "${with_mgl+set}" = set; then | |
1879 | withval="$with_mgl" | |
1880 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1881 | fi | |
1882 | ||
1725144d RR |
1883 | # Check whether --with-microwin or --without-microwin was given. |
1884 | if test "${with_microwin+set}" = set; then | |
1885 | withval="$with_microwin" | |
1886 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1887 | fi | |
1888 | ||
10f2d63a | 1889 | |
8168de4c VZ |
1890 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1891 | if test "${enable_gtk2+set}" = set; then | |
1892 | enableval="$enable_gtk2" | |
1893 | wxUSE_GTK2=1 | |
10f2d63a | 1894 | else |
8168de4c | 1895 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1896 | fi |
1897 | ||
703e0a69 | 1898 | |
1e487827 | 1899 | |
698dcdb6 | 1900 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
a72a4bfa | 1901 | echo "configure:1902: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1902 | no_cache=0 |
1903 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1904 | if test "${with_libpng+set}" = set; then |
1905 | withval="$with_libpng" | |
698dcdb6 | 1906 | |
10f2d63a | 1907 | if test "$withval" = yes; then |
b12915c1 | 1908 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1909 | elif test "$withval" = no; then |
b12915c1 | 1910 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1911 | elif test "$withval" = sys; then |
1912 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1913 | elif test "$withval" = builtin; then |
1914 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1915 | else |
4f14bcd8 | 1916 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1917 | fi |
698dcdb6 | 1918 | |
10f2d63a | 1919 | else |
698dcdb6 | 1920 | |
b12915c1 | 1921 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1922 | if test "x$LINE" != x ; then |
1923 | eval "DEFAULT_$LINE" | |
1924 | else | |
1925 | no_cache=1 | |
1926 | fi | |
1927 | ||
b12915c1 | 1928 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1929 | |
1930 | fi | |
10f2d63a VZ |
1931 | |
1932 | ||
b12915c1 | 1933 | eval "$ac_cv_use_libpng" |
10f2d63a | 1934 | if test "$no_cache" != 1; then |
b12915c1 | 1935 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1936 | fi |
1937 | ||
b12915c1 | 1938 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1939 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1940 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1941 | echo "$ac_t""no" 1>&6 |
422107f9 | 1942 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1943 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1944 | elif test "$wxUSE_LIBPNG" = builtin; then |
1945 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1946 | else |
4f14bcd8 | 1947 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1948 | fi |
698dcdb6 | 1949 | |
10f2d63a | 1950 | |
698dcdb6 | 1951 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
a72a4bfa | 1952 | echo "configure:1953: checking for --with-libjpeg" >&5 |
10f2d63a | 1953 | no_cache=0 |
698dcdb6 | 1954 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1955 | if test "${with_libjpeg+set}" = set; then |
1956 | withval="$with_libjpeg" | |
698dcdb6 | 1957 | |
10f2d63a | 1958 | if test "$withval" = yes; then |
b12915c1 | 1959 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1960 | elif test "$withval" = no; then |
b12915c1 | 1961 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1962 | elif test "$withval" = sys; then |
1963 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1964 | elif test "$withval" = builtin; then |
1965 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1966 | else |
4f14bcd8 | 1967 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1968 | fi |
698dcdb6 | 1969 | |
10f2d63a | 1970 | else |
698dcdb6 | 1971 | |
b12915c1 | 1972 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1973 | if test "x$LINE" != x ; then |
1974 | eval "DEFAULT_$LINE" | |
1975 | else | |
1976 | no_cache=1 | |
1977 | fi | |
1978 | ||
b12915c1 | 1979 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1980 | |
1981 | fi | |
10f2d63a VZ |
1982 | |
1983 | ||
b12915c1 | 1984 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1985 | if test "$no_cache" != 1; then |
b12915c1 | 1986 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1987 | fi |
1988 | ||
b12915c1 | 1989 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1990 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1991 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1992 | echo "$ac_t""no" 1>&6 |
422107f9 | 1993 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1994 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1995 | elif test "$wxUSE_LIBJPEG" = builtin; then |
1996 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1997 | else |
4f14bcd8 | 1998 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1999 | fi |
698dcdb6 | 2000 | |
10f2d63a | 2001 | |
698dcdb6 | 2002 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
a72a4bfa | 2003 | echo "configure:2004: checking for --with-libtiff" >&5 |
10f2d63a | 2004 | no_cache=0 |
698dcdb6 | 2005 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2006 | if test "${with_libtiff+set}" = set; then |
2007 | withval="$with_libtiff" | |
698dcdb6 | 2008 | |
10f2d63a | 2009 | if test "$withval" = yes; then |
b12915c1 | 2010 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2011 | elif test "$withval" = no; then |
b12915c1 | 2012 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2013 | elif test "$withval" = sys; then |
2014 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2015 | elif test "$withval" = builtin; then |
2016 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2017 | else |
4f14bcd8 | 2018 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2019 | fi |
698dcdb6 | 2020 | |
10f2d63a | 2021 | else |
698dcdb6 | 2022 | |
b12915c1 | 2023 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2024 | if test "x$LINE" != x ; then |
2025 | eval "DEFAULT_$LINE" | |
2026 | else | |
2027 | no_cache=1 | |
2028 | fi | |
2029 | ||
b12915c1 | 2030 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2031 | |
2032 | fi | |
10f2d63a VZ |
2033 | |
2034 | ||
b12915c1 | 2035 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2036 | if test "$no_cache" != 1; then |
b12915c1 | 2037 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2038 | fi |
2039 | ||
b12915c1 | 2040 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2041 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2042 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2043 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2044 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2045 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2046 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2047 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2048 | else |
4f14bcd8 | 2049 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2050 | fi |
698dcdb6 | 2051 | |
10f2d63a | 2052 | |
698dcdb6 | 2053 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
a72a4bfa | 2054 | echo "configure:2055: checking for --with-freetype" >&5 |
3fed1840 | 2055 | no_cache=0 |
698dcdb6 | 2056 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2057 | if test "${with_freetype+set}" = set; then |
2058 | withval="$with_freetype" | |
698dcdb6 | 2059 | |
3fed1840 RR |
2060 | if test "$withval" = yes; then |
2061 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2062 | elif test "$withval" = no; then | |
2063 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2064 | elif test "$withval" = sys; then | |
2065 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2066 | elif test "$withval" = builtin; then |
2067 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2068 | else |
4f14bcd8 | 2069 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2070 | fi |
698dcdb6 | 2071 | |
3fed1840 | 2072 | else |
698dcdb6 | 2073 | |
3fed1840 RR |
2074 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2075 | if test "x$LINE" != x ; then | |
2076 | eval "DEFAULT_$LINE" | |
2077 | else | |
2078 | no_cache=1 | |
2079 | fi | |
2080 | ||
2081 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2082 | |
2083 | fi | |
3fed1840 RR |
2084 | |
2085 | ||
2086 | eval "$ac_cv_use_freetype" | |
2087 | if test "$no_cache" != 1; then | |
2088 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2089 | fi | |
2090 | ||
2091 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2092 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2093 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2094 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2095 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2096 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2097 | elif test "$wxUSE_FREETYPE" = builtin; then |
2098 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2099 | else |
4f14bcd8 | 2100 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2101 | fi |
698dcdb6 | 2102 | |
3fed1840 | 2103 | |
698dcdb6 | 2104 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
a72a4bfa | 2105 | echo "configure:2106: checking for --with-opengl" >&5 |
10f2d63a | 2106 | no_cache=0 |
698dcdb6 | 2107 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2108 | if test "${with_opengl+set}" = set; then |
2109 | withval="$with_opengl" | |
698dcdb6 | 2110 | |
10f2d63a | 2111 | if test "$withval" = yes; then |
b12915c1 | 2112 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2113 | else |
b12915c1 | 2114 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2115 | fi |
698dcdb6 | 2116 | |
10f2d63a | 2117 | else |
698dcdb6 | 2118 | |
b12915c1 | 2119 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2120 | if test "x$LINE" != x ; then |
2121 | eval "DEFAULT_$LINE" | |
2122 | else | |
2123 | no_cache=1 | |
2124 | fi | |
2125 | ||
b12915c1 | 2126 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2127 | |
2128 | fi | |
10f2d63a VZ |
2129 | |
2130 | ||
b12915c1 | 2131 | eval "$ac_cv_use_opengl" |
10f2d63a | 2132 | if test "$no_cache" != 1; then |
b12915c1 | 2133 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2134 | fi |
2135 | ||
b12915c1 | 2136 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2137 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2138 | else |
698dcdb6 | 2139 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2140 | fi |
698dcdb6 | 2141 | |
10f2d63a | 2142 | |
b12915c1 VZ |
2143 | fi |
2144 | ||
1e487827 | 2145 | |
698dcdb6 | 2146 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
a72a4bfa | 2147 | echo "configure:2148: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2148 | no_cache=0 |
2149 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2150 | if test "${with_dmalloc+set}" = set; then |
2151 | withval="$with_dmalloc" | |
698dcdb6 | 2152 | |
c7a2bf27 | 2153 | if test "$withval" = yes; then |
b12915c1 | 2154 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2155 | else |
b12915c1 | 2156 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2157 | fi |
698dcdb6 | 2158 | |
c7a2bf27 | 2159 | else |
698dcdb6 | 2160 | |
b12915c1 | 2161 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2162 | if test "x$LINE" != x ; then |
2163 | eval "DEFAULT_$LINE" | |
2164 | else | |
2165 | no_cache=1 | |
2166 | fi | |
2167 | ||
b12915c1 | 2168 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2169 | |
2170 | fi | |
c7a2bf27 RR |
2171 | |
2172 | ||
b12915c1 | 2173 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2174 | if test "$no_cache" != 1; then |
b12915c1 | 2175 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2176 | fi |
2177 | ||
b12915c1 | 2178 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2179 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2180 | else |
698dcdb6 | 2181 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2182 | fi |
698dcdb6 | 2183 | |
c7a2bf27 | 2184 | |
3e44f09d | 2185 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
a72a4bfa | 2186 | echo "configure:2187: checking for --with-regex" >&5 |
3e44f09d VZ |
2187 | no_cache=0 |
2188 | # Check whether --with-regex or --without-regex was given. | |
2189 | if test "${with_regex+set}" = set; then | |
2190 | withval="$with_regex" | |
2191 | ||
2192 | if test "$withval" = yes; then | |
2193 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2194 | elif test "$withval" = no; then | |
2195 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2196 | elif test "$withval" = sys; then | |
2197 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2198 | elif test "$withval" = builtin; then |
2199 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2200 | else |
4f14bcd8 | 2201 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2202 | fi |
2203 | ||
2204 | else | |
2205 | ||
2206 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2207 | if test "x$LINE" != x ; then | |
2208 | eval "DEFAULT_$LINE" | |
2209 | else | |
2210 | no_cache=1 | |
2211 | fi | |
2212 | ||
2213 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2214 | ||
2215 | fi | |
2216 | ||
2217 | ||
2218 | eval "$ac_cv_use_regex" | |
2219 | if test "$no_cache" != 1; then | |
2220 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2221 | fi | |
2222 | ||
2223 | if test "$wxUSE_REGEX" = yes; then | |
2224 | echo "$ac_t""yes" 1>&6 | |
2225 | elif test "$wxUSE_REGEX" = no; then | |
2226 | echo "$ac_t""no" 1>&6 | |
2227 | elif test "$wxUSE_REGEX" = sys; then | |
2228 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2229 | elif test "$wxUSE_REGEX" = builtin; then |
2230 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2231 | else |
4f14bcd8 | 2232 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2233 | fi |
2234 | ||
2235 | ||
698dcdb6 | 2236 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
a72a4bfa | 2237 | echo "configure:2238: checking for --with-zlib" >&5 |
10f2d63a | 2238 | no_cache=0 |
698dcdb6 | 2239 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2240 | if test "${with_zlib+set}" = set; then |
2241 | withval="$with_zlib" | |
698dcdb6 | 2242 | |
10f2d63a | 2243 | if test "$withval" = yes; then |
b12915c1 | 2244 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2245 | elif test "$withval" = no; then |
b12915c1 | 2246 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2247 | elif test "$withval" = sys; then |
2248 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2249 | elif test "$withval" = builtin; then |
2250 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2251 | else |
4f14bcd8 | 2252 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2253 | fi |
698dcdb6 | 2254 | |
10f2d63a | 2255 | else |
698dcdb6 | 2256 | |
b12915c1 | 2257 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2258 | if test "x$LINE" != x ; then |
2259 | eval "DEFAULT_$LINE" | |
2260 | else | |
2261 | no_cache=1 | |
2262 | fi | |
2263 | ||
b12915c1 | 2264 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2265 | |
2266 | fi | |
10f2d63a VZ |
2267 | |
2268 | ||
b12915c1 | 2269 | eval "$ac_cv_use_zlib" |
10f2d63a | 2270 | if test "$no_cache" != 1; then |
b12915c1 | 2271 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2272 | fi |
2273 | ||
b12915c1 | 2274 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2275 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2276 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2277 | echo "$ac_t""no" 1>&6 |
422107f9 | 2278 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2279 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2280 | elif test "$wxUSE_ZLIB" = builtin; then |
2281 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2282 | else |
4f14bcd8 | 2283 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2284 | fi |
698dcdb6 | 2285 | |
10f2d63a | 2286 | |
698dcdb6 | 2287 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
a72a4bfa | 2288 | echo "configure:2289: checking for --with-odbc" >&5 |
10f2d63a | 2289 | no_cache=0 |
698dcdb6 | 2290 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2291 | if test "${with_odbc+set}" = set; then |
2292 | withval="$with_odbc" | |
698dcdb6 | 2293 | |
10f2d63a VZ |
2294 | if test "$withval" = yes; then |
2295 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2296 | else | |
2297 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2298 | fi | |
698dcdb6 | 2299 | |
10f2d63a | 2300 | else |
698dcdb6 | 2301 | |
10f2d63a VZ |
2302 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2303 | if test "x$LINE" != x ; then | |
2304 | eval "DEFAULT_$LINE" | |
2305 | else | |
2306 | no_cache=1 | |
2307 | fi | |
2308 | ||
2309 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2310 | |
2311 | fi | |
10f2d63a VZ |
2312 | |
2313 | ||
2314 | eval "$ac_cv_use_odbc" | |
2315 | if test "$no_cache" != 1; then | |
2316 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2317 | fi | |
2318 | ||
2319 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2320 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2321 | else |
698dcdb6 | 2322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2323 | fi |
698dcdb6 VZ |
2324 | |
2325 | ||
10f2d63a | 2326 | |
698dcdb6 | 2327 | |
698dcdb6 | 2328 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
a72a4bfa | 2329 | echo "configure:2330: checking for --enable-shared" >&5 |
10f2d63a VZ |
2330 | no_cache=0 |
2331 | # Check whether --enable-shared or --disable-shared was given. | |
2332 | if test "${enable_shared+set}" = set; then | |
2333 | enableval="$enable_shared" | |
698dcdb6 | 2334 | |
10f2d63a VZ |
2335 | if test "$enableval" = yes; then |
2336 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2337 | else | |
2338 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2339 | fi | |
698dcdb6 | 2340 | |
10f2d63a | 2341 | else |
698dcdb6 | 2342 | |
10f2d63a VZ |
2343 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2344 | if test "x$LINE" != x ; then | |
2345 | eval "DEFAULT_$LINE" | |
2346 | else | |
2347 | no_cache=1 | |
2348 | fi | |
2349 | ||
2350 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2351 | |
2352 | fi | |
10f2d63a VZ |
2353 | |
2354 | ||
2355 | eval "$ac_cv_use_shared" | |
2356 | if test "$no_cache" != 1; then | |
2357 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2358 | fi | |
2359 | ||
2360 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2361 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2362 | else |
698dcdb6 | 2363 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2364 | fi |
698dcdb6 | 2365 | |
10f2d63a | 2366 | |
3a922bb4 | 2367 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
a72a4bfa | 2368 | echo "configure:2369: checking for --enable-soname" >&5 |
00cf1208 | 2369 | no_cache=0 |
3a922bb4 RL |
2370 | # Check whether --enable-soname or --disable-soname was given. |
2371 | if test "${enable_soname+set}" = set; then | |
2372 | enableval="$enable_soname" | |
698dcdb6 | 2373 | |
00cf1208 | 2374 | if test "$enableval" = yes; then |
3a922bb4 | 2375 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2376 | else |
3a922bb4 | 2377 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2378 | fi |
698dcdb6 | 2379 | |
00cf1208 | 2380 | else |
698dcdb6 | 2381 | |
3a922bb4 | 2382 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2383 | if test "x$LINE" != x ; then |
2384 | eval "DEFAULT_$LINE" | |
2385 | else | |
2386 | no_cache=1 | |
2387 | fi | |
2388 | ||
3a922bb4 | 2389 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2390 | |
2391 | fi | |
00cf1208 RR |
2392 | |
2393 | ||
3a922bb4 | 2394 | eval "$ac_cv_use_soname" |
00cf1208 | 2395 | if test "$no_cache" != 1; then |
3a922bb4 | 2396 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2397 | fi |
2398 | ||
3a922bb4 | 2399 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2400 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2401 | else |
698dcdb6 | 2402 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2403 | fi |
698dcdb6 | 2404 | |
00cf1208 | 2405 | |
698dcdb6 | 2406 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
a72a4bfa | 2407 | echo "configure:2408: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2408 | no_cache=0 |
2409 | # Check whether --enable-optimise or --disable-optimise was given. | |
2410 | if test "${enable_optimise+set}" = set; then | |
2411 | enableval="$enable_optimise" | |
698dcdb6 | 2412 | |
10f2d63a VZ |
2413 | if test "$enableval" = yes; then |
2414 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2415 | else | |
2416 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2417 | fi | |
698dcdb6 | 2418 | |
10f2d63a | 2419 | else |
698dcdb6 | 2420 | |
10f2d63a VZ |
2421 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2422 | if test "x$LINE" != x ; then | |
2423 | eval "DEFAULT_$LINE" | |
2424 | else | |
2425 | no_cache=1 | |
2426 | fi | |
2427 | ||
2428 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2429 | |
2430 | fi | |
10f2d63a VZ |
2431 | |
2432 | ||
2433 | eval "$ac_cv_use_optimise" | |
2434 | if test "$no_cache" != 1; then | |
2435 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2436 | fi | |
2437 | ||
2438 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2439 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2440 | else |
698dcdb6 | 2441 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2442 | fi |
698dcdb6 | 2443 | |
10f2d63a | 2444 | |
698dcdb6 | 2445 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
a72a4bfa | 2446 | echo "configure:2447: checking for --enable-debug" >&5 |
10f2d63a VZ |
2447 | no_cache=0 |
2448 | # Check whether --enable-debug or --disable-debug was given. | |
2449 | if test "${enable_debug+set}" = set; then | |
2450 | enableval="$enable_debug" | |
698dcdb6 | 2451 | |
10f2d63a VZ |
2452 | if test "$enableval" = yes; then |
2453 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2454 | else | |
2455 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2456 | fi | |
698dcdb6 | 2457 | |
10f2d63a | 2458 | else |
698dcdb6 | 2459 | |
10f2d63a VZ |
2460 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2461 | if test "x$LINE" != x ; then | |
2462 | eval "DEFAULT_$LINE" | |
2463 | else | |
2464 | no_cache=1 | |
2465 | fi | |
2466 | ||
2467 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2468 | |
2469 | fi | |
10f2d63a VZ |
2470 | |
2471 | ||
2472 | eval "$ac_cv_use_debug" | |
2473 | if test "$no_cache" != 1; then | |
2474 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2475 | fi | |
2476 | ||
2477 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2478 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2479 | else |
698dcdb6 | 2480 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2481 | fi |
698dcdb6 | 2482 | |
10f2d63a | 2483 | |
683dccda GD |
2484 | |
2485 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
a72a4bfa | 2486 | echo "configure:2487: checking for --enable-precomp" >&5 |
683dccda GD |
2487 | no_cache=0 |
2488 | # Check whether --enable-precomp or --disable-precomp was given. | |
2489 | if test "${enable_precomp+set}" = set; then | |
2490 | enableval="$enable_precomp" | |
2491 | ||
2492 | if test "$enableval" = yes; then | |
2493 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2494 | else | |
2495 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2496 | fi | |
2497 | ||
2498 | else | |
2499 | ||
2500 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2501 | if test "x$LINE" != x ; then | |
2502 | eval "DEFAULT_$LINE" | |
2503 | else | |
2504 | no_cache=1 | |
2505 | fi | |
2506 | ||
2507 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2508 | ||
2509 | fi | |
2510 | ||
2511 | ||
2512 | eval "$ac_cv_use_precomp" | |
2513 | if test "$no_cache" != 1; then | |
2514 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2515 | fi | |
2516 | ||
2517 | if test "$wxUSE_PRECOMP" = yes; then | |
2518 | echo "$ac_t""yes" 1>&6 | |
2519 | else | |
2520 | echo "$ac_t""no" 1>&6 | |
2521 | fi | |
2522 | ||
2523 | ||
10f2d63a VZ |
2524 | if test "$wxUSE_DEBUG" = "yes"; then |
2525 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2526 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2527 | elif test "$wxUSE_DEBUG" = "no"; then | |
2528 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2529 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2530 | fi | |
2531 | ||
698dcdb6 VZ |
2532 | |
2533 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
a72a4bfa | 2534 | echo "configure:2535: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2535 | no_cache=0 |
2536 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2537 | if test "${enable_debug_flag+set}" = set; then | |
2538 | enableval="$enable_debug_flag" | |
698dcdb6 | 2539 | |
10f2d63a VZ |
2540 | if test "$enableval" = yes; then |
2541 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2542 | else | |
2543 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2544 | fi | |
698dcdb6 | 2545 | |
10f2d63a | 2546 | else |
698dcdb6 | 2547 | |
10f2d63a VZ |
2548 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2556 | |
2557 | fi | |
10f2d63a VZ |
2558 | |
2559 | ||
2560 | eval "$ac_cv_use_debug_flag" | |
2561 | if test "$no_cache" != 1; then | |
2562 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2563 | fi | |
2564 | ||
2565 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2567 | else |
698dcdb6 | 2568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2569 | fi |
698dcdb6 | 2570 | |
10f2d63a | 2571 | |
698dcdb6 | 2572 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
a72a4bfa | 2573 | echo "configure:2574: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2574 | no_cache=0 |
2575 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2576 | if test "${enable_debug_info+set}" = set; then | |
2577 | enableval="$enable_debug_info" | |
698dcdb6 | 2578 | |
10f2d63a VZ |
2579 | if test "$enableval" = yes; then |
2580 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2581 | else | |
2582 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2583 | fi | |
698dcdb6 | 2584 | |
10f2d63a | 2585 | else |
698dcdb6 | 2586 | |
10f2d63a VZ |
2587 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2588 | if test "x$LINE" != x ; then | |
2589 | eval "DEFAULT_$LINE" | |
2590 | else | |
2591 | no_cache=1 | |
2592 | fi | |
2593 | ||
2594 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2595 | |
2596 | fi | |
10f2d63a VZ |
2597 | |
2598 | ||
2599 | eval "$ac_cv_use_debug_info" | |
2600 | if test "$no_cache" != 1; then | |
2601 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2602 | fi | |
2603 | ||
2604 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2606 | else |
698dcdb6 | 2607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2608 | fi |
698dcdb6 | 2609 | |
10f2d63a | 2610 | |
698dcdb6 | 2611 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
a72a4bfa | 2612 | echo "configure:2613: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2613 | no_cache=0 |
2614 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2615 | if test "${enable_debug_gdb+set}" = set; then | |
2616 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2617 | |
10f2d63a VZ |
2618 | if test "$enableval" = yes; then |
2619 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2620 | else | |
2621 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2622 | fi | |
698dcdb6 | 2623 | |
10f2d63a | 2624 | else |
698dcdb6 | 2625 | |
10f2d63a VZ |
2626 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2627 | if test "x$LINE" != x ; then | |
2628 | eval "DEFAULT_$LINE" | |
2629 | else | |
2630 | no_cache=1 | |
2631 | fi | |
2632 | ||
2633 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2634 | |
2635 | fi | |
10f2d63a VZ |
2636 | |
2637 | ||
2638 | eval "$ac_cv_use_debug_gdb" | |
2639 | if test "$no_cache" != 1; then | |
2640 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2641 | fi | |
2642 | ||
2643 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2645 | else |
698dcdb6 | 2646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2647 | fi |
698dcdb6 | 2648 | |
10f2d63a | 2649 | |
698dcdb6 | 2650 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
a72a4bfa | 2651 | echo "configure:2652: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2652 | no_cache=0 |
2653 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2654 | if test "${enable_debug_cntxt+set}" = set; then | |
2655 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2656 | |
10f2d63a VZ |
2657 | if test "$enableval" = yes; then |
2658 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2659 | else | |
2660 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2661 | fi | |
698dcdb6 | 2662 | |
10f2d63a | 2663 | else |
698dcdb6 | 2664 | |
10f2d63a VZ |
2665 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2666 | if test "x$LINE" != x ; then | |
2667 | eval "DEFAULT_$LINE" | |
2668 | else | |
2669 | no_cache=1 | |
2670 | fi | |
2671 | ||
2672 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2673 | |
2674 | fi | |
10f2d63a VZ |
2675 | |
2676 | ||
2677 | eval "$ac_cv_use_debug_cntxt" | |
2678 | if test "$no_cache" != 1; then | |
2679 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2680 | fi | |
2681 | ||
2682 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2684 | else |
698dcdb6 | 2685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2686 | fi |
698dcdb6 | 2687 | |
10f2d63a | 2688 | |
698dcdb6 | 2689 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
a72a4bfa | 2690 | echo "configure:2691: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2691 | no_cache=0 |
2692 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2693 | if test "${enable_mem_tracing+set}" = set; then | |
2694 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2695 | |
10f2d63a VZ |
2696 | if test "$enableval" = yes; then |
2697 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2698 | else | |
2699 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2700 | fi | |
698dcdb6 | 2701 | |
10f2d63a | 2702 | else |
698dcdb6 | 2703 | |
10f2d63a VZ |
2704 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2705 | if test "x$LINE" != x ; then | |
2706 | eval "DEFAULT_$LINE" | |
2707 | else | |
2708 | no_cache=1 | |
2709 | fi | |
2710 | ||
2711 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2712 | |
2713 | fi | |
10f2d63a VZ |
2714 | |
2715 | ||
2716 | eval "$ac_cv_use_mem_tracing" | |
2717 | if test "$no_cache" != 1; then | |
2718 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2719 | fi | |
2720 | ||
2721 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2723 | else |
698dcdb6 | 2724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2725 | fi |
698dcdb6 | 2726 | |
10f2d63a | 2727 | |
698dcdb6 | 2728 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
a72a4bfa | 2729 | echo "configure:2730: checking for --enable-profile" >&5 |
10f2d63a VZ |
2730 | no_cache=0 |
2731 | # Check whether --enable-profile or --disable-profile was given. | |
2732 | if test "${enable_profile+set}" = set; then | |
2733 | enableval="$enable_profile" | |
698dcdb6 | 2734 | |
10f2d63a VZ |
2735 | if test "$enableval" = yes; then |
2736 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2737 | else | |
2738 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2739 | fi | |
698dcdb6 | 2740 | |
10f2d63a | 2741 | else |
698dcdb6 | 2742 | |
10f2d63a VZ |
2743 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2744 | if test "x$LINE" != x ; then | |
2745 | eval "DEFAULT_$LINE" | |
2746 | else | |
2747 | no_cache=1 | |
2748 | fi | |
2749 | ||
2750 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2751 | |
2752 | fi | |
10f2d63a VZ |
2753 | |
2754 | ||
2755 | eval "$ac_cv_use_profile" | |
2756 | if test "$no_cache" != 1; then | |
2757 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2758 | fi | |
2759 | ||
2760 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2762 | else |
698dcdb6 | 2763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2764 | fi |
698dcdb6 | 2765 | |
10f2d63a | 2766 | |
698dcdb6 | 2767 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
a72a4bfa | 2768 | echo "configure:2769: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2769 | no_cache=0 |
2770 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2771 | if test "${enable_no_rtti+set}" = set; then | |
2772 | enableval="$enable_no_rtti" | |
698dcdb6 | 2773 | |
10f2d63a VZ |
2774 | if test "$enableval" = yes; then |
2775 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2776 | else | |
2777 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2778 | fi | |
698dcdb6 | 2779 | |
10f2d63a | 2780 | else |
698dcdb6 | 2781 | |
10f2d63a VZ |
2782 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2790 | |
2791 | fi | |
10f2d63a VZ |
2792 | |
2793 | ||
2794 | eval "$ac_cv_use_no_rtti" | |
2795 | if test "$no_cache" != 1; then | |
2796 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2797 | fi | |
2798 | ||
2799 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2800 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2801 | else |
698dcdb6 | 2802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2803 | fi |
698dcdb6 | 2804 | |
10f2d63a | 2805 | |
698dcdb6 | 2806 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
a72a4bfa | 2807 | echo "configure:2808: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2808 | no_cache=0 |
2809 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2810 | if test "${enable_no_exceptions+set}" = set; then | |
2811 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2812 | |
10f2d63a VZ |
2813 | if test "$enableval" = yes; then |
2814 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2815 | else | |
2816 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2817 | fi | |
698dcdb6 | 2818 | |
10f2d63a | 2819 | else |
698dcdb6 | 2820 | |
10f2d63a VZ |
2821 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2822 | if test "x$LINE" != x ; then | |
2823 | eval "DEFAULT_$LINE" | |
2824 | else | |
2825 | no_cache=1 | |
2826 | fi | |
2827 | ||
2828 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2829 | |
2830 | fi | |
10f2d63a VZ |
2831 | |
2832 | ||
2833 | eval "$ac_cv_use_no_exceptions" | |
2834 | if test "$no_cache" != 1; then | |
2835 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2836 | fi | |
2837 | ||
2838 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2839 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2840 | else |
698dcdb6 | 2841 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2842 | fi |
698dcdb6 | 2843 | |
10f2d63a | 2844 | |
698dcdb6 | 2845 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
a72a4bfa | 2846 | echo "configure:2847: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2847 | no_cache=0 |
2848 | # Check whether --enable-permissive or --disable-permissive was given. | |
2849 | if test "${enable_permissive+set}" = set; then | |
2850 | enableval="$enable_permissive" | |
698dcdb6 | 2851 | |
10f2d63a VZ |
2852 | if test "$enableval" = yes; then |
2853 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2854 | else | |
2855 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2856 | fi | |
698dcdb6 | 2857 | |
10f2d63a | 2858 | else |
698dcdb6 | 2859 | |
10f2d63a VZ |
2860 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2861 | if test "x$LINE" != x ; then | |
2862 | eval "DEFAULT_$LINE" | |
2863 | else | |
2864 | no_cache=1 | |
2865 | fi | |
2866 | ||
2867 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2868 | |
2869 | fi | |
10f2d63a VZ |
2870 | |
2871 | ||
2872 | eval "$ac_cv_use_permissive" | |
2873 | if test "$no_cache" != 1; then | |
2874 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2875 | fi | |
2876 | ||
2877 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2879 | else |
698dcdb6 | 2880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2881 | fi |
698dcdb6 | 2882 | |
10f2d63a | 2883 | |
698dcdb6 | 2884 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
a72a4bfa | 2885 | echo "configure:2886: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2886 | no_cache=0 |
2887 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2888 | if test "${enable_no_deps+set}" = set; then | |
2889 | enableval="$enable_no_deps" | |
698dcdb6 | 2890 | |
10f2d63a VZ |
2891 | if test "$enableval" = yes; then |
2892 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2893 | else | |
2894 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2895 | fi | |
698dcdb6 | 2896 | |
10f2d63a | 2897 | else |
698dcdb6 | 2898 | |
10f2d63a VZ |
2899 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2900 | if test "x$LINE" != x ; then | |
2901 | eval "DEFAULT_$LINE" | |
2902 | else | |
2903 | no_cache=1 | |
2904 | fi | |
2905 | ||
2906 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2907 | |
2908 | fi | |
10f2d63a VZ |
2909 | |
2910 | ||
2911 | eval "$ac_cv_use_no_deps" | |
2912 | if test "$no_cache" != 1; then | |
2913 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2914 | fi | |
2915 | ||
2916 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2917 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2918 | else |
698dcdb6 | 2919 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2920 | fi |
698dcdb6 VZ |
2921 | |
2922 | ||
10f2d63a | 2923 | |
54276ccf | 2924 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
a72a4bfa | 2925 | echo "configure:2926: checking for --enable-compat20" >&5 |
54276ccf VZ |
2926 | no_cache=0 |
2927 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2928 | if test "${enable_compat20+set}" = set; then | |
2929 | enableval="$enable_compat20" | |
2930 | ||
2931 | if test "$enableval" = yes; then | |
2932 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2933 | else | |
2934 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2935 | fi | |
2936 | ||
2937 | else | |
2938 | ||
2939 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2940 | if test "x$LINE" != x ; then | |
2941 | eval "DEFAULT_$LINE" | |
2942 | else | |
2943 | no_cache=1 | |
2944 | fi | |
2945 | ||
2946 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2947 | ||
2948 | fi | |
2949 | ||
2950 | ||
2951 | eval "$ac_cv_use_compat20" | |
2952 | if test "$no_cache" != 1; then | |
2953 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2954 | fi | |
2955 | ||
2956 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2957 | echo "$ac_t""yes" 1>&6 | |
2958 | else | |
2959 | echo "$ac_t""no" 1>&6 | |
2960 | fi | |
2961 | ||
2962 | ||
2963 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
a72a4bfa | 2964 | echo "configure:2965: checking for --enable-compat22" >&5 |
54276ccf VZ |
2965 | no_cache=0 |
2966 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2967 | if test "${enable_compat22+set}" = set; then | |
2968 | enableval="$enable_compat22" | |
2969 | ||
2970 | if test "$enableval" = yes; then | |
2971 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2972 | else | |
2973 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2974 | fi | |
2975 | ||
2976 | else | |
2977 | ||
2978 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2979 | if test "x$LINE" != x ; then | |
2980 | eval "DEFAULT_$LINE" | |
2981 | else | |
2982 | no_cache=1 | |
2983 | fi | |
2984 | ||
2985 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2986 | ||
2987 | fi | |
2988 | ||
2989 | ||
2990 | eval "$ac_cv_use_compat22" | |
2991 | if test "$no_cache" != 1; then | |
2992 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2993 | fi | |
2994 | ||
2995 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2996 | echo "$ac_t""yes" 1>&6 | |
2997 | else | |
2998 | echo "$ac_t""no" 1>&6 | |
2999 | fi | |
3000 | ||
3001 | ||
3002 | ||
698dcdb6 VZ |
3003 | |
3004 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
a72a4bfa | 3005 | echo "configure:3006: checking for --enable-intl" >&5 |
10f2d63a VZ |
3006 | no_cache=0 |
3007 | # Check whether --enable-intl or --disable-intl was given. | |
3008 | if test "${enable_intl+set}" = set; then | |
3009 | enableval="$enable_intl" | |
698dcdb6 | 3010 | |
10f2d63a VZ |
3011 | if test "$enableval" = yes; then |
3012 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3013 | else | |
3014 | ac_cv_use_intl='wxUSE_INTL=no' | |
3015 | fi | |
698dcdb6 | 3016 | |
10f2d63a | 3017 | else |
698dcdb6 | 3018 | |
10f2d63a VZ |
3019 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3020 | if test "x$LINE" != x ; then | |
3021 | eval "DEFAULT_$LINE" | |
3022 | else | |
3023 | no_cache=1 | |
3024 | fi | |
3025 | ||
3026 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3027 | |
3028 | fi | |
10f2d63a VZ |
3029 | |
3030 | ||
3031 | eval "$ac_cv_use_intl" | |
3032 | if test "$no_cache" != 1; then | |
3033 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3034 | fi | |
3035 | ||
3036 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3037 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3038 | else |
698dcdb6 | 3039 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3040 | fi |
698dcdb6 | 3041 | |
10f2d63a | 3042 | |
698dcdb6 | 3043 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
a72a4bfa | 3044 | echo "configure:3045: checking for --enable-config" >&5 |
10f2d63a VZ |
3045 | no_cache=0 |
3046 | # Check whether --enable-config or --disable-config was given. | |
3047 | if test "${enable_config+set}" = set; then | |
3048 | enableval="$enable_config" | |
698dcdb6 | 3049 | |
10f2d63a VZ |
3050 | if test "$enableval" = yes; then |
3051 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3052 | else | |
3053 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3054 | fi | |
698dcdb6 | 3055 | |
10f2d63a | 3056 | else |
698dcdb6 | 3057 | |
10f2d63a VZ |
3058 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3059 | if test "x$LINE" != x ; then | |
3060 | eval "DEFAULT_$LINE" | |
3061 | else | |
3062 | no_cache=1 | |
3063 | fi | |
3064 | ||
3065 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3066 | |
3067 | fi | |
10f2d63a VZ |
3068 | |
3069 | ||
3070 | eval "$ac_cv_use_config" | |
3071 | if test "$no_cache" != 1; then | |
3072 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3073 | fi | |
3074 | ||
3075 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3076 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3077 | else |
698dcdb6 | 3078 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3079 | fi |
698dcdb6 VZ |
3080 | |
3081 | ||
b12915c1 | 3082 | |
698dcdb6 | 3083 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
a72a4bfa | 3084 | echo "configure:3085: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3085 | no_cache=0 |
3086 | # Check whether --enable-sockets or --disable-sockets was given. | |
3087 | if test "${enable_sockets+set}" = set; then | |
3088 | enableval="$enable_sockets" | |
698dcdb6 | 3089 | |
10f2d63a VZ |
3090 | if test "$enableval" = yes; then |
3091 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3092 | else | |
3093 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3094 | fi | |
698dcdb6 | 3095 | |
10f2d63a | 3096 | else |
698dcdb6 | 3097 | |
10f2d63a VZ |
3098 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3099 | if test "x$LINE" != x ; then | |
3100 | eval "DEFAULT_$LINE" | |
3101 | else | |
3102 | no_cache=1 | |
3103 | fi | |
3104 | ||
3105 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3106 | |
3107 | fi | |
10f2d63a VZ |
3108 | |
3109 | ||
3110 | eval "$ac_cv_use_sockets" | |
3111 | if test "$no_cache" != 1; then | |
3112 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3113 | fi | |
3114 | ||
3115 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3116 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3117 | else |
698dcdb6 | 3118 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3119 | fi |
698dcdb6 | 3120 | |
b12915c1 | 3121 | |
698dcdb6 VZ |
3122 | |
3123 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
a72a4bfa | 3124 | echo "configure:3125: checking for --enable-ipc" >&5 |
10f2d63a | 3125 | no_cache=0 |
eb4efbdc VZ |
3126 | # Check whether --enable-ipc or --disable-ipc was given. |
3127 | if test "${enable_ipc+set}" = set; then | |
3128 | enableval="$enable_ipc" | |
698dcdb6 | 3129 | |
10f2d63a | 3130 | if test "$enableval" = yes; then |
eb4efbdc | 3131 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3132 | else |
eb4efbdc | 3133 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3134 | fi |
698dcdb6 | 3135 | |
10f2d63a | 3136 | else |
698dcdb6 | 3137 | |
eb4efbdc | 3138 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3139 | if test "x$LINE" != x ; then |
3140 | eval "DEFAULT_$LINE" | |
3141 | else | |
3142 | no_cache=1 | |
3143 | fi | |
3144 | ||
eb4efbdc | 3145 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3146 | |
3147 | fi | |
10f2d63a VZ |
3148 | |
3149 | ||
eb4efbdc | 3150 | eval "$ac_cv_use_ipc" |
10f2d63a | 3151 | if test "$no_cache" != 1; then |
eb4efbdc | 3152 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3153 | fi |
3154 | ||
eb4efbdc | 3155 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3157 | else |
698dcdb6 | 3158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3159 | fi |
698dcdb6 VZ |
3160 | |
3161 | ||
eb4efbdc | 3162 | |
1e6feb95 | 3163 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
a72a4bfa | 3164 | echo "configure:3165: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3165 | no_cache=0 |
3166 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3167 | if test "${enable_cmdline+set}" = set; then | |
3168 | enableval="$enable_cmdline" | |
3169 | ||
3170 | if test "$enableval" = yes; then | |
3171 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3172 | else | |
3173 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3174 | fi | |
3175 | ||
3176 | else | |
3177 | ||
3178 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3179 | if test "x$LINE" != x ; then | |
3180 | eval "DEFAULT_$LINE" | |
3181 | else | |
3182 | no_cache=1 | |
3183 | fi | |
3184 | ||
3185 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3186 | ||
3187 | fi | |
3188 | ||
3189 | ||
3190 | eval "$ac_cv_use_cmdline" | |
3191 | if test "$no_cache" != 1; then | |
3192 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3193 | fi | |
3194 | ||
3195 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3196 | echo "$ac_t""yes" 1>&6 | |
3197 | else | |
3198 | echo "$ac_t""no" 1>&6 | |
3199 | fi | |
3200 | ||
3201 | ||
3202 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
a72a4bfa | 3203 | echo "configure:3204: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3204 | no_cache=0 |
3205 | # Check whether --enable-datetime or --disable-datetime was given. | |
3206 | if test "${enable_datetime+set}" = set; then | |
3207 | enableval="$enable_datetime" | |
3208 | ||
3209 | if test "$enableval" = yes; then | |
3210 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3211 | else | |
3212 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3213 | fi | |
3214 | ||
3215 | else | |
3216 | ||
3217 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3218 | if test "x$LINE" != x ; then | |
3219 | eval "DEFAULT_$LINE" | |
3220 | else | |
3221 | no_cache=1 | |
3222 | fi | |
3223 | ||
3224 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3225 | ||
3226 | fi | |
3227 | ||
3228 | ||
3229 | eval "$ac_cv_use_datetime" | |
3230 | if test "$no_cache" != 1; then | |
3231 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3232 | fi | |
3233 | ||
3234 | if test "$wxUSE_DATETIME" = yes; then | |
3235 | echo "$ac_t""yes" 1>&6 | |
3236 | else | |
3237 | echo "$ac_t""no" 1>&6 | |
3238 | fi | |
3239 | ||
3240 | ||
3241 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
a72a4bfa | 3242 | echo "configure:3243: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3243 | no_cache=0 |
3244 | # Check whether --enable-timedate or --disable-timedate was given. | |
3245 | if test "${enable_timedate+set}" = set; then | |
3246 | enableval="$enable_timedate" | |
3247 | ||
3248 | if test "$enableval" = yes; then | |
3249 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3250 | else | |
3251 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3252 | fi | |
3253 | ||
3254 | else | |
3255 | ||
3256 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3257 | if test "x$LINE" != x ; then | |
3258 | eval "DEFAULT_$LINE" | |
3259 | else | |
3260 | no_cache=1 | |
3261 | fi | |
3262 | ||
3263 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3264 | ||
3265 | fi | |
3266 | ||
3267 | ||
3268 | eval "$ac_cv_use_timedate" | |
3269 | if test "$no_cache" != 1; then | |
3270 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3271 | fi | |
3272 | ||
3273 | if test "$wxUSE_TIMEDATE" = yes; then | |
3274 | echo "$ac_t""yes" 1>&6 | |
3275 | else | |
3276 | echo "$ac_t""no" 1>&6 | |
3277 | fi | |
3278 | ||
3279 | ||
3280 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
a72a4bfa | 3281 | echo "configure:3282: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3282 | no_cache=0 |
3283 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3284 | if test "${enable_stopwatch+set}" = set; then | |
3285 | enableval="$enable_stopwatch" | |
3286 | ||
3287 | if test "$enableval" = yes; then | |
3288 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3289 | else | |
3290 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3291 | fi | |
3292 | ||
3293 | else | |
3294 | ||
3295 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3296 | if test "x$LINE" != x ; then | |
3297 | eval "DEFAULT_$LINE" | |
3298 | else | |
3299 | no_cache=1 | |
3300 | fi | |
3301 | ||
3302 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3303 | ||
3304 | fi | |
3305 | ||
3306 | ||
3307 | eval "$ac_cv_use_stopwatch" | |
3308 | if test "$no_cache" != 1; then | |
3309 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3310 | fi | |
3311 | ||
3312 | if test "$wxUSE_STOPWATCH" = yes; then | |
3313 | echo "$ac_t""yes" 1>&6 | |
3314 | else | |
3315 | echo "$ac_t""no" 1>&6 | |
3316 | fi | |
3317 | ||
3318 | ||
698dcdb6 | 3319 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
a72a4bfa | 3320 | echo "configure:3321: checking for --enable-dialupman" >&5 |
10f2d63a | 3321 | no_cache=0 |
eb4efbdc VZ |
3322 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3323 | if test "${enable_dialupman+set}" = set; then | |
3324 | enableval="$enable_dialupman" | |
698dcdb6 | 3325 | |
10f2d63a | 3326 | if test "$enableval" = yes; then |
eb4efbdc | 3327 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3328 | else |
eb4efbdc | 3329 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3330 | fi |
698dcdb6 | 3331 | |
10f2d63a | 3332 | else |
698dcdb6 | 3333 | |
eb4efbdc | 3334 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3335 | if test "x$LINE" != x ; then |
3336 | eval "DEFAULT_$LINE" | |
3337 | else | |
3338 | no_cache=1 | |
3339 | fi | |
3340 | ||
eb4efbdc | 3341 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3342 | |
3343 | fi | |
10f2d63a VZ |
3344 | |
3345 | ||
eb4efbdc | 3346 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3347 | if test "$no_cache" != 1; then |
eb4efbdc | 3348 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3349 | fi |
3350 | ||
eb4efbdc | 3351 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3352 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3353 | else |
698dcdb6 | 3354 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3355 | fi |
698dcdb6 | 3356 | |
10f2d63a | 3357 | |
698dcdb6 | 3358 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
a72a4bfa | 3359 | echo "configure:3360: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3360 | no_cache=0 |
3361 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3362 | if test "${enable_apple_ieee+set}" = set; then | |
3363 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3364 | |
10f2d63a VZ |
3365 | if test "$enableval" = yes; then |
3366 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3367 | else | |
3368 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3369 | fi | |
698dcdb6 | 3370 | |
10f2d63a | 3371 | else |
698dcdb6 | 3372 | |
10f2d63a VZ |
3373 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3374 | if test "x$LINE" != x ; then | |
3375 | eval "DEFAULT_$LINE" | |
3376 | else | |
3377 | no_cache=1 | |
3378 | fi | |
3379 | ||
3380 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3381 | |
3382 | fi | |
10f2d63a VZ |
3383 | |
3384 | ||
3385 | eval "$ac_cv_use_apple_ieee" | |
3386 | if test "$no_cache" != 1; then | |
3387 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3388 | fi | |
3389 | ||
3390 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3391 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3392 | else |
698dcdb6 | 3393 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3394 | fi |
698dcdb6 | 3395 | |
10f2d63a | 3396 | |
1e6feb95 | 3397 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
a72a4bfa | 3398 | echo "configure:3399: checking for --enable-timer" >&5 |
10f2d63a | 3399 | no_cache=0 |
1e6feb95 VZ |
3400 | # Check whether --enable-timer or --disable-timer was given. |
3401 | if test "${enable_timer+set}" = set; then | |
3402 | enableval="$enable_timer" | |
698dcdb6 | 3403 | |
10f2d63a | 3404 | if test "$enableval" = yes; then |
1e6feb95 | 3405 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3406 | else |
1e6feb95 | 3407 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3408 | fi |
698dcdb6 | 3409 | |
10f2d63a | 3410 | else |
698dcdb6 | 3411 | |
1e6feb95 | 3412 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3413 | if test "x$LINE" != x ; then |
3414 | eval "DEFAULT_$LINE" | |
3415 | else | |
3416 | no_cache=1 | |
3417 | fi | |
3418 | ||
1e6feb95 | 3419 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3420 | |
3421 | fi | |
10f2d63a VZ |
3422 | |
3423 | ||
1e6feb95 | 3424 | eval "$ac_cv_use_timer" |
10f2d63a | 3425 | if test "$no_cache" != 1; then |
1e6feb95 | 3426 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3427 | fi |
3428 | ||
1e6feb95 | 3429 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3430 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3431 | else |
698dcdb6 | 3432 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3433 | fi |
698dcdb6 | 3434 | |
10f2d63a | 3435 | |
698dcdb6 | 3436 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
a72a4bfa | 3437 | echo "configure:3438: checking for --enable-wave" >&5 |
10f2d63a VZ |
3438 | no_cache=0 |
3439 | # Check whether --enable-wave or --disable-wave was given. | |
3440 | if test "${enable_wave+set}" = set; then | |
3441 | enableval="$enable_wave" | |
698dcdb6 | 3442 | |
10f2d63a VZ |
3443 | if test "$enableval" = yes; then |
3444 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3445 | else | |
3446 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3447 | fi | |
698dcdb6 | 3448 | |
10f2d63a | 3449 | else |
698dcdb6 | 3450 | |
10f2d63a VZ |
3451 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3452 | if test "x$LINE" != x ; then | |
3453 | eval "DEFAULT_$LINE" | |
3454 | else | |
3455 | no_cache=1 | |
3456 | fi | |
3457 | ||
3458 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3459 | |
3460 | fi | |
10f2d63a VZ |
3461 | |
3462 | ||
3463 | eval "$ac_cv_use_wave" | |
3464 | if test "$no_cache" != 1; then | |
3465 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3466 | fi | |
3467 | ||
3468 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3469 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3470 | else |
698dcdb6 | 3471 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3472 | fi |
698dcdb6 | 3473 | |
10f2d63a | 3474 | |
698dcdb6 | 3475 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
a72a4bfa | 3476 | echo "configure:3477: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3477 | no_cache=0 |
3478 | # Check whether --enable-fraction or --disable-fraction was given. | |
3479 | if test "${enable_fraction+set}" = set; then | |
3480 | enableval="$enable_fraction" | |
698dcdb6 | 3481 | |
10f2d63a VZ |
3482 | if test "$enableval" = yes; then |
3483 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3484 | else | |
3485 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3486 | fi | |
698dcdb6 | 3487 | |
10f2d63a | 3488 | else |
698dcdb6 | 3489 | |
10f2d63a VZ |
3490 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3491 | if test "x$LINE" != x ; then | |
3492 | eval "DEFAULT_$LINE" | |
3493 | else | |
3494 | no_cache=1 | |
3495 | fi | |
3496 | ||
3497 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3498 | |
3499 | fi | |
10f2d63a VZ |
3500 | |
3501 | ||
3502 | eval "$ac_cv_use_fraction" | |
3503 | if test "$no_cache" != 1; then | |
3504 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3505 | fi | |
3506 | ||
3507 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3508 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3509 | else |
698dcdb6 | 3510 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3511 | fi |
698dcdb6 | 3512 | |
10f2d63a | 3513 | |
698dcdb6 | 3514 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
a72a4bfa | 3515 | echo "configure:3516: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3516 | no_cache=0 |
3517 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3518 | if test "${enable_dynlib+set}" = set; then | |
3519 | enableval="$enable_dynlib" | |
698dcdb6 | 3520 | |
10f2d63a VZ |
3521 | if test "$enableval" = yes; then |
3522 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3523 | else | |
3524 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3525 | fi | |
698dcdb6 | 3526 | |
10f2d63a | 3527 | else |
698dcdb6 | 3528 | |
10f2d63a VZ |
3529 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3530 | if test "x$LINE" != x ; then | |
3531 | eval "DEFAULT_$LINE" | |
3532 | else | |
3533 | no_cache=1 | |
3534 | fi | |
3535 | ||
3536 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3537 | |
3538 | fi | |
10f2d63a VZ |
3539 | |
3540 | ||
3541 | eval "$ac_cv_use_dynlib" | |
3542 | if test "$no_cache" != 1; then | |
3543 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3544 | fi | |
3545 | ||
3546 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3547 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3548 | else |
698dcdb6 | 3549 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3550 | fi |
698dcdb6 | 3551 | |
10f2d63a | 3552 | |
0b9ab0bd | 3553 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
a72a4bfa | 3554 | echo "configure:3555: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3555 | no_cache=0 |
3556 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3557 | if test "${enable_dynamicloader+set}" = set; then | |
3558 | enableval="$enable_dynamicloader" | |
3559 | ||
3560 | if test "$enableval" = yes; then | |
3561 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3562 | else | |
3563 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3564 | fi | |
3565 | ||
3566 | else | |
3567 | ||
3568 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3569 | if test "x$LINE" != x ; then | |
3570 | eval "DEFAULT_$LINE" | |
3571 | else | |
3572 | no_cache=1 | |
3573 | fi | |
3574 | ||
3575 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3576 | ||
3577 | fi | |
3578 | ||
3579 | ||
3580 | eval "$ac_cv_use_dynamicloader" | |
3581 | if test "$no_cache" != 1; then | |
3582 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3583 | fi | |
3584 | ||
3585 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3586 | echo "$ac_t""yes" 1>&6 | |
3587 | else | |
3588 | echo "$ac_t""no" 1>&6 | |
3589 | fi | |
3590 | ||
3591 | ||
698dcdb6 | 3592 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
a72a4bfa | 3593 | echo "configure:3594: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3594 | no_cache=0 |
3595 | # Check whether --enable-longlong or --disable-longlong was given. | |
3596 | if test "${enable_longlong+set}" = set; then | |
3597 | enableval="$enable_longlong" | |
698dcdb6 | 3598 | |
10f2d63a VZ |
3599 | if test "$enableval" = yes; then |
3600 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3601 | else | |
3602 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3603 | fi | |
698dcdb6 | 3604 | |
10f2d63a | 3605 | else |
698dcdb6 | 3606 | |
10f2d63a VZ |
3607 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3608 | if test "x$LINE" != x ; then | |
3609 | eval "DEFAULT_$LINE" | |
3610 | else | |
3611 | no_cache=1 | |
3612 | fi | |
3613 | ||
3614 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3615 | |
3616 | fi | |
10f2d63a VZ |
3617 | |
3618 | ||
3619 | eval "$ac_cv_use_longlong" | |
3620 | if test "$no_cache" != 1; then | |
3621 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3622 | fi | |
3623 | ||
3624 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3626 | else |
698dcdb6 | 3627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3628 | fi |
698dcdb6 | 3629 | |
10f2d63a | 3630 | |
698dcdb6 | 3631 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
a72a4bfa | 3632 | echo "configure:3633: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3633 | no_cache=0 |
3634 | # Check whether --enable-geometry or --disable-geometry was given. | |
3635 | if test "${enable_geometry+set}" = set; then | |
3636 | enableval="$enable_geometry" | |
698dcdb6 | 3637 | |
e8f65ba6 RR |
3638 | if test "$enableval" = yes; then |
3639 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3640 | else | |
3641 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3642 | fi | |
698dcdb6 | 3643 | |
e8f65ba6 | 3644 | else |
698dcdb6 | 3645 | |
e8f65ba6 RR |
3646 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3647 | if test "x$LINE" != x ; then | |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
3653 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3654 | |
3655 | fi | |
e8f65ba6 RR |
3656 | |
3657 | ||
3658 | eval "$ac_cv_use_geometry" | |
3659 | if test "$no_cache" != 1; then | |
3660 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3661 | fi | |
3662 | ||
3663 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3664 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3665 | else |
698dcdb6 | 3666 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3667 | fi |
698dcdb6 | 3668 | |
e8f65ba6 | 3669 | |
698dcdb6 | 3670 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
a72a4bfa | 3671 | echo "configure:3672: checking for --enable-log" >&5 |
10f2d63a VZ |
3672 | no_cache=0 |
3673 | # Check whether --enable-log or --disable-log was given. | |
3674 | if test "${enable_log+set}" = set; then | |
3675 | enableval="$enable_log" | |
698dcdb6 | 3676 | |
10f2d63a VZ |
3677 | if test "$enableval" = yes; then |
3678 | ac_cv_use_log='wxUSE_LOG=yes' | |
3679 | else | |
3680 | ac_cv_use_log='wxUSE_LOG=no' | |
3681 | fi | |
698dcdb6 | 3682 | |
10f2d63a | 3683 | else |
698dcdb6 | 3684 | |
10f2d63a VZ |
3685 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3686 | if test "x$LINE" != x ; then | |
3687 | eval "DEFAULT_$LINE" | |
3688 | else | |
3689 | no_cache=1 | |
3690 | fi | |
3691 | ||
3692 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3693 | |
3694 | fi | |
10f2d63a VZ |
3695 | |
3696 | ||
3697 | eval "$ac_cv_use_log" | |
3698 | if test "$no_cache" != 1; then | |
3699 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3700 | fi | |
3701 | ||
3702 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3703 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3704 | else |
698dcdb6 | 3705 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3706 | fi |
698dcdb6 | 3707 | |
10f2d63a | 3708 | |
698dcdb6 | 3709 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
a72a4bfa | 3710 | echo "configure:3711: checking for --enable-streams" >&5 |
10f2d63a VZ |
3711 | no_cache=0 |
3712 | # Check whether --enable-streams or --disable-streams was given. | |
3713 | if test "${enable_streams+set}" = set; then | |
3714 | enableval="$enable_streams" | |
698dcdb6 | 3715 | |
10f2d63a VZ |
3716 | if test "$enableval" = yes; then |
3717 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3718 | else | |
3719 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3720 | fi | |
698dcdb6 | 3721 | |
10f2d63a | 3722 | else |
698dcdb6 | 3723 | |
10f2d63a VZ |
3724 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3725 | if test "x$LINE" != x ; then | |
3726 | eval "DEFAULT_$LINE" | |
3727 | else | |
3728 | no_cache=1 | |
3729 | fi | |
3730 | ||
3731 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3732 | |
3733 | fi | |
10f2d63a VZ |
3734 | |
3735 | ||
3736 | eval "$ac_cv_use_streams" | |
3737 | if test "$no_cache" != 1; then | |
3738 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3739 | fi | |
3740 | ||
3741 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3742 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3743 | else |
698dcdb6 | 3744 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3745 | fi |
698dcdb6 | 3746 | |
10f2d63a | 3747 | |
698dcdb6 | 3748 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
a72a4bfa | 3749 | echo "configure:3750: checking for --enable-file" >&5 |
10f2d63a VZ |
3750 | no_cache=0 |
3751 | # Check whether --enable-file or --disable-file was given. | |
3752 | if test "${enable_file+set}" = set; then | |
3753 | enableval="$enable_file" | |
698dcdb6 | 3754 | |
10f2d63a VZ |
3755 | if test "$enableval" = yes; then |
3756 | ac_cv_use_file='wxUSE_FILE=yes' | |
3757 | else | |
3758 | ac_cv_use_file='wxUSE_FILE=no' | |
3759 | fi | |
698dcdb6 | 3760 | |
10f2d63a | 3761 | else |
698dcdb6 | 3762 | |
10f2d63a VZ |
3763 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3764 | if test "x$LINE" != x ; then | |
3765 | eval "DEFAULT_$LINE" | |
3766 | else | |
3767 | no_cache=1 | |
3768 | fi | |
3769 | ||
3770 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3771 | |
3772 | fi | |
10f2d63a VZ |
3773 | |
3774 | ||
3775 | eval "$ac_cv_use_file" | |
3776 | if test "$no_cache" != 1; then | |
3777 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3778 | fi | |
3779 | ||
3780 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3782 | else |
698dcdb6 | 3783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3784 | fi |
698dcdb6 | 3785 | |
10f2d63a | 3786 | |
1e6feb95 | 3787 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
a72a4bfa | 3788 | echo "configure:3789: checking for --enable-ffile" >&5 |
10f2d63a | 3789 | no_cache=0 |
1e6feb95 VZ |
3790 | # Check whether --enable-ffile or --disable-ffile was given. |
3791 | if test "${enable_ffile+set}" = set; then | |
3792 | enableval="$enable_ffile" | |
698dcdb6 | 3793 | |
10f2d63a | 3794 | if test "$enableval" = yes; then |
1e6feb95 | 3795 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3796 | else |
1e6feb95 | 3797 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3798 | fi |
698dcdb6 | 3799 | |
10f2d63a | 3800 | else |
698dcdb6 | 3801 | |
1e6feb95 | 3802 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3803 | if test "x$LINE" != x ; then |
3804 | eval "DEFAULT_$LINE" | |
3805 | else | |
3806 | no_cache=1 | |
3807 | fi | |
3808 | ||
1e6feb95 | 3809 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3810 | |
3811 | fi | |
10f2d63a VZ |
3812 | |
3813 | ||
1e6feb95 | 3814 | eval "$ac_cv_use_ffile" |
10f2d63a | 3815 | if test "$no_cache" != 1; then |
1e6feb95 | 3816 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3817 | fi |
3818 | ||
1e6feb95 | 3819 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3821 | else |
698dcdb6 | 3822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3823 | fi |
698dcdb6 | 3824 | |
10f2d63a | 3825 | |
a3a584a7 | 3826 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
a72a4bfa | 3827 | echo "configure:3828: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3828 | no_cache=0 |
3829 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3830 | if test "${enable_textbuf+set}" = set; then | |
3831 | enableval="$enable_textbuf" | |
3832 | ||
3833 | if test "$enableval" = yes; then | |
3834 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3835 | else | |
3836 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3837 | fi | |
3838 | ||
3839 | else | |
3840 | ||
3841 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
3849 | ||
3850 | fi | |
3851 | ||
3852 | ||
3853 | eval "$ac_cv_use_textbuf" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
3859 | echo "$ac_t""yes" 1>&6 | |
3860 | else | |
3861 | echo "$ac_t""no" 1>&6 | |
3862 | fi | |
3863 | ||
3864 | ||
1e6feb95 | 3865 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
a72a4bfa | 3866 | echo "configure:3867: checking for --enable-textfile" >&5 |
10f2d63a | 3867 | no_cache=0 |
1e6feb95 VZ |
3868 | # Check whether --enable-textfile or --disable-textfile was given. |
3869 | if test "${enable_textfile+set}" = set; then | |
3870 | enableval="$enable_textfile" | |
698dcdb6 | 3871 | |
10f2d63a | 3872 | if test "$enableval" = yes; then |
1e6feb95 | 3873 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3874 | else |
1e6feb95 | 3875 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3876 | fi |
698dcdb6 | 3877 | |
10f2d63a | 3878 | else |
698dcdb6 | 3879 | |
1e6feb95 | 3880 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3881 | if test "x$LINE" != x ; then |
3882 | eval "DEFAULT_$LINE" | |
3883 | else | |
3884 | no_cache=1 | |
3885 | fi | |
3886 | ||
1e6feb95 | 3887 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3888 | |
3889 | fi | |
10f2d63a VZ |
3890 | |
3891 | ||
1e6feb95 | 3892 | eval "$ac_cv_use_textfile" |
10f2d63a | 3893 | if test "$no_cache" != 1; then |
1e6feb95 | 3894 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3895 | fi |
3896 | ||
1e6feb95 | 3897 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3899 | else |
698dcdb6 | 3900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3901 | fi |
698dcdb6 | 3902 | |
10f2d63a | 3903 | |
1e6feb95 | 3904 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
a72a4bfa | 3905 | echo "configure:3906: checking for --enable-fontmap" >&5 |
10f2d63a | 3906 | no_cache=0 |
1e6feb95 VZ |
3907 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3908 | if test "${enable_fontmap+set}" = set; then | |
3909 | enableval="$enable_fontmap" | |
698dcdb6 | 3910 | |
10f2d63a | 3911 | if test "$enableval" = yes; then |
1e6feb95 | 3912 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3913 | else |
1e6feb95 | 3914 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3915 | fi |
698dcdb6 | 3916 | |
10f2d63a | 3917 | else |
698dcdb6 | 3918 | |
1e6feb95 | 3919 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3920 | if test "x$LINE" != x ; then |
3921 | eval "DEFAULT_$LINE" | |
3922 | else | |
3923 | no_cache=1 | |
3924 | fi | |
3925 | ||
1e6feb95 | 3926 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3927 | |
3928 | fi | |
10f2d63a VZ |
3929 | |
3930 | ||
1e6feb95 | 3931 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3932 | if test "$no_cache" != 1; then |
1e6feb95 | 3933 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3934 | fi |
3935 | ||
1e6feb95 | 3936 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3938 | else |
698dcdb6 | 3939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3940 | fi |
698dcdb6 | 3941 | |
10f2d63a | 3942 | |
1e6feb95 | 3943 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
a72a4bfa | 3944 | echo "configure:3945: checking for --enable-unicode" >&5 |
10f2d63a | 3945 | no_cache=0 |
1e6feb95 VZ |
3946 | # Check whether --enable-unicode or --disable-unicode was given. |
3947 | if test "${enable_unicode+set}" = set; then | |
3948 | enableval="$enable_unicode" | |
3949 | ||
3950 | if test "$enableval" = yes; then | |
3951 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3952 | else | |
3953 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3954 | fi | |
3955 | ||
3956 | else | |
3957 | ||
3958 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3959 | if test "x$LINE" != x ; then | |
3960 | eval "DEFAULT_$LINE" | |
3961 | else | |
3962 | no_cache=1 | |
3963 | fi | |
3964 | ||
3965 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3966 | ||
3967 | fi | |
3968 | ||
3969 | ||
3970 | eval "$ac_cv_use_unicode" | |
3971 | if test "$no_cache" != 1; then | |
3972 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3973 | fi | |
3974 | ||
3975 | if test "$wxUSE_UNICODE" = yes; then | |
3976 | echo "$ac_t""yes" 1>&6 | |
3977 | else | |
3978 | echo "$ac_t""no" 1>&6 | |
3979 | fi | |
3980 | ||
3981 | ||
a72a4bfa VS |
3982 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
3983 | echo "configure:3984: checking for --enable-mslu" >&5 | |
3984 | no_cache=0 | |
3985 | # Check whether --enable-mslu or --disable-mslu was given. | |
3986 | if test "${enable_mslu+set}" = set; then | |
3987 | enableval="$enable_mslu" | |
3988 | ||
3989 | if test "$enableval" = yes; then | |
3990 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
3991 | else | |
3992 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
3993 | fi | |
3994 | ||
3995 | else | |
3996 | ||
3997 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
3998 | if test "x$LINE" != x ; then | |
3999 | eval "DEFAULT_$LINE" | |
4000 | else | |
4001 | no_cache=1 | |
4002 | fi | |
4003 | ||
4004 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4005 | ||
4006 | fi | |
4007 | ||
4008 | ||
4009 | eval "$ac_cv_use_mslu" | |
4010 | if test "$no_cache" != 1; then | |
4011 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4012 | fi | |
4013 | ||
4014 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4015 | echo "$ac_t""yes" 1>&6 | |
4016 | else | |
4017 | echo "$ac_t""no" 1>&6 | |
4018 | fi | |
4019 | ||
4020 | ||
1e6feb95 | 4021 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
a72a4bfa | 4022 | echo "configure:4023: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4023 | no_cache=0 |
4024 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4025 | if test "${enable_wxprintfv+set}" = set; then | |
4026 | enableval="$enable_wxprintfv" | |
4027 | ||
4028 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4029 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4030 | else | |
4031 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4032 | fi | |
698dcdb6 | 4033 | |
10f2d63a | 4034 | else |
698dcdb6 | 4035 | |
10f2d63a VZ |
4036 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4037 | if test "x$LINE" != x ; then | |
4038 | eval "DEFAULT_$LINE" | |
4039 | else | |
4040 | no_cache=1 | |
4041 | fi | |
4042 | ||
4043 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4044 | |
4045 | fi | |
10f2d63a VZ |
4046 | |
4047 | ||
4048 | eval "$ac_cv_use_wxprintfv" | |
4049 | if test "$no_cache" != 1; then | |
4050 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4051 | fi | |
4052 | ||
4053 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4054 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4055 | else |
698dcdb6 | 4056 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4057 | fi |
698dcdb6 | 4058 | |
10f2d63a | 4059 | |
698dcdb6 | 4060 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
a72a4bfa | 4061 | echo "configure:4062: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4062 | no_cache=0 |
4063 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4064 | if test "${enable_std_iostreams+set}" = set; then | |
4065 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4066 | |
10f2d63a VZ |
4067 | if test "$enableval" = yes; then |
4068 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4069 | else | |
4070 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4071 | fi | |
698dcdb6 | 4072 | |
10f2d63a | 4073 | else |
698dcdb6 | 4074 | |
10f2d63a VZ |
4075 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4076 | if test "x$LINE" != x ; then | |
4077 | eval "DEFAULT_$LINE" | |
4078 | else | |
4079 | no_cache=1 | |
4080 | fi | |
4081 | ||
4082 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4083 | |
4084 | fi | |
10f2d63a VZ |
4085 | |
4086 | ||
4087 | eval "$ac_cv_use_std_iostreams" | |
4088 | if test "$no_cache" != 1; then | |
4089 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4090 | fi | |
4091 | ||
4092 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4093 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4094 | else |
698dcdb6 | 4095 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4096 | fi |
698dcdb6 | 4097 | |
10f2d63a | 4098 | |
698dcdb6 | 4099 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
a72a4bfa | 4100 | echo "configure:4101: checking for --enable-filesystem" >&5 |
24528b0c VS |
4101 | no_cache=0 |
4102 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4103 | if test "${enable_filesystem+set}" = set; then | |
4104 | enableval="$enable_filesystem" | |
698dcdb6 | 4105 | |
24528b0c VS |
4106 | if test "$enableval" = yes; then |
4107 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4108 | else | |
4109 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4110 | fi | |
698dcdb6 | 4111 | |
24528b0c | 4112 | else |
698dcdb6 | 4113 | |
24528b0c VS |
4114 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4115 | if test "x$LINE" != x ; then | |
4116 | eval "DEFAULT_$LINE" | |
4117 | else | |
4118 | no_cache=1 | |
4119 | fi | |
4120 | ||
4121 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4122 | |
4123 | fi | |
24528b0c VS |
4124 | |
4125 | ||
4126 | eval "$ac_cv_use_filesystem" | |
4127 | if test "$no_cache" != 1; then | |
4128 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4129 | fi | |
4130 | ||
4131 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4132 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4133 | else |
698dcdb6 | 4134 | echo "$ac_t""no" 1>&6 |
24528b0c | 4135 | fi |
698dcdb6 | 4136 | |
24528b0c | 4137 | |
698dcdb6 | 4138 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
a72a4bfa | 4139 | echo "configure:4140: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4140 | no_cache=0 |
4141 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4142 | if test "${enable_fs_inet+set}" = set; then | |
4143 | enableval="$enable_fs_inet" | |
698dcdb6 | 4144 | |
10f2d63a VZ |
4145 | if test "$enableval" = yes; then |
4146 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4147 | else | |
4148 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4149 | fi | |
698dcdb6 | 4150 | |
10f2d63a | 4151 | else |
698dcdb6 | 4152 | |
10f2d63a VZ |
4153 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4154 | if test "x$LINE" != x ; then | |
4155 | eval "DEFAULT_$LINE" | |
4156 | else | |
4157 | no_cache=1 | |
4158 | fi | |
4159 | ||
4160 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4161 | |
4162 | fi | |
10f2d63a VZ |
4163 | |
4164 | ||
4165 | eval "$ac_cv_use_fs_inet" | |
4166 | if test "$no_cache" != 1; then | |
4167 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4168 | fi | |
4169 | ||
4170 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4171 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4172 | else |
698dcdb6 | 4173 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4174 | fi |
698dcdb6 | 4175 | |
10f2d63a | 4176 | |
698dcdb6 | 4177 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
a72a4bfa | 4178 | echo "configure:4179: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4179 | no_cache=0 |
4180 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4181 | if test "${enable_fs_zip+set}" = set; then | |
4182 | enableval="$enable_fs_zip" | |
698dcdb6 | 4183 | |
10f2d63a VZ |
4184 | if test "$enableval" = yes; then |
4185 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4186 | else | |
4187 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4188 | fi | |
698dcdb6 | 4189 | |
10f2d63a | 4190 | else |
698dcdb6 | 4191 | |
10f2d63a VZ |
4192 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4193 | if test "x$LINE" != x ; then | |
4194 | eval "DEFAULT_$LINE" | |
4195 | else | |
4196 | no_cache=1 | |
4197 | fi | |
4198 | ||
4199 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4200 | |
4201 | fi | |
10f2d63a VZ |
4202 | |
4203 | ||
4204 | eval "$ac_cv_use_fs_zip" | |
4205 | if test "$no_cache" != 1; then | |
4206 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4207 | fi | |
4208 | ||
4209 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4210 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4211 | else |
698dcdb6 | 4212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4213 | fi |
698dcdb6 | 4214 | |
10f2d63a | 4215 | |
698dcdb6 | 4216 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
a72a4bfa | 4217 | echo "configure:4218: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4218 | no_cache=0 |
4219 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4220 | if test "${enable_zipstream+set}" = set; then | |
4221 | enableval="$enable_zipstream" | |
698dcdb6 | 4222 | |
10f2d63a VZ |
4223 | if test "$enableval" = yes; then |
4224 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4225 | else | |
4226 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4227 | fi | |
698dcdb6 | 4228 | |
10f2d63a | 4229 | else |
698dcdb6 | 4230 | |
10f2d63a VZ |
4231 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4232 | if test "x$LINE" != x ; then | |
4233 | eval "DEFAULT_$LINE" | |
4234 | else | |
4235 | no_cache=1 | |
4236 | fi | |
4237 | ||
4238 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4239 | |
4240 | fi | |
10f2d63a VZ |
4241 | |
4242 | ||
4243 | eval "$ac_cv_use_zipstream" | |
4244 | if test "$no_cache" != 1; then | |
4245 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4246 | fi | |
4247 | ||
4248 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4249 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4250 | else |
698dcdb6 | 4251 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4252 | fi |
698dcdb6 | 4253 | |
10f2d63a | 4254 | |
698dcdb6 VZ |
4255 | |
4256 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
a72a4bfa | 4257 | echo "configure:4258: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4258 | no_cache=0 |
4259 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4260 | if test "${enable_catch_segvs+set}" = set; then | |
4261 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4262 | |
eb4efbdc VZ |
4263 | if test "$enableval" = yes; then |
4264 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4265 | else | |
4266 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4267 | fi | |
698dcdb6 | 4268 | |
eb4efbdc | 4269 | else |
698dcdb6 | 4270 | |
eb4efbdc VZ |
4271 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4272 | if test "x$LINE" != x ; then | |
4273 | eval "DEFAULT_$LINE" | |
4274 | else | |
4275 | no_cache=1 | |
4276 | fi | |
4277 | ||
4278 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4279 | |
4280 | fi | |
eb4efbdc VZ |
4281 | |
4282 | ||
4283 | eval "$ac_cv_use_catch_segvs" | |
4284 | if test "$no_cache" != 1; then | |
4285 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4286 | fi | |
4287 | ||
4288 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4289 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4290 | else |
698dcdb6 | 4291 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4292 | fi |
698dcdb6 | 4293 | |
eb4efbdc | 4294 | |
698dcdb6 | 4295 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
a72a4bfa | 4296 | echo "configure:4297: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4297 | no_cache=0 |
4298 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4299 | if test "${enable_snglinst+set}" = set; then | |
4300 | enableval="$enable_snglinst" | |
698dcdb6 | 4301 | |
4f3c5f06 VZ |
4302 | if test "$enableval" = yes; then |
4303 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4304 | else | |
4305 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4306 | fi | |
698dcdb6 | 4307 | |
4f3c5f06 | 4308 | else |
698dcdb6 | 4309 | |
4f3c5f06 VZ |
4310 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4311 | if test "x$LINE" != x ; then | |
4312 | eval "DEFAULT_$LINE" | |
4313 | else | |
4314 | no_cache=1 | |
4315 | fi | |
4316 | ||
4317 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4318 | |
4319 | fi | |
4f3c5f06 VZ |
4320 | |
4321 | ||
4322 | eval "$ac_cv_use_snglinst" | |
4323 | if test "$no_cache" != 1; then | |
4324 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4325 | fi | |
4326 | ||
4327 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4328 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4329 | else |
698dcdb6 | 4330 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4331 | fi |
698dcdb6 VZ |
4332 | |
4333 | ||
eb4efbdc | 4334 | |
1e6feb95 | 4335 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
a72a4bfa | 4336 | echo "configure:4337: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4337 | no_cache=0 |
4338 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4339 | if test "${enable_mimetype+set}" = set; then | |
4340 | enableval="$enable_mimetype" | |
4341 | ||
4342 | if test "$enableval" = yes; then | |
4343 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4344 | else | |
4345 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4346 | fi | |
4347 | ||
4348 | else | |
4349 | ||
4350 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4351 | if test "x$LINE" != x ; then | |
4352 | eval "DEFAULT_$LINE" | |
4353 | else | |
4354 | no_cache=1 | |
4355 | fi | |
4356 | ||
4357 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4358 | ||
4359 | fi | |
4360 | ||
4361 | ||
4362 | eval "$ac_cv_use_mimetype" | |
4363 | if test "$no_cache" != 1; then | |
4364 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4365 | fi | |
4366 | ||
4367 | if test "$wxUSE_MIMETYPE" = yes; then | |
4368 | echo "$ac_t""yes" 1>&6 | |
4369 | else | |
4370 | echo "$ac_t""no" 1>&6 | |
4371 | fi | |
4372 | ||
4373 | ||
3e44f09d | 4374 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
a72a4bfa | 4375 | echo "configure:4376: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4376 | no_cache=0 |
4377 | # Check whether --enable-system_options or --disable-system_options was given. | |
4378 | if test "${enable_system_options+set}" = set; then | |
4379 | enableval="$enable_system_options" | |
4380 | ||
4381 | if test "$enableval" = yes; then | |
4382 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4383 | else | |
4384 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4385 | fi | |
4386 | ||
4387 | else | |
4388 | ||
4389 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4390 | if test "x$LINE" != x ; then | |
4391 | eval "DEFAULT_$LINE" | |
4392 | else | |
4393 | no_cache=1 | |
4394 | fi | |
4395 | ||
4396 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4397 | ||
4398 | fi | |
4399 | ||
4400 | ||
4401 | eval "$ac_cv_use_system_options" | |
4402 | if test "$no_cache" != 1; then | |
4403 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4404 | fi | |
4405 | ||
4406 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4407 | echo "$ac_t""yes" 1>&6 | |
4408 | else | |
4409 | echo "$ac_t""no" 1>&6 | |
4410 | fi | |
4411 | ||
4412 | ||
1e6feb95 | 4413 | |
698dcdb6 VZ |
4414 | |
4415 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
a72a4bfa | 4416 | echo "configure:4417: checking for --enable-threads" >&5 |
10f2d63a VZ |
4417 | no_cache=0 |
4418 | # Check whether --enable-threads or --disable-threads was given. | |
4419 | if test "${enable_threads+set}" = set; then | |
4420 | enableval="$enable_threads" | |
698dcdb6 | 4421 | |
10f2d63a VZ |
4422 | if test "$enableval" = yes; then |
4423 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4424 | else | |
4425 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4426 | fi | |
698dcdb6 | 4427 | |
10f2d63a | 4428 | else |
698dcdb6 | 4429 | |
10f2d63a VZ |
4430 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4431 | if test "x$LINE" != x ; then | |
4432 | eval "DEFAULT_$LINE" | |
4433 | else | |
4434 | no_cache=1 | |
4435 | fi | |
4436 | ||
4437 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4438 | |
4439 | fi | |
10f2d63a VZ |
4440 | |
4441 | ||
4442 | eval "$ac_cv_use_threads" | |
4443 | if test "$no_cache" != 1; then | |
4444 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4445 | fi | |
4446 | ||
4447 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4448 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4449 | else |
698dcdb6 | 4450 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4451 | fi |
698dcdb6 | 4452 | |
10f2d63a | 4453 | |
b12915c1 VZ |
4454 | if test "$wxUSE_GUI" = "yes"; then |
4455 | ||
698dcdb6 VZ |
4456 | |
4457 | ||
4458 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
a72a4bfa | 4459 | echo "configure:4460: checking for --enable-docview" >&5 |
10f2d63a VZ |
4460 | no_cache=0 |
4461 | # Check whether --enable-docview or --disable-docview was given. | |
4462 | if test "${enable_docview+set}" = set; then | |
4463 | enableval="$enable_docview" | |
698dcdb6 | 4464 | |
10f2d63a VZ |
4465 | if test "$enableval" = yes; then |
4466 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4467 | else | |
4468 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4469 | fi | |
698dcdb6 | 4470 | |
10f2d63a | 4471 | else |
698dcdb6 | 4472 | |
10f2d63a VZ |
4473 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4474 | if test "x$LINE" != x ; then | |
4475 | eval "DEFAULT_$LINE" | |
4476 | else | |
4477 | no_cache=1 | |
4478 | fi | |
4479 | ||
4480 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4481 | |
4482 | fi | |
10f2d63a VZ |
4483 | |
4484 | ||
4485 | eval "$ac_cv_use_docview" | |
4486 | if test "$no_cache" != 1; then | |
4487 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4488 | fi | |
4489 | ||
4490 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4491 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4492 | else |
698dcdb6 | 4493 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4494 | fi |
698dcdb6 | 4495 | |
10f2d63a | 4496 | |
698dcdb6 | 4497 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
a72a4bfa | 4498 | echo "configure:4499: checking for --enable-help" >&5 |
10f2d63a VZ |
4499 | no_cache=0 |
4500 | # Check whether --enable-help or --disable-help was given. | |
4501 | if test "${enable_help+set}" = set; then | |
4502 | enableval="$enable_help" | |
698dcdb6 | 4503 | |
10f2d63a VZ |
4504 | if test "$enableval" = yes; then |
4505 | ac_cv_use_help='wxUSE_HELP=yes' | |
4506 | else | |
4507 | ac_cv_use_help='wxUSE_HELP=no' | |
4508 | fi | |
698dcdb6 | 4509 | |
10f2d63a | 4510 | else |
698dcdb6 | 4511 | |
10f2d63a VZ |
4512 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4513 | if test "x$LINE" != x ; then | |
4514 | eval "DEFAULT_$LINE" | |
4515 | else | |
4516 | no_cache=1 | |
4517 | fi | |
4518 | ||
4519 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4520 | |
4521 | fi | |
10f2d63a VZ |
4522 | |
4523 | ||
4524 | eval "$ac_cv_use_help" | |
4525 | if test "$no_cache" != 1; then | |
4526 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4527 | fi | |
4528 | ||
4529 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4530 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4531 | else |
698dcdb6 | 4532 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4533 | fi |
698dcdb6 | 4534 | |
10f2d63a | 4535 | |
29fd3c0c | 4536 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
a72a4bfa | 4537 | echo "configure:4538: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4538 | no_cache=0 |
4539 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4540 | if test "${enable_mshtmlhelp+set}" = set; then | |
4541 | enableval="$enable_mshtmlhelp" | |
4542 | ||
4543 | if test "$enableval" = yes; then | |
4544 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4545 | else | |
4546 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4547 | fi | |
4548 | ||
4549 | else | |
4550 | ||
4551 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4559 | ||
4560 | fi | |
4561 | ||
4562 | ||
4563 | eval "$ac_cv_use_mshtmlhelp" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4569 | echo "$ac_t""yes" 1>&6 | |
4570 | else | |
4571 | echo "$ac_t""no" 1>&6 | |
4572 | fi | |
4573 | ||
4574 | ||
3379ed37 | 4575 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
a72a4bfa | 4576 | echo "configure:4577: checking for --enable-html" >&5 |
3379ed37 VZ |
4577 | no_cache=0 |
4578 | # Check whether --enable-html or --disable-html was given. | |
4579 | if test "${enable_html+set}" = set; then | |
4580 | enableval="$enable_html" | |
4581 | ||
4582 | if test "$enableval" = yes; then | |
4583 | ac_cv_use_html='wxUSE_HTML=yes' | |
4584 | else | |
4585 | ac_cv_use_html='wxUSE_HTML=no' | |
4586 | fi | |
4587 | ||
4588 | else | |
4589 | ||
4590 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4591 | if test "x$LINE" != x ; then | |
4592 | eval "DEFAULT_$LINE" | |
4593 | else | |
4594 | no_cache=1 | |
4595 | fi | |
4596 | ||
4597 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4598 | ||
4599 | fi | |
4600 | ||
4601 | ||
4602 | eval "$ac_cv_use_html" | |
4603 | if test "$no_cache" != 1; then | |
4604 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4605 | fi | |
4606 | ||
4607 | if test "$wxUSE_HTML" = yes; then | |
4608 | echo "$ac_t""yes" 1>&6 | |
4609 | else | |
4610 | echo "$ac_t""no" 1>&6 | |
4611 | fi | |
4612 | ||
4613 | ||
4614 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
a72a4bfa | 4615 | echo "configure:4616: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4616 | no_cache=0 |
4617 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4618 | if test "${enable_htmlhelp+set}" = set; then | |
4619 | enableval="$enable_htmlhelp" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4623 | else | |
4624 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4637 | ||
4638 | fi | |
4639 | ||
4640 | ||
4641 | eval "$ac_cv_use_htmlhelp" | |
4642 | if test "$no_cache" != 1; then | |
4643 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4644 | fi | |
4645 | ||
4646 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4647 | echo "$ac_t""yes" 1>&6 | |
4648 | else | |
4649 | echo "$ac_t""no" 1>&6 | |
4650 | fi | |
4651 | ||
4652 | ||
698dcdb6 | 4653 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
a72a4bfa | 4654 | echo "configure:4655: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4655 | no_cache=0 |
4656 | # Check whether --enable-constraints or --disable-constraints was given. | |
4657 | if test "${enable_constraints+set}" = set; then | |
4658 | enableval="$enable_constraints" | |
698dcdb6 | 4659 | |
10f2d63a VZ |
4660 | if test "$enableval" = yes; then |
4661 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4662 | else | |
4663 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4664 | fi | |
698dcdb6 | 4665 | |
10f2d63a | 4666 | else |
698dcdb6 | 4667 | |
10f2d63a VZ |
4668 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4669 | if test "x$LINE" != x ; then | |
4670 | eval "DEFAULT_$LINE" | |
4671 | else | |
4672 | no_cache=1 | |
4673 | fi | |
4674 | ||
4675 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4676 | |
4677 | fi | |
10f2d63a VZ |
4678 | |
4679 | ||
4680 | eval "$ac_cv_use_constraints" | |
4681 | if test "$no_cache" != 1; then | |
4682 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4683 | fi | |
4684 | ||
4685 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4687 | else |
698dcdb6 | 4688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4689 | fi |
698dcdb6 | 4690 | |
10f2d63a | 4691 | |
698dcdb6 | 4692 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
a72a4bfa | 4693 | echo "configure:4694: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4694 | no_cache=0 |
4695 | # Check whether --enable-printarch or --disable-printarch was given. | |
4696 | if test "${enable_printarch+set}" = set; then | |
4697 | enableval="$enable_printarch" | |
698dcdb6 | 4698 | |
10f2d63a VZ |
4699 | if test "$enableval" = yes; then |
4700 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4701 | else | |
4702 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4703 | fi | |
698dcdb6 | 4704 | |
10f2d63a | 4705 | else |
698dcdb6 | 4706 | |
10f2d63a VZ |
4707 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4708 | if test "x$LINE" != x ; then | |
4709 | eval "DEFAULT_$LINE" | |
4710 | else | |
4711 | no_cache=1 | |
4712 | fi | |
4713 | ||
4714 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4715 | |
4716 | fi | |
10f2d63a VZ |
4717 | |
4718 | ||
4719 | eval "$ac_cv_use_printarch" | |
4720 | if test "$no_cache" != 1; then | |
4721 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4722 | fi | |
4723 | ||
4724 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4725 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4726 | else |
698dcdb6 | 4727 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4728 | fi |
698dcdb6 | 4729 | |
10f2d63a | 4730 | |
698dcdb6 | 4731 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
a72a4bfa | 4732 | echo "configure:4733: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4733 | no_cache=0 |
4734 | # Check whether --enable-mdi or --disable-mdi was given. | |
4735 | if test "${enable_mdi+set}" = set; then | |
4736 | enableval="$enable_mdi" | |
698dcdb6 | 4737 | |
10f2d63a VZ |
4738 | if test "$enableval" = yes; then |
4739 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4740 | else | |
4741 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4742 | fi | |
698dcdb6 | 4743 | |
10f2d63a | 4744 | else |
698dcdb6 | 4745 | |
10f2d63a VZ |
4746 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4747 | if test "x$LINE" != x ; then | |
4748 | eval "DEFAULT_$LINE" | |
4749 | else | |
4750 | no_cache=1 | |
4751 | fi | |
4752 | ||
4753 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4754 | |
4755 | fi | |
10f2d63a VZ |
4756 | |
4757 | ||
4758 | eval "$ac_cv_use_mdi" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4765 | else |
698dcdb6 | 4766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4767 | fi |
698dcdb6 VZ |
4768 | |
4769 | ||
1e6feb95 | 4770 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
a72a4bfa | 4771 | echo "configure:4772: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4772 | no_cache=0 |
4773 | # Check whether --enable-loggui or --disable-loggui was given. | |
4774 | if test "${enable_loggui+set}" = set; then | |
4775 | enableval="$enable_loggui" | |
4776 | ||
4777 | if test "$enableval" = yes; then | |
4778 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4779 | else | |
4780 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4781 | fi | |
4782 | ||
4783 | else | |
4784 | ||
4785 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4786 | if test "x$LINE" != x ; then | |
4787 | eval "DEFAULT_$LINE" | |
4788 | else | |
4789 | no_cache=1 | |
4790 | fi | |
4791 | ||
4792 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4793 | ||
4794 | fi | |
4795 | ||
4796 | ||
4797 | eval "$ac_cv_use_loggui" | |
4798 | if test "$no_cache" != 1; then | |
4799 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4800 | fi | |
4801 | ||
4802 | if test "$wxUSE_LOGGUI" = yes; then | |
4803 | echo "$ac_t""yes" 1>&6 | |
4804 | else | |
4805 | echo "$ac_t""no" 1>&6 | |
4806 | fi | |
4807 | ||
4808 | ||
4809 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
a72a4bfa | 4810 | echo "configure:4811: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4811 | no_cache=0 |
4812 | # Check whether --enable-logwin or --disable-logwin was given. | |
4813 | if test "${enable_logwin+set}" = set; then | |
4814 | enableval="$enable_logwin" | |
4815 | ||
4816 | if test "$enableval" = yes; then | |
4817 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4818 | else | |
4819 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4820 | fi | |
4821 | ||
4822 | else | |
4823 | ||
4824 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4825 | if test "x$LINE" != x ; then | |
4826 | eval "DEFAULT_$LINE" | |
4827 | else | |
4828 | no_cache=1 | |
4829 | fi | |
4830 | ||
4831 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4832 | ||
4833 | fi | |
4834 | ||
4835 | ||
4836 | eval "$ac_cv_use_logwin" | |
4837 | if test "$no_cache" != 1; then | |
4838 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4839 | fi | |
4840 | ||
4841 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4842 | echo "$ac_t""yes" 1>&6 | |
4843 | else | |
4844 | echo "$ac_t""no" 1>&6 | |
4845 | fi | |
4846 | ||
4847 | ||
69d27ff7 | 4848 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
a72a4bfa | 4849 | echo "configure:4850: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
4850 | no_cache=0 |
4851 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
4852 | if test "${enable_logdialog+set}" = set; then | |
4853 | enableval="$enable_logdialog" | |
4854 | ||
4855 | if test "$enableval" = yes; then | |
4856 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
4857 | else | |
4858 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
4859 | fi | |
4860 | ||
4861 | else | |
4862 | ||
4863 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
4864 | if test "x$LINE" != x ; then | |
4865 | eval "DEFAULT_$LINE" | |
4866 | else | |
4867 | no_cache=1 | |
4868 | fi | |
4869 | ||
4870 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
4871 | ||
4872 | fi | |
4873 | ||
4874 | ||
4875 | eval "$ac_cv_use_logdialog" | |
4876 | if test "$no_cache" != 1; then | |
4877 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
4878 | fi | |
4879 | ||
4880 | if test "$wxUSE_LOGDIALOG" = yes; then | |
4881 | echo "$ac_t""yes" 1>&6 | |
4882 | else | |
4883 | echo "$ac_t""no" 1>&6 | |
4884 | fi | |
4885 | ||
4886 | ||
10f2d63a | 4887 | |
698dcdb6 | 4888 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
a72a4bfa | 4889 | echo "configure:4890: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4890 | no_cache=0 |
4891 | # Check whether --enable-postscript or --disable-postscript was given. | |
4892 | if test "${enable_postscript+set}" = set; then | |
4893 | enableval="$enable_postscript" | |
698dcdb6 | 4894 | |
10f2d63a VZ |
4895 | if test "$enableval" = yes; then |
4896 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4897 | else | |
4898 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4899 | fi | |
698dcdb6 | 4900 | |
10f2d63a | 4901 | else |
698dcdb6 | 4902 | |
10f2d63a VZ |
4903 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4904 | if test "x$LINE" != x ; then | |
4905 | eval "DEFAULT_$LINE" | |
4906 | else | |
4907 | no_cache=1 | |
4908 | fi | |
4909 | ||
4910 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4911 | |
4912 | fi | |
10f2d63a VZ |
4913 | |
4914 | ||
4915 | eval "$ac_cv_use_postscript" | |
4916 | if test "$no_cache" != 1; then | |
4917 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4918 | fi | |
4919 | ||
4920 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4921 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4922 | else |
698dcdb6 | 4923 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4924 | fi |
698dcdb6 VZ |
4925 | |
4926 | ||
4927 | ||
10f2d63a | 4928 | |
1e6feb95 | 4929 | |
698dcdb6 | 4930 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
a72a4bfa | 4931 | echo "configure:4932: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4932 | no_cache=0 |
4933 | # Check whether --enable-prologio or --disable-prologio was given. | |
4934 | if test "${enable_prologio+set}" = set; then | |
4935 | enableval="$enable_prologio" | |
698dcdb6 | 4936 | |
10f2d63a VZ |
4937 | if test "$enableval" = yes; then |
4938 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4939 | else | |
4940 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4941 | fi | |
698dcdb6 | 4942 | |
10f2d63a | 4943 | else |
698dcdb6 | 4944 | |
10f2d63a VZ |
4945 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4946 | if test "x$LINE" != x ; then | |
4947 | eval "DEFAULT_$LINE" | |
4948 | else | |
4949 | no_cache=1 | |
4950 | fi | |
4951 | ||
4952 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4953 | |
4954 | fi | |
10f2d63a VZ |
4955 | |
4956 | ||
4957 | eval "$ac_cv_use_prologio" | |
4958 | if test "$no_cache" != 1; then | |
4959 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4960 | fi | |
4961 | ||
4962 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4964 | else |
698dcdb6 | 4965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4966 | fi |
698dcdb6 | 4967 | |
10f2d63a | 4968 | |
698dcdb6 | 4969 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
a72a4bfa | 4970 | echo "configure:4971: checking for --enable-resources" >&5 |
10f2d63a VZ |
4971 | no_cache=0 |
4972 | # Check whether --enable-resources or --disable-resources was given. | |
4973 | if test "${enable_resources+set}" = set; then | |
4974 | enableval="$enable_resources" | |
698dcdb6 | 4975 | |
10f2d63a VZ |
4976 | if test "$enableval" = yes; then |
4977 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4978 | else | |
4979 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4980 | fi | |
698dcdb6 | 4981 | |
10f2d63a | 4982 | else |
698dcdb6 | 4983 | |
10f2d63a VZ |
4984 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4985 | if test "x$LINE" != x ; then | |
4986 | eval "DEFAULT_$LINE" | |
4987 | else | |
4988 | no_cache=1 | |
4989 | fi | |
4990 | ||
4991 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4992 | |
4993 | fi | |
10f2d63a VZ |
4994 | |
4995 | ||
4996 | eval "$ac_cv_use_resources" | |
4997 | if test "$no_cache" != 1; then | |
4998 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4999 | fi | |
5000 | ||
5001 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5003 | else |
698dcdb6 | 5004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5005 | fi |
698dcdb6 | 5006 | |
10f2d63a | 5007 | |
698dcdb6 VZ |
5008 | |
5009 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
a72a4bfa | 5010 | echo "configure:5011: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5011 | no_cache=0 |
5012 | # Check whether --enable-xresources or --disable-xresources was given. | |
5013 | if test "${enable_xresources+set}" = set; then | |
5014 | enableval="$enable_xresources" | |
698dcdb6 | 5015 | |
10f2d63a VZ |
5016 | if test "$enableval" = yes; then |
5017 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5018 | else | |
5019 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5020 | fi | |
698dcdb6 | 5021 | |
10f2d63a | 5022 | else |
698dcdb6 | 5023 | |
10f2d63a VZ |
5024 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | else | |
5028 | no_cache=1 | |
5029 | fi | |
5030 | ||
5031 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5032 | |
5033 | fi | |
10f2d63a VZ |
5034 | |
5035 | ||
5036 | eval "$ac_cv_use_xresources" | |
5037 | if test "$no_cache" != 1; then | |
5038 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5039 | fi | |
5040 | ||
5041 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5043 | else |
698dcdb6 | 5044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5045 | fi |
698dcdb6 VZ |
5046 | |
5047 | ||
10f2d63a | 5048 | |
698dcdb6 VZ |
5049 | |
5050 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
a72a4bfa | 5051 | echo "configure:5052: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5052 | no_cache=0 |
5053 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5054 | if test "${enable_clipboard+set}" = set; then | |
5055 | enableval="$enable_clipboard" | |
698dcdb6 | 5056 | |
10f2d63a VZ |
5057 | if test "$enableval" = yes; then |
5058 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5059 | else | |
5060 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5061 | fi | |
698dcdb6 | 5062 | |
10f2d63a | 5063 | else |
698dcdb6 | 5064 | |
10f2d63a VZ |
5065 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5066 | if test "x$LINE" != x ; then | |
5067 | eval "DEFAULT_$LINE" | |
5068 | else | |
5069 | no_cache=1 | |
5070 | fi | |
5071 | ||
5072 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5073 | |
5074 | fi | |
10f2d63a VZ |
5075 | |
5076 | ||
5077 | eval "$ac_cv_use_clipboard" | |
5078 | if test "$no_cache" != 1; then | |
5079 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5080 | fi | |
5081 | ||
5082 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5083 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5084 | else |
698dcdb6 | 5085 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5086 | fi |
698dcdb6 | 5087 | |
10f2d63a | 5088 | |
698dcdb6 | 5089 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
a72a4bfa | 5090 | echo "configure:5091: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5091 | no_cache=0 |
5092 | # Check whether --enable-dnd or --disable-dnd was given. | |
5093 | if test "${enable_dnd+set}" = set; then | |
5094 | enableval="$enable_dnd" | |
698dcdb6 | 5095 | |
10f2d63a VZ |
5096 | if test "$enableval" = yes; then |
5097 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5098 | else | |
5099 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5100 | fi | |
698dcdb6 | 5101 | |
10f2d63a | 5102 | else |
698dcdb6 | 5103 | |
10f2d63a VZ |
5104 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5112 | |
5113 | fi | |
10f2d63a VZ |
5114 | |
5115 | ||
5116 | eval "$ac_cv_use_dnd" | |
5117 | if test "$no_cache" != 1; then | |
5118 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5119 | fi | |
5120 | ||
5121 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5123 | else |
698dcdb6 | 5124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5125 | fi |
698dcdb6 | 5126 | |
10f2d63a | 5127 | |
698dcdb6 | 5128 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
a72a4bfa | 5129 | echo "configure:5130: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5130 | no_cache=0 |
5131 | # Check whether --enable-metafile or --disable-metafile was given. | |
5132 | if test "${enable_metafile+set}" = set; then | |
5133 | enableval="$enable_metafile" | |
698dcdb6 | 5134 | |
b64f0a5f RL |
5135 | if test "$enableval" = yes; then |
5136 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5137 | else | |
5138 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5139 | fi | |
698dcdb6 | 5140 | |
b64f0a5f | 5141 | else |
698dcdb6 | 5142 | |
b64f0a5f RL |
5143 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5144 | if test "x$LINE" != x ; then | |
5145 | eval "DEFAULT_$LINE" | |
5146 | else | |
5147 | no_cache=1 | |
5148 | fi | |
5149 | ||
5150 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5151 | |
5152 | fi | |
b64f0a5f RL |
5153 | |
5154 | ||
5155 | eval "$ac_cv_use_metafile" | |
5156 | if test "$no_cache" != 1; then | |
5157 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5158 | fi | |
5159 | ||
5160 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5161 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5162 | else |
698dcdb6 | 5163 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5164 | fi |
698dcdb6 VZ |
5165 | |
5166 | ||
10f2d63a | 5167 | |
24176f2c | 5168 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
a72a4bfa | 5169 | echo "configure:5170: checking for --enable-treelayout" >&5 |
10f2d63a | 5170 | no_cache=0 |
24176f2c GD |
5171 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5172 | if test "${enable_treelayout+set}" = set; then | |
5173 | enableval="$enable_treelayout" | |
698dcdb6 | 5174 | |
10f2d63a | 5175 | if test "$enableval" = yes; then |
24176f2c | 5176 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5177 | else |
24176f2c | 5178 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5179 | fi |
698dcdb6 | 5180 | |
10f2d63a | 5181 | else |
698dcdb6 | 5182 | |
24176f2c | 5183 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5184 | if test "x$LINE" != x ; then |
5185 | eval "DEFAULT_$LINE" | |
5186 | else | |
5187 | no_cache=1 | |
5188 | fi | |
5189 | ||
24176f2c | 5190 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5191 | |
5192 | fi | |
10f2d63a VZ |
5193 | |
5194 | ||
24176f2c | 5195 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5196 | if test "$no_cache" != 1; then |
24176f2c | 5197 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5198 | fi |
5199 | ||
24176f2c | 5200 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5201 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5202 | else |
698dcdb6 | 5203 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5204 | fi |
698dcdb6 | 5205 | |
10f2d63a | 5206 | |
698dcdb6 VZ |
5207 | |
5208 | ||
5209 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
a72a4bfa | 5210 | echo "configure:5211: checking for --enable-controls" >&5 |
10f2d63a VZ |
5211 | no_cache=0 |
5212 | # Check whether --enable-controls or --disable-controls was given. | |
5213 | if test "${enable_controls+set}" = set; then | |
5214 | enableval="$enable_controls" | |
698dcdb6 | 5215 | |
10f2d63a VZ |
5216 | if test "$enableval" = yes; then |
5217 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5218 | else | |
5219 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5220 | fi | |
698dcdb6 | 5221 | |
10f2d63a | 5222 | else |
698dcdb6 | 5223 | |
10f2d63a VZ |
5224 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5232 | |
5233 | fi | |
10f2d63a VZ |
5234 | |
5235 | ||
5236 | eval "$ac_cv_use_controls" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5243 | else |
698dcdb6 | 5244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5245 | fi |
698dcdb6 | 5246 | |
10f2d63a VZ |
5247 | |
5248 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5249 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5250 | DEFAULT_wxUSE_BMPBUTTON=yes |
5251 | DEFAULT_wxUSE_BUTTON=yes | |
5252 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5253 | DEFAULT_wxUSE_CARET=yes |
5254 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5255 | DEFAULT_wxUSE_CHECKBOX=yes |
5256 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5257 | DEFAULT_wxUSE_CHOICE=yes | |
5258 | DEFAULT_wxUSE_GAUGE=yes | |
5259 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5260 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5261 | DEFAULT_wxUSE_IMAGLIST=yes |
5262 | DEFAULT_wxUSE_LISTBOX=yes | |
5263 | DEFAULT_wxUSE_LISTCTRL=yes | |
5264 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5265 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5266 | DEFAULT_wxUSE_RADIOBOX=yes |
5267 | DEFAULT_wxUSE_RADIOBTN=yes | |
5268 | DEFAULT_wxUSE_SASH=yes | |
5269 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5270 | DEFAULT_wxUSE_SLIDER=yes | |
5271 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5272 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5273 | DEFAULT_wxUSE_SPLITTER=yes |
5274 | DEFAULT_wxUSE_STATBMP=yes | |
5275 | DEFAULT_wxUSE_STATBOX=yes | |
5276 | DEFAULT_wxUSE_STATLINE=yes | |
5277 | DEFAULT_wxUSE_STATUSBAR=yes | |
5278 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5279 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5280 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5281 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5282 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5283 | DEFAULT_wxUSE_TOOLTIPS=yes |
5284 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5285 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5286 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5287 | elif test "$wxUSE_CONTROLS" = "no"; then |
5288 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5289 | DEFAULT_wxUSE_BMPBUTTON=no |
5290 | DEFAULT_wxUSE_BUTTON=no | |
5291 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5292 | DEFAULT_wxUSE_CARET=no |
5293 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5294 | DEFAULT_wxUSE_CHECKBOX=no |
5295 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5296 | DEFAULT_wxUSE_CHOICE=no | |
5297 | DEFAULT_wxUSE_GAUGE=no | |
5298 | DEFAULT_wxUSE_GRID=no | |
5299 | DEFAULT_wxUSE_NEW_GRID=no | |
5300 | DEFAULT_wxUSE_IMAGLIST=no | |
5301 | DEFAULT_wxUSE_LISTBOX=no | |
5302 | DEFAULT_wxUSE_LISTCTRL=no | |
5303 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5304 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5305 | DEFAULT_wxUSE_RADIOBOX=no |
5306 | DEFAULT_wxUSE_RADIOBTN=no | |
5307 | DEFAULT_wxUSE_SASH=no | |
5308 | DEFAULT_wxUSE_SCROLLBAR=no | |
5309 | DEFAULT_wxUSE_SLIDER=no | |
5310 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5311 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5312 | DEFAULT_wxUSE_SPLITTER=no |
5313 | DEFAULT_wxUSE_STATBMP=no | |
5314 | DEFAULT_wxUSE_STATBOX=no | |
5315 | DEFAULT_wxUSE_STATLINE=no | |
5316 | DEFAULT_wxUSE_STATUSBAR=no | |
5317 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5318 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5319 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5320 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5321 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5322 | DEFAULT_wxUSE_TOOLTIPS=no |
5323 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5324 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5325 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5326 | fi |
5327 | ||
698dcdb6 VZ |
5328 | |
5329 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
a72a4bfa | 5330 | echo "configure:5331: checking for --enable-accel" >&5 |
10f2d63a VZ |
5331 | no_cache=0 |
5332 | # Check whether --enable-accel or --disable-accel was given. | |
5333 | if test "${enable_accel+set}" = set; then | |
5334 | enableval="$enable_accel" | |
698dcdb6 | 5335 | |
10f2d63a VZ |
5336 | if test "$enableval" = yes; then |
5337 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5338 | else | |
5339 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5340 | fi | |
698dcdb6 | 5341 | |
10f2d63a | 5342 | else |
698dcdb6 | 5343 | |
10f2d63a VZ |
5344 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5352 | |
5353 | fi | |
10f2d63a VZ |
5354 | |
5355 | ||
5356 | eval "$ac_cv_use_accel" | |
5357 | if test "$no_cache" != 1; then | |
5358 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5359 | fi | |
5360 | ||
5361 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5363 | else |
698dcdb6 | 5364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5365 | fi |
698dcdb6 | 5366 | |
10f2d63a | 5367 | |
1e6feb95 | 5368 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
a72a4bfa | 5369 | echo "configure:5370: checking for --enable-button" >&5 |
10f2d63a | 5370 | no_cache=0 |
1e6feb95 VZ |
5371 | # Check whether --enable-button or --disable-button was given. |
5372 | if test "${enable_button+set}" = set; then | |
5373 | enableval="$enable_button" | |
698dcdb6 | 5374 | |
10f2d63a | 5375 | if test "$enableval" = yes; then |
1e6feb95 | 5376 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5377 | else |
1e6feb95 | 5378 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5379 | fi |
698dcdb6 | 5380 | |
10f2d63a | 5381 | else |
698dcdb6 | 5382 | |
1e6feb95 | 5383 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5384 | if test "x$LINE" != x ; then |
5385 | eval "DEFAULT_$LINE" | |
5386 | else | |
5387 | no_cache=1 | |
5388 | fi | |
5389 | ||
1e6feb95 | 5390 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5391 | |
5392 | fi | |
10f2d63a VZ |
5393 | |
5394 | ||
1e6feb95 | 5395 | eval "$ac_cv_use_button" |
10f2d63a | 5396 | if test "$no_cache" != 1; then |
1e6feb95 | 5397 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5398 | fi |
5399 | ||
1e6feb95 | 5400 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5401 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5402 | else |
698dcdb6 | 5403 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5404 | fi |
698dcdb6 | 5405 | |
10f2d63a | 5406 | |
698dcdb6 | 5407 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
a72a4bfa | 5408 | echo "configure:5409: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5409 | no_cache=0 |
5410 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5411 | if test "${enable_bmpbutton+set}" = set; then | |
5412 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5413 | |
10f2d63a VZ |
5414 | if test "$enableval" = yes; then |
5415 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5416 | else | |
5417 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5418 | fi | |
698dcdb6 | 5419 | |
10f2d63a | 5420 | else |
698dcdb6 | 5421 | |
10f2d63a VZ |
5422 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5423 | if test "x$LINE" != x ; then | |
5424 | eval "DEFAULT_$LINE" | |
5425 | else | |
5426 | no_cache=1 | |
5427 | fi | |
5428 | ||
5429 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5430 | |
5431 | fi | |
10f2d63a VZ |
5432 | |
5433 | ||
5434 | eval "$ac_cv_use_bmpbutton" | |
5435 | if test "$no_cache" != 1; then | |
5436 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5437 | fi | |
5438 | ||
5439 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5440 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5441 | else |
698dcdb6 | 5442 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5443 | fi |
698dcdb6 | 5444 | |
10f2d63a | 5445 | |
1e6feb95 | 5446 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
a72a4bfa | 5447 | echo "configure:5448: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5448 | no_cache=0 |
5449 | # Check whether --enable-calendar or --disable-calendar was given. | |
5450 | if test "${enable_calendar+set}" = set; then | |
5451 | enableval="$enable_calendar" | |
5452 | ||
5453 | if test "$enableval" = yes; then | |
5454 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5455 | else | |
5456 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5457 | fi | |
5458 | ||
5459 | else | |
5460 | ||
5461 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5469 | ||
5470 | fi | |
5471 | ||
5472 | ||
5473 | eval "$ac_cv_use_calendar" | |
5474 | if test "$no_cache" != 1; then | |
5475 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5476 | fi | |
5477 | ||
5478 | if test "$wxUSE_CALCTRL" = yes; then | |
5479 | echo "$ac_t""yes" 1>&6 | |
5480 | else | |
5481 | echo "$ac_t""no" 1>&6 | |
5482 | fi | |
5483 | ||
5484 | ||
5485 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
a72a4bfa | 5486 | echo "configure:5487: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5487 | no_cache=0 |
5488 | # Check whether --enable-caret or --disable-caret was given. | |
5489 | if test "${enable_caret+set}" = set; then | |
5490 | enableval="$enable_caret" | |
5491 | ||
5492 | if test "$enableval" = yes; then | |
5493 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5494 | else | |
5495 | ac_cv_use_caret='wxUSE_CARET=no' | |
5496 | fi | |
5497 | ||
5498 | else | |
5499 | ||
5500 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5501 | if test "x$LINE" != x ; then | |
5502 | eval "DEFAULT_$LINE" | |
5503 | else | |
5504 | no_cache=1 | |
5505 | fi | |
5506 | ||
5507 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5508 | ||
5509 | fi | |
5510 | ||
5511 | ||
5512 | eval "$ac_cv_use_caret" | |
5513 | if test "$no_cache" != 1; then | |
5514 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5515 | fi | |
5516 | ||
5517 | if test "$wxUSE_CARET" = yes; then | |
5518 | echo "$ac_t""yes" 1>&6 | |
5519 | else | |
5520 | echo "$ac_t""no" 1>&6 | |
5521 | fi | |
5522 | ||
5523 | ||
698dcdb6 | 5524 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
a72a4bfa | 5525 | echo "configure:5526: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5526 | no_cache=0 |
5527 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5528 | if test "${enable_checkbox+set}" = set; then | |
5529 | enableval="$enable_checkbox" | |
698dcdb6 | 5530 | |
10f2d63a VZ |
5531 | if test "$enableval" = yes; then |
5532 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5533 | else | |
5534 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5535 | fi | |
698dcdb6 | 5536 | |
10f2d63a | 5537 | else |
698dcdb6 | 5538 | |
10f2d63a VZ |
5539 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5540 | if test "x$LINE" != x ; then | |
5541 | eval "DEFAULT_$LINE" | |
5542 | else | |
5543 | no_cache=1 | |
5544 | fi | |
5545 | ||
5546 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5547 | |
5548 | fi | |
10f2d63a VZ |
5549 | |
5550 | ||
5551 | eval "$ac_cv_use_checkbox" | |
5552 | if test "$no_cache" != 1; then | |
5553 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5554 | fi | |
5555 | ||
5556 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5557 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5558 | else |
698dcdb6 | 5559 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5560 | fi |
698dcdb6 | 5561 | |
10f2d63a | 5562 | |
698dcdb6 | 5563 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
a72a4bfa | 5564 | echo "configure:5565: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5565 | no_cache=0 |
5566 | # Check whether --enable-checklst or --disable-checklst was given. | |
5567 | if test "${enable_checklst+set}" = set; then | |
5568 | enableval="$enable_checklst" | |
698dcdb6 | 5569 | |
10f2d63a VZ |
5570 | if test "$enableval" = yes; then |
5571 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5572 | else | |
5573 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5574 | fi | |
698dcdb6 | 5575 | |
10f2d63a | 5576 | else |
698dcdb6 | 5577 | |
10f2d63a VZ |
5578 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5579 | if test "x$LINE" != x ; then | |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
5585 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5586 | |
5587 | fi | |
10f2d63a VZ |
5588 | |
5589 | ||
5590 | eval "$ac_cv_use_checklst" | |
5591 | if test "$no_cache" != 1; then | |
5592 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5593 | fi | |
5594 | ||
5595 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5596 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5597 | else |
698dcdb6 | 5598 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5599 | fi |
698dcdb6 | 5600 | |
10f2d63a | 5601 | |
698dcdb6 | 5602 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
a72a4bfa | 5603 | echo "configure:5604: checking for --enable-choice" >&5 |
10f2d63a VZ |
5604 | no_cache=0 |
5605 | # Check whether --enable-choice or --disable-choice was given. | |
5606 | if test "${enable_choice+set}" = set; then | |
5607 | enableval="$enable_choice" | |
698dcdb6 | 5608 | |
10f2d63a VZ |
5609 | if test "$enableval" = yes; then |
5610 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5611 | else | |
5612 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5613 | fi | |
698dcdb6 | 5614 | |
10f2d63a | 5615 | else |
698dcdb6 | 5616 | |
10f2d63a VZ |
5617 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5618 | if test "x$LINE" != x ; then | |
5619 | eval "DEFAULT_$LINE" | |
5620 | else | |
5621 | no_cache=1 | |
5622 | fi | |
5623 | ||
5624 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5625 | |
5626 | fi | |
10f2d63a VZ |
5627 | |
5628 | ||
5629 | eval "$ac_cv_use_choice" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5635 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5636 | else |
698dcdb6 | 5637 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5638 | fi |
698dcdb6 | 5639 | |
10f2d63a | 5640 | |
698dcdb6 | 5641 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
a72a4bfa | 5642 | echo "configure:5643: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5643 | no_cache=0 |
5644 | # Check whether --enable-combobox or --disable-combobox was given. | |
5645 | if test "${enable_combobox+set}" = set; then | |
5646 | enableval="$enable_combobox" | |
698dcdb6 | 5647 | |
10f2d63a VZ |
5648 | if test "$enableval" = yes; then |
5649 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5650 | else | |
5651 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5652 | fi | |
698dcdb6 | 5653 | |
10f2d63a | 5654 | else |
698dcdb6 | 5655 | |
10f2d63a VZ |
5656 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5657 | if test "x$LINE" != x ; then | |
5658 | eval "DEFAULT_$LINE" | |
5659 | else | |
5660 | no_cache=1 | |
5661 | fi | |
5662 | ||
5663 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5664 | |
5665 | fi | |
10f2d63a VZ |
5666 | |
5667 | ||
5668 | eval "$ac_cv_use_combobox" | |
5669 | if test "$no_cache" != 1; then | |
5670 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5671 | fi | |
5672 | ||
5673 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5674 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5675 | else |
698dcdb6 | 5676 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5677 | fi |
698dcdb6 | 5678 | |
10f2d63a | 5679 | |
698dcdb6 | 5680 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
a72a4bfa | 5681 | echo "configure:5682: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5682 | no_cache=0 |
5683 | # Check whether --enable-gauge or --disable-gauge was given. | |
5684 | if test "${enable_gauge+set}" = set; then | |
5685 | enableval="$enable_gauge" | |
698dcdb6 | 5686 | |
10f2d63a VZ |
5687 | if test "$enableval" = yes; then |
5688 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5689 | else | |
5690 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5691 | fi | |
698dcdb6 | 5692 | |
10f2d63a | 5693 | else |
698dcdb6 | 5694 | |
10f2d63a VZ |
5695 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5703 | |
5704 | fi | |
10f2d63a VZ |
5705 | |
5706 | ||
5707 | eval "$ac_cv_use_gauge" | |
5708 | if test "$no_cache" != 1; then | |
5709 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5710 | fi | |
5711 | ||
5712 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5713 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5714 | else |
698dcdb6 | 5715 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5716 | fi |
698dcdb6 | 5717 | |
10f2d63a | 5718 | |
698dcdb6 | 5719 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
a72a4bfa | 5720 | echo "configure:5721: checking for --enable-grid" >&5 |
10f2d63a VZ |
5721 | no_cache=0 |
5722 | # Check whether --enable-grid or --disable-grid was given. | |
5723 | if test "${enable_grid+set}" = set; then | |
5724 | enableval="$enable_grid" | |
698dcdb6 | 5725 | |
10f2d63a VZ |
5726 | if test "$enableval" = yes; then |
5727 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5728 | else | |
5729 | ac_cv_use_grid='wxUSE_GRID=no' | |
5730 | fi | |
698dcdb6 | 5731 | |
10f2d63a | 5732 | else |
698dcdb6 | 5733 | |
10f2d63a VZ |
5734 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5735 | if test "x$LINE" != x ; then | |
5736 | eval "DEFAULT_$LINE" | |
5737 | else | |
5738 | no_cache=1 | |
5739 | fi | |
5740 | ||
5741 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5742 | |
5743 | fi | |
10f2d63a VZ |
5744 | |
5745 | ||
5746 | eval "$ac_cv_use_grid" | |
5747 | if test "$no_cache" != 1; then | |
5748 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5749 | fi | |
5750 | ||
5751 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5752 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5753 | else |
698dcdb6 | 5754 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5755 | fi |
698dcdb6 | 5756 | |
10f2d63a | 5757 | |
698dcdb6 | 5758 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
a72a4bfa | 5759 | echo "configure:5760: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5760 | no_cache=0 |
5761 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5762 | if test "${enable_newgrid+set}" = set; then | |
5763 | enableval="$enable_newgrid" | |
698dcdb6 | 5764 | |
10f2d63a VZ |
5765 | if test "$enableval" = yes; then |
5766 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5767 | else | |
5768 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5769 | fi | |
698dcdb6 | 5770 | |
10f2d63a | 5771 | else |
698dcdb6 | 5772 | |
10f2d63a VZ |
5773 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5781 | |
5782 | fi | |
10f2d63a VZ |
5783 | |
5784 | ||
5785 | eval "$ac_cv_use_newgrid" | |
5786 | if test "$no_cache" != 1; then | |
5787 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5788 | fi | |
5789 | ||
5790 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5791 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5792 | else |
698dcdb6 | 5793 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5794 | fi |
698dcdb6 | 5795 | |
10f2d63a | 5796 | |
698dcdb6 | 5797 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
a72a4bfa | 5798 | echo "configure:5799: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5799 | no_cache=0 |
5800 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5801 | if test "${enable_imaglist+set}" = set; then | |
5802 | enableval="$enable_imaglist" | |
698dcdb6 | 5803 | |
10f2d63a VZ |
5804 | if test "$enableval" = yes; then |
5805 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5806 | else | |
5807 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5808 | fi | |
698dcdb6 | 5809 | |
10f2d63a | 5810 | else |
698dcdb6 | 5811 | |
10f2d63a VZ |
5812 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5813 | if test "x$LINE" != x ; then | |
5814 | eval "DEFAULT_$LINE" | |
5815 | else | |
5816 | no_cache=1 | |
5817 | fi | |
5818 | ||
5819 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5820 | |
5821 | fi | |
10f2d63a VZ |
5822 | |
5823 | ||
5824 | eval "$ac_cv_use_imaglist" | |
5825 | if test "$no_cache" != 1; then | |
5826 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5827 | fi | |
5828 | ||
5829 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5830 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5831 | else |
698dcdb6 | 5832 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5833 | fi |
698dcdb6 | 5834 | |
10f2d63a | 5835 | |
698dcdb6 | 5836 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
a72a4bfa | 5837 | echo "configure:5838: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5838 | no_cache=0 |
5839 | # Check whether --enable-listbox or --disable-listbox was given. | |
5840 | if test "${enable_listbox+set}" = set; then | |
5841 | enableval="$enable_listbox" | |
698dcdb6 | 5842 | |
10f2d63a VZ |
5843 | if test "$enableval" = yes; then |
5844 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5845 | else | |
5846 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5847 | fi | |
698dcdb6 | 5848 | |
10f2d63a | 5849 | else |
698dcdb6 | 5850 | |
10f2d63a VZ |
5851 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5852 | if test "x$LINE" != x ; then | |
5853 | eval "DEFAULT_$LINE" | |
5854 | else | |
5855 | no_cache=1 | |
5856 | fi | |
5857 | ||
5858 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5859 | |
5860 | fi | |
10f2d63a VZ |
5861 | |
5862 | ||
5863 | eval "$ac_cv_use_listbox" | |
5864 | if test "$no_cache" != 1; then | |
5865 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5866 | fi | |
5867 | ||
5868 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5869 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5870 | else |
698dcdb6 | 5871 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5872 | fi |
698dcdb6 | 5873 | |
10f2d63a | 5874 | |
698dcdb6 | 5875 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
a72a4bfa | 5876 | echo "configure:5877: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5877 | no_cache=0 |
5878 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5879 | if test "${enable_listctrl+set}" = set; then | |
5880 | enableval="$enable_listctrl" | |
698dcdb6 | 5881 | |
10f2d63a VZ |
5882 | if test "$enableval" = yes; then |
5883 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5884 | else | |
5885 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5886 | fi | |
698dcdb6 | 5887 | |
10f2d63a | 5888 | else |
698dcdb6 | 5889 | |
10f2d63a VZ |
5890 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5891 | if test "x$LINE" != x ; then | |
5892 | eval "DEFAULT_$LINE" | |
5893 | else | |
5894 | no_cache=1 | |
5895 | fi | |
5896 | ||
5897 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5898 | |
5899 | fi | |
10f2d63a VZ |
5900 | |
5901 | ||
5902 | eval "$ac_cv_use_listctrl" | |
5903 | if test "$no_cache" != 1; then | |
5904 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5905 | fi | |
5906 | ||
5907 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5908 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5909 | else |
698dcdb6 | 5910 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5911 | fi |
698dcdb6 | 5912 | |
10f2d63a | 5913 | |
698dcdb6 | 5914 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
a72a4bfa | 5915 | echo "configure:5916: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5916 | no_cache=0 |
5917 | # Check whether --enable-notebook or --disable-notebook was given. | |
5918 | if test "${enable_notebook+set}" = set; then | |
5919 | enableval="$enable_notebook" | |
698dcdb6 | 5920 | |
10f2d63a VZ |
5921 | if test "$enableval" = yes; then |
5922 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5923 | else | |
5924 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5925 | fi | |
698dcdb6 | 5926 | |
10f2d63a | 5927 | else |
698dcdb6 | 5928 | |
10f2d63a VZ |
5929 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5930 | if test "x$LINE" != x ; then | |
5931 | eval "DEFAULT_$LINE" | |
5932 | else | |
5933 | no_cache=1 | |
5934 | fi | |
5935 | ||
5936 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5937 | |
5938 | fi | |
10f2d63a VZ |
5939 | |
5940 | ||
5941 | eval "$ac_cv_use_notebook" | |
5942 | if test "$no_cache" != 1; then | |
5943 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5944 | fi | |
5945 | ||
5946 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5947 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5948 | else |
698dcdb6 | 5949 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5950 | fi |
698dcdb6 | 5951 | |
10f2d63a | 5952 | |
24176f2c | 5953 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
a72a4bfa | 5954 | echo "configure:5955: checking for --enable-propsheet" >&5 |
24176f2c GD |
5955 | no_cache=0 |
5956 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5957 | if test "${enable_propsheet+set}" = set; then | |
5958 | enableval="$enable_propsheet" | |
5959 | ||
5960 | if test "$enableval" = yes; then | |
5961 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5962 | else | |
5963 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5964 | fi | |
5965 | ||
5966 | else | |
5967 | ||
5968 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5969 | if test "x$LINE" != x ; then | |
5970 | eval "DEFAULT_$LINE" | |
5971 | else | |
5972 | no_cache=1 | |
5973 | fi | |
5974 | ||
5975 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5976 | ||
5977 | fi | |
5978 | ||
5979 | ||
5980 | eval "$ac_cv_use_propsheet" | |
5981 | if test "$no_cache" != 1; then | |
5982 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5983 | fi | |
5984 | ||
5985 | if test "$wxUSE_PROPSHEET" = yes; then | |
5986 | echo "$ac_t""yes" 1>&6 | |
5987 | else | |
5988 | echo "$ac_t""no" 1>&6 | |
5989 | fi | |
5990 | ||
5991 | ||
698dcdb6 | 5992 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
a72a4bfa | 5993 | echo "configure:5994: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5994 | no_cache=0 |
5995 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5996 | if test "${enable_radiobox+set}" = set; then | |
5997 | enableval="$enable_radiobox" | |
698dcdb6 | 5998 | |
10f2d63a VZ |
5999 | if test "$enableval" = yes; then |
6000 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6001 | else | |
6002 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6003 | fi | |
698dcdb6 | 6004 | |
10f2d63a | 6005 | else |
698dcdb6 | 6006 | |
10f2d63a VZ |
6007 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6008 | if test "x$LINE" != x ; then | |
6009 | eval "DEFAULT_$LINE" | |
6010 | else | |
6011 | no_cache=1 | |
6012 | fi | |
6013 | ||
6014 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6015 | |
6016 | fi | |
10f2d63a VZ |
6017 | |
6018 | ||
6019 | eval "$ac_cv_use_radiobox" | |
6020 | if test "$no_cache" != 1; then | |
6021 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6022 | fi | |
6023 | ||
6024 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6025 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6026 | else |
698dcdb6 | 6027 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6028 | fi |
698dcdb6 | 6029 | |
10f2d63a | 6030 | |
698dcdb6 | 6031 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
a72a4bfa | 6032 | echo "configure:6033: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6033 | no_cache=0 |
6034 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6035 | if test "${enable_radiobtn+set}" = set; then | |
6036 | enableval="$enable_radiobtn" | |
698dcdb6 | 6037 | |
10f2d63a VZ |
6038 | if test "$enableval" = yes; then |
6039 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6040 | else | |
6041 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6042 | fi | |
698dcdb6 | 6043 | |
10f2d63a | 6044 | else |
698dcdb6 | 6045 | |
10f2d63a VZ |
6046 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6047 | if test "x$LINE" != x ; then | |
6048 | eval "DEFAULT_$LINE" | |
6049 | else | |
6050 | no_cache=1 | |
6051 | fi | |
6052 | ||
6053 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6054 | |
6055 | fi | |
10f2d63a VZ |
6056 | |
6057 | ||
6058 | eval "$ac_cv_use_radiobtn" | |
6059 | if test "$no_cache" != 1; then | |
6060 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6061 | fi | |
6062 | ||
6063 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6064 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6065 | else |
698dcdb6 | 6066 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6067 | fi |
698dcdb6 | 6068 | |
10f2d63a | 6069 | |
698dcdb6 | 6070 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
a72a4bfa | 6071 | echo "configure:6072: checking for --enable-sash" >&5 |
10f2d63a VZ |
6072 | no_cache=0 |
6073 | # Check whether --enable-sash or --disable-sash was given. | |
6074 | if test "${enable_sash+set}" = set; then | |
6075 | enableval="$enable_sash" | |
698dcdb6 | 6076 | |
10f2d63a VZ |
6077 | if test "$enableval" = yes; then |
6078 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6079 | else | |
6080 | ac_cv_use_sash='wxUSE_SASH=no' | |
6081 | fi | |
698dcdb6 | 6082 | |
10f2d63a | 6083 | else |
698dcdb6 | 6084 | |
10f2d63a VZ |
6085 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6086 | if test "x$LINE" != x ; then | |
6087 | eval "DEFAULT_$LINE" | |
6088 | else | |
6089 | no_cache=1 | |
6090 | fi | |
6091 | ||
6092 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6093 | |
6094 | fi | |
10f2d63a VZ |
6095 | |
6096 | ||
6097 | eval "$ac_cv_use_sash" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6103 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6104 | else |
698dcdb6 | 6105 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6106 | fi |
698dcdb6 | 6107 | |
10f2d63a | 6108 | |
698dcdb6 | 6109 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
a72a4bfa | 6110 | echo "configure:6111: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6111 | no_cache=0 |
6112 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6113 | if test "${enable_scrollbar+set}" = set; then | |
6114 | enableval="$enable_scrollbar" | |
698dcdb6 | 6115 | |
10f2d63a VZ |
6116 | if test "$enableval" = yes; then |
6117 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6118 | else | |
6119 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6120 | fi | |
698dcdb6 | 6121 | |
10f2d63a | 6122 | else |
698dcdb6 | 6123 | |
10f2d63a VZ |
6124 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6125 | if test "x$LINE" != x ; then | |
6126 | eval "DEFAULT_$LINE" | |
6127 | else | |
6128 | no_cache=1 | |
6129 | fi | |
6130 | ||
6131 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6132 | |
6133 | fi | |
10f2d63a VZ |
6134 | |
6135 | ||
6136 | eval "$ac_cv_use_scrollbar" | |
6137 | if test "$no_cache" != 1; then | |
6138 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6139 | fi | |
6140 | ||
6141 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6142 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6143 | else |
698dcdb6 | 6144 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6145 | fi |
698dcdb6 | 6146 | |
10f2d63a | 6147 | |
698dcdb6 | 6148 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
a72a4bfa | 6149 | echo "configure:6150: checking for --enable-slider" >&5 |
10f2d63a VZ |
6150 | no_cache=0 |
6151 | # Check whether --enable-slider or --disable-slider was given. | |
6152 | if test "${enable_slider+set}" = set; then | |
6153 | enableval="$enable_slider" | |
698dcdb6 | 6154 | |
10f2d63a VZ |
6155 | if test "$enableval" = yes; then |
6156 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6157 | else | |
6158 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6159 | fi | |
698dcdb6 | 6160 | |
10f2d63a | 6161 | else |
698dcdb6 | 6162 | |
10f2d63a VZ |
6163 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6164 | if test "x$LINE" != x ; then | |
6165 | eval "DEFAULT_$LINE" | |
6166 | else | |
6167 | no_cache=1 | |
6168 | fi | |
6169 | ||
6170 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6171 | |
6172 | fi | |
10f2d63a VZ |
6173 | |
6174 | ||
6175 | eval "$ac_cv_use_slider" | |
6176 | if test "$no_cache" != 1; then | |
6177 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6178 | fi | |
6179 | ||
6180 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6181 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6182 | else |
698dcdb6 | 6183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6184 | fi |
698dcdb6 | 6185 | |
10f2d63a | 6186 | |
698dcdb6 | 6187 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
a72a4bfa | 6188 | echo "configure:6189: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6189 | no_cache=0 |
6190 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6191 | if test "${enable_spinbtn+set}" = set; then | |
6192 | enableval="$enable_spinbtn" | |
698dcdb6 | 6193 | |
10f2d63a VZ |
6194 | if test "$enableval" = yes; then |
6195 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6196 | else | |
6197 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6198 | fi | |
698dcdb6 | 6199 | |
10f2d63a | 6200 | else |
698dcdb6 | 6201 | |
10f2d63a VZ |
6202 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6203 | if test "x$LINE" != x ; then | |
6204 | eval "DEFAULT_$LINE" | |
6205 | else | |
6206 | no_cache=1 | |
6207 | fi | |
6208 | ||
6209 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6210 | |
6211 | fi | |
10f2d63a VZ |
6212 | |
6213 | ||
6214 | eval "$ac_cv_use_spinbtn" | |
6215 | if test "$no_cache" != 1; then | |
6216 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6217 | fi | |
6218 | ||
6219 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6220 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6221 | else |
698dcdb6 | 6222 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6223 | fi |
698dcdb6 | 6224 | |
10f2d63a | 6225 | |
698dcdb6 | 6226 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
a72a4bfa | 6227 | echo "configure:6228: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6228 | no_cache=0 |
6229 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6230 | if test "${enable_spinctrl+set}" = set; then | |
6231 | enableval="$enable_spinctrl" | |
698dcdb6 | 6232 | |
56cfaa52 RR |
6233 | if test "$enableval" = yes; then |
6234 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6235 | else | |
6236 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6237 | fi | |
698dcdb6 | 6238 | |
56cfaa52 | 6239 | else |
698dcdb6 | 6240 | |
56cfaa52 RR |
6241 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6249 | |
6250 | fi | |
56cfaa52 RR |
6251 | |
6252 | ||
6253 | eval "$ac_cv_use_spinctrl" | |
6254 | if test "$no_cache" != 1; then | |
6255 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6256 | fi | |
6257 | ||
6258 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6259 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6260 | else |
698dcdb6 | 6261 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6262 | fi |
698dcdb6 | 6263 | |
56cfaa52 | 6264 | |
698dcdb6 | 6265 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
a72a4bfa | 6266 | echo "configure:6267: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6267 | no_cache=0 |
6268 | # Check whether --enable-splitter or --disable-splitter was given. | |
6269 | if test "${enable_splitter+set}" = set; then | |
6270 | enableval="$enable_splitter" | |
698dcdb6 | 6271 | |
10f2d63a VZ |
6272 | if test "$enableval" = yes; then |
6273 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6274 | else | |
6275 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6276 | fi | |
698dcdb6 | 6277 | |
10f2d63a | 6278 | else |
698dcdb6 | 6279 | |
10f2d63a VZ |
6280 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6281 | if test "x$LINE" != x ; then | |
6282 | eval "DEFAULT_$LINE" | |
6283 | else | |
6284 | no_cache=1 | |
6285 | fi | |
6286 | ||
6287 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6288 | |
6289 | fi | |
10f2d63a VZ |
6290 | |
6291 | ||
6292 | eval "$ac_cv_use_splitter" | |
6293 | if test "$no_cache" != 1; then | |
6294 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6295 | fi | |
6296 | ||
6297 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6298 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6299 | else |
698dcdb6 | 6300 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6301 | fi |
698dcdb6 | 6302 | |
10f2d63a | 6303 | |
698dcdb6 | 6304 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
a72a4bfa | 6305 | echo "configure:6306: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6306 | no_cache=0 |
6307 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6308 | if test "${enable_statbmp+set}" = set; then | |
6309 | enableval="$enable_statbmp" | |
698dcdb6 | 6310 | |
10f2d63a VZ |
6311 | if test "$enableval" = yes; then |
6312 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6313 | else | |
6314 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6315 | fi | |
698dcdb6 | 6316 | |
10f2d63a | 6317 | else |
698dcdb6 | 6318 | |
10f2d63a VZ |
6319 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6320 | if test "x$LINE" != x ; then | |
6321 | eval "DEFAULT_$LINE" | |
6322 | else | |
6323 | no_cache=1 | |
6324 | fi | |
6325 | ||
6326 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6327 | |
6328 | fi | |
10f2d63a VZ |
6329 | |
6330 | ||
6331 | eval "$ac_cv_use_statbmp" | |
6332 | if test "$no_cache" != 1; then | |
6333 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6334 | fi | |
6335 | ||
6336 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6338 | else |
698dcdb6 | 6339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6340 | fi |
698dcdb6 | 6341 | |
10f2d63a | 6342 | |
698dcdb6 | 6343 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
a72a4bfa | 6344 | echo "configure:6345: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6345 | no_cache=0 |
6346 | # Check whether --enable-statbox or --disable-statbox was given. | |
6347 | if test "${enable_statbox+set}" = set; then | |
6348 | enableval="$enable_statbox" | |
698dcdb6 | 6349 | |
10f2d63a VZ |
6350 | if test "$enableval" = yes; then |
6351 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6352 | else | |
6353 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6354 | fi | |
698dcdb6 | 6355 | |
10f2d63a | 6356 | else |
698dcdb6 | 6357 | |
10f2d63a VZ |
6358 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6359 | if test "x$LINE" != x ; then | |
6360 | eval "DEFAULT_$LINE" | |
6361 | else | |
6362 | no_cache=1 | |
6363 | fi | |
6364 | ||
6365 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6366 | |
6367 | fi | |
10f2d63a VZ |
6368 | |
6369 | ||
6370 | eval "$ac_cv_use_statbox" | |
6371 | if test "$no_cache" != 1; then | |
6372 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6373 | fi | |
6374 | ||
6375 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6376 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6377 | else |
698dcdb6 | 6378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6379 | fi |
698dcdb6 | 6380 | |
10f2d63a | 6381 | |
698dcdb6 | 6382 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
a72a4bfa | 6383 | echo "configure:6384: checking for --enable-statline" >&5 |
10f2d63a VZ |
6384 | no_cache=0 |
6385 | # Check whether --enable-statline or --disable-statline was given. | |
6386 | if test "${enable_statline+set}" = set; then | |
6387 | enableval="$enable_statline" | |
698dcdb6 | 6388 | |
10f2d63a VZ |
6389 | if test "$enableval" = yes; then |
6390 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6391 | else | |
6392 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6393 | fi | |
698dcdb6 | 6394 | |
10f2d63a | 6395 | else |
698dcdb6 | 6396 | |
10f2d63a VZ |
6397 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6398 | if test "x$LINE" != x ; then | |
6399 | eval "DEFAULT_$LINE" | |
6400 | else | |
6401 | no_cache=1 | |
6402 | fi | |
6403 | ||
6404 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6405 | |
6406 | fi | |
10f2d63a VZ |
6407 | |
6408 | ||
6409 | eval "$ac_cv_use_statline" | |
6410 | if test "$no_cache" != 1; then | |
6411 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6412 | fi | |
6413 | ||
6414 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6416 | else |
698dcdb6 | 6417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6418 | fi |
698dcdb6 | 6419 | |
10f2d63a | 6420 | |
1e6feb95 | 6421 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
a72a4bfa | 6422 | echo "configure:6423: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6423 | no_cache=0 |
6424 | # Check whether --enable-stattext or --disable-stattext was given. | |
6425 | if test "${enable_stattext+set}" = set; then | |
6426 | enableval="$enable_stattext" | |
6427 | ||
6428 | if test "$enableval" = yes; then | |
6429 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6430 | else | |
6431 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6432 | fi | |
6433 | ||
6434 | else | |
6435 | ||
6436 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6437 | if test "x$LINE" != x ; then | |
6438 | eval "DEFAULT_$LINE" | |
6439 | else | |
6440 | no_cache=1 | |
6441 | fi | |
6442 | ||
6443 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6444 | ||
6445 | fi | |
6446 | ||
6447 | ||
6448 | eval "$ac_cv_use_stattext" | |
6449 | if test "$no_cache" != 1; then | |
6450 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6451 | fi | |
6452 | ||
6453 | if test "$wxUSE_STATTEXT" = yes; then | |
6454 | echo "$ac_t""yes" 1>&6 | |
6455 | else | |
6456 | echo "$ac_t""no" 1>&6 | |
6457 | fi | |
6458 | ||
6459 | ||
698dcdb6 | 6460 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
a72a4bfa | 6461 | echo "configure:6462: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6462 | no_cache=0 |
6463 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6464 | if test "${enable_statusbar+set}" = set; then | |
6465 | enableval="$enable_statusbar" | |
698dcdb6 | 6466 | |
10f2d63a VZ |
6467 | if test "$enableval" = yes; then |
6468 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6469 | else | |
6470 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6471 | fi | |
698dcdb6 | 6472 | |
10f2d63a | 6473 | else |
698dcdb6 | 6474 | |
10f2d63a VZ |
6475 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6483 | |
6484 | fi | |
10f2d63a VZ |
6485 | |
6486 | ||
6487 | eval "$ac_cv_use_statusbar" | |
6488 | if test "$no_cache" != 1; then | |
6489 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6490 | fi | |
6491 | ||
6492 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6494 | else |
698dcdb6 | 6495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6496 | fi |
698dcdb6 | 6497 | |
10f2d63a | 6498 | |
698dcdb6 | 6499 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
a72a4bfa | 6500 | echo "configure:6501: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6501 | no_cache=0 |
6502 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6503 | if test "${enable_tabdialog+set}" = set; then | |
6504 | enableval="$enable_tabdialog" | |
698dcdb6 | 6505 | |
10f2d63a VZ |
6506 | if test "$enableval" = yes; then |
6507 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6508 | else | |
6509 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6510 | fi | |
698dcdb6 | 6511 | |
10f2d63a | 6512 | else |
698dcdb6 | 6513 | |
10f2d63a VZ |
6514 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6515 | if test "x$LINE" != x ; then | |
6516 | eval "DEFAULT_$LINE" | |
6517 | else | |
6518 | no_cache=1 | |
6519 | fi | |
6520 | ||
6521 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6522 | |
6523 | fi | |
10f2d63a VZ |
6524 | |
6525 | ||
6526 | eval "$ac_cv_use_tabdialog" | |
6527 | if test "$no_cache" != 1; then | |
6528 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6529 | fi | |
6530 | ||
6531 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6532 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6533 | else |
698dcdb6 | 6534 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6535 | fi |
698dcdb6 | 6536 | |
10f2d63a | 6537 | |
1e6feb95 | 6538 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
a72a4bfa | 6539 | echo "configure:6540: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6540 | no_cache=0 |
6541 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6542 | if test "${enable_textctrl+set}" = set; then | |
6543 | enableval="$enable_textctrl" | |
6544 | ||
6545 | if test "$enableval" = yes; then | |
6546 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6547 | else | |
6548 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6549 | fi | |
6550 | ||
6551 | else | |
6552 | ||
6553 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6554 | if test "x$LINE" != x ; then | |
6555 | eval "DEFAULT_$LINE" | |
6556 | else | |
6557 | no_cache=1 | |
6558 | fi | |
6559 | ||
6560 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6561 | ||
6562 | fi | |
6563 | ||
6564 | ||
6565 | eval "$ac_cv_use_textctrl" | |
6566 | if test "$no_cache" != 1; then | |
6567 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6568 | fi | |
6569 | ||
6570 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6571 | echo "$ac_t""yes" 1>&6 | |
6572 | else | |
6573 | echo "$ac_t""no" 1>&6 | |
6574 | fi | |
6575 | ||
6576 | ||
698dcdb6 | 6577 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
a72a4bfa | 6578 | echo "configure:6579: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6579 | no_cache=0 |
6580 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6581 | if test "${enable_togglebtn+set}" = set; then | |
6582 | enableval="$enable_togglebtn" | |
698dcdb6 | 6583 | |
1db8dc4a VZ |
6584 | if test "$enableval" = yes; then |
6585 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6586 | else | |
6587 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6588 | fi | |
698dcdb6 | 6589 | |
1db8dc4a | 6590 | else |
698dcdb6 | 6591 | |
1db8dc4a VZ |
6592 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6593 | if test "x$LINE" != x ; then | |
6594 | eval "DEFAULT_$LINE" | |
6595 | else | |
6596 | no_cache=1 | |
6597 | fi | |
6598 | ||
6599 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6600 | |
6601 | fi | |
1db8dc4a VZ |
6602 | |
6603 | ||
6604 | eval "$ac_cv_use_togglebtn" | |
6605 | if test "$no_cache" != 1; then | |
6606 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6607 | fi | |
6608 | ||
6609 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6610 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6611 | else |
698dcdb6 | 6612 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6613 | fi |
698dcdb6 | 6614 | |
1db8dc4a | 6615 | |
698dcdb6 | 6616 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
a72a4bfa | 6617 | echo "configure:6618: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6618 | no_cache=0 |
6619 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6620 | if test "${enable_toolbar+set}" = set; then | |
6621 | enableval="$enable_toolbar" | |
698dcdb6 | 6622 | |
10f2d63a VZ |
6623 | if test "$enableval" = yes; then |
6624 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6625 | else | |
6626 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6627 | fi | |
698dcdb6 | 6628 | |
10f2d63a | 6629 | else |
698dcdb6 | 6630 | |
10f2d63a VZ |
6631 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6632 | if test "x$LINE" != x ; then | |
6633 | eval "DEFAULT_$LINE" | |
6634 | else | |
6635 | no_cache=1 | |
6636 | fi | |
6637 | ||
6638 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6639 | |
6640 | fi | |
10f2d63a VZ |
6641 | |
6642 | ||
6643 | eval "$ac_cv_use_toolbar" | |
6644 | if test "$no_cache" != 1; then | |
6645 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6646 | fi | |
6647 | ||
6648 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6650 | else |
698dcdb6 | 6651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6652 | fi |
698dcdb6 | 6653 | |
10f2d63a | 6654 | |
698dcdb6 | 6655 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
a72a4bfa | 6656 | echo "configure:6657: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6657 | no_cache=0 |
6658 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6659 | if test "${enable_tbarnative+set}" = set; then | |
6660 | enableval="$enable_tbarnative" | |
698dcdb6 | 6661 | |
360d6699 VZ |
6662 | if test "$enableval" = yes; then |
6663 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6664 | else | |
6665 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6666 | fi | |
698dcdb6 | 6667 | |
360d6699 | 6668 | else |
698dcdb6 | 6669 | |
360d6699 VZ |
6670 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6671 | if test "x$LINE" != x ; then | |
6672 | eval "DEFAULT_$LINE" | |
6673 | else | |
6674 | no_cache=1 | |
6675 | fi | |
6676 | ||
6677 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6678 | |
6679 | fi | |
360d6699 VZ |
6680 | |
6681 | ||
6682 | eval "$ac_cv_use_tbarnative" | |
6683 | if test "$no_cache" != 1; then | |
6684 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6685 | fi | |
6686 | ||
6687 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6688 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6689 | else |
698dcdb6 | 6690 | echo "$ac_t""no" 1>&6 |
360d6699 | 6691 | fi |
698dcdb6 | 6692 | |
360d6699 | 6693 | |
698dcdb6 | 6694 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
a72a4bfa | 6695 | echo "configure:6696: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6696 | no_cache=0 |
6697 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6698 | if test "${enable_tbarsmpl+set}" = set; then | |
6699 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6700 | |
360d6699 VZ |
6701 | if test "$enableval" = yes; then |
6702 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6703 | else | |
6704 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6705 | fi | |
698dcdb6 | 6706 | |
360d6699 | 6707 | else |
698dcdb6 | 6708 | |
360d6699 VZ |
6709 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6710 | if test "x$LINE" != x ; then | |
6711 | eval "DEFAULT_$LINE" | |
6712 | else | |
6713 | no_cache=1 | |
6714 | fi | |
6715 | ||
6716 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6717 | |
6718 | fi | |
360d6699 VZ |
6719 | |
6720 | ||
6721 | eval "$ac_cv_use_tbarsmpl" | |
6722 | if test "$no_cache" != 1; then | |
6723 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6724 | fi | |
6725 | ||
6726 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6727 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6728 | else |
698dcdb6 | 6729 | echo "$ac_t""no" 1>&6 |
360d6699 | 6730 | fi |
698dcdb6 | 6731 | |
360d6699 | 6732 | |
698dcdb6 | 6733 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
a72a4bfa | 6734 | echo "configure:6735: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6735 | no_cache=0 |
6736 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6737 | if test "${enable_treectrl+set}" = set; then | |
6738 | enableval="$enable_treectrl" | |
698dcdb6 | 6739 | |
10f2d63a VZ |
6740 | if test "$enableval" = yes; then |
6741 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6742 | else | |
6743 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6744 | fi | |
698dcdb6 | 6745 | |
10f2d63a | 6746 | else |
698dcdb6 | 6747 | |
10f2d63a VZ |
6748 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6749 | if test "x$LINE" != x ; then | |
6750 | eval "DEFAULT_$LINE" | |
6751 | else | |
6752 | no_cache=1 | |
6753 | fi | |
6754 | ||
6755 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6756 | |
6757 | fi | |
10f2d63a VZ |
6758 | |
6759 | ||
1e6feb95 VZ |
6760 | eval "$ac_cv_use_treectrl" |
6761 | if test "$no_cache" != 1; then | |
6762 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6763 | fi | |
6764 | ||
6765 | if test "$wxUSE_TREECTRL" = yes; then | |
6766 | echo "$ac_t""yes" 1>&6 | |
6767 | else | |
6768 | echo "$ac_t""no" 1>&6 | |
6769 | fi | |
6770 | ||
6771 | ||
9926e4a4 | 6772 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
a72a4bfa | 6773 | echo "configure:6774: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
6774 | no_cache=0 |
6775 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
6776 | if test "${enable_tipwindow+set}" = set; then | |
6777 | enableval="$enable_tipwindow" | |
6778 | ||
6779 | if test "$enableval" = yes; then | |
6780 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
6781 | else | |
6782 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
6783 | fi | |
6784 | ||
6785 | else | |
6786 | ||
6787 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
6788 | if test "x$LINE" != x ; then | |
6789 | eval "DEFAULT_$LINE" | |
6790 | else | |
6791 | no_cache=1 | |
6792 | fi | |
6793 | ||
6794 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
6795 | ||
6796 | fi | |
6797 | ||
6798 | ||
6799 | eval "$ac_cv_use_tipwindow" | |
6800 | if test "$no_cache" != 1; then | |
6801 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
6802 | fi | |
6803 | ||
6804 | if test "$wxUSE_TIPWINDOW" = yes; then | |
6805 | echo "$ac_t""yes" 1>&6 | |
6806 | else | |
6807 | echo "$ac_t""no" 1>&6 | |
6808 | fi | |
6809 | ||
6810 | ||
9f41d601 | 6811 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
a72a4bfa | 6812 | echo "configure:6813: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6813 | no_cache=0 |
6814 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6815 | if test "${enable_popupwin+set}" = set; then | |
6816 | enableval="$enable_popupwin" | |
6817 | ||
6818 | if test "$enableval" = yes; then | |
6819 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6820 | else | |
6821 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6822 | fi | |
6823 | ||
6824 | else | |
6825 | ||
6826 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6827 | if test "x$LINE" != x ; then | |
6828 | eval "DEFAULT_$LINE" | |
6829 | else | |
6830 | no_cache=1 | |
6831 | fi | |
6832 | ||
6833 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6834 | ||
6835 | fi | |
6836 | ||
6837 | ||
6838 | eval "$ac_cv_use_popupwin" | |
6839 | if test "$no_cache" != 1; then | |
6840 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6841 | fi | |
6842 | ||
6843 | if test "$wxUSE_POPUPWIN" = yes; then | |
6844 | echo "$ac_t""yes" 1>&6 | |
6845 | else | |
6846 | echo "$ac_t""no" 1>&6 | |
6847 | fi | |
6848 | ||
6849 | ||
1e6feb95 VZ |
6850 | |
6851 | ||
6852 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
a72a4bfa | 6853 | echo "configure:6854: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6854 | no_cache=0 |
6855 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6856 | if test "${enable_commondlg+set}" = set; then | |
6857 | enableval="$enable_commondlg" | |
6858 | ||
6859 | if test "$enableval" = yes; then | |
6860 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6861 | else | |
6862 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6863 | fi | |
6864 | ||
6865 | else | |
6866 | ||
6867 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6868 | if test "x$LINE" != x ; then | |
6869 | eval "DEFAULT_$LINE" | |
6870 | else | |
6871 | no_cache=1 | |
6872 | fi | |
6873 | ||
6874 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6875 | ||
6876 | fi | |
6877 | ||
6878 | ||
6879 | eval "$ac_cv_use_commondlg" | |
6880 | if test "$no_cache" != 1; then | |
6881 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6882 | fi | |
6883 | ||
6884 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6885 | echo "$ac_t""yes" 1>&6 | |
6886 | else | |
6887 | echo "$ac_t""no" 1>&6 | |
6888 | fi | |
6889 | ||
6890 | ||
6891 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
a72a4bfa | 6892 | echo "configure:6893: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6893 | no_cache=0 |
6894 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6895 | if test "${enable_choicedlg+set}" = set; then | |
6896 | enableval="$enable_choicedlg" | |
6897 | ||
6898 | if test "$enableval" = yes; then | |
6899 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6900 | else | |
6901 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6902 | fi | |
6903 | ||
6904 | else | |
6905 | ||
6906 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6907 | if test "x$LINE" != x ; then | |
6908 | eval "DEFAULT_$LINE" | |
6909 | else | |
6910 | no_cache=1 | |
6911 | fi | |
6912 | ||
6913 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6914 | ||
6915 | fi | |
6916 | ||
6917 | ||
6918 | eval "$ac_cv_use_choicedlg" | |
6919 | if test "$no_cache" != 1; then | |
6920 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6921 | fi | |
6922 | ||
6923 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6924 | echo "$ac_t""yes" 1>&6 | |
6925 | else | |
6926 | echo "$ac_t""no" 1>&6 | |
6927 | fi | |
6928 | ||
6929 | ||
6930 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
a72a4bfa | 6931 | echo "configure:6932: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6932 | no_cache=0 |
6933 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6934 | if test "${enable_coldlg+set}" = set; then | |
6935 | enableval="$enable_coldlg" | |
6936 | ||
6937 | if test "$enableval" = yes; then | |
6938 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6939 | else | |
6940 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6941 | fi | |
6942 | ||
6943 | else | |
6944 | ||
6945 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6946 | if test "x$LINE" != x ; then | |
6947 | eval "DEFAULT_$LINE" | |
6948 | else | |
6949 | no_cache=1 | |
6950 | fi | |
6951 | ||
6952 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6953 | ||
6954 | fi | |
6955 | ||
6956 | ||
6957 | eval "$ac_cv_use_coldlg" | |
6958 | if test "$no_cache" != 1; then | |
6959 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6960 | fi | |
6961 | ||
6962 | if test "$wxUSE_COLOURDLG" = yes; then | |
6963 | echo "$ac_t""yes" 1>&6 | |
6964 | else | |
6965 | echo "$ac_t""no" 1>&6 | |
6966 | fi | |
6967 | ||
6968 | ||
6969 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
a72a4bfa | 6970 | echo "configure:6971: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6971 | no_cache=0 |
6972 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6973 | if test "${enable_filedlg+set}" = set; then | |
6974 | enableval="$enable_filedlg" | |
6975 | ||
6976 | if test "$enableval" = yes; then | |
6977 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6978 | else | |
6979 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6980 | fi | |
6981 | ||
6982 | else | |
6983 | ||
6984 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6992 | ||
6993 | fi | |
6994 | ||
6995 | ||
6996 | eval "$ac_cv_use_filedlg" | |
6997 | if test "$no_cache" != 1; then | |
6998 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6999 | fi | |
7000 | ||
7001 | if test "$wxUSE_FILEDLG" = yes; then | |
7002 | echo "$ac_t""yes" 1>&6 | |
7003 | else | |
7004 | echo "$ac_t""no" 1>&6 | |
7005 | fi | |
7006 | ||
7007 | ||
69d27ff7 | 7008 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
a72a4bfa | 7009 | echo "configure:7010: checking for --enable-finddlg" >&5 |
8db37e06 | 7010 | no_cache=0 |
69d27ff7 MB |
7011 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7012 | if test "${enable_finddlg+set}" = set; then | |
7013 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7014 | |
7015 | if test "$enableval" = yes; then | |
69d27ff7 | 7016 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7017 | else |
69d27ff7 | 7018 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7019 | fi |
7020 | ||
7021 | else | |
7022 | ||
7023 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7024 | if test "x$LINE" != x ; then | |
7025 | eval "DEFAULT_$LINE" | |
7026 | else | |
7027 | no_cache=1 | |
7028 | fi | |
7029 | ||
69d27ff7 | 7030 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7031 | |
7032 | fi | |
7033 | ||
7034 | ||
69d27ff7 | 7035 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7036 | if test "$no_cache" != 1; then |
69d27ff7 | 7037 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7038 | fi |
7039 | ||
7040 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7041 | echo "$ac_t""yes" 1>&6 | |
7042 | else | |
7043 | echo "$ac_t""no" 1>&6 | |
7044 | fi | |
7045 | ||
7046 | ||
1e6feb95 | 7047 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
a72a4bfa | 7048 | echo "configure:7049: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7049 | no_cache=0 |
7050 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7051 | if test "${enable_fontdlg+set}" = set; then | |
7052 | enableval="$enable_fontdlg" | |
7053 | ||
7054 | if test "$enableval" = yes; then | |
7055 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7056 | else | |
7057 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7058 | fi | |
7059 | ||
7060 | else | |
7061 | ||
7062 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7063 | if test "x$LINE" != x ; then | |
7064 | eval "DEFAULT_$LINE" | |
7065 | else | |
7066 | no_cache=1 | |
7067 | fi | |
7068 | ||
7069 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7070 | ||
7071 | fi | |
7072 | ||
7073 | ||
7074 | eval "$ac_cv_use_fontdlg" | |
7075 | if test "$no_cache" != 1; then | |
7076 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7077 | fi | |
7078 | ||
7079 | if test "$wxUSE_FONTDLG" = yes; then | |
7080 | echo "$ac_t""yes" 1>&6 | |
7081 | else | |
7082 | echo "$ac_t""no" 1>&6 | |
7083 | fi | |
7084 | ||
7085 | ||
7086 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
a72a4bfa | 7087 | echo "configure:7088: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7088 | no_cache=0 |
7089 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7090 | if test "${enable_dirdlg+set}" = set; then | |
7091 | enableval="$enable_dirdlg" | |
7092 | ||
7093 | if test "$enableval" = yes; then | |
7094 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7095 | else | |
7096 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7097 | fi | |
7098 | ||
7099 | else | |
7100 | ||
7101 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7102 | if test "x$LINE" != x ; then | |
7103 | eval "DEFAULT_$LINE" | |
7104 | else | |
7105 | no_cache=1 | |
7106 | fi | |
7107 | ||
7108 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7109 | ||
7110 | fi | |
7111 | ||
7112 | ||
7113 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7114 | if test "$no_cache" != 1; then |
1e6feb95 | 7115 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7116 | fi |
7117 | ||
1e6feb95 | 7118 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7120 | else |
698dcdb6 | 7121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7122 | fi |
698dcdb6 VZ |
7123 | |
7124 | ||
1e6feb95 | 7125 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
a72a4bfa | 7126 | echo "configure:7127: checking for --enable-msgdlg" >&5 |
10f2d63a | 7127 | no_cache=0 |
1e6feb95 VZ |
7128 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7129 | if test "${enable_msgdlg+set}" = set; then | |
7130 | enableval="$enable_msgdlg" | |
698dcdb6 | 7131 | |
10f2d63a | 7132 | if test "$enableval" = yes; then |
1e6feb95 | 7133 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7134 | else |
1e6feb95 | 7135 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7136 | fi |
698dcdb6 | 7137 | |
10f2d63a | 7138 | else |
698dcdb6 | 7139 | |
1e6feb95 | 7140 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7141 | if test "x$LINE" != x ; then |
7142 | eval "DEFAULT_$LINE" | |
7143 | else | |
7144 | no_cache=1 | |
7145 | fi | |
7146 | ||
1e6feb95 | 7147 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7148 | |
7149 | fi | |
10f2d63a VZ |
7150 | |
7151 | ||
1e6feb95 | 7152 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7153 | if test "$no_cache" != 1; then |
1e6feb95 | 7154 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7155 | fi |
7156 | ||
1e6feb95 | 7157 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7158 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7159 | else |
698dcdb6 | 7160 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7161 | fi |
698dcdb6 | 7162 | |
10f2d63a | 7163 | |
1e6feb95 | 7164 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
a72a4bfa | 7165 | echo "configure:7166: checking for --enable-numberdlg" >&5 |
10f2d63a | 7166 | no_cache=0 |
1e6feb95 VZ |
7167 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7168 | if test "${enable_numberdlg+set}" = set; then | |
7169 | enableval="$enable_numberdlg" | |
698dcdb6 | 7170 | |
10f2d63a | 7171 | if test "$enableval" = yes; then |
1e6feb95 | 7172 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7173 | else |
1e6feb95 | 7174 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7175 | fi |
698dcdb6 | 7176 | |
10f2d63a | 7177 | else |
698dcdb6 | 7178 | |
1e6feb95 | 7179 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7180 | if test "x$LINE" != x ; then |
7181 | eval "DEFAULT_$LINE" | |
7182 | else | |
7183 | no_cache=1 | |
7184 | fi | |
7185 | ||
1e6feb95 | 7186 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7187 | |
7188 | fi | |
10f2d63a VZ |
7189 | |
7190 | ||
1e6feb95 | 7191 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7192 | if test "$no_cache" != 1; then |
1e6feb95 | 7193 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7194 | fi |
7195 | ||
1e6feb95 | 7196 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7197 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7198 | else |
698dcdb6 | 7199 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7200 | fi |
698dcdb6 | 7201 | |
10f2d63a | 7202 | |
cbca9943 | 7203 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
a72a4bfa | 7204 | echo "configure:7205: checking for --enable-splash" >&5 |
cbca9943 VZ |
7205 | no_cache=0 |
7206 | # Check whether --enable-splash or --disable-splash was given. | |
7207 | if test "${enable_splash+set}" = set; then | |
7208 | enableval="$enable_splash" | |
7209 | ||
7210 | if test "$enableval" = yes; then | |
7211 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7212 | else | |
7213 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7214 | fi | |
7215 | ||
7216 | else | |
7217 | ||
7218 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7219 | if test "x$LINE" != x ; then | |
7220 | eval "DEFAULT_$LINE" | |
7221 | else | |
7222 | no_cache=1 | |
7223 | fi | |
7224 | ||
7225 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7226 | ||
7227 | fi | |
7228 | ||
7229 | ||
7230 | eval "$ac_cv_use_splash" | |
7231 | if test "$no_cache" != 1; then | |
7232 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7233 | fi | |
7234 | ||
7235 | if test "$wxUSE_SPLASH" = yes; then | |
7236 | echo "$ac_t""yes" 1>&6 | |
7237 | else | |
7238 | echo "$ac_t""no" 1>&6 | |
7239 | fi | |
7240 | ||
7241 | ||
698dcdb6 | 7242 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
a72a4bfa | 7243 | echo "configure:7244: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7244 | no_cache=0 |
7245 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7246 | if test "${enable_textdlg+set}" = set; then | |
7247 | enableval="$enable_textdlg" | |
698dcdb6 | 7248 | |
10f2d63a VZ |
7249 | if test "$enableval" = yes; then |
7250 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7251 | else | |
7252 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7253 | fi | |
698dcdb6 | 7254 | |
10f2d63a | 7255 | else |
698dcdb6 | 7256 | |
10f2d63a VZ |
7257 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7258 | if test "x$LINE" != x ; then | |
7259 | eval "DEFAULT_$LINE" | |
7260 | else | |
7261 | no_cache=1 | |
7262 | fi | |
7263 | ||
7264 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7265 | |
7266 | fi | |
10f2d63a VZ |
7267 | |
7268 | ||
7269 | eval "$ac_cv_use_textdlg" | |
7270 | if test "$no_cache" != 1; then | |
7271 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7272 | fi | |
7273 | ||
7274 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7275 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7276 | else |
698dcdb6 | 7277 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7278 | fi |
698dcdb6 | 7279 | |
10f2d63a | 7280 | |
698dcdb6 | 7281 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
a72a4bfa | 7282 | echo "configure:7283: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7283 | no_cache=0 |
7284 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7285 | if test "${enable_tipdlg+set}" = set; then | |
7286 | enableval="$enable_tipdlg" | |
698dcdb6 | 7287 | |
10f2d63a VZ |
7288 | if test "$enableval" = yes; then |
7289 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7290 | else | |
7291 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7292 | fi | |
698dcdb6 | 7293 | |
10f2d63a | 7294 | else |
698dcdb6 | 7295 | |
10f2d63a VZ |
7296 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7297 | if test "x$LINE" != x ; then | |
7298 | eval "DEFAULT_$LINE" | |
7299 | else | |
7300 | no_cache=1 | |
7301 | fi | |
7302 | ||
7303 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7304 | |
7305 | fi | |
10f2d63a VZ |
7306 | |
7307 | ||
7308 | eval "$ac_cv_use_tipdlg" | |
7309 | if test "$no_cache" != 1; then | |
7310 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7311 | fi | |
7312 | ||
7313 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7315 | else |
698dcdb6 | 7316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7317 | fi |
698dcdb6 | 7318 | |
10f2d63a | 7319 | |
698dcdb6 | 7320 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
a72a4bfa | 7321 | echo "configure:7322: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7322 | no_cache=0 |
7323 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7324 | if test "${enable_progressdlg+set}" = set; then | |
7325 | enableval="$enable_progressdlg" | |
698dcdb6 | 7326 | |
10f2d63a VZ |
7327 | if test "$enableval" = yes; then |
7328 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7329 | else | |
7330 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7331 | fi | |
698dcdb6 | 7332 | |
10f2d63a | 7333 | else |
698dcdb6 | 7334 | |
10f2d63a VZ |
7335 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7336 | if test "x$LINE" != x ; then | |
7337 | eval "DEFAULT_$LINE" | |
7338 | else | |
7339 | no_cache=1 | |
7340 | fi | |
7341 | ||
7342 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7343 | |
7344 | fi | |
10f2d63a VZ |
7345 | |
7346 | ||
7347 | eval "$ac_cv_use_progressdlg" | |
7348 | if test "$no_cache" != 1; then | |
7349 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7350 | fi | |
7351 | ||
7352 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7353 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7354 | else |
698dcdb6 | 7355 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7356 | fi |
698dcdb6 | 7357 | |
10f2d63a | 7358 | |
b1f5d087 | 7359 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
a72a4bfa | 7360 | echo "configure:7361: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7361 | no_cache=0 |
7362 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7363 | if test "${enable_wizarddlg+set}" = set; then | |
7364 | enableval="$enable_wizarddlg" | |
7365 | ||
7366 | if test "$enableval" = yes; then | |
7367 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7368 | else | |
7369 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7370 | fi | |
7371 | ||
7372 | else | |
7373 | ||
7374 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
7381 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7382 | ||
7383 | fi | |
7384 | ||
7385 | ||
7386 | eval "$ac_cv_use_wizarddlg" | |
7387 | if test "$no_cache" != 1; then | |
7388 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7389 | fi | |
7390 | ||
7391 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7392 | echo "$ac_t""yes" 1>&6 | |
7393 | else | |
7394 | echo "$ac_t""no" 1>&6 | |
7395 | fi | |
7396 | ||
7397 | ||
7398 | ||
7399 | ||
1e6feb95 | 7400 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
a72a4bfa | 7401 | echo "configure:7402: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7402 | no_cache=0 |
7403 | # Check whether --enable-menus or --disable-menus was given. | |
7404 | if test "${enable_menus+set}" = set; then | |
7405 | enableval="$enable_menus" | |
7406 | ||
7407 | if test "$enableval" = yes; then | |
7408 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7409 | else | |
7410 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7411 | fi | |
7412 | ||
7413 | else | |
7414 | ||
7415 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7416 | if test "x$LINE" != x ; then | |
7417 | eval "DEFAULT_$LINE" | |
7418 | else | |
7419 | no_cache=1 | |
7420 | fi | |
7421 | ||
7422 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7423 | ||
7424 | fi | |
7425 | ||
7426 | ||
7427 | eval "$ac_cv_use_menus" | |
7428 | if test "$no_cache" != 1; then | |
7429 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7430 | fi | |
7431 | ||
7432 | if test "$wxUSE_MENUS" = yes; then | |
7433 | echo "$ac_t""yes" 1>&6 | |
7434 | else | |
7435 | echo "$ac_t""no" 1>&6 | |
7436 | fi | |
7437 | ||
7438 | ||
698dcdb6 | 7439 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
a72a4bfa | 7440 | echo "configure:7441: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7441 | no_cache=0 |
7442 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7443 | if test "${enable_miniframe+set}" = set; then | |
7444 | enableval="$enable_miniframe" | |
698dcdb6 | 7445 | |
10f2d63a VZ |
7446 | if test "$enableval" = yes; then |
7447 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7448 | else | |
7449 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7450 | fi | |
698dcdb6 | 7451 | |
10f2d63a | 7452 | else |
698dcdb6 | 7453 | |
10f2d63a VZ |
7454 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7455 | if test "x$LINE" != x ; then | |
7456 | eval "DEFAULT_$LINE" | |
7457 | else | |
7458 | no_cache=1 | |
7459 | fi | |
7460 | ||
7461 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7462 | |
7463 | fi | |
10f2d63a VZ |
7464 | |
7465 | ||
7466 | eval "$ac_cv_use_miniframe" | |
7467 | if test "$no_cache" != 1; then | |
7468 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7469 | fi | |
7470 | ||
7471 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7473 | else |
698dcdb6 | 7474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7475 | fi |
698dcdb6 | 7476 | |
10f2d63a | 7477 | |
698dcdb6 | 7478 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
a72a4bfa | 7479 | echo "configure:7480: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7480 | no_cache=0 |
7481 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7482 | if test "${enable_tooltips+set}" = set; then | |
7483 | enableval="$enable_tooltips" | |
698dcdb6 | 7484 | |
10f2d63a VZ |
7485 | if test "$enableval" = yes; then |
7486 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7487 | else | |
7488 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7489 | fi | |
698dcdb6 | 7490 | |
10f2d63a | 7491 | else |
698dcdb6 | 7492 | |
10f2d63a VZ |
7493 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7494 | if test "x$LINE" != x ; then | |
7495 | eval "DEFAULT_$LINE" | |
7496 | else | |
7497 | no_cache=1 | |
7498 | fi | |
7499 | ||
7500 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7501 | |
7502 | fi | |
10f2d63a VZ |
7503 | |
7504 | ||
7505 | eval "$ac_cv_use_tooltips" | |
7506 | if test "$no_cache" != 1; then | |
7507 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7508 | fi | |
7509 | ||
7510 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7511 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7512 | else |
698dcdb6 | 7513 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7514 | fi |
698dcdb6 | 7515 | |
10f2d63a | 7516 | |
698dcdb6 | 7517 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
a72a4bfa | 7518 | echo "configure:7519: checking for --enable-splines" >&5 |
10f2d63a VZ |
7519 | no_cache=0 |
7520 | # Check whether --enable-splines or --disable-splines was given. | |
7521 | if test "${enable_splines+set}" = set; then | |
7522 | enableval="$enable_splines" | |
698dcdb6 | 7523 | |
10f2d63a VZ |
7524 | if test "$enableval" = yes; then |
7525 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7526 | else | |
7527 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7528 | fi | |
698dcdb6 | 7529 | |
10f2d63a | 7530 | else |
698dcdb6 | 7531 | |
10f2d63a VZ |
7532 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7533 | if test "x$LINE" != x ; then | |
7534 | eval "DEFAULT_$LINE" | |
7535 | else | |
7536 | no_cache=1 | |
7537 | fi | |
7538 | ||
7539 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7540 | |
7541 | fi | |
10f2d63a VZ |
7542 | |
7543 | ||
7544 | eval "$ac_cv_use_splines" | |
7545 | if test "$no_cache" != 1; then | |
7546 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7547 | fi | |
7548 | ||
7549 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7550 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7551 | else |
698dcdb6 | 7552 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7553 | fi |
698dcdb6 | 7554 | |
10f2d63a | 7555 | |
698dcdb6 | 7556 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
a72a4bfa | 7557 | echo "configure:7558: checking for --enable-validators" >&5 |
10f2d63a VZ |
7558 | no_cache=0 |
7559 | # Check whether --enable-validators or --disable-validators was given. | |
7560 | if test "${enable_validators+set}" = set; then | |
7561 | enableval="$enable_validators" | |
698dcdb6 | 7562 | |
10f2d63a VZ |
7563 | if test "$enableval" = yes; then |
7564 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7565 | else | |
7566 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7567 | fi | |
698dcdb6 | 7568 | |
10f2d63a | 7569 | else |
698dcdb6 | 7570 | |
10f2d63a VZ |
7571 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7572 | if test "x$LINE" != x ; then | |
7573 | eval "DEFAULT_$LINE" | |
7574 | else | |
7575 | no_cache=1 | |
7576 | fi | |
7577 | ||
7578 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7579 | |
7580 | fi | |
10f2d63a VZ |
7581 | |
7582 | ||
7583 | eval "$ac_cv_use_validators" | |
7584 | if test "$no_cache" != 1; then | |
7585 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7586 | fi | |
7587 | ||
7588 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7590 | else |
698dcdb6 | 7591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7592 | fi |
698dcdb6 | 7593 | |
10f2d63a | 7594 | |
698dcdb6 | 7595 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
a72a4bfa | 7596 | echo "configure:7597: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7597 | no_cache=0 |
7598 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7599 | if test "${enable_busyinfo+set}" = set; then | |
7600 | enableval="$enable_busyinfo" | |
698dcdb6 | 7601 | |
10f2d63a VZ |
7602 | if test "$enableval" = yes; then |
7603 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7604 | else | |
7605 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7606 | fi | |
698dcdb6 | 7607 | |
10f2d63a | 7608 | else |
698dcdb6 | 7609 | |
10f2d63a VZ |
7610 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7611 | if test "x$LINE" != x ; then | |
7612 | eval "DEFAULT_$LINE" | |
7613 | else | |
7614 | no_cache=1 | |
7615 | fi | |
7616 | ||
7617 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7618 | |
7619 | fi | |
10f2d63a VZ |
7620 | |
7621 | ||
7622 | eval "$ac_cv_use_busyinfo" | |
7623 | if test "$no_cache" != 1; then | |
7624 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7625 | fi | |
7626 | ||
7627 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7629 | else |
698dcdb6 | 7630 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7631 | fi |
698dcdb6 | 7632 | |
10f2d63a | 7633 | |
698dcdb6 | 7634 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
a72a4bfa | 7635 | echo "configure:7636: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7636 | no_cache=0 |
7637 | # Check whether --enable-joystick or --disable-joystick was given. | |
7638 | if test "${enable_joystick+set}" = set; then | |
7639 | enableval="$enable_joystick" | |
698dcdb6 | 7640 | |
f6bcfd97 BP |
7641 | if test "$enableval" = yes; then |
7642 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7643 | else | |
7644 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7645 | fi | |
698dcdb6 | 7646 | |
f6bcfd97 | 7647 | else |
698dcdb6 | 7648 | |
f6bcfd97 BP |
7649 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7650 | if test "x$LINE" != x ; then | |
7651 | eval "DEFAULT_$LINE" | |
7652 | else | |
7653 | no_cache=1 | |
7654 | fi | |
7655 | ||
7656 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7657 | |
7658 | fi | |
f6bcfd97 BP |
7659 | |
7660 | ||
7661 | eval "$ac_cv_use_joystick" | |
7662 | if test "$no_cache" != 1; then | |
7663 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7664 | fi | |
7665 | ||
7666 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7667 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7668 | else |
698dcdb6 | 7669 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7670 | fi |
698dcdb6 VZ |
7671 | |
7672 | ||
1e6feb95 | 7673 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
a72a4bfa | 7674 | echo "configure:7675: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7675 | no_cache=0 |
7676 | # Check whether --enable-metafile or --disable-metafile was given. | |
7677 | if test "${enable_metafile+set}" = set; then | |
7678 | enableval="$enable_metafile" | |
7679 | ||
7680 | if test "$enableval" = yes; then | |
7681 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7682 | else | |
7683 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7684 | fi | |
7685 | ||
7686 | else | |
7687 | ||
7688 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7689 | if test "x$LINE" != x ; then | |
7690 | eval "DEFAULT_$LINE" | |
7691 | else | |
7692 | no_cache=1 | |
7693 | fi | |
7694 | ||
7695 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7696 | ||
7697 | fi | |
7698 | ||
7699 | ||
7700 | eval "$ac_cv_use_metafile" | |
7701 | if test "$no_cache" != 1; then | |
7702 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7703 | fi | |
7704 | ||
7705 | if test "$wxUSE_METAFILE" = yes; then | |
7706 | echo "$ac_t""yes" 1>&6 | |
7707 | else | |
7708 | echo "$ac_t""no" 1>&6 | |
7709 | fi | |
7710 | ||
7711 | ||
24fd6d87 | 7712 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
a72a4bfa | 7713 | echo "configure:7714: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7714 | no_cache=0 |
7715 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7716 | if test "${enable_dragimage+set}" = set; then | |
7717 | enableval="$enable_dragimage" | |
7718 | ||
7719 | if test "$enableval" = yes; then | |
7720 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7721 | else | |
7722 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7723 | fi | |
7724 | ||
7725 | else | |
7726 | ||
7727 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7728 | if test "x$LINE" != x ; then | |
7729 | eval "DEFAULT_$LINE" | |
7730 | else | |
7731 | no_cache=1 | |
7732 | fi | |
7733 | ||
7734 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7735 | ||
7736 | fi | |
7737 | ||
7738 | ||
7739 | eval "$ac_cv_use_dragimage" | |
7740 | if test "$no_cache" != 1; then | |
7741 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7742 | fi | |
7743 | ||
7744 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7745 | echo "$ac_t""yes" 1>&6 | |
7746 | else | |
7747 | echo "$ac_t""no" 1>&6 | |
7748 | fi | |
7749 | ||
7750 | ||
10f2d63a | 7751 | |
698dcdb6 | 7752 | |
edae8572 | 7753 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
a72a4bfa | 7754 | echo "configure:7755: checking for --enable-palette" >&5 |
edae8572 VZ |
7755 | no_cache=0 |
7756 | # Check whether --enable-palette or --disable-palette was given. | |
7757 | if test "${enable_palette+set}" = set; then | |
7758 | enableval="$enable_palette" | |
7759 | ||
7760 | if test "$enableval" = yes; then | |
7761 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7762 | else | |
7763 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7764 | fi | |
7765 | ||
7766 | else | |
7767 | ||
7768 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7769 | if test "x$LINE" != x ; then | |
7770 | eval "DEFAULT_$LINE" | |
7771 | else | |
7772 | no_cache=1 | |
7773 | fi | |
7774 | ||
7775 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7776 | ||
7777 | fi | |
7778 | ||
7779 | ||
7780 | eval "$ac_cv_use_palette" | |
7781 | if test "$no_cache" != 1; then | |
7782 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7783 | fi | |
7784 | ||
7785 | if test "$wxUSE_PALETTE" = yes; then | |
7786 | echo "$ac_t""yes" 1>&6 | |
7787 | else | |
7788 | echo "$ac_t""no" 1>&6 | |
7789 | fi | |
7790 | ||
7791 | ||
698dcdb6 | 7792 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
a72a4bfa | 7793 | echo "configure:7794: checking for --enable-image" >&5 |
0046ff7c VS |
7794 | no_cache=0 |
7795 | # Check whether --enable-image or --disable-image was given. | |
7796 | if test "${enable_image+set}" = set; then | |
7797 | enableval="$enable_image" | |
698dcdb6 | 7798 | |
0046ff7c VS |
7799 | if test "$enableval" = yes; then |
7800 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7801 | else | |
7802 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7803 | fi | |
698dcdb6 | 7804 | |
0046ff7c | 7805 | else |
698dcdb6 | 7806 | |
0046ff7c VS |
7807 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7808 | if test "x$LINE" != x ; then | |
7809 | eval "DEFAULT_$LINE" | |
7810 | else | |
7811 | no_cache=1 | |
7812 | fi | |
7813 | ||
7814 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7815 | |
7816 | fi | |
0046ff7c VS |
7817 | |
7818 | ||
7819 | eval "$ac_cv_use_image" | |
7820 | if test "$no_cache" != 1; then | |
7821 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7822 | fi | |
7823 | ||
7824 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7825 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7826 | else |
698dcdb6 | 7827 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7828 | fi |
698dcdb6 | 7829 | |
0046ff7c | 7830 | |
698dcdb6 | 7831 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
a72a4bfa | 7832 | echo "configure:7833: checking for --enable-gif" >&5 |
10f2d63a VZ |
7833 | no_cache=0 |
7834 | # Check whether --enable-gif or --disable-gif was given. | |
7835 | if test "${enable_gif+set}" = set; then | |
7836 | enableval="$enable_gif" | |
698dcdb6 | 7837 | |
10f2d63a VZ |
7838 | if test "$enableval" = yes; then |
7839 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7840 | else | |
7841 | ac_cv_use_gif='wxUSE_GIF=no' | |
7842 | fi | |
698dcdb6 | 7843 | |
10f2d63a | 7844 | else |
698dcdb6 | 7845 | |
10f2d63a VZ |
7846 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7847 | if test "x$LINE" != x ; then | |
7848 | eval "DEFAULT_$LINE" | |
7849 | else | |
7850 | no_cache=1 | |
7851 | fi | |
7852 | ||
7853 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7854 | |
7855 | fi | |
10f2d63a VZ |
7856 | |
7857 | ||
7858 | eval "$ac_cv_use_gif" | |
7859 | if test "$no_cache" != 1; then | |
7860 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7861 | fi | |
7862 | ||
7863 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7865 | else |
698dcdb6 | 7866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7867 | fi |
698dcdb6 | 7868 | |
10f2d63a | 7869 | |
698dcdb6 | 7870 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
a72a4bfa | 7871 | echo "configure:7872: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7872 | no_cache=0 |
7873 | # Check whether --enable-pcx or --disable-pcx was given. | |
7874 | if test "${enable_pcx+set}" = set; then | |
7875 | enableval="$enable_pcx" | |
698dcdb6 | 7876 | |
10f2d63a VZ |
7877 | if test "$enableval" = yes; then |
7878 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7879 | else | |
7880 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7881 | fi | |
698dcdb6 | 7882 | |
10f2d63a | 7883 | else |
698dcdb6 | 7884 | |
10f2d63a VZ |
7885 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7886 | if test "x$LINE" != x ; then | |
7887 | eval "DEFAULT_$LINE" | |
7888 | else | |
7889 | no_cache=1 | |
7890 | fi | |
7891 | ||
7892 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7893 | |
7894 | fi | |
10f2d63a VZ |
7895 | |
7896 | ||
7897 | eval "$ac_cv_use_pcx" | |
7898 | if test "$no_cache" != 1; then | |
7899 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7900 | fi | |
7901 | ||
7902 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7903 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7904 | else |
698dcdb6 | 7905 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7906 | fi |
698dcdb6 | 7907 | |
10f2d63a | 7908 | |
698dcdb6 | 7909 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
a72a4bfa | 7910 | echo "configure:7911: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7911 | no_cache=0 |
7912 | # Check whether --enable-pnm or --disable-pnm was given. | |
7913 | if test "${enable_pnm+set}" = set; then | |
7914 | enableval="$enable_pnm" | |
698dcdb6 | 7915 | |
10f2d63a VZ |
7916 | if test "$enableval" = yes; then |
7917 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7918 | else | |
7919 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7920 | fi | |
698dcdb6 | 7921 | |
10f2d63a | 7922 | else |
698dcdb6 | 7923 | |
10f2d63a VZ |
7924 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7925 | if test "x$LINE" != x ; then | |
7926 | eval "DEFAULT_$LINE" | |
7927 | else | |
7928 | no_cache=1 | |
7929 | fi | |
7930 | ||
7931 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7932 | |
7933 | fi | |
10f2d63a VZ |
7934 | |
7935 | ||
7936 | eval "$ac_cv_use_pnm" | |
7937 | if test "$no_cache" != 1; then | |
7938 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7939 | fi | |
7940 | ||
7941 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7942 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7943 | else |
698dcdb6 | 7944 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7945 | fi |
698dcdb6 | 7946 | |
10f2d63a | 7947 | |
69d27ff7 | 7948 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
a72a4bfa | 7949 | echo "configure:7950: checking for --enable-xpm" >&5 |
0046ff7c | 7950 | no_cache=0 |
69d27ff7 MB |
7951 | # Check whether --enable-xpm or --disable-xpm was given. |
7952 | if test "${enable_xpm+set}" = set; then | |
7953 | enableval="$enable_xpm" | |
698dcdb6 | 7954 | |
0046ff7c | 7955 | if test "$enableval" = yes; then |
69d27ff7 | 7956 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 7957 | else |
69d27ff7 | 7958 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 7959 | fi |
698dcdb6 | 7960 | |
0046ff7c | 7961 | else |
698dcdb6 | 7962 | |
0046ff7c VS |
7963 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7964 | if test "x$LINE" != x ; then | |
7965 | eval "DEFAULT_$LINE" | |
7966 | else | |
7967 | no_cache=1 | |
7968 | fi | |
7969 | ||
69d27ff7 | 7970 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
7971 | |
7972 | fi | |
0046ff7c VS |
7973 | |
7974 | ||
69d27ff7 | 7975 | eval "$ac_cv_use_xpm" |
0046ff7c | 7976 | if test "$no_cache" != 1; then |
69d27ff7 | 7977 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
7978 | fi |
7979 | ||
7980 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7981 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7982 | else |
698dcdb6 | 7983 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7984 | fi |
698dcdb6 | 7985 | |
0046ff7c | 7986 | |
b12915c1 VZ |
7987 | fi |
7988 | ||
698dcdb6 | 7989 | |
10f2d63a VZ |
7990 | echo "saving argument cache $wx_arg_cache_file" |
7991 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7992 | |
10f2d63a | 7993 | |
698dcdb6 VZ |
7994 | |
7995 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
a72a4bfa | 7996 | echo "configure:7997: checking for toolkit" >&5 |
10f2d63a VZ |
7997 | |
7998 | if test "$wxUSE_GUI" = "yes"; then | |
7999 | ||
3a922bb4 RL |
8000 | if test "$USE_BEOS" = 1; then |
8001 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8002 | fi | |
b12915c1 | 8003 | |
3a922bb4 RL |
8004 | if test "$TOOLKIT_GIVEN" = 1; then |
8005 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8006 | var=wxUSE_$toolkit | |
8007 | eval "value=\$${var}" | |
8008 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8009 | done | |
10f2d63a | 8010 | else |
3a922bb4 RL |
8011 | for toolkit in `echo $ALL_TOOLKITS`; do |
8012 | if test "$has_toolkit_in_cache" != 1; then | |
8013 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8014 | else | |
8015 | var=DEFAULT_wxUSE_$toolkit | |
8016 | fi | |
8017 | eval "wxUSE_$toolkit=\$${var}" | |
8018 | done | |
10f2d63a | 8019 | fi |
10f2d63a | 8020 | |
3a922bb4 | 8021 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
1725144d | 8022 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}` |
10f2d63a | 8023 | |
3a922bb4 | 8024 | case "${host}" in |
6fa882bd | 8025 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8026 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8027 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8028 | LEX_STEM="lexyy" | |
8029 | ;; | |
8030 | *) | |
8031 | PATH_IFS=':' | |
8032 | LEX_STEM="lex.yy" | |
8033 | ;; | |
8034 | esac | |
10f2d63a | 8035 | |
3a922bb4 RL |
8036 | case "$NUM_TOOLKITS" in |
8037 | 1) | |
8038 | ;; | |
8039 | 0) | |
8040 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8041 | ;; | |
8042 | *) | |
8043 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8044 | esac | |
10f2d63a | 8045 | |
3a922bb4 RL |
8046 | for toolkit in `echo $ALL_TOOLKITS`; do |
8047 | var=wxUSE_$toolkit | |
8048 | eval "value=\$${var}" | |
8049 | if test "x$value" != x; then | |
8050 | cache_var=CACHE_$toolkit | |
8051 | eval "cache=\$${cache_var}" | |
8052 | if test "$cache" = 1; then | |
8053 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8054 | fi | |
8055 | if test "$value" = 1; then | |
8056 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8057 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8058 | fi | |
8059 | fi | |
8060 | done | |
10f2d63a | 8061 | else |
cf27ef00 | 8062 | PATH_IFS=':' |
3a922bb4 | 8063 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8064 | fi |
8065 | ||
698dcdb6 VZ |
8066 | |
8067 | cat > confcache <<\EOF | |
10f2d63a VZ |
8068 | # This file is a shell script that caches the results of configure |
8069 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8070 | # scripts and configure runs. It is not useful on other systems. |
8071 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8072 | # |
698dcdb6 VZ |
8073 | # By default, configure uses ./config.cache as the cache file, |
8074 | # creating it if it does not exist already. You can give configure | |
8075 | # the --cache-file=FILE option to use a different cache file; that is | |
8076 | # what configure does when it calls configure scripts in | |
8077 | # subdirectories, so they share the cache. | |
8078 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8079 | # config.status only pays attention to the cache file if you give it the | |
8080 | # --recheck option to rerun configure. | |
10f2d63a | 8081 | # |
698dcdb6 | 8082 | EOF |
10f2d63a VZ |
8083 | # The following way of writing the cache mishandles newlines in values, |
8084 | # but we know of no workaround that is simple, portable, and efficient. | |
8085 | # So, don't put newlines in cache variables' values. | |
8086 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8087 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8088 | (set) 2>&1 | |
8089 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8090 | *ac_space=\ *) | |
8091 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8092 | # turns \\\\ into \\, and sed turns \\ into \). | |
8093 | sed -n \ | |
8094 | -e "s/'/'\\\\''/g" \ | |
8095 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8096 | ;; | |
8097 | *) | |
8098 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8099 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8100 | ;; | |
8101 | esac >> confcache | |
8102 | if cmp -s $cache_file confcache; then | |
8103 | : | |
8104 | else | |
10f2d63a | 8105 | if test -w $cache_file; then |
698dcdb6 VZ |
8106 | echo "updating cache $cache_file" |
8107 | cat confcache > $cache_file | |
10f2d63a VZ |
8108 | else |
8109 | echo "not updating unwritable cache $cache_file" | |
8110 | fi | |
8111 | fi | |
8112 | rm -f confcache | |
8113 | ||
698dcdb6 | 8114 | |
e59890c3 | 8115 | if test "$build" != "$host" ; then |
f9bc1684 | 8116 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8117 | CC=$host_alias-gcc |
8118 | CXX=$host_alias-c++ | |
8119 | AR=$host_alias-ar | |
8120 | RANLIB=$host_alias-ranlib | |
8121 | DLLTOOL=$host_alias-dlltool | |
8122 | RESCOMP=$host_alias-windres | |
8123 | LD=$host_alias-ld | |
8124 | NM=$host_alias-nm | |
8125 | STRIP=$host_alias-strip | |
8126 | else | |
8127 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8128 | fi | |
10f2d63a VZ |
8129 | fi |
8130 | ||
698dcdb6 | 8131 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8132 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 8134 | echo "configure:8135: checking for $ac_word" >&5 |
698dcdb6 VZ |
8135 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8137 | else |
8138 | if test -n "$CC"; then | |
8139 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8140 | else |
698dcdb6 VZ |
8141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8142 | ac_dummy="$PATH" | |
8143 | for ac_dir in $ac_dummy; do | |
8144 | test -z "$ac_dir" && ac_dir=. | |
8145 | if test -f $ac_dir/$ac_word; then | |
8146 | ac_cv_prog_CC="gcc" | |
8147 | break | |
8148 | fi | |
8149 | done | |
8150 | IFS="$ac_save_ifs" | |
10f2d63a | 8151 | fi |
6232543b | 8152 | fi |
698dcdb6 | 8153 | CC="$ac_cv_prog_CC" |
6232543b | 8154 | if test -n "$CC"; then |
698dcdb6 | 8155 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8156 | else |
698dcdb6 | 8157 | echo "$ac_t""no" 1>&6 |
1e487827 | 8158 | fi |
6232543b | 8159 | |
1e487827 VS |
8160 | if test -z "$CC"; then |
8161 | # Extract the first word of "cc", so it can be a program name with args. | |
8162 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8163 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 8164 | echo "configure:8165: checking for $ac_word" >&5 |
698dcdb6 VZ |
8165 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8167 | else |
8168 | if test -n "$CC"; then | |
8169 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8170 | else | |
698dcdb6 | 8171 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8172 | ac_prog_rejected=no |
698dcdb6 VZ |
8173 | ac_dummy="$PATH" |
8174 | for ac_dir in $ac_dummy; do | |
8175 | test -z "$ac_dir" && ac_dir=. | |
8176 | if test -f $ac_dir/$ac_word; then | |
8177 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8178 | ac_prog_rejected=yes | |
8179 | continue | |
8180 | fi | |
8181 | ac_cv_prog_CC="cc" | |
8182 | break | |
8183 | fi | |
8184 | done | |
8185 | IFS="$ac_save_ifs" | |
1e487827 VS |
8186 | if test $ac_prog_rejected = yes; then |
8187 | # We found a bogon in the path, so make sure we never use it. | |
8188 | set dummy $ac_cv_prog_CC | |
8189 | shift | |
698dcdb6 | 8190 | if test $# -gt 0; then |
1e487827 VS |
8191 | # We chose a different compiler from the bogus one. |
8192 | # However, it has the same basename, so the bogon will be chosen | |
8193 | # first if we set CC to just the basename; use the full file name. | |
8194 | shift | |
698dcdb6 | 8195 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8196 | shift |
8197 | ac_cv_prog_CC="$@" | |
703e0a69 | 8198 | fi |
1e487827 VS |
8199 | fi |
8200 | fi | |
8201 | fi | |
698dcdb6 | 8202 | CC="$ac_cv_prog_CC" |
1e487827 | 8203 | if test -n "$CC"; then |
698dcdb6 | 8204 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8205 | else |
698dcdb6 | 8206 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8207 | fi |
1e487827 | 8208 | |
698dcdb6 VZ |
8209 | if test -z "$CC"; then |
8210 | case "`uname -s`" in | |
8211 | *win32* | *WIN32*) | |
8212 | # Extract the first word of "cl", so it can be a program name with args. | |
8213 | set dummy cl; ac_word=$2 | |
8214 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a72a4bfa | 8215 | echo "configure:8216: checking for $ac_word" >&5 |
698dcdb6 VZ |
8216 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8218 | else |
8219 | if test -n "$CC"; then | |
8220 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8221 | else |
698dcdb6 VZ |
8222 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8223 | ac_dummy="$PATH" | |
8224 | for ac_dir in $ac_dummy; do | |
8225 | test -z "$ac_dir" && ac_dir=. | |
8226 | if test -f $ac_dir/$ac_word; then | |
8227 | ac_cv_prog_CC="cl" | |
8228 | break | |
8229 | fi | |
8230 | done | |
8231 | IFS="$ac_save_ifs" | |
703e0a69 | 8232 | fi |
1e487827 | 8233 | fi |
698dcdb6 | 8234 | CC="$ac_cv_prog_CC" |
1e487827 | 8235 | if test -n "$CC"; then |
698dcdb6 | 8236 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8237 | else |
698dcdb6 | 8238 | echo "$ac_t""no" 1>&6 |
1e487827 | 8239 | fi |
698dcdb6 VZ |
8240 | ;; |
8241 | esac | |
8242 | fi | |
8243 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8244 | fi |
8245 | ||
698dcdb6 | 8246 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
a72a4bfa | 8247 | echo "configure:8248: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8248 | |
698dcdb6 VZ |
8249 | ac_ext=c |
8250 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8251 | ac_cpp='$CPP $CPPFLAGS' | |
8252 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8253 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8254 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8255 | |
698dcdb6 | 8256 | cat > conftest.$ac_ext << EOF |
1e487827 | 8257 | |
a72a4bfa | 8258 | #line 8259 "configure" |
1e487827 VS |
8259 | #include "confdefs.h" |
8260 | ||
698dcdb6 VZ |
8261 | main(){return(0);} |
8262 | EOF | |
a72a4bfa | 8263 | if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8264 | ac_cv_prog_cc_works=yes |
8265 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8266 | if (./conftest; exit) 2>/dev/null; then | |
8267 | ac_cv_prog_cc_cross=no | |
8268 | else | |
8269 | ac_cv_prog_cc_cross=yes | |
8270 | fi | |
8271 | else | |
8272 | echo "configure: failed program was:" >&5 | |
8273 | cat conftest.$ac_ext >&5 | |
8274 | ac_cv_prog_cc_works=no | |
8275 | fi | |
8276 | rm -fr conftest* | |
8277 | ac_ext=c | |
8278 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8279 | ac_cpp='$CPP $CPPFLAGS' | |
8280 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8281 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8282 | cross_compiling=$ac_cv_prog_cc_cross | |
8283 | ||
8284 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8285 | if test $ac_cv_prog_cc_works = no; then | |
8286 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8287 | fi | |
8288 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a72a4bfa | 8289 | echo "configure:8290: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8290 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8291 | cross_compiling=$ac_cv_prog_cc_cross | |
8292 | ||
8293 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
a72a4bfa | 8294 | echo "configure:8295: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8295 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8297 | else | |
8298 | cat > conftest.c <<EOF | |
8299 | #ifdef __GNUC__ | |
8300 | yes; | |
1e487827 | 8301 | #endif |
698dcdb6 | 8302 | EOF |
a72a4bfa | 8303 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8304 | ac_cv_prog_gcc=yes |
8305 | else | |
8306 | ac_cv_prog_gcc=no | |
8307 | fi | |
8308 | fi | |
1e487827 | 8309 | |
698dcdb6 | 8310 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8311 | |
698dcdb6 VZ |
8312 | if test $ac_cv_prog_gcc = yes; then |
8313 | GCC=yes | |
8314 | else | |
8315 | GCC= | |
8316 | fi | |
1e487827 | 8317 | |
698dcdb6 VZ |
8318 | ac_test_CFLAGS="${CFLAGS+set}" |
8319 | ac_save_CFLAGS="$CFLAGS" | |
8320 | CFLAGS= | |
8321 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
a72a4bfa | 8322 | echo "configure:8323: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8323 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8325 | else | |
8326 | echo 'void f(){}' > conftest.c | |
8327 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8328 | ac_cv_prog_cc_g=yes |
8329 | else | |
698dcdb6 | 8330 | ac_cv_prog_cc_g=no |
10f2d63a | 8331 | fi |
698dcdb6 VZ |
8332 | rm -f conftest* |
8333 | ||
10f2d63a | 8334 | fi |
698dcdb6 VZ |
8335 | |
8336 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8337 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8338 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8339 | elif test $ac_cv_prog_cc_g = yes; then |
8340 | if test "$GCC" = yes; then | |
8341 | CFLAGS="-g -O2" | |
8342 | else | |
8343 | CFLAGS="-g" | |
8344 | fi | |
8345 | else | |
8346 | if test "$GCC" = yes; then | |
8347 | CFLAGS="-O2" | |
8348 | else | |
8349 | CFLAGS= | |
8350 | fi | |
8351 | fi | |
8352 | ||
8353 | ||
8354 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8355 | ||
698dcdb6 | 8356 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
a72a4bfa | 8357 | echo "configure:8358: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8358 | # On Suns, sometimes $CPP names a directory. |
8359 | if test -n "$CPP" && test -d "$CPP"; then | |
8360 | CPP= | |
8361 | fi | |
8362 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8363 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8365 | else | |
8366 | # This must be in double quotes, not single quotes, because CPP may get | |
8367 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8368 | CPP="${CC-cc} -E" | |
10f2d63a | 8369 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8370 | # not just through cpp. |
8371 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 8372 | #line 8373 "configure" |
10f2d63a VZ |
8373 | #include "confdefs.h" |
8374 | #include <assert.h> | |
698dcdb6 VZ |
8375 | Syntax Error |
8376 | EOF | |
8377 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 8378 | { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8379 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8380 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8381 | : |
8382 | else | |
698dcdb6 VZ |
8383 | echo "$ac_err" >&5 |
8384 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8385 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8386 | rm -rf conftest* |
8387 | CPP="${CC-cc} -E -traditional-cpp" | |
8388 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 8389 | #line 8390 "configure" |
10f2d63a | 8390 | #include "confdefs.h" |
698dcdb6 VZ |
8391 | #include <assert.h> |
8392 | Syntax Error | |
8393 | EOF | |
8394 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 8395 | { (eval echo configure:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8396 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8397 | if test -z "$ac_err"; then | |
8398 | : | |
10f2d63a | 8399 | else |
698dcdb6 VZ |
8400 | echo "$ac_err" >&5 |
8401 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8402 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8403 | rm -rf conftest* |
8404 | CPP="${CC-cc} -nologo -E" | |
8405 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 8406 | #line 8407 "configure" |
10f2d63a VZ |
8407 | #include "confdefs.h" |
8408 | #include <assert.h> | |
698dcdb6 VZ |
8409 | Syntax Error |
8410 | EOF | |
8411 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 8412 | { (eval echo configure:8413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8413 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8414 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8415 | : |
8416 | else | |
698dcdb6 VZ |
8417 | echo "$ac_err" >&5 |
8418 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8419 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8420 | rm -rf conftest* |
8421 | CPP=/lib/cpp | |
10f2d63a | 8422 | fi |
698dcdb6 | 8423 | rm -f conftest* |
10f2d63a | 8424 | fi |
698dcdb6 | 8425 | rm -f conftest* |
703e0a69 | 8426 | fi |
698dcdb6 VZ |
8427 | rm -f conftest* |
8428 | ac_cv_prog_CPP="$CPP" | |
8429 | fi | |
8430 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8431 | else |
698dcdb6 | 8432 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8433 | fi |
698dcdb6 | 8434 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8435 | |
698dcdb6 VZ |
8436 | if test $ac_cv_prog_gcc = yes; then |
8437 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
a72a4bfa | 8438 | echo "configure:8439: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8439 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8441 | else |
8442 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8443 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 8444 | #line 8445 "configure" |
10f2d63a VZ |
8445 | #include "confdefs.h" |
8446 | #include <sgtty.h> | |
8447 | Autoconf TIOCGETP | |
698dcdb6 | 8448 | EOF |
10f2d63a VZ |
8449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8450 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8451 | rm -rf conftest* |
10f2d63a VZ |
8452 | ac_cv_prog_gcc_traditional=yes |
8453 | else | |
698dcdb6 | 8454 | rm -rf conftest* |
10f2d63a VZ |
8455 | ac_cv_prog_gcc_traditional=no |
8456 | fi | |
8457 | rm -f conftest* | |
8458 | ||
698dcdb6 | 8459 | |
10f2d63a | 8460 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8461 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 8462 | #line 8463 "configure" |
10f2d63a VZ |
8463 | #include "confdefs.h" |
8464 | #include <termio.h> | |
8465 | Autoconf TCGETA | |
698dcdb6 | 8466 | EOF |
10f2d63a VZ |
8467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8468 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8469 | rm -rf conftest* |
10f2d63a VZ |
8470 | ac_cv_prog_gcc_traditional=yes |
8471 | fi | |
8472 | rm -f conftest* | |
8473 | ||
8474 | fi | |
8475 | fi | |
698dcdb6 VZ |
8476 | |
8477 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8478 | if test $ac_cv_prog_gcc_traditional = yes; then |
8479 | CC="$CC -traditional" | |
8480 | fi | |
8481 | fi | |
8482 | ||
703e0a69 | 8483 | |
698dcdb6 VZ |
8484 | |
8485 | ac_ext=C | |
8486 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8487 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8488 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8489 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8490 | cross_compiling=$ac_cv_prog_cxx_cross | |
8491 | ||
8492 | ||
8493 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8494 | do | |
8495 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8496 | set dummy $ac_prog; ac_word=$2 | |
8497 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a72a4bfa | 8498 | echo "configure:8499: checking for $ac_word" >&5 |
698dcdb6 VZ |
8499 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8501 | else |
8502 | if test -n "$CXX"; then | |
8503 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8504 | else | |
698dcdb6 VZ |
8505 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8506 | ac_dummy="$PATH" | |
8507 | for ac_dir in $ac_dummy; do | |
8508 | test -z "$ac_dir" && ac_dir=. | |
8509 | if test -f $ac_dir/$ac_word; then | |
8510 | ac_cv_prog_CXX="$ac_prog" | |
8511 | break | |
8512 | fi | |
8513 | done | |
8514 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8515 | fi |
8516 | fi | |
698dcdb6 | 8517 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8518 | if test -n "$CXX"; then |
698dcdb6 | 8519 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8520 | else |
698dcdb6 | 8521 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8522 | fi |
8523 | ||
698dcdb6 | 8524 | test -n "$CXX" && break |
10f2d63a | 8525 | done |
698dcdb6 | 8526 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8527 | |
8528 | ||
698dcdb6 | 8529 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
a72a4bfa | 8530 | echo "configure:8531: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8531 | |
698dcdb6 VZ |
8532 | ac_ext=C |
8533 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8534 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8535 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8536 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8537 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8538 | |
698dcdb6 VZ |
8539 | cat > conftest.$ac_ext << EOF |
8540 | ||
a72a4bfa | 8541 | #line 8542 "configure" |
10f2d63a VZ |
8542 | #include "confdefs.h" |
8543 | ||
698dcdb6 VZ |
8544 | int main(){return(0);} |
8545 | EOF | |
a72a4bfa | 8546 | if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8547 | ac_cv_prog_cxx_works=yes |
8548 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8549 | if (./conftest; exit) 2>/dev/null; then | |
8550 | ac_cv_prog_cxx_cross=no | |
8551 | else | |
8552 | ac_cv_prog_cxx_cross=yes | |
8553 | fi | |
8554 | else | |
8555 | echo "configure: failed program was:" >&5 | |
8556 | cat conftest.$ac_ext >&5 | |
8557 | ac_cv_prog_cxx_works=no | |
8558 | fi | |
8559 | rm -fr conftest* | |
8560 | ac_ext=C | |
8561 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8562 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8563 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8564 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8565 | cross_compiling=$ac_cv_prog_cxx_cross | |
8566 | ||
8567 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8568 | if test $ac_cv_prog_cxx_works = no; then | |
8569 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8570 | fi | |
8571 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a72a4bfa | 8572 | echo "configure:8573: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8573 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8574 | cross_compiling=$ac_cv_prog_cxx_cross | |
8575 | ||
8576 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
a72a4bfa | 8577 | echo "configure:8578: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8578 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8580 | else | |
8581 | cat > conftest.C <<EOF | |
8582 | #ifdef __GNUC__ | |
8583 | yes; | |
10f2d63a | 8584 | #endif |
698dcdb6 | 8585 | EOF |
a72a4bfa | 8586 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8587 | ac_cv_prog_gxx=yes |
8588 | else | |
8589 | ac_cv_prog_gxx=no | |
8590 | fi | |
8591 | fi | |
10f2d63a | 8592 | |
698dcdb6 | 8593 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8594 | |
698dcdb6 VZ |
8595 | if test $ac_cv_prog_gxx = yes; then |
8596 | GXX=yes | |
8597 | else | |
8598 | GXX= | |
8599 | fi | |
10f2d63a | 8600 | |
698dcdb6 VZ |
8601 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8602 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8603 | CXXFLAGS= | |
8604 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
a72a4bfa | 8605 | echo "configure:8606: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8606 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8608 | else | |
8609 | echo 'void f(){}' > conftest.cc | |
8610 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8611 | ac_cv_prog_cxx_g=yes |
8612 | else | |
698dcdb6 | 8613 | ac_cv_prog_cxx_g=no |
10f2d63a | 8614 | fi |
698dcdb6 VZ |
8615 | rm -f conftest* |
8616 | ||
10f2d63a | 8617 | fi |
698dcdb6 VZ |
8618 | |
8619 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8620 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8621 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8622 | elif test $ac_cv_prog_cxx_g = yes; then |
8623 | if test "$GXX" = yes; then | |
8624 | CXXFLAGS="-g -O2" | |
8625 | else | |
8626 | CXXFLAGS="-g" | |
8627 | fi | |
8628 | else | |
8629 | if test "$GXX" = yes; then | |
8630 | CXXFLAGS="-O2" | |
8631 | else | |
8632 | CXXFLAGS= | |
8633 | fi | |
8634 | fi | |
8635 | ||
8636 | ||
10f2d63a VZ |
8637 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8638 | ||
8639 | ac_ext=c | |
698dcdb6 | 8640 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8641 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8642 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8643 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8644 | cross_compiling=$ac_cv_prog_cc_cross | |
8645 | ||
8646 | ||
8647 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8648 | set dummy ranlib; ac_word=$2 | |
8649 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a72a4bfa | 8650 | echo "configure:8651: checking for $ac_word" >&5 |
698dcdb6 VZ |
8651 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8653 | else |
8654 | if test -n "$RANLIB"; then | |
8655 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8656 | else | |
698dcdb6 VZ |
8657 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8658 | ac_dummy="$PATH" | |
8659 | for ac_dir in $ac_dummy; do | |
8660 | test -z "$ac_dir" && ac_dir=. | |
8661 | if test -f $ac_dir/$ac_word; then | |
8662 | ac_cv_prog_RANLIB="ranlib" | |
8663 | break | |
8664 | fi | |
8665 | done | |
8666 | IFS="$ac_save_ifs" | |
8667 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8668 | fi |
8669 | fi | |
698dcdb6 | 8670 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8671 | if test -n "$RANLIB"; then |
698dcdb6 | 8672 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8673 | else |
698dcdb6 | 8674 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8675 | fi |
8676 | ||
8677 | ||
8678 | # Extract the first word of "ar", so it can be a program name with args. | |
8679 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8680 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 8681 | echo "configure:8682: checking for $ac_word" >&5 |
698dcdb6 VZ |
8682 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8684 | else |
8685 | if test -n "$AR"; then | |
8686 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8687 | else | |
698dcdb6 VZ |
8688 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8689 | ac_dummy="$PATH" | |
8690 | for ac_dir in $ac_dummy; do | |
8691 | test -z "$ac_dir" && ac_dir=. | |
8692 | if test -f $ac_dir/$ac_word; then | |
8693 | ac_cv_prog_AR="ar" | |
8694 | break | |
8695 | fi | |
8696 | done | |
8697 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8698 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8699 | fi | |
8700 | fi | |
698dcdb6 | 8701 | AR="$ac_cv_prog_AR" |
10f2d63a | 8702 | if test -n "$AR"; then |
698dcdb6 | 8703 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8704 | else |
698dcdb6 | 8705 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8706 | fi |
8707 | ||
698dcdb6 | 8708 | |
6054113a | 8709 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
8710 | # so one script is as good as another. But avoid the broken or |
8711 | # incompatible versions: | |
8712 | # SysV /etc/install, /usr/sbin/install | |
8713 | # SunOS /usr/etc/install | |
8714 | # IRIX /sbin/install | |
8715 | # AIX /bin/install | |
8716 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8717 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8718 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8719 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8720 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
a72a4bfa | 8721 | echo "configure:8722: checking for a BSD compatible install" >&5 |
10f2d63a | 8722 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8723 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8725 | else |
698dcdb6 | 8726 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8727 | for ac_dir in $PATH; do |
8728 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8729 | case "$ac_dir/" in |
8730 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8731 | *) |
8732 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8733 | # Don't use installbsd from OSF since it installs stuff as root | |
8734 | # by default. | |
8735 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8736 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8737 | if test $ac_prog = install && |
698dcdb6 | 8738 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8739 | # AIX install. It has an incompatible calling convention. |
8740 | : | |
8741 | else | |
8742 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8743 | break 2 | |
8744 | fi | |
8745 | fi | |
8746 | done | |
8747 | ;; | |
8748 | esac | |
8749 | done | |
698dcdb6 | 8750 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8751 | |
8752 | fi | |
8753 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8754 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8755 | else |
8756 | # As a last resort, use the slow shell script. We don't cache a | |
8757 | # path for INSTALL within a source directory, because that will | |
8758 | # break other packages using the cache if that directory is | |
8759 | # removed, or if the path is relative. | |
698dcdb6 | 8760 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8761 | fi |
8762 | fi | |
698dcdb6 | 8763 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8764 | |
8765 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8766 | # It thinks the first close brace ends the variable substitution. | |
8767 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8768 | ||
698dcdb6 | 8769 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8770 | |
8771 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8772 | ||
6054113a GD |
8773 | case "${host}" in |
8774 | ||
b5853384 | 8775 | powerpc-*-darwin* ) |
eb99ae0b GD |
8776 | INSTALL_PROGRAM="cp -fp" |
8777 | INSTALL_DATA="cp -fp" | |
6054113a GD |
8778 | ;; |
8779 | *) | |
8780 | ;; | |
d6853540 | 8781 | esac |
698dcdb6 | 8782 | |
10f2d63a VZ |
8783 | # Extract the first word of "strip", so it can be a program name with args. |
8784 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8785 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 8786 | echo "configure:8787: checking for $ac_word" >&5 |
698dcdb6 VZ |
8787 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8789 | else |
8790 | if test -n "$STRIP"; then | |
8791 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8792 | else | |
698dcdb6 VZ |
8793 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8794 | ac_dummy="$PATH" | |
8795 | for ac_dir in $ac_dummy; do | |
8796 | test -z "$ac_dir" && ac_dir=. | |
8797 | if test -f $ac_dir/$ac_word; then | |
8798 | ac_cv_prog_STRIP="strip" | |
8799 | break | |
8800 | fi | |
8801 | done | |
8802 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8803 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8804 | fi | |
8805 | fi | |
698dcdb6 | 8806 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8807 | if test -n "$STRIP"; then |
698dcdb6 | 8808 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8809 | else |
698dcdb6 | 8810 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8811 | fi |
8812 | ||
698dcdb6 VZ |
8813 | |
8814 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
a72a4bfa | 8815 | echo "configure:8816: checking make for VPATH support" >&5 |
10f2d63a VZ |
8816 | cat - << EOF > confMake |
8817 | check : file | |
8818 | cp \$? \$@ | |
8819 | cp \$? final_file | |
8820 | EOF | |
8821 | ||
8822 | if test ! -d sub ; then | |
8823 | mkdir sub | |
8824 | fi | |
8825 | echo dummy > sub/file | |
f6bcfd97 | 8826 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8827 | RESULT=$? |
8828 | rm -f sub/file check final_file confMake | |
8829 | rmdir sub | |
8830 | if test "$RESULT" = 0; then | |
698dcdb6 | 8831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8832 | else |
698dcdb6 VZ |
8833 | echo "$ac_t""no" 1>&6 |
8834 | { echo "configure: error: | |
1e487827 VS |
8835 | You need a make-utility that is able to use the variable |
8836 | VPATH correctly. | |
8837 | If your version of make does not support VPATH correctly, | |
8838 | please install GNU-make (possibly as gmake), and start | |
8839 | configure with the following command: | |
8840 | export MAKE=gmake; ./configure for sh-type shells | |
8841 | setenv MAKE gmake; ./configure for csh-type shells | |
8842 | Also please do remember to use gmake in this case every time | |
8843 | you are trying to compile. | |
698dcdb6 | 8844 | " 1>&2; exit 1; } |
10f2d63a VZ |
8845 | fi |
8846 | ||
8847 | for ac_prog in 'bison -y' byacc | |
8848 | do | |
698dcdb6 | 8849 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8850 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8851 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 8852 | echo "configure:8853: checking for $ac_word" >&5 |
698dcdb6 VZ |
8853 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8855 | else |
8856 | if test -n "$YACC"; then | |
8857 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8858 | else | |
698dcdb6 VZ |
8859 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8860 | ac_dummy="$PATH" | |
8861 | for ac_dir in $ac_dummy; do | |
8862 | test -z "$ac_dir" && ac_dir=. | |
8863 | if test -f $ac_dir/$ac_word; then | |
8864 | ac_cv_prog_YACC="$ac_prog" | |
8865 | break | |
8866 | fi | |
8867 | done | |
8868 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8869 | fi |
8870 | fi | |
698dcdb6 | 8871 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8872 | if test -n "$YACC"; then |
698dcdb6 | 8873 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8874 | else |
698dcdb6 | 8875 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8876 | fi |
8877 | ||
698dcdb6 | 8878 | test -n "$YACC" && break |
10f2d63a VZ |
8879 | done |
8880 | test -n "$YACC" || YACC="yacc" | |
8881 | ||
698dcdb6 VZ |
8882 | |
8883 | # Extract the first word of "flex", so it can be a program name with args. | |
8884 | set dummy flex; ac_word=$2 | |
8885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a72a4bfa | 8886 | echo "configure:8887: checking for $ac_word" >&5 |
698dcdb6 VZ |
8887 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8889 | else |
8890 | if test -n "$LEX"; then | |
8891 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8892 | else | |
698dcdb6 VZ |
8893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8894 | ac_dummy="$PATH" | |
8895 | for ac_dir in $ac_dummy; do | |
8896 | test -z "$ac_dir" && ac_dir=. | |
8897 | if test -f $ac_dir/$ac_word; then | |
8898 | ac_cv_prog_LEX="flex" | |
8899 | break | |
8900 | fi | |
8901 | done | |
8902 | IFS="$ac_save_ifs" | |
8903 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8904 | fi |
8905 | fi | |
698dcdb6 | 8906 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8907 | if test -n "$LEX"; then |
698dcdb6 | 8908 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8909 | else |
698dcdb6 | 8910 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8911 | fi |
8912 | ||
8913 | if test -z "$LEXLIB" | |
8914 | then | |
698dcdb6 VZ |
8915 | case "$LEX" in |
8916 | flex*) ac_lib=fl ;; | |
8917 | *) ac_lib=l ;; | |
8918 | esac | |
8919 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
a72a4bfa | 8920 | echo "configure:8921: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8921 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8922 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8924 | else | |
8925 | ac_save_LIBS="$LIBS" | |
8926 | LIBS="-l$ac_lib $LIBS" | |
8927 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 8928 | #line 8929 "configure" |
10f2d63a VZ |
8929 | #include "confdefs.h" |
8930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8931 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8932 | builtin and then its argument prototype would still apply. */ |
8933 | char yywrap(); | |
10f2d63a | 8934 | |
698dcdb6 VZ |
8935 | int main() { |
8936 | yywrap() | |
8937 | ; return 0; } | |
8938 | EOF | |
a72a4bfa | 8939 | if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8940 | rm -rf conftest* |
8941 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8942 | else |
698dcdb6 VZ |
8943 | echo "configure: failed program was:" >&5 |
8944 | cat conftest.$ac_ext >&5 | |
8945 | rm -rf conftest* | |
8946 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8947 | fi |
698dcdb6 VZ |
8948 | rm -f conftest* |
8949 | LIBS="$ac_save_LIBS" | |
8950 | ||
10f2d63a | 8951 | fi |
698dcdb6 VZ |
8952 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8953 | echo "$ac_t""yes" 1>&6 | |
8954 | LEXLIB="-l$ac_lib" | |
8955 | else | |
8956 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8957 | fi |
8958 | ||
8959 | fi | |
8960 | ||
8961 | ||
698dcdb6 | 8962 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
a72a4bfa | 8963 | echo "configure:8964: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8964 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8966 | else |
698dcdb6 VZ |
8967 | rm -f conftestdata |
8968 | if ln -s X conftestdata 2>/dev/null | |
8969 | then | |
8970 | rm -f conftestdata | |
8971 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8972 | else |
698dcdb6 | 8973 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8974 | fi |
8975 | fi | |
698dcdb6 VZ |
8976 | LN_S="$ac_cv_prog_LN_S" |
8977 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8978 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8979 | else |
698dcdb6 | 8980 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8981 | fi |
8982 | ||
8983 | ||
8984 | ||
8985 | SEARCH_INCLUDE="\ | |
8986 | /usr/local/include \ | |
8987 | \ | |
8988 | /usr/Motif-1.2/include \ | |
8989 | /usr/Motif-2.1/include \ | |
8990 | \ | |
8991 | /usr/include/Motif1.2 \ | |
8992 | /opt/xpm/include/X11 \ | |
8993 | /opt/GBxpm/include/ \ | |
8994 | /opt/GBxpm/X11/include/ \ | |
8995 | \ | |
8996 | /usr/Motif1.2/include \ | |
8997 | /usr/dt/include \ | |
afc31813 VZ |
8998 | /usr/openwin/include \ |
8999 | \ | |
10f2d63a VZ |
9000 | /usr/include/Xm \ |
9001 | \ | |
9002 | /usr/X11R6/include \ | |
afc31813 | 9003 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9004 | /usr/X11R5/include \ |
9005 | /usr/X11R4/include \ | |
9006 | \ | |
10f2d63a VZ |
9007 | /usr/include/X11R6 \ |
9008 | /usr/include/X11R5 \ | |
9009 | /usr/include/X11R4 \ | |
9010 | \ | |
9011 | /usr/local/X11R6/include \ | |
9012 | /usr/local/X11R5/include \ | |
9013 | /usr/local/X11R4/include \ | |
9014 | \ | |
9015 | /usr/local/include/X11R6 \ | |
9016 | /usr/local/include/X11R5 \ | |
9017 | /usr/local/include/X11R4 \ | |
9018 | \ | |
9019 | /usr/X11/include \ | |
9020 | /usr/include/X11 \ | |
9021 | /usr/local/X11/include \ | |
9022 | /usr/local/include/X11 \ | |
9023 | \ | |
9024 | /usr/X386/include \ | |
9025 | /usr/x386/include \ | |
9026 | /usr/XFree86/include/X11 \ | |
9027 | \ | |
cf27ef00 | 9028 | X:/XFree86/include \ |
ec14dd32 VZ |
9029 | X:/XFree86/include/X11 \ |
9030 | \ | |
10f2d63a VZ |
9031 | /usr/include/gtk \ |
9032 | /usr/local/include/gtk \ | |
9033 | /usr/include/glib \ | |
9034 | /usr/local/include/glib \ | |
9035 | \ | |
9036 | /usr/include/qt \ | |
9037 | /usr/local/include/qt \ | |
9038 | \ | |
9039 | /usr/include/windows \ | |
9040 | /usr/include/wine \ | |
9041 | /usr/local/include/wine \ | |
9042 | \ | |
9043 | /usr/unsupported/include \ | |
9044 | /usr/athena/include \ | |
9045 | /usr/local/x11r5/include \ | |
9046 | /usr/lpp/Xamples/include \ | |
9047 | \ | |
10f2d63a | 9048 | /usr/openwin/share/include \ |
928b5c08 VZ |
9049 | \ |
9050 | /usr/include" | |
10f2d63a VZ |
9051 | |
9052 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9053 | ||
698dcdb6 VZ |
9054 | |
9055 | cat > confcache <<\EOF | |
10f2d63a VZ |
9056 | # This file is a shell script that caches the results of configure |
9057 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9058 | # scripts and configure runs. It is not useful on other systems. |
9059 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9060 | # |
698dcdb6 VZ |
9061 | # By default, configure uses ./config.cache as the cache file, |
9062 | # creating it if it does not exist already. You can give configure | |
9063 | # the --cache-file=FILE option to use a different cache file; that is | |
9064 | # what configure does when it calls configure scripts in | |
9065 | # subdirectories, so they share the cache. | |
9066 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9067 | # config.status only pays attention to the cache file if you give it the | |
9068 | # --recheck option to rerun configure. | |
10f2d63a | 9069 | # |
698dcdb6 | 9070 | EOF |
10f2d63a VZ |
9071 | # The following way of writing the cache mishandles newlines in values, |
9072 | # but we know of no workaround that is simple, portable, and efficient. | |
9073 | # So, don't put newlines in cache variables' values. | |
9074 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9075 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9076 | (set) 2>&1 | |
9077 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9078 | *ac_space=\ *) | |
9079 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9080 | # turns \\\\ into \\, and sed turns \\ into \). | |
9081 | sed -n \ | |
9082 | -e "s/'/'\\\\''/g" \ | |
9083 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9084 | ;; | |
9085 | *) | |
9086 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9087 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9088 | ;; | |
9089 | esac >> confcache | |
9090 | if cmp -s $cache_file confcache; then | |
9091 | : | |
9092 | else | |
10f2d63a | 9093 | if test -w $cache_file; then |
698dcdb6 VZ |
9094 | echo "updating cache $cache_file" |
9095 | cat confcache > $cache_file | |
10f2d63a VZ |
9096 | else |
9097 | echo "not updating unwritable cache $cache_file" | |
9098 | fi | |
9099 | fi | |
9100 | rm -f confcache | |
9101 | ||
698dcdb6 VZ |
9102 | |
9103 | ||
4f14bcd8 | 9104 | |
18dbb1f6 VZ |
9105 | REGEX_INCLUDE= |
9106 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9107 | cat >> confdefs.h <<\EOF |
9108 | #define wxUSE_REGEX 1 | |
9109 | EOF | |
9110 | ||
9111 | ||
9112 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9113 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9114 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
a72a4bfa | 9115 | echo "configure:9116: checking for regex.h" >&5 |
18dbb1f6 VZ |
9116 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9118 | else | |
9119 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9120 | #line 9121 "configure" |
18dbb1f6 VZ |
9121 | #include "confdefs.h" |
9122 | #include <regex.h> | |
9123 | EOF | |
9124 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9125 | { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9126 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9127 | if test -z "$ac_err"; then | |
9128 | rm -rf conftest* | |
9129 | eval "ac_cv_header_$ac_safe=yes" | |
9130 | else | |
9131 | echo "$ac_err" >&5 | |
9132 | echo "configure: failed program was:" >&5 | |
9133 | cat conftest.$ac_ext >&5 | |
9134 | rm -rf conftest* | |
9135 | eval "ac_cv_header_$ac_safe=no" | |
9136 | fi | |
9137 | rm -f conftest* | |
9138 | fi | |
9139 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9140 | echo "$ac_t""yes" 1>&6 | |
9141 | for ac_func in regcomp | |
9142 | do | |
9143 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 9144 | echo "configure:9145: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9145 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9147 | else | |
9148 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9149 | #line 9150 "configure" |
18dbb1f6 VZ |
9150 | #include "confdefs.h" |
9151 | /* System header to define __stub macros and hopefully few prototypes, | |
9152 | which can conflict with char $ac_func(); below. */ | |
9153 | #include <assert.h> | |
9154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9155 | /* We use char because int might match the return type of a gcc2 | |
9156 | builtin and then its argument prototype would still apply. */ | |
9157 | char $ac_func(); | |
9158 | ||
9159 | int main() { | |
9160 | ||
9161 | /* The GNU C library defines this for functions which it implements | |
9162 | to always fail with ENOSYS. Some functions are actually named | |
9163 | something starting with __ and the normal name is an alias. */ | |
9164 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9165 | choke me | |
9166 | #else | |
9167 | $ac_func(); | |
9168 | #endif | |
9169 | ||
9170 | ; return 0; } | |
9171 | EOF | |
a72a4bfa | 9172 | if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9173 | rm -rf conftest* |
9174 | eval "ac_cv_func_$ac_func=yes" | |
9175 | else | |
9176 | echo "configure: failed program was:" >&5 | |
9177 | cat conftest.$ac_ext >&5 | |
9178 | rm -rf conftest* | |
9179 | eval "ac_cv_func_$ac_func=no" | |
9180 | fi | |
9181 | rm -f conftest* | |
9182 | fi | |
9183 | ||
9184 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9185 | echo "$ac_t""yes" 1>&6 | |
9186 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9187 | cat >> confdefs.h <<EOF | |
9188 | #define $ac_tr_func 1 | |
9189 | EOF | |
9190 | ||
9191 | else | |
9192 | echo "$ac_t""no" 1>&6 | |
9193 | fi | |
9194 | done | |
9195 | ||
9196 | else | |
9197 | echo "$ac_t""no" 1>&6 | |
9198 | fi | |
9199 | ||
9200 | ||
4f14bcd8 GD |
9201 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9202 | if test "$wxUSE_REGEX" = "sys" ; then | |
9203 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9204 | else | |
a3df447d | 9205 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9206 | wxUSE_REGEX=builtin |
9207 | fi | |
9208 | else | |
9209 | wxUSE_REGEX=sys | |
18dbb1f6 | 9210 | fi |
18dbb1f6 VZ |
9211 | fi |
9212 | ||
4f14bcd8 GD |
9213 | if test "$wxUSE_REGEX" = "builtin" ; then |
9214 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9215 | fi | |
18dbb1f6 VZ |
9216 | fi |
9217 | ||
9218 | ||
4f14bcd8 GD |
9219 | ZLIB_INCLUDE= |
9220 | ZLIB_LINK= | |
9221 | if test "$wxUSE_ZLIB" != "no" ; then | |
9222 | cat >> confdefs.h <<\EOF | |
9223 | #define wxUSE_ZLIB 1 | |
9224 | EOF | |
dad6c0ea | 9225 | |
10f2d63a | 9226 | |
4f14bcd8 GD |
9227 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9228 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9229 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
a72a4bfa | 9230 | echo "configure:9231: checking for zlib.h" >&5 |
3a922bb4 RL |
9231 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9233 | else | |
9234 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9235 | #line 9236 "configure" |
3a922bb4 | 9236 | #include "confdefs.h" |
4f14bcd8 | 9237 | #include <zlib.h> |
3a922bb4 RL |
9238 | EOF |
9239 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9240 | { (eval echo configure:9241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9241 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9242 | if test -z "$ac_err"; then | |
9243 | rm -rf conftest* | |
9244 | eval "ac_cv_header_$ac_safe=yes" | |
9245 | else | |
9246 | echo "$ac_err" >&5 | |
9247 | echo "configure: failed program was:" >&5 | |
9248 | cat conftest.$ac_ext >&5 | |
9249 | rm -rf conftest* | |
9250 | eval "ac_cv_header_$ac_safe=no" | |
9251 | fi | |
9252 | rm -f conftest* | |
9253 | fi | |
9254 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9255 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9256 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
a72a4bfa | 9257 | echo "configure:9258: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9258 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9259 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9261 | else | |
9262 | ac_save_LIBS="$LIBS" | |
9263 | LIBS="-lz $LIBS" | |
9264 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9265 | #line 9266 "configure" |
4f14bcd8 GD |
9266 | #include "confdefs.h" |
9267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9268 | /* We use char because int might match the return type of a gcc2 | |
9269 | builtin and then its argument prototype would still apply. */ | |
9270 | char deflate(); | |
9271 | ||
9272 | int main() { | |
9273 | deflate() | |
9274 | ; return 0; } | |
3a922bb4 | 9275 | EOF |
a72a4bfa | 9276 | if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9277 | rm -rf conftest* |
9278 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9279 | else | |
9280 | echo "configure: failed program was:" >&5 | |
9281 | cat conftest.$ac_ext >&5 | |
9282 | rm -rf conftest* | |
9283 | eval "ac_cv_lib_$ac_lib_var=no" | |
9284 | fi | |
9285 | rm -f conftest* | |
9286 | LIBS="$ac_save_LIBS" | |
9287 | ||
9288 | fi | |
9289 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9290 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9291 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9292 | else |
9293 | echo "$ac_t""no" 1>&6 | |
9294 | fi | |
10f2d63a | 9295 | |
4f14bcd8 GD |
9296 | else |
9297 | echo "$ac_t""no" 1>&6 | |
9298 | fi | |
9299 | ||
9300 | ||
9301 | if test "x$ZLIB_LINK" = "x" ; then | |
9302 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9303 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9304 | else | |
a3df447d | 9305 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9306 | wxUSE_ZLIB=builtin |
9307 | fi | |
9308 | else | |
9309 | wxUSE_ZLIB=sys | |
9310 | fi | |
9311 | fi | |
9312 | ||
9313 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9314 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9315 | fi | |
9316 | fi | |
9317 | ||
9318 | ||
9319 | PNG_INCLUDE= | |
9320 | PNG_LINK= | |
9321 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9322 | cat >> confdefs.h <<\EOF | |
9323 | #define wxUSE_LIBPNG 1 | |
9324 | EOF | |
9325 | ||
9326 | ||
9327 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9328 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9329 | wxUSE_LIBPNG=builtin |
9330 | fi | |
9331 | ||
9332 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9333 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9334 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
a72a4bfa | 9335 | echo "configure:9336: checking for png.h" >&5 |
d4158b5d VS |
9336 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9338 | else | |
9339 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9340 | #line 9341 "configure" |
d4158b5d | 9341 | #include "confdefs.h" |
4f14bcd8 | 9342 | #include <png.h> |
d4158b5d VS |
9343 | EOF |
9344 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9345 | { (eval echo configure:9346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9346 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9347 | if test -z "$ac_err"; then | |
9348 | rm -rf conftest* | |
9349 | eval "ac_cv_header_$ac_safe=yes" | |
9350 | else | |
9351 | echo "$ac_err" >&5 | |
9352 | echo "configure: failed program was:" >&5 | |
9353 | cat conftest.$ac_ext >&5 | |
9354 | rm -rf conftest* | |
9355 | eval "ac_cv_header_$ac_safe=no" | |
9356 | fi | |
9357 | rm -f conftest* | |
9358 | fi | |
9359 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9360 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9361 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
a72a4bfa | 9362 | echo "configure:9363: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9363 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9364 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9365 | echo $ac_n "(cached) $ac_c" 1>&6 |
9366 | else | |
4f14bcd8 GD |
9367 | ac_save_LIBS="$LIBS" |
9368 | LIBS="-lpng -lz -lm $LIBS" | |
9369 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9370 | #line 9371 "configure" |
3a922bb4 | 9371 | #include "confdefs.h" |
4f14bcd8 GD |
9372 | /* Override any gcc2 internal prototype to avoid an error. */ |
9373 | /* We use char because int might match the return type of a gcc2 | |
9374 | builtin and then its argument prototype would still apply. */ | |
9375 | char png_check_sig(); | |
f6bcfd97 | 9376 | |
4f14bcd8 GD |
9377 | int main() { |
9378 | png_check_sig() | |
3a922bb4 RL |
9379 | ; return 0; } |
9380 | EOF | |
a72a4bfa | 9381 | if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9382 | rm -rf conftest* |
4f14bcd8 | 9383 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9384 | else |
9385 | echo "configure: failed program was:" >&5 | |
9386 | cat conftest.$ac_ext >&5 | |
9387 | rm -rf conftest* | |
4f14bcd8 | 9388 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9389 | fi |
9390 | rm -f conftest* | |
4f14bcd8 | 9391 | LIBS="$ac_save_LIBS" |
10f2d63a | 9392 | |
4f14bcd8 GD |
9393 | fi |
9394 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9395 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9396 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9397 | else |
9398 | echo "$ac_t""no" 1>&6 | |
9399 | fi | |
32832908 | 9400 | |
4f14bcd8 GD |
9401 | |
9402 | else | |
9403 | echo "$ac_t""no" 1>&6 | |
9404 | fi | |
3a922bb4 | 9405 | |
7b7a7637 | 9406 | |
4f14bcd8 GD |
9407 | if test "x$PNG_LINK" = "x" ; then |
9408 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9409 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9410 | else | |
a3df447d | 9411 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9412 | wxUSE_LIBPNG=builtin |
9413 | fi | |
9414 | else | |
9415 | wxUSE_LIBPNG=yes | |
9416 | fi | |
3a922bb4 RL |
9417 | fi |
9418 | ||
4f14bcd8 GD |
9419 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9420 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9421 | fi |
9422 | ||
4f14bcd8 | 9423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9424 | fi |
9425 | ||
32832908 | 9426 | |
4f14bcd8 GD |
9427 | JPEG_INCLUDE= |
9428 | JPEG_LINK= | |
9429 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9430 | cat >> confdefs.h <<\EOF | |
9431 | #define wxUSE_LIBJPEG 1 | |
9432 | EOF | |
10f2d63a | 9433 | |
8168de4c | 9434 | |
4f14bcd8 GD |
9435 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9436 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
a72a4bfa | 9437 | echo "configure:9438: checking for jpeglib.h" >&5 |
4f14bcd8 | 9438 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9439 | echo $ac_n "(cached) $ac_c" 1>&6 |
9440 | else | |
4f14bcd8 | 9441 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 9442 | #line 9443 "configure" |
4f14bcd8 | 9443 | #include "confdefs.h" |
8168de4c | 9444 | |
4f14bcd8 GD |
9445 | #undef HAVE_STDLIB_H |
9446 | #include <stdio.h> | |
9447 | #include <jpeglib.h> | |
9448 | ||
9449 | int main() { | |
9450 | ||
9451 | ||
9452 | ; return 0; } | |
9453 | EOF | |
a72a4bfa | 9454 | if { (eval echo configure:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9455 | rm -rf conftest* |
9456 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9457 | else |
4f14bcd8 GD |
9458 | echo "configure: failed program was:" >&5 |
9459 | cat conftest.$ac_ext >&5 | |
9460 | rm -rf conftest* | |
9461 | ac_cv_header_jpeglib_h=no | |
9462 | ||
9463 | fi | |
9464 | rm -f conftest* | |
9465 | ||
698dcdb6 | 9466 | fi |
6f72b082 | 9467 | |
4f14bcd8 GD |
9468 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9469 | ||
9470 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9471 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
a72a4bfa | 9472 | echo "configure:9473: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9473 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9476 | else |
4f14bcd8 GD |
9477 | ac_save_LIBS="$LIBS" |
9478 | LIBS="-ljpeg $LIBS" | |
9479 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9480 | #line 9481 "configure" |
4f14bcd8 GD |
9481 | #include "confdefs.h" |
9482 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9483 | /* We use char because int might match the return type of a gcc2 | |
9484 | builtin and then its argument prototype would still apply. */ | |
9485 | char jpeg_read_header(); | |
698dcdb6 | 9486 | |
4f14bcd8 GD |
9487 | int main() { |
9488 | jpeg_read_header() | |
9489 | ; return 0; } | |
9490 | EOF | |
a72a4bfa | 9491 | if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9492 | rm -rf conftest* |
9493 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9494 | else |
4f14bcd8 GD |
9495 | echo "configure: failed program was:" >&5 |
9496 | cat conftest.$ac_ext >&5 | |
9497 | rm -rf conftest* | |
9498 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9499 | fi |
4f14bcd8 GD |
9500 | rm -f conftest* |
9501 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9502 | |
4f14bcd8 GD |
9503 | fi |
9504 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9505 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9506 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9507 | else |
9508 | echo "$ac_t""no" 1>&6 | |
9509 | fi | |
9510 | ||
9511 | fi | |
9512 | ||
9513 | if test "x$JPEG_LINK" = "x" ; then | |
9514 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9515 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9516 | else | |
a3df447d | 9517 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9518 | wxUSE_LIBJPEG=builtin |
9519 | fi | |
9520 | else | |
9521 | wxUSE_LIBJPEG=sys | |
9522 | fi | |
9523 | fi | |
9524 | ||
9525 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9526 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9527 | fi | |
9528 | fi | |
9529 | ||
9530 | ||
9531 | TIFF_INCLUDE= | |
9532 | TIFF_LINK= | |
9533 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9534 | cat >> confdefs.h <<\EOF | |
9535 | #define wxUSE_LIBTIFF 1 | |
9536 | EOF | |
9537 | ||
9538 | ||
9539 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9540 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9541 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
a72a4bfa | 9542 | echo "configure:9543: checking for tiffio.h" >&5 |
4f14bcd8 GD |
9543 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9545 | else | |
9546 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9547 | #line 9548 "configure" |
4f14bcd8 GD |
9548 | #include "confdefs.h" |
9549 | #include <tiffio.h> | |
9550 | EOF | |
9551 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9552 | { (eval echo configure:9553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9553 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9554 | if test -z "$ac_err"; then | |
9555 | rm -rf conftest* | |
9556 | eval "ac_cv_header_$ac_safe=yes" | |
9557 | else | |
9558 | echo "$ac_err" >&5 | |
9559 | echo "configure: failed program was:" >&5 | |
9560 | cat conftest.$ac_ext >&5 | |
9561 | rm -rf conftest* | |
9562 | eval "ac_cv_header_$ac_safe=no" | |
9563 | fi | |
9564 | rm -f conftest* | |
9565 | fi | |
9566 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9567 | echo "$ac_t""yes" 1>&6 | |
9568 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
a72a4bfa | 9569 | echo "configure:9570: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
9570 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
9571 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9573 | else | |
9574 | ac_save_LIBS="$LIBS" | |
9575 | LIBS="-ltiff -lm $LIBS" | |
9576 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9577 | #line 9578 "configure" |
4f14bcd8 GD |
9578 | #include "confdefs.h" |
9579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9580 | /* We use char because int might match the return type of a gcc2 | |
9581 | builtin and then its argument prototype would still apply. */ | |
9582 | char TIFFError(); | |
9583 | ||
9584 | int main() { | |
9585 | TIFFError() | |
9586 | ; return 0; } | |
9587 | EOF | |
a72a4bfa | 9588 | if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9589 | rm -rf conftest* |
9590 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9591 | else | |
9592 | echo "configure: failed program was:" >&5 | |
9593 | cat conftest.$ac_ext >&5 | |
9594 | rm -rf conftest* | |
9595 | eval "ac_cv_lib_$ac_lib_var=no" | |
9596 | fi | |
9597 | rm -f conftest* | |
9598 | LIBS="$ac_save_LIBS" | |
9599 | ||
9600 | fi | |
9601 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9602 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9603 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
9604 | else |
9605 | echo "$ac_t""no" 1>&6 | |
9606 | fi | |
9607 | ||
9608 | ||
9609 | else | |
9610 | echo "$ac_t""no" 1>&6 | |
9611 | fi | |
9612 | ||
9613 | ||
9614 | if test "x$TIFF_LINK" = "x" ; then | |
9615 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9616 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9617 | else | |
a3df447d | 9618 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9619 | wxUSE_LIBTIFF=builtin |
9620 | fi | |
9621 | else | |
9622 | wxUSE_LIBTIFF=sys | |
9623 | fi | |
9624 | fi | |
9625 | ||
9626 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9627 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9628 | fi | |
9629 | fi | |
9630 | ||
9631 | ||
9632 | FREETYPE_INCLUDE= | |
9633 | FREETYPE_LINK= | |
9634 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9635 | cat >> confdefs.h <<\EOF | |
9636 | #define wxUSE_FREETYPE 1 | |
9637 | EOF | |
9638 | ||
9639 | ||
9640 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9641 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9642 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
a72a4bfa | 9643 | echo "configure:9644: checking for freetype.h" >&5 |
4f14bcd8 GD |
9644 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9646 | else | |
9647 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9648 | #line 9649 "configure" |
4f14bcd8 GD |
9649 | #include "confdefs.h" |
9650 | #include <freetype.h> | |
9651 | EOF | |
9652 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9653 | { (eval echo configure:9654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9654 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9655 | if test -z "$ac_err"; then | |
9656 | rm -rf conftest* | |
9657 | eval "ac_cv_header_$ac_safe=yes" | |
9658 | else | |
9659 | echo "$ac_err" >&5 | |
9660 | echo "configure: failed program was:" >&5 | |
9661 | cat conftest.$ac_ext >&5 | |
9662 | rm -rf conftest* | |
9663 | eval "ac_cv_header_$ac_safe=no" | |
9664 | fi | |
9665 | rm -f conftest* | |
9666 | fi | |
9667 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9668 | echo "$ac_t""yes" 1>&6 | |
9669 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
a72a4bfa | 9670 | echo "configure:9671: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
9671 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
9672 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9674 | else | |
9675 | ac_save_LIBS="$LIBS" | |
9676 | LIBS="-lfreetype -lm $LIBS" | |
9677 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9678 | #line 9679 "configure" |
4f14bcd8 GD |
9679 | #include "confdefs.h" |
9680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9681 | /* We use char because int might match the return type of a gcc2 | |
9682 | builtin and then its argument prototype would still apply. */ | |
9683 | char FT_Render_Glyph(); | |
9684 | ||
9685 | int main() { | |
9686 | FT_Render_Glyph() | |
9687 | ; return 0; } | |
9688 | EOF | |
a72a4bfa | 9689 | if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9690 | rm -rf conftest* |
9691 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9692 | else | |
9693 | echo "configure: failed program was:" >&5 | |
9694 | cat conftest.$ac_ext >&5 | |
9695 | rm -rf conftest* | |
9696 | eval "ac_cv_lib_$ac_lib_var=no" | |
9697 | fi | |
9698 | rm -f conftest* | |
9699 | LIBS="$ac_save_LIBS" | |
9700 | ||
9701 | fi | |
9702 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9703 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9704 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
9705 | else |
9706 | echo "$ac_t""no" 1>&6 | |
9707 | fi | |
9708 | ||
9709 | ||
9710 | else | |
9711 | echo "$ac_t""no" 1>&6 | |
9712 | fi | |
9713 | ||
9714 | ||
9715 | if test "x$FREETYPE_LINK" = "x" ; then | |
9716 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9717 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9718 | else | |
a3df447d | 9719 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9720 | wxUSE_FREETYPE=builtin |
9721 | fi | |
9722 | else | |
9723 | wxUSE_FREETYPE=sys | |
9724 | fi | |
9725 | fi | |
9726 | ||
9727 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9728 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9729 | fi | |
9730 | fi | |
9731 | ||
9732 | ||
9733 | AFMINSTALL= | |
9734 | ||
9735 | TOOLKIT= | |
9736 | TOOLKIT_INCLUDE= | |
9737 | WIDGET_SET= | |
9738 | ||
9739 | if test "$USE_WIN32" = 1 ; then | |
9740 | for ac_hdr in w32api.h | |
9741 | do | |
9742 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9743 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 9744 | echo "configure:9745: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
9745 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9747 | else | |
9748 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9749 | #line 9750 "configure" |
4f14bcd8 GD |
9750 | #include "confdefs.h" |
9751 | #include <$ac_hdr> | |
9752 | EOF | |
9753 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9754 | { (eval echo configure:9755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9755 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9756 | if test -z "$ac_err"; then | |
9757 | rm -rf conftest* | |
9758 | eval "ac_cv_header_$ac_safe=yes" | |
9759 | else | |
9760 | echo "$ac_err" >&5 | |
9761 | echo "configure: failed program was:" >&5 | |
9762 | cat conftest.$ac_ext >&5 | |
9763 | rm -rf conftest* | |
9764 | eval "ac_cv_header_$ac_safe=no" | |
9765 | fi | |
9766 | rm -f conftest* | |
9767 | fi | |
9768 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9769 | echo "$ac_t""yes" 1>&6 | |
9770 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9771 | cat >> confdefs.h <<EOF | |
9772 | #define $ac_tr_hdr 1 | |
9773 | EOF | |
9774 | ||
9775 | else | |
9776 | echo "$ac_t""no" 1>&6 | |
9777 | fi | |
9778 | done | |
9779 | ||
9780 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9781 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
a72a4bfa | 9782 | echo "configure:9783: checking for windows.h" >&5 |
4f14bcd8 GD |
9783 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9785 | else | |
9786 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9787 | #line 9788 "configure" |
4f14bcd8 GD |
9788 | #include "confdefs.h" |
9789 | #include <windows.h> | |
9790 | EOF | |
9791 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 9792 | { (eval echo configure:9793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9793 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9794 | if test -z "$ac_err"; then | |
9795 | rm -rf conftest* | |
9796 | eval "ac_cv_header_$ac_safe=yes" | |
9797 | else | |
9798 | echo "$ac_err" >&5 | |
9799 | echo "configure: failed program was:" >&5 | |
9800 | cat conftest.$ac_ext >&5 | |
9801 | rm -rf conftest* | |
9802 | eval "ac_cv_header_$ac_safe=no" | |
9803 | fi | |
9804 | rm -f conftest* | |
9805 | fi | |
9806 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9807 | echo "$ac_t""yes" 1>&6 | |
9808 | : | |
9809 | else | |
9810 | echo "$ac_t""no" 1>&6 | |
9811 | ||
9812 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9813 | ||
9814 | fi | |
9815 | ||
9816 | ||
9817 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
a72a4bfa | 9818 | echo "configure:9819: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 9819 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
9820 | echo $ac_n "(cached) $ac_c" 1>&6 |
9821 | else | |
9822 | ||
9823 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 9824 | #line 9825 "configure" |
4f14bcd8 GD |
9825 | #include "confdefs.h" |
9826 | #include <w32api.h> | |
9827 | int main() { | |
9828 | ||
9829 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9830 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9831 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9832 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9833 | ||
9834 | #if !wxCHECK_W32API_VERSION(1,1) | |
9835 | #error You need w32api 1.1 or newer | |
9836 | #endif | |
9837 | ||
9838 | ; return 0; } | |
9839 | EOF | |
a72a4bfa | 9840 | if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9841 | rm -rf conftest* |
9842 | ||
ea7682f0 | 9843 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
9844 | |
9845 | else | |
9846 | echo "configure: failed program was:" >&5 | |
9847 | cat conftest.$ac_ext >&5 | |
9848 | rm -rf conftest* | |
9849 | ||
ea7682f0 | 9850 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
9851 | |
9852 | fi | |
9853 | rm -f conftest* | |
9854 | ||
9855 | fi | |
9856 | ||
ea7682f0 VS |
9857 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
9858 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
9859 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
9860 | fi | |
4f14bcd8 GD |
9861 | |
9862 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9863 | ||
77e13408 RL |
9864 | case "${host}" in |
9865 | *-*-cygwin* ) | |
9866 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9867 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
9868 | esac | |
4f14bcd8 GD |
9869 | |
9870 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 9871 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
9872 | fi |
9873 | ||
4f14bcd8 GD |
9874 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
9875 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9876 | fi | |
9877 | ||
9878 | if test "$wxUSE_GUI" = "yes"; then | |
9879 | USE_GUI=1 | |
9880 | ||
9881 | GUI_TK_LIBRARY= | |
9882 | ||
9883 | WXGTK12= | |
9884 | WXGTK127= | |
9885 | WXGTK20= | |
9886 | ||
77e13408 | 9887 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
9888 | TOOLKIT=MSW |
9889 | GUIDIST=MSW_DIST | |
77e13408 RL |
9890 | |
9891 | case "${host}" in | |
9892 | *-*-mingw32* ) | |
3d63bc3a | 9893 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 9894 | esac |
4f14bcd8 GD |
9895 | fi |
9896 | ||
9897 | if test "$wxUSE_GTK" = 1; then | |
9898 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
a72a4bfa | 9899 | echo "configure:9900: checking for GTK+ version" >&5 |
4f14bcd8 GD |
9900 | |
9901 | gtk_version_cached=1 | |
9902 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9904 | else | |
9905 | ||
9906 | gtk_version_cached=0 | |
d48ad9bd | 9907 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 9908 | |
3f345b47 VZ |
9909 | GTK_MODULES= |
9910 | if test "$wxUSE_THREADS" = "yes"; then | |
9911 | GTK_MODULES=gthread | |
9912 | fi | |
9913 | ||
4f14bcd8 GD |
9914 | wx_cv_lib_gtk= |
9915 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9916 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9917 | if test "${with_gtk_prefix+set}" = set; then | |
9918 | withval="$with_gtk_prefix" | |
9919 | gtk_config_prefix="$withval" | |
9920 | else | |
9921 | gtk_config_prefix="" | |
9922 | fi | |
9923 | ||
9924 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9925 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9926 | withval="$with_gtk_exec_prefix" | |
9927 | gtk_config_exec_prefix="$withval" | |
9928 | else | |
9929 | gtk_config_exec_prefix="" | |
9930 | fi | |
9931 | ||
9932 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9933 | if test "${enable_gtktest+set}" = set; then | |
9934 | enableval="$enable_gtktest" | |
9935 | : | |
9936 | else | |
9937 | enable_gtktest=yes | |
9938 | fi | |
9939 | ||
9940 | ||
3f345b47 | 9941 | for module in . $GTK_MODULES |
4f14bcd8 | 9942 | do |
6f72b082 | 9943 | case "$module" in |
8168de4c | 9944 | gthread) |
6f72b082 OK |
9945 | gtk_config_args="$gtk_config_args gthread" |
9946 | ;; | |
9947 | esac | |
9948 | done | |
9949 | ||
9950 | if test x$gtk_config_exec_prefix != x ; then | |
9951 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9952 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9953 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9954 | fi | |
9955 | fi | |
9956 | if test x$gtk_config_prefix != x ; then | |
9957 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9958 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9959 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9960 | fi | |
9961 | fi | |
9962 | ||
9963 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9964 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9965 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 9966 | echo "configure:9967: checking for $ac_word" >&5 |
698dcdb6 VZ |
9967 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9969 | else |
698dcdb6 VZ |
9970 | case "$GTK_CONFIG_2_0" in |
9971 | /*) | |
6f72b082 OK |
9972 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9973 | ;; | |
698dcdb6 VZ |
9974 | ?:/*) |
9975 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9976 | ;; | |
6f72b082 | 9977 | *) |
698dcdb6 VZ |
9978 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9979 | ac_dummy="$PATH" | |
9980 | for ac_dir in $ac_dummy; do | |
9981 | test -z "$ac_dir" && ac_dir=. | |
9982 | if test -f $ac_dir/$ac_word; then | |
9983 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9984 | break | |
9985 | fi | |
9986 | done | |
9987 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9988 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9989 | ;; | |
9990 | esac | |
9991 | fi | |
698dcdb6 | 9992 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9993 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9994 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9995 | else |
698dcdb6 | 9996 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9997 | fi |
9998 | ||
9999 | min_gtk_version=1.3.1 | |
698dcdb6 | 10000 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
a72a4bfa | 10001 | echo "configure:10002: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10002 | no_gtk="" |
10003 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10004 | no_gtk=yes | |
10005 | else | |
10006 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10007 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10008 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10009 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10010 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10011 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10012 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10013 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10014 | if test "x$enable_gtktest" = "xyes" ; then | |
10015 | ac_save_CFLAGS="$CFLAGS" | |
10016 | ac_save_LIBS="$LIBS" | |
10017 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10018 | LIBS="$GTK_LIBS $LIBS" | |
10019 | rm -f conf.gtktest | |
10020 | if test "$cross_compiling" = yes; then | |
10021 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10022 | else | |
698dcdb6 | 10023 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 10024 | #line 10025 "configure" |
6f72b082 OK |
10025 | #include "confdefs.h" |
10026 | ||
10027 | #include <gtk/gtk.h> | |
10028 | #include <stdio.h> | |
10029 | #include <stdlib.h> | |
10030 | ||
8168de4c | 10031 | int |
6f72b082 OK |
10032 | main () |
10033 | { | |
10034 | int major, minor, micro; | |
10035 | char *tmp_version; | |
10036 | ||
10037 | system ("touch conf.gtktest"); | |
10038 | ||
10039 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10040 | tmp_version = g_strdup("$min_gtk_version"); | |
10041 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10042 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10043 | exit(1); | |
10044 | } | |
10045 | ||
10046 | if ((gtk_major_version != $gtk_config_major_version) || | |
10047 | (gtk_minor_version != $gtk_config_minor_version) || | |
10048 | (gtk_micro_version != $gtk_config_micro_version)) | |
10049 | { | |
8168de4c | 10050 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10051 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10052 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10053 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10054 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10055 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10056 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10057 | printf("*** required on your system.\n"); | |
10058 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10059 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10060 | printf("*** before re-running configure\n"); | |
8168de4c | 10061 | } |
6f72b082 OK |
10062 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10063 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10064 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10065 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10066 | { | |
10067 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10068 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10069 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10070 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10071 | } |
10072 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10073 | else | |
10074 | { | |
10075 | if ((gtk_major_version > major) || | |
10076 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10077 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10078 | { | |
10079 | return 0; | |
10080 | } | |
10081 | else | |
10082 | { | |
10083 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10084 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10085 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10086 | major, minor, micro); |
6f72b082 OK |
10087 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10088 | printf("***\n"); | |
10089 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10090 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10091 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10092 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10093 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10094 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10095 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10096 | } | |
10097 | } | |
10098 | return 1; | |
10099 | } | |
10100 | ||
698dcdb6 | 10101 | EOF |
a72a4bfa | 10102 | if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10103 | then |
6f72b082 OK |
10104 | : |
10105 | else | |
698dcdb6 VZ |
10106 | echo "configure: failed program was:" >&5 |
10107 | cat conftest.$ac_ext >&5 | |
10108 | rm -fr conftest* | |
10109 | no_gtk=yes | |
6f72b082 | 10110 | fi |
698dcdb6 | 10111 | rm -fr conftest* |
6f72b082 | 10112 | fi |
698dcdb6 | 10113 | |
6f72b082 OK |
10114 | CFLAGS="$ac_save_CFLAGS" |
10115 | LIBS="$ac_save_LIBS" | |
10116 | fi | |
10117 | fi | |
10118 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10119 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10120 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10121 | else |
698dcdb6 | 10122 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10123 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10124 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10125 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10126 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10127 | echo "*** full path to gtk-config-2.0." | |
10128 | else | |
10129 | if test -f conf.gtktest ; then | |
10130 | : | |
10131 | else | |
10132 | echo "*** Could not run GTK test program, checking why..." | |
10133 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10134 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10135 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 10136 | #line 10137 "configure" |
6f72b082 OK |
10137 | #include "confdefs.h" |
10138 | ||
10139 | #include <gtk/gtk.h> | |
10140 | #include <stdio.h> | |
10141 | ||
698dcdb6 VZ |
10142 | int main() { |
10143 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10144 | ; return 0; } | |
10145 | EOF | |
a72a4bfa | 10146 | if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10147 | rm -rf conftest* |
6f72b082 OK |
10148 | echo "*** The test program compiled, but did not run. This usually means" |
10149 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10150 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10151 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10152 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10153 | echo "*** is required on your system" | |
8168de4c | 10154 | echo "***" |
6f72b082 OK |
10155 | echo "*** If you have an old version installed, it is best to remove it, although" |
10156 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10157 | echo "***" | |
10158 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10159 | echo "*** came with the system with the command" | |
10160 | echo "***" | |
698dcdb6 | 10161 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10162 | else |
698dcdb6 VZ |
10163 | echo "configure: failed program was:" >&5 |
10164 | cat conftest.$ac_ext >&5 | |
10165 | rm -rf conftest* | |
10166 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10167 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10168 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10169 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10170 | fi |
698dcdb6 | 10171 | rm -f conftest* |
6f72b082 OK |
10172 | CFLAGS="$ac_save_CFLAGS" |
10173 | LIBS="$ac_save_LIBS" | |
10174 | fi | |
10175 | fi | |
10176 | GTK_CFLAGS="" | |
10177 | GTK_LIBS="" | |
3f345b47 | 10178 | : |
8168de4c VZ |
10179 | fi |
10180 | ||
10181 | ||
10182 | rm -f conf.gtktest | |
10183 | ||
10184 | fi | |
10185 | ||
10186 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10187 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10188 | if test "${with_gtk_prefix+set}" = set; then | |
10189 | withval="$with_gtk_prefix" | |
10190 | gtk_config_prefix="$withval" | |
10191 | else | |
10192 | gtk_config_prefix="" | |
10193 | fi | |
10194 | ||
10195 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10196 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10197 | withval="$with_gtk_exec_prefix" | |
10198 | gtk_config_exec_prefix="$withval" | |
10199 | else | |
10200 | gtk_config_exec_prefix="" | |
10201 | fi | |
10202 | ||
10203 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10204 | if test "${enable_gtktest+set}" = set; then | |
10205 | enableval="$enable_gtktest" | |
10206 | : | |
10207 | else | |
10208 | enable_gtktest=yes | |
10209 | fi | |
10210 | ||
10211 | ||
10212 | for module in . $GTK_MODULES | |
10213 | do | |
10214 | case "$module" in | |
10215 | gthread) | |
10216 | gtk_config_args="$gtk_config_args gthread" | |
10217 | ;; | |
10218 | esac | |
10219 | done | |
10220 | ||
10f2d63a VZ |
10221 | if test x$gtk_config_exec_prefix != x ; then |
10222 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10223 | if test x${GTK_CONFIG+set} != xset ; then | |
10224 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10225 | fi | |
10226 | fi | |
10227 | if test x$gtk_config_prefix != x ; then | |
10228 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10229 | if test x${GTK_CONFIG+set} != xset ; then | |
10230 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10231 | fi | |
10232 | fi | |
10233 | ||
10234 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10235 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10236 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 10237 | echo "configure:10238: checking for $ac_word" >&5 |
698dcdb6 VZ |
10238 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10240 | else |
698dcdb6 VZ |
10241 | case "$GTK_CONFIG" in |
10242 | /*) | |
f6bcfd97 BP |
10243 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10244 | ;; | |
698dcdb6 VZ |
10245 | ?:/*) |
10246 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10247 | ;; | |
f6bcfd97 | 10248 | *) |
698dcdb6 VZ |
10249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10250 | ac_dummy="$PATH" | |
10251 | for ac_dir in $ac_dummy; do | |
10252 | test -z "$ac_dir" && ac_dir=. | |
10253 | if test -f $ac_dir/$ac_word; then | |
10254 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10255 | break | |
10256 | fi | |
10257 | done | |
10258 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10259 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10260 | ;; | |
10261 | esac | |
10262 | fi | |
698dcdb6 | 10263 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10264 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10265 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10266 | else |
698dcdb6 | 10267 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10268 | fi |
10269 | ||
10270 | min_gtk_version=1.2.7 | |
698dcdb6 | 10271 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
a72a4bfa | 10272 | echo "configure:10273: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10273 | no_gtk="" |
3f345b47 VZ |
10274 | if test "$GTK_CONFIG" = "no" ; then |
10275 | no_gtk=yes | |
10276 | else | |
10277 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10278 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10279 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10280 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10281 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10282 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10283 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10284 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10285 | if test "x$enable_gtktest" = "xyes" ; then | |
10286 | ac_save_CFLAGS="$CFLAGS" | |
10287 | ac_save_LIBS="$LIBS" | |
10288 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10289 | LIBS="$GTK_LIBS $LIBS" | |
10290 | rm -f conf.gtktest | |
10291 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10292 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10293 | else | |
698dcdb6 | 10294 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 10295 | #line 10296 "configure" |
f6bcfd97 BP |
10296 | #include "confdefs.h" |
10297 | ||
10298 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10299 | #include <stdio.h> |
10300 | #include <stdlib.h> | |
10301 | ||
3f345b47 | 10302 | int |
f6bcfd97 BP |
10303 | main () |
10304 | { | |
10305 | int major, minor, micro; | |
3f345b47 | 10306 | char *tmp_version; |
f6bcfd97 | 10307 | |
3f345b47 | 10308 | system ("touch conf.gtktest"); |
f6bcfd97 | 10309 | |
3f345b47 VZ |
10310 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10311 | tmp_version = g_strdup("$min_gtk_version"); | |
10312 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10313 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10314 | exit(1); |
10315 | } | |
10316 | ||
3f345b47 VZ |
10317 | if ((gtk_major_version != $gtk_config_major_version) || |
10318 | (gtk_minor_version != $gtk_config_minor_version) || | |
10319 | (gtk_micro_version != $gtk_config_micro_version)) | |
10320 | { | |
10321 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10322 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10323 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10324 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10325 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10326 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10327 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10328 | printf("*** required on your system.\n"); | |
10329 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10330 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10331 | printf("*** before re-running configure\n"); | |
10332 | } | |
10333 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10334 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10335 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10336 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10337 | { | |
10338 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10339 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10340 | printf("*** library (version %d.%d.%d)\n", | |
10341 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10342 | } | |
10343 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10344 | else | |
10345 | { | |
10346 | if ((gtk_major_version > major) || | |
10347 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10348 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10349 | { | |
10350 | return 0; | |
10351 | } | |
10352 | else | |
10353 | { | |
10354 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10355 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10356 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10357 | major, minor, micro); | |
10358 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10359 | printf("***\n"); | |
10360 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10361 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10362 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10363 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10364 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10365 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10366 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10367 | } | |
10368 | } | |
10369 | return 1; | |
f6bcfd97 BP |
10370 | } |
10371 | ||
698dcdb6 | 10372 | EOF |
a72a4bfa | 10373 | if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10374 | then |
f6bcfd97 BP |
10375 | : |
10376 | else | |
698dcdb6 VZ |
10377 | echo "configure: failed program was:" >&5 |
10378 | cat conftest.$ac_ext >&5 | |
10379 | rm -fr conftest* | |
10380 | no_gtk=yes | |
f6bcfd97 | 10381 | fi |
698dcdb6 | 10382 | rm -fr conftest* |
f6bcfd97 | 10383 | fi |
698dcdb6 | 10384 | |
3f345b47 VZ |
10385 | CFLAGS="$ac_save_CFLAGS" |
10386 | LIBS="$ac_save_LIBS" | |
10387 | fi | |
f6bcfd97 BP |
10388 | fi |
10389 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10390 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10391 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10392 | else |
698dcdb6 | 10393 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10394 | if test "$GTK_CONFIG" = "no" ; then |
10395 | echo "*** The gtk-config script installed by GTK could not be found" | |
10396 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10397 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10398 | echo "*** full path to gtk-config." | |
10399 | else | |
10400 | if test -f conf.gtktest ; then | |
10401 | : | |
10402 | else | |
10403 | echo "*** Could not run GTK test program, checking why..." | |
10404 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10405 | LIBS="$LIBS $GTK_LIBS" | |
10406 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 10407 | #line 10408 "configure" |
3f345b47 VZ |
10408 | #include "confdefs.h" |
10409 | ||
10410 | #include <gtk/gtk.h> | |
10411 | #include <stdio.h> | |
10412 | ||
10413 | int main() { | |
10414 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10415 | ; return 0; } | |
10416 | EOF | |
a72a4bfa | 10417 | if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10418 | rm -rf conftest* |
10419 | echo "*** The test program compiled, but did not run. This usually means" | |
10420 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10421 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10422 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10423 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10424 | echo "*** is required on your system" | |
10425 | echo "***" | |
10426 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10427 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10428 | echo "***" | |
10429 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10430 | echo "*** came with the system with the command" | |
10431 | echo "***" | |
10432 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10433 | else | |
10434 | echo "configure: failed program was:" >&5 | |
10435 | cat conftest.$ac_ext >&5 | |
10436 | rm -rf conftest* | |
10437 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10438 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10439 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10440 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10441 | fi | |
10442 | rm -f conftest* | |
10443 | CFLAGS="$ac_save_CFLAGS" | |
10444 | LIBS="$ac_save_LIBS" | |
10445 | fi | |
10446 | fi | |
f6bcfd97 BP |
10447 | GTK_CFLAGS="" |
10448 | GTK_LIBS="" | |
10449 | : | |
10450 | fi | |
698dcdb6 VZ |
10451 | |
10452 | ||
3f345b47 | 10453 | rm -f conf.gtktest |
f6bcfd97 | 10454 | |
8168de4c VZ |
10455 | fi |
10456 | ||
10457 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10458 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10459 | if test "${with_gtk_prefix+set}" = set; then | |
10460 | withval="$with_gtk_prefix" | |
10461 | gtk_config_prefix="$withval" | |
10462 | else | |
10463 | gtk_config_prefix="" | |
10464 | fi | |
10465 | ||
10466 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10467 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10468 | withval="$with_gtk_exec_prefix" | |
10469 | gtk_config_exec_prefix="$withval" | |
10470 | else | |
10471 | gtk_config_exec_prefix="" | |
10472 | fi | |
10473 | ||
10474 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10475 | if test "${enable_gtktest+set}" = set; then | |
10476 | enableval="$enable_gtktest" | |
10477 | : | |
10478 | else | |
10479 | enable_gtktest=yes | |
10480 | fi | |
10481 | ||
10482 | ||
10483 | for module in . $GTK_MODULES | |
10484 | do | |
10485 | case "$module" in | |
10486 | gthread) | |
10487 | gtk_config_args="$gtk_config_args gthread" | |
10488 | ;; | |
10489 | esac | |
10490 | done | |
10491 | ||
f6bcfd97 BP |
10492 | if test x$gtk_config_exec_prefix != x ; then |
10493 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10494 | if test x${GTK_CONFIG+set} != xset ; then | |
10495 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10496 | fi | |
10497 | fi | |
10498 | if test x$gtk_config_prefix != x ; then | |
10499 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10500 | if test x${GTK_CONFIG+set} != xset ; then | |
10501 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10502 | fi | |
10503 | fi | |
10504 | ||
10505 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10506 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10507 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 10508 | echo "configure:10509: checking for $ac_word" >&5 |
698dcdb6 VZ |
10509 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10511 | else |
698dcdb6 VZ |
10512 | case "$GTK_CONFIG" in |
10513 | /*) | |
10f2d63a VZ |
10514 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10515 | ;; | |
698dcdb6 VZ |
10516 | ?:/*) |
10517 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10518 | ;; | |
10f2d63a | 10519 | *) |
698dcdb6 VZ |
10520 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10521 | ac_dummy="$PATH" | |
10522 | for ac_dir in $ac_dummy; do | |
10523 | test -z "$ac_dir" && ac_dir=. | |
10524 | if test -f $ac_dir/$ac_word; then | |
10525 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10526 | break | |
10527 | fi | |
10528 | done | |
10529 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10530 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10531 | ;; | |
10532 | esac | |
10533 | fi | |
698dcdb6 | 10534 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10535 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10536 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10537 | else |
698dcdb6 | 10538 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10539 | fi |
10540 | ||
04165bec | 10541 | min_gtk_version=1.2.3 |
698dcdb6 | 10542 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
a72a4bfa | 10543 | echo "configure:10544: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10544 | no_gtk="" |
3f345b47 VZ |
10545 | if test "$GTK_CONFIG" = "no" ; then |
10546 | no_gtk=yes | |
10547 | else | |
10548 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10549 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10550 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10551 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10552 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10553 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10554 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10555 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10556 | if test "x$enable_gtktest" = "xyes" ; then | |
10557 | ac_save_CFLAGS="$CFLAGS" | |
10558 | ac_save_LIBS="$LIBS" | |
10559 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10560 | LIBS="$GTK_LIBS $LIBS" | |
10561 | rm -f conf.gtktest | |
10562 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10563 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10564 | else | |
698dcdb6 | 10565 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 10566 | #line 10567 "configure" |
10f2d63a VZ |
10567 | #include "confdefs.h" |
10568 | ||
10569 | #include <gtk/gtk.h> | |
10570 | #include <stdio.h> | |
32832908 | 10571 | #include <stdlib.h> |
10f2d63a | 10572 | |
3f345b47 | 10573 | int |
10f2d63a VZ |
10574 | main () |
10575 | { | |
10576 | int major, minor, micro; | |
3f345b47 | 10577 | char *tmp_version; |
10f2d63a | 10578 | |
3f345b47 | 10579 | system ("touch conf.gtktest"); |
10f2d63a | 10580 | |
3f345b47 VZ |
10581 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10582 | tmp_version = g_strdup("$min_gtk_version"); | |
10583 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10584 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
10585 | exit(1); |
10586 | } | |
10587 | ||
3f345b47 VZ |
10588 | if ((gtk_major_version != $gtk_config_major_version) || |
10589 | (gtk_minor_version != $gtk_config_minor_version) || | |
10590 | (gtk_micro_version != $gtk_config_micro_version)) | |
10591 | { | |
10592 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10593 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10594 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10595 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10596 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10597 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10598 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10599 | printf("*** required on your system.\n"); | |
10600 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10601 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10602 | printf("*** before re-running configure\n"); | |
10603 | } | |
10604 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10605 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10606 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10607 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10608 | { | |
10609 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10610 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10611 | printf("*** library (version %d.%d.%d)\n", | |
10612 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10613 | } | |
10614 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10615 | else | |
10616 | { | |
10617 | if ((gtk_major_version > major) || | |
10618 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10619 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10620 | { | |
10621 | return 0; | |
10622 | } | |
10623 | else | |
10624 | { | |
10625 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10626 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10627 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10628 | major, minor, micro); | |
10629 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10630 | printf("***\n"); | |
10631 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10632 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10633 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10634 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10635 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10636 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10637 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10638 | } | |
10639 | } | |
10640 | return 1; | |
10f2d63a VZ |
10641 | } |
10642 | ||
698dcdb6 | 10643 | EOF |
a72a4bfa | 10644 | if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10645 | then |
10f2d63a VZ |
10646 | : |
10647 | else | |
698dcdb6 VZ |
10648 | echo "configure: failed program was:" >&5 |
10649 | cat conftest.$ac_ext >&5 | |
10650 | rm -fr conftest* | |
10651 | no_gtk=yes | |
10f2d63a | 10652 | fi |
698dcdb6 | 10653 | rm -fr conftest* |
10f2d63a | 10654 | fi |
698dcdb6 | 10655 | |
3f345b47 VZ |
10656 | CFLAGS="$ac_save_CFLAGS" |
10657 | LIBS="$ac_save_LIBS" | |
10658 | fi | |
10f2d63a VZ |
10659 | fi |
10660 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10661 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10662 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10663 | else |
698dcdb6 | 10664 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10665 | if test "$GTK_CONFIG" = "no" ; then |
10666 | echo "*** The gtk-config script installed by GTK could not be found" | |
10667 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10668 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10669 | echo "*** full path to gtk-config." | |
10670 | else | |
10671 | if test -f conf.gtktest ; then | |
10672 | : | |
10673 | else | |
10674 | echo "*** Could not run GTK test program, checking why..." | |
10675 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10676 | LIBS="$LIBS $GTK_LIBS" | |
10677 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 10678 | #line 10679 "configure" |
3f345b47 VZ |
10679 | #include "confdefs.h" |
10680 | ||
10681 | #include <gtk/gtk.h> | |
10682 | #include <stdio.h> | |
10683 | ||
10684 | int main() { | |
10685 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10686 | ; return 0; } | |
10687 | EOF | |
a72a4bfa | 10688 | if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10689 | rm -rf conftest* |
10690 | echo "*** The test program compiled, but did not run. This usually means" | |
10691 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10692 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10693 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10694 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10695 | echo "*** is required on your system" | |
10696 | echo "***" | |
10697 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10698 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10699 | echo "***" | |
10700 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10701 | echo "*** came with the system with the command" | |
10702 | echo "***" | |
10703 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10704 | else | |
10705 | echo "configure: failed program was:" >&5 | |
10706 | cat conftest.$ac_ext >&5 | |
10707 | rm -rf conftest* | |
10708 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10709 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10710 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10711 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10712 | fi | |
10713 | rm -f conftest* | |
10714 | CFLAGS="$ac_save_CFLAGS" | |
10715 | LIBS="$ac_save_LIBS" | |
10716 | fi | |
10717 | fi | |
10f2d63a VZ |
10718 | GTK_CFLAGS="" |
10719 | GTK_LIBS="" | |
7e99ad86 | 10720 | : |
10f2d63a | 10721 | fi |
698dcdb6 VZ |
10722 | |
10723 | ||
3f345b47 | 10724 | rm -f conf.gtktest |
10f2d63a | 10725 | |
8168de4c VZ |
10726 | fi |
10727 | ||
10728 | if test -z "$wx_cv_lib_gtk"; then | |
10729 | wx_cv_lib_gtk=none | |
138be253 VZ |
10730 | else |
10731 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10732 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10733 | fi |
10734 | ||
1e6feb95 | 10735 | |
8168de4c | 10736 | fi |
703e0a69 | 10737 | |
698dcdb6 | 10738 | |
8168de4c VZ |
10739 | if test "$gtk_version_cached" = 1; then |
10740 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10741 | fi |
698dcdb6 | 10742 | |
8168de4c VZ |
10743 | case "$wx_cv_lib_gtk" in |
10744 | 2.0) WXGTK20=1 | |
10745 | ;; | |
10746 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10747 | WXGTK12=1 |
8168de4c VZ |
10748 | ;; |
10749 | 1.2.3) WXGTK12=1 | |
10750 | ;; | |
10751 | *) { echo "configure: error: | |
10752 | Please check that gtk-config is in path, the directory | |
10753 | where GTK+ libraries are installed (returned by | |
10754 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10755 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10756 | " 1>&2; exit 1; } | |
10757 | ;; | |
10758 | esac | |
2224580a | 10759 | |
138be253 | 10760 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10761 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10762 | |
1e6feb95 VZ |
10763 | AFMINSTALL=afminstall |
10764 | TOOLKIT=GTK | |
10765 | GUIDIST=GTK_DIST | |
7ec2881a | 10766 | |
1e6feb95 | 10767 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
a72a4bfa | 10768 | echo "configure:10769: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10769 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10772 | else |
698dcdb6 | 10773 | ac_save_LIBS="$LIBS" |
7ec2881a | 10774 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10775 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 10776 | #line 10777 "configure" |
7ec2881a RR |
10777 | #include "confdefs.h" |
10778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10779 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10780 | builtin and then its argument prototype would still apply. */ |
10781 | char gdk_im_open(); | |
10782 | ||
10783 | int main() { | |
10784 | gdk_im_open() | |
10785 | ; return 0; } | |
10786 | EOF | |
a72a4bfa | 10787 | if { (eval echo configure:10788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10788 | rm -rf conftest* |
10789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10790 | else | |
10791 | echo "configure: failed program was:" >&5 | |
10792 | cat conftest.$ac_ext >&5 | |
10793 | rm -rf conftest* | |
10794 | eval "ac_cv_lib_$ac_lib_var=no" | |
10795 | fi | |
10796 | rm -f conftest* | |
10797 | LIBS="$ac_save_LIBS" | |
10798 | ||
10799 | fi | |
10800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10801 | echo "$ac_t""yes" 1>&6 | |
10802 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10803 | #define HAVE_XIM 1 |
10804 | EOF | |
10805 | ||
698dcdb6 VZ |
10806 | else |
10807 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10808 | fi |
10809 | ||
1e6feb95 | 10810 | fi |
10f2d63a | 10811 | |
1e6feb95 | 10812 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 10813 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
a72a4bfa | 10814 | echo "configure:10815: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10815 | if test "x$MGL_ROOT" = x ; then |
10816 | echo "$ac_t""not found" 1>&6 | |
10817 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10818 | else | |
10819 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10820 | fi | |
10821 | ||
f9bc1684 VS |
10822 | case "${host}" in |
10823 | *-*-linux* ) | |
10824 | mgl_os=linux/gcc/glibc | |
10825 | ;; | |
10826 | *-pc-msdosdjgpp ) | |
10827 | mgl_os=dos32/dj2 | |
10828 | ;; | |
10829 | *) | |
10830 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
10831 | esac | |
10832 | ||
3a922bb4 | 10833 | mgl_lib_type="" |
1e6feb95 VZ |
10834 | |
10835 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
10836 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
10837 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 10838 | mgl_lib_type=debug |
1e6feb95 VZ |
10839 | fi |
10840 | fi | |
3a922bb4 | 10841 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
10842 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
10843 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 10844 | mgl_lib_type=release |
1e6feb95 VZ |
10845 | else |
10846 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10847 | fi | |
10848 | fi | |
10849 | ||
10850 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 10851 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
10852 | |
10853 | AFMINSTALL=afminstall | |
10854 | TOOLKIT=MGL | |
10855 | GUIDIST=MGL_DIST | |
10856 | fi | |
10857 | ||
1725144d RR |
10858 | if test "$wxUSE_MICROWIN" = 1; then |
10859 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
a72a4bfa | 10860 | echo "configure:10861: checking for MicroWindows" >&5 |
1725144d RR |
10861 | if test "x$MICROWINDOWS" = x ; then |
10862 | echo "$ac_t""not found" 1>&6 | |
10863 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
10864 | else | |
10865 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
10866 | fi | |
10867 | ||
10868 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
10869 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
10870 | else | |
10871 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
10872 | fi | |
10873 | ||
10874 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
10875 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
10876 | ||
10877 | AFMINSTALL=afminstall | |
10878 | TOOLKIT=MICROWIN | |
10879 | GUIDIST=MICROWIN_DIST | |
10880 | ||
10881 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
10882 | fi | |
10883 | ||
1e6feb95 | 10884 | if test "$wxUSE_WINE" = 1; then |
3a922bb4 RL |
10885 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
10886 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
a72a4bfa | 10887 | echo "configure:10888: checking for windows.h" >&5 |
3a922bb4 RL |
10888 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10890 | else | |
10891 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 10892 | #line 10893 "configure" |
3a922bb4 RL |
10893 | #include "confdefs.h" |
10894 | #include <windows.h> | |
10895 | EOF | |
10896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 10897 | { (eval echo configure:10898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10899 | if test -z "$ac_err"; then | |
10900 | rm -rf conftest* | |
10901 | eval "ac_cv_header_$ac_safe=yes" | |
10902 | else | |
10903 | echo "$ac_err" >&5 | |
10904 | echo "configure: failed program was:" >&5 | |
10905 | cat conftest.$ac_ext >&5 | |
10906 | rm -rf conftest* | |
10907 | eval "ac_cv_header_$ac_safe=no" | |
10908 | fi | |
10909 | rm -f conftest* | |
10910 | fi | |
10911 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10912 | echo "$ac_t""yes" 1>&6 | |
10913 | : | |
10914 | else | |
10915 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 10916 | |
1e6feb95 | 10917 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
10918 | |
10919 | fi | |
10920 | ||
10f2d63a | 10921 | |
3d63bc3a | 10922 | xpm_link= |
1e6feb95 | 10923 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
a72a4bfa | 10924 | echo "configure:10925: checking for Xpm library" >&5 |
1e6feb95 | 10925 | |
10f2d63a VZ |
10926 | ac_find_libraries= |
10927 | for ac_dir in $SEARCH_LIB; | |
10928 | do | |
f11bdd03 | 10929 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10930 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10931 | ac_find_libraries=$ac_dir | |
10932 | break 2 | |
10933 | fi | |
10934 | done | |
10935 | done | |
10936 | ||
1e6feb95 VZ |
10937 | if test "$ac_find_libraries" != "" ; then |
10938 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 10939 | xpm_link=" -lXpm" |
1e6feb95 | 10940 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10941 | #define wxHAVE_LIB_XPM 1 |
10942 | EOF | |
10943 | ||
1e6feb95 VZ |
10944 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10945 | else | |
10946 | echo "$ac_t""no" 1>&6 | |
10947 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10948 | fi | |
10f2d63a | 10949 | |
3d63bc3a | 10950 | mesa_link= |
1e6feb95 | 10951 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
a72a4bfa | 10952 | echo "configure:10953: checking for Mesa library" >&5 |
1e6feb95 | 10953 | |
10f2d63a VZ |
10954 | ac_find_libraries= |
10955 | for ac_dir in $SEARCH_LIB; | |
10956 | do | |
f11bdd03 | 10957 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10958 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
10959 | ac_find_libraries=$ac_dir | |
10960 | break 2 | |
10961 | fi | |
10962 | done | |
10963 | done | |
10964 | ||
1e6feb95 VZ |
10965 | if test "$ac_find_libraries" != "" ; then |
10966 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 10967 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
10968 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10969 | else | |
10970 | { echo "configure: error: no" 1>&2; exit 1; } | |
10971 | fi | |
10f2d63a | 10972 | |
3d63bc3a | 10973 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
10974 | TOOLKIT=MSW |
10975 | GUIDIST=MSW_DIST | |
3a922bb4 | 10976 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 10977 | fi |
698dcdb6 | 10978 | |
d714471b VZ |
10979 | if test "$wxUSE_MOTIF" = 1; then |
10980 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
10981 | # paths, otherwise set no_x=yes. |
10982 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10983 | # --without-x overrides everything else, but does not touch the cache. | |
10984 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
a72a4bfa | 10985 | echo "configure:10986: checking for X" >&5 |
ab9b9eab VZ |
10986 | |
10987 | # Check whether --with-x or --without-x was given. | |
10988 | if test "${with_x+set}" = set; then | |
10989 | withval="$with_x" | |
698dcdb6 VZ |
10990 | : |
10991 | fi | |
ba337fe7 | 10992 | |
ab9b9eab VZ |
10993 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10994 | if test "x$with_x" = xno; then | |
10995 | # The user explicitly disabled X. | |
10996 | have_x=disabled | |
10997 | else | |
10998 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10999 | # Both variables are already set. | |
11000 | have_x=yes | |
11001 | else | |
698dcdb6 VZ |
11002 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11004 | else |
11005 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11006 | ac_x_includes=NO ac_x_libraries=NO |
11007 | rm -fr conftestdir | |
11008 | if mkdir conftestdir; then | |
11009 | cd conftestdir | |
ab9b9eab | 11010 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11011 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11012 | acfindx: |
11013 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11014 | EOF | |
11015 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11016 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11017 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11018 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11019 | for ac_extension in a so sl; do |
ab9b9eab | 11020 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11021 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11022 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11023 | fi |
11024 | done | |
ab9b9eab VZ |
11025 | # Screen out bogus values from the imake configuration. They are |
11026 | # bogus both because they are the default anyway, and because | |
11027 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11028 | case "$ac_im_incroot" in |
ab9b9eab | 11029 | /usr/include) ;; |
698dcdb6 | 11030 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11031 | esac |
698dcdb6 | 11032 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11033 | /usr/lib | /lib) ;; |
698dcdb6 | 11034 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11035 | esac |
ba337fe7 | 11036 | fi |
ab9b9eab | 11037 | cd .. |
698dcdb6 | 11038 | rm -fr conftestdir |
ab9b9eab | 11039 | fi |
10f2d63a | 11040 | |
698dcdb6 VZ |
11041 | if test "$ac_x_includes" = NO; then |
11042 | # Guess where to find include files, by looking for this one X11 .h file. | |
11043 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11044 | ||
ab9b9eab | 11045 | # First, try using that file with no special directory specified. |
698dcdb6 | 11046 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11047 | #line 11048 "configure" |
ab9b9eab | 11048 | #include "confdefs.h" |
698dcdb6 VZ |
11049 | #include <$x_direct_test_include> |
11050 | EOF | |
11051 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 11052 | { (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11053 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11054 | if test -z "$ac_err"; then | |
11055 | rm -rf conftest* | |
ab9b9eab VZ |
11056 | # We can compile using X headers with no special include directory. |
11057 | ac_x_includes= | |
11058 | else | |
698dcdb6 VZ |
11059 | echo "$ac_err" >&5 |
11060 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11061 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11062 | rm -rf conftest* |
11063 | # Look for the header file in a standard set of common directories. | |
11064 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11065 | for ac_dir in \ | |
11066 | /usr/X11/include \ | |
11067 | /usr/X11R6/include \ | |
11068 | /usr/X11R5/include \ | |
11069 | /usr/X11R4/include \ | |
11070 | \ | |
11071 | /usr/include/X11 \ | |
11072 | /usr/include/X11R6 \ | |
11073 | /usr/include/X11R5 \ | |
11074 | /usr/include/X11R4 \ | |
11075 | \ | |
11076 | /usr/local/X11/include \ | |
11077 | /usr/local/X11R6/include \ | |
11078 | /usr/local/X11R5/include \ | |
11079 | /usr/local/X11R4/include \ | |
11080 | \ | |
11081 | /usr/local/include/X11 \ | |
11082 | /usr/local/include/X11R6 \ | |
11083 | /usr/local/include/X11R5 \ | |
11084 | /usr/local/include/X11R4 \ | |
11085 | \ | |
11086 | /usr/X386/include \ | |
11087 | /usr/x386/include \ | |
11088 | /usr/XFree86/include/X11 \ | |
11089 | \ | |
11090 | /usr/include \ | |
11091 | /usr/local/include \ | |
11092 | /usr/unsupported/include \ | |
11093 | /usr/athena/include \ | |
11094 | /usr/local/x11r5/include \ | |
11095 | /usr/lpp/Xamples/include \ | |
11096 | \ | |
11097 | /usr/openwin/include \ | |
11098 | /usr/openwin/share/include \ | |
11099 | ; \ | |
11100 | do | |
11101 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11102 | ac_x_includes=$ac_dir | |
11103 | break | |
11104 | fi | |
11105 | done | |
ab9b9eab | 11106 | fi |
698dcdb6 VZ |
11107 | rm -f conftest* |
11108 | fi # $ac_x_includes = NO | |
10f2d63a | 11109 | |
698dcdb6 | 11110 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11111 | # Check for the libraries. |
698dcdb6 VZ |
11112 | |
11113 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11114 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11115 | ||
ab9b9eab VZ |
11116 | # See if we find them without any special options. |
11117 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11118 | ac_save_LIBS="$LIBS" |
11119 | LIBS="-l$x_direct_test_library $LIBS" | |
11120 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11121 | #line 11122 "configure" |
ab9b9eab | 11122 | #include "confdefs.h" |
698dcdb6 VZ |
11123 | |
11124 | int main() { | |
11125 | ${x_direct_test_function}() | |
11126 | ; return 0; } | |
11127 | EOF | |
a72a4bfa | 11128 | if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11129 | rm -rf conftest* |
11130 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11131 | # We can link X programs with no special library path. |
11132 | ac_x_libraries= | |
11133 | else | |
698dcdb6 VZ |
11134 | echo "configure: failed program was:" >&5 |
11135 | cat conftest.$ac_ext >&5 | |
11136 | rm -rf conftest* | |
11137 | LIBS="$ac_save_LIBS" | |
11138 | # First see if replacing the include by lib works. | |
11139 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11140 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11141 | /usr/X11/lib \ | |
11142 | /usr/X11R6/lib \ | |
11143 | /usr/X11R5/lib \ | |
11144 | /usr/X11R4/lib \ | |
11145 | \ | |
11146 | /usr/lib/X11 \ | |
11147 | /usr/lib/X11R6 \ | |
11148 | /usr/lib/X11R5 \ | |
11149 | /usr/lib/X11R4 \ | |
11150 | \ | |
11151 | /usr/local/X11/lib \ | |
11152 | /usr/local/X11R6/lib \ | |
11153 | /usr/local/X11R5/lib \ | |
11154 | /usr/local/X11R4/lib \ | |
11155 | \ | |
11156 | /usr/local/lib/X11 \ | |
11157 | /usr/local/lib/X11R6 \ | |
11158 | /usr/local/lib/X11R5 \ | |
11159 | /usr/local/lib/X11R4 \ | |
11160 | \ | |
11161 | /usr/X386/lib \ | |
11162 | /usr/x386/lib \ | |
11163 | /usr/XFree86/lib/X11 \ | |
11164 | \ | |
11165 | /usr/lib \ | |
11166 | /usr/local/lib \ | |
11167 | /usr/unsupported/lib \ | |
11168 | /usr/athena/lib \ | |
11169 | /usr/local/x11r5/lib \ | |
11170 | /usr/lpp/Xamples/lib \ | |
11171 | /lib/usr/lib/X11 \ | |
11172 | \ | |
11173 | /usr/openwin/lib \ | |
11174 | /usr/openwin/share/lib \ | |
11175 | ; \ | |
ab9b9eab VZ |
11176 | do |
11177 | for ac_extension in a so sl; do | |
698dcdb6 | 11178 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11179 | ac_x_libraries=$ac_dir |
11180 | break 2 | |
10f2d63a | 11181 | fi |
10f2d63a | 11182 | done |
ab9b9eab VZ |
11183 | done |
11184 | fi | |
698dcdb6 VZ |
11185 | rm -f conftest* |
11186 | fi # $ac_x_libraries = NO | |
10f2d63a | 11187 | |
698dcdb6 | 11188 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11189 | # Didn't find X anywhere. Cache the known absence of X. |
11190 | ac_cv_have_x="have_x=no" | |
11191 | else | |
11192 | # Record where we found X for the cache. | |
11193 | ac_cv_have_x="have_x=yes \ | |
11194 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11195 | fi | |
11196 | fi | |
10f2d63a | 11197 | fi |
ab9b9eab VZ |
11198 | eval "$ac_cv_have_x" |
11199 | fi # $with_x != no | |
10f2d63a | 11200 | |
ab9b9eab | 11201 | if test "$have_x" != yes; then |
698dcdb6 | 11202 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11203 | no_x=yes |
11204 | else | |
11205 | # If each of the values was on the command line, it overrides each guess. | |
11206 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11207 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11208 | # Update the cache value to reflect the command line values. | |
11209 | ac_cv_have_x="have_x=yes \ | |
11210 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11211 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11212 | fi |
10f2d63a | 11213 | |
ab9b9eab VZ |
11214 | if test "$no_x" = yes; then |
11215 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11216 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11217 | #define X_DISPLAY_MISSING 1 |
11218 | EOF | |
10f2d63a | 11219 | |
ab9b9eab VZ |
11220 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11221 | else | |
11222 | if test -n "$x_includes"; then | |
11223 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11224 | fi |
11225 | ||
ab9b9eab VZ |
11226 | # It would also be nice to do this for all -L options, not just this one. |
11227 | if test -n "$x_libraries"; then | |
11228 | X_LIBS="$X_LIBS -L$x_libraries" | |
11229 | # For Solaris; some versions of Sun CC require a space after -R and | |
11230 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11231 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11232 | "SunOS 5"*) |
698dcdb6 | 11233 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
a72a4bfa | 11234 | echo "configure:11235: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11235 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11236 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11237 | #line 11238 "configure" |
ab9b9eab | 11238 | #include "confdefs.h" |
10f2d63a | 11239 | |
698dcdb6 | 11240 | int main() { |
788deba1 | 11241 | |
698dcdb6 VZ |
11242 | ; return 0; } |
11243 | EOF | |
a72a4bfa | 11244 | if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11245 | rm -rf conftest* |
ab9b9eab VZ |
11246 | ac_R_nospace=yes |
11247 | else | |
698dcdb6 VZ |
11248 | echo "configure: failed program was:" >&5 |
11249 | cat conftest.$ac_ext >&5 | |
11250 | rm -rf conftest* | |
11251 | ac_R_nospace=no | |
ab9b9eab | 11252 | fi |
698dcdb6 | 11253 | rm -f conftest* |
ab9b9eab | 11254 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11255 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11256 | X_LIBS="$X_LIBS -R$x_libraries" |
11257 | else | |
11258 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11259 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11260 | #line 11261 "configure" |
ab9b9eab | 11261 | #include "confdefs.h" |
788deba1 | 11262 | |
698dcdb6 | 11263 | int main() { |
ab9b9eab | 11264 | |
698dcdb6 VZ |
11265 | ; return 0; } |
11266 | EOF | |
a72a4bfa | 11267 | if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11268 | rm -rf conftest* |
ab9b9eab VZ |
11269 | ac_R_space=yes |
11270 | else | |
698dcdb6 VZ |
11271 | echo "configure: failed program was:" >&5 |
11272 | cat conftest.$ac_ext >&5 | |
11273 | rm -rf conftest* | |
11274 | ac_R_space=no | |
ab9b9eab | 11275 | fi |
698dcdb6 | 11276 | rm -f conftest* |
ab9b9eab | 11277 | if test $ac_R_space = yes; then |
698dcdb6 | 11278 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11279 | X_LIBS="$X_LIBS -R $x_libraries" |
11280 | else | |
698dcdb6 | 11281 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11282 | fi |
11283 | fi | |
698dcdb6 | 11284 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11285 | esac |
11286 | fi | |
11287 | ||
11288 | # Check for system-dependent libraries X programs must link with. | |
11289 | # Do this before checking for the system-independent R6 libraries | |
11290 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11291 | ||
11292 | if test "$ISC" = yes; then | |
11293 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11294 | else | |
698dcdb6 VZ |
11295 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11296 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11297 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11298 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
a72a4bfa | 11299 | echo "configure:11300: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11300 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11303 | else |
698dcdb6 | 11304 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11305 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11306 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11307 | #line 11308 "configure" |
ab9b9eab VZ |
11308 | #include "confdefs.h" |
11309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11310 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11311 | builtin and then its argument prototype would still apply. */ |
11312 | char dnet_ntoa(); | |
11313 | ||
11314 | int main() { | |
11315 | dnet_ntoa() | |
11316 | ; return 0; } | |
11317 | EOF | |
a72a4bfa | 11318 | if { (eval echo configure:11319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11319 | rm -rf conftest* |
11320 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11321 | else | |
11322 | echo "configure: failed program was:" >&5 | |
11323 | cat conftest.$ac_ext >&5 | |
11324 | rm -rf conftest* | |
11325 | eval "ac_cv_lib_$ac_lib_var=no" | |
11326 | fi | |
11327 | rm -f conftest* | |
11328 | LIBS="$ac_save_LIBS" | |
11329 | ||
11330 | fi | |
11331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11332 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11333 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11334 | else |
11335 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11336 | fi |
11337 | ||
11338 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11339 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
a72a4bfa | 11340 | echo "configure:11341: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11341 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11342 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11344 | else |
698dcdb6 | 11345 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11346 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11347 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11348 | #line 11349 "configure" |
ab9b9eab VZ |
11349 | #include "confdefs.h" |
11350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11351 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11352 | builtin and then its argument prototype would still apply. */ |
11353 | char dnet_ntoa(); | |
11354 | ||
11355 | int main() { | |
11356 | dnet_ntoa() | |
11357 | ; return 0; } | |
11358 | EOF | |
a72a4bfa | 11359 | if { (eval echo configure:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11360 | rm -rf conftest* |
11361 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11362 | else | |
11363 | echo "configure: failed program was:" >&5 | |
11364 | cat conftest.$ac_ext >&5 | |
11365 | rm -rf conftest* | |
11366 | eval "ac_cv_lib_$ac_lib_var=no" | |
11367 | fi | |
11368 | rm -f conftest* | |
11369 | LIBS="$ac_save_LIBS" | |
11370 | ||
11371 | fi | |
11372 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11373 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11374 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11375 | else |
11376 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11377 | fi |
11378 | ||
11379 | fi | |
11380 | ||
11381 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11382 | # to get the SysV transport functions. | |
698dcdb6 | 11383 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11384 | # needs -lnsl. |
11385 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11386 | # on Irix 5.2, according to dickey@clark.net. |
11387 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
a72a4bfa | 11388 | echo "configure:11389: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11389 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11391 | else | |
11392 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11393 | #line 11394 "configure" |
ab9b9eab VZ |
11394 | #include "confdefs.h" |
11395 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11396 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11397 | #include <assert.h> |
11398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11399 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11400 | builtin and then its argument prototype would still apply. */ |
11401 | char gethostbyname(); | |
11402 | ||
11403 | int main() { | |
ab9b9eab VZ |
11404 | |
11405 | /* The GNU C library defines this for functions which it implements | |
11406 | to always fail with ENOSYS. Some functions are actually named | |
11407 | something starting with __ and the normal name is an alias. */ | |
11408 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11409 | choke me | |
11410 | #else | |
698dcdb6 | 11411 | gethostbyname(); |
ab9b9eab VZ |
11412 | #endif |
11413 | ||
698dcdb6 VZ |
11414 | ; return 0; } |
11415 | EOF | |
a72a4bfa | 11416 | if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11417 | rm -rf conftest* |
11418 | eval "ac_cv_func_gethostbyname=yes" | |
11419 | else | |
11420 | echo "configure: failed program was:" >&5 | |
11421 | cat conftest.$ac_ext >&5 | |
11422 | rm -rf conftest* | |
11423 | eval "ac_cv_func_gethostbyname=no" | |
11424 | fi | |
11425 | rm -f conftest* | |
11426 | fi | |
11427 | ||
11428 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11429 | echo "$ac_t""yes" 1>&6 | |
11430 | : | |
11431 | else | |
11432 | echo "$ac_t""no" 1>&6 | |
11433 | fi | |
ab9b9eab VZ |
11434 | |
11435 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11436 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
a72a4bfa | 11437 | echo "configure:11438: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11438 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11439 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11441 | else |
698dcdb6 | 11442 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11443 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11444 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11445 | #line 11446 "configure" |
ab9b9eab VZ |
11446 | #include "confdefs.h" |
11447 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11448 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11449 | builtin and then its argument prototype would still apply. */ |
11450 | char gethostbyname(); | |
6232543b | 11451 | |
698dcdb6 VZ |
11452 | int main() { |
11453 | gethostbyname() | |
11454 | ; return 0; } | |
11455 | EOF | |
a72a4bfa | 11456 | if { (eval echo configure:11457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11457 | rm -rf conftest* |
11458 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11459 | else |
698dcdb6 VZ |
11460 | echo "configure: failed program was:" >&5 |
11461 | cat conftest.$ac_ext >&5 | |
11462 | rm -rf conftest* | |
11463 | eval "ac_cv_lib_$ac_lib_var=no" | |
11464 | fi | |
11465 | rm -f conftest* | |
11466 | LIBS="$ac_save_LIBS" | |
1e487827 | 11467 | |
698dcdb6 VZ |
11468 | fi |
11469 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11470 | echo "$ac_t""yes" 1>&6 | |
11471 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11472 | else | |
11473 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11474 | fi |
11475 | ||
11476 | fi | |
11477 | ||
11478 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11479 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11480 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11481 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11482 | # gethostby* variants that don't use the nameserver (or something). | |
11483 | # -lsocket must be given before -lnsl if both are needed. | |
11484 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11485 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
a72a4bfa | 11486 | echo "configure:11487: checking for connect" >&5 |
698dcdb6 VZ |
11487 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11489 | else | |
11490 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11491 | #line 11492 "configure" |
ab9b9eab VZ |
11492 | #include "confdefs.h" |
11493 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11494 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11495 | #include <assert.h> |
11496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11497 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11498 | builtin and then its argument prototype would still apply. */ |
11499 | char connect(); | |
11500 | ||
11501 | int main() { | |
ab9b9eab VZ |
11502 | |
11503 | /* The GNU C library defines this for functions which it implements | |
11504 | to always fail with ENOSYS. Some functions are actually named | |
11505 | something starting with __ and the normal name is an alias. */ | |
11506 | #if defined (__stub_connect) || defined (__stub___connect) | |
11507 | choke me | |
11508 | #else | |
698dcdb6 | 11509 | connect(); |
ab9b9eab VZ |
11510 | #endif |
11511 | ||
698dcdb6 VZ |
11512 | ; return 0; } |
11513 | EOF | |
a72a4bfa | 11514 | if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11515 | rm -rf conftest* |
11516 | eval "ac_cv_func_connect=yes" | |
11517 | else | |
11518 | echo "configure: failed program was:" >&5 | |
11519 | cat conftest.$ac_ext >&5 | |
11520 | rm -rf conftest* | |
11521 | eval "ac_cv_func_connect=no" | |
11522 | fi | |
11523 | rm -f conftest* | |
11524 | fi | |
11525 | ||
11526 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11527 | echo "$ac_t""yes" 1>&6 | |
11528 | : | |
11529 | else | |
11530 | echo "$ac_t""no" 1>&6 | |
11531 | fi | |
ab9b9eab VZ |
11532 | |
11533 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11534 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
a72a4bfa | 11535 | echo "configure:11536: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11536 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11537 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11538 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11539 | else |
698dcdb6 | 11540 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11541 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11542 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11543 | #line 11544 "configure" |
ab9b9eab VZ |
11544 | #include "confdefs.h" |
11545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11546 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11547 | builtin and then its argument prototype would still apply. */ |
11548 | char connect(); | |
11549 | ||
11550 | int main() { | |
11551 | connect() | |
11552 | ; return 0; } | |
11553 | EOF | |
a72a4bfa | 11554 | if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11555 | rm -rf conftest* |
11556 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11557 | else | |
11558 | echo "configure: failed program was:" >&5 | |
11559 | cat conftest.$ac_ext >&5 | |
11560 | rm -rf conftest* | |
11561 | eval "ac_cv_lib_$ac_lib_var=no" | |
11562 | fi | |
11563 | rm -f conftest* | |
11564 | LIBS="$ac_save_LIBS" | |
11565 | ||
11566 | fi | |
11567 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11568 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11569 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11570 | else |
11571 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11572 | fi |
11573 | ||
11574 | fi | |
11575 | ||
698dcdb6 VZ |
11576 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11577 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
a72a4bfa | 11578 | echo "configure:11579: checking for remove" >&5 |
698dcdb6 VZ |
11579 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11581 | else |
698dcdb6 | 11582 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11583 | #line 11584 "configure" |
ab9b9eab VZ |
11584 | #include "confdefs.h" |
11585 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11586 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11587 | #include <assert.h> |
11588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11589 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11590 | builtin and then its argument prototype would still apply. */ |
11591 | char remove(); | |
11592 | ||
11593 | int main() { | |
ab9b9eab VZ |
11594 | |
11595 | /* The GNU C library defines this for functions which it implements | |
11596 | to always fail with ENOSYS. Some functions are actually named | |
11597 | something starting with __ and the normal name is an alias. */ | |
11598 | #if defined (__stub_remove) || defined (__stub___remove) | |
11599 | choke me | |
11600 | #else | |
698dcdb6 | 11601 | remove(); |
ab9b9eab VZ |
11602 | #endif |
11603 | ||
698dcdb6 VZ |
11604 | ; return 0; } |
11605 | EOF | |
a72a4bfa | 11606 | if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11607 | rm -rf conftest* |
11608 | eval "ac_cv_func_remove=yes" | |
11609 | else | |
11610 | echo "configure: failed program was:" >&5 | |
11611 | cat conftest.$ac_ext >&5 | |
11612 | rm -rf conftest* | |
11613 | eval "ac_cv_func_remove=no" | |
11614 | fi | |
11615 | rm -f conftest* | |
11616 | fi | |
11617 | ||
11618 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11619 | echo "$ac_t""yes" 1>&6 | |
11620 | : | |
11621 | else | |
11622 | echo "$ac_t""no" 1>&6 | |
11623 | fi | |
ab9b9eab VZ |
11624 | |
11625 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11626 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
a72a4bfa | 11627 | echo "configure:11628: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11628 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11629 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11631 | else |
698dcdb6 | 11632 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11633 | LIBS="-lposix $LIBS" |
698dcdb6 | 11634 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11635 | #line 11636 "configure" |
ab9b9eab VZ |
11636 | #include "confdefs.h" |
11637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11638 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11639 | builtin and then its argument prototype would still apply. */ |
11640 | char remove(); | |
11641 | ||
11642 | int main() { | |
11643 | remove() | |
11644 | ; return 0; } | |
11645 | EOF | |
a72a4bfa | 11646 | if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11647 | rm -rf conftest* |
11648 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11649 | else | |
11650 | echo "configure: failed program was:" >&5 | |
11651 | cat conftest.$ac_ext >&5 | |
11652 | rm -rf conftest* | |
11653 | eval "ac_cv_lib_$ac_lib_var=no" | |
11654 | fi | |
11655 | rm -f conftest* | |
11656 | LIBS="$ac_save_LIBS" | |
11657 | ||
11658 | fi | |
11659 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11660 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11661 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11662 | else |
11663 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11664 | fi |
11665 | ||
11666 | fi | |
11667 | ||
11668 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11669 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
a72a4bfa | 11670 | echo "configure:11671: checking for shmat" >&5 |
698dcdb6 VZ |
11671 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11673 | else |
698dcdb6 | 11674 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11675 | #line 11676 "configure" |
ab9b9eab VZ |
11676 | #include "confdefs.h" |
11677 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11678 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11679 | #include <assert.h> |
11680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11681 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11682 | builtin and then its argument prototype would still apply. */ |
11683 | char shmat(); | |
11684 | ||
11685 | int main() { | |
ab9b9eab VZ |
11686 | |
11687 | /* The GNU C library defines this for functions which it implements | |
11688 | to always fail with ENOSYS. Some functions are actually named | |
11689 | something starting with __ and the normal name is an alias. */ | |
11690 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11691 | choke me | |
11692 | #else | |
698dcdb6 | 11693 | shmat(); |
ab9b9eab VZ |
11694 | #endif |
11695 | ||
698dcdb6 VZ |
11696 | ; return 0; } |
11697 | EOF | |
a72a4bfa | 11698 | if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11699 | rm -rf conftest* |
11700 | eval "ac_cv_func_shmat=yes" | |
11701 | else | |
11702 | echo "configure: failed program was:" >&5 | |
11703 | cat conftest.$ac_ext >&5 | |
11704 | rm -rf conftest* | |
11705 | eval "ac_cv_func_shmat=no" | |
11706 | fi | |
11707 | rm -f conftest* | |
11708 | fi | |
11709 | ||
11710 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11711 | echo "$ac_t""yes" 1>&6 | |
11712 | : | |
11713 | else | |
11714 | echo "$ac_t""no" 1>&6 | |
11715 | fi | |
ab9b9eab VZ |
11716 | |
11717 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11718 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
a72a4bfa | 11719 | echo "configure:11720: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11720 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11721 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11723 | else |
698dcdb6 | 11724 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11725 | LIBS="-lipc $LIBS" |
698dcdb6 | 11726 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11727 | #line 11728 "configure" |
ab9b9eab VZ |
11728 | #include "confdefs.h" |
11729 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11730 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11731 | builtin and then its argument prototype would still apply. */ |
11732 | char shmat(); | |
11733 | ||
11734 | int main() { | |
11735 | shmat() | |
11736 | ; return 0; } | |
11737 | EOF | |
a72a4bfa | 11738 | if { (eval echo configure:11739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11739 | rm -rf conftest* |
11740 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11741 | else | |
11742 | echo "configure: failed program was:" >&5 | |
11743 | cat conftest.$ac_ext >&5 | |
11744 | rm -rf conftest* | |
11745 | eval "ac_cv_lib_$ac_lib_var=no" | |
11746 | fi | |
11747 | rm -f conftest* | |
11748 | LIBS="$ac_save_LIBS" | |
11749 | ||
11750 | fi | |
11751 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11752 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11753 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11754 | else |
11755 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11756 | fi |
11757 | ||
11758 | fi | |
11759 | fi | |
11760 | ||
11761 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11762 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11763 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11764 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11765 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11766 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11767 | # These have to be linked with before -lX11, unlike the other | |
11768 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11769 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11770 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
a72a4bfa | 11771 | echo "configure:11772: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11772 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11773 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11775 | else | |
11776 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11777 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11778 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 11779 | #line 11780 "configure" |
ab9b9eab VZ |
11780 | #include "confdefs.h" |
11781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11782 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11783 | builtin and then its argument prototype would still apply. */ |
11784 | char IceConnectionNumber(); | |
11785 | ||
11786 | int main() { | |
11787 | IceConnectionNumber() | |
11788 | ; return 0; } | |
11789 | EOF | |
a72a4bfa | 11790 | if { (eval echo configure:11791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11791 | rm -rf conftest* |
11792 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11793 | else | |
11794 | echo "configure: failed program was:" >&5 | |
11795 | cat conftest.$ac_ext >&5 | |
11796 | rm -rf conftest* | |
11797 | eval "ac_cv_lib_$ac_lib_var=no" | |
11798 | fi | |
11799 | rm -f conftest* | |
11800 | LIBS="$ac_save_LIBS" | |
11801 | ||
11802 | fi | |
11803 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11804 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11805 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11806 | else |
11807 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11808 | fi |
11809 | ||
698dcdb6 | 11810 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11811 | |
11812 | fi | |
11813 | ||
11814 | ||
1e6feb95 VZ |
11815 | if test "$no_x" = "yes"; then |
11816 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11817 | fi | |
ab9b9eab | 11818 | |
1e6feb95 VZ |
11819 | GUI_TK_LIBRARY="$X_LIBS" |
11820 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11821 | AFMINSTALL=afminstall |
1e6feb95 | 11822 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11823 | |
1e6feb95 | 11824 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
a72a4bfa | 11825 | echo "configure:11826: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11826 | |
ab9b9eab VZ |
11827 | ac_find_includes= |
11828 | for ac_dir in $SEARCH_INCLUDE; | |
11829 | do | |
11830 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11831 | ac_find_includes=$ac_dir | |
11832 | break | |
11833 | fi | |
11834 | done | |
11835 | ||
1e6feb95 VZ |
11836 | if test "$ac_find_includes" != "" ; then |
11837 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11838 | else | |
11839 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11840 | #line 11841 "configure" |
cd6d6d5b VZ |
11841 | #include "confdefs.h" |
11842 | ||
1e6feb95 VZ |
11843 | #include <Xm/Xm.h> |
11844 | ||
698dcdb6 | 11845 | int main() { |
cd6d6d5b | 11846 | |
1e6feb95 | 11847 | int version; |
1e6feb95 VZ |
11848 | version = xmUseVersion; |
11849 | ||
698dcdb6 VZ |
11850 | ; return 0; } |
11851 | EOF | |
a72a4bfa | 11852 | if { (eval echo configure:11853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11853 | rm -rf conftest* |
11854 | ||
1e6feb95 VZ |
11855 | echo "$ac_t""found in default search path" 1>&6 |
11856 | COMPILED_X_PROGRAM=1 | |
11857 | ||
cd6d6d5b | 11858 | else |
698dcdb6 VZ |
11859 | echo "configure: failed program was:" >&5 |
11860 | cat conftest.$ac_ext >&5 | |
11861 | rm -rf conftest* | |
11862 | ||
1e6feb95 VZ |
11863 | echo "$ac_t""no" 1>&6 |
11864 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11865 | ||
698dcdb6 | 11866 | |
cd6d6d5b | 11867 | fi |
698dcdb6 | 11868 | rm -f conftest* |
1e6feb95 | 11869 | fi |
ab9b9eab | 11870 | |
1e6feb95 VZ |
11871 | if test "$COMPILED_X_PROGRAM" = 0; then |
11872 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
a72a4bfa | 11873 | echo "configure:11874: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 11874 | |
ab9b9eab VZ |
11875 | ac_find_libraries= |
11876 | for ac_dir in $SEARCH_LIB; | |
11877 | do | |
f11bdd03 | 11878 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11879 | if test -f "$ac_dir/libXm.$ac_extension"; then |
11880 | ac_find_libraries=$ac_dir | |
11881 | break 2 | |
11882 | fi | |
11883 | done | |
11884 | done | |
11885 | ||
1e6feb95 VZ |
11886 | if test "$ac_find_libraries" != "" ; then |
11887 | ||
ab9b9eab VZ |
11888 | ac_path_to_include=$ac_find_includes |
11889 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11890 | result=$? | |
11891 | if test $result = 0; then | |
11892 | ac_path_to_include="" | |
11893 | else | |
62d0491b | 11894 | ac_path_to_include=" -I$ac_find_includes" |
ab9b9eab VZ |
11895 | fi |
11896 | ||
1e6feb95 | 11897 | |
ab9b9eab VZ |
11898 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11899 | result=$? | |
11900 | if test $result = 0; then | |
11901 | ac_path_to_link="" | |
11902 | else | |
62d0491b | 11903 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
11904 | fi |
11905 | ||
698dcdb6 | 11906 | |
62d0491b RL |
11907 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
11908 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
1e6feb95 VZ |
11909 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11910 | else | |
11911 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11912 | #line 11913 "configure" |
cd6d6d5b | 11913 | #include "confdefs.h" |
ab9b9eab | 11914 | |
1e6feb95 VZ |
11915 | #include <Xm/Xm.h> |
11916 | ||
698dcdb6 | 11917 | int main() { |
ab9b9eab | 11918 | |
1e6feb95 | 11919 | int version; |
1e6feb95 VZ |
11920 | version = xmUseVersion; |
11921 | ||
698dcdb6 VZ |
11922 | ; return 0; } |
11923 | EOF | |
a72a4bfa | 11924 | if { (eval echo configure:11925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11925 | rm -rf conftest* |
11926 | ||
1e6feb95 VZ |
11927 | echo "$ac_t""found in default search path" 1>&6 |
11928 | COMPILED_X_PROGRAM=1 | |
11929 | ||
cd6d6d5b | 11930 | else |
698dcdb6 VZ |
11931 | echo "configure: failed program was:" >&5 |
11932 | cat conftest.$ac_ext >&5 | |
11933 | rm -rf conftest* | |
11934 | ||
1e6feb95 VZ |
11935 | echo "$ac_t""no" 1>&6 |
11936 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11937 | ||
698dcdb6 | 11938 | |
cd6d6d5b | 11939 | fi |
698dcdb6 | 11940 | rm -f conftest* |
1e6feb95 | 11941 | fi |
cd6d6d5b | 11942 | fi |
ab9b9eab | 11943 | |
3d63bc3a | 11944 | xpm_link= |
1e6feb95 | 11945 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
a72a4bfa | 11946 | echo "configure:11947: checking for Xpm library" >&5 |
1e6feb95 | 11947 | |
ab9b9eab VZ |
11948 | ac_find_libraries= |
11949 | for ac_dir in $SEARCH_LIB; | |
11950 | do | |
f11bdd03 | 11951 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11952 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11953 | ac_find_libraries=$ac_dir | |
11954 | break 2 | |
11955 | fi | |
11956 | done | |
11957 | done | |
11958 | ||
1e6feb95 VZ |
11959 | if test "$ac_find_libraries" != "" ; then |
11960 | ||
ab9b9eab VZ |
11961 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11962 | result=$? | |
11963 | if test $result = 0; then | |
11964 | ac_path_to_link="" | |
11965 | else | |
62d0491b | 11966 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
11967 | fi |
11968 | ||
62d0491b | 11969 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 11970 | xpm_link=" -lXpm" |
1e6feb95 | 11971 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11972 | #define wxHAVE_LIB_XPM 1 |
11973 | EOF | |
11974 | ||
1e6feb95 VZ |
11975 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11976 | else | |
11977 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 11978 | #line 11979 "configure" |
cd6d6d5b VZ |
11979 | #include "confdefs.h" |
11980 | ||
1e6feb95 VZ |
11981 | #include <X11/xpm.h> |
11982 | ||
698dcdb6 | 11983 | int main() { |
cd6d6d5b | 11984 | |
1e6feb95 | 11985 | int version; |
1e6feb95 VZ |
11986 | version = XpmLibraryVersion(); |
11987 | ||
698dcdb6 VZ |
11988 | ; return 0; } |
11989 | EOF | |
a72a4bfa | 11990 | if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11991 | rm -rf conftest* |
11992 | ||
3d63bc3a | 11993 | xpm_link=" -lXpm" |
3a922bb4 | 11994 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
11995 | #define wxHAVE_LIB_XPM 1 |
11996 | EOF | |
11997 | ||
1e6feb95 VZ |
11998 | echo "$ac_t""found in default search path" 1>&6 |
11999 | COMPILED_X_PROGRAM=0 | |
12000 | ||
cd6d6d5b | 12001 | else |
698dcdb6 VZ |
12002 | echo "configure: failed program was:" >&5 |
12003 | cat conftest.$ac_ext >&5 | |
12004 | rm -rf conftest* | |
12005 | ||
1e6feb95 VZ |
12006 | echo "$ac_t""no" 1>&6 |
12007 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12008 | ||
698dcdb6 | 12009 | |
cd6d6d5b | 12010 | fi |
698dcdb6 | 12011 | rm -f conftest* |
1e6feb95 VZ |
12012 | fi |
12013 | ||
3d63bc3a | 12014 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 12015 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
12016 | TOOLKIT=MOTIF |
12017 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
12018 | fi |
12019 | ||
683dccda GD |
12020 | if test "$wxUSE_MAC" = 1; then |
12021 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 12022 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 12023 | fi |
3d63bc3a RL |
12024 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
12025 | CFLAGS="$CFLAGS -fpascal-strings" | |
12026 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
12027 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON" | |
d08b457b | 12028 | |
13c0541d | 12029 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 12030 | TOOLKIT=MAC |
683dccda | 12031 | GUIDIST=MACX_DIST |
1e6feb95 | 12032 | fi |
10f2d63a | 12033 | |
1e6feb95 VZ |
12034 | if test "$wxUSE_PM" = 1; then |
12035 | TOOLKIT=PM | |
12036 | GUIDIST=GTK_DIST | |
12037 | fi | |
b4085ce6 | 12038 | |
3a922bb4 | 12039 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 12040 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
12041 | else |
12042 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 12043 | fi |
e07802fc | 12044 | |
3a922bb4 | 12045 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 12046 | |
3a922bb4 RL |
12047 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
12048 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
12049 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
12050 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12051 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
12052 | WIDGET_SET=univ | |
f6bcfd97 | 12053 | else |
3a922bb4 | 12054 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
12055 | fi |
12056 | ||
ba0e650c | 12057 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 12058 | |
f9bc1684 | 12059 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
12060 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
12061 | fi | |
12062 | ||
12063 | if test "$wxUSE_HTML" = "yes"; then | |
12064 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
12065 | fi | |
3fcdd07b | 12066 | |
3a922bb4 RL |
12067 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
12068 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 12069 | fi |
4f14bcd8 | 12070 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 12071 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 12072 | fi |
4f14bcd8 | 12073 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
12074 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
12075 | fi | |
4f14bcd8 | 12076 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
12077 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
12078 | fi | |
4f14bcd8 | 12079 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
12080 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
12081 | fi | |
2224580a | 12082 | |
2224580a VZ |
12083 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
12084 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 12085 | else |
dad6c0ea VZ |
12086 | USE_GUI=0 |
12087 | ||
3a922bb4 | 12088 | TOOLKIT_DIR="base" |
f6bcfd97 | 12089 | |
3a922bb4 RL |
12090 | if test "$USE_WIN32" = 1 ; then |
12091 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
12092 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 12093 | |
3a922bb4 | 12094 | TOOLKIT="MSW" |
f6bcfd97 | 12095 | else |
3a922bb4 RL |
12096 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
12097 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
12098 | fi |
12099 | ||
831b3152 | 12100 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
12101 | |
12102 | GUIDIST="BASE_DIST" | |
12103 | DISTDIR="wxBase" | |
10f2d63a VZ |
12104 | fi |
12105 | ||
4f14bcd8 | 12106 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
12107 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
12108 | fi | |
4f14bcd8 | 12109 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
12110 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
12111 | fi | |
10f2d63a | 12112 | |
3a922bb4 | 12113 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
12114 | if test "$wxUSE_MAC" = 1; then |
12115 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
12116 | else | |
570cb8cb | 12117 | |
62d0491b | 12118 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 12119 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
a72a4bfa | 12120 | echo "configure:12121: checking for GL/gl.h" >&5 |
3a922bb4 RL |
12121 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12123 | else | |
12124 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12125 | #line 12126 "configure" |
3a922bb4 RL |
12126 | #include "confdefs.h" |
12127 | #include <GL/gl.h> | |
12128 | EOF | |
12129 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12130 | { (eval echo configure:12131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12131 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12132 | if test -z "$ac_err"; then | |
12133 | rm -rf conftest* | |
12134 | eval "ac_cv_header_$ac_safe=yes" | |
12135 | else | |
12136 | echo "$ac_err" >&5 | |
12137 | echo "configure: failed program was:" >&5 | |
12138 | cat conftest.$ac_ext >&5 | |
12139 | rm -rf conftest* | |
12140 | eval "ac_cv_header_$ac_safe=no" | |
12141 | fi | |
12142 | rm -f conftest* | |
12143 | fi | |
12144 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12145 | echo "$ac_t""yes" 1>&6 | |
12146 | ||
1352efdf | 12147 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
a72a4bfa | 12148 | echo "configure:12149: checking for -lGL" >&5 |
57964555 | 12149 | |
62d0491b RL |
12150 | ac_find_libraries= |
12151 | for ac_dir in $SEARCH_LIB; | |
12152 | do | |
12153 | for ac_extension in a so sl dylib; do | |
12154 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
12155 | ac_find_libraries=$ac_dir | |
12156 | break 2 | |
12157 | fi | |
12158 | done | |
12159 | done | |
3a922bb4 | 12160 | |
62d0491b RL |
12161 | if test "$ac_find_libraries" != "" ; then |
12162 | ||
12163 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
12164 | result=$? | |
12165 | if test $result = 0; then | |
12166 | ac_path_to_link="" | |
12167 | else | |
12168 | ac_path_to_link=" -L$ac_find_libraries" | |
12169 | fi | |
3a922bb4 | 12170 | |
62d0491b RL |
12171 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12172 | OPENGL_LIBS="-lGL -lGLU" | |
1352efdf | 12173 | echo "$ac_t""yes" 1>&6 |
62d0491b | 12174 | else |
1352efdf RL |
12175 | echo "$ac_t""no" 1>&6 |
12176 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
a72a4bfa | 12177 | echo "configure:12178: checking for -lMesaGL" >&5 |
62d0491b RL |
12178 | |
12179 | ac_find_libraries= | |
12180 | for ac_dir in $SEARCH_LIB; | |
12181 | do | |
12182 | for ac_extension in a so sl dylib; do | |
12183 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12184 | ac_find_libraries=$ac_dir | |
12185 | break 2 | |
12186 | fi | |
12187 | done | |
12188 | done | |
3a922bb4 | 12189 | |
62d0491b | 12190 | if test "$ac_find_libraries" != "" ; then |
57964555 | 12191 | |
62d0491b RL |
12192 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
12193 | result=$? | |
12194 | if test $result = 0; then | |
12195 | ac_path_to_link="" | |
12196 | else | |
12197 | ac_path_to_link=" -L$ac_find_libraries" | |
12198 | fi | |
3a922bb4 | 12199 | |
62d0491b RL |
12200 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12201 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
12202 | echo "$ac_t""yes" 1>&6 |
12203 | else | |
12204 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
12205 | fi |
12206 | fi | |
12207 | ||
3a922bb4 RL |
12208 | else |
12209 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12210 | fi |
12211 | ||
6f754473 | 12212 | |
62d0491b RL |
12213 | |
12214 | # AC_CHECK_HEADER(GL/gl.h, | |
12215 | # [ | |
12216 | # AC_CHECK_LIB(GL, glFlush, | |
12217 | # [ | |
12218 | # OPENGL_LIBS="-lGL -lGLU" | |
12219 | # ], | |
12220 | # [ | |
12221 | # AC_CHECK_LIB(MesaGL, glFlush, | |
12222 | # [ | |
12223 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
12224 | # ], | |
12225 | # [], | |
12226 | # [-lm]) | |
12227 | # ], | |
12228 | # [-lm]) | |
12229 | # ]) | |
12230 | ||
12231 | if test "x$OPENGL_LIBS" = "x"; then | |
12232 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
12233 | fi | |
6f754473 | 12234 | fi |
6f754473 | 12235 | |
62d0491b RL |
12236 | if test "$wxUSE_OPENGL" = "yes"; then |
12237 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
12238 | #define wxUSE_OPENGL 1 |
12239 | EOF | |
12240 | ||
62d0491b | 12241 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
12242 | #define wxUSE_GLCANVAS 1 |
12243 | EOF | |
12244 | ||
62d0491b RL |
12245 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
12246 | fi | |
3a922bb4 RL |
12247 | fi |
12248 | ||
12249 | if test -z "$TOOLKIT_VPATH" ; then | |
12250 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12251 | fi | |
12252 | ||
12253 | if test -n "$TOOLKIT" ; then | |
12254 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
12255 | fi | |
12256 | ||
f676c7ff MB |
12257 | lib_unicode_suffix= |
12258 | if test "$wxUSE_UNICODE" = "yes"; then | |
12259 | lib_unicode_suffix=u | |
12260 | fi | |
12261 | ||
3a922bb4 RL |
12262 | lib_debug_suffix= |
12263 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
12264 | lib_debug_suffix=d | |
3a922bb4 RL |
12265 | fi |
12266 | ||
f676c7ff MB |
12267 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
12268 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
12269 | |
12270 | if test "$cross_compiling" = "yes"; then | |
12271 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
12272 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
12273 | fi | |
12274 | ||
12275 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
12276 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
12277 | ||
3a922bb4 RL |
12278 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
12279 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
12280 | ||
12281 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
12282 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12283 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
12284 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
12285 | ||
d08b457b | 12286 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 12287 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 12288 | |
978f1259 RL |
12289 | case "${host}" in |
12290 | *-*-cygwin* | *-*-mingw32* ) | |
12291 | ||
2da4f892 | 12292 | |
978f1259 RL |
12293 | |
12294 | if test "$cross_compiling" != "yes"; then | |
12295 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12296 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12297 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
12298 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
12299 | else |
12300 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12301 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
12302 | fi |
12303 | ||
12304 | esac | |
12305 | ||
12306 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
12307 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
12308 | ||
12309 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 12310 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
12311 | |
12312 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
12313 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
12314 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
12315 | fi |
12316 | ||
12317 | ||
3a922bb4 RL |
12318 | |
12319 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
12320 | |
12321 | if test "$wxUSE_OPENGL" = "yes"; then | |
12322 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 12323 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
12324 | else |
12325 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 12326 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
12327 | fi |
12328 | ||
dd4f7467 | 12329 | if test "$GCC" = "yes"; then |
55e80573 | 12330 | PIC_FLAG="-fPIC" |
dd4f7467 | 12331 | fi |
55e80573 VZ |
12332 | |
12333 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 12334 | |
10f2d63a VZ |
12335 | case "${host}" in |
12336 | *-hp-hpux* ) | |
55e80573 | 12337 | if test "$GCC" != "yes"; then |
3d63bc3a | 12338 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 12339 | |
10f2d63a VZ |
12340 | SHARED_LD="${CXX} -b -o" |
12341 | PIC_FLAG="+Z" | |
12342 | fi | |
55e80573 | 12343 | |
7b7a7637 RL |
12344 | if test "$wxUSE_OPENGL" = "yes"; then |
12345 | WX_ALL_INSTALLED="preinstall_gl" | |
12346 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
12347 | else | |
12348 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
12349 | fi | |
10f2d63a | 12350 | ;; |
b12915c1 | 12351 | |
55e80573 VZ |
12352 | *-*-linux* ) |
12353 | if test "$GCC" != "yes"; then | |
12354 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
a72a4bfa | 12355 | echo "configure:12356: checking for Intel compiler" >&5 |
55e80573 VZ |
12356 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
12357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12358 | else | |
12359 | ||
12360 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12361 | #line 12362 "configure" |
55e80573 VZ |
12362 | #include "confdefs.h" |
12363 | ||
12364 | int main() { | |
12365 | ||
12366 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 12367 | #error Not icc |
55e80573 VZ |
12368 | #endif |
12369 | ||
12370 | ; return 0; } | |
12371 | EOF | |
a72a4bfa | 12372 | if { (eval echo configure:12373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
12373 | rm -rf conftest* |
12374 | wx_cv_prog_icc=yes | |
12375 | else | |
12376 | echo "configure: failed program was:" >&5 | |
12377 | cat conftest.$ac_ext >&5 | |
12378 | rm -rf conftest* | |
12379 | wx_cv_prog_icc=no | |
12380 | ||
12381 | fi | |
12382 | rm -f conftest* | |
12383 | ||
12384 | fi | |
12385 | ||
12386 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
12387 | if test "$wx_cv_prog_icc" = "yes"; then |
12388 | PIC_FLAG="-KPIC" | |
12389 | fi | |
12390 | fi | |
12391 | ||
3a922bb4 RL |
12392 | if test "$wxUSE_SONAME" = "yes" ; then |
12393 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
12394 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 12395 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 12396 | fi |
10f2d63a | 12397 | ;; |
55e80573 | 12398 | |
10f2d63a VZ |
12399 | *-*-solaris2* ) |
12400 | if test "$GCC" = yes ; then | |
f6bcfd97 | 12401 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
12402 | else |
12403 | SHARED_LD="${CXX} -G -o" | |
12404 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
12405 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
12406 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 12407 | fi |
10f2d63a | 12408 | ;; |
55e80573 | 12409 | |
b4085ce6 | 12410 | *-*-darwin* ) |
156b2523 GD |
12411 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
12412 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
12413 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 12414 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 12415 | ;; |
55e80573 | 12416 | |
10f2d63a VZ |
12417 | *-*-aix* ) |
12418 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 12419 | ;; |
55e80573 | 12420 | |
7b7a7637 | 12421 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 12422 | |
2da4f892 | 12423 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 12424 | |
77e13408 | 12425 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 12426 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
12427 | |
12428 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
12429 | |
12430 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 12431 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 12432 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 12433 | else |
978f1259 | 12434 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 12435 | fi |
10f2d63a | 12436 | ;; |
55e80573 | 12437 | |
6fa882bd | 12438 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 12439 | wxUSE_SHARED=no |
10f2d63a | 12440 | ;; |
55e80573 | 12441 | |
b12915c1 | 12442 | *-*-beos* ) |
e2b8b066 | 12443 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 12444 | ;; |
55e80573 VZ |
12445 | |
12446 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
12447 | *-*-sunos4* | \ | |
12448 | *-*-irix5* | *-*-irix6* | \ | |
12449 | *-*-osf* | \ | |
12450 | *-*-dgux5* | \ | |
12451 | *-*-sysv5* ) | |
12452 | ;; | |
12453 | ||
10f2d63a | 12454 | *) |
7b7a7637 | 12455 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
12456 | esac |
12457 | ||
12458 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
12459 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 12460 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 12461 | fi |
55e80573 | 12462 | |
3711412e | 12463 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 12464 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 12465 | fi |
f6bcfd97 | 12466 | |
3a922bb4 | 12467 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 12468 | |
3a922bb4 | 12469 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
12470 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
12471 | fi | |
12472 | ||
6fa882bd RR |
12473 | if test "$wxUSE_MAC" = 1; then |
12474 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
12475 | fi | |
12476 | ||
3a922bb4 RL |
12477 | if test "$wxUSE_OPENGL" = "yes"; then |
12478 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
12479 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
12480 | else | |
12481 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
12482 | fi | |
698dcdb6 | 12483 | |
3a922bb4 RL |
12484 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
12485 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
12486 | ||
12487 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 12488 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 12489 | fi |
10f2d63a | 12490 | |
d08b457b GD |
12491 | if test "$wxUSE_MAC" = 1; then |
12492 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 12493 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
12494 | # Extract the first word of "Rez", so it can be a program name with args. |
12495 | set dummy Rez; ac_word=$2 | |
12496 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a72a4bfa | 12497 | echo "configure:12498: checking for $ac_word" >&5 |
d08b457b GD |
12498 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
12499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12500 | else | |
12501 | if test -n "$RESCOMP"; then | |
12502 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
12503 | else | |
12504 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12505 | ac_dummy="$PATH" | |
12506 | for ac_dir in $ac_dummy; do | |
12507 | test -z "$ac_dir" && ac_dir=. | |
12508 | if test -f $ac_dir/$ac_word; then | |
12509 | ac_cv_prog_RESCOMP="Rez" | |
12510 | break | |
12511 | fi | |
12512 | done | |
12513 | IFS="$ac_save_ifs" | |
12514 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
12515 | fi | |
12516 | fi | |
12517 | RESCOMP="$ac_cv_prog_RESCOMP" | |
12518 | if test -n "$RESCOMP"; then | |
12519 | echo "$ac_t""$RESCOMP" 1>&6 | |
12520 | else | |
12521 | echo "$ac_t""no" 1>&6 | |
12522 | fi | |
12523 | ||
9f8148b1 GD |
12524 | # Extract the first word of "DeRez", so it can be a program name with args. |
12525 | set dummy DeRez; ac_word=$2 | |
d08b457b | 12526 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
a72a4bfa | 12527 | echo "configure:12528: checking for $ac_word" >&5 |
d08b457b GD |
12528 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
12529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12530 | else | |
12531 | if test -n "$DEREZ"; then | |
12532 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12533 | else | |
12534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12535 | ac_dummy="$PATH" | |
12536 | for ac_dir in $ac_dummy; do | |
12537 | test -z "$ac_dir" && ac_dir=. | |
12538 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 12539 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
12540 | break |
12541 | fi | |
12542 | done | |
12543 | IFS="$ac_save_ifs" | |
9f8148b1 | 12544 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
12545 | fi |
12546 | fi | |
12547 | DEREZ="$ac_cv_prog_DEREZ" | |
12548 | if test -n "$DEREZ"; then | |
12549 | echo "$ac_t""$DEREZ" 1>&6 | |
12550 | else | |
12551 | echo "$ac_t""no" 1>&6 | |
12552 | fi | |
12553 | ||
12554 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12555 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12556 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12557 | fi |
12558 | ||
3a922bb4 | 12559 | |
13c0541d GD |
12560 | if test "$wxUSE_MAC" != 1; then |
12561 | for ac_hdr in strings.h | |
9cfadba2 | 12562 | do |
698dcdb6 VZ |
12563 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12564 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12565 | echo "configure:12566: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12566 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12568 | else | |
12569 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12570 | #line 12571 "configure" |
9cfadba2 | 12571 | #include "confdefs.h" |
698dcdb6 VZ |
12572 | #include <$ac_hdr> |
12573 | EOF | |
12574 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12575 | { (eval echo configure:12576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12576 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12577 | if test -z "$ac_err"; then | |
12578 | rm -rf conftest* | |
12579 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12580 | else |
698dcdb6 VZ |
12581 | echo "$ac_err" >&5 |
12582 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12583 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12584 | rm -rf conftest* |
12585 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12586 | fi |
698dcdb6 | 12587 | rm -f conftest* |
9cfadba2 | 12588 | fi |
698dcdb6 VZ |
12589 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12590 | echo "$ac_t""yes" 1>&6 | |
12591 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12592 | cat >> confdefs.h <<EOF | |
12593 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12594 | EOF |
698dcdb6 VZ |
12595 | |
12596 | else | |
12597 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12598 | fi |
12599 | done | |
10f2d63a | 12600 | |
13c0541d GD |
12601 | fi |
12602 | ||
3a922bb4 | 12603 | for ac_hdr in stdlib.h |
10f2d63a | 12604 | do |
698dcdb6 VZ |
12605 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12606 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12607 | echo "configure:12608: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12608 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12610 | else | |
12611 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12612 | #line 12613 "configure" |
10f2d63a | 12613 | #include "confdefs.h" |
698dcdb6 VZ |
12614 | #include <$ac_hdr> |
12615 | EOF | |
12616 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12617 | { (eval echo configure:12618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12618 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12619 | if test -z "$ac_err"; then | |
12620 | rm -rf conftest* | |
12621 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12622 | else |
698dcdb6 VZ |
12623 | echo "$ac_err" >&5 |
12624 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12625 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12626 | rm -rf conftest* |
12627 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12628 | fi |
698dcdb6 | 12629 | rm -f conftest* |
10f2d63a | 12630 | fi |
698dcdb6 VZ |
12631 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12632 | echo "$ac_t""yes" 1>&6 | |
12633 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12634 | cat >> confdefs.h <<EOF | |
12635 | #define $ac_tr_hdr 1 | |
10f2d63a | 12636 | EOF |
698dcdb6 VZ |
12637 | |
12638 | else | |
12639 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12640 | fi |
12641 | done | |
12642 | ||
9f8148b1 | 12643 | for ac_hdr in malloc.h |
10f2d63a | 12644 | do |
698dcdb6 VZ |
12645 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12646 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12647 | echo "configure:12648: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12648 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12650 | else | |
12651 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12652 | #line 12653 "configure" |
10f2d63a | 12653 | #include "confdefs.h" |
698dcdb6 VZ |
12654 | #include <$ac_hdr> |
12655 | EOF | |
12656 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12657 | { (eval echo configure:12658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12658 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12659 | if test -z "$ac_err"; then | |
12660 | rm -rf conftest* | |
12661 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12662 | else |
698dcdb6 VZ |
12663 | echo "$ac_err" >&5 |
12664 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12665 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12666 | rm -rf conftest* |
12667 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12668 | fi |
698dcdb6 | 12669 | rm -f conftest* |
6f72b082 | 12670 | fi |
698dcdb6 VZ |
12671 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12672 | echo "$ac_t""yes" 1>&6 | |
12673 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12674 | cat >> confdefs.h <<EOF | |
12675 | #define $ac_tr_hdr 1 | |
6f72b082 | 12676 | EOF |
698dcdb6 VZ |
12677 | |
12678 | else | |
12679 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12680 | fi |
12681 | done | |
12682 | ||
9f8148b1 | 12683 | for ac_hdr in unistd.h |
6f72b082 | 12684 | do |
698dcdb6 VZ |
12685 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12686 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12687 | echo "configure:12688: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12688 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12690 | else | |
12691 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12692 | #line 12693 "configure" |
6f72b082 | 12693 | #include "confdefs.h" |
698dcdb6 VZ |
12694 | #include <$ac_hdr> |
12695 | EOF | |
12696 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12697 | { (eval echo configure:12698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12698 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12699 | if test -z "$ac_err"; then | |
12700 | rm -rf conftest* | |
12701 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12702 | else |
698dcdb6 VZ |
12703 | echo "$ac_err" >&5 |
12704 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12705 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12706 | rm -rf conftest* |
12707 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12708 | fi |
698dcdb6 | 12709 | rm -f conftest* |
6f72b082 | 12710 | fi |
698dcdb6 VZ |
12711 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12712 | echo "$ac_t""yes" 1>&6 | |
12713 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12714 | cat >> confdefs.h <<EOF | |
12715 | #define $ac_tr_hdr 1 | |
6f72b082 | 12716 | EOF |
698dcdb6 VZ |
12717 | |
12718 | else | |
12719 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12720 | fi |
12721 | done | |
12722 | ||
9f8148b1 | 12723 | for ac_hdr in wchar.h |
6f72b082 | 12724 | do |
698dcdb6 VZ |
12725 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12726 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12727 | echo "configure:12728: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12728 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12730 | else | |
12731 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12732 | #line 12733 "configure" |
6f72b082 | 12733 | #include "confdefs.h" |
698dcdb6 VZ |
12734 | #include <$ac_hdr> |
12735 | EOF | |
12736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12737 | { (eval echo configure:12738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12738 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12739 | if test -z "$ac_err"; then | |
12740 | rm -rf conftest* | |
12741 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12742 | else |
698dcdb6 VZ |
12743 | echo "$ac_err" >&5 |
12744 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12745 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12746 | rm -rf conftest* |
12747 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12748 | fi |
698dcdb6 | 12749 | rm -f conftest* |
10f2d63a | 12750 | fi |
698dcdb6 VZ |
12751 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12752 | echo "$ac_t""yes" 1>&6 | |
12753 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12754 | cat >> confdefs.h <<EOF | |
12755 | #define $ac_tr_hdr 1 | |
10f2d63a | 12756 | EOF |
698dcdb6 VZ |
12757 | |
12758 | else | |
12759 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12760 | fi |
12761 | done | |
12762 | ||
9f8148b1 | 12763 | for ac_hdr in wcstr.h |
0fb0dd83 | 12764 | do |
698dcdb6 VZ |
12765 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12766 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12767 | echo "configure:12768: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12768 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12770 | else | |
12771 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12772 | #line 12773 "configure" |
0fb0dd83 | 12773 | #include "confdefs.h" |
698dcdb6 VZ |
12774 | #include <$ac_hdr> |
12775 | EOF | |
12776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12777 | { (eval echo configure:12778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12779 | if test -z "$ac_err"; then | |
12780 | rm -rf conftest* | |
12781 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12782 | else |
698dcdb6 VZ |
12783 | echo "$ac_err" >&5 |
12784 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12785 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12786 | rm -rf conftest* |
12787 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12788 | fi |
698dcdb6 | 12789 | rm -f conftest* |
0fb0dd83 | 12790 | fi |
698dcdb6 VZ |
12791 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12792 | echo "$ac_t""yes" 1>&6 | |
12793 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12794 | cat >> confdefs.h <<EOF | |
12795 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12796 | EOF |
698dcdb6 VZ |
12797 | |
12798 | else | |
12799 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12800 | fi |
12801 | done | |
12802 | ||
9f8148b1 | 12803 | for ac_hdr in wctype.h |
1f8ae82f | 12804 | do |
698dcdb6 VZ |
12805 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12806 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12807 | echo "configure:12808: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12808 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12810 | else | |
12811 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12812 | #line 12813 "configure" |
1f8ae82f | 12813 | #include "confdefs.h" |
698dcdb6 VZ |
12814 | #include <$ac_hdr> |
12815 | EOF | |
12816 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12817 | { (eval echo configure:12818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12818 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12819 | if test -z "$ac_err"; then | |
12820 | rm -rf conftest* | |
12821 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12822 | else |
698dcdb6 VZ |
12823 | echo "$ac_err" >&5 |
12824 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12825 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12826 | rm -rf conftest* |
12827 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12828 | fi |
698dcdb6 | 12829 | rm -f conftest* |
1f8ae82f | 12830 | fi |
698dcdb6 VZ |
12831 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12832 | echo "$ac_t""yes" 1>&6 | |
12833 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12834 | cat >> confdefs.h <<EOF | |
12835 | #define $ac_tr_hdr 1 | |
1f8ae82f | 12836 | EOF |
698dcdb6 VZ |
12837 | |
12838 | else | |
12839 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
12840 | fi |
12841 | done | |
12842 | ||
9f8148b1 | 12843 | for ac_hdr in fnmatch.h |
10f2d63a | 12844 | do |
698dcdb6 VZ |
12845 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12846 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12847 | echo "configure:12848: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12848 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12850 | else | |
12851 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12852 | #line 12853 "configure" |
10f2d63a | 12853 | #include "confdefs.h" |
698dcdb6 VZ |
12854 | #include <$ac_hdr> |
12855 | EOF | |
12856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12857 | { (eval echo configure:12858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12858 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12859 | if test -z "$ac_err"; then | |
12860 | rm -rf conftest* | |
12861 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12862 | else |
698dcdb6 VZ |
12863 | echo "$ac_err" >&5 |
12864 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12865 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12866 | rm -rf conftest* |
12867 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12868 | fi |
698dcdb6 | 12869 | rm -f conftest* |
10f2d63a | 12870 | fi |
698dcdb6 VZ |
12871 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12872 | echo "$ac_t""yes" 1>&6 | |
12873 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12874 | cat >> confdefs.h <<EOF | |
12875 | #define $ac_tr_hdr 1 | |
10f2d63a | 12876 | EOF |
698dcdb6 VZ |
12877 | |
12878 | else | |
12879 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12880 | fi |
12881 | done | |
12882 | ||
9f8148b1 | 12883 | for ac_hdr in iconv.h |
0fbb762e MB |
12884 | do |
12885 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12886 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12887 | echo "configure:12888: checking for $ac_hdr" >&5 |
0fbb762e MB |
12888 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12890 | else | |
12891 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12892 | #line 12893 "configure" |
0fbb762e MB |
12893 | #include "confdefs.h" |
12894 | #include <$ac_hdr> | |
12895 | EOF | |
12896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12897 | { (eval echo configure:12898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
12898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12899 | if test -z "$ac_err"; then | |
12900 | rm -rf conftest* | |
12901 | eval "ac_cv_header_$ac_safe=yes" | |
12902 | else | |
12903 | echo "$ac_err" >&5 | |
12904 | echo "configure: failed program was:" >&5 | |
12905 | cat conftest.$ac_ext >&5 | |
12906 | rm -rf conftest* | |
12907 | eval "ac_cv_header_$ac_safe=no" | |
12908 | fi | |
12909 | rm -f conftest* | |
12910 | fi | |
12911 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12912 | echo "$ac_t""yes" 1>&6 | |
12913 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12914 | cat >> confdefs.h <<EOF | |
12915 | #define $ac_tr_hdr 1 | |
12916 | EOF | |
12917 | ||
12918 | else | |
12919 | echo "$ac_t""no" 1>&6 | |
12920 | fi | |
12921 | done | |
12922 | ||
9f8148b1 GD |
12923 | for ac_hdr in langinfo.h |
12924 | do | |
12925 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12926 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12927 | echo "configure:12928: checking for $ac_hdr" >&5 |
9f8148b1 GD |
12928 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12930 | else | |
12931 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12932 | #line 12933 "configure" |
9f8148b1 GD |
12933 | #include "confdefs.h" |
12934 | #include <$ac_hdr> | |
12935 | EOF | |
12936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12937 | { (eval echo configure:12938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
12938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12939 | if test -z "$ac_err"; then | |
12940 | rm -rf conftest* | |
12941 | eval "ac_cv_header_$ac_safe=yes" | |
12942 | else | |
12943 | echo "$ac_err" >&5 | |
12944 | echo "configure: failed program was:" >&5 | |
12945 | cat conftest.$ac_ext >&5 | |
12946 | rm -rf conftest* | |
12947 | eval "ac_cv_header_$ac_safe=no" | |
12948 | fi | |
12949 | rm -f conftest* | |
12950 | fi | |
12951 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12952 | echo "$ac_t""yes" 1>&6 | |
12953 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12954 | cat >> confdefs.h <<EOF | |
12955 | #define $ac_tr_hdr 1 | |
12956 | EOF | |
12957 | ||
12958 | else | |
12959 | echo "$ac_t""no" 1>&6 | |
12960 | fi | |
12961 | done | |
12962 | ||
10f2d63a | 12963 | |
3a922bb4 RL |
12964 | if test "$wxUSE_GUI" = "yes"; then |
12965 | if test "$wxUSE_UNIX" = "yes"; then | |
12966 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
12967 | do |
12968 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12969 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 12970 | echo "configure:12971: checking for $ac_hdr" >&5 |
29fd3c0c VS |
12971 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12973 | else | |
12974 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 12975 | #line 12976 "configure" |
29fd3c0c VS |
12976 | #include "confdefs.h" |
12977 | #include <$ac_hdr> | |
12978 | EOF | |
12979 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 12980 | { (eval echo configure:12981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
12981 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12982 | if test -z "$ac_err"; then | |
12983 | rm -rf conftest* | |
12984 | eval "ac_cv_header_$ac_safe=yes" | |
12985 | else | |
12986 | echo "$ac_err" >&5 | |
12987 | echo "configure: failed program was:" >&5 | |
12988 | cat conftest.$ac_ext >&5 | |
12989 | rm -rf conftest* | |
12990 | eval "ac_cv_header_$ac_safe=no" | |
12991 | fi | |
12992 | rm -f conftest* | |
12993 | fi | |
12994 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12995 | echo "$ac_t""yes" 1>&6 | |
12996 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12997 | cat >> confdefs.h <<EOF | |
12998 | #define $ac_tr_hdr 1 | |
12999 | EOF | |
13000 | ||
13001 | else | |
13002 | echo "$ac_t""no" 1>&6 | |
13003 | fi | |
13004 | done | |
13005 | ||
3a922bb4 | 13006 | fi |
29fd3c0c VS |
13007 | fi |
13008 | ||
698dcdb6 VZ |
13009 | |
13010 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
a72a4bfa | 13011 | echo "configure:13012: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
13012 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
13013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13014 | else |
698dcdb6 | 13015 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13016 | #line 13017 "configure" |
10f2d63a VZ |
13017 | #include "confdefs.h" |
13018 | #include <stdlib.h> | |
13019 | #include <stdarg.h> | |
13020 | #include <string.h> | |
13021 | #include <float.h> | |
698dcdb6 VZ |
13022 | EOF |
13023 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 13024 | { (eval echo configure:13025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13025 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13026 | if test -z "$ac_err"; then | |
13027 | rm -rf conftest* | |
10f2d63a VZ |
13028 | ac_cv_header_stdc=yes |
13029 | else | |
698dcdb6 VZ |
13030 | echo "$ac_err" >&5 |
13031 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13032 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13033 | rm -rf conftest* |
10f2d63a VZ |
13034 | ac_cv_header_stdc=no |
13035 | fi | |
698dcdb6 | 13036 | rm -f conftest* |
10f2d63a VZ |
13037 | |
13038 | if test $ac_cv_header_stdc = yes; then | |
13039 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 13040 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13041 | #line 13042 "configure" |
10f2d63a VZ |
13042 | #include "confdefs.h" |
13043 | #include <string.h> | |
698dcdb6 | 13044 | EOF |
10f2d63a VZ |
13045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13046 | egrep "memchr" >/dev/null 2>&1; then | |
13047 | : | |
13048 | else | |
698dcdb6 | 13049 | rm -rf conftest* |
10f2d63a VZ |
13050 | ac_cv_header_stdc=no |
13051 | fi | |
13052 | rm -f conftest* | |
13053 | ||
13054 | fi | |
13055 | ||
13056 | if test $ac_cv_header_stdc = yes; then | |
13057 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 13058 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13059 | #line 13060 "configure" |
10f2d63a VZ |
13060 | #include "confdefs.h" |
13061 | #include <stdlib.h> | |
698dcdb6 | 13062 | EOF |
10f2d63a VZ |
13063 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13064 | egrep "free" >/dev/null 2>&1; then | |
13065 | : | |
13066 | else | |
698dcdb6 | 13067 | rm -rf conftest* |
10f2d63a VZ |
13068 | ac_cv_header_stdc=no |
13069 | fi | |
13070 | rm -f conftest* | |
13071 | ||
13072 | fi | |
13073 | ||
13074 | if test $ac_cv_header_stdc = yes; then | |
13075 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 13076 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
13077 | : |
13078 | else | |
698dcdb6 | 13079 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13080 | #line 13081 "configure" |
10f2d63a VZ |
13081 | #include "confdefs.h" |
13082 | #include <ctype.h> | |
698dcdb6 VZ |
13083 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
13084 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 13085 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
13086 | int main () { int i; for (i = 0; i < 256; i++) |
13087 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
13088 | exit (0); } | |
13089 | ||
13090 | EOF | |
a72a4bfa | 13091 | if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13092 | then |
10f2d63a VZ |
13093 | : |
13094 | else | |
698dcdb6 VZ |
13095 | echo "configure: failed program was:" >&5 |
13096 | cat conftest.$ac_ext >&5 | |
13097 | rm -fr conftest* | |
13098 | ac_cv_header_stdc=no | |
10f2d63a | 13099 | fi |
698dcdb6 | 13100 | rm -fr conftest* |
10f2d63a | 13101 | fi |
698dcdb6 | 13102 | |
10f2d63a VZ |
13103 | fi |
13104 | fi | |
1e487827 | 13105 | |
698dcdb6 VZ |
13106 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
13107 | if test $ac_cv_header_stdc = yes; then | |
13108 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13109 | #define STDC_HEADERS 1 |
13110 | EOF | |
13111 | ||
13112 | fi | |
13113 | ||
698dcdb6 | 13114 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
a72a4bfa | 13115 | echo "configure:13116: checking for mode_t" >&5 |
698dcdb6 VZ |
13116 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
13117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13118 | else |
698dcdb6 | 13119 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13120 | #line 13121 "configure" |
1e487827 | 13121 | #include "confdefs.h" |
698dcdb6 VZ |
13122 | #include <sys/types.h> |
13123 | #if STDC_HEADERS | |
13124 | #include <stdlib.h> | |
13125 | #include <stddef.h> | |
13126 | #endif | |
13127 | EOF | |
13128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13129 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13130 | rm -rf conftest* | |
10f2d63a VZ |
13131 | ac_cv_type_mode_t=yes |
13132 | else | |
698dcdb6 VZ |
13133 | rm -rf conftest* |
13134 | ac_cv_type_mode_t=no | |
703e0a69 | 13135 | fi |
698dcdb6 | 13136 | rm -f conftest* |
1e487827 | 13137 | |
698dcdb6 VZ |
13138 | fi |
13139 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
13140 | if test $ac_cv_type_mode_t = no; then | |
13141 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13142 | #define mode_t int |
13143 | EOF | |
13144 | ||
13145 | fi | |
13146 | ||
698dcdb6 | 13147 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
a72a4bfa | 13148 | echo "configure:13149: checking for off_t" >&5 |
698dcdb6 VZ |
13149 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
13150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13151 | else |
698dcdb6 | 13152 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13153 | #line 13154 "configure" |
10f2d63a | 13154 | #include "confdefs.h" |
698dcdb6 VZ |
13155 | #include <sys/types.h> |
13156 | #if STDC_HEADERS | |
13157 | #include <stdlib.h> | |
13158 | #include <stddef.h> | |
13159 | #endif | |
13160 | EOF | |
13161 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13162 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13163 | rm -rf conftest* | |
10f2d63a VZ |
13164 | ac_cv_type_off_t=yes |
13165 | else | |
698dcdb6 VZ |
13166 | rm -rf conftest* |
13167 | ac_cv_type_off_t=no | |
703e0a69 | 13168 | fi |
698dcdb6 | 13169 | rm -f conftest* |
1e487827 | 13170 | |
698dcdb6 VZ |
13171 | fi |
13172 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
13173 | if test $ac_cv_type_off_t = no; then | |
13174 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13175 | #define off_t long |
13176 | EOF | |
13177 | ||
13178 | fi | |
13179 | ||
698dcdb6 | 13180 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
a72a4bfa | 13181 | echo "configure:13182: checking for pid_t" >&5 |
698dcdb6 VZ |
13182 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
13183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13184 | else |
698dcdb6 | 13185 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13186 | #line 13187 "configure" |
10f2d63a | 13187 | #include "confdefs.h" |
698dcdb6 VZ |
13188 | #include <sys/types.h> |
13189 | #if STDC_HEADERS | |
13190 | #include <stdlib.h> | |
13191 | #include <stddef.h> | |
13192 | #endif | |
13193 | EOF | |
13194 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13195 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13196 | rm -rf conftest* | |
10f2d63a VZ |
13197 | ac_cv_type_pid_t=yes |
13198 | else | |
698dcdb6 VZ |
13199 | rm -rf conftest* |
13200 | ac_cv_type_pid_t=no | |
703e0a69 | 13201 | fi |
698dcdb6 | 13202 | rm -f conftest* |
1e487827 | 13203 | |
698dcdb6 VZ |
13204 | fi |
13205 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
13206 | if test $ac_cv_type_pid_t = no; then | |
13207 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13208 | #define pid_t int |
13209 | EOF | |
13210 | ||
13211 | fi | |
13212 | ||
698dcdb6 | 13213 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
a72a4bfa | 13214 | echo "configure:13215: checking for size_t" >&5 |
698dcdb6 VZ |
13215 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
13216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13217 | else |
698dcdb6 | 13218 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13219 | #line 13220 "configure" |
10f2d63a | 13220 | #include "confdefs.h" |
698dcdb6 VZ |
13221 | #include <sys/types.h> |
13222 | #if STDC_HEADERS | |
13223 | #include <stdlib.h> | |
13224 | #include <stddef.h> | |
13225 | #endif | |
13226 | EOF | |
13227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13228 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13229 | rm -rf conftest* | |
10f2d63a VZ |
13230 | ac_cv_type_size_t=yes |
13231 | else | |
698dcdb6 VZ |
13232 | rm -rf conftest* |
13233 | ac_cv_type_size_t=no | |
703e0a69 | 13234 | fi |
698dcdb6 | 13235 | rm -f conftest* |
1e487827 | 13236 | |
698dcdb6 VZ |
13237 | fi |
13238 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
13239 | if test $ac_cv_type_size_t = no; then | |
13240 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13241 | #define size_t unsigned |
13242 | EOF | |
13243 | ||
13244 | fi | |
13245 | ||
698dcdb6 | 13246 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
a72a4bfa | 13247 | echo "configure:13248: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
13248 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
13249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13250 | else |
698dcdb6 | 13251 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13252 | #line 13253 "configure" |
10f2d63a VZ |
13253 | #include "confdefs.h" |
13254 | #include <sys/types.h> | |
698dcdb6 | 13255 | EOF |
10f2d63a VZ |
13256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13257 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 13258 | rm -rf conftest* |
10f2d63a VZ |
13259 | ac_cv_type_uid_t=yes |
13260 | else | |
698dcdb6 | 13261 | rm -rf conftest* |
10f2d63a VZ |
13262 | ac_cv_type_uid_t=no |
13263 | fi | |
13264 | rm -f conftest* | |
13265 | ||
13266 | fi | |
1e487827 | 13267 | |
698dcdb6 VZ |
13268 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
13269 | if test $ac_cv_type_uid_t = no; then | |
13270 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13271 | #define uid_t int |
13272 | EOF | |
13273 | ||
698dcdb6 | 13274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13275 | #define gid_t int |
13276 | EOF | |
13277 | ||
13278 | fi | |
13279 | ||
1e487827 | 13280 | |
698dcdb6 | 13281 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
a72a4bfa | 13282 | echo "configure:13283: checking for wchar_t" >&5 |
698dcdb6 VZ |
13283 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
13284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13285 | else | |
13286 | ||
13287 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13288 | #line 13289 "configure" |
0046ff7c | 13289 | #include "confdefs.h" |
4b42290e GD |
13290 | |
13291 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
13292 | # ifdef __CYGWIN__ |
13293 | # include <stddef.h> | |
13294 | # endif | |
4b42290e GD |
13295 | # include <wchar.h> |
13296 | #endif | |
13297 | #ifdef HAVE_STDLIB_H | |
13298 | # include <stdlib.h> | |
13299 | #endif | |
13300 | ||
698dcdb6 | 13301 | int main() { |
0046ff7c | 13302 | |
d836ee96 VZ |
13303 | wchar_t wc, *ws; |
13304 | wc = L'a'; | |
13305 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
13306 | |
13307 | ; return 0; } | |
13308 | EOF | |
a72a4bfa | 13309 | if { (eval echo configure:13310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13310 | rm -rf conftest* |
1f8ae82f | 13311 | wx_cv_type_wchar_t=yes |
0046ff7c | 13312 | else |
698dcdb6 VZ |
13313 | echo "configure: failed program was:" >&5 |
13314 | cat conftest.$ac_ext >&5 | |
13315 | rm -rf conftest* | |
13316 | wx_cv_type_wchar_t=no | |
d836ee96 | 13317 | |
6232543b | 13318 | fi |
698dcdb6 | 13319 | rm -f conftest* |
703e0a69 | 13320 | |
1e487827 | 13321 | fi |
698dcdb6 VZ |
13322 | |
13323 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
13324 | |
13325 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 13326 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
13327 | #define wxUSE_WCHAR_T 1 |
13328 | EOF | |
13329 | ||
13330 | fi | |
13331 | ||
19af3b06 VZ |
13332 | |
13333 | ac_ext=C | |
13334 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13335 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13336 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13337 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13338 | cross_compiling=$ac_cv_prog_cxx_cross | |
13339 | ||
d836ee96 | 13340 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
a72a4bfa | 13341 | echo "configure:13342: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
13342 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
13343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13344 | else | |
dd2c8b7c | 13345 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13346 | #line 13347 "configure" |
d836ee96 VZ |
13347 | #include "confdefs.h" |
13348 | #include <stddef.h> | |
13349 | int main() { | |
13350 | ||
dd2c8b7c VZ |
13351 | return 0; } |
13352 | ||
d836ee96 | 13353 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
13354 | |
13355 | int bar() { | |
d836ee96 VZ |
13356 | |
13357 | ; return 0; } | |
13358 | EOF | |
a72a4bfa | 13359 | if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13360 | rm -rf conftest* |
13361 | wx_cv_size_t_is_uint=no | |
13362 | else | |
13363 | echo "configure: failed program was:" >&5 | |
13364 | cat conftest.$ac_ext >&5 | |
13365 | rm -rf conftest* | |
13366 | wx_cv_size_t_is_uint=yes | |
13367 | ||
13368 | fi | |
13369 | rm -f conftest* | |
13370 | ||
13371 | fi | |
13372 | ||
13373 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
13374 | ||
13375 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
13376 | cat >> confdefs.h <<\EOF | |
13377 | #define wxSIZE_T_IS_UINT 1 | |
13378 | EOF | |
13379 | ||
13380 | else | |
13381 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
a72a4bfa | 13382 | echo "configure:13383: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
13383 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
13384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13385 | else | |
13386 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13387 | #line 13388 "configure" |
d836ee96 VZ |
13388 | #include "confdefs.h" |
13389 | #include <stddef.h> | |
13390 | int main() { | |
13391 | ||
dd2c8b7c VZ |
13392 | return 0; } |
13393 | ||
d836ee96 | 13394 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
13395 | |
13396 | int bar() { | |
d836ee96 VZ |
13397 | |
13398 | ; return 0; } | |
13399 | EOF | |
a72a4bfa | 13400 | if { (eval echo configure:13401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13401 | rm -rf conftest* |
13402 | wx_cv_size_t_is_ulong=no | |
13403 | else | |
13404 | echo "configure: failed program was:" >&5 | |
13405 | cat conftest.$ac_ext >&5 | |
13406 | rm -rf conftest* | |
13407 | wx_cv_size_t_is_ulong=yes | |
13408 | ||
13409 | fi | |
13410 | rm -f conftest* | |
13411 | ||
13412 | fi | |
13413 | ||
13414 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
13415 | ||
13416 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
13417 | cat >> confdefs.h <<\EOF | |
13418 | #define wxSIZE_T_IS_ULONG 1 | |
13419 | EOF | |
13420 | ||
13421 | fi | |
13422 | fi | |
13423 | ||
19af3b06 VZ |
13424 | ac_ext=c |
13425 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13426 | ac_cpp='$CPP $CPPFLAGS' | |
13427 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13428 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13429 | cross_compiling=$ac_cv_prog_cc_cross | |
13430 | ||
13431 | ||
1e487827 | 13432 | |
698dcdb6 | 13433 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
a72a4bfa | 13434 | echo "configure:13435: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
13435 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
13436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13437 | else | |
13438 | ||
13439 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13440 | #line 13441 "configure" |
b12915c1 VZ |
13441 | #include "confdefs.h" |
13442 | #include <pwd.h> | |
698dcdb6 | 13443 | int main() { |
b12915c1 VZ |
13444 | |
13445 | char *p; | |
13446 | struct passwd *pw; | |
13447 | p = pw->pw_gecos; | |
698dcdb6 VZ |
13448 | |
13449 | ; return 0; } | |
13450 | EOF | |
a72a4bfa | 13451 | if { (eval echo configure:13452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13452 | rm -rf conftest* |
13453 | ||
b12915c1 | 13454 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 13455 | |
b12915c1 | 13456 | else |
698dcdb6 VZ |
13457 | echo "configure: failed program was:" >&5 |
13458 | cat conftest.$ac_ext >&5 | |
13459 | rm -rf conftest* | |
13460 | ||
b12915c1 | 13461 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
13462 | |
13463 | ||
6232543b | 13464 | fi |
698dcdb6 VZ |
13465 | rm -f conftest* |
13466 | ||
703e0a69 | 13467 | |
1e487827 | 13468 | fi |
698dcdb6 VZ |
13469 | |
13470 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 13471 | |
bd3277fe | 13472 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 13473 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
13474 | #define HAVE_PW_GECOS 1 |
13475 | EOF | |
13476 | ||
13477 | fi | |
13478 | ||
698dcdb6 VZ |
13479 | |
13480 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
a72a4bfa | 13481 | echo "configure:13482: checking for working const" >&5 |
698dcdb6 VZ |
13482 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
13483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13484 | else |
698dcdb6 | 13485 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13486 | #line 13487 "configure" |
10f2d63a | 13487 | #include "confdefs.h" |
698dcdb6 VZ |
13488 | |
13489 | int main() { | |
13490 | ||
13491 | /* Ultrix mips cc rejects this. */ | |
9f8148b1 | 13492 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
13493 | /* SunOS 4.1.1 cc rejects this. */ |
13494 | char const *const *ccp; | |
13495 | char **p; | |
13496 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13497 | struct point {int x, y;}; | |
13498 | static struct point const zero = {0,0}; | |
13499 | /* AIX XL C 1.02.0.0 rejects this. | |
13500 | It does not let you subtract one const X* pointer from another in an arm | |
13501 | of an if-expression whose if-part is not a constant expression */ | |
13502 | const char *g = "string"; | |
13503 | ccp = &g + (g ? g-g : 0); | |
13504 | /* HPUX 7.0 cc rejects these. */ | |
13505 | ++ccp; | |
13506 | p = (char**) ccp; | |
13507 | ccp = (char const *const *) p; | |
13508 | { /* SCO 3.2v4 cc rejects this. */ | |
13509 | char *t; | |
13510 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13511 | ||
13512 | *t++ = 0; | |
10f2d63a | 13513 | } |
698dcdb6 VZ |
13514 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
13515 | int x[] = {25, 17}; | |
13516 | const int *foo = &x[0]; | |
13517 | ++foo; | |
703e0a69 | 13518 | } |
698dcdb6 VZ |
13519 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
13520 | typedef const int *iptr; | |
13521 | iptr p = 0; | |
13522 | ++p; | |
6232543b | 13523 | } |
698dcdb6 VZ |
13524 | { /* AIX XL C 1.02.0.0 rejects this saying |
13525 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13526 | struct s { int j; const int *ap[3]; }; | |
13527 | struct s *b; b->j = 5; | |
1e487827 | 13528 | } |
698dcdb6 VZ |
13529 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
13530 | const int foo = 10; | |
13531 | } | |
4f14bcd8 GD |
13532 | |
13533 | ; return 0; } | |
698dcdb6 | 13534 | EOF |
a72a4bfa | 13535 | if { (eval echo configure:13536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13536 | rm -rf conftest* |
13537 | ac_cv_c_const=yes | |
698dcdb6 VZ |
13538 | else |
13539 | echo "configure: failed program was:" >&5 | |
13540 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13541 | rm -rf conftest* |
13542 | ac_cv_c_const=no | |
703e0a69 | 13543 | fi |
4f14bcd8 | 13544 | rm -f conftest* |
698dcdb6 VZ |
13545 | fi |
13546 | ||
4f14bcd8 GD |
13547 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
13548 | if test $ac_cv_c_const = no; then | |
13549 | cat >> confdefs.h <<\EOF | |
13550 | #define const | |
698dcdb6 VZ |
13551 | EOF |
13552 | ||
4f14bcd8 | 13553 | fi |
698dcdb6 | 13554 | |
4f14bcd8 | 13555 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
a72a4bfa | 13556 | echo "configure:13557: checking for inline" >&5 |
4f14bcd8 | 13557 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 13558 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13559 | else |
4f14bcd8 GD |
13560 | ac_cv_c_inline=no |
13561 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 13562 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13563 | #line 13564 "configure" |
10f2d63a | 13564 | #include "confdefs.h" |
4f14bcd8 GD |
13565 | |
13566 | int main() { | |
9f8148b1 | 13567 | } $ac_kw foo() { |
4f14bcd8 | 13568 | ; return 0; } |
698dcdb6 | 13569 | EOF |
a72a4bfa | 13570 | if { (eval echo configure:13571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13571 | rm -rf conftest* |
13572 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 13573 | else |
698dcdb6 VZ |
13574 | echo "configure: failed program was:" >&5 |
13575 | cat conftest.$ac_ext >&5 | |
10f2d63a | 13576 | fi |
4f14bcd8 GD |
13577 | rm -f conftest* |
13578 | done | |
698dcdb6 | 13579 | |
10f2d63a | 13580 | fi |
4f14bcd8 GD |
13581 | |
13582 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
13583 | case "$ac_cv_c_inline" in | |
13584 | inline | yes) ;; | |
13585 | no) cat >> confdefs.h <<\EOF | |
13586 | #define inline | |
13587 | EOF | |
13588 | ;; | |
13589 | *) cat >> confdefs.h <<EOF | |
13590 | #define inline $ac_cv_c_inline | |
698dcdb6 | 13591 | EOF |
4f14bcd8 GD |
13592 | ;; |
13593 | esac | |
698dcdb6 VZ |
13594 | |
13595 | ||
4f14bcd8 | 13596 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
a72a4bfa | 13597 | echo "configure:13598: checking size of char" >&5 |
4f14bcd8 | 13598 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
13599 | echo $ac_n "(cached) $ac_c" 1>&6 |
13600 | else | |
13601 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 13602 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
13603 | else |
13604 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13605 | #line 13606 "configure" |
698dcdb6 VZ |
13606 | #include "confdefs.h" |
13607 | #include <stdio.h> | |
13608 | main() | |
13609 | { | |
13610 | FILE *f=fopen("conftestval", "w"); | |
13611 | if (!f) exit(1); | |
4f14bcd8 | 13612 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
13613 | exit(0); |
13614 | } | |
13615 | EOF | |
a72a4bfa | 13616 | if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13617 | then |
4f14bcd8 | 13618 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 13619 | else |
698dcdb6 VZ |
13620 | echo "configure: failed program was:" >&5 |
13621 | cat conftest.$ac_ext >&5 | |
13622 | rm -fr conftest* | |
4f14bcd8 | 13623 | ac_cv_sizeof_char=0 |
6232543b | 13624 | fi |
698dcdb6 VZ |
13625 | rm -fr conftest* |
13626 | fi | |
13627 | ||
703e0a69 | 13628 | fi |
4f14bcd8 | 13629 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 13630 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13631 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13632 | EOF |
13633 | ||
1e487827 | 13634 | |
4f14bcd8 | 13635 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
a72a4bfa | 13636 | echo "configure:13637: checking size of short" >&5 |
4f14bcd8 | 13637 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
13638 | echo $ac_n "(cached) $ac_c" 1>&6 |
13639 | else | |
4f14bcd8 GD |
13640 | if test "$cross_compiling" = yes; then |
13641 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13642 | else |
698dcdb6 | 13643 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13644 | #line 13645 "configure" |
b93d0d08 | 13645 | #include "confdefs.h" |
4f14bcd8 GD |
13646 | #include <stdio.h> |
13647 | main() | |
13648 | { | |
13649 | FILE *f=fopen("conftestval", "w"); | |
13650 | if (!f) exit(1); | |
13651 | fprintf(f, "%d\n", sizeof(short)); | |
13652 | exit(0); | |
13653 | } | |
698dcdb6 | 13654 | EOF |
a72a4bfa | 13655 | if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13656 | then |
4f14bcd8 | 13657 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13658 | else |
698dcdb6 VZ |
13659 | echo "configure: failed program was:" >&5 |
13660 | cat conftest.$ac_ext >&5 | |
13661 | rm -fr conftest* | |
4f14bcd8 | 13662 | ac_cv_sizeof_short=0 |
b93d0d08 | 13663 | fi |
698dcdb6 | 13664 | rm -fr conftest* |
b93d0d08 VS |
13665 | fi |
13666 | ||
b93d0d08 | 13667 | fi |
4f14bcd8 | 13668 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13669 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13670 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13671 | EOF |
13672 | ||
698dcdb6 | 13673 | |
4f14bcd8 | 13674 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
a72a4bfa | 13675 | echo "configure:13676: checking size of int *" >&5 |
4f14bcd8 | 13676 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 13677 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13678 | else |
4f14bcd8 GD |
13679 | if test "$cross_compiling" = yes; then |
13680 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13681 | else |
3a922bb4 | 13682 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13683 | #line 13684 "configure" |
3a922bb4 | 13684 | #include "confdefs.h" |
4f14bcd8 GD |
13685 | #include <stdio.h> |
13686 | main() | |
13687 | { | |
13688 | FILE *f=fopen("conftestval", "w"); | |
13689 | if (!f) exit(1); | |
13690 | fprintf(f, "%d\n", sizeof(int *)); | |
13691 | exit(0); | |
13692 | } | |
13693 | EOF | |
a72a4bfa | 13694 | if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13695 | then |
13696 | ac_cv_sizeof_int_p=`cat conftestval` | |
13697 | else | |
13698 | echo "configure: failed program was:" >&5 | |
13699 | cat conftest.$ac_ext >&5 | |
13700 | rm -fr conftest* | |
13701 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13702 | fi |
4f14bcd8 | 13703 | rm -fr conftest* |
3a922bb4 | 13704 | fi |
698dcdb6 | 13705 | |
4f14bcd8 GD |
13706 | fi |
13707 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13708 | cat >> confdefs.h <<EOF | |
13709 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13710 | EOF |
13711 | ||
703e0a69 | 13712 | |
4f14bcd8 | 13713 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
a72a4bfa | 13714 | echo "configure:13715: checking size of int" >&5 |
4f14bcd8 | 13715 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 13716 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13717 | else |
13718 | if test "$cross_compiling" = yes; then | |
13719 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13720 | else |
13721 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13722 | #line 13723 "configure" |
10f2d63a | 13723 | #include "confdefs.h" |
4f14bcd8 GD |
13724 | #include <stdio.h> |
13725 | main() | |
13726 | { | |
13727 | FILE *f=fopen("conftestval", "w"); | |
13728 | if (!f) exit(1); | |
13729 | fprintf(f, "%d\n", sizeof(int)); | |
13730 | exit(0); | |
13731 | } | |
698dcdb6 | 13732 | EOF |
a72a4bfa | 13733 | if { (eval echo configure:13734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13734 | then |
13735 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13736 | else |
698dcdb6 | 13737 | echo "configure: failed program was:" >&5 |
10f2d63a | 13738 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13739 | rm -fr conftest* |
13740 | ac_cv_sizeof_int=0 | |
10f2d63a | 13741 | fi |
4f14bcd8 | 13742 | rm -fr conftest* |
10f2d63a | 13743 | fi |
10f2d63a | 13744 | |
4f14bcd8 GD |
13745 | fi |
13746 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13747 | cat >> confdefs.h <<EOF | |
13748 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13749 | EOF |
13750 | ||
698dcdb6 | 13751 | |
4f14bcd8 | 13752 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
a72a4bfa | 13753 | echo "configure:13754: checking size of long" >&5 |
4f14bcd8 | 13754 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
13755 | echo $ac_n "(cached) $ac_c" 1>&6 |
13756 | else | |
4f14bcd8 GD |
13757 | if test "$cross_compiling" = yes; then |
13758 | ac_cv_sizeof_long=4 | |
13759 | else | |
13760 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13761 | #line 13762 "configure" |
10f2d63a | 13762 | #include "confdefs.h" |
4f14bcd8 GD |
13763 | #include <stdio.h> |
13764 | main() | |
13765 | { | |
13766 | FILE *f=fopen("conftestval", "w"); | |
13767 | if (!f) exit(1); | |
13768 | fprintf(f, "%d\n", sizeof(long)); | |
13769 | exit(0); | |
13770 | } | |
698dcdb6 | 13771 | EOF |
a72a4bfa | 13772 | if { (eval echo configure:13773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13773 | then |
13774 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13775 | else |
698dcdb6 VZ |
13776 | echo "configure: failed program was:" >&5 |
13777 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13778 | rm -fr conftest* |
13779 | ac_cv_sizeof_long=0 | |
10f2d63a | 13780 | fi |
4f14bcd8 | 13781 | rm -fr conftest* |
10f2d63a | 13782 | fi |
698dcdb6 | 13783 | |
4f14bcd8 GD |
13784 | fi |
13785 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13786 | cat >> confdefs.h <<EOF | |
13787 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13788 | EOF |
13789 | ||
698dcdb6 | 13790 | |
4f14bcd8 | 13791 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
a72a4bfa | 13792 | echo "configure:13793: checking size of long long" >&5 |
4f14bcd8 | 13793 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 13794 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13795 | else |
4f14bcd8 GD |
13796 | if test "$cross_compiling" = yes; then |
13797 | ac_cv_sizeof_long_long=0 | |
13798 | else | |
13799 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13800 | #line 13801 "configure" |
10f2d63a | 13801 | #include "confdefs.h" |
4f14bcd8 GD |
13802 | #include <stdio.h> |
13803 | main() | |
13804 | { | |
13805 | FILE *f=fopen("conftestval", "w"); | |
13806 | if (!f) exit(1); | |
13807 | fprintf(f, "%d\n", sizeof(long long)); | |
13808 | exit(0); | |
13809 | } | |
698dcdb6 | 13810 | EOF |
a72a4bfa | 13811 | if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13812 | then |
13813 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13814 | else |
13815 | echo "configure: failed program was:" >&5 | |
13816 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13817 | rm -fr conftest* |
13818 | ac_cv_sizeof_long_long=0 | |
13819 | fi | |
13820 | rm -fr conftest* | |
698dcdb6 | 13821 | fi |
698dcdb6 VZ |
13822 | |
13823 | fi | |
4f14bcd8 GD |
13824 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13825 | cat >> confdefs.h <<EOF | |
13826 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13827 | EOF |
13828 | ||
10f2d63a | 13829 | |
4f14bcd8 GD |
13830 | |
13831 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
a72a4bfa | 13832 | echo "configure:13833: checking size of wchar_t" >&5 |
4f14bcd8 | 13833 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 13834 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13835 | else |
4f14bcd8 GD |
13836 | |
13837 | if test "$cross_compiling" = yes; then | |
13838 | wx_cv_sizeof_wchar_t=4 | |
13839 | ||
13840 | else | |
13841 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13842 | #line 13843 "configure" |
10f2d63a | 13843 | #include "confdefs.h" |
698dcdb6 | 13844 | |
4f14bcd8 | 13845 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
13846 | # ifdef __CYGWIN__ |
13847 | # include <stddef.h> | |
13848 | # endif | |
4f14bcd8 GD |
13849 | # include <wchar.h> |
13850 | #endif | |
13851 | #ifdef HAVE_STDLIB_H | |
13852 | # include <stdlib.h> | |
13853 | #endif | |
13854 | #include <stdio.h> | |
13855 | int main() | |
13856 | { | |
13857 | FILE *f=fopen("conftestval", "w"); | |
13858 | if (!f) exit(1); | |
13859 | fprintf(f, "%i", sizeof(wchar_t)); | |
13860 | exit(0); | |
13861 | } | |
13862 | ||
698dcdb6 | 13863 | EOF |
a72a4bfa | 13864 | if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13865 | then |
13866 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
13867 | else |
13868 | echo "configure: failed program was:" >&5 | |
13869 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13870 | rm -fr conftest* |
13871 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 13872 | fi |
4f14bcd8 GD |
13873 | rm -fr conftest* |
13874 | fi | |
13875 | ||
698dcdb6 VZ |
13876 | |
13877 | fi | |
4f14bcd8 GD |
13878 | |
13879 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13880 | ||
13881 | cat >> confdefs.h <<EOF | |
13882 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
13883 | EOF |
13884 | ||
18dbb1f6 | 13885 | |
4f14bcd8 | 13886 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
a72a4bfa | 13887 | echo "configure:13888: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 13888 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
13889 | echo $ac_n "(cached) $ac_c" 1>&6 |
13890 | else | |
4f14bcd8 GD |
13891 | ac_cv_c_bigendian=unknown |
13892 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 13893 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13894 | #line 13895 "configure" |
18dbb1f6 | 13895 | #include "confdefs.h" |
4f14bcd8 GD |
13896 | #include <sys/types.h> |
13897 | #include <sys/param.h> | |
13898 | int main() { | |
18dbb1f6 | 13899 | |
4f14bcd8 GD |
13900 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
13901 | bogus endian macros | |
13902 | #endif | |
13903 | ; return 0; } | |
13904 | EOF | |
a72a4bfa | 13905 | if { (eval echo configure:13906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13906 | rm -rf conftest* |
13907 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13908 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13909 | #line 13910 "configure" |
4f14bcd8 GD |
13910 | #include "confdefs.h" |
13911 | #include <sys/types.h> | |
13912 | #include <sys/param.h> | |
18dbb1f6 | 13913 | int main() { |
4f14bcd8 GD |
13914 | |
13915 | #if BYTE_ORDER != BIG_ENDIAN | |
13916 | not big endian | |
13917 | #endif | |
18dbb1f6 VZ |
13918 | ; return 0; } |
13919 | EOF | |
a72a4bfa | 13920 | if { (eval echo configure:13921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 13921 | rm -rf conftest* |
4f14bcd8 | 13922 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
13923 | else |
13924 | echo "configure: failed program was:" >&5 | |
13925 | cat conftest.$ac_ext >&5 | |
13926 | rm -rf conftest* | |
4f14bcd8 | 13927 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
13928 | fi |
13929 | rm -f conftest* | |
698dcdb6 | 13930 | else |
4f14bcd8 GD |
13931 | echo "configure: failed program was:" >&5 |
13932 | cat conftest.$ac_ext >&5 | |
1e487827 | 13933 | fi |
4f14bcd8 GD |
13934 | rm -f conftest* |
13935 | if test $ac_cv_c_bigendian = unknown; then | |
13936 | if test "$cross_compiling" = yes; then | |
13937 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
13938 | else |
13939 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 13940 | #line 13941 "configure" |
b3e8d00a | 13941 | #include "confdefs.h" |
4f14bcd8 GD |
13942 | main () { |
13943 | /* Are we little or big endian? From Harbison&Steele. */ | |
13944 | union | |
13945 | { | |
13946 | long l; | |
13947 | char c[sizeof (long)]; | |
13948 | } u; | |
13949 | u.l = 1; | |
13950 | exit (u.c[sizeof (long) - 1] == 1); | |
13951 | } | |
b3e8d00a | 13952 | EOF |
a72a4bfa | 13953 | if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13954 | then |
13955 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
13956 | else |
13957 | echo "configure: failed program was:" >&5 | |
13958 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13959 | rm -fr conftest* |
13960 | ac_cv_c_bigendian=yes | |
b3e8d00a | 13961 | fi |
4f14bcd8 | 13962 | rm -fr conftest* |
b3e8d00a VZ |
13963 | fi |
13964 | ||
4f14bcd8 GD |
13965 | fi |
13966 | fi | |
13967 | ||
13968 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13969 | if test $ac_cv_c_bigendian = unknown; then | |
13970 | 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 | |
13971 | fi | |
13972 | if test $ac_cv_c_bigendian = yes; then | |
13973 | cat >> confdefs.h <<\EOF | |
13974 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 13975 | EOF |
4f14bcd8 | 13976 | |
b3e8d00a | 13977 | fi |
b3e8d00a VZ |
13978 | |
13979 | ||
4f14bcd8 | 13980 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
a72a4bfa | 13981 | echo "configure:13982: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
13982 | if test -z "$CXXCPP"; then |
13983 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
13984 | echo $ac_n "(cached) $ac_c" 1>&6 |
13985 | else | |
4f14bcd8 GD |
13986 | ac_ext=C |
13987 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13988 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13989 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13990 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13991 | cross_compiling=$ac_cv_prog_cxx_cross | |
13992 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 13993 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 13994 | #line 13995 "configure" |
10f2d63a | 13995 | #include "confdefs.h" |
4f14bcd8 | 13996 | #include <stdlib.h> |
698dcdb6 | 13997 | EOF |
4f14bcd8 | 13998 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a72a4bfa | 13999 | { (eval echo configure:14000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14000 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14001 | if test -z "$ac_err"; then | |
14002 | : | |
698dcdb6 | 14003 | else |
4f14bcd8 | 14004 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14005 | echo "configure: failed program was:" >&5 |
14006 | cat conftest.$ac_ext >&5 | |
14007 | rm -rf conftest* | |
4f14bcd8 | 14008 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
14009 | fi |
14010 | rm -f conftest* | |
4f14bcd8 GD |
14011 | ac_cv_prog_CXXCPP="$CXXCPP" |
14012 | ac_ext=C | |
14013 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14014 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14015 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14016 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14017 | cross_compiling=$ac_cv_prog_cxx_cross | |
14018 | fi | |
698dcdb6 | 14019 | fi |
4f14bcd8 GD |
14020 | CXXCPP="$ac_cv_prog_CXXCPP" |
14021 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 14022 | |
4f14bcd8 GD |
14023 | |
14024 | if test "$cross_compiling" = "yes"; then | |
14025 | cat >> confdefs.h <<\EOF | |
14026 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
14027 | EOF |
14028 | ||
4f14bcd8 GD |
14029 | else |
14030 | ||
14031 | ac_ext=C | |
14032 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14033 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14034 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14035 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14036 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 14037 | |
4f14bcd8 GD |
14038 | |
14039 | for ac_hdr in iostream | |
14040 | do | |
14041 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14042 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 14043 | echo "configure:14044: checking for $ac_hdr" >&5 |
4f14bcd8 | 14044 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
14045 | echo $ac_n "(cached) $ac_c" 1>&6 |
14046 | else | |
14047 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14048 | #line 14049 "configure" |
10f2d63a | 14049 | #include "confdefs.h" |
4f14bcd8 | 14050 | #include <$ac_hdr> |
698dcdb6 | 14051 | EOF |
4f14bcd8 | 14052 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a72a4bfa | 14053 | { (eval echo configure:14054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14054 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14055 | if test -z "$ac_err"; then | |
698dcdb6 | 14056 | rm -rf conftest* |
4f14bcd8 | 14057 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14058 | else |
4f14bcd8 | 14059 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14060 | echo "configure: failed program was:" >&5 |
14061 | cat conftest.$ac_ext >&5 | |
14062 | rm -rf conftest* | |
4f14bcd8 | 14063 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
14064 | fi |
14065 | rm -f conftest* | |
14066 | fi | |
4f14bcd8 | 14067 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 14068 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14069 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
14070 | cat >> confdefs.h <<EOF | |
14071 | #define $ac_tr_hdr 1 | |
10f2d63a | 14072 | EOF |
4f14bcd8 | 14073 | |
698dcdb6 VZ |
14074 | else |
14075 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 14076 | fi |
4f14bcd8 | 14077 | done |
10f2d63a | 14078 | |
10f2d63a | 14079 | |
4f14bcd8 GD |
14080 | if test "$ac_cv_header_iostream" = "yes" ; then |
14081 | : | |
14082 | else | |
14083 | cat >> confdefs.h <<\EOF | |
14084 | #define wxUSE_IOSTREAMH 1 | |
14085 | EOF | |
14086 | ||
14087 | fi | |
1e487827 | 14088 | |
4f14bcd8 GD |
14089 | ac_ext=c |
14090 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14091 | ac_cpp='$CPP $CPPFLAGS' | |
14092 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14093 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14094 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 14095 | |
4f14bcd8 | 14096 | fi |
698dcdb6 VZ |
14097 | |
14098 | ||
14099 | ||
4f14bcd8 | 14100 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
a72a4bfa | 14101 | echo "configure:14102: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 14102 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
14103 | echo $ac_n "(cached) $ac_c" 1>&6 |
14104 | else | |
14105 | ||
4f14bcd8 GD |
14106 | |
14107 | ac_ext=C | |
14108 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14110 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14111 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14112 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 14113 | |
10f2d63a | 14114 | |
4f14bcd8 | 14115 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 14116 | #line 14117 "configure" |
4f14bcd8 | 14117 | #include "confdefs.h" |
10f2d63a | 14118 | |
4f14bcd8 GD |
14119 | |
14120 | int main() { | |
f6bcfd97 | 14121 | |
4f14bcd8 | 14122 | bool b = true; |
f6bcfd97 | 14123 | |
4f14bcd8 GD |
14124 | return 0; |
14125 | ||
698dcdb6 VZ |
14126 | ; return 0; } |
14127 | EOF | |
a72a4bfa | 14128 | if { (eval echo configure:14129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14129 | rm -rf conftest* |
14130 | ||
4f14bcd8 GD |
14131 | wx_cv_cpp_bool=yes |
14132 | ||
10f2d63a | 14133 | else |
698dcdb6 VZ |
14134 | echo "configure: failed program was:" >&5 |
14135 | cat conftest.$ac_ext >&5 | |
14136 | rm -rf conftest* | |
14137 | ||
4f14bcd8 GD |
14138 | wx_cv_cpp_bool=no |
14139 | ||
14140 | ||
14141 | fi | |
14142 | rm -f conftest* | |
c521c494 | 14143 | |
4f14bcd8 GD |
14144 | ac_ext=c |
14145 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14146 | ac_cpp='$CPP $CPPFLAGS' | |
14147 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14148 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14149 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 14150 | |
4f14bcd8 GD |
14151 | |
14152 | fi | |
c521c494 | 14153 | |
4f14bcd8 | 14154 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 14155 | |
4f14bcd8 GD |
14156 | if test "$wx_cv_cpp_bool" = "yes"; then |
14157 | cat >> confdefs.h <<\EOF | |
14158 | #define HAVE_BOOL 1 | |
14159 | EOF | |
c521c494 | 14160 | |
4f14bcd8 GD |
14161 | fi |
14162 | ||
14163 | ||
14164 | ||
14165 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
a72a4bfa | 14166 | echo "configure:14167: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
14167 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
14168 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14170 | else | |
14171 | ac_save_LIBS="$LIBS" | |
14172 | LIBS="-lc $LIBS" | |
14173 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14174 | #line 14175 "configure" |
4f14bcd8 GD |
14175 | #include "confdefs.h" |
14176 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14177 | /* We use char because int might match the return type of a gcc2 | |
14178 | builtin and then its argument prototype would still apply. */ | |
14179 | char wcslen(); | |
14180 | ||
14181 | int main() { | |
14182 | wcslen() | |
698dcdb6 VZ |
14183 | ; return 0; } |
14184 | EOF | |
a72a4bfa | 14185 | if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14186 | rm -rf conftest* |
4f14bcd8 | 14187 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 14188 | else |
698dcdb6 VZ |
14189 | echo "configure: failed program was:" >&5 |
14190 | cat conftest.$ac_ext >&5 | |
14191 | rm -rf conftest* | |
4f14bcd8 | 14192 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14193 | fi |
698dcdb6 | 14194 | rm -f conftest* |
4f14bcd8 | 14195 | LIBS="$ac_save_LIBS" |
703e0a69 | 14196 | |
1e487827 | 14197 | fi |
4f14bcd8 GD |
14198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14199 | echo "$ac_t""yes" 1>&6 | |
14200 | ||
14201 | cat >> confdefs.h <<\EOF | |
14202 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14203 | EOF |
14204 | ||
3d63bc3a | 14205 | WCHAR_LINK= |
4f14bcd8 | 14206 | |
9d8deca0 | 14207 | else |
4f14bcd8 | 14208 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 14209 | |
4f14bcd8 | 14210 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
a72a4bfa | 14211 | echo "configure:14212: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
14212 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
14213 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 14214 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14215 | else |
4f14bcd8 GD |
14216 | ac_save_LIBS="$LIBS" |
14217 | LIBS="-lw $LIBS" | |
14218 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14219 | #line 14220 "configure" |
10f2d63a | 14220 | #include "confdefs.h" |
4f14bcd8 GD |
14221 | /* Override any gcc2 internal prototype to avoid an error. */ |
14222 | /* We use char because int might match the return type of a gcc2 | |
14223 | builtin and then its argument prototype would still apply. */ | |
14224 | char wcslen(); | |
10f2d63a | 14225 | |
698dcdb6 | 14226 | int main() { |
4f14bcd8 | 14227 | wcslen() |
698dcdb6 VZ |
14228 | ; return 0; } |
14229 | EOF | |
a72a4bfa | 14230 | if { (eval echo configure:14231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14231 | rm -rf conftest* |
4f14bcd8 | 14232 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 14233 | else |
698dcdb6 VZ |
14234 | echo "configure: failed program was:" >&5 |
14235 | cat conftest.$ac_ext >&5 | |
14236 | rm -rf conftest* | |
4f14bcd8 | 14237 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14238 | fi |
698dcdb6 | 14239 | rm -f conftest* |
4f14bcd8 | 14240 | LIBS="$ac_save_LIBS" |
703e0a69 | 14241 | |
1e487827 | 14242 | fi |
4f14bcd8 GD |
14243 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14244 | echo "$ac_t""yes" 1>&6 | |
14245 | ||
14246 | cat >> confdefs.h <<\EOF | |
14247 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14248 | EOF |
14249 | ||
3d63bc3a | 14250 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
14251 | |
14252 | else | |
14253 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 14254 | |
4f14bcd8 | 14255 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
a72a4bfa | 14256 | echo "configure:14257: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
14257 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
14258 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
14259 | echo $ac_n "(cached) $ac_c" 1>&6 |
14260 | else | |
4f14bcd8 GD |
14261 | ac_save_LIBS="$LIBS" |
14262 | LIBS="-lmsvcrt $LIBS" | |
14263 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14264 | #line 14265 "configure" |
95c8801c | 14265 | #include "confdefs.h" |
4f14bcd8 GD |
14266 | /* Override any gcc2 internal prototype to avoid an error. */ |
14267 | /* We use char because int might match the return type of a gcc2 | |
14268 | builtin and then its argument prototype would still apply. */ | |
14269 | char wcslen(); | |
95c8801c | 14270 | |
4f14bcd8 GD |
14271 | int main() { |
14272 | wcslen() | |
698dcdb6 VZ |
14273 | ; return 0; } |
14274 | EOF | |
a72a4bfa | 14275 | if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14276 | rm -rf conftest* |
4f14bcd8 | 14277 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 14278 | else |
698dcdb6 VZ |
14279 | echo "configure: failed program was:" >&5 |
14280 | cat conftest.$ac_ext >&5 | |
14281 | rm -rf conftest* | |
4f14bcd8 | 14282 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 14283 | fi |
698dcdb6 | 14284 | rm -f conftest* |
4f14bcd8 | 14285 | LIBS="$ac_save_LIBS" |
95c8801c VS |
14286 | |
14287 | fi | |
4f14bcd8 GD |
14288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14289 | echo "$ac_t""yes" 1>&6 | |
14290 | ||
14291 | cat >> confdefs.h <<\EOF | |
14292 | #define HAVE_WCSLEN 1 | |
14293 | EOF | |
698dcdb6 | 14294 | |
3d63bc3a | 14295 | WCHAR_LINK= |
4f14bcd8 GD |
14296 | |
14297 | else | |
14298 | echo "$ac_t""no" 1>&6 | |
14299 | fi | |
10f2d63a | 14300 | |
4f14bcd8 GD |
14301 | |
14302 | fi | |
95c8801c | 14303 | |
4f14bcd8 | 14304 | |
95c8801c | 14305 | fi |
10f2d63a | 14306 | |
1e487827 | 14307 | |
4f14bcd8 | 14308 | for ac_func in wcsrtombs |
eb4efbdc | 14309 | do |
698dcdb6 | 14310 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 14311 | echo "configure:14312: checking for $ac_func" >&5 |
698dcdb6 VZ |
14312 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14314 | else | |
14315 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14316 | #line 14317 "configure" |
eb4efbdc VZ |
14317 | #include "confdefs.h" |
14318 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14319 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
14320 | #include <assert.h> |
14321 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14322 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14323 | builtin and then its argument prototype would still apply. */ |
14324 | char $ac_func(); | |
14325 | ||
14326 | int main() { | |
eb4efbdc VZ |
14327 | |
14328 | /* The GNU C library defines this for functions which it implements | |
14329 | to always fail with ENOSYS. Some functions are actually named | |
14330 | something starting with __ and the normal name is an alias. */ | |
14331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14332 | choke me | |
14333 | #else | |
698dcdb6 | 14334 | $ac_func(); |
eb4efbdc VZ |
14335 | #endif |
14336 | ||
698dcdb6 | 14337 | ; return 0; } |
eb4efbdc | 14338 | EOF |
a72a4bfa | 14339 | if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14340 | rm -rf conftest* |
14341 | eval "ac_cv_func_$ac_func=yes" | |
14342 | else | |
14343 | echo "configure: failed program was:" >&5 | |
14344 | cat conftest.$ac_ext >&5 | |
14345 | rm -rf conftest* | |
14346 | eval "ac_cv_func_$ac_func=no" | |
14347 | fi | |
14348 | rm -f conftest* | |
14349 | fi | |
eb4efbdc | 14350 | |
698dcdb6 VZ |
14351 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14352 | echo "$ac_t""yes" 1>&6 | |
14353 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14354 | cat >> confdefs.h <<EOF | |
14355 | #define $ac_tr_func 1 | |
14356 | EOF | |
14357 | ||
14358 | else | |
14359 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14360 | fi |
14361 | done | |
14362 | ||
698dcdb6 | 14363 | |
4f14bcd8 | 14364 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
a72a4bfa | 14365 | echo "configure:14366: checking for vprintf" >&5 |
4f14bcd8 | 14366 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
14367 | echo $ac_n "(cached) $ac_c" 1>&6 |
14368 | else | |
4f14bcd8 | 14369 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 14370 | #line 14371 "configure" |
f6bcfd97 | 14371 | #include "confdefs.h" |
4f14bcd8 GD |
14372 | /* System header to define __stub macros and hopefully few prototypes, |
14373 | which can conflict with char vprintf(); below. */ | |
14374 | #include <assert.h> | |
14375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14376 | /* We use char because int might match the return type of a gcc2 | |
14377 | builtin and then its argument prototype would still apply. */ | |
14378 | char vprintf(); | |
14379 | ||
698dcdb6 | 14380 | int main() { |
f6bcfd97 | 14381 | |
4f14bcd8 GD |
14382 | /* The GNU C library defines this for functions which it implements |
14383 | to always fail with ENOSYS. Some functions are actually named | |
14384 | something starting with __ and the normal name is an alias. */ | |
14385 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
14386 | choke me | |
14387 | #else | |
14388 | vprintf(); | |
14389 | #endif | |
f6bcfd97 | 14390 | |
698dcdb6 VZ |
14391 | ; return 0; } |
14392 | EOF | |
a72a4bfa | 14393 | if { (eval echo configure:14394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14394 | rm -rf conftest* |
4f14bcd8 | 14395 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 14396 | else |
698dcdb6 VZ |
14397 | echo "configure: failed program was:" >&5 |
14398 | cat conftest.$ac_ext >&5 | |
14399 | rm -rf conftest* | |
4f14bcd8 | 14400 | eval "ac_cv_func_vprintf=no" |
6232543b | 14401 | fi |
698dcdb6 | 14402 | rm -f conftest* |
1e487827 | 14403 | fi |
698dcdb6 | 14404 | |
4f14bcd8 GD |
14405 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
14406 | echo "$ac_t""yes" 1>&6 | |
14407 | cat >> confdefs.h <<\EOF | |
14408 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
14409 | EOF |
14410 | ||
4f14bcd8 GD |
14411 | else |
14412 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14413 | fi |
14414 | ||
4f14bcd8 GD |
14415 | if test "$ac_cv_func_vprintf" != yes; then |
14416 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
a72a4bfa | 14417 | echo "configure:14418: checking for _doprnt" >&5 |
4f14bcd8 | 14418 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
14419 | echo $ac_n "(cached) $ac_c" 1>&6 |
14420 | else | |
14421 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14422 | #line 14423 "configure" |
10f2d63a VZ |
14423 | #include "confdefs.h" |
14424 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 14425 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
14426 | #include <assert.h> |
14427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14428 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14429 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14430 | char _doprnt(); |
698dcdb6 VZ |
14431 | |
14432 | int main() { | |
10f2d63a VZ |
14433 | |
14434 | /* The GNU C library defines this for functions which it implements | |
14435 | to always fail with ENOSYS. Some functions are actually named | |
14436 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 14437 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
14438 | choke me |
14439 | #else | |
4f14bcd8 | 14440 | _doprnt(); |
10f2d63a VZ |
14441 | #endif |
14442 | ||
698dcdb6 | 14443 | ; return 0; } |
10f2d63a | 14444 | EOF |
a72a4bfa | 14445 | if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14446 | rm -rf conftest* |
4f14bcd8 | 14447 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
14448 | else |
14449 | echo "configure: failed program was:" >&5 | |
14450 | cat conftest.$ac_ext >&5 | |
14451 | rm -rf conftest* | |
4f14bcd8 | 14452 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
14453 | fi |
14454 | rm -f conftest* | |
14455 | fi | |
270a909e | 14456 | |
4f14bcd8 | 14457 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 14458 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14459 | cat >> confdefs.h <<\EOF |
14460 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 14461 | EOF |
4f14bcd8 | 14462 | |
698dcdb6 VZ |
14463 | else |
14464 | echo "$ac_t""no" 1>&6 | |
270a909e | 14465 | fi |
270a909e | 14466 | |
4f14bcd8 | 14467 | fi |
1e487827 | 14468 | |
52e8b690 | 14469 | |
52e8b690 | 14470 | |
52e8b690 | 14471 | |
52e8b690 | 14472 | |
52e8b690 | 14473 | |
4f14bcd8 | 14474 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
a72a4bfa | 14475 | echo "configure:14476: checking for vsnprintf" >&5 |
4f14bcd8 | 14476 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 14477 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 14478 | else |
4f14bcd8 | 14479 | |
af15babd | 14480 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 14481 | #line 14482 "configure" |
c63c7106 | 14482 | #include "confdefs.h" |
698dcdb6 | 14483 | |
4f14bcd8 GD |
14484 | #include <stdio.h> |
14485 | #include <stdarg.h> | |
14486 | ||
af15babd VZ |
14487 | int main() { |
14488 | ||
4f14bcd8 GD |
14489 | int wx_test_vsnprintf(const char *, ...); |
14490 | ||
14491 | wx_test_vsnprintf("%s"); | |
14492 | return 0; | |
14493 | } | |
14494 | ||
14495 | int wx_test_vsnprintf(const char *fmt, ...) | |
14496 | { | |
14497 | char *s; | |
14498 | ||
14499 | va_list argp; | |
14500 | va_start(argp, fmt); | |
14501 | vsnprintf(s, 42, fmt, argp); | |
14502 | va_end(argp); | |
14503 | ||
af15babd VZ |
14504 | ; return 0; } |
14505 | EOF | |
a72a4bfa | 14506 | if { (eval echo configure:14507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14507 | rm -rf conftest* |
14508 | ||
4f14bcd8 GD |
14509 | wx_cv_func_vsnprintf=yes |
14510 | ||
af15babd VZ |
14511 | else |
14512 | echo "configure: failed program was:" >&5 | |
14513 | cat conftest.$ac_ext >&5 | |
14514 | rm -rf conftest* | |
14515 | ||
4f14bcd8 | 14516 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 14517 | #line 14518 "configure" |
af15babd | 14518 | #include "confdefs.h" |
af15babd | 14519 | |
4f14bcd8 GD |
14520 | #include <stdio.h> |
14521 | #include <stdarg.h> | |
14522 | ||
af15babd VZ |
14523 | int main() { |
14524 | ||
4f14bcd8 GD |
14525 | int wx_test_vsnprintf(const char *, ...); |
14526 | ||
14527 | wx_test_vsnprintf("%s"); | |
14528 | return 0; | |
14529 | } | |
14530 | ||
14531 | int wx_test_vsnprintf(const char *fmt, ...) | |
14532 | { | |
14533 | char *s; | |
af15babd | 14534 | |
4f14bcd8 GD |
14535 | va_list argp; |
14536 | va_start(argp, fmt); | |
14537 | _vsnprintf(s, 42, fmt, argp); | |
14538 | va_end(argp); | |
14539 | ||
af15babd VZ |
14540 | ; return 0; } |
14541 | EOF | |
a72a4bfa | 14542 | if { (eval echo configure:14543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 14543 | rm -rf conftest* |
4f14bcd8 GD |
14544 | |
14545 | wx_cv_func_vsnprintf=yes | |
14546 | ||
af15babd VZ |
14547 | else |
14548 | echo "configure: failed program was:" >&5 | |
14549 | cat conftest.$ac_ext >&5 | |
14550 | rm -rf conftest* | |
4f14bcd8 GD |
14551 | |
14552 | wx_cv_func_vsnprintf=no | |
14553 | ||
af15babd VZ |
14554 | fi |
14555 | rm -f conftest* | |
4f14bcd8 | 14556 | |
af15babd | 14557 | fi |
4f14bcd8 | 14558 | rm -f conftest* |
af15babd | 14559 | |
af15babd | 14560 | fi |
af15babd | 14561 | |
4f14bcd8 | 14562 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 14563 | |
4f14bcd8 GD |
14564 | if test "$wx_cv_func_vsnprintf" = yes; then |
14565 | cat >> confdefs.h <<\EOF | |
14566 | #define HAVE_VSNPRINTF 1 | |
14567 | EOF | |
14568 | ||
14569 | else | |
f9bc1684 | 14570 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
14571 | fi |
14572 | ||
4f14bcd8 | 14573 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
a72a4bfa | 14574 | echo "configure:14575: checking for vsscanf" >&5 |
4f14bcd8 | 14575 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
14576 | echo $ac_n "(cached) $ac_c" 1>&6 |
14577 | else | |
4f14bcd8 | 14578 | |
af15babd | 14579 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 14580 | #line 14581 "configure" |
af15babd | 14581 | #include "confdefs.h" |
af15babd | 14582 | |
4f14bcd8 GD |
14583 | #include <stdio.h> |
14584 | #include <stdarg.h> | |
14585 | ||
af15babd VZ |
14586 | int main() { |
14587 | ||
4f14bcd8 GD |
14588 | int wx_test_vsscanf(const char *, ...); |
14589 | ||
14590 | wx_test_vsscanf("%d"); | |
14591 | return 0; | |
14592 | } | |
af15babd | 14593 | |
4f14bcd8 GD |
14594 | int wx_test_vsscanf(const char *fmt, ...) |
14595 | { | |
14596 | va_list argp; | |
14597 | va_start(argp, fmt); | |
14598 | vsscanf("42", fmt, argp); | |
14599 | va_end(argp); | |
14600 | ||
af15babd VZ |
14601 | ; return 0; } |
14602 | EOF | |
a72a4bfa | 14603 | if { (eval echo configure:14604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14604 | rm -rf conftest* |
4f14bcd8 GD |
14605 | |
14606 | wx_cv_func_vsscanf=yes | |
14607 | ||
af15babd VZ |
14608 | else |
14609 | echo "configure: failed program was:" >&5 | |
14610 | cat conftest.$ac_ext >&5 | |
14611 | rm -rf conftest* | |
4f14bcd8 GD |
14612 | |
14613 | wx_cv_func_vsscanf=no | |
14614 | ||
af15babd VZ |
14615 | fi |
14616 | rm -f conftest* | |
4f14bcd8 | 14617 | |
af15babd VZ |
14618 | fi |
14619 | ||
4f14bcd8 GD |
14620 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
14621 | ||
14622 | if test "$wx_cv_func_vsscanf" = yes; then | |
14623 | cat >> confdefs.h <<\EOF | |
14624 | #define HAVE_VSSCANF 1 | |
af15babd | 14625 | EOF |
4f14bcd8 | 14626 | |
af15babd | 14627 | fi |
af15babd | 14628 | |
4f14bcd8 | 14629 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 14630 | |
4f14bcd8 GD |
14631 | |
14632 | ||
14633 | ac_ext=C | |
14634 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14636 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14637 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14638 | cross_compiling=$ac_cv_prog_cxx_cross | |
14639 | ||
14640 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
a72a4bfa | 14641 | echo "configure:14642: checking if iconv() takes char**" >&5 |
4f14bcd8 | 14642 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
af15babd VZ |
14643 | echo $ac_n "(cached) $ac_c" 1>&6 |
14644 | else | |
4f14bcd8 GD |
14645 | |
14646 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14647 | #line 14648 "configure" |
af15babd | 14648 | #include "confdefs.h" |
4f14bcd8 | 14649 | #include <iconv.h> |
af15babd VZ |
14650 | int main() { |
14651 | ||
4f14bcd8 GD |
14652 | char **inbuf, **outbuf; |
14653 | iconv_t cd; | |
14654 | size_t insz, outsz; | |
14655 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14656 | ||
af15babd VZ |
14657 | ; return 0; } |
14658 | EOF | |
a72a4bfa | 14659 | if { (eval echo configure:14660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14660 | rm -rf conftest* |
4f14bcd8 | 14661 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14662 | else |
14663 | echo "configure: failed program was:" >&5 | |
14664 | cat conftest.$ac_ext >&5 | |
14665 | rm -rf conftest* | |
4f14bcd8 | 14666 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14667 | fi |
14668 | rm -f conftest* | |
af15babd | 14669 | |
af15babd | 14670 | fi |
af15babd | 14671 | |
4f14bcd8 GD |
14672 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14673 | ac_ext=c | |
14674 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14675 | ac_cpp='$CPP $CPPFLAGS' | |
14676 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14677 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14678 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14679 | |
4f14bcd8 GD |
14680 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14681 | cat >> confdefs.h <<\EOF | |
14682 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14683 | EOF |
14684 | ||
af15babd VZ |
14685 | fi |
14686 | ||
af15babd | 14687 | |
4f14bcd8 GD |
14688 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14689 | for ac_func in sigaction | |
af15babd VZ |
14690 | do |
14691 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 14692 | echo "configure:14693: checking for $ac_func" >&5 |
af15babd VZ |
14693 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14695 | else | |
14696 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14697 | #line 14698 "configure" |
af15babd VZ |
14698 | #include "confdefs.h" |
14699 | /* System header to define __stub macros and hopefully few prototypes, | |
14700 | which can conflict with char $ac_func(); below. */ | |
14701 | #include <assert.h> | |
14702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14703 | /* We use char because int might match the return type of a gcc2 | |
14704 | builtin and then its argument prototype would still apply. */ | |
14705 | char $ac_func(); | |
14706 | ||
14707 | int main() { | |
14708 | ||
14709 | /* The GNU C library defines this for functions which it implements | |
14710 | to always fail with ENOSYS. Some functions are actually named | |
14711 | something starting with __ and the normal name is an alias. */ | |
14712 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14713 | choke me | |
14714 | #else | |
14715 | $ac_func(); | |
14716 | #endif | |
14717 | ||
14718 | ; return 0; } | |
14719 | EOF | |
a72a4bfa | 14720 | if { (eval echo configure:14721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14721 | rm -rf conftest* |
14722 | eval "ac_cv_func_$ac_func=yes" | |
14723 | else | |
14724 | echo "configure: failed program was:" >&5 | |
14725 | cat conftest.$ac_ext >&5 | |
14726 | rm -rf conftest* | |
14727 | eval "ac_cv_func_$ac_func=no" | |
14728 | fi | |
14729 | rm -f conftest* | |
14730 | fi | |
14731 | ||
14732 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14733 | echo "$ac_t""yes" 1>&6 | |
14734 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14735 | cat >> confdefs.h <<EOF | |
14736 | #define $ac_tr_func 1 | |
14737 | EOF | |
4f14bcd8 | 14738 | |
af15babd VZ |
14739 | else |
14740 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14741 | fi |
14742 | done | |
14743 | ||
14744 | ||
14745 | if test "$ac_cv_func_sigaction" = "no"; then | |
14746 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14747 | wxUSE_ON_FATAL_EXCEPTION=no | |
14748 | fi | |
14749 | ||
14750 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14751 | ||
14752 | ac_ext=C | |
14753 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14754 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14755 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14756 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14757 | cross_compiling=$ac_cv_prog_cxx_cross | |
14758 | ||
14759 | ||
14760 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
a72a4bfa | 14761 | echo "configure:14762: checking for sa_handler type" >&5 |
4f14bcd8 | 14762 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
14763 | echo $ac_n "(cached) $ac_c" 1>&6 |
14764 | else | |
4f14bcd8 GD |
14765 | |
14766 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14767 | #line 14768 "configure" |
af15babd | 14768 | #include "confdefs.h" |
4f14bcd8 | 14769 | #include <signal.h> |
af15babd | 14770 | int main() { |
4f14bcd8 GD |
14771 | |
14772 | extern void testSigHandler(int); | |
14773 | ||
14774 | struct sigaction sa; | |
14775 | sa.sa_handler = testSigHandler; | |
14776 | ||
af15babd VZ |
14777 | ; return 0; } |
14778 | EOF | |
a72a4bfa | 14779 | if { (eval echo configure:14780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14780 | rm -rf conftest* |
4f14bcd8 GD |
14781 | |
14782 | wx_cv_type_sa_handler=int | |
14783 | ||
af15babd VZ |
14784 | else |
14785 | echo "configure: failed program was:" >&5 | |
14786 | cat conftest.$ac_ext >&5 | |
14787 | rm -rf conftest* | |
4f14bcd8 GD |
14788 | |
14789 | wx_cv_type_sa_handler=void | |
14790 | ||
af15babd VZ |
14791 | fi |
14792 | rm -f conftest* | |
4f14bcd8 GD |
14793 | |
14794 | fi | |
14795 | ||
14796 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14797 | ||
14798 | ac_ext=c | |
14799 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14800 | ac_cpp='$CPP $CPPFLAGS' | |
14801 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14802 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14803 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14804 | |
4f14bcd8 GD |
14805 | |
14806 | cat >> confdefs.h <<EOF | |
14807 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14808 | EOF |
14809 | ||
4f14bcd8 GD |
14810 | fi |
14811 | fi | |
af15babd | 14812 | |
4f14bcd8 | 14813 | for ac_func in vfork |
af15babd VZ |
14814 | do |
14815 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 14816 | echo "configure:14817: checking for $ac_func" >&5 |
af15babd VZ |
14817 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14819 | else | |
14820 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14821 | #line 14822 "configure" |
af15babd VZ |
14822 | #include "confdefs.h" |
14823 | /* System header to define __stub macros and hopefully few prototypes, | |
14824 | which can conflict with char $ac_func(); below. */ | |
14825 | #include <assert.h> | |
14826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14827 | /* We use char because int might match the return type of a gcc2 | |
14828 | builtin and then its argument prototype would still apply. */ | |
14829 | char $ac_func(); | |
14830 | ||
14831 | int main() { | |
14832 | ||
14833 | /* The GNU C library defines this for functions which it implements | |
14834 | to always fail with ENOSYS. Some functions are actually named | |
14835 | something starting with __ and the normal name is an alias. */ | |
14836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14837 | choke me | |
14838 | #else | |
14839 | $ac_func(); | |
14840 | #endif | |
14841 | ||
14842 | ; return 0; } | |
14843 | EOF | |
a72a4bfa | 14844 | if { (eval echo configure:14845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14845 | rm -rf conftest* |
14846 | eval "ac_cv_func_$ac_func=yes" | |
14847 | else | |
14848 | echo "configure: failed program was:" >&5 | |
14849 | cat conftest.$ac_ext >&5 | |
14850 | rm -rf conftest* | |
14851 | eval "ac_cv_func_$ac_func=no" | |
14852 | fi | |
14853 | rm -f conftest* | |
14854 | fi | |
14855 | ||
14856 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14857 | echo "$ac_t""yes" 1>&6 | |
14858 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14859 | cat >> confdefs.h <<EOF | |
14860 | #define $ac_tr_func 1 | |
14861 | EOF | |
4f14bcd8 | 14862 | |
af15babd VZ |
14863 | else |
14864 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14865 | fi |
14866 | done | |
14867 | ||
af15babd | 14868 | |
ade35f11 VZ |
14869 | for ac_func in mkstemp mktemp |
14870 | do | |
14871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 14872 | echo "configure:14873: checking for $ac_func" >&5 |
ade35f11 VZ |
14873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14875 | else | |
14876 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14877 | #line 14878 "configure" |
ade35f11 VZ |
14878 | #include "confdefs.h" |
14879 | /* System header to define __stub macros and hopefully few prototypes, | |
14880 | which can conflict with char $ac_func(); below. */ | |
14881 | #include <assert.h> | |
14882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14883 | /* We use char because int might match the return type of a gcc2 | |
14884 | builtin and then its argument prototype would still apply. */ | |
14885 | char $ac_func(); | |
14886 | ||
14887 | int main() { | |
14888 | ||
14889 | /* The GNU C library defines this for functions which it implements | |
14890 | to always fail with ENOSYS. Some functions are actually named | |
14891 | something starting with __ and the normal name is an alias. */ | |
14892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14893 | choke me | |
14894 | #else | |
14895 | $ac_func(); | |
14896 | #endif | |
14897 | ||
14898 | ; return 0; } | |
14899 | EOF | |
a72a4bfa | 14900 | if { (eval echo configure:14901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
14901 | rm -rf conftest* |
14902 | eval "ac_cv_func_$ac_func=yes" | |
14903 | else | |
14904 | echo "configure: failed program was:" >&5 | |
14905 | cat conftest.$ac_ext >&5 | |
14906 | rm -rf conftest* | |
14907 | eval "ac_cv_func_$ac_func=no" | |
14908 | fi | |
14909 | rm -f conftest* | |
14910 | fi | |
14911 | ||
14912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14913 | echo "$ac_t""yes" 1>&6 | |
14914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14915 | cat >> confdefs.h <<EOF | |
14916 | #define $ac_tr_func 1 | |
14917 | EOF | |
14918 | break | |
14919 | else | |
14920 | echo "$ac_t""no" 1>&6 | |
14921 | fi | |
14922 | done | |
14923 | ||
14924 | ||
4f14bcd8 | 14925 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
a72a4bfa | 14926 | echo "configure:14927: checking for statfs" >&5 |
4f14bcd8 GD |
14927 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
14928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14929 | else | |
14930 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14931 | #line 14932 "configure" |
4f14bcd8 GD |
14932 | #include "confdefs.h" |
14933 | ||
14934 | #if defined(__BSD__) | |
14935 | #include <sys/param.h> | |
14936 | #include <sys/mount.h> | |
14937 | #else | |
14938 | #include <sys/vfs.h> | |
14939 | #endif | |
14940 | ||
14941 | int main() { | |
14942 | ||
14943 | long l; | |
14944 | struct statfs fs; | |
14945 | statfs("/", &fs); | |
14946 | l = fs.f_bsize; | |
14947 | l += fs.f_blocks; | |
14948 | l += fs.f_bavail; | |
14949 | ||
14950 | ; return 0; } | |
14951 | EOF | |
a72a4bfa | 14952 | if { (eval echo configure:14953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14953 | rm -rf conftest* |
14954 | ||
14955 | wx_cv_func_statfs=yes | |
14956 | ||
14957 | else | |
14958 | echo "configure: failed program was:" >&5 | |
14959 | cat conftest.$ac_ext >&5 | |
14960 | rm -rf conftest* | |
14961 | ||
14962 | wx_cv_func_statfs=no | |
af15babd VZ |
14963 | |
14964 | ||
14965 | fi | |
4f14bcd8 | 14966 | rm -f conftest* |
af15babd VZ |
14967 | |
14968 | fi | |
14969 | ||
4f14bcd8 GD |
14970 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
14971 | ||
14972 | if test "$wx_cv_func_statfs" = "yes"; then | |
14973 | cat >> confdefs.h <<\EOF | |
14974 | #define HAVE_STATFS 1 | |
14975 | EOF | |
14976 | ||
14977 | else | |
14978 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
a72a4bfa | 14979 | echo "configure:14980: checking for statvfs" >&5 |
4f14bcd8 | 14980 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
14981 | echo $ac_n "(cached) $ac_c" 1>&6 |
14982 | else | |
14983 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 14984 | #line 14985 "configure" |
af15babd | 14985 | #include "confdefs.h" |
af15babd | 14986 | |
4f14bcd8 GD |
14987 | #include <sys/statvfs.h> |
14988 | ||
af15babd VZ |
14989 | int main() { |
14990 | ||
4f14bcd8 GD |
14991 | long l; |
14992 | struct statvfs fs; | |
14993 | statvfs("/", &fs); | |
14994 | l = fs.f_bsize; | |
14995 | l += fs.f_blocks; | |
14996 | l += fs.f_bavail; | |
14997 | ||
af15babd VZ |
14998 | ; return 0; } |
14999 | EOF | |
a72a4bfa | 15000 | if { (eval echo configure:15001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15001 | rm -rf conftest* |
4f14bcd8 GD |
15002 | |
15003 | wx_cv_func_statvfs=yes | |
15004 | ||
af15babd VZ |
15005 | else |
15006 | echo "configure: failed program was:" >&5 | |
15007 | cat conftest.$ac_ext >&5 | |
15008 | rm -rf conftest* | |
4f14bcd8 GD |
15009 | |
15010 | wx_cv_func_statvfs=no | |
15011 | ||
15012 | ||
af15babd VZ |
15013 | fi |
15014 | rm -f conftest* | |
4f14bcd8 | 15015 | |
af15babd VZ |
15016 | fi |
15017 | ||
4f14bcd8 | 15018 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 15019 | |
4f14bcd8 GD |
15020 | if test "$wx_cv_func_statvfs" = "yes"; then |
15021 | cat >> confdefs.h <<\EOF | |
15022 | #define HAVE_STATVFS 1 | |
15023 | EOF | |
af15babd | 15024 | |
4f14bcd8 GD |
15025 | else |
15026 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
15027 | fi | |
15028 | fi | |
af15babd | 15029 | |
4f14bcd8 GD |
15030 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
15031 | for ac_func in fcntl flock | |
af15babd VZ |
15032 | do |
15033 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15034 | echo "configure:15035: checking for $ac_func" >&5 |
af15babd VZ |
15035 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15037 | else | |
15038 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 15039 | #line 15040 "configure" |
af15babd VZ |
15040 | #include "confdefs.h" |
15041 | /* System header to define __stub macros and hopefully few prototypes, | |
15042 | which can conflict with char $ac_func(); below. */ | |
15043 | #include <assert.h> | |
15044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
15045 | /* We use char because int might match the return type of a gcc2 |
15046 | builtin and then its argument prototype would still apply. */ | |
15047 | char $ac_func(); | |
15048 | ||
15049 | int main() { | |
15050 | ||
15051 | /* The GNU C library defines this for functions which it implements | |
15052 | to always fail with ENOSYS. Some functions are actually named | |
15053 | something starting with __ and the normal name is an alias. */ | |
15054 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15055 | choke me | |
15056 | #else | |
15057 | $ac_func(); | |
15058 | #endif | |
15059 | ||
15060 | ; return 0; } | |
15061 | EOF | |
a72a4bfa | 15062 | if { (eval echo configure:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15063 | rm -rf conftest* |
15064 | eval "ac_cv_func_$ac_func=yes" | |
15065 | else | |
15066 | echo "configure: failed program was:" >&5 | |
15067 | cat conftest.$ac_ext >&5 | |
15068 | rm -rf conftest* | |
15069 | eval "ac_cv_func_$ac_func=no" | |
15070 | fi | |
15071 | rm -f conftest* | |
15072 | fi | |
15073 | ||
15074 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15075 | echo "$ac_t""yes" 1>&6 | |
15076 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15077 | cat >> confdefs.h <<EOF | |
15078 | #define $ac_tr_func 1 | |
15079 | EOF | |
4f14bcd8 | 15080 | break |
af15babd VZ |
15081 | else |
15082 | echo "$ac_t""no" 1>&6 | |
15083 | fi | |
15084 | done | |
15085 | ||
15086 | ||
4f14bcd8 GD |
15087 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
15088 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
15089 | wxUSE_SNGLINST_CHECKER=no | |
15090 | fi | |
15091 | fi | |
af15babd | 15092 | |
4f14bcd8 | 15093 | for ac_func in timegm |
af15babd VZ |
15094 | do |
15095 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15096 | echo "configure:15097: checking for $ac_func" >&5 |
af15babd VZ |
15097 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15099 | else | |
15100 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 15101 | #line 15102 "configure" |
af15babd VZ |
15102 | #include "confdefs.h" |
15103 | /* System header to define __stub macros and hopefully few prototypes, | |
15104 | which can conflict with char $ac_func(); below. */ | |
15105 | #include <assert.h> | |
15106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15107 | /* We use char because int might match the return type of a gcc2 | |
15108 | builtin and then its argument prototype would still apply. */ | |
15109 | char $ac_func(); | |
15110 | ||
698dcdb6 | 15111 | int main() { |
698dcdb6 | 15112 | |
af15babd VZ |
15113 | /* The GNU C library defines this for functions which it implements |
15114 | to always fail with ENOSYS. Some functions are actually named | |
15115 | something starting with __ and the normal name is an alias. */ | |
15116 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15117 | choke me | |
15118 | #else | |
15119 | $ac_func(); | |
15120 | #endif | |
15121 | ||
698dcdb6 VZ |
15122 | ; return 0; } |
15123 | EOF | |
a72a4bfa | 15124 | if { (eval echo configure:15125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15125 | rm -rf conftest* |
af15babd | 15126 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15127 | else |
15128 | echo "configure: failed program was:" >&5 | |
15129 | cat conftest.$ac_ext >&5 | |
15130 | rm -rf conftest* | |
af15babd | 15131 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 15132 | fi |
9952adac | 15133 | rm -f conftest* |
af15babd | 15134 | fi |
703e0a69 | 15135 | |
af15babd VZ |
15136 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15137 | echo "$ac_t""yes" 1>&6 | |
15138 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
15139 | cat >> confdefs.h <<EOF |
15140 | #define $ac_tr_func 1 | |
15141 | EOF | |
15142 | ||
15143 | else | |
15144 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15145 | fi |
15146 | done | |
15147 | ||
15148 | ||
4f14bcd8 | 15149 | for ac_func in putenv setenv |
10f2d63a | 15150 | do |
698dcdb6 | 15151 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 15152 | echo "configure:15153: checking for $ac_func" >&5 |
698dcdb6 VZ |
15153 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15155 | else | |
15156 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 15157 | #line 15158 "configure" |
af15babd VZ |
15158 | #include "confdefs.h" |
15159 | /* System header to define __stub macros and hopefully few prototypes, | |
15160 | which can conflict with char $ac_func(); below. */ | |
15161 | #include <assert.h> | |
15162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15163 | /* We use char because int might match the return type of a gcc2 | |
15164 | builtin and then its argument prototype would still apply. */ | |
15165 | char $ac_func(); | |
15166 | ||
15167 | int main() { | |
15168 | ||
15169 | /* The GNU C library defines this for functions which it implements | |
15170 | to always fail with ENOSYS. Some functions are actually named | |
15171 | something starting with __ and the normal name is an alias. */ | |
15172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15173 | choke me | |
15174 | #else | |
15175 | $ac_func(); | |
15176 | #endif | |
15177 | ||
15178 | ; return 0; } | |
15179 | EOF | |
a72a4bfa | 15180 | if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15181 | rm -rf conftest* |
15182 | eval "ac_cv_func_$ac_func=yes" | |
15183 | else | |
15184 | echo "configure: failed program was:" >&5 | |
15185 | cat conftest.$ac_ext >&5 | |
15186 | rm -rf conftest* | |
15187 | eval "ac_cv_func_$ac_func=no" | |
15188 | fi | |
15189 | rm -f conftest* | |
15190 | fi | |
15191 | ||
15192 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15193 | echo "$ac_t""yes" 1>&6 | |
15194 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15195 | cat >> confdefs.h <<EOF | |
15196 | #define $ac_tr_func 1 | |
15197 | EOF | |
4f14bcd8 | 15198 | break |
af15babd VZ |
15199 | else |
15200 | echo "$ac_t""no" 1>&6 | |
15201 | fi | |
af15babd VZ |
15202 | done |
15203 | ||
15204 | ||
4f14bcd8 GD |
15205 | HAVE_SOME_SLEEP_FUNC=0 |
15206 | if test "$USE_BEOS" = 1; then | |
15207 | cat >> confdefs.h <<\EOF | |
15208 | #define HAVE_SLEEP 1 | |
af15babd VZ |
15209 | EOF |
15210 | ||
4f14bcd8 | 15211 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15212 | fi |
15213 | ||
4f14bcd8 GD |
15214 | if test "$USE_DARWIN" = 1; then |
15215 | cat >> confdefs.h <<\EOF | |
15216 | #define HAVE_USLEEP 1 | |
af15babd | 15217 | EOF |
10f2d63a | 15218 | |
4f14bcd8 | 15219 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15220 | fi |
15221 | ||
4f14bcd8 GD |
15222 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
15223 | POSIX4_LINK= | |
15224 | for ac_func in nanosleep | |
15225 | do | |
15226 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15227 | echo "configure:15228: checking for $ac_func" >&5 |
4f14bcd8 | 15228 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15229 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15230 | else |
4f14bcd8 | 15231 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15232 | #line 15233 "configure" |
10f2d63a | 15233 | #include "confdefs.h" |
4f14bcd8 GD |
15234 | /* System header to define __stub macros and hopefully few prototypes, |
15235 | which can conflict with char $ac_func(); below. */ | |
15236 | #include <assert.h> | |
10f2d63a VZ |
15237 | /* Override any gcc2 internal prototype to avoid an error. */ |
15238 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15239 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15240 | char $ac_func(); |
698dcdb6 VZ |
15241 | |
15242 | int main() { | |
4f14bcd8 GD |
15243 | |
15244 | /* The GNU C library defines this for functions which it implements | |
15245 | to always fail with ENOSYS. Some functions are actually named | |
15246 | something starting with __ and the normal name is an alias. */ | |
15247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15248 | choke me | |
15249 | #else | |
15250 | $ac_func(); | |
15251 | #endif | |
15252 | ||
698dcdb6 VZ |
15253 | ; return 0; } |
15254 | EOF | |
a72a4bfa | 15255 | if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15256 | rm -rf conftest* |
4f14bcd8 | 15257 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15258 | else |
15259 | echo "configure: failed program was:" >&5 | |
15260 | cat conftest.$ac_ext >&5 | |
15261 | rm -rf conftest* | |
4f14bcd8 | 15262 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15263 | fi |
15264 | rm -f conftest* | |
698dcdb6 | 15265 | fi |
4f14bcd8 GD |
15266 | |
15267 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15268 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15269 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15270 | cat >> confdefs.h <<EOF | |
15271 | #define $ac_tr_func 1 | |
15272 | EOF | |
15273 | cat >> confdefs.h <<\EOF | |
15274 | #define HAVE_NANOSLEEP 1 | |
15275 | EOF | |
15276 | ||
10f2d63a | 15277 | else |
698dcdb6 | 15278 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15279 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
a72a4bfa | 15280 | echo "configure:15281: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 15281 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15284 | else |
698dcdb6 | 15285 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15286 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15287 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15288 | #line 15289 "configure" |
10f2d63a VZ |
15289 | #include "confdefs.h" |
15290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15291 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15292 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15293 | char nanosleep(); |
698dcdb6 VZ |
15294 | |
15295 | int main() { | |
4f14bcd8 | 15296 | nanosleep() |
698dcdb6 VZ |
15297 | ; return 0; } |
15298 | EOF | |
a72a4bfa | 15299 | if { (eval echo configure:15300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15300 | rm -rf conftest* |
15301 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15302 | else | |
15303 | echo "configure: failed program was:" >&5 | |
15304 | cat conftest.$ac_ext >&5 | |
15305 | rm -rf conftest* | |
15306 | eval "ac_cv_lib_$ac_lib_var=no" | |
15307 | fi | |
15308 | rm -f conftest* | |
15309 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15310 | |
698dcdb6 VZ |
15311 | fi |
15312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15313 | echo "$ac_t""yes" 1>&6 | |
15314 | ||
4f14bcd8 GD |
15315 | cat >> confdefs.h <<\EOF |
15316 | #define HAVE_NANOSLEEP 1 | |
15317 | EOF | |
15318 | ||
3d63bc3a | 15319 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 15320 | |
10f2d63a | 15321 | else |
698dcdb6 | 15322 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15323 | |
4f14bcd8 GD |
15324 | for ac_func in usleep |
15325 | do | |
15326 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15327 | echo "configure:15328: checking for $ac_func" >&5 |
4f14bcd8 | 15328 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15329 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15330 | else |
698dcdb6 | 15331 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15332 | #line 15333 "configure" |
10f2d63a | 15333 | #include "confdefs.h" |
4f14bcd8 GD |
15334 | /* System header to define __stub macros and hopefully few prototypes, |
15335 | which can conflict with char $ac_func(); below. */ | |
15336 | #include <assert.h> | |
15337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15338 | /* We use char because int might match the return type of a gcc2 | |
15339 | builtin and then its argument prototype would still apply. */ | |
15340 | char $ac_func(); | |
15341 | ||
15342 | int main() { | |
15343 | ||
15344 | /* The GNU C library defines this for functions which it implements | |
15345 | to always fail with ENOSYS. Some functions are actually named | |
15346 | something starting with __ and the normal name is an alias. */ | |
15347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15348 | choke me | |
15349 | #else | |
15350 | $ac_func(); | |
15351 | #endif | |
15352 | ||
15353 | ; return 0; } | |
698dcdb6 | 15354 | EOF |
a72a4bfa | 15355 | if { (eval echo configure:15356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15356 | rm -rf conftest* |
4f14bcd8 | 15357 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15358 | else |
698dcdb6 | 15359 | echo "configure: failed program was:" >&5 |
10f2d63a | 15360 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15361 | rm -rf conftest* |
4f14bcd8 | 15362 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15363 | fi |
698dcdb6 | 15364 | rm -f conftest* |
10f2d63a | 15365 | fi |
4f14bcd8 GD |
15366 | |
15367 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15368 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15369 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15370 | cat >> confdefs.h <<EOF | |
15371 | #define $ac_tr_func 1 | |
15372 | EOF | |
15373 | cat >> confdefs.h <<\EOF | |
15374 | #define HAVE_USLEEP 1 | |
15375 | EOF | |
15376 | ||
698dcdb6 VZ |
15377 | else |
15378 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15379 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
15380 | ||
10f2d63a | 15381 | fi |
4f14bcd8 | 15382 | done |
10f2d63a | 15383 | |
4f14bcd8 | 15384 | |
698dcdb6 | 15385 | |
6232543b | 15386 | fi |
10f2d63a | 15387 | |
698dcdb6 | 15388 | |
4f14bcd8 | 15389 | |
1e487827 | 15390 | fi |
4f14bcd8 | 15391 | done |
703e0a69 | 15392 | |
10f2d63a VZ |
15393 | fi |
15394 | ||
4f14bcd8 | 15395 | for ac_func in uname gethostname |
70846f0a | 15396 | do |
698dcdb6 | 15397 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 15398 | echo "configure:15399: checking for $ac_func" >&5 |
698dcdb6 VZ |
15399 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15401 | else | |
15402 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 15403 | #line 15404 "configure" |
70846f0a VZ |
15404 | #include "confdefs.h" |
15405 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15406 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
15407 | #include <assert.h> |
15408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15409 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15410 | builtin and then its argument prototype would still apply. */ |
15411 | char $ac_func(); | |
15412 | ||
15413 | int main() { | |
70846f0a VZ |
15414 | |
15415 | /* The GNU C library defines this for functions which it implements | |
15416 | to always fail with ENOSYS. Some functions are actually named | |
15417 | something starting with __ and the normal name is an alias. */ | |
15418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15419 | choke me | |
15420 | #else | |
698dcdb6 | 15421 | $ac_func(); |
70846f0a VZ |
15422 | #endif |
15423 | ||
698dcdb6 | 15424 | ; return 0; } |
70846f0a | 15425 | EOF |
a72a4bfa | 15426 | if { (eval echo configure:15427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15427 | rm -rf conftest* |
15428 | eval "ac_cv_func_$ac_func=yes" | |
15429 | else | |
15430 | echo "configure: failed program was:" >&5 | |
15431 | cat conftest.$ac_ext >&5 | |
15432 | rm -rf conftest* | |
15433 | eval "ac_cv_func_$ac_func=no" | |
15434 | fi | |
15435 | rm -f conftest* | |
15436 | fi | |
70846f0a | 15437 | |
698dcdb6 VZ |
15438 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15439 | echo "$ac_t""yes" 1>&6 | |
15440 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15441 | cat >> confdefs.h <<EOF | |
15442 | #define $ac_tr_func 1 | |
15443 | EOF | |
4f14bcd8 | 15444 | break |
698dcdb6 VZ |
15445 | else |
15446 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
15447 | fi |
15448 | done | |
15449 | ||
698dcdb6 | 15450 | |
4f14bcd8 GD |
15451 | |
15452 | ac_ext=C | |
15453 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15454 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15455 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15456 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15457 | cross_compiling=$ac_cv_prog_cxx_cross | |
15458 | ||
15459 | ||
15460 | for ac_func in strtok_r | |
10f2d63a | 15461 | do |
4f14bcd8 | 15462 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 15463 | echo "configure:15464: checking for $ac_func" >&5 |
4f14bcd8 | 15464 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15465 | echo $ac_n "(cached) $ac_c" 1>&6 |
15466 | else | |
15467 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 15468 | #line 15469 "configure" |
10f2d63a | 15469 | #include "confdefs.h" |
4f14bcd8 GD |
15470 | /* System header to define __stub macros and hopefully few prototypes, |
15471 | which can conflict with char $ac_func(); below. */ | |
15472 | #include <assert.h> | |
15473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15474 | #ifdef __cplusplus | |
15475 | extern "C" | |
15476 | #endif | |
15477 | /* We use char because int might match the return type of a gcc2 | |
15478 | builtin and then its argument prototype would still apply. */ | |
15479 | char $ac_func(); | |
15480 | ||
15481 | int main() { | |
15482 | ||
15483 | /* The GNU C library defines this for functions which it implements | |
15484 | to always fail with ENOSYS. Some functions are actually named | |
15485 | something starting with __ and the normal name is an alias. */ | |
15486 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15487 | choke me | |
15488 | #else | |
15489 | $ac_func(); | |
15490 | #endif | |
15491 | ||
15492 | ; return 0; } | |
698dcdb6 | 15493 | EOF |
a72a4bfa | 15494 | if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15495 | rm -rf conftest* |
4f14bcd8 | 15496 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15497 | else |
698dcdb6 | 15498 | echo "configure: failed program was:" >&5 |
10f2d63a | 15499 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15500 | rm -rf conftest* |
4f14bcd8 | 15501 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15502 | fi |
698dcdb6 | 15503 | rm -f conftest* |
10f2d63a | 15504 | fi |
4f14bcd8 GD |
15505 | |
15506 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15507 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 15508 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 15509 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15510 | #define $ac_tr_func 1 |
10f2d63a | 15511 | EOF |
698dcdb6 VZ |
15512 | |
15513 | else | |
15514 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15515 | fi |
15516 | done | |
15517 | ||
698dcdb6 | 15518 | |
4f14bcd8 GD |
15519 | ac_ext=c |
15520 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15521 | ac_cpp='$CPP $CPPFLAGS' | |
15522 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15523 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15524 | cross_compiling=$ac_cv_prog_cc_cross | |
15525 | ||
15526 | ||
15527 | INET_LINK= | |
15528 | for ac_func in inet_addr | |
15529 | do | |
15530 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15531 | echo "configure:15532: checking for $ac_func" >&5 |
4f14bcd8 | 15532 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15533 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15534 | else |
4f14bcd8 | 15535 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15536 | #line 15537 "configure" |
10f2d63a | 15537 | #include "confdefs.h" |
4f14bcd8 GD |
15538 | /* System header to define __stub macros and hopefully few prototypes, |
15539 | which can conflict with char $ac_func(); below. */ | |
15540 | #include <assert.h> | |
10f2d63a VZ |
15541 | /* Override any gcc2 internal prototype to avoid an error. */ |
15542 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15543 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15544 | char $ac_func(); |
698dcdb6 VZ |
15545 | |
15546 | int main() { | |
4f14bcd8 GD |
15547 | |
15548 | /* The GNU C library defines this for functions which it implements | |
15549 | to always fail with ENOSYS. Some functions are actually named | |
15550 | something starting with __ and the normal name is an alias. */ | |
15551 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15552 | choke me | |
15553 | #else | |
15554 | $ac_func(); | |
15555 | #endif | |
15556 | ||
698dcdb6 VZ |
15557 | ; return 0; } |
15558 | EOF | |
a72a4bfa | 15559 | if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15560 | rm -rf conftest* |
4f14bcd8 | 15561 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15562 | else |
15563 | echo "configure: failed program was:" >&5 | |
15564 | cat conftest.$ac_ext >&5 | |
15565 | rm -rf conftest* | |
4f14bcd8 | 15566 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15567 | fi |
15568 | rm -f conftest* | |
698dcdb6 | 15569 | fi |
4f14bcd8 GD |
15570 | |
15571 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15572 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15573 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15574 | cat >> confdefs.h <<EOF | |
15575 | #define $ac_tr_func 1 | |
15576 | EOF | |
15577 | cat >> confdefs.h <<\EOF | |
15578 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
15579 | EOF |
15580 | ||
15581 | else | |
698dcdb6 | 15582 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15583 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
a72a4bfa | 15584 | echo "configure:15585: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 15585 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15586 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15588 | else |
698dcdb6 | 15589 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15590 | LIBS="-lnsl $LIBS" |
698dcdb6 | 15591 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15592 | #line 15593 "configure" |
10f2d63a VZ |
15593 | #include "confdefs.h" |
15594 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15595 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15596 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15597 | char inet_addr(); |
698dcdb6 VZ |
15598 | |
15599 | int main() { | |
4f14bcd8 | 15600 | inet_addr() |
698dcdb6 VZ |
15601 | ; return 0; } |
15602 | EOF | |
a72a4bfa | 15603 | if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15604 | rm -rf conftest* |
15605 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15606 | else | |
15607 | echo "configure: failed program was:" >&5 | |
15608 | cat conftest.$ac_ext >&5 | |
15609 | rm -rf conftest* | |
15610 | eval "ac_cv_lib_$ac_lib_var=no" | |
15611 | fi | |
15612 | rm -f conftest* | |
15613 | LIBS="$ac_save_LIBS" | |
15614 | ||
15615 | fi | |
15616 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15617 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15618 | INET_LINK="nsl" |
10f2d63a | 15619 | else |
698dcdb6 | 15620 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15621 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
a72a4bfa | 15622 | echo "configure:15623: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 15623 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15624 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15626 | else |
698dcdb6 | 15627 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15628 | LIBS="-lresolv $LIBS" |
698dcdb6 | 15629 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15630 | #line 15631 "configure" |
10f2d63a VZ |
15631 | #include "confdefs.h" |
15632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15633 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15634 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15635 | char inet_addr(); |
698dcdb6 VZ |
15636 | |
15637 | int main() { | |
4f14bcd8 | 15638 | inet_addr() |
698dcdb6 VZ |
15639 | ; return 0; } |
15640 | EOF | |
a72a4bfa | 15641 | if { (eval echo configure:15642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15642 | rm -rf conftest* |
15643 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15644 | else | |
15645 | echo "configure: failed program was:" >&5 | |
15646 | cat conftest.$ac_ext >&5 | |
15647 | rm -rf conftest* | |
15648 | eval "ac_cv_lib_$ac_lib_var=no" | |
15649 | fi | |
15650 | rm -f conftest* | |
15651 | LIBS="$ac_save_LIBS" | |
15652 | ||
15653 | fi | |
15654 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15655 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15656 | INET_LINK="resolv" |
15657 | ||
698dcdb6 | 15658 | else |
4f14bcd8 GD |
15659 | echo "$ac_t""no" 1>&6 |
15660 | fi | |
698dcdb6 | 15661 | |
4f14bcd8 | 15662 | |
698dcdb6 | 15663 | fi |
4f14bcd8 GD |
15664 | |
15665 | ||
698dcdb6 VZ |
15666 | |
15667 | fi | |
4f14bcd8 GD |
15668 | done |
15669 | ||
15670 | ||
15671 | for ac_func in inet_aton | |
15672 | do | |
15673 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15674 | echo "configure:15675: checking for $ac_func" >&5 |
4f14bcd8 | 15675 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15676 | echo $ac_n "(cached) $ac_c" 1>&6 |
15677 | else | |
4f14bcd8 | 15678 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15679 | #line 15680 "configure" |
f6bcfd97 | 15680 | #include "confdefs.h" |
4f14bcd8 GD |
15681 | /* System header to define __stub macros and hopefully few prototypes, |
15682 | which can conflict with char $ac_func(); below. */ | |
15683 | #include <assert.h> | |
f6bcfd97 BP |
15684 | /* Override any gcc2 internal prototype to avoid an error. */ |
15685 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15686 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15687 | char $ac_func(); |
698dcdb6 VZ |
15688 | |
15689 | int main() { | |
4f14bcd8 GD |
15690 | |
15691 | /* The GNU C library defines this for functions which it implements | |
15692 | to always fail with ENOSYS. Some functions are actually named | |
15693 | something starting with __ and the normal name is an alias. */ | |
15694 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15695 | choke me | |
15696 | #else | |
15697 | $ac_func(); | |
15698 | #endif | |
15699 | ||
698dcdb6 VZ |
15700 | ; return 0; } |
15701 | EOF | |
a72a4bfa | 15702 | if { (eval echo configure:15703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15703 | rm -rf conftest* |
4f14bcd8 | 15704 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15705 | else |
15706 | echo "configure: failed program was:" >&5 | |
15707 | cat conftest.$ac_ext >&5 | |
15708 | rm -rf conftest* | |
4f14bcd8 | 15709 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15710 | fi |
15711 | rm -f conftest* | |
698dcdb6 | 15712 | fi |
4f14bcd8 GD |
15713 | |
15714 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15715 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15716 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15717 | cat >> confdefs.h <<EOF | |
15718 | #define $ac_tr_func 1 | |
15719 | EOF | |
15720 | cat >> confdefs.h <<\EOF | |
15721 | #define HAVE_INET_ATON 1 | |
15722 | EOF | |
15723 | ||
10f2d63a | 15724 | else |
698dcdb6 | 15725 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15726 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
a72a4bfa | 15727 | echo "configure:15728: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 15728 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15729 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15731 | else |
698dcdb6 | 15732 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15733 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15734 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15735 | #line 15736 "configure" |
10f2d63a | 15736 | #include "confdefs.h" |
6232543b | 15737 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15738 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15739 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15740 | char inet_aton(); |
698dcdb6 VZ |
15741 | |
15742 | int main() { | |
4f14bcd8 | 15743 | inet_aton() |
698dcdb6 VZ |
15744 | ; return 0; } |
15745 | EOF | |
a72a4bfa | 15746 | if { (eval echo configure:15747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15747 | rm -rf conftest* |
15748 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15749 | else | |
15750 | echo "configure: failed program was:" >&5 | |
15751 | cat conftest.$ac_ext >&5 | |
15752 | rm -rf conftest* | |
15753 | eval "ac_cv_lib_$ac_lib_var=no" | |
15754 | fi | |
15755 | rm -f conftest* | |
15756 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15757 | |
698dcdb6 VZ |
15758 | fi |
15759 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15760 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15761 | cat >> confdefs.h <<\EOF |
15762 | #define HAVE_INET_ATON 1 | |
15763 | EOF | |
15764 | ||
698dcdb6 VZ |
15765 | else |
15766 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15767 | fi |
15768 | ||
4f14bcd8 | 15769 | |
10f2d63a | 15770 | fi |
4f14bcd8 | 15771 | done |
10f2d63a | 15772 | |
4f14bcd8 GD |
15773 | |
15774 | if test "x$INET_LINK" != "x"; then | |
15775 | cat >> confdefs.h <<\EOF | |
15776 | #define HAVE_INET_ADDR 1 | |
15777 | EOF | |
15778 | ||
3d63bc3a | 15779 | INET_LINK=" -l$INET_LINK" |
6232543b | 15780 | fi |
10f2d63a | 15781 | |
1e487827 | 15782 | fi |
703e0a69 | 15783 | |
698dcdb6 | 15784 | |
4f14bcd8 GD |
15785 | cat > confcache <<\EOF |
15786 | # This file is a shell script that caches the results of configure | |
15787 | # tests run on this system so they can be shared between configure | |
15788 | # scripts and configure runs. It is not useful on other systems. | |
15789 | # If it contains results you don't want to keep, you may remove or edit it. | |
15790 | # | |
15791 | # By default, configure uses ./config.cache as the cache file, | |
15792 | # creating it if it does not exist already. You can give configure | |
15793 | # the --cache-file=FILE option to use a different cache file; that is | |
15794 | # what configure does when it calls configure scripts in | |
15795 | # subdirectories, so they share the cache. | |
15796 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15797 | # config.status only pays attention to the cache file if you give it the | |
15798 | # --recheck option to rerun configure. | |
15799 | # | |
f6bcfd97 | 15800 | EOF |
4f14bcd8 GD |
15801 | # The following way of writing the cache mishandles newlines in values, |
15802 | # but we know of no workaround that is simple, portable, and efficient. | |
15803 | # So, don't put newlines in cache variables' values. | |
15804 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15805 | # and sets the high bit in the cache file unless we assign to the vars. | |
15806 | (set) 2>&1 | | |
15807 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15808 | *ac_space=\ *) | |
15809 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15810 | # turns \\\\ into \\, and sed turns \\ into \). | |
15811 | sed -n \ | |
15812 | -e "s/'/'\\\\''/g" \ | |
15813 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15814 | ;; | |
15815 | *) | |
15816 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15817 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15818 | ;; | |
15819 | esac >> confcache | |
15820 | if cmp -s $cache_file confcache; then | |
15821 | : | |
15822 | else | |
15823 | if test -w $cache_file; then | |
15824 | echo "updating cache $cache_file" | |
15825 | cat confcache > $cache_file | |
f6bcfd97 | 15826 | else |
4f14bcd8 | 15827 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15828 | fi |
4f14bcd8 GD |
15829 | fi |
15830 | rm -f confcache | |
f6bcfd97 | 15831 | |
4f14bcd8 GD |
15832 | |
15833 | ||
15834 | if test "$TOOLKIT" != "MSW"; then | |
15835 | ||
7274f1c7 RL |
15836 | |
15837 | THREADS_LINK= | |
15838 | THREADS_OBJ= | |
15839 | CODE_GEN_FLAGS= | |
15840 | CODE_GEN_FLAGS_CXX= | |
15841 | ||
15842 | if test "$wxUSE_THREADS" = "yes" ; then | |
15843 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 15844 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
15845 | wxUSE_THREADS="no" |
15846 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 15847 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
15848 | wxUSE_THREADS="no" |
15849 | fi | |
4f14bcd8 | 15850 | fi |
4f14bcd8 | 15851 | |
7274f1c7 RL |
15852 | if test "$wxUSE_THREADS" = "yes" ; then |
15853 | ||
15854 | if test "$USE_AIX" = 1; then | |
15855 | THREADS_LIB=pthreads | |
15856 | else | |
15857 | THREADS_LIB=pthread | |
15858 | fi | |
4f14bcd8 | 15859 | |
7274f1c7 | 15860 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
a72a4bfa | 15861 | echo "configure:15862: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 15862 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15863 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15865 | else |
698dcdb6 | 15866 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15867 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 15868 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15869 | #line 15870 "configure" |
10f2d63a VZ |
15870 | #include "confdefs.h" |
15871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15872 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15873 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15874 | char pthread_create(); |
698dcdb6 VZ |
15875 | |
15876 | int main() { | |
4f14bcd8 | 15877 | pthread_create() |
698dcdb6 VZ |
15878 | ; return 0; } |
15879 | EOF | |
a72a4bfa | 15880 | if { (eval echo configure:15881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15881 | rm -rf conftest* |
15882 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15883 | else | |
15884 | echo "configure: failed program was:" >&5 | |
15885 | cat conftest.$ac_ext >&5 | |
15886 | rm -rf conftest* | |
15887 | eval "ac_cv_lib_$ac_lib_var=no" | |
15888 | fi | |
15889 | rm -f conftest* | |
15890 | LIBS="$ac_save_LIBS" | |
15891 | ||
15892 | fi | |
15893 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15894 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15895 | |
7274f1c7 RL |
15896 | THREADS_OBJ="threadpsx.lo" |
15897 | THREADS_LINK=$THREADS_LIB | |
15898 | ||
10f2d63a | 15899 | else |
698dcdb6 | 15900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15901 | |
7274f1c7 | 15902 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
a72a4bfa | 15903 | echo "configure:15904: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
15904 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
15905 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15906 | echo $ac_n "(cached) $ac_c" 1>&6 |
15907 | else | |
4f14bcd8 GD |
15908 | ac_save_LIBS="$LIBS" |
15909 | LIBS="-lc_r $LIBS" | |
15910 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 15911 | #line 15912 "configure" |
10f2d63a | 15912 | #include "confdefs.h" |
4f14bcd8 GD |
15913 | /* Override any gcc2 internal prototype to avoid an error. */ |
15914 | /* We use char because int might match the return type of a gcc2 | |
15915 | builtin and then its argument prototype would still apply. */ | |
15916 | char pthread_create(); | |
10f2d63a | 15917 | |
4f14bcd8 GD |
15918 | int main() { |
15919 | pthread_create() | |
698dcdb6 VZ |
15920 | ; return 0; } |
15921 | EOF | |
a72a4bfa | 15922 | if { (eval echo configure:15923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15923 | rm -rf conftest* |
4f14bcd8 | 15924 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15925 | else |
698dcdb6 VZ |
15926 | echo "configure: failed program was:" >&5 |
15927 | cat conftest.$ac_ext >&5 | |
15928 | rm -rf conftest* | |
4f14bcd8 | 15929 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15930 | fi |
698dcdb6 | 15931 | rm -f conftest* |
4f14bcd8 | 15932 | LIBS="$ac_save_LIBS" |
d9b9876f | 15933 | |
4f14bcd8 GD |
15934 | fi |
15935 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15936 | echo "$ac_t""yes" 1>&6 | |
15937 | ||
7274f1c7 RL |
15938 | THREADS_OBJ="threadpsx.lo" |
15939 | THREADS_LINK="c_r" | |
15940 | ||
4f14bcd8 GD |
15941 | else |
15942 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 15943 | |
7274f1c7 | 15944 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15945 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
a72a4bfa | 15946 | echo "configure:15947: checking for sys/prctl.h" >&5 |
4f14bcd8 | 15947 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 15948 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 15949 | else |
4f14bcd8 | 15950 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 15951 | #line 15952 "configure" |
d9b9876f | 15952 | #include "confdefs.h" |
4f14bcd8 | 15953 | #include <sys/prctl.h> |
698dcdb6 | 15954 | EOF |
4f14bcd8 | 15955 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a72a4bfa | 15956 | { (eval echo configure:15957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15957 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15958 | if test -z "$ac_err"; then | |
698dcdb6 | 15959 | rm -rf conftest* |
4f14bcd8 | 15960 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 15961 | else |
4f14bcd8 | 15962 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15963 | echo "configure: failed program was:" >&5 |
15964 | cat conftest.$ac_ext >&5 | |
15965 | rm -rf conftest* | |
4f14bcd8 | 15966 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 15967 | fi |
698dcdb6 | 15968 | rm -f conftest* |
4f14bcd8 GD |
15969 | fi |
15970 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15971 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 15972 | |
7274f1c7 RL |
15973 | THREADS_OBJ="threadsgi.lo" |
15974 | ||
4f14bcd8 GD |
15975 | else |
15976 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15977 | fi |
698dcdb6 | 15978 | |
7274f1c7 | 15979 | |
4f14bcd8 | 15980 | fi |
d9b9876f | 15981 | |
7274f1c7 | 15982 | |
4f14bcd8 | 15983 | fi |
d9b9876f | 15984 | |
4f14bcd8 | 15985 | |
7274f1c7 RL |
15986 | if test -z "$THREADS_OBJ" ; then |
15987 | wxUSE_THREADS=no | |
156b2523 | 15988 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 15989 | fi |
4f14bcd8 | 15990 | fi |
4f14bcd8 | 15991 | |
7274f1c7 RL |
15992 | if test "$wxUSE_THREADS" = "yes" ; then |
15993 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
15994 | do |
15995 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a72a4bfa | 15996 | echo "configure:15997: checking for $ac_func" >&5 |
4f14bcd8 | 15997 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15998 | echo $ac_n "(cached) $ac_c" 1>&6 |
15999 | else | |
4f14bcd8 | 16000 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16001 | #line 16002 "configure" |
d9b9876f | 16002 | #include "confdefs.h" |
4f14bcd8 GD |
16003 | /* System header to define __stub macros and hopefully few prototypes, |
16004 | which can conflict with char $ac_func(); below. */ | |
16005 | #include <assert.h> | |
16006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16007 | /* We use char because int might match the return type of a gcc2 | |
16008 | builtin and then its argument prototype would still apply. */ | |
16009 | char $ac_func(); | |
16010 | ||
698dcdb6 | 16011 | int main() { |
d9b9876f | 16012 | |
4f14bcd8 GD |
16013 | /* The GNU C library defines this for functions which it implements |
16014 | to always fail with ENOSYS. Some functions are actually named | |
16015 | something starting with __ and the normal name is an alias. */ | |
16016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16017 | choke me | |
16018 | #else | |
16019 | $ac_func(); | |
16020 | #endif | |
16021 | ||
698dcdb6 VZ |
16022 | ; return 0; } |
16023 | EOF | |
a72a4bfa | 16024 | if { (eval echo configure:16025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16025 | rm -rf conftest* |
4f14bcd8 | 16026 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 16027 | else |
698dcdb6 VZ |
16028 | echo "configure: failed program was:" >&5 |
16029 | cat conftest.$ac_ext >&5 | |
16030 | rm -rf conftest* | |
4f14bcd8 | 16031 | eval "ac_cv_func_$ac_func=no" |
6232543b | 16032 | fi |
698dcdb6 | 16033 | rm -f conftest* |
1e487827 | 16034 | fi |
698dcdb6 | 16035 | |
4f14bcd8 GD |
16036 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16037 | echo "$ac_t""yes" 1>&6 | |
16038 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16039 | cat >> confdefs.h <<EOF | |
16040 | #define $ac_tr_func 1 | |
d9b9876f | 16041 | EOF |
4f14bcd8 GD |
16042 | |
16043 | else | |
16044 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 16045 | fi |
4f14bcd8 | 16046 | done |
10f2d63a | 16047 | |
10f2d63a | 16048 | |
7274f1c7 RL |
16049 | |
16050 | for ac_hdr in sched.h | |
4f14bcd8 GD |
16051 | do |
16052 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16053 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 16054 | echo "configure:16055: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
16055 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16057 | else |
4f14bcd8 | 16058 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16059 | #line 16060 "configure" |
4f14bcd8 GD |
16060 | #include "confdefs.h" |
16061 | #include <$ac_hdr> | |
13111b2a | 16062 | EOF |
4f14bcd8 | 16063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
a72a4bfa | 16064 | { (eval echo configure:16065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16066 | if test -z "$ac_err"; then | |
16067 | rm -rf conftest* | |
16068 | eval "ac_cv_header_$ac_safe=yes" | |
16069 | else | |
16070 | echo "$ac_err" >&5 | |
16071 | echo "configure: failed program was:" >&5 | |
16072 | cat conftest.$ac_ext >&5 | |
16073 | rm -rf conftest* | |
16074 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 16075 | fi |
4f14bcd8 | 16076 | rm -f conftest* |
10f2d63a | 16077 | fi |
4f14bcd8 GD |
16078 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16079 | echo "$ac_t""yes" 1>&6 | |
16080 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 16081 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16082 | #define $ac_tr_hdr 1 |
f6bcfd97 | 16083 | EOF |
4f14bcd8 GD |
16084 | |
16085 | else | |
16086 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 16087 | fi |
4f14bcd8 | 16088 | done |
f6bcfd97 | 16089 | |
10f2d63a | 16090 | |
7274f1c7 | 16091 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
a72a4bfa | 16092 | echo "configure:16093: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16093 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
16094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16096 | else | |
16097 | ac_save_LIBS="$LIBS" | |
16098 | LIBS="-l$THREADS_LINK $LIBS" | |
16099 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 16100 | #line 16101 "configure" |
4f14bcd8 GD |
16101 | #include "confdefs.h" |
16102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16103 | /* We use char because int might match the return type of a gcc2 | |
16104 | builtin and then its argument prototype would still apply. */ | |
16105 | char sched_yield(); | |
10f2d63a | 16106 | |
4f14bcd8 GD |
16107 | int main() { |
16108 | sched_yield() | |
16109 | ; return 0; } | |
10f2d63a | 16110 | EOF |
a72a4bfa | 16111 | if { (eval echo configure:16112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16112 | rm -rf conftest* |
16113 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16114 | else |
4f14bcd8 GD |
16115 | echo "configure: failed program was:" >&5 |
16116 | cat conftest.$ac_ext >&5 | |
16117 | rm -rf conftest* | |
16118 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16119 | fi |
4f14bcd8 GD |
16120 | rm -f conftest* |
16121 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16122 | |
4f14bcd8 GD |
16123 | fi |
16124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16125 | echo "$ac_t""yes" 1>&6 | |
16126 | cat >> confdefs.h <<\EOF | |
16127 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
16128 | EOF |
16129 | ||
4f14bcd8 GD |
16130 | else |
16131 | echo "$ac_t""no" 1>&6 | |
16132 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
a72a4bfa | 16133 | echo "configure:16134: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
16134 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
16135 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16137 | else | |
16138 | ac_save_LIBS="$LIBS" | |
16139 | LIBS="-lposix4 $LIBS" | |
16140 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 16141 | #line 16142 "configure" |
4f14bcd8 GD |
16142 | #include "confdefs.h" |
16143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16144 | /* We use char because int might match the return type of a gcc2 | |
16145 | builtin and then its argument prototype would still apply. */ | |
16146 | char sched_yield(); | |
47c13eb7 | 16147 | |
4f14bcd8 GD |
16148 | int main() { |
16149 | sched_yield() | |
16150 | ; return 0; } | |
10f2d63a | 16151 | EOF |
a72a4bfa | 16152 | if { (eval echo configure:16153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16153 | rm -rf conftest* |
16154 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16155 | else |
4f14bcd8 GD |
16156 | echo "configure: failed program was:" >&5 |
16157 | cat conftest.$ac_ext >&5 | |
16158 | rm -rf conftest* | |
16159 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16160 | fi |
4f14bcd8 GD |
16161 | rm -f conftest* |
16162 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16163 | |
54276ccf | 16164 | fi |
4f14bcd8 GD |
16165 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16166 | echo "$ac_t""yes" 1>&6 | |
16167 | cat >> confdefs.h <<\EOF | |
16168 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 16169 | EOF |
3d63bc3a | 16170 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
16171 | else |
16172 | echo "$ac_t""no" 1>&6 | |
16173 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 16174 | |
54276ccf VZ |
16175 | fi |
16176 | ||
7274f1c7 | 16177 | |
4f14bcd8 | 16178 | fi |
698dcdb6 | 16179 | |
10f2d63a | 16180 | |
7274f1c7 RL |
16181 | HAVE_PRIOR_FUNCS=0 |
16182 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
a72a4bfa | 16183 | echo "configure:16184: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16184 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
16185 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16186 | echo $ac_n "(cached) $ac_c" 1>&6 |
16187 | else | |
4f14bcd8 GD |
16188 | ac_save_LIBS="$LIBS" |
16189 | LIBS="-l$THREADS_LINK $LIBS" | |
16190 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 16191 | #line 16192 "configure" |
422107f9 | 16192 | #include "confdefs.h" |
4f14bcd8 GD |
16193 | /* Override any gcc2 internal prototype to avoid an error. */ |
16194 | /* We use char because int might match the return type of a gcc2 | |
16195 | builtin and then its argument prototype would still apply. */ | |
16196 | char pthread_attr_getschedpolicy(); | |
16197 | ||
16198 | int main() { | |
16199 | pthread_attr_getschedpolicy() | |
16200 | ; return 0; } | |
698dcdb6 | 16201 | EOF |
a72a4bfa | 16202 | if { (eval echo configure:16203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16203 | rm -rf conftest* |
4f14bcd8 | 16204 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16205 | else |
698dcdb6 | 16206 | echo "configure: failed program was:" >&5 |
422107f9 | 16207 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16208 | rm -rf conftest* |
4f14bcd8 | 16209 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16210 | fi |
698dcdb6 | 16211 | rm -f conftest* |
4f14bcd8 GD |
16212 | LIBS="$ac_save_LIBS" |
16213 | ||
422107f9 | 16214 | fi |
4f14bcd8 | 16215 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16216 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16217 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
a72a4bfa | 16218 | echo "configure:16219: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16219 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16220 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16222 | else |
698dcdb6 | 16223 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16224 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16225 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16226 | #line 16227 "configure" |
422107f9 VZ |
16227 | #include "confdefs.h" |
16228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16229 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16230 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16231 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
16232 | |
16233 | int main() { | |
4f14bcd8 | 16234 | pthread_attr_setschedparam() |
698dcdb6 VZ |
16235 | ; return 0; } |
16236 | EOF | |
a72a4bfa | 16237 | if { (eval echo configure:16238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16238 | rm -rf conftest* |
16239 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16240 | else | |
16241 | echo "configure: failed program was:" >&5 | |
16242 | cat conftest.$ac_ext >&5 | |
16243 | rm -rf conftest* | |
16244 | eval "ac_cv_lib_$ac_lib_var=no" | |
16245 | fi | |
16246 | rm -f conftest* | |
16247 | LIBS="$ac_save_LIBS" | |
16248 | ||
16249 | fi | |
16250 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16251 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16252 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
a72a4bfa | 16253 | echo "configure:16254: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16254 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
16255 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16256 | echo $ac_n "(cached) $ac_c" 1>&6 |
16257 | else | |
4f14bcd8 GD |
16258 | ac_save_LIBS="$LIBS" |
16259 | LIBS="-l$THREADS_LINK $LIBS" | |
16260 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 16261 | #line 16262 "configure" |
422107f9 | 16262 | #include "confdefs.h" |
4f14bcd8 GD |
16263 | /* Override any gcc2 internal prototype to avoid an error. */ |
16264 | /* We use char because int might match the return type of a gcc2 | |
16265 | builtin and then its argument prototype would still apply. */ | |
16266 | char sched_get_priority_max(); | |
16267 | ||
16268 | int main() { | |
16269 | sched_get_priority_max() | |
16270 | ; return 0; } | |
698dcdb6 | 16271 | EOF |
a72a4bfa | 16272 | if { (eval echo configure:16273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16273 | rm -rf conftest* |
4f14bcd8 | 16274 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16275 | else |
698dcdb6 | 16276 | echo "configure: failed program was:" >&5 |
422107f9 | 16277 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16278 | rm -rf conftest* |
4f14bcd8 | 16279 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16280 | fi |
698dcdb6 | 16281 | rm -f conftest* |
4f14bcd8 GD |
16282 | LIBS="$ac_save_LIBS" |
16283 | ||
422107f9 | 16284 | fi |
4f14bcd8 | 16285 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16286 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16287 | HAVE_PRIOR_FUNCS=1 |
16288 | else | |
16289 | echo "$ac_t""no" 1>&6 | |
16290 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
a72a4bfa | 16291 | echo "configure:16292: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 16292 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16293 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16295 | else |
698dcdb6 | 16296 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16297 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16298 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16299 | #line 16300 "configure" |
422107f9 VZ |
16300 | #include "confdefs.h" |
16301 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16302 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16303 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16304 | char sched_get_priority_max(); |
698dcdb6 VZ |
16305 | |
16306 | int main() { | |
4f14bcd8 | 16307 | sched_get_priority_max() |
698dcdb6 VZ |
16308 | ; return 0; } |
16309 | EOF | |
a72a4bfa | 16310 | if { (eval echo configure:16311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16311 | rm -rf conftest* |
16312 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16313 | else | |
16314 | echo "configure: failed program was:" >&5 | |
16315 | cat conftest.$ac_ext >&5 | |
16316 | rm -rf conftest* | |
16317 | eval "ac_cv_lib_$ac_lib_var=no" | |
16318 | fi | |
16319 | rm -f conftest* | |
16320 | LIBS="$ac_save_LIBS" | |
16321 | ||
16322 | fi | |
16323 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16324 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16325 | |
7274f1c7 RL |
16326 | HAVE_PRIOR_FUNCS=1 |
16327 | POSIX4_LINK=" -lposix4" | |
16328 | ||
698dcdb6 VZ |
16329 | else |
16330 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
16331 | fi |
16332 | ||
7274f1c7 | 16333 | |
422107f9 VZ |
16334 | fi |
16335 | ||
7274f1c7 | 16336 | |
4f14bcd8 GD |
16337 | else |
16338 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16339 | fi |
16340 | ||
7274f1c7 | 16341 | |
698dcdb6 | 16342 | else |
4f14bcd8 GD |
16343 | echo "$ac_t""no" 1>&6 |
16344 | fi | |
463abc64 | 16345 | |
463abc64 | 16346 | |
7274f1c7 RL |
16347 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
16348 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16349 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 16350 | EOF |
463abc64 | 16351 | |
7274f1c7 RL |
16352 | else |
16353 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
16354 | fi | |
463abc64 | 16355 | |
7274f1c7 | 16356 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
a72a4bfa | 16357 | echo "configure:16358: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16358 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16361 | else |
698dcdb6 | 16362 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16363 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16364 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16365 | #line 16366 "configure" |
422107f9 VZ |
16366 | #include "confdefs.h" |
16367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16368 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16369 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16370 | char pthread_cancel(); |
698dcdb6 VZ |
16371 | |
16372 | int main() { | |
4f14bcd8 | 16373 | pthread_cancel() |
698dcdb6 VZ |
16374 | ; return 0; } |
16375 | EOF | |
a72a4bfa | 16376 | if { (eval echo configure:16377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16377 | rm -rf conftest* |
16378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16379 | else | |
16380 | echo "configure: failed program was:" >&5 | |
16381 | cat conftest.$ac_ext >&5 | |
16382 | rm -rf conftest* | |
16383 | eval "ac_cv_lib_$ac_lib_var=no" | |
16384 | fi | |
16385 | rm -f conftest* | |
16386 | LIBS="$ac_save_LIBS" | |
16387 | ||
16388 | fi | |
16389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16390 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16391 | cat >> confdefs.h <<\EOF |
16392 | #define HAVE_PTHREAD_CANCEL 1 | |
16393 | EOF | |
16394 | ||
698dcdb6 VZ |
16395 | else |
16396 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16397 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
16398 | fi |
16399 | ||
422107f9 | 16400 | |
7274f1c7 | 16401 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
a72a4bfa | 16402 | echo "configure:16403: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
16403 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
16404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16405 | else | |
16406 | ||
7274f1c7 | 16407 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16408 | #line 16409 "configure" |
4f14bcd8 GD |
16409 | #include "confdefs.h" |
16410 | #include <pthread.h> | |
16411 | int main() { | |
16412 | ||
7274f1c7 RL |
16413 | pthread_cleanup_push(NULL, NULL); |
16414 | pthread_cleanup_pop(0); | |
16415 | ||
4f14bcd8 GD |
16416 | ; return 0; } |
16417 | EOF | |
a72a4bfa | 16418 | if { (eval echo configure:16419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16419 | rm -rf conftest* |
16420 | ||
7274f1c7 RL |
16421 | wx_cv_func_pthread_cleanup_push=yes |
16422 | ||
4f14bcd8 GD |
16423 | else |
16424 | echo "configure: failed program was:" >&5 | |
16425 | cat conftest.$ac_ext >&5 | |
16426 | rm -rf conftest* | |
16427 | ||
7274f1c7 RL |
16428 | wx_cv_func_pthread_cleanup_push=no |
16429 | ||
4f14bcd8 GD |
16430 | fi |
16431 | rm -f conftest* | |
7274f1c7 | 16432 | |
10f2d63a VZ |
16433 | fi |
16434 | ||
4f14bcd8 GD |
16435 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
16436 | ||
7274f1c7 RL |
16437 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
16438 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16439 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
16440 | EOF |
16441 | ||
7274f1c7 | 16442 | fi |
4f14bcd8 | 16443 | |
7274f1c7 RL |
16444 | |
16445 | if test "x$wx_lib_glibc21" = "xyes"; then | |
16446 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
16447 | fi | |
4f14bcd8 | 16448 | |
7274f1c7 | 16449 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
a72a4bfa | 16450 | echo "configure:16451: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 16451 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
16452 | echo $ac_n "(cached) $ac_c" 1>&6 |
16453 | else | |
4f14bcd8 | 16454 | |
7274f1c7 | 16455 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16456 | #line 16457 "configure" |
0dcf9893 | 16457 | #include "confdefs.h" |
4f14bcd8 GD |
16458 | #include <pthread.h> |
16459 | int main() { | |
16460 | ||
7274f1c7 RL |
16461 | pthread_mutexattr_t attr; |
16462 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
16463 | ||
4f14bcd8 | 16464 | ; return 0; } |
698dcdb6 | 16465 | EOF |
a72a4bfa | 16466 | if { (eval echo configure:16467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16467 | rm -rf conftest* |
4f14bcd8 | 16468 | |
7274f1c7 RL |
16469 | wx_cv_type_pthread_mutexattr_t=yes |
16470 | ||
3fed1840 | 16471 | else |
698dcdb6 | 16472 | echo "configure: failed program was:" >&5 |
3fed1840 | 16473 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16474 | rm -rf conftest* |
4f14bcd8 | 16475 | |
7274f1c7 RL |
16476 | wx_cv_type_pthread_mutexattr_t=no |
16477 | ||
4f14bcd8 | 16478 | |
3fed1840 | 16479 | fi |
698dcdb6 | 16480 | rm -f conftest* |
7274f1c7 | 16481 | |
3fed1840 | 16482 | fi |
4f14bcd8 GD |
16483 | |
16484 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
16485 | ||
7274f1c7 RL |
16486 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
16487 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16488 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
16489 | EOF | |
16490 | ||
7274f1c7 RL |
16491 | else |
16492 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
a72a4bfa | 16493 | echo "configure:16494: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 16494 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 16495 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 16496 | else |
4f14bcd8 | 16497 | |
7274f1c7 | 16498 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 16499 | #line 16500 "configure" |
3fed1840 | 16500 | #include "confdefs.h" |
4f14bcd8 | 16501 | #include <pthread.h> |
698dcdb6 | 16502 | int main() { |
4f14bcd8 | 16503 | |
7274f1c7 RL |
16504 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
16505 | ||
698dcdb6 VZ |
16506 | ; return 0; } |
16507 | EOF | |
a72a4bfa | 16508 | if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16509 | rm -rf conftest* |
4f14bcd8 | 16510 | |
7274f1c7 RL |
16511 | wx_cv_type_pthread_rec_mutex_init=yes |
16512 | ||
698dcdb6 VZ |
16513 | else |
16514 | echo "configure: failed program was:" >&5 | |
16515 | cat conftest.$ac_ext >&5 | |
16516 | rm -rf conftest* | |
4f14bcd8 | 16517 | |
7274f1c7 RL |
16518 | wx_cv_type_pthread_rec_mutex_init=no |
16519 | ||
4f14bcd8 | 16520 | |
698dcdb6 VZ |
16521 | fi |
16522 | rm -f conftest* | |
7274f1c7 | 16523 | |
3fed1840 RR |
16524 | fi |
16525 | ||
4f14bcd8 | 16526 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
16527 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
16528 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16529 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
16530 | EOF | |
3fed1840 | 16531 | |
7274f1c7 RL |
16532 | else |
16533 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
16534 | fi | |
16535 | fi | |
4f14bcd8 | 16536 | |
7274f1c7 | 16537 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 16538 | |
7274f1c7 RL |
16539 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
16540 | CPPFLAGS="$CFLAGS -mt" | |
16541 | CXXFLAGS="$CXXFLAGS -mt" | |
16542 | LDFLAGS="$LDFLAGS -mt" | |
16543 | fi | |
16544 | fi | |
3fed1840 | 16545 | |
4f14bcd8 GD |
16546 | fi |
16547 | ||
16548 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 16549 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16550 | #define wxUSE_THREADS 1 |
7b6058cd GD |
16551 | EOF |
16552 | ||
4f14bcd8 | 16553 | |
3f345b47 | 16554 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
16555 | |
16556 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 16557 | else |
4f14bcd8 GD |
16558 | if test "$ac_cv_func_strtok_r" = "yes"; then |
16559 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
a72a4bfa | 16560 | echo "configure:16561: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
16561 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
16562 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
16563 | echo "$ac_t""yes" 1>&6 | |
16564 | else | |
16565 | echo "$ac_t""no" 1>&6 | |
16566 | fi | |
16567 | fi | |
16568 | fi | |
16569 | ||
16570 | if test "$WXGTK20" = 1 ; then | |
16571 | cat >> confdefs.h <<EOF | |
16572 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 16573 | EOF |
4f14bcd8 GD |
16574 | |
16575 | WXGTK12=1 | |
10f2d63a | 16576 | fi |
4f14bcd8 GD |
16577 | |
16578 | if test "$WXGTK12" = 1 ; then | |
16579 | cat >> confdefs.h <<EOF | |
16580 | #define __WXGTK12__ $WXGTK12 | |
16581 | EOF | |
16582 | ||
10f2d63a | 16583 | fi |
698dcdb6 | 16584 | |
4f14bcd8 GD |
16585 | if test "$WXGTK127" = 1 ; then |
16586 | cat >> confdefs.h <<EOF | |
16587 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 16588 | EOF |
4f14bcd8 | 16589 | |
698dcdb6 | 16590 | fi |
10f2d63a | 16591 | |
4f14bcd8 GD |
16592 | WXDEBUG= |
16593 | ||
16594 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
16595 | WXDEBUG="-g" | |
16596 | wxUSE_OPTIMISE=no | |
698dcdb6 | 16597 | fi |
4f14bcd8 GD |
16598 | |
16599 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
16600 | wxUSE_DEBUG_INFO=yes | |
16601 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
16602 | fi |
16603 | ||
4f14bcd8 GD |
16604 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
16605 | cat >> confdefs.h <<\EOF | |
16606 | #define WXDEBUG 1 | |
16607 | EOF | |
16608 | ||
16609 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 16610 | else |
4f14bcd8 GD |
16611 | if test "$wxUSE_GTK" = 1 ; then |
16612 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
16613 | fi | |
16614 | fi | |
16615 | ||
16616 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
16617 | cat >> confdefs.h <<\EOF | |
16618 | #define wxUSE_MEMORY_TRACING 1 | |
16619 | EOF | |
16620 | ||
16621 | cat >> confdefs.h <<\EOF | |
16622 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
16623 | EOF | |
16624 | ||
16625 | cat >> confdefs.h <<\EOF | |
16626 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
16627 | EOF | |
16628 | ||
16629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
16630 | fi | |
16631 | ||
16632 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 16633 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
16634 | fi |
16635 | ||
16636 | PROFILE= | |
16637 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 16638 | PROFILE=" -pg" |
10f2d63a VZ |
16639 | fi |
16640 | ||
88e30f2b | 16641 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
16642 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
16643 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 16644 | fi |
4f14bcd8 GD |
16645 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
16646 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
16647 | fi | |
16648 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
16649 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
16650 | fi | |
4f14bcd8 GD |
16651 | if test "$USE_WIN32" = 1 ; then |
16652 | # I'm not even really sure what this was ever added to solve, | |
16653 | # but someone added it for mingw native builds, so I guess | |
16654 | # they had a reason, right?? | |
16655 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
16656 | fi | |
16657 | fi | |
16658 | ||
16659 | ||
16660 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16661 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16662 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16663 | OPTIMISE= | |
16664 | else | |
16665 | if test "$GCC" = yes ; then | |
16666 | OPTIMISE="-O2" | |
16667 | case "${host}" in | |
16668 | i586-*-*|i686-*-* ) | |
16669 | OPTIMISE="${OPTIMISE} " | |
16670 | ;; | |
16671 | esac | |
16672 | else | |
16673 | OPTIMISE="-O" | |
16674 | fi | |
16675 | fi | |
16676 | ||
16677 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16678 | cat >> confdefs.h <<\EOF | |
16679 | #define WXWIN_COMPATIBILITY_2 1 | |
16680 | EOF | |
16681 | ||
16682 | ||
16683 | WXWIN_COMPATIBILITY_2_2="yes" | |
16684 | fi | |
16685 | ||
16686 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16687 | cat >> confdefs.h <<\EOF | |
16688 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16689 | EOF | |
16690 | ||
10f2d63a VZ |
16691 | fi |
16692 | ||
698dcdb6 | 16693 | |
10f2d63a | 16694 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16695 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16696 | #define wxUSE_GUI 1 |
16697 | EOF | |
16698 | ||
698dcdb6 | 16699 | |
10f2d63a | 16700 | else |
698dcdb6 | 16701 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16702 | #define wxUSE_NOGUI 1 |
16703 | EOF | |
16704 | ||
16705 | fi | |
16706 | ||
698dcdb6 | 16707 | |
10f2d63a | 16708 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16709 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16710 | #define wxUSE_UNIX 1 |
16711 | EOF | |
16712 | ||
16713 | fi | |
16714 | ||
698dcdb6 | 16715 | |
10f2d63a | 16716 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16717 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16718 | #define wxUSE_APPLE_IEEE 1 |
16719 | EOF | |
16720 | ||
16721 | fi | |
16722 | ||
1e6feb95 VZ |
16723 | if test "$wxUSE_TIMER" = "yes"; then |
16724 | cat >> confdefs.h <<\EOF | |
16725 | #define wxUSE_TIMER 1 | |
16726 | EOF | |
16727 | ||
16728 | fi | |
16729 | ||
10f2d63a | 16730 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16731 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16732 | #define wxUSE_WAVE 1 |
16733 | EOF | |
16734 | ||
16735 | fi | |
16736 | ||
1e6feb95 VZ |
16737 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16738 | cat >> confdefs.h <<\EOF | |
16739 | #define wxUSE_CMDLINE_PARSER 1 | |
16740 | EOF | |
16741 | ||
16742 | fi | |
16743 | ||
16744 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16745 | cat >> confdefs.h <<\EOF | |
16746 | #define wxUSE_STOPWATCH 1 | |
16747 | EOF | |
16748 | ||
16749 | fi | |
16750 | ||
16751 | if test "$wxUSE_DATETIME" = "yes"; then | |
16752 | cat >> confdefs.h <<\EOF | |
16753 | #define wxUSE_DATETIME 1 | |
16754 | EOF | |
16755 | ||
16756 | fi | |
16757 | ||
16758 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16759 | cat >> confdefs.h <<\EOF | |
16760 | #define wxUSE_TIMEDATE 1 | |
16761 | EOF | |
16762 | ||
16763 | fi | |
16764 | ||
10f2d63a | 16765 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16766 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16767 | #define wxUSE_FILE 1 |
16768 | EOF | |
16769 | ||
16770 | fi | |
16771 | ||
1e6feb95 VZ |
16772 | if test "$wxUSE_FFILE" = "yes"; then |
16773 | cat >> confdefs.h <<\EOF | |
16774 | #define wxUSE_FFILE 1 | |
16775 | EOF | |
16776 | ||
16777 | fi | |
16778 | ||
24528b0c | 16779 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16780 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16781 | #define wxUSE_FILESYSTEM 1 |
16782 | EOF | |
16783 | ||
16784 | fi | |
16785 | ||
10f2d63a | 16786 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16787 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16788 | #define wxUSE_FS_INET 1 |
16789 | EOF | |
16790 | ||
16791 | fi | |
16792 | ||
16793 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16794 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16795 | #define wxUSE_FS_ZIP 1 |
16796 | EOF | |
16797 | ||
16798 | fi | |
16799 | ||
16800 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16801 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16802 | #define wxUSE_ZIPSTREAM 1 |
16803 | EOF | |
16804 | ||
16805 | fi | |
16806 | ||
eb4efbdc | 16807 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16808 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16809 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16810 | EOF | |
16811 | ||
16812 | fi | |
16813 | ||
4f3c5f06 | 16814 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16815 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16816 | #define wxUSE_SNGLINST_CHECKER 1 |
16817 | EOF | |
16818 | ||
16819 | fi | |
16820 | ||
10f2d63a | 16821 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16822 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16823 | #define wxUSE_BUSYINFO 1 |
16824 | EOF | |
16825 | ||
16826 | fi | |
16827 | ||
16828 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16829 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16830 | #define wxUSE_STD_IOSTREAM 1 |
16831 | EOF | |
16832 | ||
16833 | fi | |
16834 | ||
a3a584a7 VZ |
16835 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
16836 | cat >> confdefs.h <<\EOF | |
16837 | #define wxUSE_TEXTBUFFER 1 | |
16838 | EOF | |
16839 | ||
16840 | fi | |
16841 | ||
10f2d63a | 16842 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 16843 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 16844 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 16845 | else |
698dcdb6 | 16846 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16847 | #define wxUSE_TEXTFILE 1 |
16848 | EOF | |
16849 | ||
16850 | fi | |
16851 | fi | |
16852 | ||
16853 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16854 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 16855 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 16856 | else |
698dcdb6 | 16857 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16858 | #define wxUSE_CONFIG 1 |
16859 | EOF | |
16860 | ||
16861 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16862 | fi | |
16863 | fi | |
16864 | ||
16865 | if test "$wxUSE_INTL" = "yes" ; then | |
16866 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 16867 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 16868 | else |
698dcdb6 | 16869 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16870 | #define wxUSE_INTL 1 |
16871 | EOF | |
16872 | ||
16873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 16874 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
16875 | fi |
16876 | fi | |
16877 | ||
16878 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 16879 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16880 | #define wxUSE_LOG 1 |
16881 | EOF | |
16882 | ||
d73be714 VZ |
16883 | |
16884 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16885 | cat >> confdefs.h <<\EOF | |
16886 | #define wxUSE_LOGGUI 1 | |
16887 | EOF | |
16888 | ||
16889 | fi | |
16890 | ||
16891 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16892 | cat >> confdefs.h <<\EOF | |
16893 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
16894 | EOF |
16895 | ||
16896 | fi | |
16897 | ||
16898 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
16899 | cat >> confdefs.h <<\EOF | |
16900 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
16901 | EOF |
16902 | ||
16903 | fi | |
10f2d63a VZ |
16904 | fi |
16905 | ||
16906 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16907 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16908 | #define wxUSE_LONGLONG 1 |
16909 | EOF | |
16910 | ||
16911 | fi | |
16912 | ||
e8f65ba6 | 16913 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16914 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16915 | #define wxUSE_GEOMETRY 1 |
16916 | EOF | |
16917 | ||
16918 | fi | |
16919 | ||
10f2d63a | 16920 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16921 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16922 | #define wxUSE_DIALUP_MANAGER 1 |
16923 | EOF | |
16924 | ||
70f7a477 | 16925 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16926 | fi |
16927 | ||
16928 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16929 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16930 | #define wxUSE_STREAMS 1 |
16931 | EOF | |
16932 | ||
16933 | fi | |
16934 | ||
1e487827 | 16935 | |
1e6feb95 | 16936 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16937 | for ac_func in strptime |
83307f33 | 16938 | do |
698dcdb6 | 16939 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 16940 | echo "configure:16941: checking for $ac_func" >&5 |
698dcdb6 VZ |
16941 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16943 | else | |
16944 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 16945 | #line 16946 "configure" |
83307f33 VZ |
16946 | #include "confdefs.h" |
16947 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16948 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16949 | #include <assert.h> |
16950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16951 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16952 | builtin and then its argument prototype would still apply. */ |
16953 | char $ac_func(); | |
16954 | ||
16955 | int main() { | |
83307f33 VZ |
16956 | |
16957 | /* The GNU C library defines this for functions which it implements | |
16958 | to always fail with ENOSYS. Some functions are actually named | |
16959 | something starting with __ and the normal name is an alias. */ | |
16960 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16961 | choke me | |
16962 | #else | |
698dcdb6 | 16963 | $ac_func(); |
83307f33 VZ |
16964 | #endif |
16965 | ||
698dcdb6 | 16966 | ; return 0; } |
83307f33 | 16967 | EOF |
a72a4bfa | 16968 | if { (eval echo configure:16969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16969 | rm -rf conftest* |
16970 | eval "ac_cv_func_$ac_func=yes" | |
16971 | else | |
16972 | echo "configure: failed program was:" >&5 | |
16973 | cat conftest.$ac_ext >&5 | |
16974 | rm -rf conftest* | |
16975 | eval "ac_cv_func_$ac_func=no" | |
16976 | fi | |
16977 | rm -f conftest* | |
16978 | fi | |
83307f33 | 16979 | |
698dcdb6 VZ |
16980 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16981 | echo "$ac_t""yes" 1>&6 | |
16982 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16983 | cat >> confdefs.h <<EOF | |
16984 | #define $ac_tr_func 1 | |
16985 | EOF | |
16986 | ||
16987 | else | |
16988 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16989 | fi |
16990 | done | |
16991 | ||
1e487827 | 16992 | |
698dcdb6 | 16993 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
a72a4bfa | 16994 | echo "configure:16995: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16995 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16997 | else | |
16998 | ||
16999 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17000 | #line 17001 "configure" |
360d6699 VZ |
17001 | #include "confdefs.h" |
17002 | ||
b4085ce6 | 17003 | #include <time.h> |
698dcdb6 VZ |
17004 | |
17005 | int main() { | |
360d6699 VZ |
17006 | |
17007 | int tz; | |
4f11a343 | 17008 | tz = timezone; |
698dcdb6 VZ |
17009 | |
17010 | ; return 0; } | |
17011 | EOF | |
a72a4bfa | 17012 | if { (eval echo configure:17013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17013 | rm -rf conftest* |
17014 | ||
4f11a343 | 17015 | wx_cv_var_timezone=timezone |
698dcdb6 | 17016 | |
360d6699 | 17017 | else |
698dcdb6 VZ |
17018 | echo "configure: failed program was:" >&5 |
17019 | cat conftest.$ac_ext >&5 | |
17020 | rm -rf conftest* | |
17021 | ||
17022 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17023 | #line 17024 "configure" |
360d6699 VZ |
17024 | #include "confdefs.h" |
17025 | ||
b4085ce6 | 17026 | #include <time.h> |
698dcdb6 VZ |
17027 | |
17028 | int main() { | |
360d6699 VZ |
17029 | |
17030 | int tz; | |
17031 | tz = _timezone; | |
698dcdb6 VZ |
17032 | |
17033 | ; return 0; } | |
17034 | EOF | |
a72a4bfa | 17035 | if { (eval echo configure:17036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17036 | rm -rf conftest* |
17037 | ||
360d6699 | 17038 | wx_cv_var_timezone=_timezone |
698dcdb6 | 17039 | |
5357c8e8 | 17040 | else |
698dcdb6 VZ |
17041 | echo "configure: failed program was:" >&5 |
17042 | cat conftest.$ac_ext >&5 | |
17043 | rm -rf conftest* | |
17044 | ||
17045 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17046 | #line 17047 "configure" |
5357c8e8 VZ |
17047 | #include "confdefs.h" |
17048 | ||
b4085ce6 | 17049 | #include <time.h> |
698dcdb6 VZ |
17050 | |
17051 | int main() { | |
5357c8e8 VZ |
17052 | |
17053 | int tz; | |
4f11a343 | 17054 | tz = __timezone; |
698dcdb6 VZ |
17055 | |
17056 | ; return 0; } | |
17057 | EOF | |
a72a4bfa | 17058 | if { (eval echo configure:17059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17059 | rm -rf conftest* |
17060 | ||
4f11a343 | 17061 | wx_cv_var_timezone=__timezone |
698dcdb6 | 17062 | |
360d6699 | 17063 | else |
698dcdb6 VZ |
17064 | echo "configure: failed program was:" >&5 |
17065 | cat conftest.$ac_ext >&5 | |
17066 | rm -rf conftest* | |
f9bc1684 VS |
17067 | |
17068 | if test "$USE_DOS" = 0 ; then | |
17069 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
17070 | fi | |
17071 | ||
698dcdb6 | 17072 | |
360d6699 | 17073 | fi |
698dcdb6 VZ |
17074 | rm -f conftest* |
17075 | ||
17076 | ||
360d6699 | 17077 | fi |
698dcdb6 VZ |
17078 | rm -f conftest* |
17079 | ||
17080 | ||
6232543b | 17081 | fi |
698dcdb6 VZ |
17082 | rm -f conftest* |
17083 | ||
17084 | ||
1e487827 | 17085 | fi |
703e0a69 | 17086 | |
698dcdb6 VZ |
17087 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
17088 | ||
f9bc1684 | 17089 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 17090 | cat >> confdefs.h <<EOF |
360d6699 VZ |
17091 | #define WX_TIMEZONE $wx_cv_var_timezone |
17092 | EOF | |
17093 | ||
f9bc1684 | 17094 | fi |
698dcdb6 VZ |
17095 | |
17096 | for ac_func in localtime | |
afc31813 | 17097 | do |
698dcdb6 | 17098 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 17099 | echo "configure:17100: checking for $ac_func" >&5 |
698dcdb6 VZ |
17100 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17102 | else | |
17103 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17104 | #line 17105 "configure" |
10f2d63a | 17105 | #include "confdefs.h" |
afc31813 | 17106 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 17107 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
17108 | #include <assert.h> |
17109 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17110 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17111 | builtin and then its argument prototype would still apply. */ |
17112 | char $ac_func(); | |
17113 | ||
17114 | int main() { | |
afc31813 VZ |
17115 | |
17116 | /* The GNU C library defines this for functions which it implements | |
17117 | to always fail with ENOSYS. Some functions are actually named | |
17118 | something starting with __ and the normal name is an alias. */ | |
17119 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17120 | choke me | |
17121 | #else | |
698dcdb6 | 17122 | $ac_func(); |
afc31813 VZ |
17123 | #endif |
17124 | ||
698dcdb6 | 17125 | ; return 0; } |
10f2d63a | 17126 | EOF |
a72a4bfa | 17127 | if { (eval echo configure:17128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17128 | rm -rf conftest* |
17129 | eval "ac_cv_func_$ac_func=yes" | |
17130 | else | |
17131 | echo "configure: failed program was:" >&5 | |
17132 | cat conftest.$ac_ext >&5 | |
17133 | rm -rf conftest* | |
17134 | eval "ac_cv_func_$ac_func=no" | |
17135 | fi | |
17136 | rm -f conftest* | |
17137 | fi | |
afc31813 | 17138 | |
698dcdb6 VZ |
17139 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17140 | echo "$ac_t""yes" 1>&6 | |
17141 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17142 | cat >> confdefs.h <<EOF | |
17143 | #define $ac_tr_func 1 | |
17144 | EOF | |
17145 | ||
17146 | else | |
17147 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
17148 | fi |
17149 | done | |
17150 | ||
1e487827 | 17151 | |
698dcdb6 VZ |
17152 | if test "$ac_cv_func_localtime" = "yes"; then |
17153 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
a72a4bfa | 17154 | echo "configure:17155: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
17155 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
17156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17157 | else | |
17158 | ||
17159 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17160 | #line 17161 "configure" |
0470b1e6 VZ |
17161 | #include "confdefs.h" |
17162 | ||
b4085ce6 | 17163 | #include <time.h> |
698dcdb6 VZ |
17164 | |
17165 | int main() { | |
0470b1e6 VZ |
17166 | |
17167 | struct tm tm; | |
17168 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
17169 | |
17170 | ; return 0; } | |
17171 | EOF | |
a72a4bfa | 17172 | if { (eval echo configure:17173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17173 | rm -rf conftest* |
17174 | ||
f03a98d8 | 17175 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 17176 | |
0470b1e6 | 17177 | else |
698dcdb6 VZ |
17178 | echo "configure: failed program was:" >&5 |
17179 | cat conftest.$ac_ext >&5 | |
17180 | rm -rf conftest* | |
17181 | wx_cv_struct_tm_has_gmtoff=no | |
17182 | ||
0470b1e6 | 17183 | fi |
698dcdb6 VZ |
17184 | rm -f conftest* |
17185 | ||
1e487827 | 17186 | fi |
698dcdb6 VZ |
17187 | |
17188 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
17189 | fi |
17190 | ||
17191 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 17192 | cat >> confdefs.h <<\EOF |
6232543b VS |
17193 | #define WX_GMTOFF_IN_TM 1 |
17194 | EOF | |
0470b1e6 | 17195 | |
3fcdd07b VZ |
17196 | fi |
17197 | ||
698dcdb6 | 17198 | for ac_func in gettimeofday ftime |
3fcdd07b | 17199 | do |
698dcdb6 | 17200 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 17201 | echo "configure:17202: checking for $ac_func" >&5 |
698dcdb6 VZ |
17202 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17204 | else | |
17205 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17206 | #line 17207 "configure" |
3fcdd07b VZ |
17207 | #include "confdefs.h" |
17208 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17209 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
17210 | #include <assert.h> |
17211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17212 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17213 | builtin and then its argument prototype would still apply. */ |
17214 | char $ac_func(); | |
17215 | ||
17216 | int main() { | |
3fcdd07b VZ |
17217 | |
17218 | /* The GNU C library defines this for functions which it implements | |
17219 | to always fail with ENOSYS. Some functions are actually named | |
17220 | something starting with __ and the normal name is an alias. */ | |
17221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17222 | choke me | |
17223 | #else | |
698dcdb6 | 17224 | $ac_func(); |
3fcdd07b VZ |
17225 | #endif |
17226 | ||
698dcdb6 VZ |
17227 | ; return 0; } |
17228 | EOF | |
a72a4bfa | 17229 | if { (eval echo configure:17230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17230 | rm -rf conftest* |
17231 | eval "ac_cv_func_$ac_func=yes" | |
17232 | else | |
17233 | echo "configure: failed program was:" >&5 | |
17234 | cat conftest.$ac_ext >&5 | |
17235 | rm -rf conftest* | |
17236 | eval "ac_cv_func_$ac_func=no" | |
17237 | fi | |
17238 | rm -f conftest* | |
17239 | fi | |
17240 | ||
17241 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17242 | echo "$ac_t""yes" 1>&6 | |
17243 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17244 | cat >> confdefs.h <<EOF | |
17245 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
17246 | EOF |
17247 | break | |
698dcdb6 VZ |
17248 | else |
17249 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
17250 | fi |
17251 | done | |
17252 | ||
afc31813 | 17253 | |
698dcdb6 VZ |
17254 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
17255 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
a72a4bfa | 17256 | echo "configure:17257: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
17257 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
17258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17259 | else | |
17260 | ||
17261 | ||
17262 | ac_ext=C | |
17263 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 17264 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17265 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17266 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17267 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17268 | |
698dcdb6 VZ |
17269 | |
17270 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17271 | #line 17272 "configure" |
10f2d63a | 17272 | #include "confdefs.h" |
afc31813 VZ |
17273 | |
17274 | #include <sys/time.h> | |
17275 | #include <unistd.h> | |
698dcdb6 VZ |
17276 | |
17277 | int main() { | |
afc31813 VZ |
17278 | |
17279 | struct timeval tv; | |
776862b4 | 17280 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
17281 | |
17282 | ; return 0; } | |
17283 | EOF | |
a72a4bfa | 17284 | if { (eval echo configure:17285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17285 | rm -rf conftest* |
afc31813 | 17286 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 17287 | else |
698dcdb6 VZ |
17288 | echo "configure: failed program was:" >&5 |
17289 | cat conftest.$ac_ext >&5 | |
17290 | rm -rf conftest* | |
17291 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17292 | #line 17293 "configure" |
10f2d63a | 17293 | #include "confdefs.h" |
afc31813 VZ |
17294 | |
17295 | #include <sys/time.h> | |
17296 | #include <unistd.h> | |
698dcdb6 VZ |
17297 | |
17298 | int main() { | |
afc31813 VZ |
17299 | |
17300 | struct timeval tv; | |
17301 | gettimeofday(&tv); | |
698dcdb6 VZ |
17302 | |
17303 | ; return 0; } | |
17304 | EOF | |
a72a4bfa | 17305 | if { (eval echo configure:17306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17306 | rm -rf conftest* |
afc31813 | 17307 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 17308 | else |
698dcdb6 VZ |
17309 | echo "configure: failed program was:" >&5 |
17310 | cat conftest.$ac_ext >&5 | |
17311 | rm -rf conftest* | |
776862b4 VZ |
17312 | |
17313 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
17314 | wx_cv_func_gettimeofday_has_2_args=unknown | |
17315 | ||
698dcdb6 | 17316 | |
10f2d63a | 17317 | fi |
698dcdb6 VZ |
17318 | rm -f conftest* |
17319 | ||
10f2d63a | 17320 | fi |
698dcdb6 | 17321 | rm -f conftest* |
afc31813 | 17322 | ac_ext=c |
698dcdb6 | 17323 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 17324 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17325 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17326 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17327 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 17328 | |
698dcdb6 | 17329 | |
afc31813 | 17330 | fi |
698dcdb6 VZ |
17331 | |
17332 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 17333 | |
afc31813 | 17334 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 17335 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17336 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
17337 | EOF | |
17338 | ||
17339 | fi | |
17340 | fi | |
17341 | ||
698dcdb6 | 17342 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17343 | #define wxUSE_TIMEDATE 1 |
17344 | EOF | |
17345 | ||
17346 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
17347 | fi | |
17348 | ||
698dcdb6 | 17349 | |
b089607b VZ |
17350 | if test "$TOOLKIT" != "MSW"; then |
17351 | ||
3a922bb4 RL |
17352 | if test "$wxUSE_SOCKETS" = "yes"; then |
17353 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
a72a4bfa | 17354 | echo "configure:17355: checking for socket" >&5 |
698dcdb6 VZ |
17355 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
17356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17357 | else |
698dcdb6 | 17358 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 17359 | #line 17360 "configure" |
c63c7106 VZ |
17360 | #include "confdefs.h" |
17361 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17362 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
17363 | #include <assert.h> |
17364 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17365 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17366 | builtin and then its argument prototype would still apply. */ |
17367 | char socket(); | |
17368 | ||
17369 | int main() { | |
c63c7106 VZ |
17370 | |
17371 | /* The GNU C library defines this for functions which it implements | |
17372 | to always fail with ENOSYS. Some functions are actually named | |
17373 | something starting with __ and the normal name is an alias. */ | |
17374 | #if defined (__stub_socket) || defined (__stub___socket) | |
17375 | choke me | |
17376 | #else | |
698dcdb6 | 17377 | socket(); |
c63c7106 VZ |
17378 | #endif |
17379 | ||
698dcdb6 VZ |
17380 | ; return 0; } |
17381 | EOF | |
a72a4bfa | 17382 | if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17383 | rm -rf conftest* |
17384 | eval "ac_cv_func_socket=yes" | |
17385 | else | |
17386 | echo "configure: failed program was:" >&5 | |
17387 | cat conftest.$ac_ext >&5 | |
17388 | rm -rf conftest* | |
17389 | eval "ac_cv_func_socket=no" | |
17390 | fi | |
17391 | rm -f conftest* | |
17392 | fi | |
17393 | ||
17394 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
17395 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
17396 | : |
17397 | else | |
698dcdb6 VZ |
17398 | echo "$ac_t""no" 1>&6 |
17399 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
a72a4bfa | 17400 | echo "configure:17401: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
17401 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
17402 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17404 | else |
698dcdb6 | 17405 | ac_save_LIBS="$LIBS" |
c63c7106 | 17406 | LIBS="-lsocket $LIBS" |
698dcdb6 | 17407 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 17408 | #line 17409 "configure" |
c63c7106 VZ |
17409 | #include "confdefs.h" |
17410 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17411 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17412 | builtin and then its argument prototype would still apply. */ |
17413 | char socket(); | |
17414 | ||
17415 | int main() { | |
17416 | socket() | |
17417 | ; return 0; } | |
17418 | EOF | |
a72a4bfa | 17419 | if { (eval echo configure:17420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17420 | rm -rf conftest* |
17421 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17422 | else | |
17423 | echo "configure: failed program was:" >&5 | |
17424 | cat conftest.$ac_ext >&5 | |
17425 | rm -rf conftest* | |
17426 | eval "ac_cv_lib_$ac_lib_var=no" | |
17427 | fi | |
17428 | rm -f conftest* | |
17429 | LIBS="$ac_save_LIBS" | |
17430 | ||
17431 | fi | |
17432 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17433 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 17434 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 17435 | else |
698dcdb6 | 17436 | echo "$ac_t""no" 1>&6 |
afc31813 | 17437 | |
3a922bb4 RL |
17438 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
17439 | wxUSE_SOCKETS=no | |
17440 | ||
698dcdb6 | 17441 | |
6232543b | 17442 | fi |
b089607b | 17443 | |
3a922bb4 | 17444 | |
1e487827 | 17445 | fi |
afc31813 | 17446 | |
3a922bb4 | 17447 | fi |
51a9faba | 17448 | |
3a922bb4 RL |
17449 | |
17450 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
17451 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
a72a4bfa | 17452 | echo "configure:17453: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
17453 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
17454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17455 | else | |
17456 | ||
3a922bb4 RL |
17457 | |
17458 | ac_ext=C | |
698dcdb6 | 17459 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 17460 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17461 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17462 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17463 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17464 | |
698dcdb6 | 17465 | |
3a922bb4 | 17466 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 17467 | #line 17468 "configure" |
afc31813 | 17468 | #include "confdefs.h" |
51a9faba | 17469 | |
3a922bb4 RL |
17470 | #include <sys/types.h> |
17471 | #include <sys/socket.h> | |
17472 | ||
698dcdb6 | 17473 | int main() { |
51a9faba | 17474 | |
3a922bb4 RL |
17475 | socklen_t len; |
17476 | getsockname(0, 0, &len); | |
17477 | ||
698dcdb6 VZ |
17478 | ; return 0; } |
17479 | EOF | |
a72a4bfa | 17480 | if { (eval echo configure:17481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17481 | rm -rf conftest* |
51a9faba | 17482 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 17483 | else |
698dcdb6 VZ |
17484 | echo "configure: failed program was:" >&5 |
17485 | cat conftest.$ac_ext >&5 | |
17486 | rm -rf conftest* | |
17487 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17488 | #line 17489 "configure" |
afc31813 | 17489 | #include "confdefs.h" |
51a9faba | 17490 | |
3a922bb4 RL |
17491 | #include <sys/types.h> |
17492 | #include <sys/socket.h> | |
17493 | ||
698dcdb6 | 17494 | int main() { |
51a9faba | 17495 | |
3a922bb4 RL |
17496 | size_t len; |
17497 | getsockname(0, 0, &len); | |
17498 | ||
698dcdb6 VZ |
17499 | ; return 0; } |
17500 | EOF | |
a72a4bfa | 17501 | if { (eval echo configure:17502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17502 | rm -rf conftest* |
51a9faba | 17503 | wx_cv_type_getsockname3=size_t |
afc31813 | 17504 | else |
698dcdb6 VZ |
17505 | echo "configure: failed program was:" >&5 |
17506 | cat conftest.$ac_ext >&5 | |
17507 | rm -rf conftest* | |
17508 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17509 | #line 17510 "configure" |
afc31813 | 17510 | #include "confdefs.h" |
51a9faba | 17511 | |
3a922bb4 RL |
17512 | #include <sys/types.h> |
17513 | #include <sys/socket.h> | |
17514 | ||
698dcdb6 | 17515 | int main() { |
51a9faba | 17516 | |
3a922bb4 RL |
17517 | int len; |
17518 | getsockname(0, 0, &len); | |
17519 | ||
698dcdb6 VZ |
17520 | ; return 0; } |
17521 | EOF | |
a72a4bfa | 17522 | if { (eval echo configure:17523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17523 | rm -rf conftest* |
51a9faba | 17524 | wx_cv_type_getsockname3=int |
afc31813 | 17525 | else |
698dcdb6 VZ |
17526 | echo "configure: failed program was:" >&5 |
17527 | cat conftest.$ac_ext >&5 | |
17528 | rm -rf conftest* | |
17529 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 17530 | |
afc31813 | 17531 | fi |
698dcdb6 | 17532 | rm -f conftest* |
3a922bb4 | 17533 | |
afc31813 | 17534 | fi |
698dcdb6 | 17535 | rm -f conftest* |
3a922bb4 | 17536 | |
afc31813 | 17537 | fi |
698dcdb6 | 17538 | rm -f conftest* |
51a9faba | 17539 | |
3a922bb4 | 17540 | ac_ext=c |
698dcdb6 | 17541 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 17542 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17543 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17544 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17545 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 17546 | |
3a922bb4 | 17547 | |
51a9faba | 17548 | fi |
698dcdb6 VZ |
17549 | |
17550 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 17551 | |
3a922bb4 RL |
17552 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
17553 | wxUSE_SOCKETS=no | |
17554 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
17555 | else | |
17556 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
17557 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
17558 | EOF | |
17559 | ||
3a922bb4 | 17560 | fi |
51a9faba VZ |
17561 | fi |
17562 | fi | |
afc31813 | 17563 | |
51a9faba | 17564 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 17565 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17566 | #define wxUSE_SOCKETS 1 |
17567 | EOF | |
17568 | ||
70f7a477 | 17569 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
17570 | fi |
17571 | ||
698dcdb6 | 17572 | |
dc3d889d VZ |
17573 | if test "$wxUSE_GUI" = "yes"; then |
17574 | ||
156b2523 GD |
17575 | if test "$TOOLKIT" = "MAC"; then |
17576 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
17577 | wxUSE_JOYSTICK=no | |
17578 | fi | |
17579 | if test "$TOOLKIT" = "MOTIF"; then | |
17580 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
17581 | wxUSE_JOYSTICK=no | |
17582 | fi | |
17583 | ||
3a922bb4 RL |
17584 | if test "$TOOLKIT" != "MSW"; then |
17585 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
17586 | for ac_hdr in linux/joystick.h | |
10f2d63a | 17587 | do |
698dcdb6 VZ |
17588 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17589 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 17590 | echo "configure:17591: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17591 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17593 | else | |
17594 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17595 | #line 17596 "configure" |
10f2d63a | 17596 | #include "confdefs.h" |
698dcdb6 VZ |
17597 | #include <$ac_hdr> |
17598 | EOF | |
17599 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 17600 | { (eval echo configure:17601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17601 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17602 | if test -z "$ac_err"; then | |
17603 | rm -rf conftest* | |
17604 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 17605 | else |
698dcdb6 VZ |
17606 | echo "$ac_err" >&5 |
17607 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17608 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17609 | rm -rf conftest* |
17610 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17611 | fi |
698dcdb6 | 17612 | rm -f conftest* |
10f2d63a | 17613 | fi |
698dcdb6 VZ |
17614 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17615 | echo "$ac_t""yes" 1>&6 | |
17616 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17617 | cat >> confdefs.h <<EOF | |
17618 | #define $ac_tr_hdr 1 | |
10f2d63a | 17619 | EOF |
698dcdb6 VZ |
17620 | |
17621 | else | |
17622 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17623 | fi |
17624 | done | |
17625 | ||
3a922bb4 RL |
17626 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
17627 | wxUSE_JOYSTICK=no | |
156b2523 | 17628 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
17629 | fi |
17630 | fi | |
17631 | fi | |
b089607b | 17632 | |
3a922bb4 RL |
17633 | if test "$wxUSE_JOYSTICK" = "yes"; then |
17634 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17635 | #define wxUSE_JOYSTICK 1 |
17636 | EOF | |
17637 | ||
3a922bb4 RL |
17638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
17639 | fi | |
dc3d889d VZ |
17640 | fi |
17641 | ||
698dcdb6 | 17642 | |
b089607b VZ |
17643 | if test "$TOOLKIT" != "MSW"; then |
17644 | ||
3a922bb4 RL |
17645 | HAVE_DL_FUNCS=0 |
17646 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 17647 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
17648 | if test "$USE_DARWIN" = 1; then |
17649 | HAVE_DL_FUNCS=1 | |
17650 | else | |
17651 | for ac_func in dlopen | |
10f2d63a | 17652 | do |
698dcdb6 | 17653 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 17654 | echo "configure:17655: checking for $ac_func" >&5 |
698dcdb6 VZ |
17655 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17657 | else | |
17658 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17659 | #line 17660 "configure" |
10f2d63a VZ |
17660 | #include "confdefs.h" |
17661 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17662 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17663 | #include <assert.h> |
17664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17665 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17666 | builtin and then its argument prototype would still apply. */ |
17667 | char $ac_func(); | |
17668 | ||
17669 | int main() { | |
10f2d63a VZ |
17670 | |
17671 | /* The GNU C library defines this for functions which it implements | |
17672 | to always fail with ENOSYS. Some functions are actually named | |
17673 | something starting with __ and the normal name is an alias. */ | |
17674 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17675 | choke me | |
17676 | #else | |
698dcdb6 | 17677 | $ac_func(); |
10f2d63a VZ |
17678 | #endif |
17679 | ||
698dcdb6 VZ |
17680 | ; return 0; } |
17681 | EOF | |
a72a4bfa | 17682 | if { (eval echo configure:17683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17683 | rm -rf conftest* |
17684 | eval "ac_cv_func_$ac_func=yes" | |
17685 | else | |
17686 | echo "configure: failed program was:" >&5 | |
17687 | cat conftest.$ac_ext >&5 | |
17688 | rm -rf conftest* | |
17689 | eval "ac_cv_func_$ac_func=no" | |
17690 | fi | |
17691 | rm -f conftest* | |
17692 | fi | |
17693 | ||
17694 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17695 | echo "$ac_t""yes" 1>&6 | |
17696 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17697 | cat >> confdefs.h <<EOF | |
17698 | #define $ac_tr_func 1 | |
17699 | EOF | |
17700 | ||
3a922bb4 | 17701 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17702 | #define HAVE_DLOPEN 1 |
17703 | EOF | |
17704 | ||
3a922bb4 RL |
17705 | HAVE_DL_FUNCS=1 |
17706 | ||
10f2d63a | 17707 | else |
698dcdb6 VZ |
17708 | echo "$ac_t""no" 1>&6 |
17709 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
a72a4bfa | 17710 | echo "configure:17711: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
17711 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
17712 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17714 | else |
698dcdb6 | 17715 | ac_save_LIBS="$LIBS" |
10f2d63a | 17716 | LIBS="-ldl $LIBS" |
698dcdb6 | 17717 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 17718 | #line 17719 "configure" |
10f2d63a VZ |
17719 | #include "confdefs.h" |
17720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17721 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17722 | builtin and then its argument prototype would still apply. */ |
17723 | char dlopen(); | |
17724 | ||
17725 | int main() { | |
17726 | dlopen() | |
17727 | ; return 0; } | |
17728 | EOF | |
a72a4bfa | 17729 | if { (eval echo configure:17730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17730 | rm -rf conftest* |
17731 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17732 | else | |
17733 | echo "configure: failed program was:" >&5 | |
17734 | cat conftest.$ac_ext >&5 | |
17735 | rm -rf conftest* | |
17736 | eval "ac_cv_lib_$ac_lib_var=no" | |
17737 | fi | |
17738 | rm -f conftest* | |
17739 | LIBS="$ac_save_LIBS" | |
17740 | ||
17741 | fi | |
17742 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17743 | echo "$ac_t""yes" 1>&6 | |
17744 | ||
3a922bb4 | 17745 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17746 | #define HAVE_DLOPEN 1 |
17747 | EOF | |
17748 | ||
3a922bb4 | 17749 | HAVE_DL_FUNCS=1 |
3d63bc3a | 17750 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 17751 | |
10f2d63a | 17752 | else |
698dcdb6 | 17753 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17754 | |
3a922bb4 | 17755 | for ac_func in shl_load |
10f2d63a | 17756 | do |
698dcdb6 | 17757 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 17758 | echo "configure:17759: checking for $ac_func" >&5 |
698dcdb6 VZ |
17759 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17761 | else | |
17762 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17763 | #line 17764 "configure" |
10f2d63a VZ |
17764 | #include "confdefs.h" |
17765 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17766 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17767 | #include <assert.h> |
17768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17769 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17770 | builtin and then its argument prototype would still apply. */ |
17771 | char $ac_func(); | |
17772 | ||
17773 | int main() { | |
10f2d63a VZ |
17774 | |
17775 | /* The GNU C library defines this for functions which it implements | |
17776 | to always fail with ENOSYS. Some functions are actually named | |
17777 | something starting with __ and the normal name is an alias. */ | |
17778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17779 | choke me | |
17780 | #else | |
698dcdb6 | 17781 | $ac_func(); |
10f2d63a VZ |
17782 | #endif |
17783 | ||
698dcdb6 VZ |
17784 | ; return 0; } |
17785 | EOF | |
a72a4bfa | 17786 | if { (eval echo configure:17787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17787 | rm -rf conftest* |
17788 | eval "ac_cv_func_$ac_func=yes" | |
17789 | else | |
17790 | echo "configure: failed program was:" >&5 | |
17791 | cat conftest.$ac_ext >&5 | |
17792 | rm -rf conftest* | |
17793 | eval "ac_cv_func_$ac_func=no" | |
17794 | fi | |
17795 | rm -f conftest* | |
17796 | fi | |
17797 | ||
17798 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17799 | echo "$ac_t""yes" 1>&6 | |
17800 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17801 | cat >> confdefs.h <<EOF | |
17802 | #define $ac_tr_func 1 | |
17803 | EOF | |
17804 | ||
3a922bb4 | 17805 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17806 | #define HAVE_SHL_LOAD 1 |
17807 | EOF | |
17808 | ||
3a922bb4 RL |
17809 | HAVE_SHL_FUNCS=1 |
17810 | ||
10f2d63a | 17811 | else |
698dcdb6 VZ |
17812 | echo "$ac_t""no" 1>&6 |
17813 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
a72a4bfa | 17814 | echo "configure:17815: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17815 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17816 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17818 | else |
698dcdb6 | 17819 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17820 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17821 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 17822 | #line 17823 "configure" |
f6bcfd97 BP |
17823 | #include "confdefs.h" |
17824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17825 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17826 | builtin and then its argument prototype would still apply. */ |
17827 | char dld(); | |
17828 | ||
17829 | int main() { | |
17830 | dld() | |
17831 | ; return 0; } | |
17832 | EOF | |
a72a4bfa | 17833 | if { (eval echo configure:17834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17834 | rm -rf conftest* |
17835 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17836 | else | |
17837 | echo "configure: failed program was:" >&5 | |
17838 | cat conftest.$ac_ext >&5 | |
17839 | rm -rf conftest* | |
17840 | eval "ac_cv_lib_$ac_lib_var=no" | |
17841 | fi | |
17842 | rm -f conftest* | |
17843 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 17844 | |
698dcdb6 VZ |
17845 | fi |
17846 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17847 | echo "$ac_t""yes" 1>&6 | |
17848 | ||
3a922bb4 | 17849 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 17850 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 17851 | |
698dcdb6 VZ |
17852 | else |
17853 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17854 | fi |
17855 | ||
3a922bb4 | 17856 | |
10f2d63a VZ |
17857 | fi |
17858 | done | |
17859 | ||
3a922bb4 | 17860 | |
10f2d63a VZ |
17861 | fi |
17862 | ||
3a922bb4 | 17863 | |
10f2d63a VZ |
17864 | fi |
17865 | done | |
17866 | ||
1e487827 | 17867 | |
3a922bb4 RL |
17868 | if test "$HAVE_DL_FUNCS" = 1; then |
17869 | for ac_func in dlerror | |
f6bcfd97 | 17870 | do |
698dcdb6 | 17871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
a72a4bfa | 17872 | echo "configure:17873: checking for $ac_func" >&5 |
698dcdb6 VZ |
17873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17875 | else | |
17876 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 17877 | #line 17878 "configure" |
f6bcfd97 BP |
17878 | #include "confdefs.h" |
17879 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17880 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
17881 | #include <assert.h> |
17882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17883 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17884 | builtin and then its argument prototype would still apply. */ |
17885 | char $ac_func(); | |
17886 | ||
17887 | int main() { | |
f6bcfd97 BP |
17888 | |
17889 | /* The GNU C library defines this for functions which it implements | |
17890 | to always fail with ENOSYS. Some functions are actually named | |
17891 | something starting with __ and the normal name is an alias. */ | |
17892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17893 | choke me | |
17894 | #else | |
698dcdb6 | 17895 | $ac_func(); |
f6bcfd97 BP |
17896 | #endif |
17897 | ||
698dcdb6 VZ |
17898 | ; return 0; } |
17899 | EOF | |
a72a4bfa | 17900 | if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17901 | rm -rf conftest* |
17902 | eval "ac_cv_func_$ac_func=yes" | |
17903 | else | |
17904 | echo "configure: failed program was:" >&5 | |
17905 | cat conftest.$ac_ext >&5 | |
17906 | rm -rf conftest* | |
17907 | eval "ac_cv_func_$ac_func=no" | |
17908 | fi | |
17909 | rm -f conftest* | |
17910 | fi | |
17911 | ||
17912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17913 | echo "$ac_t""yes" 1>&6 | |
17914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17915 | cat >> confdefs.h <<EOF | |
17916 | #define $ac_tr_func 1 | |
17917 | EOF | |
17918 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17919 | #define HAVE_DLERROR 1 |
17920 | EOF | |
17921 | ||
17922 | else | |
698dcdb6 VZ |
17923 | echo "$ac_t""no" 1>&6 |
17924 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
a72a4bfa | 17925 | echo "configure:17926: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17926 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17927 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17929 | else |
698dcdb6 | 17930 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17931 | LIBS="-ldl $LIBS" |
698dcdb6 | 17932 | cat > conftest.$ac_ext <<EOF |
a72a4bfa | 17933 | #line 17934 "configure" |
f6bcfd97 BP |
17934 | #include "confdefs.h" |
17935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17936 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17937 | builtin and then its argument prototype would still apply. */ |
17938 | char dlerror(); | |
17939 | ||
17940 | int main() { | |
17941 | dlerror() | |
17942 | ; return 0; } | |
17943 | EOF | |
a72a4bfa | 17944 | if { (eval echo configure:17945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17945 | rm -rf conftest* |
17946 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17947 | else | |
17948 | echo "configure: failed program was:" >&5 | |
17949 | cat conftest.$ac_ext >&5 | |
17950 | rm -rf conftest* | |
17951 | eval "ac_cv_lib_$ac_lib_var=no" | |
17952 | fi | |
17953 | rm -f conftest* | |
17954 | LIBS="$ac_save_LIBS" | |
17955 | ||
17956 | fi | |
17957 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17958 | echo "$ac_t""yes" 1>&6 | |
17959 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17960 | #define HAVE_DLERROR 1 |
17961 | EOF | |
17962 | ||
698dcdb6 VZ |
17963 | else |
17964 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17965 | fi |
17966 | ||
17967 | fi | |
17968 | done | |
17969 | ||
3a922bb4 RL |
17970 | fi |
17971 | fi | |
f6bcfd97 | 17972 | |
3a922bb4 RL |
17973 | if test "$HAVE_DL_FUNCS" = 0; then |
17974 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17975 | if test "$USE_UNIX" = 1; then | |
17976 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 17977 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
17978 | wxUSE_DYNLIB_CLASS=no |
17979 | else | |
17980 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17981 | fi | |
17982 | fi | |
10f2d63a VZ |
17983 | fi |
17984 | fi | |
17985 | fi | |
17986 | ||
0b9ab0bd RL |
17987 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
17988 | cat >> confdefs.h <<\EOF | |
17989 | #define wxUSE_DYNAMIC_LOADER 1 | |
17990 | EOF | |
17991 | ||
17992 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17993 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17994 | #define wxUSE_DYNLIB_CLASS 1 |
17995 | EOF | |
17996 | ||
17997 | fi | |
17998 | ||
698dcdb6 | 17999 | |
1e6feb95 VZ |
18000 | if test "$wxUSE_FONTMAP" = "yes" ; then |
18001 | cat >> confdefs.h <<\EOF | |
18002 | #define wxUSE_FONTMAP 1 | |
18003 | EOF | |
18004 | ||
18005 | fi | |
18006 | ||
10f2d63a | 18007 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 18008 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18009 | #define wxUSE_UNICODE 1 |
18010 | EOF | |
18011 | ||
a72a4bfa VS |
18012 | |
18013 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
18014 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
18015 | echo "configure:18016: checking for main in -lunicows" >&5 | |
18016 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` | |
18017 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18018 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18019 | else | |
18020 | ac_save_LIBS="$LIBS" | |
18021 | LIBS="-lunicows $LIBS" | |
18022 | cat > conftest.$ac_ext <<EOF | |
18023 | #line 18024 "configure" | |
18024 | #include "confdefs.h" | |
18025 | ||
18026 | int main() { | |
18027 | main() | |
18028 | ; return 0; } | |
18029 | EOF | |
18030 | if { (eval echo configure:18031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18031 | rm -rf conftest* | |
18032 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18033 | else | |
18034 | echo "configure: failed program was:" >&5 | |
18035 | cat conftest.$ac_ext >&5 | |
18036 | rm -rf conftest* | |
18037 | eval "ac_cv_lib_$ac_lib_var=no" | |
18038 | fi | |
18039 | rm -f conftest* | |
18040 | LIBS="$ac_save_LIBS" | |
18041 | ||
18042 | fi | |
18043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18044 | echo "$ac_t""yes" 1>&6 | |
18045 | ||
18046 | cat >> confdefs.h <<\EOF | |
18047 | #define wxUSE_UNICODE_MSLU 1 | |
18048 | EOF | |
18049 | ||
18050 | ||
18051 | else | |
18052 | echo "$ac_t""no" 1>&6 | |
18053 | ||
18054 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
18055 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
18056 | wxUSE_UNICODE_MSLU=no | |
18057 | ||
18058 | fi | |
18059 | ||
18060 | fi | |
10f2d63a VZ |
18061 | fi |
18062 | ||
10f2d63a | 18063 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 18064 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18065 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
18066 | EOF | |
18067 | ||
18068 | fi | |
18069 | ||
698dcdb6 | 18070 | |
698dcdb6 | 18071 | |
10f2d63a VZ |
18072 | IODBC_C_SRC="" |
18073 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 18074 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18075 | #define wxUSE_ODBC 1 |
18076 | EOF | |
18077 | ||
18078 | WXODBCFLAG="-D_IODBC_" | |
18079 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
18080 | fi |
18081 | ||
698dcdb6 | 18082 | |
10f2d63a | 18083 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 18084 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18085 | #define wxUSE_POSTSCRIPT 1 |
18086 | EOF | |
18087 | ||
18088 | fi | |
18089 | ||
698dcdb6 | 18090 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18091 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
18092 | EOF | |
18093 | ||
698dcdb6 VZ |
18094 | |
18095 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18096 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
18097 | EOF | |
18098 | ||
698dcdb6 VZ |
18099 | |
18100 | ||
10f2d63a | 18101 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 18102 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18103 | #define wxUSE_CONSTRAINTS 1 |
18104 | EOF | |
18105 | ||
18106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
18107 | fi | |
18108 | ||
18109 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 18110 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18111 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
18112 | wxUSE_MDI_ARCHITECTURE=no |
18113 | fi | |
18114 | ||
18115 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18116 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18117 | #define wxUSE_MDI_ARCHITECTURE 1 |
18118 | EOF | |
18119 | ||
fc26f4ab RL |
18120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
18121 | fi | |
10f2d63a VZ |
18122 | fi |
18123 | ||
18124 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 18125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18126 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
18127 | EOF | |
18128 | ||
18129 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
18130 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
18132 | fi | |
18133 | fi | |
18134 | ||
18135 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 18136 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18137 | #define wxUSE_HELP 1 |
18138 | EOF | |
18139 | ||
18140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 18141 | |
77e13408 | 18142 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 18143 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
18144 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
18145 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
a72a4bfa | 18146 | echo "configure:18147: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
18147 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18149 | else | |
18150 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 18151 | #line 18152 "configure" |
29fd3c0c VS |
18152 | #include "confdefs.h" |
18153 | #include <htmlhelp.h> | |
18154 | EOF | |
18155 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 18156 | { (eval echo configure:18157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
18157 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18158 | if test -z "$ac_err"; then | |
18159 | rm -rf conftest* | |
18160 | eval "ac_cv_header_$ac_safe=yes" | |
18161 | else | |
18162 | echo "$ac_err" >&5 | |
18163 | echo "configure: failed program was:" >&5 | |
18164 | cat conftest.$ac_ext >&5 | |
18165 | rm -rf conftest* | |
18166 | eval "ac_cv_header_$ac_safe=no" | |
18167 | fi | |
18168 | rm -f conftest* | |
18169 | fi | |
18170 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18171 | echo "$ac_t""yes" 1>&6 | |
18172 | ||
18173 | cat >> confdefs.h <<\EOF | |
18174 | #define wxUSE_MS_HTML_HELP 1 | |
18175 | EOF | |
18176 | ||
18177 | ||
18178 | else | |
18179 | echo "$ac_t""no" 1>&6 | |
18180 | ||
fc26f4ab | 18181 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
18182 | wxUSE_MS_HTML_HELP=no |
18183 | ||
18184 | fi | |
18185 | ||
3e44f09d | 18186 | fi |
3379ed37 | 18187 | fi |
031d8228 VS |
18188 | |
18189 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
18190 | if test "$wxUSE_HTML" = "yes"; then | |
18191 | cat >> confdefs.h <<\EOF | |
18192 | #define wxUSE_WXHTML_HELP 1 | |
18193 | EOF | |
18194 | ||
18195 | else | |
18196 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
18197 | wxUSE_WXHTML_HELP=no | |
18198 | fi | |
18199 | fi | |
10f2d63a VZ |
18200 | fi |
18201 | ||
18202 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
18203 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 18204 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 18205 | else |
698dcdb6 | 18206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18207 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
18208 | EOF | |
18209 | ||
18210 | fi | |
18211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
18212 | fi | |
18213 | ||
18214 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 18215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18216 | #define wxUSE_PROLOGIO 1 |
18217 | EOF | |
18218 | ||
18219 | fi | |
18220 | ||
18221 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 18222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18223 | #define wxUSE_RESOURCES 1 |
18224 | EOF | |
18225 | ||
3379ed37 | 18226 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
18227 | fi |
18228 | ||
18229 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 18230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18231 | #define wxUSE_X_RESOURCES 1 |
18232 | EOF | |
18233 | ||
18234 | fi | |
18235 | ||
698dcdb6 | 18236 | |
77e13408 RL |
18237 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
18238 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
18239 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 18240 | for ac_hdr in ole2.h |
10f2d63a | 18241 | do |
698dcdb6 VZ |
18242 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18243 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a72a4bfa | 18244 | echo "configure:18245: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18245 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18247 | else | |
18248 | cat > conftest.$ac_ext <<EOF | |
a72a4bfa | 18249 | #line 18250 "configure" |
10f2d63a | 18250 | #include "confdefs.h" |
698dcdb6 VZ |
18251 | #include <$ac_hdr> |
18252 | EOF | |
18253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a72a4bfa | 18254 | { (eval echo configure:18255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18255 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18256 | if test -z "$ac_err"; then | |
18257 | rm -rf conftest* | |
18258 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 18259 | else |
698dcdb6 VZ |
18260 | echo "$ac_err" >&5 |
18261 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18262 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18263 | rm -rf conftest* |
18264 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18265 | fi |
698dcdb6 | 18266 | rm -f conftest* |
10f2d63a | 18267 | fi |
698dcdb6 VZ |
18268 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18269 | echo "$ac_t""yes" 1>&6 | |
18270 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18271 | cat >> confdefs.h <<EOF | |
18272 | #define $ac_tr_hdr 1 | |
10f2d63a | 18273 | EOF |
698dcdb6 VZ |
18274 | |
18275 | else | |
18276 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18277 | fi |
18278 | done | |
18279 | ||
698dcdb6 | 18280 | |
2b9bdf71 VZ |
18281 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
18282 | if test "$GCC" = yes ; then | |
18283 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 18284 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 18285 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 18286 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
18287 | #define wxUSE_OLE 1 |
18288 | EOF | |
18289 | ||
b64f0a5f | 18290 | |
2b9bdf71 VZ |
18291 | fi |
18292 | ||
18293 | cat >> confdefs.h <<\EOF | |
18294 | #define wxUSE_DATAOBJ 1 | |
18295 | EOF | |
18296 | ||
18297 | else | |
18298 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
18299 | ||
18300 | wxUSE_CLIPBOARD=no | |
18301 | wxUSE_DRAG_AND_DROP=no | |
18302 | wxUSE_DATAOBJ=no | |
18303 | fi | |
18304 | ||
77e13408 | 18305 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 18306 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
18307 | #define wxUSE_METAFILE 1 |
18308 | EOF | |
18309 | ||
2b9bdf71 VZ |
18310 | |
18311 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
18312 | #define wxUSE_ENH_METAFILE 1 |
18313 | EOF | |
18314 | ||
2b9bdf71 VZ |
18315 | fi |
18316 | fi | |
18317 | ||
18318 | if test "$wxUSE_IPC" = "yes"; then | |
18319 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 18320 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
18321 | fi |
18322 | ||
18323 | cat >> confdefs.h <<\EOF | |
18324 | #define wxUSE_IPC 1 | |
18325 | EOF | |
18326 | ||
18327 | fi | |
18328 | ||
18329 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
18330 | cat >> confdefs.h <<\EOF | |
18331 | #define wxUSE_CLIPBOARD 1 | |
18332 | EOF | |
18333 | ||
673f4220 | 18334 | |
e33ef661 | 18335 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
18336 | #define wxUSE_DATAOBJ 1 |
18337 | EOF | |
18338 | ||
2b9bdf71 VZ |
18339 | fi |
18340 | ||
18341 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
18342 | if test "$wxUSE_GTK" = 1; then | |
18343 | if test "$WXGTK12" != 1; then | |
156b2523 | 18344 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
18345 | wxUSE_DRAG_AND_DROP=no |
18346 | fi | |
18347 | fi | |
18348 | ||
2b9bdf71 | 18349 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 18350 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
18351 | wxUSE_DRAG_AND_DROP=no |
18352 | fi | |
18353 | ||
18354 | if test "$wxUSE_MAC" = 1; then | |
156b2523 | 18355 | echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2 |
2b9bdf71 VZ |
18356 | wxUSE_DRAG_AND_DROP=no |
18357 | fi | |
18358 | ||
10f2d63a | 18359 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 18360 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18361 | #define wxUSE_DRAG_AND_DROP 1 |
18362 | EOF | |
18363 | ||
18364 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
18365 | fi | |
18366 | ||
18367 | fi | |
18368 | ||
18369 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 18370 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18371 | #define wxUSE_SPLINES 1 |
18372 | EOF | |
18373 | ||
18374 | fi | |
18375 | ||
698dcdb6 | 18376 | |
1e6feb95 VZ |
18377 | USES_CONTROLS=0 |
18378 | if test "$wxUSE_CONTROLS" = "yes"; then | |
18379 | USES_CONTROLS=1 | |
18380 | fi | |
18381 | ||
10f2d63a | 18382 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 18383 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18384 | #define wxUSE_ACCEL 1 |
18385 | EOF | |
18386 | ||
1e6feb95 VZ |
18387 | USES_CONTROLS=1 |
18388 | fi | |
18389 | ||
18390 | if test "$wxUSE_BUTTON" = "yes"; then | |
18391 | cat >> confdefs.h <<\EOF | |
18392 | #define wxUSE_BUTTON 1 | |
18393 | EOF | |
18394 | ||
18395 | USES_CONTROLS=1 | |
18396 | fi | |
18397 | ||
18398 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
18399 | cat >> confdefs.h <<\EOF | |
18400 | #define wxUSE_BMPBUTTON 1 | |
18401 | EOF | |
18402 | ||
18403 | USES_CONTROLS=1 | |
18404 | fi | |
18405 | ||
18406 | if test "$wxUSE_CALCTRL" = "yes"; then | |
18407 | cat >> confdefs.h <<\EOF | |
18408 | #define wxUSE_CALENDARCTRL 1 | |
18409 | EOF | |
18410 | ||
18411 | USES_CONTROLS=1 | |
18412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
18413 | fi |
18414 | ||
18415 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 18416 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18417 | #define wxUSE_CARET 1 |
18418 | EOF | |
18419 | ||
1e6feb95 | 18420 | USES_CONTROLS=1 |
10f2d63a VZ |
18421 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
18422 | fi | |
18423 | ||
18424 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 18425 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18426 | #define wxUSE_COMBOBOX 1 |
18427 | EOF | |
18428 | ||
1e6feb95 | 18429 | USES_CONTROLS=1 |
10f2d63a VZ |
18430 | fi |
18431 | ||
18432 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 18433 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18434 | #define wxUSE_CHOICE 1 |
18435 | EOF | |
18436 | ||
1e6feb95 | 18437 | USES_CONTROLS=1 |
10f2d63a VZ |
18438 | fi |
18439 | ||
18440 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 18441 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18442 | #define wxUSE_CHECKBOX 1 |
18443 | EOF | |
18444 | ||
1e6feb95 | 18445 | USES_CONTROLS=1 |
10f2d63a VZ |
18446 | fi |
18447 | ||
18448 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 18449 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18450 | #define wxUSE_CHECKLISTBOX 1 |
18451 | EOF | |
18452 | ||
1e6feb95 | 18453 | USES_CONTROLS=1 |
10f2d63a VZ |
18454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
18455 | fi | |
18456 | ||
18457 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 18458 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18459 | #define wxUSE_GAUGE 1 |
18460 | EOF | |
18461 | ||
1e6feb95 | 18462 | USES_CONTROLS=1 |
10f2d63a VZ |
18463 | fi |
18464 | ||
d6a55c4b VZ |
18465 | if test "$wxUSE_NEW_GRID" = "yes"; then |
18466 | wxUSE_GRID="yes" | |
698dcdb6 | 18467 | cat >> confdefs.h <<\EOF |
d6a55c4b | 18468 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
18469 | EOF |
18470 | ||
1e6feb95 | 18471 | USES_CONTROLS=1 |
d6a55c4b | 18472 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
18473 | fi |
18474 | ||
d6a55c4b | 18475 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 18476 | cat >> confdefs.h <<\EOF |
d6a55c4b | 18477 | #define wxUSE_GRID 1 |
10f2d63a VZ |
18478 | EOF |
18479 | ||
1e6feb95 | 18480 | USES_CONTROLS=1 |
d6a55c4b | 18481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
18482 | fi |
18483 | ||
18484 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18485 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18486 | #define wxUSE_IMAGLIST 1 |
18487 | EOF | |
18488 | ||
18489 | fi | |
18490 | ||
18491 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 18492 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18493 | #define wxUSE_LISTBOX 1 |
18494 | EOF | |
18495 | ||
1e6feb95 | 18496 | USES_CONTROLS=1 |
10f2d63a VZ |
18497 | fi |
18498 | ||
18499 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
18500 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18501 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18502 | #define wxUSE_LISTCTRL 1 |
18503 | EOF | |
18504 | ||
1e6feb95 | 18505 | USES_CONTROLS=1 |
10f2d63a VZ |
18506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
18507 | else | |
698dcdb6 | 18508 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18509 | fi |
18510 | fi | |
18511 | ||
18512 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 18513 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18514 | #define wxUSE_NOTEBOOK 1 |
18515 | EOF | |
18516 | ||
1e6feb95 | 18517 | USES_CONTROLS=1 |
10f2d63a VZ |
18518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
18519 | fi | |
18520 | ||
24176f2c GD |
18521 | if test "$wxUSE_PROPSHEET" = "yes"; then |
18522 | cat >> confdefs.h <<\EOF | |
18523 | #define wxUSE_PROPSHEET 1 | |
18524 | EOF | |
18525 | ||
18526 | USES_CONTROLS=1 | |
18527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
18528 | fi | |
18529 | ||
10f2d63a | 18530 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 18531 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18532 | #define wxUSE_RADIOBOX 1 |
18533 | EOF | |
18534 | ||
1e6feb95 | 18535 | USES_CONTROLS=1 |
10f2d63a VZ |
18536 | fi |
18537 | ||
18538 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 18539 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18540 | #define wxUSE_RADIOBTN 1 |
18541 | EOF | |
18542 | ||
1e6feb95 | 18543 | USES_CONTROLS=1 |
10f2d63a VZ |
18544 | fi |
18545 | ||
18546 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 18547 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18548 | #define wxUSE_SASH 1 |
18549 | EOF | |
18550 | ||
18551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
18552 | fi | |
18553 | ||
18554 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 18555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18556 | #define wxUSE_SCROLLBAR 1 |
18557 | EOF | |
18558 | ||
1e6feb95 | 18559 | USES_CONTROLS=1 |
741a9306 | 18560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
18561 | fi |
18562 | ||
18563 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 18564 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18565 | #define wxUSE_SLIDER 1 |
18566 | EOF | |
18567 | ||
1e6feb95 | 18568 | USES_CONTROLS=1 |
10f2d63a VZ |
18569 | fi |
18570 | ||
18571 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 18572 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18573 | #define wxUSE_SPINBTN 1 |
18574 | EOF | |
18575 | ||
1e6feb95 | 18576 | USES_CONTROLS=1 |
10f2d63a VZ |
18577 | fi |
18578 | ||
56cfaa52 | 18579 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 18580 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
18581 | #define wxUSE_SPINCTRL 1 |
18582 | EOF | |
18583 | ||
1e6feb95 | 18584 | USES_CONTROLS=1 |
56cfaa52 RR |
18585 | fi |
18586 | ||
10f2d63a | 18587 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 18588 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18589 | #define wxUSE_SPLITTER 1 |
18590 | EOF | |
18591 | ||
18592 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
18593 | fi | |
18594 | ||
18595 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 18596 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18597 | #define wxUSE_STATBMP 1 |
18598 | EOF | |
18599 | ||
1e6feb95 | 18600 | USES_CONTROLS=1 |
10f2d63a VZ |
18601 | fi |
18602 | ||
18603 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 18604 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18605 | #define wxUSE_STATBOX 1 |
18606 | EOF | |
18607 | ||
1e6feb95 VZ |
18608 | USES_CONTROLS=1 |
18609 | fi | |
18610 | ||
18611 | if test "$wxUSE_STATTEXT" = "yes"; then | |
18612 | cat >> confdefs.h <<\EOF | |
18613 | #define wxUSE_STATTEXT 1 | |
18614 | EOF | |
18615 | ||
18616 | USES_CONTROLS=1 | |
10f2d63a VZ |
18617 | fi |
18618 | ||
18619 | if test "$wxUSE_STATLINE" = "yes"; then | |
18620 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 18621 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 18622 | else |
698dcdb6 | 18623 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18624 | #define wxUSE_STATLINE 1 |
18625 | EOF | |
18626 | ||
1e6feb95 | 18627 | USES_CONTROLS=1 |
10f2d63a VZ |
18628 | fi |
18629 | fi | |
18630 | ||
18631 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 18632 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18633 | #define wxUSE_STATUSBAR 1 |
18634 | EOF | |
18635 | ||
1e6feb95 | 18636 | USES_CONTROLS=1 |
698dcdb6 | 18637 | |
2286341c | 18638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
18639 | fi |
18640 | ||
18641 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 18642 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18643 | #define wxUSE_TAB_DIALOG 1 |
18644 | EOF | |
18645 | ||
18646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
18647 | fi | |
18648 | ||
1e6feb95 VZ |
18649 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
18650 | cat >> confdefs.h <<\EOF | |
18651 | #define wxUSE_TEXTCTRL 1 | |
18652 | EOF | |
18653 | ||
18654 | USES_CONTROLS=1 | |
18655 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
18656 | fi | |
18657 | ||
1db8dc4a | 18658 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
18659 | if test "$wxUSE_MAC" = 1; then |
18660 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
18661 | wxUSE_TOGGLEBTN=no | |
18662 | fi | |
18663 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
18664 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
18665 | wxUSE_TOGGLEBTN=no |
18666 | fi | |
18667 | ||
18668 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
18669 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
18670 | #define wxUSE_TOGGLEBTN 1 |
18671 | EOF | |
18672 | ||
1e6feb95 | 18673 | USES_CONTROLS=1 |
a45d7ab7 | 18674 | fi |
1db8dc4a VZ |
18675 | fi |
18676 | ||
360d6699 | 18677 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 18678 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
18679 | #define wxUSE_TOOLBAR_SIMPLE 1 |
18680 | EOF | |
18681 | ||
18682 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 18683 | USES_CONTROLS=1 |
360d6699 VZ |
18684 | fi |
18685 | ||
10f2d63a | 18686 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 18687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18688 | #define wxUSE_TOOLBAR 1 |
18689 | EOF | |
18690 | ||
1e6feb95 | 18691 | USES_CONTROLS=1 |
698dcdb6 | 18692 | |
360d6699 VZ |
18693 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
18694 | wxUSE_TOOLBAR_NATIVE="yes" | |
18695 | fi | |
18696 | ||
1e6feb95 VZ |
18697 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
18698 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
18699 | #define wxUSE_TOOLBAR_NATIVE 1 |
18700 | EOF | |
18701 | ||
1e6feb95 VZ |
18702 | USES_CONTROLS=1 |
18703 | fi | |
18704 | ||
18705 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
18706 | fi |
18707 | ||
10f2d63a VZ |
18708 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
18709 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 18710 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
18711 | else |
18712 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 18713 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 18714 | else |
69d27ff7 | 18715 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18716 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 MB |
18717 | else |
18718 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18719 | #define wxUSE_TOOLTIPS 1 |
18720 | EOF | |
18721 | ||
69d27ff7 | 18722 | fi |
10f2d63a VZ |
18723 | fi |
18724 | fi | |
18725 | fi | |
18726 | ||
18727 | if test "$wxUSE_TREECTRL" = "yes"; then | |
18728 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18729 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18730 | #define wxUSE_TREECTRL 1 |
18731 | EOF | |
18732 | ||
1e6feb95 | 18733 | USES_CONTROLS=1 |
10f2d63a VZ |
18734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
18735 | else | |
698dcdb6 | 18736 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18737 | fi |
18738 | fi | |
18739 | ||
9f41d601 | 18740 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 18741 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 18742 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 18743 | else |
485cf710 VZ |
18744 | if test "$wxUSE_MOTIF" = 1; then |
18745 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
18746 | else | |
18747 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
18748 | #define wxUSE_POPUPWIN 1 |
18749 | EOF | |
18750 | ||
9926e4a4 | 18751 | |
485cf710 VZ |
18752 | USES_CONTROLS=1 |
18753 | fi | |
6abe4b65 | 18754 | fi |
9f41d601 RR |
18755 | fi |
18756 | ||
dd964dcc VZ |
18757 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
18758 | cat >> confdefs.h <<\EOF | |
18759 | #define wxUSE_TIPWINDOW 1 | |
18760 | EOF | |
18761 | ||
18762 | fi | |
18763 | ||
1e6feb95 VZ |
18764 | if test "$USES_CONTROLS" = 1; then |
18765 | cat >> confdefs.h <<\EOF | |
18766 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
18767 | EOF |
18768 | ||
10f2d63a VZ |
18769 | fi |
18770 | ||
1e6feb95 | 18771 | |
24176f2c GD |
18772 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
18773 | cat >> confdefs.h <<\EOF | |
18774 | #define wxUSE_TREELAYOUT 1 | |
18775 | EOF | |
18776 | ||
18777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18778 | fi | |
1e6feb95 | 18779 | |
24fd6d87 VZ |
18780 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18781 | cat >> confdefs.h <<\EOF | |
18782 | #define wxUSE_DRAGIMAGE 1 | |
18783 | EOF | |
18784 | ||
18785 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18786 | fi | |
18787 | ||
1e6feb95 | 18788 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18789 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18790 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18791 | EOF |
18792 | ||
1e6feb95 | 18793 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18794 | fi |
18795 | ||
1e6feb95 VZ |
18796 | if test "$wxUSE_METAFILE" = "yes"; then |
18797 | cat >> confdefs.h <<\EOF | |
18798 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18799 | EOF |
18800 | ||
10f2d63a VZ |
18801 | fi |
18802 | ||
1e6feb95 VZ |
18803 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18804 | cat >> confdefs.h <<\EOF | |
18805 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18806 | EOF |
18807 | ||
10f2d63a VZ |
18808 | fi |
18809 | ||
3e44f09d VZ |
18810 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18811 | cat >> confdefs.h <<\EOF | |
18812 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18813 | EOF | |
18814 | ||
18815 | fi | |
18816 | ||
10f2d63a | 18817 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18818 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18819 | #define wxUSE_MINIFRAME 1 |
18820 | EOF | |
18821 | ||
18822 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18823 | fi | |
18824 | ||
18825 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18826 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18827 | #define wxUSE_HTML 1 |
18828 | EOF | |
18829 | ||
18830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18831 | fi |
18832 | ||
18833 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18834 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18835 | #define wxUSE_VALIDATORS 1 |
18836 | EOF | |
703e0a69 | 18837 | |
698dcdb6 VZ |
18838 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
18839 | fi | |
18840 | ||
edae8572 VZ |
18841 | if test "$wxUSE_PALETTE" = "yes" ; then |
18842 | cat >> confdefs.h <<\EOF | |
18843 | #define wxUSE_PALETTE 1 | |
18844 | EOF | |
18845 | ||
18846 | fi | |
18847 | ||
698dcdb6 VZ |
18848 | if test "$wxUSE_IMAGE" = "yes" ; then |
18849 | cat >> confdefs.h <<\EOF | |
18850 | #define wxUSE_IMAGE 1 | |
18851 | EOF | |
18852 | ||
18853 | fi | |
18854 | ||
18855 | if test "$wxUSE_GIF" = "yes" ; then | |
18856 | cat >> confdefs.h <<\EOF | |
18857 | #define wxUSE_GIF 1 | |
18858 | EOF | |
18859 | ||
18860 | fi | |
18861 | ||
18862 | if test "$wxUSE_PCX" = "yes" ; then | |
18863 | cat >> confdefs.h <<\EOF | |
18864 | #define wxUSE_PCX 1 | |
18865 | EOF | |
18866 | ||
18867 | fi | |
18868 | ||
18869 | if test "$wxUSE_PNM" = "yes" ; then | |
18870 | cat >> confdefs.h <<\EOF | |
18871 | #define wxUSE_PNM 1 | |
18872 | EOF | |
18873 | ||
18874 | fi | |
18875 | ||
18876 | if test "$wxUSE_XPM" = "yes" ; then | |
18877 | cat >> confdefs.h <<\EOF | |
18878 | #define wxUSE_XPM 1 | |
18879 | EOF | |
18880 | ||
18881 | fi | |
18882 | ||
a72a4bfa VS |
18883 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
18884 | LIBS=" -lunicows $LIBS" | |
18885 | fi | |
18886 | ||
698dcdb6 | 18887 | |
1e6feb95 VZ |
18888 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
18889 | cat >> confdefs.h <<\EOF | |
18890 | #define wxUSE_CHOICEDLG 1 | |
18891 | EOF | |
18892 | ||
18893 | fi | |
18894 | ||
18895 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18896 | cat >> confdefs.h <<\EOF | |
18897 | #define wxUSE_COLOURDLG 1 | |
18898 | EOF | |
18899 | ||
18900 | fi | |
18901 | ||
18902 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18903 | cat >> confdefs.h <<\EOF | |
18904 | #define wxUSE_FILEDLG 1 | |
18905 | EOF | |
18906 | ||
18907 | fi | |
18908 | ||
8db37e06 VZ |
18909 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
18910 | cat >> confdefs.h <<\EOF | |
18911 | #define wxUSE_FINDREPLDLG 1 | |
18912 | EOF | |
18913 | ||
18914 | fi | |
18915 | ||
1e6feb95 VZ |
18916 | if test "$wxUSE_FONTDLG" = "yes"; then |
18917 | cat >> confdefs.h <<\EOF | |
18918 | #define wxUSE_FONTDLG 1 | |
18919 | EOF | |
18920 | ||
18921 | fi | |
18922 | ||
18923 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18924 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18925 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18926 | else | |
18927 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18928 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18929 | else | |
18930 | cat >> confdefs.h <<\EOF | |
18931 | #define wxUSE_DIRDLG 1 | |
18932 | EOF | |
18933 | ||
18934 | fi | |
18935 | fi | |
18936 | fi | |
18937 | ||
18938 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18939 | cat >> confdefs.h <<\EOF | |
18940 | #define wxUSE_MSGDLG 1 | |
18941 | EOF | |
18942 | ||
18943 | fi | |
18944 | ||
18945 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18946 | cat >> confdefs.h <<\EOF | |
18947 | #define wxUSE_NUMBERDLG 1 | |
18948 | EOF | |
18949 | ||
18950 | fi | |
18951 | ||
18952 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18953 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18954 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18955 | else | |
18956 | cat >> confdefs.h <<\EOF | |
18957 | #define wxUSE_PROGRESSDLG 1 | |
18958 | EOF | |
18959 | ||
18960 | fi | |
18961 | fi | |
18962 | ||
cbca9943 VZ |
18963 | if test "$wxUSE_SPLASH" = "yes"; then |
18964 | cat >> confdefs.h <<\EOF | |
18965 | #define wxUSE_SPLASH 1 | |
18966 | EOF | |
18967 | ||
18968 | fi | |
18969 | ||
1e6feb95 VZ |
18970 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
18971 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18972 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18973 | else | |
18974 | cat >> confdefs.h <<\EOF | |
18975 | #define wxUSE_STARTUP_TIPS 1 | |
18976 | EOF | |
18977 | ||
18978 | fi | |
18979 | fi | |
18980 | ||
18981 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18982 | cat >> confdefs.h <<\EOF | |
18983 | #define wxUSE_TEXTDLG 1 | |
18984 | EOF | |
18985 | ||
18986 | fi | |
18987 | ||
b1f5d087 VZ |
18988 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18989 | cat >> confdefs.h <<\EOF | |
18990 | #define wxUSE_WIZARDDLG 1 | |
18991 | EOF | |
18992 | ||
18993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18994 | fi | |
18995 | ||
1e6feb95 | 18996 | |
698dcdb6 VZ |
18997 | if test "$cross_compiling" = "yes"; then |
18998 | OSINFO="\"$host\"" | |
18999 | else | |
19000 | OSINFO=`uname -s -r -m` | |
19001 | OSINFO="\"$OSINFO\"" | |
19002 | fi | |
19003 | ||
19004 | cat >> confdefs.h <<EOF | |
19005 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
19006 | EOF | |
19007 | ||
19008 | ||
19009 | ||
06dda230 VZ |
19010 | if test "x$prefix" != "xNONE"; then |
19011 | wxPREFIX=$prefix | |
19012 | else | |
19013 | wxPREFIX=$ac_default_prefix | |
19014 | fi | |
19015 | ||
7e67ed0d | 19016 | cat >> confdefs.h <<EOF |
06dda230 | 19017 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
19018 | EOF |
19019 | ||
19020 | ||
19021 | ||
698dcdb6 | 19022 | |
3a922bb4 | 19023 | |
f11bdd03 | 19024 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 19025 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 19026 | fi |
3a922bb4 | 19027 | |
3d63bc3a RL |
19028 | |
19029 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
19030 | ||
698dcdb6 | 19031 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
19032 | |
19033 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
19034 | |
19035 | ||
19036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
19037 | drawing dynamic erase event exec font image \ | |
19038 | minimal richedit rotate widgets" | |
19039 | ||
3a922bb4 RL |
19040 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
19041 | else | |
19042 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
19043 | fi |
19044 | ||
698dcdb6 | 19045 | |
d714471b | 19046 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
19047 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
19048 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 19049 | |
63e7762e | 19050 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 19051 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
19052 | else |
19053 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
19054 | fi | |
19055 | ||
19056 | if test "$GXX" = yes ; then | |
19057 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
19058 | |
19059 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
19060 | CFLAGS="-MMD $CFLAGS" | |
19061 | CXXFLAGS="-MMD $CXXFLAGS" | |
19062 | fi | |
19063 | fi | |
19064 | ||
1725144d | 19065 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
19066 | |
19067 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
19068 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
19069 | ||
3d63bc3a | 19070 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 19071 | |
698dcdb6 VZ |
19072 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
19073 | ||
19074 | ||
19075 | ||
19076 | ||
19077 | ||
19078 | ||
19079 | ||
19080 | ||
19081 | ||
19082 | ||
19083 | ||
19084 | ||
19085 | ||
19086 | ||
19087 | ||
19088 | ||
19089 | ||
19090 | ||
19091 | ||
19092 | ||
19093 | ||
19094 | ||
19095 | ||
19096 | ||
19097 | ||
19098 | ||
19099 | ||
19100 | ||
19101 | ||
19102 | ||
19103 | ||
19104 | ||
19105 | ||
19106 | ||
19107 | ||
19108 | ||
19109 | ||
19110 | ||
19111 | ||
19112 | ||
19113 | ||
19114 | ||
19115 | ||
19116 | ||
19117 | ||
19118 | ||
19119 | ||
19120 | ||
19121 | ||
19122 | ||
19123 | ||
19124 | ||
19125 | ||
19126 | ||
19127 | ||
19128 | ||
19129 | ||
19130 | ||
19131 | ||
19132 | ||
19133 | ||
19134 | ||
19135 | ||
19136 | ||
19137 | ||
19138 | ||
19139 | ||
32832908 | 19140 | |
2f51a9ec GD |
19141 | |
19142 | ||
19143 | ||
19144 | ||
f6bcfd97 | 19145 | |
dad6c0ea | 19146 | |
caa2c79b | 19147 | |
3711412e | 19148 | |
1e6feb95 VZ |
19149 | |
19150 | ||
885d4bf5 VS |
19151 | |
19152 | ||
19153 | ||
19154 | ||
62d0491b | 19155 | |
10f2d63a VZ |
19156 | |
19157 | ||
698dcdb6 | 19158 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
a72a4bfa | 19159 | echo "configure:19160: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
19160 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
19161 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
19162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19163 | else |
698dcdb6 | 19164 | cat > conftestmake <<\EOF |
10f2d63a VZ |
19165 | all: |
19166 | @echo 'ac_maketemp="${MAKE}"' | |
19167 | EOF | |
19168 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 19169 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
19170 | if test -n "$ac_maketemp"; then |
19171 | eval ac_cv_prog_make_${ac_make}_set=yes | |
19172 | else | |
19173 | eval ac_cv_prog_make_${ac_make}_set=no | |
19174 | fi | |
698dcdb6 | 19175 | rm -f conftestmake |
10f2d63a VZ |
19176 | fi |
19177 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 19178 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
19179 | SET_MAKE= |
19180 | else | |
698dcdb6 | 19181 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
19182 | SET_MAKE="MAKE=${MAKE-make}" |
19183 | fi | |
19184 | ||
698dcdb6 | 19185 | |
3a922bb4 RL |
19186 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
19187 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 19188 | fi |
665bbe97 | 19189 | |
698dcdb6 | 19190 | |
10f2d63a | 19191 | |
2224580a | 19192 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 19193 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
19194 | wx_cv_path_ifs=$PATH_IFS |
19195 | wx_cv_program_ext=$PROGRAM_EXT | |
19196 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 19197 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 19198 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 19199 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 19200 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 19201 | subdirs="demos samples utils contrib" |
2224580a VZ |
19202 | |
19203 | fi | |
10f2d63a | 19204 | |
698dcdb6 VZ |
19205 | trap '' 1 2 15 |
19206 | cat > confcache <<\EOF | |
10f2d63a VZ |
19207 | # This file is a shell script that caches the results of configure |
19208 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
19209 | # scripts and configure runs. It is not useful on other systems. |
19210 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 19211 | # |
698dcdb6 VZ |
19212 | # By default, configure uses ./config.cache as the cache file, |
19213 | # creating it if it does not exist already. You can give configure | |
19214 | # the --cache-file=FILE option to use a different cache file; that is | |
19215 | # what configure does when it calls configure scripts in | |
19216 | # subdirectories, so they share the cache. | |
19217 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
19218 | # config.status only pays attention to the cache file if you give it the | |
19219 | # --recheck option to rerun configure. | |
10f2d63a | 19220 | # |
698dcdb6 | 19221 | EOF |
10f2d63a VZ |
19222 | # The following way of writing the cache mishandles newlines in values, |
19223 | # but we know of no workaround that is simple, portable, and efficient. | |
19224 | # So, don't put newlines in cache variables' values. | |
19225 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19226 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
19227 | (set) 2>&1 | |
19228 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19229 | *ac_space=\ *) | |
19230 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
19231 | # turns \\\\ into \\, and sed turns \\ into \). | |
19232 | sed -n \ | |
19233 | -e "s/'/'\\\\''/g" \ | |
19234 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
19235 | ;; | |
19236 | *) | |
19237 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19238 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
19239 | ;; | |
19240 | esac >> confcache | |
19241 | if cmp -s $cache_file confcache; then | |
19242 | : | |
19243 | else | |
10f2d63a | 19244 | if test -w $cache_file; then |
698dcdb6 VZ |
19245 | echo "updating cache $cache_file" |
19246 | cat confcache > $cache_file | |
10f2d63a VZ |
19247 | else |
19248 | echo "not updating unwritable cache $cache_file" | |
19249 | fi | |
19250 | fi | |
19251 | rm -f confcache | |
19252 | ||
698dcdb6 VZ |
19253 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
19254 | ||
10f2d63a VZ |
19255 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19256 | # Let make expand exec_prefix. | |
19257 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19258 | ||
698dcdb6 VZ |
19259 | # Any assignment to VPATH causes Sun make to only execute |
19260 | # the first set of double-colon rules, so remove it if not needed. | |
19261 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 19262 | if test "x$srcdir" = x.; then |
698dcdb6 | 19263 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
19264 | fi |
19265 | ||
698dcdb6 VZ |
19266 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
19267 | ||
10f2d63a VZ |
19268 | DEFS=-DHAVE_CONFIG_H |
19269 | ||
698dcdb6 | 19270 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 19271 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
19272 | |
19273 | echo creating $CONFIG_STATUS | |
19274 | rm -f $CONFIG_STATUS | |
19275 | cat > $CONFIG_STATUS <<EOF | |
19276 | #! /bin/sh | |
10f2d63a VZ |
19277 | # Generated automatically by configure. |
19278 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
19279 | # This directory was configured as follows, |
19280 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19281 | # | |
19282 | # $0 $ac_configure_args | |
19283 | # | |
10f2d63a | 19284 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 19285 | # configure, is in ./config.log if it exists. |
1e487827 | 19286 | |
698dcdb6 VZ |
19287 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
19288 | for ac_option | |
10f2d63a | 19289 | do |
698dcdb6 | 19290 | case "\$ac_option" in |
10f2d63a | 19291 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
19292 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
19293 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
19294 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
19295 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
19296 | exit 0 ;; | |
19297 | -help | --help | --hel | --he | --h) | |
19298 | echo "\$ac_cs_usage"; exit 0 ;; | |
19299 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
19300 | esac |
19301 | done | |
19302 | ||
698dcdb6 VZ |
19303 | ac_given_srcdir=$srcdir |
19304 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 19305 | |
698dcdb6 VZ |
19306 | trap 'rm -fr `echo " |
19307 | wx-config | |
19308 | src/make.env | |
19309 | src/makeprog.env | |
19310 | src/makelib.env | |
19311 | Makefile | |
19312 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 19313 | EOF |
698dcdb6 | 19314 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 19315 | |
698dcdb6 VZ |
19316 | # Protect against being on the right side of a sed subst in config.status. |
19317 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
19318 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
19319 | $ac_vpsub | |
19320 | $extrasub | |
19321 | s%@SHELL@%$SHELL%g | |
19322 | s%@CFLAGS@%$CFLAGS%g | |
19323 | s%@CPPFLAGS@%$CPPFLAGS%g | |
19324 | s%@CXXFLAGS@%$CXXFLAGS%g | |
19325 | s%@FFLAGS@%$FFLAGS%g | |
19326 | s%@DEFS@%$DEFS%g | |
19327 | s%@LDFLAGS@%$LDFLAGS%g | |
19328 | s%@LIBS@%$LIBS%g | |
19329 | s%@exec_prefix@%$exec_prefix%g | |
19330 | s%@prefix@%$prefix%g | |
19331 | s%@program_transform_name@%$program_transform_name%g | |
19332 | s%@bindir@%$bindir%g | |
19333 | s%@sbindir@%$sbindir%g | |
19334 | s%@libexecdir@%$libexecdir%g | |
19335 | s%@datadir@%$datadir%g | |
19336 | s%@sysconfdir@%$sysconfdir%g | |
19337 | s%@sharedstatedir@%$sharedstatedir%g | |
19338 | s%@localstatedir@%$localstatedir%g | |
19339 | s%@libdir@%$libdir%g | |
19340 | s%@includedir@%$includedir%g | |
19341 | s%@oldincludedir@%$oldincludedir%g | |
19342 | s%@infodir@%$infodir%g | |
19343 | s%@mandir@%$mandir%g | |
19344 | s%@host@%$host%g | |
19345 | s%@host_alias@%$host_alias%g | |
19346 | s%@host_cpu@%$host_cpu%g | |
19347 | s%@host_vendor@%$host_vendor%g | |
19348 | s%@host_os@%$host_os%g | |
19349 | s%@target@%$target%g | |
19350 | s%@target_alias@%$target_alias%g | |
19351 | s%@target_cpu@%$target_cpu%g | |
19352 | s%@target_vendor@%$target_vendor%g | |
19353 | s%@target_os@%$target_os%g | |
19354 | s%@build@%$build%g | |
19355 | s%@build_alias@%$build_alias%g | |
19356 | s%@build_cpu@%$build_cpu%g | |
19357 | s%@build_vendor@%$build_vendor%g | |
19358 | s%@build_os@%$build_os%g | |
19359 | s%@CC@%$CC%g | |
19360 | s%@CPP@%$CPP%g | |
19361 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
19362 | s%@RANLIB@%$RANLIB%g |
19363 | s%@AR@%$AR%g | |
19364 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 19365 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 19366 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 VZ |
19367 | s%@STRIP@%$STRIP%g |
19368 | s%@YACC@%$YACC%g | |
19369 | s%@LEX@%$LEX%g | |
19370 | s%@LEXLIB@%$LEXLIB%g | |
19371 | s%@LN_S@%$LN_S%g | |
19372 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
19373 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
19374 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 19375 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
19376 | s%@X_CFLAGS@%$X_CFLAGS%g |
19377 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
19378 | s%@X_LIBS@%$X_LIBS%g | |
19379 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 19380 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 19381 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 19382 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
19383 | s%@LEX_STEM@%$LEX_STEM%g |
19384 | s%@PATH_IFS@%$PATH_IFS%g | |
19385 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
19386 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
19387 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
19388 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
19389 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 19390 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
19391 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
19392 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
19393 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 19394 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
19395 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
19396 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
19397 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
19398 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
19399 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
19400 | s%@WX_ALL@%$WX_ALL%g |
19401 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
19402 | s%@SHARED_LD@%$SHARED_LD%g | |
19403 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
19404 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
19405 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
19406 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
19407 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
19408 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
19409 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
19410 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
19411 | s%@USE_GUI@%$USE_GUI%g | |
19412 | s%@AFMINSTALL@%$AFMINSTALL%g | |
19413 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 19414 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 19415 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
19416 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
19417 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 19418 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
19419 | s%@cross_compiling@%$cross_compiling%g |
19420 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
19421 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
19422 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
19423 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
19424 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
19425 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
19426 | s%@GUIDIST@%$GUIDIST%g |
19427 | s%@PORT_FILES@%$PORT_FILES%g | |
19428 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 19429 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 19430 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 19431 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 19432 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 19433 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 19434 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 19435 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 19436 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 19437 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
19438 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
19439 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 19440 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
19441 | s%@DLLTOOL@%$DLLTOOL%g |
19442 | s%@AS@%$AS%g | |
19443 | s%@NM@%$NM%g | |
19444 | s%@LD@%$LD%g | |
19445 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 19446 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
19447 | s%@SET_MAKE@%$SET_MAKE%g |
19448 | s%@subdirs@%$subdirs%g | |
1e487827 | 19449 | |
1e487827 | 19450 | CEOF |
1e487827 VS |
19451 | EOF |
19452 | ||
698dcdb6 VZ |
19453 | cat >> $CONFIG_STATUS <<\EOF |
19454 | ||
19455 | # Split the substitutions into bite-sized pieces for seds with | |
19456 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
19457 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
19458 | ac_file=1 # Number of current file. | |
19459 | ac_beg=1 # First line for current file. | |
19460 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
19461 | ac_more_lines=: | |
19462 | ac_sed_cmds="" | |
19463 | while $ac_more_lines; do | |
19464 | if test $ac_beg -gt 1; then | |
19465 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
19466 | else | |
19467 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
19468 | fi | |
19469 | if test ! -s conftest.s$ac_file; then | |
19470 | ac_more_lines=false | |
19471 | rm -f conftest.s$ac_file | |
19472 | else | |
19473 | if test -z "$ac_sed_cmds"; then | |
19474 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 19475 | else |
698dcdb6 | 19476 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 19477 | fi |
698dcdb6 VZ |
19478 | ac_file=`expr $ac_file + 1` |
19479 | ac_beg=$ac_end | |
19480 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 19481 | fi |
698dcdb6 VZ |
19482 | done |
19483 | if test -z "$ac_sed_cmds"; then | |
19484 | ac_sed_cmds=cat | |
19485 | fi | |
19486 | EOF | |
10f2d63a | 19487 | |
698dcdb6 VZ |
19488 | cat >> $CONFIG_STATUS <<EOF |
19489 | ||
19490 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
19491 | src/make.env | |
19492 | src/makeprog.env | |
19493 | src/makelib.env | |
19494 | Makefile | |
19495 | "} | |
10f2d63a | 19496 | EOF |
698dcdb6 VZ |
19497 | cat >> $CONFIG_STATUS <<\EOF |
19498 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 19499 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
19500 | case "$ac_file" in |
19501 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
19502 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19503 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
19504 | esac |
19505 | ||
698dcdb6 | 19506 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 19507 | |
698dcdb6 VZ |
19508 | # Remove last slash and all that follows it. Not all systems have dirname. |
19509 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
19510 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
19511 | # The file is in a subdirectory. | |
19512 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
19513 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 19514 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 19515 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
19516 | else |
19517 | ac_dir_suffix= ac_dots= | |
19518 | fi | |
19519 | ||
698dcdb6 VZ |
19520 | case "$ac_given_srcdir" in |
19521 | .) srcdir=. | |
19522 | if test -z "$ac_dots"; then top_srcdir=. | |
19523 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
19524 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 19525 | *) # Relative path. |
698dcdb6 VZ |
19526 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
19527 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
19528 | esac |
19529 | ||
698dcdb6 VZ |
19530 | case "$ac_given_INSTALL" in |
19531 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19532 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
19533 | esac |
19534 | ||
698dcdb6 VZ |
19535 | echo creating "$ac_file" |
19536 | rm -f "$ac_file" | |
19537 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
19538 | case "$ac_file" in | |
19539 | *Makefile*) ac_comsub="1i\\ | |
19540 | # $configure_input" ;; | |
19541 | *) ac_comsub= ;; | |
19542 | esac | |
10f2d63a | 19543 | |
698dcdb6 VZ |
19544 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
19545 | sed -e "$ac_comsub | |
19546 | s%@configure_input@%$configure_input%g | |
19547 | s%@srcdir@%$srcdir%g | |
19548 | s%@top_srcdir@%$top_srcdir%g | |
19549 | s%@INSTALL@%$INSTALL%g | |
19550 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
19551 | fi; done | |
19552 | rm -f conftest.s* | |
10f2d63a VZ |
19553 | |
19554 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
19555 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
19556 | # | |
19557 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
19558 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
19559 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
19560 | ac_dC='\3' | |
19561 | ac_dD='%g' | |
19562 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
19563 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19564 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 19565 | ac_uC=' ' |
698dcdb6 VZ |
19566 | ac_uD='\4%g' |
19567 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
19568 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19569 | ac_eB='$%\1#\2define\3' | |
19570 | ac_eC=' ' | |
19571 | ac_eD='%g' | |
10f2d63a | 19572 | |
698dcdb6 VZ |
19573 | if test "${CONFIG_HEADERS+set}" != set; then |
19574 | EOF | |
19575 | cat >> $CONFIG_STATUS <<EOF | |
19576 | CONFIG_HEADERS="setup.h:setup.h.in" | |
19577 | EOF | |
19578 | cat >> $CONFIG_STATUS <<\EOF | |
19579 | fi | |
19580 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 19581 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
19582 | case "$ac_file" in |
19583 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
19584 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19585 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
19586 | esac |
19587 | ||
698dcdb6 VZ |
19588 | echo creating $ac_file |
19589 | ||
19590 | rm -f conftest.frag conftest.in conftest.out | |
19591 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
19592 | cat $ac_file_inputs > conftest.in | |
19593 | ||
19594 | EOF | |
19595 | ||
19596 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
19597 | # the proper values into config.h.in to produce config.h. And first: | |
19598 | # Protect against being on the right side of a sed subst in config.status. | |
19599 | # Protect against being in an unquoted here document in config.status. | |
19600 | rm -f conftest.vals | |
19601 | cat > conftest.hdr <<\EOF | |
19602 | s/[\\&%]/\\&/g | |
19603 | s%[\\$`]%\\&%g | |
19604 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
19605 | s%ac_d%ac_u%gp | |
19606 | s%ac_u%ac_e%gp | |
19607 | EOF | |
19608 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
19609 | rm -f conftest.hdr | |
10f2d63a VZ |
19610 | |
19611 | # This sed command replaces #undef with comments. This is necessary, for | |
19612 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
19613 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
19614 | cat >> conftest.vals <<\EOF |
19615 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
19616 | EOF |
19617 | ||
698dcdb6 VZ |
19618 | # Break up conftest.vals because some shells have a limit on |
19619 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
19620 | |
19621 | rm -f conftest.tail | |
698dcdb6 | 19622 | while : |
10f2d63a | 19623 | do |
698dcdb6 VZ |
19624 | ac_lines=`grep -c . conftest.vals` |
19625 | # grep -c gives empty output for an empty file on some AIX systems. | |
19626 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
19627 | # Write a limited-size here document to conftest.frag. | |
19628 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
19629 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 19630 | echo 'CEOF |
698dcdb6 VZ |
19631 | sed -f conftest.frag conftest.in > conftest.out |
19632 | rm -f conftest.in | |
19633 | mv conftest.out conftest.in | |
19634 | ' >> $CONFIG_STATUS | |
19635 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
19636 | rm -f conftest.vals | |
19637 | mv conftest.tail conftest.vals | |
10f2d63a | 19638 | done |
698dcdb6 VZ |
19639 | rm -f conftest.vals |
19640 | ||
19641 | cat >> $CONFIG_STATUS <<\EOF | |
19642 | rm -f conftest.frag conftest.h | |
19643 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
19644 | cat conftest.in >> conftest.h | |
19645 | rm -f conftest.in | |
19646 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
19647 | echo "$ac_file is unchanged" | |
19648 | rm -f conftest.h | |
10f2d63a | 19649 | else |
698dcdb6 VZ |
19650 | # Remove last slash and all that follows it. Not all systems have dirname. |
19651 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 19652 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
19653 | # The file is in a subdirectory. |
19654 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 19655 | fi |
698dcdb6 VZ |
19656 | rm -f $ac_file |
19657 | mv conftest.h $ac_file | |
10f2d63a | 19658 | fi |
698dcdb6 VZ |
19659 | fi; done |
19660 | ||
10f2d63a | 19661 | EOF |
698dcdb6 | 19662 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 19663 | |
3a922bb4 | 19664 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
19665 | LN_S="${LN_S}" |
19666 | ||
19667 | ||
19668 | EOF | |
19669 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 19670 | |
652d930d | 19671 | if test ! -h wx-config; then |
991a5759 | 19672 | chmod +x wx-config |
3a922bb4 RL |
19673 | mv wx-config wx${TOOLCHAIN_NAME}-config |
19674 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 19675 | fi |
665bbe97 | 19676 | |
00cf1208 RR |
19677 | if test ! -d lib; then |
19678 | mkdir lib | |
19679 | fi | |
19680 | if test ! -d lib/wx; then | |
19681 | mkdir lib/wx | |
19682 | fi | |
19683 | if test ! -d lib/wx/include; then | |
19684 | mkdir lib/wx/include | |
19685 | fi | |
3a922bb4 RL |
19686 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
19687 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 19688 | fi |
3a922bb4 RL |
19689 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
19690 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
19691 | fi |
19692 | if test -f setup.h; then | |
3a922bb4 | 19693 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 19694 | fi |
698dcdb6 VZ |
19695 | |
19696 | exit 0 | |
10f2d63a VZ |
19697 | EOF |
19698 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
19699 | rm -fr confdefs* $ac_clean_files |
19700 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 19701 | |
2224580a VZ |
19702 | if test "$no_recursion" != yes; then |
19703 | ||
19704 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
19705 | ac_sub_configure_args= | |
19706 | ac_prev= | |
19707 | for ac_arg in $ac_configure_args; do | |
19708 | if test -n "$ac_prev"; then | |
19709 | ac_prev= | |
19710 | continue | |
19711 | fi | |
698dcdb6 | 19712 | case "$ac_arg" in |
2224580a VZ |
19713 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
19714 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
19715 | ac_prev=cache_file ;; | |
19716 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 19717 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
19718 | ;; |
19719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
19720 | ac_prev=srcdir ;; | |
19721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
19722 | ;; | |
19723 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
19724 | esac | |
19725 | done | |
19726 | ||
698dcdb6 | 19727 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
19728 | |
19729 | # Do not complain, so a configure script can configure whichever | |
19730 | # parts of a large source tree are present. | |
698dcdb6 VZ |
19731 | if test ! -d $srcdir/$ac_config_dir; then |
19732 | continue | |
19733 | fi | |
19734 | ||
19735 | echo configuring in $ac_config_dir | |
2224580a | 19736 | |
698dcdb6 | 19737 | case "$srcdir" in |
2224580a VZ |
19738 | .) ;; |
19739 | *) | |
698dcdb6 VZ |
19740 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
19741 | else | |
19742 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
19743 | fi | |
19744 | ;; | |
2224580a VZ |
19745 | esac |
19746 | ||
19747 | ac_popdir=`pwd` | |
698dcdb6 | 19748 | cd $ac_config_dir |
2224580a | 19749 | |
698dcdb6 VZ |
19750 | # A "../" for each directory in /$ac_config_dir. |
19751 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 19752 | |
698dcdb6 | 19753 | case "$srcdir" in |
2224580a VZ |
19754 | .) # No --srcdir option. We are building in place. |
19755 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
19756 | /*) # Absolute path. |
19757 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 19758 | *) # Relative path. |
698dcdb6 | 19759 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
19760 | esac |
19761 | ||
19762 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
19763 | if test -f $ac_sub_srcdir/configure; then |
19764 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
19765 | elif test -f $ac_sub_srcdir/configure.in; then |
19766 | ac_sub_configure=$ac_configure | |
19767 | else | |
698dcdb6 | 19768 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
19769 | ac_sub_configure= |
19770 | fi | |
19771 | ||
19772 | # The recursion is here. | |
19773 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 19774 | |
2224580a | 19775 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
19776 | case "$cache_file" in |
19777 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 19778 | *) # Relative path. |
698dcdb6 | 19779 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 19780 | esac |
698dcdb6 VZ |
19781 | case "$ac_given_INSTALL" in |
19782 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19783 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19784 | esac | |
2224580a | 19785 | |
698dcdb6 | 19786 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 19787 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
19788 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
19789 | then : | |
19790 | else | |
19791 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19792 | fi | |
2224580a VZ |
19793 | fi |
19794 | ||
19795 | cd $ac_popdir | |
19796 | done | |
19797 | fi | |
19798 | ||
698dcdb6 | 19799 |