]>
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" |
698dcdb6 | 73 | ac_help="$ac_help |
8168de4c | 74 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 75 | ac_help="$ac_help |
8168de4c | 76 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 77 | ac_help="$ac_help |
8168de4c | 78 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 79 | ac_help="$ac_help |
8168de4c | 80 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 81 | ac_help="$ac_help |
8168de4c | 82 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 83 | ac_help="$ac_help |
8168de4c | 84 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 85 | ac_help="$ac_help |
d0e9b150 | 86 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
87 | ac_help="$ac_help |
88 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 89 | ac_help="$ac_help |
8168de4c | 90 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 91 | ac_help="$ac_help |
8168de4c | 92 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 93 | ac_help="$ac_help |
8168de4c | 94 | --enable-shared create shared library code" |
698dcdb6 | 95 | ac_help="$ac_help |
3a922bb4 | 96 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 97 | ac_help="$ac_help |
8168de4c | 98 | --enable-optimise create optimised code" |
698dcdb6 | 99 | ac_help="$ac_help |
8168de4c | 100 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
101 | ac_help="$ac_help |
102 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 103 | ac_help="$ac_help |
8168de4c | 104 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 105 | ac_help="$ac_help |
8168de4c | 106 | --enable-debug_info create code with debugging information" |
698dcdb6 | 107 | ac_help="$ac_help |
8168de4c | 108 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 109 | ac_help="$ac_help |
8168de4c | 110 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 111 | ac_help="$ac_help |
8168de4c | 112 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 113 | ac_help="$ac_help |
8168de4c | 114 | --enable-profile create code with profiling information" |
698dcdb6 | 115 | ac_help="$ac_help |
8168de4c | 116 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 117 | ac_help="$ac_help |
b3e8d00a | 118 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 119 | ac_help="$ac_help |
8168de4c | 120 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 121 | ac_help="$ac_help |
8168de4c | 122 | --enable-no_deps create code without dependency information" |
54276ccf | 123 | ac_help="$ac_help |
b3e8d00a | 124 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 125 | ac_help="$ac_help |
b3e8d00a | 126 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 127 | ac_help="$ac_help |
8168de4c | 128 | --enable-intl use internationalization system" |
698dcdb6 | 129 | ac_help="$ac_help |
8168de4c | 130 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 131 | ac_help="$ac_help |
8168de4c | 132 | --enable-sockets use socket/network classes" |
698dcdb6 | 133 | ac_help="$ac_help |
8168de4c | 134 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 135 | ac_help="$ac_help |
8168de4c | 136 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 137 | ac_help="$ac_help |
8168de4c | 138 | --enable-datetime use wxDateTime class" |
1e6feb95 | 139 | ac_help="$ac_help |
8168de4c | 140 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 141 | ac_help="$ac_help |
8168de4c | 142 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 143 | ac_help="$ac_help |
8168de4c | 144 | --enable-dialupman use dialup network classes" |
698dcdb6 | 145 | ac_help="$ac_help |
8168de4c | 146 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 147 | ac_help="$ac_help |
8168de4c | 148 | --enable-timer use wxTimer class" |
698dcdb6 | 149 | ac_help="$ac_help |
8168de4c | 150 | --enable-wave use wxWave class" |
698dcdb6 | 151 | ac_help="$ac_help |
8168de4c | 152 | --enable-fraction use wxFraction class" |
698dcdb6 | 153 | ac_help="$ac_help |
8168de4c | 154 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 155 | ac_help="$ac_help |
8168de4c | 156 | --enable-longlong use wxLongLong class" |
698dcdb6 | 157 | ac_help="$ac_help |
8168de4c | 158 | --enable-geometry use geometry class" |
698dcdb6 | 159 | ac_help="$ac_help |
8168de4c | 160 | --enable-log use logging system" |
698dcdb6 | 161 | ac_help="$ac_help |
8168de4c | 162 | --enable-streams use wxStream etc classes" |
698dcdb6 | 163 | ac_help="$ac_help |
8168de4c | 164 | --enable-file use wxFile classes" |
698dcdb6 | 165 | ac_help="$ac_help |
8168de4c | 166 | --enable-ffile use wxFFile classes" |
1e6feb95 | 167 | ac_help="$ac_help |
a3a584a7 VZ |
168 | --enable-textbuf use wxTextBuffer class" |
169 | ac_help="$ac_help | |
170 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 171 | ac_help="$ac_help |
8168de4c | 172 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 173 | ac_help="$ac_help |
8168de4c | 174 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 175 | ac_help="$ac_help |
8168de4c | 176 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 177 | ac_help="$ac_help |
8168de4c | 178 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 179 | ac_help="$ac_help |
8168de4c | 180 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 181 | ac_help="$ac_help |
8168de4c | 182 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 183 | ac_help="$ac_help |
8168de4c | 184 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 185 | ac_help="$ac_help |
8168de4c | 186 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 187 | ac_help="$ac_help |
8168de4c | 188 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 189 | ac_help="$ac_help |
8168de4c | 190 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 191 | ac_help="$ac_help |
69d27ff7 | 192 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 193 | ac_help="$ac_help |
b3e8d00a | 194 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 195 | ac_help="$ac_help |
8168de4c | 196 | --enable-threads use threads" |
698dcdb6 | 197 | ac_help="$ac_help |
8168de4c | 198 | --enable-serial use class serialization" |
698dcdb6 | 199 | ac_help="$ac_help |
8168de4c | 200 | --enable-docview use document view architecture" |
698dcdb6 | 201 | ac_help="$ac_help |
3379ed37 | 202 | --enable-help use help subsystem" |
29fd3c0c VS |
203 | ac_help="$ac_help |
204 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
205 | ac_help="$ac_help |
206 | --enable-html use wxHTML sub-library" | |
207 | ac_help="$ac_help | |
208 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 209 | ac_help="$ac_help |
8168de4c | 210 | --enable-constraints use layout-constraints system" |
698dcdb6 | 211 | ac_help="$ac_help |
8168de4c | 212 | --enable-printarch use printing architecture" |
698dcdb6 | 213 | ac_help="$ac_help |
8168de4c | 214 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 215 | ac_help="$ac_help |
8168de4c | 216 | --enable-loggui use standard GUI logger" |
1e6feb95 | 217 | ac_help="$ac_help |
8168de4c | 218 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
219 | ac_help="$ac_help |
220 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 221 | ac_help="$ac_help |
8168de4c | 222 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 223 | ac_help="$ac_help |
8168de4c | 224 | --enable-prologio use Prolog IO library" |
698dcdb6 | 225 | ac_help="$ac_help |
8168de4c | 226 | --enable-resources use wxWindows resources" |
698dcdb6 | 227 | ac_help="$ac_help |
8168de4c | 228 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 229 | ac_help="$ac_help |
8168de4c | 230 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 231 | ac_help="$ac_help |
8168de4c | 232 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 233 | ac_help="$ac_help |
8168de4c | 234 | --enable-metafile use win32 metafiles" |
698dcdb6 | 235 | ac_help="$ac_help |
24176f2c | 236 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 237 | ac_help="$ac_help |
8168de4c | 238 | --enable-controls use all usual controls" |
698dcdb6 | 239 | ac_help="$ac_help |
8168de4c | 240 | --enable-accel use accelerators" |
698dcdb6 | 241 | ac_help="$ac_help |
8168de4c | 242 | --enable-button use wxButton class" |
698dcdb6 | 243 | ac_help="$ac_help |
8168de4c | 244 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 245 | ac_help="$ac_help |
8168de4c | 246 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 247 | ac_help="$ac_help |
8168de4c | 248 | --enable-caret use wxCaret class" |
1e6feb95 | 249 | ac_help="$ac_help |
8168de4c | 250 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 251 | ac_help="$ac_help |
8168de4c | 252 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 253 | ac_help="$ac_help |
8168de4c | 254 | --enable-choice use wxChoice class" |
698dcdb6 | 255 | ac_help="$ac_help |
8168de4c | 256 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 257 | ac_help="$ac_help |
8168de4c | 258 | --enable-gauge use wxGauge class" |
698dcdb6 | 259 | ac_help="$ac_help |
8168de4c | 260 | --enable-grid use wxGrid class" |
698dcdb6 | 261 | ac_help="$ac_help |
8168de4c | 262 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 263 | ac_help="$ac_help |
8168de4c | 264 | --enable-imaglist use wxImageList class" |
698dcdb6 | 265 | ac_help="$ac_help |
8168de4c | 266 | --enable-listbox use wxListBox class" |
698dcdb6 | 267 | ac_help="$ac_help |
8168de4c | 268 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 269 | ac_help="$ac_help |
8168de4c | 270 | --enable-notebook use wxNotebook class" |
24176f2c GD |
271 | ac_help="$ac_help |
272 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 273 | ac_help="$ac_help |
8168de4c | 274 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 275 | ac_help="$ac_help |
8168de4c | 276 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 277 | ac_help="$ac_help |
8168de4c | 278 | --enable-sash use wxSashWindow class" |
698dcdb6 | 279 | ac_help="$ac_help |
8168de4c | 280 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 281 | ac_help="$ac_help |
8168de4c | 282 | --enable-slider use wxSlider class" |
698dcdb6 | 283 | ac_help="$ac_help |
8168de4c | 284 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 285 | ac_help="$ac_help |
8168de4c | 286 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 287 | ac_help="$ac_help |
8168de4c | 288 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 289 | ac_help="$ac_help |
8168de4c | 290 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 291 | ac_help="$ac_help |
8168de4c | 292 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 293 | ac_help="$ac_help |
8168de4c | 294 | --enable-statline use wxStaticLine class" |
698dcdb6 | 295 | ac_help="$ac_help |
8168de4c | 296 | --enable-stattext use wxStaticText class" |
1e6feb95 | 297 | ac_help="$ac_help |
8168de4c | 298 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 299 | ac_help="$ac_help |
8168de4c | 300 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 301 | ac_help="$ac_help |
8168de4c | 302 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 303 | ac_help="$ac_help |
8168de4c | 304 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 305 | ac_help="$ac_help |
8168de4c | 306 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 307 | ac_help="$ac_help |
8168de4c | 308 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 309 | ac_help="$ac_help |
8168de4c | 310 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 311 | ac_help="$ac_help |
8168de4c | 312 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
313 | ac_help="$ac_help |
314 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
315 | ac_help="$ac_help |
316 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 317 | ac_help="$ac_help |
b3e8d00a | 318 | --enable-commondlg use all common dialogs" |
698dcdb6 | 319 | ac_help="$ac_help |
8168de4c | 320 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 321 | ac_help="$ac_help |
8168de4c | 322 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 323 | ac_help="$ac_help |
8168de4c | 324 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
325 | ac_help="$ac_help |
326 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 327 | ac_help="$ac_help |
8168de4c | 328 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 329 | ac_help="$ac_help |
8168de4c | 330 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 331 | ac_help="$ac_help |
8168de4c | 332 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 333 | ac_help="$ac_help |
8168de4c | 334 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
335 | ac_help="$ac_help |
336 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 337 | ac_help="$ac_help |
8168de4c | 338 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 339 | ac_help="$ac_help |
8168de4c | 340 | --enable-tipdlg use startup tips" |
698dcdb6 | 341 | ac_help="$ac_help |
8168de4c | 342 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
343 | ac_help="$ac_help |
344 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 345 | ac_help="$ac_help |
8168de4c | 346 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 347 | ac_help="$ac_help |
8168de4c | 348 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 349 | ac_help="$ac_help |
8168de4c | 350 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 351 | ac_help="$ac_help |
8168de4c | 352 | --enable-splines use spline drawing code" |
698dcdb6 | 353 | ac_help="$ac_help |
8168de4c | 354 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 355 | ac_help="$ac_help |
8168de4c | 356 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 357 | ac_help="$ac_help |
b3e8d00a | 358 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 359 | ac_help="$ac_help |
8168de4c | 360 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
361 | ac_help="$ac_help |
362 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
363 | ac_help="$ac_help |
364 | --enable-palette use wxPalette class" | |
1e6feb95 | 365 | ac_help="$ac_help |
8168de4c | 366 | --enable-image use wxImage class" |
698dcdb6 | 367 | ac_help="$ac_help |
8168de4c | 368 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 369 | ac_help="$ac_help |
8168de4c | 370 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 371 | ac_help="$ac_help |
8168de4c | 372 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 373 | ac_help="$ac_help |
8168de4c | 374 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
375 | ac_help="$ac_help |
376 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
377 | ac_help="$ac_help | |
378 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
379 | ac_help="$ac_help | |
380 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
381 | ac_help="$ac_help |
382 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
383 | ac_help="$ac_help | |
384 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
385 | ac_help="$ac_help | |
386 | --disable-gtktest Do not try to compile and run a test GTK program" | |
387 | ac_help="$ac_help | |
388 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
389 | ac_help="$ac_help | |
390 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
391 | ac_help="$ac_help | |
392 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
393 | ac_help="$ac_help |
394 | --with-x use the X Window System" | |
10f2d63a VZ |
395 | |
396 | # Initialize some variables set by options. | |
397 | # The variables have the same names as the options, with | |
398 | # dashes changed to underlines. | |
698dcdb6 VZ |
399 | build=NONE |
400 | cache_file=./config.cache | |
10f2d63a | 401 | exec_prefix=NONE |
698dcdb6 | 402 | host=NONE |
10f2d63a | 403 | no_create= |
698dcdb6 | 404 | nonopt=NONE |
10f2d63a VZ |
405 | no_recursion= |
406 | prefix=NONE | |
407 | program_prefix=NONE | |
408 | program_suffix=NONE | |
409 | program_transform_name=s,x,x, | |
410 | silent= | |
411 | site= | |
412 | srcdir= | |
698dcdb6 | 413 | target=NONE |
10f2d63a VZ |
414 | verbose= |
415 | x_includes=NONE | |
416 | x_libraries=NONE | |
417 | bindir='${exec_prefix}/bin' | |
418 | sbindir='${exec_prefix}/sbin' | |
419 | libexecdir='${exec_prefix}/libexec' | |
420 | datadir='${prefix}/share' | |
421 | sysconfdir='${prefix}/etc' | |
422 | sharedstatedir='${prefix}/com' | |
423 | localstatedir='${prefix}/var' | |
424 | libdir='${exec_prefix}/lib' | |
425 | includedir='${prefix}/include' | |
426 | oldincludedir='/usr/include' | |
427 | infodir='${prefix}/info' | |
428 | mandir='${prefix}/man' | |
429 | ||
698dcdb6 VZ |
430 | # Initialize some other variables. |
431 | subdirs= | |
432 | MFLAGS= MAKEFLAGS= | |
433 | SHELL=${CONFIG_SHELL-/bin/sh} | |
434 | # Maximum number of lines to put in a shell here document. | |
435 | ac_max_here_lines=12 | |
10f2d63a VZ |
436 | |
437 | ac_prev= | |
438 | for ac_option | |
439 | do | |
698dcdb6 | 440 | |
10f2d63a VZ |
441 | # If the previous option needs an argument, assign it. |
442 | if test -n "$ac_prev"; then | |
443 | eval "$ac_prev=\$ac_option" | |
444 | ac_prev= | |
445 | continue | |
446 | fi | |
447 | ||
698dcdb6 VZ |
448 | case "$ac_option" in |
449 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
450 | *) ac_optarg= ;; | |
451 | esac | |
10f2d63a VZ |
452 | |
453 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
454 | ||
698dcdb6 | 455 | case "$ac_option" in |
10f2d63a VZ |
456 | |
457 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
458 | ac_prev=bindir ;; | |
459 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 460 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
461 | |
462 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 463 | ac_prev=build ;; |
10f2d63a | 464 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 465 | build="$ac_optarg" ;; |
10f2d63a VZ |
466 | |
467 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
468 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
469 | ac_prev=cache_file ;; | |
470 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
471 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 472 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
473 | |
474 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
475 | ac_prev=datadir ;; | |
476 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
477 | | --da=*) | |
698dcdb6 | 478 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
479 | |
480 | -disable-* | --disable-*) | |
698dcdb6 | 481 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 482 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
483 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
484 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
485 | fi | |
486 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
487 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
488 | |
489 | -enable-* | --enable-*) | |
698dcdb6 | 490 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 491 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
492 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
493 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
494 | fi | |
495 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
496 | case "$ac_option" in | |
497 | *=*) ;; | |
10f2d63a VZ |
498 | *) ac_optarg=yes ;; |
499 | esac | |
698dcdb6 | 500 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
501 | |
502 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
503 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
504 | | --exec | --exe | --ex) | |
505 | ac_prev=exec_prefix ;; | |
506 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
507 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
508 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 509 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
510 | |
511 | -gas | --gas | --ga | --g) | |
512 | # Obsolete; use --with-gas. | |
513 | with_gas=yes ;; | |
514 | ||
698dcdb6 VZ |
515 | -help | --help | --hel | --he) |
516 | # Omit some internal or obsolete options to make the list less imposing. | |
517 | # This message is too long to be a string in the A/UX 3.1 sh. | |
518 | cat << EOF | |
519 | Usage: configure [options] [host] | |
520 | Options: [defaults in brackets after descriptions] | |
521 | Configuration: | |
522 | --cache-file=FILE cache test results in FILE | |
523 | --help print this message | |
524 | --no-create do not create output files | |
525 | --quiet, --silent do not print \`checking...' messages | |
526 | --version print the version of autoconf that created configure | |
527 | Directory and file names: | |
528 | --prefix=PREFIX install architecture-independent files in PREFIX | |
529 | [$ac_default_prefix] | |
530 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
531 | [same as prefix] | |
532 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
533 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
534 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
535 | --datadir=DIR read-only architecture-independent data in DIR | |
536 | [PREFIX/share] | |
537 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
538 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
539 | [PREFIX/com] | |
540 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
541 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
542 | --includedir=DIR C header files in DIR [PREFIX/include] | |
543 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
544 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
545 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
546 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
547 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
548 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
549 | --program-transform-name=PROGRAM | |
550 | run sed PROGRAM on installed program names | |
551 | EOF | |
552 | cat << EOF | |
553 | Host type: | |
554 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
555 | --host=HOST configure for HOST [guessed] | |
556 | --target=TARGET configure for TARGET [TARGET=HOST] | |
557 | Features and packages: | |
558 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
559 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
560 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
561 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
562 | --x-includes=DIR X include files are in DIR | |
563 | --x-libraries=DIR X library files are in DIR | |
564 | EOF | |
565 | if test -n "$ac_help"; then | |
566 | echo "--enable and --with options recognized:$ac_help" | |
567 | fi | |
568 | exit 0 ;; | |
10f2d63a VZ |
569 | |
570 | -host | --host | --hos | --ho) | |
698dcdb6 | 571 | ac_prev=host ;; |
10f2d63a | 572 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 573 | host="$ac_optarg" ;; |
10f2d63a VZ |
574 | |
575 | -includedir | --includedir | --includedi | --included | --include \ | |
576 | | --includ | --inclu | --incl | --inc) | |
577 | ac_prev=includedir ;; | |
578 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
579 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 580 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
581 | |
582 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
583 | ac_prev=infodir ;; | |
584 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 585 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
586 | |
587 | -libdir | --libdir | --libdi | --libd) | |
588 | ac_prev=libdir ;; | |
589 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 590 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
591 | |
592 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
593 | | --libexe | --libex | --libe) | |
594 | ac_prev=libexecdir ;; | |
595 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
596 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 597 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
598 | |
599 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
600 | | --localstate | --localstat | --localsta | --localst \ | |
601 | | --locals | --local | --loca | --loc | --lo) | |
602 | ac_prev=localstatedir ;; | |
603 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
604 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
605 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 606 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
607 | |
608 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
609 | ac_prev=mandir ;; | |
610 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 611 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
612 | |
613 | -nfp | --nfp | --nf) | |
614 | # Obsolete; use --without-fp. | |
615 | with_fp=no ;; | |
616 | ||
617 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
618 | | --no-cr | --no-c) | |
619 | no_create=yes ;; | |
620 | ||
621 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
622 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
623 | no_recursion=yes ;; | |
624 | ||
625 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
626 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
627 | | --oldin | --oldi | --old | --ol | --o) | |
628 | ac_prev=oldincludedir ;; | |
629 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
630 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
631 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 632 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
633 | |
634 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
635 | ac_prev=prefix ;; | |
636 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 637 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
638 | |
639 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
640 | | --program-pre | --program-pr | --program-p) | |
641 | ac_prev=program_prefix ;; | |
642 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
643 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 644 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
645 | |
646 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
647 | | --program-suf | --program-su | --program-s) | |
648 | ac_prev=program_suffix ;; | |
649 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
650 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 651 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
652 | |
653 | -program-transform-name | --program-transform-name \ | |
654 | | --program-transform-nam | --program-transform-na \ | |
655 | | --program-transform-n | --program-transform- \ | |
656 | | --program-transform | --program-transfor \ | |
657 | | --program-transfo | --program-transf \ | |
658 | | --program-trans | --program-tran \ | |
659 | | --progr-tra | --program-tr | --program-t) | |
660 | ac_prev=program_transform_name ;; | |
661 | -program-transform-name=* | --program-transform-name=* \ | |
662 | | --program-transform-nam=* | --program-transform-na=* \ | |
663 | | --program-transform-n=* | --program-transform-=* \ | |
664 | | --program-transform=* | --program-transfor=* \ | |
665 | | --program-transfo=* | --program-transf=* \ | |
666 | | --program-trans=* | --program-tran=* \ | |
667 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 668 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
669 | |
670 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
671 | | -silent | --silent | --silen | --sile | --sil) | |
672 | silent=yes ;; | |
673 | ||
674 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
675 | ac_prev=sbindir ;; | |
676 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
677 | | --sbi=* | --sb=*) | |
698dcdb6 | 678 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
681 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
682 | | --sharedst | --shareds | --shared | --share | --shar \ | |
683 | | --sha | --sh) | |
684 | ac_prev=sharedstatedir ;; | |
685 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
686 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
687 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
688 | | --sha=* | --sh=*) | |
698dcdb6 | 689 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
690 | |
691 | -site | --site | --sit) | |
692 | ac_prev=site ;; | |
693 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 694 | site="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
697 | ac_prev=srcdir ;; | |
698 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 699 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
700 | |
701 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
702 | | --syscon | --sysco | --sysc | --sys | --sy) | |
703 | ac_prev=sysconfdir ;; | |
704 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
705 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 706 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
707 | |
708 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 709 | ac_prev=target ;; |
10f2d63a | 710 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 711 | target="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
714 | verbose=yes ;; | |
715 | ||
698dcdb6 VZ |
716 | -version | --version | --versio | --versi | --vers) |
717 | echo "configure generated by autoconf version 2.13" | |
718 | exit 0 ;; | |
10f2d63a VZ |
719 | |
720 | -with-* | --with-*) | |
698dcdb6 | 721 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 722 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
723 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
724 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
725 | fi | |
10f2d63a | 726 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
727 | case "$ac_option" in |
728 | *=*) ;; | |
10f2d63a VZ |
729 | *) ac_optarg=yes ;; |
730 | esac | |
698dcdb6 | 731 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
732 | |
733 | -without-* | --without-*) | |
698dcdb6 | 734 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 735 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
736 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
737 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
738 | fi | |
739 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
740 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
741 | |
742 | --x) | |
743 | # Obsolete; use --with-x. | |
744 | with_x=yes ;; | |
745 | ||
746 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
747 | | --x-incl | --x-inc | --x-in | --x-i) | |
748 | ac_prev=x_includes ;; | |
749 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
750 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 751 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
752 | |
753 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
754 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
755 | ac_prev=x_libraries ;; | |
756 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
757 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 758 | x_libraries="$ac_optarg" ;; |
10f2d63a | 759 | |
698dcdb6 | 760 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
761 | ;; |
762 | ||
763 | *) | |
698dcdb6 VZ |
764 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
765 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
766 | fi | |
767 | if test "x$nonopt" != xNONE; then | |
768 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
769 | fi | |
770 | nonopt="$ac_option" | |
10f2d63a VZ |
771 | ;; |
772 | ||
773 | esac | |
774 | done | |
775 | ||
776 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
777 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
778 | fi | |
779 | ||
780 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
781 | ||
782 | # File descriptor usage: | |
783 | # 0 standard input | |
784 | # 1 file creation | |
785 | # 2 errors and warnings | |
786 | # 3 some systems may open it to /dev/tty | |
787 | # 4 used on the Kubota Titan | |
788 | # 6 checking for... messages and results | |
789 | # 5 compiler messages saved in config.log | |
790 | if test "$silent" = yes; then | |
791 | exec 6>/dev/null | |
792 | else | |
793 | exec 6>&1 | |
10f2d63a | 794 | fi |
698dcdb6 VZ |
795 | exec 5>./config.log |
796 | ||
797 | echo "\ | |
798 | This file contains any messages produced by compilers while | |
799 | running configure, to aid debugging if configure makes a mistake. | |
800 | " 1>&5 | |
10f2d63a | 801 | |
698dcdb6 VZ |
802 | # Strip out --no-create and --no-recursion so they do not pile up. |
803 | # Also quote any args containing shell metacharacters. | |
804 | ac_configure_args= | |
805 | for ac_arg | |
10f2d63a | 806 | do |
698dcdb6 VZ |
807 | case "$ac_arg" in |
808 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
809 | | --no-cr | --no-c) ;; | |
810 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
811 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
812 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
813 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
814 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
815 | esac |
816 | done | |
817 | ||
698dcdb6 VZ |
818 | # NLS nuisances. |
819 | # Only set these to C if already set. These must not be set unconditionally | |
820 | # because not all systems understand e.g. LANG=C (notably SCO). | |
821 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
822 | # Non-C LC_CTYPE values break the ctype check. | |
823 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
824 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
825 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
826 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 827 | |
698dcdb6 VZ |
828 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
829 | rm -rf conftest* confdefs.h | |
830 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
831 | echo > confdefs.h | |
10f2d63a | 832 | |
698dcdb6 VZ |
833 | # A filename unique to this package, relative to the directory that |
834 | # configure is in, which we can look for to find out if srcdir is correct. | |
835 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
836 | |
837 | # Find the source files, if location was not specified. | |
838 | if test -z "$srcdir"; then | |
839 | ac_srcdir_defaulted=yes | |
840 | # Try the directory containing this script, then its parent. | |
841 | ac_prog=$0 | |
698dcdb6 | 842 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
843 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
844 | srcdir=$ac_confdir | |
845 | if test ! -r $srcdir/$ac_unique_file; then | |
846 | srcdir=.. | |
847 | fi | |
848 | else | |
849 | ac_srcdir_defaulted=no | |
850 | fi | |
851 | if test ! -r $srcdir/$ac_unique_file; then | |
852 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 853 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 854 | else |
698dcdb6 | 855 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
856 | fi |
857 | fi | |
698dcdb6 | 858 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
859 | |
860 | # Prefer explicitly selected file to automatically selected ones. | |
861 | if test -z "$CONFIG_SITE"; then | |
862 | if test "x$prefix" != xNONE; then | |
863 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
864 | else | |
865 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
866 | fi | |
867 | fi | |
868 | for ac_site_file in $CONFIG_SITE; do | |
869 | if test -r "$ac_site_file"; then | |
698dcdb6 | 870 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
871 | . "$ac_site_file" |
872 | fi | |
873 | done | |
874 | ||
875 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
876 | echo "loading cache $cache_file" |
877 | . $cache_file | |
10f2d63a | 878 | else |
698dcdb6 VZ |
879 | echo "creating cache $cache_file" |
880 | > $cache_file | |
10f2d63a VZ |
881 | fi |
882 | ||
883 | ac_ext=c | |
698dcdb6 | 884 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 885 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
886 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
887 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
888 | cross_compiling=$ac_cv_prog_cc_cross | |
889 | ||
890 | ac_exeext= | |
891 | ac_objext=o | |
892 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
893 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
894 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
895 | ac_n= ac_c=' | |
896 | ' ac_t=' ' | |
897 | else | |
898 | ac_n=-n ac_c= ac_t= | |
899 | fi | |
10f2d63a | 900 | else |
698dcdb6 | 901 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 902 | fi |
698dcdb6 VZ |
903 | |
904 | ||
10f2d63a | 905 | |
7c66a493 VZ |
906 | ac_aux_dir= |
907 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
908 | if test -f $ac_dir/install-sh; then | |
909 | ac_aux_dir=$ac_dir | |
910 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
911 | break | |
912 | elif 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 | fi | |
917 | done | |
918 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 919 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 920 | fi |
698dcdb6 VZ |
921 | ac_config_guess=$ac_aux_dir/config.guess |
922 | ac_config_sub=$ac_aux_dir/config.sub | |
923 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 924 | |
698dcdb6 VZ |
925 | |
926 | # Do some error checking and defaulting for the host and target type. | |
927 | # The inputs are: | |
928 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
929 | # | |
930 | # The rules are: | |
931 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
932 | # same time. | |
933 | # 2. Host defaults to nonopt. | |
934 | # 3. If nonopt is not specified, then host defaults to the current host, | |
935 | # as determined by config.guess. | |
936 | # 4. Target and build default to nonopt. | |
937 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
938 | |
939 | # The aliases save the names the user supplied, while $host etc. | |
940 | # will get canonicalized. | |
698dcdb6 VZ |
941 | case $host---$target---$nonopt in |
942 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
943 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
944 | esac | |
945 | ||
946 | ||
947 | # Make sure we can run config.sub. | |
948 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
949 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
950 | fi | |
951 | ||
952 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3f345b47 | 953 | echo "configure:954: checking host system type" >&5 |
698dcdb6 VZ |
954 | |
955 | host_alias=$host | |
956 | case "$host_alias" in | |
957 | NONE) | |
958 | case $nonopt in | |
959 | NONE) | |
960 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
961 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
962 | fi ;; | |
963 | *) host_alias=$nonopt ;; | |
964 | esac ;; | |
965 | esac | |
966 | ||
967 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
968 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
969 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
970 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
971 | echo "$ac_t""$host" 1>&6 | |
972 | ||
973 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3f345b47 | 974 | echo "configure:975: checking target system type" >&5 |
698dcdb6 VZ |
975 | |
976 | target_alias=$target | |
977 | case "$target_alias" in | |
978 | NONE) | |
979 | case $nonopt in | |
980 | NONE) target_alias=$host_alias ;; | |
981 | *) target_alias=$nonopt ;; | |
982 | esac ;; | |
983 | esac | |
984 | ||
985 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
986 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
987 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
988 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
989 | echo "$ac_t""$target" 1>&6 | |
990 | ||
991 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3f345b47 | 992 | echo "configure:993: checking build system type" >&5 |
698dcdb6 VZ |
993 | |
994 | build_alias=$build | |
995 | case "$build_alias" in | |
996 | NONE) | |
997 | case $nonopt in | |
998 | NONE) build_alias=$host_alias ;; | |
999 | *) build_alias=$nonopt ;; | |
1000 | esac ;; | |
1001 | esac | |
1002 | ||
1003 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1004 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1005 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1006 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1007 | echo "$ac_t""$build" 1>&6 | |
1008 | ||
1009 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1010 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1011 | NONENONEs,x,x, && | |
1012 | program_prefix=${target_alias}- | |
1013 | ||
698dcdb6 VZ |
1014 | |
1015 | ||
10f2d63a | 1016 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1017 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1018 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1019 | |
10f2d63a | 1020 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1021 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1022 | |
978f1259 RL |
1023 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1024 | ||
6c01ec02 | 1025 | WX_CURRENT=1 |
6426998c RL |
1026 | WX_REVISION=0 |
1027 | WX_AGE=0 | |
1028 | ||
698dcdb6 VZ |
1029 | |
1030 | ||
10f2d63a VZ |
1031 | USE_UNIX=1 |
1032 | USE_WIN32=0 | |
b12915c1 | 1033 | USE_BEOS=0 |
1216f52d | 1034 | USE_MAC=0 |
b12915c1 | 1035 | |
10f2d63a VZ |
1036 | USE_LINUX= |
1037 | USE_SGI= | |
1038 | USE_HPUX= | |
1039 | USE_SYSV= | |
1040 | USE_SVR4= | |
1041 | USE_AIX= | |
1042 | USE_SUN= | |
1043 | USE_SOLARIS= | |
1044 | USE_SUNOS= | |
1045 | USE_ALPHA= | |
1046 | USE_OSF= | |
1047 | USE_BSD= | |
f11bdd03 | 1048 | USE_DARWIN= |
10f2d63a | 1049 | USE_FREEBSD= |
95c8801c | 1050 | USE_OPENBSD= |
f6bcfd97 | 1051 | USE_NETBSD= |
10f2d63a VZ |
1052 | USE_VMS= |
1053 | USE_ULTRIX= | |
10f2d63a VZ |
1054 | USE_DATA_GENERAL= |
1055 | ||
ab9b9eab VZ |
1056 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1057 | ||
3f345b47 VZ |
1058 | CPP_MT_FLAG=-D_REENTRANT |
1059 | ||
77e13408 | 1060 | ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE" |
10f2d63a VZ |
1061 | |
1062 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1063 | DEFAULT_wxUSE_MAC=0 |
1064 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1065 | DEFAULT_wxUSE_MOTIF=0 |
1066 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1067 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1068 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1069 | |
1070 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1071 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1072 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1073 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1074 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1075 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1076 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1077 | |
d6a55c4b | 1078 | PROGRAM_EXT= |
3a922bb4 | 1079 | SO_SUFFIX=so |
d6a55c4b | 1080 | |
10f2d63a VZ |
1081 | case "${host}" in |
1082 | *-hp-hpux* ) | |
1083 | USE_HPUX=1 | |
1084 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1085 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1086 | SO_SUFFIX=sl |
698dcdb6 | 1087 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1088 | #define __HPUX__ 1 |
1089 | EOF | |
1090 | ||
1091 | ;; | |
1092 | *-*-linux* ) | |
1093 | USE_LINUX=1 | |
698dcdb6 | 1094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1095 | #define __LINUX__ 1 |
1096 | EOF | |
1097 | ||
1098 | TMP=`uname -m` | |
1099 | if test "x$TMP" = "xalpha"; then | |
1100 | USE_ALPHA=1 | |
698dcdb6 | 1101 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1102 | #define __ALPHA__ 1 |
1103 | EOF | |
1104 | ||
1105 | fi | |
1106 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1107 | ;; | |
1108 | *-*-irix5* | *-*-irix6* ) | |
1109 | USE_SGI=1 | |
1110 | USE_SVR4=1 | |
698dcdb6 | 1111 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1112 | #define __SGI__ 1 |
1113 | EOF | |
1114 | ||
698dcdb6 | 1115 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1116 | #define __SVR4__ 1 |
1117 | EOF | |
1118 | ||
1119 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1120 | ;; | |
1121 | *-*-solaris2* ) | |
1122 | USE_SUN=1 | |
1123 | USE_SOLARIS=1 | |
1124 | USE_SVR4=1 | |
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1126 | #define __SUN__ 1 |
1127 | EOF | |
1128 | ||
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1130 | #define __SOLARIS__ 1 |
1131 | EOF | |
1132 | ||
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __SVR4__ 1 |
1135 | EOF | |
1136 | ||
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1138 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1139 | ;; |
1140 | *-*-sunos4* ) | |
1141 | USE_SUN=1 | |
1142 | USE_SUNOS=1 | |
1143 | USE_BSD=1 | |
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1145 | #define __SUN__ 1 |
1146 | EOF | |
1147 | ||
698dcdb6 | 1148 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1149 | #define __SUNOS__ 1 |
1150 | EOF | |
1151 | ||
698dcdb6 | 1152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1153 | #define __BSD__ 1 |
1154 | EOF | |
1155 | ||
1156 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1157 | ;; | |
f6bcfd97 | 1158 | *-*-freebsd*) |
10f2d63a VZ |
1159 | USE_BSD=1 |
1160 | USE_FREEBSD=1 | |
3f345b47 | 1161 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1163 | #define __FREEBSD__ 1 |
1164 | EOF | |
1165 | ||
698dcdb6 | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a | 1167 | #define __BSD__ 1 |
95c8801c VS |
1168 | EOF |
1169 | ||
1170 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1171 | ;; | |
1172 | *-*-openbsd*) | |
1173 | USE_BSD=1 | |
1174 | USE_OPENBSD=1 | |
698dcdb6 | 1175 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1176 | #define __FREEBSD__ 1 |
1177 | EOF | |
1178 | ||
698dcdb6 | 1179 | cat >> confdefs.h <<\EOF |
95c8801c | 1180 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1181 | EOF |
1182 | ||
1183 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1184 | ;; | |
1185 | *-*-netbsd*) | |
1186 | USE_BSD=1 | |
1187 | USE_NETBSD=1 | |
698dcdb6 | 1188 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1189 | #define __FREEBSD__ 1 |
1190 | EOF | |
1191 | ||
698dcdb6 | 1192 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1193 | #define __NETBSD__ 1 |
10f2d63a VZ |
1194 | EOF |
1195 | ||
1196 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1197 | ;; | |
1198 | *-*-osf* ) | |
1199 | USE_ALPHA=1 | |
1200 | USE_OSF=1 | |
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __ALPHA__ 1 |
1203 | EOF | |
1204 | ||
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __OSF__ 1 |
1207 | EOF | |
1208 | ||
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1210 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1211 | ;; |
1212 | *-*-dgux5* ) | |
1213 | USE_ALPHA=1 | |
1214 | USE_SVR4=1 | |
698dcdb6 | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1216 | #define __ALPHA__ 1 |
1217 | EOF | |
1218 | ||
698dcdb6 | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1220 | #define __SVR4__ 1 |
1221 | EOF | |
1222 | ||
1223 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1224 | ;; | |
1225 | *-*-sysv5* ) | |
1226 | USE_SYSV=1 | |
1227 | USE_SVR4=1 | |
698dcdb6 | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1229 | #define __SYSV__ 1 |
1230 | EOF | |
1231 | ||
698dcdb6 | 1232 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1233 | #define __SVR4__ 1 |
1234 | EOF | |
1235 | ||
1236 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1237 | ;; | |
1238 | *-*-aix* ) | |
1239 | USE_AIX=1 | |
1240 | USE_SYSV=1 | |
1241 | USE_SVR4=1 | |
698dcdb6 | 1242 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1243 | #define __AIX__ 1 |
1244 | EOF | |
1245 | ||
698dcdb6 | 1246 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1247 | #define __SYSV__ 1 |
1248 | EOF | |
1249 | ||
698dcdb6 | 1250 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1251 | #define __SVR4__ 1 |
1252 | EOF | |
1253 | ||
1254 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1255 | ;; | |
1256 | ||
1c8183e2 | 1257 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1258 | USE_UNIX=0 |
1259 | USE_WIN32=1 | |
3a922bb4 | 1260 | SO_SUFFIX=dll |
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __WIN32__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define __WIN95__ 1 |
1267 | EOF | |
1268 | ||
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1270 | #define __WINDOWS__ 1 |
1271 | EOF | |
1272 | ||
698dcdb6 | 1273 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1274 | #define __GNUWIN32__ 1 |
1275 | EOF | |
1276 | ||
698dcdb6 | 1277 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1278 | #define STRICT 1 |
1279 | EOF | |
1280 | ||
698dcdb6 | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1282 | #define WINVER 0x0400 |
1283 | EOF | |
1284 | ||
cf27ef00 | 1285 | PROGRAM_EXT=".exe" |
7b7a7637 | 1286 | RESCOMP=windres |
10f2d63a VZ |
1287 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1288 | ;; | |
1289 | ||
6fa882bd | 1290 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1291 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1292 | #define __EMX__ 1 |
1293 | EOF | |
1294 | ||
cf27ef00 | 1295 | PROGRAM_EXT=".exe" |
e07802fc | 1296 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1297 | ;; |
1298 | ||
d08b457b GD |
1299 | powerpc-*-darwin* ) |
1300 | USE_BSD=1 | |
f11bdd03 | 1301 | USE_DARWIN=1 |
3f345b47 | 1302 | CPP_MT_FLAG= |
3a922bb4 | 1303 | SO_SUFFIX=dylib |
698dcdb6 | 1304 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1305 | #define __BSD__ 1 |
b4085ce6 GD |
1306 | EOF |
1307 | ||
698dcdb6 | 1308 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1309 | #define __DARWIN__ 1 |
d08b457b GD |
1310 | EOF |
1311 | ||
1312 | cat >> confdefs.h <<\EOF | |
1313 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1314 | EOF |
1315 | ||
1316 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1317 | ;; | |
1318 | ||
b12915c1 VZ |
1319 | *-*-beos* ) |
1320 | USE_BEOS=1 | |
698dcdb6 | 1321 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1322 | #define __BEOS__ 1 |
1323 | EOF | |
1324 | ||
1325 | ;; | |
1326 | ||
10f2d63a | 1327 | *) |
698dcdb6 | 1328 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1329 | esac |
1330 | ||
1331 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1332 | wxUSE_UNIX=yes |
698dcdb6 | 1333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1334 | #define __UNIX__ 1 |
1335 | EOF | |
1336 | ||
10f2d63a VZ |
1337 | fi |
1338 | ||
2389f33b VZ |
1339 | if test "$USE_LINUX" = 1; then |
1340 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
3f345b47 | 1341 | echo "configure:1342: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1342 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1344 | else | |
1345 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 1346 | #line 1347 "configure" |
2389f33b VZ |
1347 | #include "confdefs.h" |
1348 | #include <features.h> | |
1349 | int main() { | |
1350 | ||
1351 | #if !__GLIBC_PREREQ(2, 1) | |
1352 | #error not glibc2.1 | |
1353 | #endif | |
1354 | ||
1355 | ; return 0; } | |
1356 | EOF | |
3f345b47 | 1357 | if { (eval echo configure:1358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1358 | rm -rf conftest* |
1359 | ||
1360 | wx_lib_glibc21=yes | |
1361 | ||
1362 | else | |
1363 | echo "configure: failed program was:" >&5 | |
1364 | cat conftest.$ac_ext >&5 | |
1365 | rm -rf conftest* | |
1366 | ||
1367 | wx_lib_glibc21=no | |
1368 | ||
1369 | ||
1370 | fi | |
1371 | rm -f conftest* | |
1372 | ||
1373 | fi | |
1374 | ||
1375 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1376 | if test "$wx_lib_glibc21" = "yes"; then |
1377 | cat >> confdefs.h <<\EOF | |
1378 | #define wxHAVE_GLIBC2 1 | |
1379 | EOF | |
1380 | ||
1381 | fi | |
1382 | fi | |
10f2d63a | 1383 | |
1e487827 | 1384 | |
1e487827 | 1385 | |
6232543b | 1386 | |
10f2d63a VZ |
1387 | wx_arg_cache_file="configarg.cache" |
1388 | echo "loading argument cache $wx_arg_cache_file" | |
1389 | rm -f ${wx_arg_cache_file}.tmp | |
1390 | touch ${wx_arg_cache_file}.tmp | |
1391 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1392 | |
10f2d63a VZ |
1393 | |
1394 | DEBUG_CONFIGURE=0 | |
1395 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1396 | DEFAULT_wxUSE_UNIVERSAL=no |
1397 | ||
10f2d63a VZ |
1398 | DEFAULT_wxUSE_THREADS=yes |
1399 | ||
1400 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1401 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1402 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1403 | DEFAULT_wxUSE_PROFILE=no |
1404 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1405 | DEFAULT_wxUSE_NO_RTTI=yes |
1406 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1407 | DEFAULT_wxUSE_PERMISSIVE=no |
1408 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1409 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1410 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1411 | DEFAULT_wxUSE_MEM_TRACING=no | |
1412 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1413 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1414 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1415 | DEFAULT_wxUSE_APPLE_IEEE=no |
1416 | ||
1417 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1418 | DEFAULT_wxUSE_LOGWINDOW=no |
1419 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1420 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1421 | |
1422 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1423 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1424 | |
3e44f09d | 1425 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1426 | DEFAULT_wxUSE_ZLIB=no |
1427 | DEFAULT_wxUSE_LIBPNG=no | |
1428 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1429 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1430 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1431 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1432 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1433 | |
eb4efbdc | 1434 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1435 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1436 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1437 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1438 | DEFAULT_wxUSE_DATETIME=no | |
1439 | DEFAULT_wxUSE_TIMEDATE=no | |
1440 | DEFAULT_wxUSE_TIMER=no | |
1441 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1442 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1443 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1444 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1445 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_WAVE=no |
1447 | DEFAULT_wxUSE_INTL=no | |
1448 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1449 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_STREAMS=no |
1451 | DEFAULT_wxUSE_SOCKETS=no | |
1452 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1453 | DEFAULT_wxUSE_SERIAL=no | |
1454 | DEFAULT_wxUSE_JOYSTICK=no | |
1455 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1456 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1457 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1458 | |
1459 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1460 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1461 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1462 | ||
1463 | DEFAULT_wxUSE_X_RESOURCES=no | |
1464 | DEFAULT_wxUSE_CLIPBOARD=no | |
1465 | DEFAULT_wxUSE_TOOLTIPS=no | |
1466 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1467 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1468 | DEFAULT_wxUSE_SPLINES=no |
1469 | ||
1470 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1471 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1472 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1473 | ||
1474 | DEFAULT_wxUSE_PROLOGIO=no | |
1475 | DEFAULT_wxUSE_RESOURCES=no | |
1476 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1477 | DEFAULT_wxUSE_IPC=no | |
1478 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1479 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1480 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1481 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1482 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1483 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1484 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1485 | |
1486 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1487 | DEFAULT_wxUSE_CHOICEDLG=no |
1488 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1489 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1490 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1491 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1492 | DEFAULT_wxUSE_FONTDLG=no |
1493 | DEFAULT_wxUSE_MSGDLG=no | |
1494 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1495 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1496 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1497 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1498 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1499 | DEFAULT_wxUSE_WIZARDDLG=no |
1500 | ||
1e6feb95 | 1501 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1502 | DEFAULT_wxUSE_MINIFRAME=no |
1503 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1504 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_FS_INET=no |
1506 | DEFAULT_wxUSE_FS_ZIP=no | |
1507 | DEFAULT_wxUSE_BUSYINFO=no | |
1508 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1509 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1510 | |
1511 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1512 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1513 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1514 | DEFAULT_wxUSE_CALCTRL=no |
1515 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1516 | DEFAULT_wxUSE_CHECKBOX=no |
1517 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1518 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1519 | DEFAULT_wxUSE_COMBOBOX=no |
1520 | DEFAULT_wxUSE_GAUGE=no | |
1521 | DEFAULT_wxUSE_GRID=no | |
1522 | DEFAULT_wxUSE_NEW_GRID=no | |
1523 | DEFAULT_wxUSE_IMAGLIST=no | |
1524 | DEFAULT_wxUSE_LISTBOX=no | |
1525 | DEFAULT_wxUSE_LISTCTRL=no | |
1526 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1527 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1528 | DEFAULT_wxUSE_RADIOBOX=no |
1529 | DEFAULT_wxUSE_RADIOBTN=no | |
1530 | DEFAULT_wxUSE_SASH=no | |
1531 | DEFAULT_wxUSE_SCROLLBAR=no | |
1532 | DEFAULT_wxUSE_SLIDER=no | |
1533 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1534 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_SPLITTER=no |
1536 | DEFAULT_wxUSE_STATBMP=no | |
1537 | DEFAULT_wxUSE_STATBOX=no | |
1538 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1539 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1540 | DEFAULT_wxUSE_STATUSBAR=yes |
1541 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1542 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1543 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1544 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1545 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1546 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1547 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1548 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1549 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1550 | |
1551 | DEFAULT_wxUSE_UNICODE=no | |
1552 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1553 | ||
edae8572 | 1554 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1555 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_GIF=no |
1557 | DEFAULT_wxUSE_PCX=no | |
1558 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1559 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1560 | else |
1e6feb95 VZ |
1561 | DEFAULT_wxUSE_UNIVERSAL=no |
1562 | ||
10f2d63a VZ |
1563 | DEFAULT_wxUSE_THREADS=yes |
1564 | ||
1565 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1566 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_OPTIMISE=yes |
1568 | DEFAULT_wxUSE_PROFILE=no | |
1569 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1570 | DEFAULT_wxUSE_NO_RTTI=yes |
1571 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1572 | DEFAULT_wxUSE_PERMISSIVE=no |
1573 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1574 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1575 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1576 | DEFAULT_wxUSE_MEM_TRACING=no | |
1577 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1578 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1579 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1580 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1581 | ||
1582 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1583 | DEFAULT_wxUSE_LOGWINDOW=yes |
1584 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1585 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1586 | |
1587 | DEFAULT_wxUSE_GUI=yes | |
1588 | ||
831b3152 | 1589 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1590 | DEFAULT_wxUSE_ZLIB=yes |
1591 | DEFAULT_wxUSE_LIBPNG=yes | |
1592 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1593 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1594 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1595 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1596 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1597 | |
eb4efbdc | 1598 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1599 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1600 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1601 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1602 | DEFAULT_wxUSE_DATETIME=yes | |
1603 | DEFAULT_wxUSE_TIMEDATE=no | |
1604 | DEFAULT_wxUSE_TIMER=yes | |
1605 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1606 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1607 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1608 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1609 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1610 | DEFAULT_wxUSE_WAVE=no |
1611 | DEFAULT_wxUSE_INTL=yes | |
1612 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1613 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1614 | DEFAULT_wxUSE_STREAMS=yes |
1615 | DEFAULT_wxUSE_SOCKETS=yes | |
1616 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1617 | DEFAULT_wxUSE_SERIAL=yes | |
1618 | DEFAULT_wxUSE_JOYSTICK=yes | |
1619 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1620 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1621 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1622 | |
1623 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1624 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1625 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1626 | ||
1627 | DEFAULT_wxUSE_X_RESOURCES=no | |
1628 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1629 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1630 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1631 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1632 | DEFAULT_wxUSE_SPLINES=yes |
1633 | ||
1634 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1635 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1636 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1637 | ||
1638 | DEFAULT_wxUSE_PROLOGIO=yes | |
1639 | DEFAULT_wxUSE_RESOURCES=yes | |
1640 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1641 | DEFAULT_wxUSE_IPC=yes | |
1642 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1643 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1644 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1645 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1646 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1647 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1648 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1649 | |
1650 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1651 | DEFAULT_wxUSE_CHOICEDLG=yes |
1652 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1653 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1654 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1655 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1656 | DEFAULT_wxUSE_FONTDLG=yes |
1657 | DEFAULT_wxUSE_MSGDLG=yes | |
1658 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1659 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1660 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1661 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1662 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1663 | DEFAULT_wxUSE_WIZARDDLG=yes |
1664 | ||
1e6feb95 | 1665 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1666 | DEFAULT_wxUSE_MINIFRAME=yes |
1667 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1668 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_FS_INET=yes |
1670 | DEFAULT_wxUSE_FS_ZIP=yes | |
1671 | DEFAULT_wxUSE_BUSYINFO=yes | |
1672 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1673 | DEFAULT_wxUSE_VALIDATORS=yes | |
1674 | ||
1675 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1676 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1677 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1678 | DEFAULT_wxUSE_CALCTRL=yes |
1679 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_CHECKBOX=yes |
1681 | DEFAULT_wxUSE_CHECKLST=yes | |
1682 | DEFAULT_wxUSE_CHOICE=yes | |
1683 | DEFAULT_wxUSE_COMBOBOX=yes | |
1684 | DEFAULT_wxUSE_GAUGE=yes | |
1685 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1686 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_IMAGLIST=yes |
1688 | DEFAULT_wxUSE_LISTBOX=yes | |
1689 | DEFAULT_wxUSE_LISTCTRL=yes | |
1690 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1691 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1692 | DEFAULT_wxUSE_RADIOBOX=yes |
1693 | DEFAULT_wxUSE_RADIOBTN=yes | |
1694 | DEFAULT_wxUSE_SASH=yes | |
1695 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1696 | DEFAULT_wxUSE_SLIDER=yes | |
1697 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1698 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1699 | DEFAULT_wxUSE_SPLITTER=yes |
1700 | DEFAULT_wxUSE_STATBMP=yes | |
1701 | DEFAULT_wxUSE_STATBOX=yes | |
1702 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1703 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1704 | DEFAULT_wxUSE_STATUSBAR=yes |
1705 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1706 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1707 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1708 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1709 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1710 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1711 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1712 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1713 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1714 | |
1715 | DEFAULT_wxUSE_UNICODE=no | |
1716 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1717 | ||
edae8572 | 1718 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1719 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_GIF=yes |
1721 | DEFAULT_wxUSE_PCX=yes | |
1722 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1723 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1724 | fi |
1725 | ||
698dcdb6 VZ |
1726 | |
1727 | ||
10f2d63a VZ |
1728 | for toolkit in `echo $ALL_TOOLKITS`; do |
1729 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1730 | if test "x$LINE" != x ; then | |
1731 | has_toolkit_in_cache=1 | |
1732 | eval "DEFAULT_$LINE" | |
1733 | eval "CACHE_$toolkit=1" | |
1734 | fi | |
1735 | done | |
1736 | ||
698dcdb6 VZ |
1737 | |
1738 | ||
1739 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
3f345b47 | 1740 | echo "configure:1741: checking for --enable-gui" >&5 |
10f2d63a VZ |
1741 | no_cache=0 |
1742 | # Check whether --enable-gui or --disable-gui was given. | |
1743 | if test "${enable_gui+set}" = set; then | |
1744 | enableval="$enable_gui" | |
698dcdb6 | 1745 | |
10f2d63a VZ |
1746 | if test "$enableval" = yes; then |
1747 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1748 | else | |
1749 | ac_cv_use_gui='wxUSE_GUI=no' | |
1750 | fi | |
698dcdb6 | 1751 | |
10f2d63a | 1752 | else |
698dcdb6 | 1753 | |
10f2d63a VZ |
1754 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1755 | if test "x$LINE" != x ; then | |
1756 | eval "DEFAULT_$LINE" | |
1757 | else | |
1758 | no_cache=1 | |
1759 | fi | |
1760 | ||
1761 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1762 | |
1763 | fi | |
10f2d63a VZ |
1764 | |
1765 | ||
1766 | eval "$ac_cv_use_gui" | |
1767 | if test "$no_cache" != 1; then | |
1768 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1769 | fi | |
1770 | ||
1771 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1772 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1773 | else |
698dcdb6 | 1774 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1775 | fi |
698dcdb6 | 1776 | |
10f2d63a | 1777 | |
b12915c1 | 1778 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1779 | |
1e6feb95 VZ |
1780 | |
1781 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
3f345b47 | 1782 | echo "configure:1783: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1783 | no_cache=0 |
1784 | # Check whether --enable-universal or --disable-universal was given. | |
1785 | if test "${enable_universal+set}" = set; then | |
1786 | enableval="$enable_universal" | |
1787 | ||
1788 | if test "$enableval" = yes; then | |
1789 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1790 | else | |
1791 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1792 | fi | |
1793 | ||
1794 | else | |
1795 | ||
1796 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1797 | if test "x$LINE" != x ; then | |
1798 | eval "DEFAULT_$LINE" | |
1799 | else | |
1800 | no_cache=1 | |
1801 | fi | |
1802 | ||
1803 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1804 | ||
1805 | fi | |
1806 | ||
1807 | ||
1808 | eval "$ac_cv_use_universal" | |
1809 | if test "$no_cache" != 1; then | |
1810 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1811 | fi | |
1812 | ||
1813 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1814 | echo "$ac_t""yes" 1>&6 | |
1815 | else | |
1816 | echo "$ac_t""no" 1>&6 | |
1817 | fi | |
1818 | ||
10f2d63a VZ |
1819 | # Check whether --with-gtk or --without-gtk was given. |
1820 | if test "${with_gtk+set}" = set; then | |
1821 | withval="$with_gtk" | |
1822 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1823 | fi |
10f2d63a VZ |
1824 | |
1825 | # Check whether --with-motif or --without-motif was given. | |
1826 | if test "${with_motif+set}" = set; then | |
1827 | withval="$with_motif" | |
1828 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1829 | fi |
10f2d63a | 1830 | |
b4085ce6 GD |
1831 | # Check whether --with-mac or --without-mac was given. |
1832 | if test "${with_mac+set}" = set; then | |
1833 | withval="$with_mac" | |
1834 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1835 | fi |
b4085ce6 | 1836 | |
10f2d63a VZ |
1837 | # Check whether --with-wine or --without-wine was given. |
1838 | if test "${with_wine+set}" = set; then | |
1839 | withval="$with_wine" | |
1840 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1841 | fi |
10f2d63a | 1842 | |
77e13408 RL |
1843 | # Check whether --with-msw or --without-msw was given. |
1844 | if test "${with_msw+set}" = set; then | |
1845 | withval="$with_msw" | |
1846 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1847 | fi |
10f2d63a | 1848 | |
e07802fc VZ |
1849 | # Check whether --with-pm or --without-pm was given. |
1850 | if test "${with_pm+set}" = set; then | |
1851 | withval="$with_pm" | |
1852 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1853 | fi |
1854 | ||
1e6feb95 VZ |
1855 | # Check whether --with-mgl or --without-mgl was given. |
1856 | if test "${with_mgl+set}" = set; then | |
1857 | withval="$with_mgl" | |
1858 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1859 | fi | |
1860 | ||
10f2d63a | 1861 | |
8168de4c VZ |
1862 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1863 | if test "${enable_gtk2+set}" = set; then | |
1864 | enableval="$enable_gtk2" | |
1865 | wxUSE_GTK2=1 | |
10f2d63a | 1866 | else |
8168de4c | 1867 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1868 | fi |
1869 | ||
703e0a69 | 1870 | |
1e487827 | 1871 | |
698dcdb6 | 1872 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
3f345b47 | 1873 | echo "configure:1874: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1874 | no_cache=0 |
1875 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1876 | if test "${with_libpng+set}" = set; then |
1877 | withval="$with_libpng" | |
698dcdb6 | 1878 | |
10f2d63a | 1879 | if test "$withval" = yes; then |
b12915c1 | 1880 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1881 | elif test "$withval" = no; then |
b12915c1 | 1882 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1883 | elif test "$withval" = sys; then |
1884 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1885 | elif test "$withval" = builtin; then |
1886 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1887 | else |
4f14bcd8 | 1888 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1889 | fi |
698dcdb6 | 1890 | |
10f2d63a | 1891 | else |
698dcdb6 | 1892 | |
b12915c1 | 1893 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1894 | if test "x$LINE" != x ; then |
1895 | eval "DEFAULT_$LINE" | |
1896 | else | |
1897 | no_cache=1 | |
1898 | fi | |
1899 | ||
b12915c1 | 1900 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1901 | |
1902 | fi | |
10f2d63a VZ |
1903 | |
1904 | ||
b12915c1 | 1905 | eval "$ac_cv_use_libpng" |
10f2d63a | 1906 | if test "$no_cache" != 1; then |
b12915c1 | 1907 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1908 | fi |
1909 | ||
b12915c1 | 1910 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1911 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1912 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1913 | echo "$ac_t""no" 1>&6 |
422107f9 | 1914 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1915 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1916 | elif test "$wxUSE_LIBPNG" = builtin; then |
1917 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1918 | else |
4f14bcd8 | 1919 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1920 | fi |
698dcdb6 | 1921 | |
10f2d63a | 1922 | |
698dcdb6 | 1923 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
3f345b47 | 1924 | echo "configure:1925: checking for --with-libjpeg" >&5 |
10f2d63a | 1925 | no_cache=0 |
698dcdb6 | 1926 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1927 | if test "${with_libjpeg+set}" = set; then |
1928 | withval="$with_libjpeg" | |
698dcdb6 | 1929 | |
10f2d63a | 1930 | if test "$withval" = yes; then |
b12915c1 | 1931 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1932 | elif test "$withval" = no; then |
b12915c1 | 1933 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1934 | elif test "$withval" = sys; then |
1935 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1936 | elif test "$withval" = builtin; then |
1937 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1938 | else |
4f14bcd8 | 1939 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1940 | fi |
698dcdb6 | 1941 | |
10f2d63a | 1942 | else |
698dcdb6 | 1943 | |
b12915c1 | 1944 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1945 | if test "x$LINE" != x ; then |
1946 | eval "DEFAULT_$LINE" | |
1947 | else | |
1948 | no_cache=1 | |
1949 | fi | |
1950 | ||
b12915c1 | 1951 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1952 | |
1953 | fi | |
10f2d63a VZ |
1954 | |
1955 | ||
b12915c1 | 1956 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1957 | if test "$no_cache" != 1; then |
b12915c1 | 1958 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1959 | fi |
1960 | ||
b12915c1 | 1961 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1962 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1963 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1964 | echo "$ac_t""no" 1>&6 |
422107f9 | 1965 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1966 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1967 | elif test "$wxUSE_LIBJPEG" = builtin; then |
1968 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1969 | else |
4f14bcd8 | 1970 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1971 | fi |
698dcdb6 | 1972 | |
10f2d63a | 1973 | |
698dcdb6 | 1974 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
3f345b47 | 1975 | echo "configure:1976: checking for --with-libtiff" >&5 |
10f2d63a | 1976 | no_cache=0 |
698dcdb6 | 1977 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1978 | if test "${with_libtiff+set}" = set; then |
1979 | withval="$with_libtiff" | |
698dcdb6 | 1980 | |
10f2d63a | 1981 | if test "$withval" = yes; then |
b12915c1 | 1982 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1983 | elif test "$withval" = no; then |
b12915c1 | 1984 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1985 | elif test "$withval" = sys; then |
1986 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
1987 | elif test "$withval" = builtin; then |
1988 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 1989 | else |
4f14bcd8 | 1990 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1991 | fi |
698dcdb6 | 1992 | |
10f2d63a | 1993 | else |
698dcdb6 | 1994 | |
b12915c1 | 1995 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1996 | if test "x$LINE" != x ; then |
1997 | eval "DEFAULT_$LINE" | |
1998 | else | |
1999 | no_cache=1 | |
2000 | fi | |
2001 | ||
b12915c1 | 2002 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2003 | |
2004 | fi | |
10f2d63a VZ |
2005 | |
2006 | ||
b12915c1 | 2007 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2008 | if test "$no_cache" != 1; then |
b12915c1 | 2009 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2010 | fi |
2011 | ||
b12915c1 | 2012 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2013 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2014 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2015 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2016 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2017 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2018 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2019 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2020 | else |
4f14bcd8 | 2021 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2022 | fi |
698dcdb6 | 2023 | |
10f2d63a | 2024 | |
698dcdb6 | 2025 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
3f345b47 | 2026 | echo "configure:2027: checking for --with-freetype" >&5 |
3fed1840 | 2027 | no_cache=0 |
698dcdb6 | 2028 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2029 | if test "${with_freetype+set}" = set; then |
2030 | withval="$with_freetype" | |
698dcdb6 | 2031 | |
3fed1840 RR |
2032 | if test "$withval" = yes; then |
2033 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2034 | elif test "$withval" = no; then | |
2035 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2036 | elif test "$withval" = sys; then | |
2037 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2038 | elif test "$withval" = builtin; then |
2039 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2040 | else |
4f14bcd8 | 2041 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2042 | fi |
698dcdb6 | 2043 | |
3fed1840 | 2044 | else |
698dcdb6 | 2045 | |
3fed1840 RR |
2046 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2047 | if test "x$LINE" != x ; then | |
2048 | eval "DEFAULT_$LINE" | |
2049 | else | |
2050 | no_cache=1 | |
2051 | fi | |
2052 | ||
2053 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2054 | |
2055 | fi | |
3fed1840 RR |
2056 | |
2057 | ||
2058 | eval "$ac_cv_use_freetype" | |
2059 | if test "$no_cache" != 1; then | |
2060 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2061 | fi | |
2062 | ||
2063 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2064 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2065 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2066 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2067 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2068 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2069 | elif test "$wxUSE_FREETYPE" = builtin; then |
2070 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2071 | else |
4f14bcd8 | 2072 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2073 | fi |
698dcdb6 | 2074 | |
3fed1840 | 2075 | |
698dcdb6 | 2076 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
3f345b47 | 2077 | echo "configure:2078: checking for --with-opengl" >&5 |
10f2d63a | 2078 | no_cache=0 |
698dcdb6 | 2079 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2080 | if test "${with_opengl+set}" = set; then |
2081 | withval="$with_opengl" | |
698dcdb6 | 2082 | |
10f2d63a | 2083 | if test "$withval" = yes; then |
b12915c1 | 2084 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2085 | else |
b12915c1 | 2086 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2087 | fi |
698dcdb6 | 2088 | |
10f2d63a | 2089 | else |
698dcdb6 | 2090 | |
b12915c1 | 2091 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2092 | if test "x$LINE" != x ; then |
2093 | eval "DEFAULT_$LINE" | |
2094 | else | |
2095 | no_cache=1 | |
2096 | fi | |
2097 | ||
b12915c1 | 2098 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2099 | |
2100 | fi | |
10f2d63a VZ |
2101 | |
2102 | ||
b12915c1 | 2103 | eval "$ac_cv_use_opengl" |
10f2d63a | 2104 | if test "$no_cache" != 1; then |
b12915c1 | 2105 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2106 | fi |
2107 | ||
b12915c1 | 2108 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2109 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2110 | else |
698dcdb6 | 2111 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2112 | fi |
698dcdb6 | 2113 | |
10f2d63a | 2114 | |
b12915c1 VZ |
2115 | fi |
2116 | ||
1e487827 | 2117 | |
698dcdb6 | 2118 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
3f345b47 | 2119 | echo "configure:2120: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2120 | no_cache=0 |
2121 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2122 | if test "${with_dmalloc+set}" = set; then |
2123 | withval="$with_dmalloc" | |
698dcdb6 | 2124 | |
c7a2bf27 | 2125 | if test "$withval" = yes; then |
b12915c1 | 2126 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2127 | else |
b12915c1 | 2128 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2129 | fi |
698dcdb6 | 2130 | |
c7a2bf27 | 2131 | else |
698dcdb6 | 2132 | |
b12915c1 | 2133 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2134 | if test "x$LINE" != x ; then |
2135 | eval "DEFAULT_$LINE" | |
2136 | else | |
2137 | no_cache=1 | |
2138 | fi | |
2139 | ||
b12915c1 | 2140 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2141 | |
2142 | fi | |
c7a2bf27 RR |
2143 | |
2144 | ||
b12915c1 | 2145 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2146 | if test "$no_cache" != 1; then |
b12915c1 | 2147 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2148 | fi |
2149 | ||
b12915c1 | 2150 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2151 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2152 | else |
698dcdb6 | 2153 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2154 | fi |
698dcdb6 | 2155 | |
c7a2bf27 | 2156 | |
3e44f09d | 2157 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
3f345b47 | 2158 | echo "configure:2159: checking for --with-regex" >&5 |
3e44f09d VZ |
2159 | no_cache=0 |
2160 | # Check whether --with-regex or --without-regex was given. | |
2161 | if test "${with_regex+set}" = set; then | |
2162 | withval="$with_regex" | |
2163 | ||
2164 | if test "$withval" = yes; then | |
2165 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2166 | elif test "$withval" = no; then | |
2167 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2168 | elif test "$withval" = sys; then | |
2169 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2170 | elif test "$withval" = builtin; then |
2171 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2172 | else |
4f14bcd8 | 2173 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2174 | fi |
2175 | ||
2176 | else | |
2177 | ||
2178 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2179 | if test "x$LINE" != x ; then | |
2180 | eval "DEFAULT_$LINE" | |
2181 | else | |
2182 | no_cache=1 | |
2183 | fi | |
2184 | ||
2185 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2186 | ||
2187 | fi | |
2188 | ||
2189 | ||
2190 | eval "$ac_cv_use_regex" | |
2191 | if test "$no_cache" != 1; then | |
2192 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2193 | fi | |
2194 | ||
2195 | if test "$wxUSE_REGEX" = yes; then | |
2196 | echo "$ac_t""yes" 1>&6 | |
2197 | elif test "$wxUSE_REGEX" = no; then | |
2198 | echo "$ac_t""no" 1>&6 | |
2199 | elif test "$wxUSE_REGEX" = sys; then | |
2200 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2201 | elif test "$wxUSE_REGEX" = builtin; then |
2202 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2203 | else |
4f14bcd8 | 2204 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2205 | fi |
2206 | ||
2207 | ||
698dcdb6 | 2208 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
3f345b47 | 2209 | echo "configure:2210: checking for --with-zlib" >&5 |
10f2d63a | 2210 | no_cache=0 |
698dcdb6 | 2211 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2212 | if test "${with_zlib+set}" = set; then |
2213 | withval="$with_zlib" | |
698dcdb6 | 2214 | |
10f2d63a | 2215 | if test "$withval" = yes; then |
b12915c1 | 2216 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2217 | elif test "$withval" = no; then |
b12915c1 | 2218 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2219 | elif test "$withval" = sys; then |
2220 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2221 | elif test "$withval" = builtin; then |
2222 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2223 | else |
4f14bcd8 | 2224 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2225 | fi |
698dcdb6 | 2226 | |
10f2d63a | 2227 | else |
698dcdb6 | 2228 | |
b12915c1 | 2229 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2230 | if test "x$LINE" != x ; then |
2231 | eval "DEFAULT_$LINE" | |
2232 | else | |
2233 | no_cache=1 | |
2234 | fi | |
2235 | ||
b12915c1 | 2236 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2237 | |
2238 | fi | |
10f2d63a VZ |
2239 | |
2240 | ||
b12915c1 | 2241 | eval "$ac_cv_use_zlib" |
10f2d63a | 2242 | if test "$no_cache" != 1; then |
b12915c1 | 2243 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2244 | fi |
2245 | ||
b12915c1 | 2246 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2247 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2248 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2249 | echo "$ac_t""no" 1>&6 |
422107f9 | 2250 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2251 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2252 | elif test "$wxUSE_ZLIB" = builtin; then |
2253 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2254 | else |
4f14bcd8 | 2255 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2256 | fi |
698dcdb6 | 2257 | |
10f2d63a | 2258 | |
698dcdb6 | 2259 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
3f345b47 | 2260 | echo "configure:2261: checking for --with-odbc" >&5 |
10f2d63a | 2261 | no_cache=0 |
698dcdb6 | 2262 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2263 | if test "${with_odbc+set}" = set; then |
2264 | withval="$with_odbc" | |
698dcdb6 | 2265 | |
10f2d63a VZ |
2266 | if test "$withval" = yes; then |
2267 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2268 | else | |
2269 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2270 | fi | |
698dcdb6 | 2271 | |
10f2d63a | 2272 | else |
698dcdb6 | 2273 | |
10f2d63a VZ |
2274 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2275 | if test "x$LINE" != x ; then | |
2276 | eval "DEFAULT_$LINE" | |
2277 | else | |
2278 | no_cache=1 | |
2279 | fi | |
2280 | ||
2281 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2282 | |
2283 | fi | |
10f2d63a VZ |
2284 | |
2285 | ||
2286 | eval "$ac_cv_use_odbc" | |
2287 | if test "$no_cache" != 1; then | |
2288 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2289 | fi | |
2290 | ||
2291 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2292 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2293 | else |
698dcdb6 | 2294 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2295 | fi |
698dcdb6 VZ |
2296 | |
2297 | ||
10f2d63a | 2298 | |
698dcdb6 | 2299 | |
698dcdb6 | 2300 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
3f345b47 | 2301 | echo "configure:2302: checking for --enable-shared" >&5 |
10f2d63a VZ |
2302 | no_cache=0 |
2303 | # Check whether --enable-shared or --disable-shared was given. | |
2304 | if test "${enable_shared+set}" = set; then | |
2305 | enableval="$enable_shared" | |
698dcdb6 | 2306 | |
10f2d63a VZ |
2307 | if test "$enableval" = yes; then |
2308 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2309 | else | |
2310 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2311 | fi | |
698dcdb6 | 2312 | |
10f2d63a | 2313 | else |
698dcdb6 | 2314 | |
10f2d63a VZ |
2315 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2316 | if test "x$LINE" != x ; then | |
2317 | eval "DEFAULT_$LINE" | |
2318 | else | |
2319 | no_cache=1 | |
2320 | fi | |
2321 | ||
2322 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2323 | |
2324 | fi | |
10f2d63a VZ |
2325 | |
2326 | ||
2327 | eval "$ac_cv_use_shared" | |
2328 | if test "$no_cache" != 1; then | |
2329 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2330 | fi | |
2331 | ||
2332 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2333 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2334 | else |
698dcdb6 | 2335 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2336 | fi |
698dcdb6 | 2337 | |
10f2d63a | 2338 | |
3a922bb4 | 2339 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
3f345b47 | 2340 | echo "configure:2341: checking for --enable-soname" >&5 |
00cf1208 | 2341 | no_cache=0 |
3a922bb4 RL |
2342 | # Check whether --enable-soname or --disable-soname was given. |
2343 | if test "${enable_soname+set}" = set; then | |
2344 | enableval="$enable_soname" | |
698dcdb6 | 2345 | |
00cf1208 | 2346 | if test "$enableval" = yes; then |
3a922bb4 | 2347 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2348 | else |
3a922bb4 | 2349 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2350 | fi |
698dcdb6 | 2351 | |
00cf1208 | 2352 | else |
698dcdb6 | 2353 | |
3a922bb4 | 2354 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2355 | if test "x$LINE" != x ; then |
2356 | eval "DEFAULT_$LINE" | |
2357 | else | |
2358 | no_cache=1 | |
2359 | fi | |
2360 | ||
3a922bb4 | 2361 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2362 | |
2363 | fi | |
00cf1208 RR |
2364 | |
2365 | ||
3a922bb4 | 2366 | eval "$ac_cv_use_soname" |
00cf1208 | 2367 | if test "$no_cache" != 1; then |
3a922bb4 | 2368 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2369 | fi |
2370 | ||
3a922bb4 | 2371 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2372 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2373 | else |
698dcdb6 | 2374 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2375 | fi |
698dcdb6 | 2376 | |
00cf1208 | 2377 | |
698dcdb6 | 2378 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
3f345b47 | 2379 | echo "configure:2380: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2380 | no_cache=0 |
2381 | # Check whether --enable-optimise or --disable-optimise was given. | |
2382 | if test "${enable_optimise+set}" = set; then | |
2383 | enableval="$enable_optimise" | |
698dcdb6 | 2384 | |
10f2d63a VZ |
2385 | if test "$enableval" = yes; then |
2386 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2387 | else | |
2388 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2389 | fi | |
698dcdb6 | 2390 | |
10f2d63a | 2391 | else |
698dcdb6 | 2392 | |
10f2d63a VZ |
2393 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2394 | if test "x$LINE" != x ; then | |
2395 | eval "DEFAULT_$LINE" | |
2396 | else | |
2397 | no_cache=1 | |
2398 | fi | |
2399 | ||
2400 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2401 | |
2402 | fi | |
10f2d63a VZ |
2403 | |
2404 | ||
2405 | eval "$ac_cv_use_optimise" | |
2406 | if test "$no_cache" != 1; then | |
2407 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2408 | fi | |
2409 | ||
2410 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2411 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2412 | else |
698dcdb6 | 2413 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2414 | fi |
698dcdb6 | 2415 | |
10f2d63a | 2416 | |
698dcdb6 | 2417 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
3f345b47 | 2418 | echo "configure:2419: checking for --enable-debug" >&5 |
10f2d63a VZ |
2419 | no_cache=0 |
2420 | # Check whether --enable-debug or --disable-debug was given. | |
2421 | if test "${enable_debug+set}" = set; then | |
2422 | enableval="$enable_debug" | |
698dcdb6 | 2423 | |
10f2d63a VZ |
2424 | if test "$enableval" = yes; then |
2425 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2426 | else | |
2427 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2428 | fi | |
698dcdb6 | 2429 | |
10f2d63a | 2430 | else |
698dcdb6 | 2431 | |
10f2d63a VZ |
2432 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2433 | if test "x$LINE" != x ; then | |
2434 | eval "DEFAULT_$LINE" | |
2435 | else | |
2436 | no_cache=1 | |
2437 | fi | |
2438 | ||
2439 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2440 | |
2441 | fi | |
10f2d63a VZ |
2442 | |
2443 | ||
2444 | eval "$ac_cv_use_debug" | |
2445 | if test "$no_cache" != 1; then | |
2446 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2447 | fi | |
2448 | ||
2449 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2450 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2451 | else |
698dcdb6 | 2452 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2453 | fi |
698dcdb6 | 2454 | |
10f2d63a | 2455 | |
683dccda GD |
2456 | |
2457 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
3f345b47 | 2458 | echo "configure:2459: checking for --enable-precomp" >&5 |
683dccda GD |
2459 | no_cache=0 |
2460 | # Check whether --enable-precomp or --disable-precomp was given. | |
2461 | if test "${enable_precomp+set}" = set; then | |
2462 | enableval="$enable_precomp" | |
2463 | ||
2464 | if test "$enableval" = yes; then | |
2465 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2466 | else | |
2467 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2468 | fi | |
2469 | ||
2470 | else | |
2471 | ||
2472 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2473 | if test "x$LINE" != x ; then | |
2474 | eval "DEFAULT_$LINE" | |
2475 | else | |
2476 | no_cache=1 | |
2477 | fi | |
2478 | ||
2479 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2480 | ||
2481 | fi | |
2482 | ||
2483 | ||
2484 | eval "$ac_cv_use_precomp" | |
2485 | if test "$no_cache" != 1; then | |
2486 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2487 | fi | |
2488 | ||
2489 | if test "$wxUSE_PRECOMP" = yes; then | |
2490 | echo "$ac_t""yes" 1>&6 | |
2491 | else | |
2492 | echo "$ac_t""no" 1>&6 | |
2493 | fi | |
2494 | ||
2495 | ||
10f2d63a VZ |
2496 | if test "$wxUSE_DEBUG" = "yes"; then |
2497 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2498 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2499 | elif test "$wxUSE_DEBUG" = "no"; then | |
2500 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2501 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2502 | fi | |
2503 | ||
698dcdb6 VZ |
2504 | |
2505 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
3f345b47 | 2506 | echo "configure:2507: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2507 | no_cache=0 |
2508 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2509 | if test "${enable_debug_flag+set}" = set; then | |
2510 | enableval="$enable_debug_flag" | |
698dcdb6 | 2511 | |
10f2d63a VZ |
2512 | if test "$enableval" = yes; then |
2513 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2514 | else | |
2515 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2516 | fi | |
698dcdb6 | 2517 | |
10f2d63a | 2518 | else |
698dcdb6 | 2519 | |
10f2d63a VZ |
2520 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2521 | if test "x$LINE" != x ; then | |
2522 | eval "DEFAULT_$LINE" | |
2523 | else | |
2524 | no_cache=1 | |
2525 | fi | |
2526 | ||
2527 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2528 | |
2529 | fi | |
10f2d63a VZ |
2530 | |
2531 | ||
2532 | eval "$ac_cv_use_debug_flag" | |
2533 | if test "$no_cache" != 1; then | |
2534 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2535 | fi | |
2536 | ||
2537 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2538 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2539 | else |
698dcdb6 | 2540 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2541 | fi |
698dcdb6 | 2542 | |
10f2d63a | 2543 | |
698dcdb6 | 2544 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
3f345b47 | 2545 | echo "configure:2546: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2546 | no_cache=0 |
2547 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2548 | if test "${enable_debug_info+set}" = set; then | |
2549 | enableval="$enable_debug_info" | |
698dcdb6 | 2550 | |
10f2d63a VZ |
2551 | if test "$enableval" = yes; then |
2552 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2553 | else | |
2554 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2555 | fi | |
698dcdb6 | 2556 | |
10f2d63a | 2557 | else |
698dcdb6 | 2558 | |
10f2d63a VZ |
2559 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2560 | if test "x$LINE" != x ; then | |
2561 | eval "DEFAULT_$LINE" | |
2562 | else | |
2563 | no_cache=1 | |
2564 | fi | |
2565 | ||
2566 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2567 | |
2568 | fi | |
10f2d63a VZ |
2569 | |
2570 | ||
2571 | eval "$ac_cv_use_debug_info" | |
2572 | if test "$no_cache" != 1; then | |
2573 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2574 | fi | |
2575 | ||
2576 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2577 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2578 | else |
698dcdb6 | 2579 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2580 | fi |
698dcdb6 | 2581 | |
10f2d63a | 2582 | |
698dcdb6 | 2583 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
3f345b47 | 2584 | echo "configure:2585: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2585 | no_cache=0 |
2586 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2587 | if test "${enable_debug_gdb+set}" = set; then | |
2588 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2589 | |
10f2d63a VZ |
2590 | if test "$enableval" = yes; then |
2591 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2592 | else | |
2593 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2594 | fi | |
698dcdb6 | 2595 | |
10f2d63a | 2596 | else |
698dcdb6 | 2597 | |
10f2d63a VZ |
2598 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2599 | if test "x$LINE" != x ; then | |
2600 | eval "DEFAULT_$LINE" | |
2601 | else | |
2602 | no_cache=1 | |
2603 | fi | |
2604 | ||
2605 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2606 | |
2607 | fi | |
10f2d63a VZ |
2608 | |
2609 | ||
2610 | eval "$ac_cv_use_debug_gdb" | |
2611 | if test "$no_cache" != 1; then | |
2612 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2613 | fi | |
2614 | ||
2615 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2616 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2617 | else |
698dcdb6 | 2618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2619 | fi |
698dcdb6 | 2620 | |
10f2d63a | 2621 | |
698dcdb6 | 2622 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
3f345b47 | 2623 | echo "configure:2624: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2624 | no_cache=0 |
2625 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2626 | if test "${enable_debug_cntxt+set}" = set; then | |
2627 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2628 | |
10f2d63a VZ |
2629 | if test "$enableval" = yes; then |
2630 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2631 | else | |
2632 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2633 | fi | |
698dcdb6 | 2634 | |
10f2d63a | 2635 | else |
698dcdb6 | 2636 | |
10f2d63a VZ |
2637 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2638 | if test "x$LINE" != x ; then | |
2639 | eval "DEFAULT_$LINE" | |
2640 | else | |
2641 | no_cache=1 | |
2642 | fi | |
2643 | ||
2644 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2645 | |
2646 | fi | |
10f2d63a VZ |
2647 | |
2648 | ||
2649 | eval "$ac_cv_use_debug_cntxt" | |
2650 | if test "$no_cache" != 1; then | |
2651 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2652 | fi | |
2653 | ||
2654 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2655 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2656 | else |
698dcdb6 | 2657 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2658 | fi |
698dcdb6 | 2659 | |
10f2d63a | 2660 | |
698dcdb6 | 2661 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
3f345b47 | 2662 | echo "configure:2663: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2663 | no_cache=0 |
2664 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2665 | if test "${enable_mem_tracing+set}" = set; then | |
2666 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2667 | |
10f2d63a VZ |
2668 | if test "$enableval" = yes; then |
2669 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2670 | else | |
2671 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2672 | fi | |
698dcdb6 | 2673 | |
10f2d63a | 2674 | else |
698dcdb6 | 2675 | |
10f2d63a VZ |
2676 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2677 | if test "x$LINE" != x ; then | |
2678 | eval "DEFAULT_$LINE" | |
2679 | else | |
2680 | no_cache=1 | |
2681 | fi | |
2682 | ||
2683 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2684 | |
2685 | fi | |
10f2d63a VZ |
2686 | |
2687 | ||
2688 | eval "$ac_cv_use_mem_tracing" | |
2689 | if test "$no_cache" != 1; then | |
2690 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2691 | fi | |
2692 | ||
2693 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2694 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2695 | else |
698dcdb6 | 2696 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2697 | fi |
698dcdb6 | 2698 | |
10f2d63a | 2699 | |
698dcdb6 | 2700 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
3f345b47 | 2701 | echo "configure:2702: checking for --enable-profile" >&5 |
10f2d63a VZ |
2702 | no_cache=0 |
2703 | # Check whether --enable-profile or --disable-profile was given. | |
2704 | if test "${enable_profile+set}" = set; then | |
2705 | enableval="$enable_profile" | |
698dcdb6 | 2706 | |
10f2d63a VZ |
2707 | if test "$enableval" = yes; then |
2708 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2709 | else | |
2710 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2711 | fi | |
698dcdb6 | 2712 | |
10f2d63a | 2713 | else |
698dcdb6 | 2714 | |
10f2d63a VZ |
2715 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2716 | if test "x$LINE" != x ; then | |
2717 | eval "DEFAULT_$LINE" | |
2718 | else | |
2719 | no_cache=1 | |
2720 | fi | |
2721 | ||
2722 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2723 | |
2724 | fi | |
10f2d63a VZ |
2725 | |
2726 | ||
2727 | eval "$ac_cv_use_profile" | |
2728 | if test "$no_cache" != 1; then | |
2729 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2730 | fi | |
2731 | ||
2732 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2733 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2734 | else |
698dcdb6 | 2735 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2736 | fi |
698dcdb6 | 2737 | |
10f2d63a | 2738 | |
698dcdb6 | 2739 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
3f345b47 | 2740 | echo "configure:2741: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2741 | no_cache=0 |
2742 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2743 | if test "${enable_no_rtti+set}" = set; then | |
2744 | enableval="$enable_no_rtti" | |
698dcdb6 | 2745 | |
10f2d63a VZ |
2746 | if test "$enableval" = yes; then |
2747 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2748 | else | |
2749 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2750 | fi | |
698dcdb6 | 2751 | |
10f2d63a | 2752 | else |
698dcdb6 | 2753 | |
10f2d63a VZ |
2754 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2755 | if test "x$LINE" != x ; then | |
2756 | eval "DEFAULT_$LINE" | |
2757 | else | |
2758 | no_cache=1 | |
2759 | fi | |
2760 | ||
2761 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2762 | |
2763 | fi | |
10f2d63a VZ |
2764 | |
2765 | ||
2766 | eval "$ac_cv_use_no_rtti" | |
2767 | if test "$no_cache" != 1; then | |
2768 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2769 | fi | |
2770 | ||
2771 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2772 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2773 | else |
698dcdb6 | 2774 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2775 | fi |
698dcdb6 | 2776 | |
10f2d63a | 2777 | |
698dcdb6 | 2778 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
3f345b47 | 2779 | echo "configure:2780: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2780 | no_cache=0 |
2781 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2782 | if test "${enable_no_exceptions+set}" = set; then | |
2783 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2784 | |
10f2d63a VZ |
2785 | if test "$enableval" = yes; then |
2786 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2787 | else | |
2788 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2789 | fi | |
698dcdb6 | 2790 | |
10f2d63a | 2791 | else |
698dcdb6 | 2792 | |
10f2d63a VZ |
2793 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2794 | if test "x$LINE" != x ; then | |
2795 | eval "DEFAULT_$LINE" | |
2796 | else | |
2797 | no_cache=1 | |
2798 | fi | |
2799 | ||
2800 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2801 | |
2802 | fi | |
10f2d63a VZ |
2803 | |
2804 | ||
2805 | eval "$ac_cv_use_no_exceptions" | |
2806 | if test "$no_cache" != 1; then | |
2807 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2808 | fi | |
2809 | ||
2810 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2811 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2812 | else |
698dcdb6 | 2813 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2814 | fi |
698dcdb6 | 2815 | |
10f2d63a | 2816 | |
698dcdb6 | 2817 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
3f345b47 | 2818 | echo "configure:2819: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2819 | no_cache=0 |
2820 | # Check whether --enable-permissive or --disable-permissive was given. | |
2821 | if test "${enable_permissive+set}" = set; then | |
2822 | enableval="$enable_permissive" | |
698dcdb6 | 2823 | |
10f2d63a VZ |
2824 | if test "$enableval" = yes; then |
2825 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2826 | else | |
2827 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2828 | fi | |
698dcdb6 | 2829 | |
10f2d63a | 2830 | else |
698dcdb6 | 2831 | |
10f2d63a VZ |
2832 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2833 | if test "x$LINE" != x ; then | |
2834 | eval "DEFAULT_$LINE" | |
2835 | else | |
2836 | no_cache=1 | |
2837 | fi | |
2838 | ||
2839 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2840 | |
2841 | fi | |
10f2d63a VZ |
2842 | |
2843 | ||
2844 | eval "$ac_cv_use_permissive" | |
2845 | if test "$no_cache" != 1; then | |
2846 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2847 | fi | |
2848 | ||
2849 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2851 | else |
698dcdb6 | 2852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2853 | fi |
698dcdb6 | 2854 | |
10f2d63a | 2855 | |
698dcdb6 | 2856 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
3f345b47 | 2857 | echo "configure:2858: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2858 | no_cache=0 |
2859 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2860 | if test "${enable_no_deps+set}" = set; then | |
2861 | enableval="$enable_no_deps" | |
698dcdb6 | 2862 | |
10f2d63a VZ |
2863 | if test "$enableval" = yes; then |
2864 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2865 | else | |
2866 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2867 | fi | |
698dcdb6 | 2868 | |
10f2d63a | 2869 | else |
698dcdb6 | 2870 | |
10f2d63a VZ |
2871 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2872 | if test "x$LINE" != x ; then | |
2873 | eval "DEFAULT_$LINE" | |
2874 | else | |
2875 | no_cache=1 | |
2876 | fi | |
2877 | ||
2878 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2879 | |
2880 | fi | |
10f2d63a VZ |
2881 | |
2882 | ||
2883 | eval "$ac_cv_use_no_deps" | |
2884 | if test "$no_cache" != 1; then | |
2885 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2886 | fi | |
2887 | ||
2888 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2890 | else |
698dcdb6 | 2891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2892 | fi |
698dcdb6 VZ |
2893 | |
2894 | ||
10f2d63a | 2895 | |
54276ccf | 2896 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
3f345b47 | 2897 | echo "configure:2898: checking for --enable-compat20" >&5 |
54276ccf VZ |
2898 | no_cache=0 |
2899 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2900 | if test "${enable_compat20+set}" = set; then | |
2901 | enableval="$enable_compat20" | |
2902 | ||
2903 | if test "$enableval" = yes; then | |
2904 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2905 | else | |
2906 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2907 | fi | |
2908 | ||
2909 | else | |
2910 | ||
2911 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2912 | if test "x$LINE" != x ; then | |
2913 | eval "DEFAULT_$LINE" | |
2914 | else | |
2915 | no_cache=1 | |
2916 | fi | |
2917 | ||
2918 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2919 | ||
2920 | fi | |
2921 | ||
2922 | ||
2923 | eval "$ac_cv_use_compat20" | |
2924 | if test "$no_cache" != 1; then | |
2925 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2926 | fi | |
2927 | ||
2928 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2929 | echo "$ac_t""yes" 1>&6 | |
2930 | else | |
2931 | echo "$ac_t""no" 1>&6 | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
3f345b47 | 2936 | echo "configure:2937: checking for --enable-compat22" >&5 |
54276ccf VZ |
2937 | no_cache=0 |
2938 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2939 | if test "${enable_compat22+set}" = set; then | |
2940 | enableval="$enable_compat22" | |
2941 | ||
2942 | if test "$enableval" = yes; then | |
2943 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2944 | else | |
2945 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2946 | fi | |
2947 | ||
2948 | else | |
2949 | ||
2950 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2951 | if test "x$LINE" != x ; then | |
2952 | eval "DEFAULT_$LINE" | |
2953 | else | |
2954 | no_cache=1 | |
2955 | fi | |
2956 | ||
2957 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2958 | ||
2959 | fi | |
2960 | ||
2961 | ||
2962 | eval "$ac_cv_use_compat22" | |
2963 | if test "$no_cache" != 1; then | |
2964 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2965 | fi | |
2966 | ||
2967 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2968 | echo "$ac_t""yes" 1>&6 | |
2969 | else | |
2970 | echo "$ac_t""no" 1>&6 | |
2971 | fi | |
2972 | ||
2973 | ||
2974 | ||
698dcdb6 VZ |
2975 | |
2976 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3f345b47 | 2977 | echo "configure:2978: checking for --enable-intl" >&5 |
10f2d63a VZ |
2978 | no_cache=0 |
2979 | # Check whether --enable-intl or --disable-intl was given. | |
2980 | if test "${enable_intl+set}" = set; then | |
2981 | enableval="$enable_intl" | |
698dcdb6 | 2982 | |
10f2d63a VZ |
2983 | if test "$enableval" = yes; then |
2984 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2985 | else | |
2986 | ac_cv_use_intl='wxUSE_INTL=no' | |
2987 | fi | |
698dcdb6 | 2988 | |
10f2d63a | 2989 | else |
698dcdb6 | 2990 | |
10f2d63a VZ |
2991 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2992 | if test "x$LINE" != x ; then | |
2993 | eval "DEFAULT_$LINE" | |
2994 | else | |
2995 | no_cache=1 | |
2996 | fi | |
2997 | ||
2998 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2999 | |
3000 | fi | |
10f2d63a VZ |
3001 | |
3002 | ||
3003 | eval "$ac_cv_use_intl" | |
3004 | if test "$no_cache" != 1; then | |
3005 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3006 | fi | |
3007 | ||
3008 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3009 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3010 | else |
698dcdb6 | 3011 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3012 | fi |
698dcdb6 | 3013 | |
10f2d63a | 3014 | |
698dcdb6 | 3015 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
3f345b47 | 3016 | echo "configure:3017: checking for --enable-config" >&5 |
10f2d63a VZ |
3017 | no_cache=0 |
3018 | # Check whether --enable-config or --disable-config was given. | |
3019 | if test "${enable_config+set}" = set; then | |
3020 | enableval="$enable_config" | |
698dcdb6 | 3021 | |
10f2d63a VZ |
3022 | if test "$enableval" = yes; then |
3023 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3024 | else | |
3025 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3026 | fi | |
698dcdb6 | 3027 | |
10f2d63a | 3028 | else |
698dcdb6 | 3029 | |
10f2d63a VZ |
3030 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3031 | if test "x$LINE" != x ; then | |
3032 | eval "DEFAULT_$LINE" | |
3033 | else | |
3034 | no_cache=1 | |
3035 | fi | |
3036 | ||
3037 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3038 | |
3039 | fi | |
10f2d63a VZ |
3040 | |
3041 | ||
3042 | eval "$ac_cv_use_config" | |
3043 | if test "$no_cache" != 1; then | |
3044 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3045 | fi | |
3046 | ||
3047 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3048 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3049 | else |
698dcdb6 | 3050 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3051 | fi |
698dcdb6 VZ |
3052 | |
3053 | ||
b12915c1 | 3054 | |
698dcdb6 | 3055 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
3f345b47 | 3056 | echo "configure:3057: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3057 | no_cache=0 |
3058 | # Check whether --enable-sockets or --disable-sockets was given. | |
3059 | if test "${enable_sockets+set}" = set; then | |
3060 | enableval="$enable_sockets" | |
698dcdb6 | 3061 | |
10f2d63a VZ |
3062 | if test "$enableval" = yes; then |
3063 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3064 | else | |
3065 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3066 | fi | |
698dcdb6 | 3067 | |
10f2d63a | 3068 | else |
698dcdb6 | 3069 | |
10f2d63a VZ |
3070 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3071 | if test "x$LINE" != x ; then | |
3072 | eval "DEFAULT_$LINE" | |
3073 | else | |
3074 | no_cache=1 | |
3075 | fi | |
3076 | ||
3077 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3078 | |
3079 | fi | |
10f2d63a VZ |
3080 | |
3081 | ||
3082 | eval "$ac_cv_use_sockets" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3088 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3089 | else |
698dcdb6 | 3090 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3091 | fi |
698dcdb6 | 3092 | |
b12915c1 | 3093 | |
698dcdb6 VZ |
3094 | |
3095 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3f345b47 | 3096 | echo "configure:3097: checking for --enable-ipc" >&5 |
10f2d63a | 3097 | no_cache=0 |
eb4efbdc VZ |
3098 | # Check whether --enable-ipc or --disable-ipc was given. |
3099 | if test "${enable_ipc+set}" = set; then | |
3100 | enableval="$enable_ipc" | |
698dcdb6 | 3101 | |
10f2d63a | 3102 | if test "$enableval" = yes; then |
eb4efbdc | 3103 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3104 | else |
eb4efbdc | 3105 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3106 | fi |
698dcdb6 | 3107 | |
10f2d63a | 3108 | else |
698dcdb6 | 3109 | |
eb4efbdc | 3110 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3111 | if test "x$LINE" != x ; then |
3112 | eval "DEFAULT_$LINE" | |
3113 | else | |
3114 | no_cache=1 | |
3115 | fi | |
3116 | ||
eb4efbdc | 3117 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3118 | |
3119 | fi | |
10f2d63a VZ |
3120 | |
3121 | ||
eb4efbdc | 3122 | eval "$ac_cv_use_ipc" |
10f2d63a | 3123 | if test "$no_cache" != 1; then |
eb4efbdc | 3124 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3125 | fi |
3126 | ||
eb4efbdc | 3127 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3128 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3129 | else |
698dcdb6 | 3130 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3131 | fi |
698dcdb6 VZ |
3132 | |
3133 | ||
eb4efbdc | 3134 | |
1e6feb95 | 3135 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
3f345b47 | 3136 | echo "configure:3137: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3137 | no_cache=0 |
3138 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3139 | if test "${enable_cmdline+set}" = set; then | |
3140 | enableval="$enable_cmdline" | |
3141 | ||
3142 | if test "$enableval" = yes; then | |
3143 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3144 | else | |
3145 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3146 | fi | |
3147 | ||
3148 | else | |
3149 | ||
3150 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3151 | if test "x$LINE" != x ; then | |
3152 | eval "DEFAULT_$LINE" | |
3153 | else | |
3154 | no_cache=1 | |
3155 | fi | |
3156 | ||
3157 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3158 | ||
3159 | fi | |
3160 | ||
3161 | ||
3162 | eval "$ac_cv_use_cmdline" | |
3163 | if test "$no_cache" != 1; then | |
3164 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3165 | fi | |
3166 | ||
3167 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3168 | echo "$ac_t""yes" 1>&6 | |
3169 | else | |
3170 | echo "$ac_t""no" 1>&6 | |
3171 | fi | |
3172 | ||
3173 | ||
3174 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3f345b47 | 3175 | echo "configure:3176: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3176 | no_cache=0 |
3177 | # Check whether --enable-datetime or --disable-datetime was given. | |
3178 | if test "${enable_datetime+set}" = set; then | |
3179 | enableval="$enable_datetime" | |
3180 | ||
3181 | if test "$enableval" = yes; then | |
3182 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3183 | else | |
3184 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3185 | fi | |
3186 | ||
3187 | else | |
3188 | ||
3189 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3190 | if test "x$LINE" != x ; then | |
3191 | eval "DEFAULT_$LINE" | |
3192 | else | |
3193 | no_cache=1 | |
3194 | fi | |
3195 | ||
3196 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3197 | ||
3198 | fi | |
3199 | ||
3200 | ||
3201 | eval "$ac_cv_use_datetime" | |
3202 | if test "$no_cache" != 1; then | |
3203 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3204 | fi | |
3205 | ||
3206 | if test "$wxUSE_DATETIME" = yes; then | |
3207 | echo "$ac_t""yes" 1>&6 | |
3208 | else | |
3209 | echo "$ac_t""no" 1>&6 | |
3210 | fi | |
3211 | ||
3212 | ||
3213 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3f345b47 | 3214 | echo "configure:3215: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3215 | no_cache=0 |
3216 | # Check whether --enable-timedate or --disable-timedate was given. | |
3217 | if test "${enable_timedate+set}" = set; then | |
3218 | enableval="$enable_timedate" | |
3219 | ||
3220 | if test "$enableval" = yes; then | |
3221 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3222 | else | |
3223 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3224 | fi | |
3225 | ||
3226 | else | |
3227 | ||
3228 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3229 | if test "x$LINE" != x ; then | |
3230 | eval "DEFAULT_$LINE" | |
3231 | else | |
3232 | no_cache=1 | |
3233 | fi | |
3234 | ||
3235 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3236 | ||
3237 | fi | |
3238 | ||
3239 | ||
3240 | eval "$ac_cv_use_timedate" | |
3241 | if test "$no_cache" != 1; then | |
3242 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3243 | fi | |
3244 | ||
3245 | if test "$wxUSE_TIMEDATE" = yes; then | |
3246 | echo "$ac_t""yes" 1>&6 | |
3247 | else | |
3248 | echo "$ac_t""no" 1>&6 | |
3249 | fi | |
3250 | ||
3251 | ||
3252 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3f345b47 | 3253 | echo "configure:3254: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3254 | no_cache=0 |
3255 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3256 | if test "${enable_stopwatch+set}" = set; then | |
3257 | enableval="$enable_stopwatch" | |
3258 | ||
3259 | if test "$enableval" = yes; then | |
3260 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3261 | else | |
3262 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3263 | fi | |
3264 | ||
3265 | else | |
3266 | ||
3267 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3268 | if test "x$LINE" != x ; then | |
3269 | eval "DEFAULT_$LINE" | |
3270 | else | |
3271 | no_cache=1 | |
3272 | fi | |
3273 | ||
3274 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3275 | ||
3276 | fi | |
3277 | ||
3278 | ||
3279 | eval "$ac_cv_use_stopwatch" | |
3280 | if test "$no_cache" != 1; then | |
3281 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3282 | fi | |
3283 | ||
3284 | if test "$wxUSE_STOPWATCH" = yes; then | |
3285 | echo "$ac_t""yes" 1>&6 | |
3286 | else | |
3287 | echo "$ac_t""no" 1>&6 | |
3288 | fi | |
3289 | ||
3290 | ||
698dcdb6 | 3291 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
3f345b47 | 3292 | echo "configure:3293: checking for --enable-dialupman" >&5 |
10f2d63a | 3293 | no_cache=0 |
eb4efbdc VZ |
3294 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3295 | if test "${enable_dialupman+set}" = set; then | |
3296 | enableval="$enable_dialupman" | |
698dcdb6 | 3297 | |
10f2d63a | 3298 | if test "$enableval" = yes; then |
eb4efbdc | 3299 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3300 | else |
eb4efbdc | 3301 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3302 | fi |
698dcdb6 | 3303 | |
10f2d63a | 3304 | else |
698dcdb6 | 3305 | |
eb4efbdc | 3306 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3307 | if test "x$LINE" != x ; then |
3308 | eval "DEFAULT_$LINE" | |
3309 | else | |
3310 | no_cache=1 | |
3311 | fi | |
3312 | ||
eb4efbdc | 3313 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3314 | |
3315 | fi | |
10f2d63a VZ |
3316 | |
3317 | ||
eb4efbdc | 3318 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3319 | if test "$no_cache" != 1; then |
eb4efbdc | 3320 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3321 | fi |
3322 | ||
eb4efbdc | 3323 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3324 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3325 | else |
698dcdb6 | 3326 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3327 | fi |
698dcdb6 | 3328 | |
10f2d63a | 3329 | |
698dcdb6 | 3330 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
3f345b47 | 3331 | echo "configure:3332: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3332 | no_cache=0 |
3333 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3334 | if test "${enable_apple_ieee+set}" = set; then | |
3335 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3336 | |
10f2d63a VZ |
3337 | if test "$enableval" = yes; then |
3338 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3339 | else | |
3340 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3341 | fi | |
698dcdb6 | 3342 | |
10f2d63a | 3343 | else |
698dcdb6 | 3344 | |
10f2d63a VZ |
3345 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3346 | if test "x$LINE" != x ; then | |
3347 | eval "DEFAULT_$LINE" | |
3348 | else | |
3349 | no_cache=1 | |
3350 | fi | |
3351 | ||
3352 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3353 | |
3354 | fi | |
10f2d63a VZ |
3355 | |
3356 | ||
3357 | eval "$ac_cv_use_apple_ieee" | |
3358 | if test "$no_cache" != 1; then | |
3359 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3360 | fi | |
3361 | ||
3362 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3364 | else |
698dcdb6 | 3365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3366 | fi |
698dcdb6 | 3367 | |
10f2d63a | 3368 | |
1e6feb95 | 3369 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
3f345b47 | 3370 | echo "configure:3371: checking for --enable-timer" >&5 |
10f2d63a | 3371 | no_cache=0 |
1e6feb95 VZ |
3372 | # Check whether --enable-timer or --disable-timer was given. |
3373 | if test "${enable_timer+set}" = set; then | |
3374 | enableval="$enable_timer" | |
698dcdb6 | 3375 | |
10f2d63a | 3376 | if test "$enableval" = yes; then |
1e6feb95 | 3377 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3378 | else |
1e6feb95 | 3379 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3380 | fi |
698dcdb6 | 3381 | |
10f2d63a | 3382 | else |
698dcdb6 | 3383 | |
1e6feb95 | 3384 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3385 | if test "x$LINE" != x ; then |
3386 | eval "DEFAULT_$LINE" | |
3387 | else | |
3388 | no_cache=1 | |
3389 | fi | |
3390 | ||
1e6feb95 | 3391 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3392 | |
3393 | fi | |
10f2d63a VZ |
3394 | |
3395 | ||
1e6feb95 | 3396 | eval "$ac_cv_use_timer" |
10f2d63a | 3397 | if test "$no_cache" != 1; then |
1e6feb95 | 3398 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3399 | fi |
3400 | ||
1e6feb95 | 3401 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3402 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3403 | else |
698dcdb6 | 3404 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3405 | fi |
698dcdb6 | 3406 | |
10f2d63a | 3407 | |
698dcdb6 | 3408 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
3f345b47 | 3409 | echo "configure:3410: checking for --enable-wave" >&5 |
10f2d63a VZ |
3410 | no_cache=0 |
3411 | # Check whether --enable-wave or --disable-wave was given. | |
3412 | if test "${enable_wave+set}" = set; then | |
3413 | enableval="$enable_wave" | |
698dcdb6 | 3414 | |
10f2d63a VZ |
3415 | if test "$enableval" = yes; then |
3416 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3417 | else | |
3418 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3419 | fi | |
698dcdb6 | 3420 | |
10f2d63a | 3421 | else |
698dcdb6 | 3422 | |
10f2d63a VZ |
3423 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3424 | if test "x$LINE" != x ; then | |
3425 | eval "DEFAULT_$LINE" | |
3426 | else | |
3427 | no_cache=1 | |
3428 | fi | |
3429 | ||
3430 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3431 | |
3432 | fi | |
10f2d63a VZ |
3433 | |
3434 | ||
3435 | eval "$ac_cv_use_wave" | |
3436 | if test "$no_cache" != 1; then | |
3437 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3438 | fi | |
3439 | ||
3440 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3441 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3442 | else |
698dcdb6 | 3443 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3444 | fi |
698dcdb6 | 3445 | |
10f2d63a | 3446 | |
698dcdb6 | 3447 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
3f345b47 | 3448 | echo "configure:3449: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3449 | no_cache=0 |
3450 | # Check whether --enable-fraction or --disable-fraction was given. | |
3451 | if test "${enable_fraction+set}" = set; then | |
3452 | enableval="$enable_fraction" | |
698dcdb6 | 3453 | |
10f2d63a VZ |
3454 | if test "$enableval" = yes; then |
3455 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3456 | else | |
3457 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3458 | fi | |
698dcdb6 | 3459 | |
10f2d63a | 3460 | else |
698dcdb6 | 3461 | |
10f2d63a VZ |
3462 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3463 | if test "x$LINE" != x ; then | |
3464 | eval "DEFAULT_$LINE" | |
3465 | else | |
3466 | no_cache=1 | |
3467 | fi | |
3468 | ||
3469 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3470 | |
3471 | fi | |
10f2d63a VZ |
3472 | |
3473 | ||
3474 | eval "$ac_cv_use_fraction" | |
3475 | if test "$no_cache" != 1; then | |
3476 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3477 | fi | |
3478 | ||
3479 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3480 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3481 | else |
698dcdb6 | 3482 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3483 | fi |
698dcdb6 | 3484 | |
10f2d63a | 3485 | |
698dcdb6 | 3486 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
3f345b47 | 3487 | echo "configure:3488: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3488 | no_cache=0 |
3489 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3490 | if test "${enable_dynlib+set}" = set; then | |
3491 | enableval="$enable_dynlib" | |
698dcdb6 | 3492 | |
10f2d63a VZ |
3493 | if test "$enableval" = yes; then |
3494 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3495 | else | |
3496 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3497 | fi | |
698dcdb6 | 3498 | |
10f2d63a | 3499 | else |
698dcdb6 | 3500 | |
10f2d63a VZ |
3501 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3502 | if test "x$LINE" != x ; then | |
3503 | eval "DEFAULT_$LINE" | |
3504 | else | |
3505 | no_cache=1 | |
3506 | fi | |
3507 | ||
3508 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3509 | |
3510 | fi | |
10f2d63a VZ |
3511 | |
3512 | ||
3513 | eval "$ac_cv_use_dynlib" | |
3514 | if test "$no_cache" != 1; then | |
3515 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3516 | fi | |
3517 | ||
3518 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3519 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3520 | else |
698dcdb6 | 3521 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3522 | fi |
698dcdb6 | 3523 | |
10f2d63a | 3524 | |
698dcdb6 | 3525 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
3f345b47 | 3526 | echo "configure:3527: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3527 | no_cache=0 |
3528 | # Check whether --enable-longlong or --disable-longlong was given. | |
3529 | if test "${enable_longlong+set}" = set; then | |
3530 | enableval="$enable_longlong" | |
698dcdb6 | 3531 | |
10f2d63a VZ |
3532 | if test "$enableval" = yes; then |
3533 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3534 | else | |
3535 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3536 | fi | |
698dcdb6 | 3537 | |
10f2d63a | 3538 | else |
698dcdb6 | 3539 | |
10f2d63a VZ |
3540 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3541 | if test "x$LINE" != x ; then | |
3542 | eval "DEFAULT_$LINE" | |
3543 | else | |
3544 | no_cache=1 | |
3545 | fi | |
3546 | ||
3547 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3548 | |
3549 | fi | |
10f2d63a VZ |
3550 | |
3551 | ||
3552 | eval "$ac_cv_use_longlong" | |
3553 | if test "$no_cache" != 1; then | |
3554 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3555 | fi | |
3556 | ||
3557 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3558 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3559 | else |
698dcdb6 | 3560 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3561 | fi |
698dcdb6 | 3562 | |
10f2d63a | 3563 | |
698dcdb6 | 3564 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3f345b47 | 3565 | echo "configure:3566: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3566 | no_cache=0 |
3567 | # Check whether --enable-geometry or --disable-geometry was given. | |
3568 | if test "${enable_geometry+set}" = set; then | |
3569 | enableval="$enable_geometry" | |
698dcdb6 | 3570 | |
e8f65ba6 RR |
3571 | if test "$enableval" = yes; then |
3572 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3573 | else | |
3574 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3575 | fi | |
698dcdb6 | 3576 | |
e8f65ba6 | 3577 | else |
698dcdb6 | 3578 | |
e8f65ba6 RR |
3579 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3580 | if test "x$LINE" != x ; then | |
3581 | eval "DEFAULT_$LINE" | |
3582 | else | |
3583 | no_cache=1 | |
3584 | fi | |
3585 | ||
3586 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3587 | |
3588 | fi | |
e8f65ba6 RR |
3589 | |
3590 | ||
3591 | eval "$ac_cv_use_geometry" | |
3592 | if test "$no_cache" != 1; then | |
3593 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3594 | fi | |
3595 | ||
3596 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3597 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3598 | else |
698dcdb6 | 3599 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3600 | fi |
698dcdb6 | 3601 | |
e8f65ba6 | 3602 | |
698dcdb6 | 3603 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3f345b47 | 3604 | echo "configure:3605: checking for --enable-log" >&5 |
10f2d63a VZ |
3605 | no_cache=0 |
3606 | # Check whether --enable-log or --disable-log was given. | |
3607 | if test "${enable_log+set}" = set; then | |
3608 | enableval="$enable_log" | |
698dcdb6 | 3609 | |
10f2d63a VZ |
3610 | if test "$enableval" = yes; then |
3611 | ac_cv_use_log='wxUSE_LOG=yes' | |
3612 | else | |
3613 | ac_cv_use_log='wxUSE_LOG=no' | |
3614 | fi | |
698dcdb6 | 3615 | |
10f2d63a | 3616 | else |
698dcdb6 | 3617 | |
10f2d63a VZ |
3618 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3619 | if test "x$LINE" != x ; then | |
3620 | eval "DEFAULT_$LINE" | |
3621 | else | |
3622 | no_cache=1 | |
3623 | fi | |
3624 | ||
3625 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3626 | |
3627 | fi | |
10f2d63a VZ |
3628 | |
3629 | ||
3630 | eval "$ac_cv_use_log" | |
3631 | if test "$no_cache" != 1; then | |
3632 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3633 | fi | |
3634 | ||
3635 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3637 | else |
698dcdb6 | 3638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3639 | fi |
698dcdb6 | 3640 | |
10f2d63a | 3641 | |
698dcdb6 | 3642 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3f345b47 | 3643 | echo "configure:3644: checking for --enable-streams" >&5 |
10f2d63a VZ |
3644 | no_cache=0 |
3645 | # Check whether --enable-streams or --disable-streams was given. | |
3646 | if test "${enable_streams+set}" = set; then | |
3647 | enableval="$enable_streams" | |
698dcdb6 | 3648 | |
10f2d63a VZ |
3649 | if test "$enableval" = yes; then |
3650 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3651 | else | |
3652 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3653 | fi | |
698dcdb6 | 3654 | |
10f2d63a | 3655 | else |
698dcdb6 | 3656 | |
10f2d63a VZ |
3657 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3658 | if test "x$LINE" != x ; then | |
3659 | eval "DEFAULT_$LINE" | |
3660 | else | |
3661 | no_cache=1 | |
3662 | fi | |
3663 | ||
3664 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3665 | |
3666 | fi | |
10f2d63a VZ |
3667 | |
3668 | ||
3669 | eval "$ac_cv_use_streams" | |
3670 | if test "$no_cache" != 1; then | |
3671 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3672 | fi | |
3673 | ||
3674 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3676 | else |
698dcdb6 | 3677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3678 | fi |
698dcdb6 | 3679 | |
10f2d63a | 3680 | |
698dcdb6 | 3681 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3f345b47 | 3682 | echo "configure:3683: checking for --enable-file" >&5 |
10f2d63a VZ |
3683 | no_cache=0 |
3684 | # Check whether --enable-file or --disable-file was given. | |
3685 | if test "${enable_file+set}" = set; then | |
3686 | enableval="$enable_file" | |
698dcdb6 | 3687 | |
10f2d63a VZ |
3688 | if test "$enableval" = yes; then |
3689 | ac_cv_use_file='wxUSE_FILE=yes' | |
3690 | else | |
3691 | ac_cv_use_file='wxUSE_FILE=no' | |
3692 | fi | |
698dcdb6 | 3693 | |
10f2d63a | 3694 | else |
698dcdb6 | 3695 | |
10f2d63a VZ |
3696 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3697 | if test "x$LINE" != x ; then | |
3698 | eval "DEFAULT_$LINE" | |
3699 | else | |
3700 | no_cache=1 | |
3701 | fi | |
3702 | ||
3703 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3704 | |
3705 | fi | |
10f2d63a VZ |
3706 | |
3707 | ||
3708 | eval "$ac_cv_use_file" | |
3709 | if test "$no_cache" != 1; then | |
3710 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3711 | fi | |
3712 | ||
3713 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3715 | else |
698dcdb6 | 3716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3717 | fi |
698dcdb6 | 3718 | |
10f2d63a | 3719 | |
1e6feb95 | 3720 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
3f345b47 | 3721 | echo "configure:3722: checking for --enable-ffile" >&5 |
10f2d63a | 3722 | no_cache=0 |
1e6feb95 VZ |
3723 | # Check whether --enable-ffile or --disable-ffile was given. |
3724 | if test "${enable_ffile+set}" = set; then | |
3725 | enableval="$enable_ffile" | |
698dcdb6 | 3726 | |
10f2d63a | 3727 | if test "$enableval" = yes; then |
1e6feb95 | 3728 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3729 | else |
1e6feb95 | 3730 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3731 | fi |
698dcdb6 | 3732 | |
10f2d63a | 3733 | else |
698dcdb6 | 3734 | |
1e6feb95 | 3735 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3736 | if test "x$LINE" != x ; then |
3737 | eval "DEFAULT_$LINE" | |
3738 | else | |
3739 | no_cache=1 | |
3740 | fi | |
3741 | ||
1e6feb95 | 3742 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3743 | |
3744 | fi | |
10f2d63a VZ |
3745 | |
3746 | ||
1e6feb95 | 3747 | eval "$ac_cv_use_ffile" |
10f2d63a | 3748 | if test "$no_cache" != 1; then |
1e6feb95 | 3749 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3750 | fi |
3751 | ||
1e6feb95 | 3752 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3753 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3754 | else |
698dcdb6 | 3755 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3756 | fi |
698dcdb6 | 3757 | |
10f2d63a | 3758 | |
a3a584a7 | 3759 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
3f345b47 | 3760 | echo "configure:3761: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3761 | no_cache=0 |
3762 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3763 | if test "${enable_textbuf+set}" = set; then | |
3764 | enableval="$enable_textbuf" | |
3765 | ||
3766 | if test "$enableval" = yes; then | |
3767 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3768 | else | |
3769 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3770 | fi | |
3771 | ||
3772 | else | |
3773 | ||
3774 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
3775 | if test "x$LINE" != x ; then | |
3776 | eval "DEFAULT_$LINE" | |
3777 | else | |
3778 | no_cache=1 | |
3779 | fi | |
3780 | ||
3781 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
3782 | ||
3783 | fi | |
3784 | ||
3785 | ||
3786 | eval "$ac_cv_use_textbuf" | |
3787 | if test "$no_cache" != 1; then | |
3788 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
3789 | fi | |
3790 | ||
3791 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
3792 | echo "$ac_t""yes" 1>&6 | |
3793 | else | |
3794 | echo "$ac_t""no" 1>&6 | |
3795 | fi | |
3796 | ||
3797 | ||
1e6feb95 | 3798 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
3f345b47 | 3799 | echo "configure:3800: checking for --enable-textfile" >&5 |
10f2d63a | 3800 | no_cache=0 |
1e6feb95 VZ |
3801 | # Check whether --enable-textfile or --disable-textfile was given. |
3802 | if test "${enable_textfile+set}" = set; then | |
3803 | enableval="$enable_textfile" | |
698dcdb6 | 3804 | |
10f2d63a | 3805 | if test "$enableval" = yes; then |
1e6feb95 | 3806 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3807 | else |
1e6feb95 | 3808 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3809 | fi |
698dcdb6 | 3810 | |
10f2d63a | 3811 | else |
698dcdb6 | 3812 | |
1e6feb95 | 3813 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3814 | if test "x$LINE" != x ; then |
3815 | eval "DEFAULT_$LINE" | |
3816 | else | |
3817 | no_cache=1 | |
3818 | fi | |
3819 | ||
1e6feb95 | 3820 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3821 | |
3822 | fi | |
10f2d63a VZ |
3823 | |
3824 | ||
1e6feb95 | 3825 | eval "$ac_cv_use_textfile" |
10f2d63a | 3826 | if test "$no_cache" != 1; then |
1e6feb95 | 3827 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3828 | fi |
3829 | ||
1e6feb95 | 3830 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3832 | else |
698dcdb6 | 3833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3834 | fi |
698dcdb6 | 3835 | |
10f2d63a | 3836 | |
1e6feb95 | 3837 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
3f345b47 | 3838 | echo "configure:3839: checking for --enable-fontmap" >&5 |
10f2d63a | 3839 | no_cache=0 |
1e6feb95 VZ |
3840 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3841 | if test "${enable_fontmap+set}" = set; then | |
3842 | enableval="$enable_fontmap" | |
698dcdb6 | 3843 | |
10f2d63a | 3844 | if test "$enableval" = yes; then |
1e6feb95 | 3845 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3846 | else |
1e6feb95 | 3847 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3848 | fi |
698dcdb6 | 3849 | |
10f2d63a | 3850 | else |
698dcdb6 | 3851 | |
1e6feb95 | 3852 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3853 | if test "x$LINE" != x ; then |
3854 | eval "DEFAULT_$LINE" | |
3855 | else | |
3856 | no_cache=1 | |
3857 | fi | |
3858 | ||
1e6feb95 | 3859 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3860 | |
3861 | fi | |
10f2d63a VZ |
3862 | |
3863 | ||
1e6feb95 | 3864 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3865 | if test "$no_cache" != 1; then |
1e6feb95 | 3866 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3867 | fi |
3868 | ||
1e6feb95 | 3869 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3870 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3871 | else |
698dcdb6 | 3872 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3873 | fi |
698dcdb6 | 3874 | |
10f2d63a | 3875 | |
1e6feb95 | 3876 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
3f345b47 | 3877 | echo "configure:3878: checking for --enable-unicode" >&5 |
10f2d63a | 3878 | no_cache=0 |
1e6feb95 VZ |
3879 | # Check whether --enable-unicode or --disable-unicode was given. |
3880 | if test "${enable_unicode+set}" = set; then | |
3881 | enableval="$enable_unicode" | |
3882 | ||
3883 | if test "$enableval" = yes; then | |
3884 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3885 | else | |
3886 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3887 | fi | |
3888 | ||
3889 | else | |
3890 | ||
3891 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3892 | if test "x$LINE" != x ; then | |
3893 | eval "DEFAULT_$LINE" | |
3894 | else | |
3895 | no_cache=1 | |
3896 | fi | |
3897 | ||
3898 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3899 | ||
3900 | fi | |
3901 | ||
3902 | ||
3903 | eval "$ac_cv_use_unicode" | |
3904 | if test "$no_cache" != 1; then | |
3905 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3906 | fi | |
3907 | ||
3908 | if test "$wxUSE_UNICODE" = yes; then | |
3909 | echo "$ac_t""yes" 1>&6 | |
3910 | else | |
3911 | echo "$ac_t""no" 1>&6 | |
3912 | fi | |
3913 | ||
3914 | ||
1e6feb95 | 3915 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
3f345b47 | 3916 | echo "configure:3917: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3917 | no_cache=0 |
3918 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3919 | if test "${enable_wxprintfv+set}" = set; then | |
3920 | enableval="$enable_wxprintfv" | |
3921 | ||
3922 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3923 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3924 | else | |
3925 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3926 | fi | |
698dcdb6 | 3927 | |
10f2d63a | 3928 | else |
698dcdb6 | 3929 | |
10f2d63a VZ |
3930 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3931 | if test "x$LINE" != x ; then | |
3932 | eval "DEFAULT_$LINE" | |
3933 | else | |
3934 | no_cache=1 | |
3935 | fi | |
3936 | ||
3937 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3938 | |
3939 | fi | |
10f2d63a VZ |
3940 | |
3941 | ||
3942 | eval "$ac_cv_use_wxprintfv" | |
3943 | if test "$no_cache" != 1; then | |
3944 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3945 | fi | |
3946 | ||
3947 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3948 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3949 | else |
698dcdb6 | 3950 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3951 | fi |
698dcdb6 | 3952 | |
10f2d63a | 3953 | |
698dcdb6 | 3954 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
3f345b47 | 3955 | echo "configure:3956: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3956 | no_cache=0 |
3957 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3958 | if test "${enable_std_iostreams+set}" = set; then | |
3959 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3960 | |
10f2d63a VZ |
3961 | if test "$enableval" = yes; then |
3962 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3963 | else | |
3964 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3965 | fi | |
698dcdb6 | 3966 | |
10f2d63a | 3967 | else |
698dcdb6 | 3968 | |
10f2d63a VZ |
3969 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3970 | if test "x$LINE" != x ; then | |
3971 | eval "DEFAULT_$LINE" | |
3972 | else | |
3973 | no_cache=1 | |
3974 | fi | |
3975 | ||
3976 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3977 | |
3978 | fi | |
10f2d63a VZ |
3979 | |
3980 | ||
3981 | eval "$ac_cv_use_std_iostreams" | |
3982 | if test "$no_cache" != 1; then | |
3983 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3984 | fi | |
3985 | ||
3986 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3987 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3988 | else |
698dcdb6 | 3989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3990 | fi |
698dcdb6 | 3991 | |
10f2d63a | 3992 | |
698dcdb6 | 3993 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
3f345b47 | 3994 | echo "configure:3995: checking for --enable-filesystem" >&5 |
24528b0c VS |
3995 | no_cache=0 |
3996 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3997 | if test "${enable_filesystem+set}" = set; then | |
3998 | enableval="$enable_filesystem" | |
698dcdb6 | 3999 | |
24528b0c VS |
4000 | if test "$enableval" = yes; then |
4001 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4002 | else | |
4003 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4004 | fi | |
698dcdb6 | 4005 | |
24528b0c | 4006 | else |
698dcdb6 | 4007 | |
24528b0c VS |
4008 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4009 | if test "x$LINE" != x ; then | |
4010 | eval "DEFAULT_$LINE" | |
4011 | else | |
4012 | no_cache=1 | |
4013 | fi | |
4014 | ||
4015 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4016 | |
4017 | fi | |
24528b0c VS |
4018 | |
4019 | ||
4020 | eval "$ac_cv_use_filesystem" | |
4021 | if test "$no_cache" != 1; then | |
4022 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4023 | fi | |
4024 | ||
4025 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4026 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4027 | else |
698dcdb6 | 4028 | echo "$ac_t""no" 1>&6 |
24528b0c | 4029 | fi |
698dcdb6 | 4030 | |
24528b0c | 4031 | |
698dcdb6 | 4032 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
3f345b47 | 4033 | echo "configure:4034: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4034 | no_cache=0 |
4035 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4036 | if test "${enable_fs_inet+set}" = set; then | |
4037 | enableval="$enable_fs_inet" | |
698dcdb6 | 4038 | |
10f2d63a VZ |
4039 | if test "$enableval" = yes; then |
4040 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4041 | else | |
4042 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4043 | fi | |
698dcdb6 | 4044 | |
10f2d63a | 4045 | else |
698dcdb6 | 4046 | |
10f2d63a VZ |
4047 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4055 | |
4056 | fi | |
10f2d63a VZ |
4057 | |
4058 | ||
4059 | eval "$ac_cv_use_fs_inet" | |
4060 | if test "$no_cache" != 1; then | |
4061 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4062 | fi | |
4063 | ||
4064 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4065 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4066 | else |
698dcdb6 | 4067 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4068 | fi |
698dcdb6 | 4069 | |
10f2d63a | 4070 | |
698dcdb6 | 4071 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
3f345b47 | 4072 | echo "configure:4073: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4073 | no_cache=0 |
4074 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4075 | if test "${enable_fs_zip+set}" = set; then | |
4076 | enableval="$enable_fs_zip" | |
698dcdb6 | 4077 | |
10f2d63a VZ |
4078 | if test "$enableval" = yes; then |
4079 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4080 | else | |
4081 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4082 | fi | |
698dcdb6 | 4083 | |
10f2d63a | 4084 | else |
698dcdb6 | 4085 | |
10f2d63a VZ |
4086 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4087 | if test "x$LINE" != x ; then | |
4088 | eval "DEFAULT_$LINE" | |
4089 | else | |
4090 | no_cache=1 | |
4091 | fi | |
4092 | ||
4093 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4094 | |
4095 | fi | |
10f2d63a VZ |
4096 | |
4097 | ||
4098 | eval "$ac_cv_use_fs_zip" | |
4099 | if test "$no_cache" != 1; then | |
4100 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4101 | fi | |
4102 | ||
4103 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4104 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4105 | else |
698dcdb6 | 4106 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4107 | fi |
698dcdb6 | 4108 | |
10f2d63a | 4109 | |
698dcdb6 | 4110 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
3f345b47 | 4111 | echo "configure:4112: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4112 | no_cache=0 |
4113 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4114 | if test "${enable_zipstream+set}" = set; then | |
4115 | enableval="$enable_zipstream" | |
698dcdb6 | 4116 | |
10f2d63a VZ |
4117 | if test "$enableval" = yes; then |
4118 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4119 | else | |
4120 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4121 | fi | |
698dcdb6 | 4122 | |
10f2d63a | 4123 | else |
698dcdb6 | 4124 | |
10f2d63a VZ |
4125 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4126 | if test "x$LINE" != x ; then | |
4127 | eval "DEFAULT_$LINE" | |
4128 | else | |
4129 | no_cache=1 | |
4130 | fi | |
4131 | ||
4132 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4133 | |
4134 | fi | |
10f2d63a VZ |
4135 | |
4136 | ||
4137 | eval "$ac_cv_use_zipstream" | |
4138 | if test "$no_cache" != 1; then | |
4139 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4140 | fi | |
4141 | ||
4142 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4143 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4144 | else |
698dcdb6 | 4145 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4146 | fi |
698dcdb6 | 4147 | |
10f2d63a | 4148 | |
698dcdb6 VZ |
4149 | |
4150 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
3f345b47 | 4151 | echo "configure:4152: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4152 | no_cache=0 |
4153 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4154 | if test "${enable_catch_segvs+set}" = set; then | |
4155 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4156 | |
eb4efbdc VZ |
4157 | if test "$enableval" = yes; then |
4158 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4159 | else | |
4160 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4161 | fi | |
698dcdb6 | 4162 | |
eb4efbdc | 4163 | else |
698dcdb6 | 4164 | |
eb4efbdc VZ |
4165 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4166 | if test "x$LINE" != x ; then | |
4167 | eval "DEFAULT_$LINE" | |
4168 | else | |
4169 | no_cache=1 | |
4170 | fi | |
4171 | ||
4172 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4173 | |
4174 | fi | |
eb4efbdc VZ |
4175 | |
4176 | ||
4177 | eval "$ac_cv_use_catch_segvs" | |
4178 | if test "$no_cache" != 1; then | |
4179 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4180 | fi | |
4181 | ||
4182 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4183 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4184 | else |
698dcdb6 | 4185 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4186 | fi |
698dcdb6 | 4187 | |
eb4efbdc | 4188 | |
698dcdb6 | 4189 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
3f345b47 | 4190 | echo "configure:4191: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4191 | no_cache=0 |
4192 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4193 | if test "${enable_snglinst+set}" = set; then | |
4194 | enableval="$enable_snglinst" | |
698dcdb6 | 4195 | |
4f3c5f06 VZ |
4196 | if test "$enableval" = yes; then |
4197 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4198 | else | |
4199 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4200 | fi | |
698dcdb6 | 4201 | |
4f3c5f06 | 4202 | else |
698dcdb6 | 4203 | |
4f3c5f06 VZ |
4204 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4205 | if test "x$LINE" != x ; then | |
4206 | eval "DEFAULT_$LINE" | |
4207 | else | |
4208 | no_cache=1 | |
4209 | fi | |
4210 | ||
4211 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4212 | |
4213 | fi | |
4f3c5f06 VZ |
4214 | |
4215 | ||
4216 | eval "$ac_cv_use_snglinst" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4222 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4223 | else |
698dcdb6 | 4224 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4225 | fi |
698dcdb6 VZ |
4226 | |
4227 | ||
eb4efbdc | 4228 | |
1e6feb95 | 4229 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
3f345b47 | 4230 | echo "configure:4231: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4231 | no_cache=0 |
4232 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4233 | if test "${enable_mimetype+set}" = set; then | |
4234 | enableval="$enable_mimetype" | |
4235 | ||
4236 | if test "$enableval" = yes; then | |
4237 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4238 | else | |
4239 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4240 | fi | |
4241 | ||
4242 | else | |
4243 | ||
4244 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4245 | if test "x$LINE" != x ; then | |
4246 | eval "DEFAULT_$LINE" | |
4247 | else | |
4248 | no_cache=1 | |
4249 | fi | |
4250 | ||
4251 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4252 | ||
4253 | fi | |
4254 | ||
4255 | ||
4256 | eval "$ac_cv_use_mimetype" | |
4257 | if test "$no_cache" != 1; then | |
4258 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4259 | fi | |
4260 | ||
4261 | if test "$wxUSE_MIMETYPE" = yes; then | |
4262 | echo "$ac_t""yes" 1>&6 | |
4263 | else | |
4264 | echo "$ac_t""no" 1>&6 | |
4265 | fi | |
4266 | ||
4267 | ||
3e44f09d | 4268 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
3f345b47 | 4269 | echo "configure:4270: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4270 | no_cache=0 |
4271 | # Check whether --enable-system_options or --disable-system_options was given. | |
4272 | if test "${enable_system_options+set}" = set; then | |
4273 | enableval="$enable_system_options" | |
4274 | ||
4275 | if test "$enableval" = yes; then | |
4276 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4277 | else | |
4278 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4279 | fi | |
4280 | ||
4281 | else | |
4282 | ||
4283 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4291 | ||
4292 | fi | |
4293 | ||
4294 | ||
4295 | eval "$ac_cv_use_system_options" | |
4296 | if test "$no_cache" != 1; then | |
4297 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4298 | fi | |
4299 | ||
4300 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4301 | echo "$ac_t""yes" 1>&6 | |
4302 | else | |
4303 | echo "$ac_t""no" 1>&6 | |
4304 | fi | |
4305 | ||
4306 | ||
1e6feb95 | 4307 | |
698dcdb6 VZ |
4308 | |
4309 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
3f345b47 | 4310 | echo "configure:4311: checking for --enable-threads" >&5 |
10f2d63a VZ |
4311 | no_cache=0 |
4312 | # Check whether --enable-threads or --disable-threads was given. | |
4313 | if test "${enable_threads+set}" = set; then | |
4314 | enableval="$enable_threads" | |
698dcdb6 | 4315 | |
10f2d63a VZ |
4316 | if test "$enableval" = yes; then |
4317 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4318 | else | |
4319 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4320 | fi | |
698dcdb6 | 4321 | |
10f2d63a | 4322 | else |
698dcdb6 | 4323 | |
10f2d63a VZ |
4324 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4325 | if test "x$LINE" != x ; then | |
4326 | eval "DEFAULT_$LINE" | |
4327 | else | |
4328 | no_cache=1 | |
4329 | fi | |
4330 | ||
4331 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4332 | |
4333 | fi | |
10f2d63a VZ |
4334 | |
4335 | ||
4336 | eval "$ac_cv_use_threads" | |
4337 | if test "$no_cache" != 1; then | |
4338 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4339 | fi | |
4340 | ||
4341 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4342 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4343 | else |
698dcdb6 | 4344 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4345 | fi |
698dcdb6 | 4346 | |
10f2d63a | 4347 | |
698dcdb6 | 4348 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
3f345b47 | 4349 | echo "configure:4350: checking for --enable-serial" >&5 |
10f2d63a VZ |
4350 | no_cache=0 |
4351 | # Check whether --enable-serial or --disable-serial was given. | |
4352 | if test "${enable_serial+set}" = set; then | |
4353 | enableval="$enable_serial" | |
698dcdb6 | 4354 | |
10f2d63a VZ |
4355 | if test "$enableval" = yes; then |
4356 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4357 | else | |
4358 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4359 | fi | |
698dcdb6 | 4360 | |
10f2d63a | 4361 | else |
698dcdb6 | 4362 | |
10f2d63a VZ |
4363 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
4366 | else | |
4367 | no_cache=1 | |
4368 | fi | |
4369 | ||
4370 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4371 | |
4372 | fi | |
10f2d63a VZ |
4373 | |
4374 | ||
4375 | eval "$ac_cv_use_serial" | |
4376 | if test "$no_cache" != 1; then | |
4377 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4378 | fi | |
4379 | ||
4380 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4381 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4382 | else |
698dcdb6 | 4383 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4384 | fi |
698dcdb6 | 4385 | |
10f2d63a | 4386 | |
b12915c1 VZ |
4387 | if test "$wxUSE_GUI" = "yes"; then |
4388 | ||
698dcdb6 VZ |
4389 | |
4390 | ||
4391 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
3f345b47 | 4392 | echo "configure:4393: checking for --enable-docview" >&5 |
10f2d63a VZ |
4393 | no_cache=0 |
4394 | # Check whether --enable-docview or --disable-docview was given. | |
4395 | if test "${enable_docview+set}" = set; then | |
4396 | enableval="$enable_docview" | |
698dcdb6 | 4397 | |
10f2d63a VZ |
4398 | if test "$enableval" = yes; then |
4399 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4400 | else | |
4401 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4402 | fi | |
698dcdb6 | 4403 | |
10f2d63a | 4404 | else |
698dcdb6 | 4405 | |
10f2d63a VZ |
4406 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4414 | |
4415 | fi | |
10f2d63a VZ |
4416 | |
4417 | ||
4418 | eval "$ac_cv_use_docview" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4424 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4425 | else |
698dcdb6 | 4426 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4427 | fi |
698dcdb6 | 4428 | |
10f2d63a | 4429 | |
698dcdb6 | 4430 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
3f345b47 | 4431 | echo "configure:4432: checking for --enable-help" >&5 |
10f2d63a VZ |
4432 | no_cache=0 |
4433 | # Check whether --enable-help or --disable-help was given. | |
4434 | if test "${enable_help+set}" = set; then | |
4435 | enableval="$enable_help" | |
698dcdb6 | 4436 | |
10f2d63a VZ |
4437 | if test "$enableval" = yes; then |
4438 | ac_cv_use_help='wxUSE_HELP=yes' | |
4439 | else | |
4440 | ac_cv_use_help='wxUSE_HELP=no' | |
4441 | fi | |
698dcdb6 | 4442 | |
10f2d63a | 4443 | else |
698dcdb6 | 4444 | |
10f2d63a VZ |
4445 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4446 | if test "x$LINE" != x ; then | |
4447 | eval "DEFAULT_$LINE" | |
4448 | else | |
4449 | no_cache=1 | |
4450 | fi | |
4451 | ||
4452 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4453 | |
4454 | fi | |
10f2d63a VZ |
4455 | |
4456 | ||
4457 | eval "$ac_cv_use_help" | |
4458 | if test "$no_cache" != 1; then | |
4459 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4460 | fi | |
4461 | ||
4462 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4463 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4464 | else |
698dcdb6 | 4465 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4466 | fi |
698dcdb6 | 4467 | |
10f2d63a | 4468 | |
29fd3c0c | 4469 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
3f345b47 | 4470 | echo "configure:4471: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4471 | no_cache=0 |
4472 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4473 | if test "${enable_mshtmlhelp+set}" = set; then | |
4474 | enableval="$enable_mshtmlhelp" | |
4475 | ||
4476 | if test "$enableval" = yes; then | |
4477 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4478 | else | |
4479 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4480 | fi | |
4481 | ||
4482 | else | |
4483 | ||
4484 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4485 | if test "x$LINE" != x ; then | |
4486 | eval "DEFAULT_$LINE" | |
4487 | else | |
4488 | no_cache=1 | |
4489 | fi | |
4490 | ||
4491 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4492 | ||
4493 | fi | |
4494 | ||
4495 | ||
4496 | eval "$ac_cv_use_mshtmlhelp" | |
4497 | if test "$no_cache" != 1; then | |
4498 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4499 | fi | |
4500 | ||
4501 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4502 | echo "$ac_t""yes" 1>&6 | |
4503 | else | |
4504 | echo "$ac_t""no" 1>&6 | |
4505 | fi | |
4506 | ||
4507 | ||
3379ed37 | 4508 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
3f345b47 | 4509 | echo "configure:4510: checking for --enable-html" >&5 |
3379ed37 VZ |
4510 | no_cache=0 |
4511 | # Check whether --enable-html or --disable-html was given. | |
4512 | if test "${enable_html+set}" = set; then | |
4513 | enableval="$enable_html" | |
4514 | ||
4515 | if test "$enableval" = yes; then | |
4516 | ac_cv_use_html='wxUSE_HTML=yes' | |
4517 | else | |
4518 | ac_cv_use_html='wxUSE_HTML=no' | |
4519 | fi | |
4520 | ||
4521 | else | |
4522 | ||
4523 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4524 | if test "x$LINE" != x ; then | |
4525 | eval "DEFAULT_$LINE" | |
4526 | else | |
4527 | no_cache=1 | |
4528 | fi | |
4529 | ||
4530 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4531 | ||
4532 | fi | |
4533 | ||
4534 | ||
4535 | eval "$ac_cv_use_html" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_HTML" = yes; then | |
4541 | echo "$ac_t""yes" 1>&6 | |
4542 | else | |
4543 | echo "$ac_t""no" 1>&6 | |
4544 | fi | |
4545 | ||
4546 | ||
4547 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
3f345b47 | 4548 | echo "configure:4549: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4549 | no_cache=0 |
4550 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4551 | if test "${enable_htmlhelp+set}" = set; then | |
4552 | enableval="$enable_htmlhelp" | |
4553 | ||
4554 | if test "$enableval" = yes; then | |
4555 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4556 | else | |
4557 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4558 | fi | |
4559 | ||
4560 | else | |
4561 | ||
4562 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4563 | if test "x$LINE" != x ; then | |
4564 | eval "DEFAULT_$LINE" | |
4565 | else | |
4566 | no_cache=1 | |
4567 | fi | |
4568 | ||
4569 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4570 | ||
4571 | fi | |
4572 | ||
4573 | ||
4574 | eval "$ac_cv_use_htmlhelp" | |
4575 | if test "$no_cache" != 1; then | |
4576 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4577 | fi | |
4578 | ||
4579 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4580 | echo "$ac_t""yes" 1>&6 | |
4581 | else | |
4582 | echo "$ac_t""no" 1>&6 | |
4583 | fi | |
4584 | ||
4585 | ||
698dcdb6 | 4586 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
3f345b47 | 4587 | echo "configure:4588: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4588 | no_cache=0 |
4589 | # Check whether --enable-constraints or --disable-constraints was given. | |
4590 | if test "${enable_constraints+set}" = set; then | |
4591 | enableval="$enable_constraints" | |
698dcdb6 | 4592 | |
10f2d63a VZ |
4593 | if test "$enableval" = yes; then |
4594 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4595 | else | |
4596 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4597 | fi | |
698dcdb6 | 4598 | |
10f2d63a | 4599 | else |
698dcdb6 | 4600 | |
10f2d63a VZ |
4601 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4602 | if test "x$LINE" != x ; then | |
4603 | eval "DEFAULT_$LINE" | |
4604 | else | |
4605 | no_cache=1 | |
4606 | fi | |
4607 | ||
4608 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4609 | |
4610 | fi | |
10f2d63a VZ |
4611 | |
4612 | ||
4613 | eval "$ac_cv_use_constraints" | |
4614 | if test "$no_cache" != 1; then | |
4615 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4616 | fi | |
4617 | ||
4618 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4619 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4620 | else |
698dcdb6 | 4621 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4622 | fi |
698dcdb6 | 4623 | |
10f2d63a | 4624 | |
698dcdb6 | 4625 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
3f345b47 | 4626 | echo "configure:4627: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4627 | no_cache=0 |
4628 | # Check whether --enable-printarch or --disable-printarch was given. | |
4629 | if test "${enable_printarch+set}" = set; then | |
4630 | enableval="$enable_printarch" | |
698dcdb6 | 4631 | |
10f2d63a VZ |
4632 | if test "$enableval" = yes; then |
4633 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4634 | else | |
4635 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4636 | fi | |
698dcdb6 | 4637 | |
10f2d63a | 4638 | else |
698dcdb6 | 4639 | |
10f2d63a VZ |
4640 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4641 | if test "x$LINE" != x ; then | |
4642 | eval "DEFAULT_$LINE" | |
4643 | else | |
4644 | no_cache=1 | |
4645 | fi | |
4646 | ||
4647 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4648 | |
4649 | fi | |
10f2d63a VZ |
4650 | |
4651 | ||
4652 | eval "$ac_cv_use_printarch" | |
4653 | if test "$no_cache" != 1; then | |
4654 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4655 | fi | |
4656 | ||
4657 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4658 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4659 | else |
698dcdb6 | 4660 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4661 | fi |
698dcdb6 | 4662 | |
10f2d63a | 4663 | |
698dcdb6 | 4664 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
3f345b47 | 4665 | echo "configure:4666: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4666 | no_cache=0 |
4667 | # Check whether --enable-mdi or --disable-mdi was given. | |
4668 | if test "${enable_mdi+set}" = set; then | |
4669 | enableval="$enable_mdi" | |
698dcdb6 | 4670 | |
10f2d63a VZ |
4671 | if test "$enableval" = yes; then |
4672 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4673 | else | |
4674 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4675 | fi | |
698dcdb6 | 4676 | |
10f2d63a | 4677 | else |
698dcdb6 | 4678 | |
10f2d63a VZ |
4679 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4680 | if test "x$LINE" != x ; then | |
4681 | eval "DEFAULT_$LINE" | |
4682 | else | |
4683 | no_cache=1 | |
4684 | fi | |
4685 | ||
4686 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4687 | |
4688 | fi | |
10f2d63a VZ |
4689 | |
4690 | ||
4691 | eval "$ac_cv_use_mdi" | |
4692 | if test "$no_cache" != 1; then | |
4693 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4694 | fi | |
4695 | ||
4696 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4697 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4698 | else |
698dcdb6 | 4699 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4700 | fi |
698dcdb6 VZ |
4701 | |
4702 | ||
1e6feb95 | 4703 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
3f345b47 | 4704 | echo "configure:4705: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4705 | no_cache=0 |
4706 | # Check whether --enable-loggui or --disable-loggui was given. | |
4707 | if test "${enable_loggui+set}" = set; then | |
4708 | enableval="$enable_loggui" | |
4709 | ||
4710 | if test "$enableval" = yes; then | |
4711 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4712 | else | |
4713 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4714 | fi | |
4715 | ||
4716 | else | |
4717 | ||
4718 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4719 | if test "x$LINE" != x ; then | |
4720 | eval "DEFAULT_$LINE" | |
4721 | else | |
4722 | no_cache=1 | |
4723 | fi | |
4724 | ||
4725 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4726 | ||
4727 | fi | |
4728 | ||
4729 | ||
4730 | eval "$ac_cv_use_loggui" | |
4731 | if test "$no_cache" != 1; then | |
4732 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4733 | fi | |
4734 | ||
4735 | if test "$wxUSE_LOGGUI" = yes; then | |
4736 | echo "$ac_t""yes" 1>&6 | |
4737 | else | |
4738 | echo "$ac_t""no" 1>&6 | |
4739 | fi | |
4740 | ||
4741 | ||
4742 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
3f345b47 | 4743 | echo "configure:4744: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4744 | no_cache=0 |
4745 | # Check whether --enable-logwin or --disable-logwin was given. | |
4746 | if test "${enable_logwin+set}" = set; then | |
4747 | enableval="$enable_logwin" | |
4748 | ||
4749 | if test "$enableval" = yes; then | |
4750 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4751 | else | |
4752 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4753 | fi | |
4754 | ||
4755 | else | |
4756 | ||
4757 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4758 | if test "x$LINE" != x ; then | |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
4764 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4765 | ||
4766 | fi | |
4767 | ||
4768 | ||
4769 | eval "$ac_cv_use_logwin" | |
4770 | if test "$no_cache" != 1; then | |
4771 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4772 | fi | |
4773 | ||
4774 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4775 | echo "$ac_t""yes" 1>&6 | |
4776 | else | |
4777 | echo "$ac_t""no" 1>&6 | |
4778 | fi | |
4779 | ||
4780 | ||
69d27ff7 | 4781 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
3f345b47 | 4782 | echo "configure:4783: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
4783 | no_cache=0 |
4784 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
4785 | if test "${enable_logdialog+set}" = set; then | |
4786 | enableval="$enable_logdialog" | |
4787 | ||
4788 | if test "$enableval" = yes; then | |
4789 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
4790 | else | |
4791 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
4792 | fi | |
4793 | ||
4794 | else | |
4795 | ||
4796 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
4797 | if test "x$LINE" != x ; then | |
4798 | eval "DEFAULT_$LINE" | |
4799 | else | |
4800 | no_cache=1 | |
4801 | fi | |
4802 | ||
4803 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
4804 | ||
4805 | fi | |
4806 | ||
4807 | ||
4808 | eval "$ac_cv_use_logdialog" | |
4809 | if test "$no_cache" != 1; then | |
4810 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
4811 | fi | |
4812 | ||
4813 | if test "$wxUSE_LOGDIALOG" = yes; then | |
4814 | echo "$ac_t""yes" 1>&6 | |
4815 | else | |
4816 | echo "$ac_t""no" 1>&6 | |
4817 | fi | |
4818 | ||
4819 | ||
10f2d63a | 4820 | |
698dcdb6 | 4821 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
3f345b47 | 4822 | echo "configure:4823: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4823 | no_cache=0 |
4824 | # Check whether --enable-postscript or --disable-postscript was given. | |
4825 | if test "${enable_postscript+set}" = set; then | |
4826 | enableval="$enable_postscript" | |
698dcdb6 | 4827 | |
10f2d63a VZ |
4828 | if test "$enableval" = yes; then |
4829 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4830 | else | |
4831 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4832 | fi | |
698dcdb6 | 4833 | |
10f2d63a | 4834 | else |
698dcdb6 | 4835 | |
10f2d63a VZ |
4836 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4837 | if test "x$LINE" != x ; then | |
4838 | eval "DEFAULT_$LINE" | |
4839 | else | |
4840 | no_cache=1 | |
4841 | fi | |
4842 | ||
4843 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4844 | |
4845 | fi | |
10f2d63a VZ |
4846 | |
4847 | ||
4848 | eval "$ac_cv_use_postscript" | |
4849 | if test "$no_cache" != 1; then | |
4850 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4851 | fi | |
4852 | ||
4853 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4855 | else |
698dcdb6 | 4856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4857 | fi |
698dcdb6 VZ |
4858 | |
4859 | ||
4860 | ||
10f2d63a | 4861 | |
1e6feb95 | 4862 | |
698dcdb6 | 4863 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
3f345b47 | 4864 | echo "configure:4865: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4865 | no_cache=0 |
4866 | # Check whether --enable-prologio or --disable-prologio was given. | |
4867 | if test "${enable_prologio+set}" = set; then | |
4868 | enableval="$enable_prologio" | |
698dcdb6 | 4869 | |
10f2d63a VZ |
4870 | if test "$enableval" = yes; then |
4871 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4872 | else | |
4873 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4874 | fi | |
698dcdb6 | 4875 | |
10f2d63a | 4876 | else |
698dcdb6 | 4877 | |
10f2d63a VZ |
4878 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4879 | if test "x$LINE" != x ; then | |
4880 | eval "DEFAULT_$LINE" | |
4881 | else | |
4882 | no_cache=1 | |
4883 | fi | |
4884 | ||
4885 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4886 | |
4887 | fi | |
10f2d63a VZ |
4888 | |
4889 | ||
4890 | eval "$ac_cv_use_prologio" | |
4891 | if test "$no_cache" != 1; then | |
4892 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4893 | fi | |
4894 | ||
4895 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4896 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4897 | else |
698dcdb6 | 4898 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4899 | fi |
698dcdb6 | 4900 | |
10f2d63a | 4901 | |
698dcdb6 | 4902 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
3f345b47 | 4903 | echo "configure:4904: checking for --enable-resources" >&5 |
10f2d63a VZ |
4904 | no_cache=0 |
4905 | # Check whether --enable-resources or --disable-resources was given. | |
4906 | if test "${enable_resources+set}" = set; then | |
4907 | enableval="$enable_resources" | |
698dcdb6 | 4908 | |
10f2d63a VZ |
4909 | if test "$enableval" = yes; then |
4910 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4911 | else | |
4912 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4913 | fi | |
698dcdb6 | 4914 | |
10f2d63a | 4915 | else |
698dcdb6 | 4916 | |
10f2d63a VZ |
4917 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4918 | if test "x$LINE" != x ; then | |
4919 | eval "DEFAULT_$LINE" | |
4920 | else | |
4921 | no_cache=1 | |
4922 | fi | |
4923 | ||
4924 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4925 | |
4926 | fi | |
10f2d63a VZ |
4927 | |
4928 | ||
4929 | eval "$ac_cv_use_resources" | |
4930 | if test "$no_cache" != 1; then | |
4931 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4932 | fi | |
4933 | ||
4934 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4935 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4936 | else |
698dcdb6 | 4937 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4938 | fi |
698dcdb6 | 4939 | |
10f2d63a | 4940 | |
698dcdb6 VZ |
4941 | |
4942 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
3f345b47 | 4943 | echo "configure:4944: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4944 | no_cache=0 |
4945 | # Check whether --enable-xresources or --disable-xresources was given. | |
4946 | if test "${enable_xresources+set}" = set; then | |
4947 | enableval="$enable_xresources" | |
698dcdb6 | 4948 | |
10f2d63a VZ |
4949 | if test "$enableval" = yes; then |
4950 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4951 | else | |
4952 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4953 | fi | |
698dcdb6 | 4954 | |
10f2d63a | 4955 | else |
698dcdb6 | 4956 | |
10f2d63a VZ |
4957 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4965 | |
4966 | fi | |
10f2d63a VZ |
4967 | |
4968 | ||
4969 | eval "$ac_cv_use_xresources" | |
4970 | if test "$no_cache" != 1; then | |
4971 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4972 | fi | |
4973 | ||
4974 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4975 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4976 | else |
698dcdb6 | 4977 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4978 | fi |
698dcdb6 VZ |
4979 | |
4980 | ||
10f2d63a | 4981 | |
698dcdb6 VZ |
4982 | |
4983 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
3f345b47 | 4984 | echo "configure:4985: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4985 | no_cache=0 |
4986 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4987 | if test "${enable_clipboard+set}" = set; then | |
4988 | enableval="$enable_clipboard" | |
698dcdb6 | 4989 | |
10f2d63a VZ |
4990 | if test "$enableval" = yes; then |
4991 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4992 | else | |
4993 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4994 | fi | |
698dcdb6 | 4995 | |
10f2d63a | 4996 | else |
698dcdb6 | 4997 | |
10f2d63a VZ |
4998 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5006 | |
5007 | fi | |
10f2d63a VZ |
5008 | |
5009 | ||
5010 | eval "$ac_cv_use_clipboard" | |
5011 | if test "$no_cache" != 1; then | |
5012 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5013 | fi | |
5014 | ||
5015 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5016 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5017 | else |
698dcdb6 | 5018 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5019 | fi |
698dcdb6 | 5020 | |
10f2d63a | 5021 | |
698dcdb6 | 5022 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
3f345b47 | 5023 | echo "configure:5024: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5024 | no_cache=0 |
5025 | # Check whether --enable-dnd or --disable-dnd was given. | |
5026 | if test "${enable_dnd+set}" = set; then | |
5027 | enableval="$enable_dnd" | |
698dcdb6 | 5028 | |
10f2d63a VZ |
5029 | if test "$enableval" = yes; then |
5030 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5031 | else | |
5032 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5033 | fi | |
698dcdb6 | 5034 | |
10f2d63a | 5035 | else |
698dcdb6 | 5036 | |
10f2d63a VZ |
5037 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5038 | if test "x$LINE" != x ; then | |
5039 | eval "DEFAULT_$LINE" | |
5040 | else | |
5041 | no_cache=1 | |
5042 | fi | |
5043 | ||
5044 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5045 | |
5046 | fi | |
10f2d63a VZ |
5047 | |
5048 | ||
5049 | eval "$ac_cv_use_dnd" | |
5050 | if test "$no_cache" != 1; then | |
5051 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5052 | fi | |
5053 | ||
5054 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5056 | else |
698dcdb6 | 5057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5058 | fi |
698dcdb6 | 5059 | |
10f2d63a | 5060 | |
698dcdb6 | 5061 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3f345b47 | 5062 | echo "configure:5063: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5063 | no_cache=0 |
5064 | # Check whether --enable-metafile or --disable-metafile was given. | |
5065 | if test "${enable_metafile+set}" = set; then | |
5066 | enableval="$enable_metafile" | |
698dcdb6 | 5067 | |
b64f0a5f RL |
5068 | if test "$enableval" = yes; then |
5069 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5070 | else | |
5071 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5072 | fi | |
698dcdb6 | 5073 | |
b64f0a5f | 5074 | else |
698dcdb6 | 5075 | |
b64f0a5f RL |
5076 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5077 | if test "x$LINE" != x ; then | |
5078 | eval "DEFAULT_$LINE" | |
5079 | else | |
5080 | no_cache=1 | |
5081 | fi | |
5082 | ||
5083 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5084 | |
5085 | fi | |
b64f0a5f RL |
5086 | |
5087 | ||
5088 | eval "$ac_cv_use_metafile" | |
5089 | if test "$no_cache" != 1; then | |
5090 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5091 | fi | |
5092 | ||
5093 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5094 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5095 | else |
698dcdb6 | 5096 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5097 | fi |
698dcdb6 VZ |
5098 | |
5099 | ||
10f2d63a | 5100 | |
24176f2c | 5101 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
3f345b47 | 5102 | echo "configure:5103: checking for --enable-treelayout" >&5 |
10f2d63a | 5103 | no_cache=0 |
24176f2c GD |
5104 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5105 | if test "${enable_treelayout+set}" = set; then | |
5106 | enableval="$enable_treelayout" | |
698dcdb6 | 5107 | |
10f2d63a | 5108 | if test "$enableval" = yes; then |
24176f2c | 5109 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5110 | else |
24176f2c | 5111 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5112 | fi |
698dcdb6 | 5113 | |
10f2d63a | 5114 | else |
698dcdb6 | 5115 | |
24176f2c | 5116 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5117 | if test "x$LINE" != x ; then |
5118 | eval "DEFAULT_$LINE" | |
5119 | else | |
5120 | no_cache=1 | |
5121 | fi | |
5122 | ||
24176f2c | 5123 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5124 | |
5125 | fi | |
10f2d63a VZ |
5126 | |
5127 | ||
24176f2c | 5128 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5129 | if test "$no_cache" != 1; then |
24176f2c | 5130 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5131 | fi |
5132 | ||
24176f2c | 5133 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5134 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5135 | else |
698dcdb6 | 5136 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5137 | fi |
698dcdb6 | 5138 | |
10f2d63a | 5139 | |
698dcdb6 VZ |
5140 | |
5141 | ||
5142 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
3f345b47 | 5143 | echo "configure:5144: checking for --enable-controls" >&5 |
10f2d63a VZ |
5144 | no_cache=0 |
5145 | # Check whether --enable-controls or --disable-controls was given. | |
5146 | if test "${enable_controls+set}" = set; then | |
5147 | enableval="$enable_controls" | |
698dcdb6 | 5148 | |
10f2d63a VZ |
5149 | if test "$enableval" = yes; then |
5150 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5151 | else | |
5152 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5153 | fi | |
698dcdb6 | 5154 | |
10f2d63a | 5155 | else |
698dcdb6 | 5156 | |
10f2d63a VZ |
5157 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5158 | if test "x$LINE" != x ; then | |
5159 | eval "DEFAULT_$LINE" | |
5160 | else | |
5161 | no_cache=1 | |
5162 | fi | |
5163 | ||
5164 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5165 | |
5166 | fi | |
10f2d63a VZ |
5167 | |
5168 | ||
5169 | eval "$ac_cv_use_controls" | |
5170 | if test "$no_cache" != 1; then | |
5171 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5172 | fi | |
5173 | ||
5174 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5175 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5176 | else |
698dcdb6 | 5177 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5178 | fi |
698dcdb6 | 5179 | |
10f2d63a VZ |
5180 | |
5181 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5182 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5183 | DEFAULT_wxUSE_BMPBUTTON=yes |
5184 | DEFAULT_wxUSE_BUTTON=yes | |
5185 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5186 | DEFAULT_wxUSE_CARET=yes |
5187 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5188 | DEFAULT_wxUSE_CHECKBOX=yes |
5189 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5190 | DEFAULT_wxUSE_CHOICE=yes | |
5191 | DEFAULT_wxUSE_GAUGE=yes | |
5192 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5193 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5194 | DEFAULT_wxUSE_IMAGLIST=yes |
5195 | DEFAULT_wxUSE_LISTBOX=yes | |
5196 | DEFAULT_wxUSE_LISTCTRL=yes | |
5197 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5198 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5199 | DEFAULT_wxUSE_RADIOBOX=yes |
5200 | DEFAULT_wxUSE_RADIOBTN=yes | |
5201 | DEFAULT_wxUSE_SASH=yes | |
5202 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5203 | DEFAULT_wxUSE_SLIDER=yes | |
5204 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5205 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5206 | DEFAULT_wxUSE_SPLITTER=yes |
5207 | DEFAULT_wxUSE_STATBMP=yes | |
5208 | DEFAULT_wxUSE_STATBOX=yes | |
5209 | DEFAULT_wxUSE_STATLINE=yes | |
5210 | DEFAULT_wxUSE_STATUSBAR=yes | |
5211 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5212 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5213 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5214 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5215 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5216 | DEFAULT_wxUSE_TOOLTIPS=yes |
5217 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5218 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5219 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5220 | elif test "$wxUSE_CONTROLS" = "no"; then |
5221 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5222 | DEFAULT_wxUSE_BMPBUTTON=no |
5223 | DEFAULT_wxUSE_BUTTON=no | |
5224 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5225 | DEFAULT_wxUSE_CARET=no |
5226 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5227 | DEFAULT_wxUSE_CHECKBOX=no |
5228 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5229 | DEFAULT_wxUSE_CHOICE=no | |
5230 | DEFAULT_wxUSE_GAUGE=no | |
5231 | DEFAULT_wxUSE_GRID=no | |
5232 | DEFAULT_wxUSE_NEW_GRID=no | |
5233 | DEFAULT_wxUSE_IMAGLIST=no | |
5234 | DEFAULT_wxUSE_LISTBOX=no | |
5235 | DEFAULT_wxUSE_LISTCTRL=no | |
5236 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5237 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5238 | DEFAULT_wxUSE_RADIOBOX=no |
5239 | DEFAULT_wxUSE_RADIOBTN=no | |
5240 | DEFAULT_wxUSE_SASH=no | |
5241 | DEFAULT_wxUSE_SCROLLBAR=no | |
5242 | DEFAULT_wxUSE_SLIDER=no | |
5243 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5244 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5245 | DEFAULT_wxUSE_SPLITTER=no |
5246 | DEFAULT_wxUSE_STATBMP=no | |
5247 | DEFAULT_wxUSE_STATBOX=no | |
5248 | DEFAULT_wxUSE_STATLINE=no | |
5249 | DEFAULT_wxUSE_STATUSBAR=no | |
5250 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5251 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5252 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5253 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5254 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5255 | DEFAULT_wxUSE_TOOLTIPS=no |
5256 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5257 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5258 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5259 | fi |
5260 | ||
698dcdb6 VZ |
5261 | |
5262 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
3f345b47 | 5263 | echo "configure:5264: checking for --enable-accel" >&5 |
10f2d63a VZ |
5264 | no_cache=0 |
5265 | # Check whether --enable-accel or --disable-accel was given. | |
5266 | if test "${enable_accel+set}" = set; then | |
5267 | enableval="$enable_accel" | |
698dcdb6 | 5268 | |
10f2d63a VZ |
5269 | if test "$enableval" = yes; then |
5270 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5271 | else | |
5272 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5273 | fi | |
698dcdb6 | 5274 | |
10f2d63a | 5275 | else |
698dcdb6 | 5276 | |
10f2d63a VZ |
5277 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5278 | if test "x$LINE" != x ; then | |
5279 | eval "DEFAULT_$LINE" | |
5280 | else | |
5281 | no_cache=1 | |
5282 | fi | |
5283 | ||
5284 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5285 | |
5286 | fi | |
10f2d63a VZ |
5287 | |
5288 | ||
5289 | eval "$ac_cv_use_accel" | |
5290 | if test "$no_cache" != 1; then | |
5291 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5292 | fi | |
5293 | ||
5294 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5295 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5296 | else |
698dcdb6 | 5297 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5298 | fi |
698dcdb6 | 5299 | |
10f2d63a | 5300 | |
1e6feb95 | 5301 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
3f345b47 | 5302 | echo "configure:5303: checking for --enable-button" >&5 |
10f2d63a | 5303 | no_cache=0 |
1e6feb95 VZ |
5304 | # Check whether --enable-button or --disable-button was given. |
5305 | if test "${enable_button+set}" = set; then | |
5306 | enableval="$enable_button" | |
698dcdb6 | 5307 | |
10f2d63a | 5308 | if test "$enableval" = yes; then |
1e6feb95 | 5309 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5310 | else |
1e6feb95 | 5311 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5312 | fi |
698dcdb6 | 5313 | |
10f2d63a | 5314 | else |
698dcdb6 | 5315 | |
1e6feb95 | 5316 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5317 | if test "x$LINE" != x ; then |
5318 | eval "DEFAULT_$LINE" | |
5319 | else | |
5320 | no_cache=1 | |
5321 | fi | |
5322 | ||
1e6feb95 | 5323 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5324 | |
5325 | fi | |
10f2d63a VZ |
5326 | |
5327 | ||
1e6feb95 | 5328 | eval "$ac_cv_use_button" |
10f2d63a | 5329 | if test "$no_cache" != 1; then |
1e6feb95 | 5330 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5331 | fi |
5332 | ||
1e6feb95 | 5333 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5334 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5335 | else |
698dcdb6 | 5336 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5337 | fi |
698dcdb6 | 5338 | |
10f2d63a | 5339 | |
698dcdb6 | 5340 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
3f345b47 | 5341 | echo "configure:5342: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5342 | no_cache=0 |
5343 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5344 | if test "${enable_bmpbutton+set}" = set; then | |
5345 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5346 | |
10f2d63a VZ |
5347 | if test "$enableval" = yes; then |
5348 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5349 | else | |
5350 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5351 | fi | |
698dcdb6 | 5352 | |
10f2d63a | 5353 | else |
698dcdb6 | 5354 | |
10f2d63a VZ |
5355 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5356 | if test "x$LINE" != x ; then | |
5357 | eval "DEFAULT_$LINE" | |
5358 | else | |
5359 | no_cache=1 | |
5360 | fi | |
5361 | ||
5362 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5363 | |
5364 | fi | |
10f2d63a VZ |
5365 | |
5366 | ||
5367 | eval "$ac_cv_use_bmpbutton" | |
5368 | if test "$no_cache" != 1; then | |
5369 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5370 | fi | |
5371 | ||
5372 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5373 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5374 | else |
698dcdb6 | 5375 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5376 | fi |
698dcdb6 | 5377 | |
10f2d63a | 5378 | |
1e6feb95 | 5379 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
3f345b47 | 5380 | echo "configure:5381: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5381 | no_cache=0 |
5382 | # Check whether --enable-calendar or --disable-calendar was given. | |
5383 | if test "${enable_calendar+set}" = set; then | |
5384 | enableval="$enable_calendar" | |
5385 | ||
5386 | if test "$enableval" = yes; then | |
5387 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5388 | else | |
5389 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5390 | fi | |
5391 | ||
5392 | else | |
5393 | ||
5394 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5395 | if test "x$LINE" != x ; then | |
5396 | eval "DEFAULT_$LINE" | |
5397 | else | |
5398 | no_cache=1 | |
5399 | fi | |
5400 | ||
5401 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5402 | ||
5403 | fi | |
5404 | ||
5405 | ||
5406 | eval "$ac_cv_use_calendar" | |
5407 | if test "$no_cache" != 1; then | |
5408 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5409 | fi | |
5410 | ||
5411 | if test "$wxUSE_CALCTRL" = yes; then | |
5412 | echo "$ac_t""yes" 1>&6 | |
5413 | else | |
5414 | echo "$ac_t""no" 1>&6 | |
5415 | fi | |
5416 | ||
5417 | ||
5418 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
3f345b47 | 5419 | echo "configure:5420: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5420 | no_cache=0 |
5421 | # Check whether --enable-caret or --disable-caret was given. | |
5422 | if test "${enable_caret+set}" = set; then | |
5423 | enableval="$enable_caret" | |
5424 | ||
5425 | if test "$enableval" = yes; then | |
5426 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5427 | else | |
5428 | ac_cv_use_caret='wxUSE_CARET=no' | |
5429 | fi | |
5430 | ||
5431 | else | |
5432 | ||
5433 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5434 | if test "x$LINE" != x ; then | |
5435 | eval "DEFAULT_$LINE" | |
5436 | else | |
5437 | no_cache=1 | |
5438 | fi | |
5439 | ||
5440 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5441 | ||
5442 | fi | |
5443 | ||
5444 | ||
5445 | eval "$ac_cv_use_caret" | |
5446 | if test "$no_cache" != 1; then | |
5447 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5448 | fi | |
5449 | ||
5450 | if test "$wxUSE_CARET" = yes; then | |
5451 | echo "$ac_t""yes" 1>&6 | |
5452 | else | |
5453 | echo "$ac_t""no" 1>&6 | |
5454 | fi | |
5455 | ||
5456 | ||
698dcdb6 | 5457 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
3f345b47 | 5458 | echo "configure:5459: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5459 | no_cache=0 |
5460 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5461 | if test "${enable_checkbox+set}" = set; then | |
5462 | enableval="$enable_checkbox" | |
698dcdb6 | 5463 | |
10f2d63a VZ |
5464 | if test "$enableval" = yes; then |
5465 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5466 | else | |
5467 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5468 | fi | |
698dcdb6 | 5469 | |
10f2d63a | 5470 | else |
698dcdb6 | 5471 | |
10f2d63a VZ |
5472 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5473 | if test "x$LINE" != x ; then | |
5474 | eval "DEFAULT_$LINE" | |
5475 | else | |
5476 | no_cache=1 | |
5477 | fi | |
5478 | ||
5479 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5480 | |
5481 | fi | |
10f2d63a VZ |
5482 | |
5483 | ||
5484 | eval "$ac_cv_use_checkbox" | |
5485 | if test "$no_cache" != 1; then | |
5486 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5487 | fi | |
5488 | ||
5489 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5491 | else |
698dcdb6 | 5492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5493 | fi |
698dcdb6 | 5494 | |
10f2d63a | 5495 | |
698dcdb6 | 5496 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
3f345b47 | 5497 | echo "configure:5498: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5498 | no_cache=0 |
5499 | # Check whether --enable-checklst or --disable-checklst was given. | |
5500 | if test "${enable_checklst+set}" = set; then | |
5501 | enableval="$enable_checklst" | |
698dcdb6 | 5502 | |
10f2d63a VZ |
5503 | if test "$enableval" = yes; then |
5504 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5505 | else | |
5506 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5507 | fi | |
698dcdb6 | 5508 | |
10f2d63a | 5509 | else |
698dcdb6 | 5510 | |
10f2d63a VZ |
5511 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5512 | if test "x$LINE" != x ; then | |
5513 | eval "DEFAULT_$LINE" | |
5514 | else | |
5515 | no_cache=1 | |
5516 | fi | |
5517 | ||
5518 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5519 | |
5520 | fi | |
10f2d63a VZ |
5521 | |
5522 | ||
5523 | eval "$ac_cv_use_checklst" | |
5524 | if test "$no_cache" != 1; then | |
5525 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5526 | fi | |
5527 | ||
5528 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5530 | else |
698dcdb6 | 5531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5532 | fi |
698dcdb6 | 5533 | |
10f2d63a | 5534 | |
698dcdb6 | 5535 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
3f345b47 | 5536 | echo "configure:5537: checking for --enable-choice" >&5 |
10f2d63a VZ |
5537 | no_cache=0 |
5538 | # Check whether --enable-choice or --disable-choice was given. | |
5539 | if test "${enable_choice+set}" = set; then | |
5540 | enableval="$enable_choice" | |
698dcdb6 | 5541 | |
10f2d63a VZ |
5542 | if test "$enableval" = yes; then |
5543 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5544 | else | |
5545 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5546 | fi | |
698dcdb6 | 5547 | |
10f2d63a | 5548 | else |
698dcdb6 | 5549 | |
10f2d63a VZ |
5550 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5551 | if test "x$LINE" != x ; then | |
5552 | eval "DEFAULT_$LINE" | |
5553 | else | |
5554 | no_cache=1 | |
5555 | fi | |
5556 | ||
5557 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5558 | |
5559 | fi | |
10f2d63a VZ |
5560 | |
5561 | ||
5562 | eval "$ac_cv_use_choice" | |
5563 | if test "$no_cache" != 1; then | |
5564 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5565 | fi | |
5566 | ||
5567 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5568 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5569 | else |
698dcdb6 | 5570 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5571 | fi |
698dcdb6 | 5572 | |
10f2d63a | 5573 | |
698dcdb6 | 5574 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
3f345b47 | 5575 | echo "configure:5576: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5576 | no_cache=0 |
5577 | # Check whether --enable-combobox or --disable-combobox was given. | |
5578 | if test "${enable_combobox+set}" = set; then | |
5579 | enableval="$enable_combobox" | |
698dcdb6 | 5580 | |
10f2d63a VZ |
5581 | if test "$enableval" = yes; then |
5582 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5583 | else | |
5584 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5585 | fi | |
698dcdb6 | 5586 | |
10f2d63a | 5587 | else |
698dcdb6 | 5588 | |
10f2d63a VZ |
5589 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5590 | if test "x$LINE" != x ; then | |
5591 | eval "DEFAULT_$LINE" | |
5592 | else | |
5593 | no_cache=1 | |
5594 | fi | |
5595 | ||
5596 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5597 | |
5598 | fi | |
10f2d63a VZ |
5599 | |
5600 | ||
5601 | eval "$ac_cv_use_combobox" | |
5602 | if test "$no_cache" != 1; then | |
5603 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5604 | fi | |
5605 | ||
5606 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5607 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5608 | else |
698dcdb6 | 5609 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5610 | fi |
698dcdb6 | 5611 | |
10f2d63a | 5612 | |
698dcdb6 | 5613 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
3f345b47 | 5614 | echo "configure:5615: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5615 | no_cache=0 |
5616 | # Check whether --enable-gauge or --disable-gauge was given. | |
5617 | if test "${enable_gauge+set}" = set; then | |
5618 | enableval="$enable_gauge" | |
698dcdb6 | 5619 | |
10f2d63a VZ |
5620 | if test "$enableval" = yes; then |
5621 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5622 | else | |
5623 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5624 | fi | |
698dcdb6 | 5625 | |
10f2d63a | 5626 | else |
698dcdb6 | 5627 | |
10f2d63a VZ |
5628 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5629 | if test "x$LINE" != x ; then | |
5630 | eval "DEFAULT_$LINE" | |
5631 | else | |
5632 | no_cache=1 | |
5633 | fi | |
5634 | ||
5635 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5636 | |
5637 | fi | |
10f2d63a VZ |
5638 | |
5639 | ||
5640 | eval "$ac_cv_use_gauge" | |
5641 | if test "$no_cache" != 1; then | |
5642 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5643 | fi | |
5644 | ||
5645 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5647 | else |
698dcdb6 | 5648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5649 | fi |
698dcdb6 | 5650 | |
10f2d63a | 5651 | |
698dcdb6 | 5652 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
3f345b47 | 5653 | echo "configure:5654: checking for --enable-grid" >&5 |
10f2d63a VZ |
5654 | no_cache=0 |
5655 | # Check whether --enable-grid or --disable-grid was given. | |
5656 | if test "${enable_grid+set}" = set; then | |
5657 | enableval="$enable_grid" | |
698dcdb6 | 5658 | |
10f2d63a VZ |
5659 | if test "$enableval" = yes; then |
5660 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5661 | else | |
5662 | ac_cv_use_grid='wxUSE_GRID=no' | |
5663 | fi | |
698dcdb6 | 5664 | |
10f2d63a | 5665 | else |
698dcdb6 | 5666 | |
10f2d63a VZ |
5667 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5668 | if test "x$LINE" != x ; then | |
5669 | eval "DEFAULT_$LINE" | |
5670 | else | |
5671 | no_cache=1 | |
5672 | fi | |
5673 | ||
5674 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5675 | |
5676 | fi | |
10f2d63a VZ |
5677 | |
5678 | ||
5679 | eval "$ac_cv_use_grid" | |
5680 | if test "$no_cache" != 1; then | |
5681 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5682 | fi | |
5683 | ||
5684 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5685 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5686 | else |
698dcdb6 | 5687 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5688 | fi |
698dcdb6 | 5689 | |
10f2d63a | 5690 | |
698dcdb6 | 5691 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
3f345b47 | 5692 | echo "configure:5693: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5693 | no_cache=0 |
5694 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5695 | if test "${enable_newgrid+set}" = set; then | |
5696 | enableval="$enable_newgrid" | |
698dcdb6 | 5697 | |
10f2d63a VZ |
5698 | if test "$enableval" = yes; then |
5699 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5700 | else | |
5701 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5702 | fi | |
698dcdb6 | 5703 | |
10f2d63a | 5704 | else |
698dcdb6 | 5705 | |
10f2d63a VZ |
5706 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5707 | if test "x$LINE" != x ; then | |
5708 | eval "DEFAULT_$LINE" | |
5709 | else | |
5710 | no_cache=1 | |
5711 | fi | |
5712 | ||
5713 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5714 | |
5715 | fi | |
10f2d63a VZ |
5716 | |
5717 | ||
5718 | eval "$ac_cv_use_newgrid" | |
5719 | if test "$no_cache" != 1; then | |
5720 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5721 | fi | |
5722 | ||
5723 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5725 | else |
698dcdb6 | 5726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5727 | fi |
698dcdb6 | 5728 | |
10f2d63a | 5729 | |
698dcdb6 | 5730 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
3f345b47 | 5731 | echo "configure:5732: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5732 | no_cache=0 |
5733 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5734 | if test "${enable_imaglist+set}" = set; then | |
5735 | enableval="$enable_imaglist" | |
698dcdb6 | 5736 | |
10f2d63a VZ |
5737 | if test "$enableval" = yes; then |
5738 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5739 | else | |
5740 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5741 | fi | |
698dcdb6 | 5742 | |
10f2d63a | 5743 | else |
698dcdb6 | 5744 | |
10f2d63a VZ |
5745 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5746 | if test "x$LINE" != x ; then | |
5747 | eval "DEFAULT_$LINE" | |
5748 | else | |
5749 | no_cache=1 | |
5750 | fi | |
5751 | ||
5752 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5753 | |
5754 | fi | |
10f2d63a VZ |
5755 | |
5756 | ||
5757 | eval "$ac_cv_use_imaglist" | |
5758 | if test "$no_cache" != 1; then | |
5759 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5760 | fi | |
5761 | ||
5762 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5764 | else |
698dcdb6 | 5765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5766 | fi |
698dcdb6 | 5767 | |
10f2d63a | 5768 | |
698dcdb6 | 5769 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
3f345b47 | 5770 | echo "configure:5771: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5771 | no_cache=0 |
5772 | # Check whether --enable-listbox or --disable-listbox was given. | |
5773 | if test "${enable_listbox+set}" = set; then | |
5774 | enableval="$enable_listbox" | |
698dcdb6 | 5775 | |
10f2d63a VZ |
5776 | if test "$enableval" = yes; then |
5777 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5778 | else | |
5779 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5780 | fi | |
698dcdb6 | 5781 | |
10f2d63a | 5782 | else |
698dcdb6 | 5783 | |
10f2d63a VZ |
5784 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5785 | if test "x$LINE" != x ; then | |
5786 | eval "DEFAULT_$LINE" | |
5787 | else | |
5788 | no_cache=1 | |
5789 | fi | |
5790 | ||
5791 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5792 | |
5793 | fi | |
10f2d63a VZ |
5794 | |
5795 | ||
5796 | eval "$ac_cv_use_listbox" | |
5797 | if test "$no_cache" != 1; then | |
5798 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5799 | fi | |
5800 | ||
5801 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5803 | else |
698dcdb6 | 5804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5805 | fi |
698dcdb6 | 5806 | |
10f2d63a | 5807 | |
698dcdb6 | 5808 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
3f345b47 | 5809 | echo "configure:5810: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5810 | no_cache=0 |
5811 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5812 | if test "${enable_listctrl+set}" = set; then | |
5813 | enableval="$enable_listctrl" | |
698dcdb6 | 5814 | |
10f2d63a VZ |
5815 | if test "$enableval" = yes; then |
5816 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5817 | else | |
5818 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5819 | fi | |
698dcdb6 | 5820 | |
10f2d63a | 5821 | else |
698dcdb6 | 5822 | |
10f2d63a VZ |
5823 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5824 | if test "x$LINE" != x ; then | |
5825 | eval "DEFAULT_$LINE" | |
5826 | else | |
5827 | no_cache=1 | |
5828 | fi | |
5829 | ||
5830 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5831 | |
5832 | fi | |
10f2d63a VZ |
5833 | |
5834 | ||
5835 | eval "$ac_cv_use_listctrl" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5841 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5842 | else |
698dcdb6 | 5843 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5844 | fi |
698dcdb6 | 5845 | |
10f2d63a | 5846 | |
698dcdb6 | 5847 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
3f345b47 | 5848 | echo "configure:5849: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5849 | no_cache=0 |
5850 | # Check whether --enable-notebook or --disable-notebook was given. | |
5851 | if test "${enable_notebook+set}" = set; then | |
5852 | enableval="$enable_notebook" | |
698dcdb6 | 5853 | |
10f2d63a VZ |
5854 | if test "$enableval" = yes; then |
5855 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5856 | else | |
5857 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5858 | fi | |
698dcdb6 | 5859 | |
10f2d63a | 5860 | else |
698dcdb6 | 5861 | |
10f2d63a VZ |
5862 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5863 | if test "x$LINE" != x ; then | |
5864 | eval "DEFAULT_$LINE" | |
5865 | else | |
5866 | no_cache=1 | |
5867 | fi | |
5868 | ||
5869 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5870 | |
5871 | fi | |
10f2d63a VZ |
5872 | |
5873 | ||
5874 | eval "$ac_cv_use_notebook" | |
5875 | if test "$no_cache" != 1; then | |
5876 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5877 | fi | |
5878 | ||
5879 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5881 | else |
698dcdb6 | 5882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5883 | fi |
698dcdb6 | 5884 | |
10f2d63a | 5885 | |
24176f2c | 5886 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
3f345b47 | 5887 | echo "configure:5888: checking for --enable-propsheet" >&5 |
24176f2c GD |
5888 | no_cache=0 |
5889 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5890 | if test "${enable_propsheet+set}" = set; then | |
5891 | enableval="$enable_propsheet" | |
5892 | ||
5893 | if test "$enableval" = yes; then | |
5894 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5895 | else | |
5896 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5897 | fi | |
5898 | ||
5899 | else | |
5900 | ||
5901 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5902 | if test "x$LINE" != x ; then | |
5903 | eval "DEFAULT_$LINE" | |
5904 | else | |
5905 | no_cache=1 | |
5906 | fi | |
5907 | ||
5908 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5909 | ||
5910 | fi | |
5911 | ||
5912 | ||
5913 | eval "$ac_cv_use_propsheet" | |
5914 | if test "$no_cache" != 1; then | |
5915 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5916 | fi | |
5917 | ||
5918 | if test "$wxUSE_PROPSHEET" = yes; then | |
5919 | echo "$ac_t""yes" 1>&6 | |
5920 | else | |
5921 | echo "$ac_t""no" 1>&6 | |
5922 | fi | |
5923 | ||
5924 | ||
698dcdb6 | 5925 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
3f345b47 | 5926 | echo "configure:5927: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5927 | no_cache=0 |
5928 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5929 | if test "${enable_radiobox+set}" = set; then | |
5930 | enableval="$enable_radiobox" | |
698dcdb6 | 5931 | |
10f2d63a VZ |
5932 | if test "$enableval" = yes; then |
5933 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5934 | else | |
5935 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5936 | fi | |
698dcdb6 | 5937 | |
10f2d63a | 5938 | else |
698dcdb6 | 5939 | |
10f2d63a VZ |
5940 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5941 | if test "x$LINE" != x ; then | |
5942 | eval "DEFAULT_$LINE" | |
5943 | else | |
5944 | no_cache=1 | |
5945 | fi | |
5946 | ||
5947 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5948 | |
5949 | fi | |
10f2d63a VZ |
5950 | |
5951 | ||
5952 | eval "$ac_cv_use_radiobox" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5958 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5959 | else |
698dcdb6 | 5960 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5961 | fi |
698dcdb6 | 5962 | |
10f2d63a | 5963 | |
698dcdb6 | 5964 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
3f345b47 | 5965 | echo "configure:5966: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5966 | no_cache=0 |
5967 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5968 | if test "${enable_radiobtn+set}" = set; then | |
5969 | enableval="$enable_radiobtn" | |
698dcdb6 | 5970 | |
10f2d63a VZ |
5971 | if test "$enableval" = yes; then |
5972 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5973 | else | |
5974 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5975 | fi | |
698dcdb6 | 5976 | |
10f2d63a | 5977 | else |
698dcdb6 | 5978 | |
10f2d63a VZ |
5979 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5980 | if test "x$LINE" != x ; then | |
5981 | eval "DEFAULT_$LINE" | |
5982 | else | |
5983 | no_cache=1 | |
5984 | fi | |
5985 | ||
5986 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5987 | |
5988 | fi | |
10f2d63a VZ |
5989 | |
5990 | ||
5991 | eval "$ac_cv_use_radiobtn" | |
5992 | if test "$no_cache" != 1; then | |
5993 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5994 | fi | |
5995 | ||
5996 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5997 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5998 | else |
698dcdb6 | 5999 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6000 | fi |
698dcdb6 | 6001 | |
10f2d63a | 6002 | |
698dcdb6 | 6003 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
3f345b47 | 6004 | echo "configure:6005: checking for --enable-sash" >&5 |
10f2d63a VZ |
6005 | no_cache=0 |
6006 | # Check whether --enable-sash or --disable-sash was given. | |
6007 | if test "${enable_sash+set}" = set; then | |
6008 | enableval="$enable_sash" | |
698dcdb6 | 6009 | |
10f2d63a VZ |
6010 | if test "$enableval" = yes; then |
6011 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6012 | else | |
6013 | ac_cv_use_sash='wxUSE_SASH=no' | |
6014 | fi | |
698dcdb6 | 6015 | |
10f2d63a | 6016 | else |
698dcdb6 | 6017 | |
10f2d63a VZ |
6018 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6019 | if test "x$LINE" != x ; then | |
6020 | eval "DEFAULT_$LINE" | |
6021 | else | |
6022 | no_cache=1 | |
6023 | fi | |
6024 | ||
6025 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6026 | |
6027 | fi | |
10f2d63a VZ |
6028 | |
6029 | ||
6030 | eval "$ac_cv_use_sash" | |
6031 | if test "$no_cache" != 1; then | |
6032 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6033 | fi | |
6034 | ||
6035 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6036 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6037 | else |
698dcdb6 | 6038 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6039 | fi |
698dcdb6 | 6040 | |
10f2d63a | 6041 | |
698dcdb6 | 6042 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
3f345b47 | 6043 | echo "configure:6044: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6044 | no_cache=0 |
6045 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6046 | if test "${enable_scrollbar+set}" = set; then | |
6047 | enableval="$enable_scrollbar" | |
698dcdb6 | 6048 | |
10f2d63a VZ |
6049 | if test "$enableval" = yes; then |
6050 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6051 | else | |
6052 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6053 | fi | |
698dcdb6 | 6054 | |
10f2d63a | 6055 | else |
698dcdb6 | 6056 | |
10f2d63a VZ |
6057 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6058 | if test "x$LINE" != x ; then | |
6059 | eval "DEFAULT_$LINE" | |
6060 | else | |
6061 | no_cache=1 | |
6062 | fi | |
6063 | ||
6064 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6065 | |
6066 | fi | |
10f2d63a VZ |
6067 | |
6068 | ||
6069 | eval "$ac_cv_use_scrollbar" | |
6070 | if test "$no_cache" != 1; then | |
6071 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6072 | fi | |
6073 | ||
6074 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6075 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6076 | else |
698dcdb6 | 6077 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6078 | fi |
698dcdb6 | 6079 | |
10f2d63a | 6080 | |
698dcdb6 | 6081 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
3f345b47 | 6082 | echo "configure:6083: checking for --enable-slider" >&5 |
10f2d63a VZ |
6083 | no_cache=0 |
6084 | # Check whether --enable-slider or --disable-slider was given. | |
6085 | if test "${enable_slider+set}" = set; then | |
6086 | enableval="$enable_slider" | |
698dcdb6 | 6087 | |
10f2d63a VZ |
6088 | if test "$enableval" = yes; then |
6089 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6090 | else | |
6091 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6092 | fi | |
698dcdb6 | 6093 | |
10f2d63a | 6094 | else |
698dcdb6 | 6095 | |
10f2d63a VZ |
6096 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6097 | if test "x$LINE" != x ; then | |
6098 | eval "DEFAULT_$LINE" | |
6099 | else | |
6100 | no_cache=1 | |
6101 | fi | |
6102 | ||
6103 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6104 | |
6105 | fi | |
10f2d63a VZ |
6106 | |
6107 | ||
6108 | eval "$ac_cv_use_slider" | |
6109 | if test "$no_cache" != 1; then | |
6110 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6111 | fi | |
6112 | ||
6113 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6114 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6115 | else |
698dcdb6 | 6116 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6117 | fi |
698dcdb6 | 6118 | |
10f2d63a | 6119 | |
698dcdb6 | 6120 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
3f345b47 | 6121 | echo "configure:6122: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6122 | no_cache=0 |
6123 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6124 | if test "${enable_spinbtn+set}" = set; then | |
6125 | enableval="$enable_spinbtn" | |
698dcdb6 | 6126 | |
10f2d63a VZ |
6127 | if test "$enableval" = yes; then |
6128 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6129 | else | |
6130 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6131 | fi | |
698dcdb6 | 6132 | |
10f2d63a | 6133 | else |
698dcdb6 | 6134 | |
10f2d63a VZ |
6135 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6136 | if test "x$LINE" != x ; then | |
6137 | eval "DEFAULT_$LINE" | |
6138 | else | |
6139 | no_cache=1 | |
6140 | fi | |
6141 | ||
6142 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6143 | |
6144 | fi | |
10f2d63a VZ |
6145 | |
6146 | ||
6147 | eval "$ac_cv_use_spinbtn" | |
6148 | if test "$no_cache" != 1; then | |
6149 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6150 | fi | |
6151 | ||
6152 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6153 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6154 | else |
698dcdb6 | 6155 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6156 | fi |
698dcdb6 | 6157 | |
10f2d63a | 6158 | |
698dcdb6 | 6159 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
3f345b47 | 6160 | echo "configure:6161: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6161 | no_cache=0 |
6162 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6163 | if test "${enable_spinctrl+set}" = set; then | |
6164 | enableval="$enable_spinctrl" | |
698dcdb6 | 6165 | |
56cfaa52 RR |
6166 | if test "$enableval" = yes; then |
6167 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6168 | else | |
6169 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6170 | fi | |
698dcdb6 | 6171 | |
56cfaa52 | 6172 | else |
698dcdb6 | 6173 | |
56cfaa52 RR |
6174 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6175 | if test "x$LINE" != x ; then | |
6176 | eval "DEFAULT_$LINE" | |
6177 | else | |
6178 | no_cache=1 | |
6179 | fi | |
6180 | ||
6181 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6182 | |
6183 | fi | |
56cfaa52 RR |
6184 | |
6185 | ||
6186 | eval "$ac_cv_use_spinctrl" | |
6187 | if test "$no_cache" != 1; then | |
6188 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6189 | fi | |
6190 | ||
6191 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6192 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6193 | else |
698dcdb6 | 6194 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6195 | fi |
698dcdb6 | 6196 | |
56cfaa52 | 6197 | |
698dcdb6 | 6198 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
3f345b47 | 6199 | echo "configure:6200: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6200 | no_cache=0 |
6201 | # Check whether --enable-splitter or --disable-splitter was given. | |
6202 | if test "${enable_splitter+set}" = set; then | |
6203 | enableval="$enable_splitter" | |
698dcdb6 | 6204 | |
10f2d63a VZ |
6205 | if test "$enableval" = yes; then |
6206 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6207 | else | |
6208 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6209 | fi | |
698dcdb6 | 6210 | |
10f2d63a | 6211 | else |
698dcdb6 | 6212 | |
10f2d63a VZ |
6213 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6214 | if test "x$LINE" != x ; then | |
6215 | eval "DEFAULT_$LINE" | |
6216 | else | |
6217 | no_cache=1 | |
6218 | fi | |
6219 | ||
6220 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6221 | |
6222 | fi | |
10f2d63a VZ |
6223 | |
6224 | ||
6225 | eval "$ac_cv_use_splitter" | |
6226 | if test "$no_cache" != 1; then | |
6227 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6228 | fi | |
6229 | ||
6230 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6232 | else |
698dcdb6 | 6233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6234 | fi |
698dcdb6 | 6235 | |
10f2d63a | 6236 | |
698dcdb6 | 6237 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
3f345b47 | 6238 | echo "configure:6239: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6239 | no_cache=0 |
6240 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6241 | if test "${enable_statbmp+set}" = set; then | |
6242 | enableval="$enable_statbmp" | |
698dcdb6 | 6243 | |
10f2d63a VZ |
6244 | if test "$enableval" = yes; then |
6245 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6246 | else | |
6247 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6248 | fi | |
698dcdb6 | 6249 | |
10f2d63a | 6250 | else |
698dcdb6 | 6251 | |
10f2d63a VZ |
6252 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6253 | if test "x$LINE" != x ; then | |
6254 | eval "DEFAULT_$LINE" | |
6255 | else | |
6256 | no_cache=1 | |
6257 | fi | |
6258 | ||
6259 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6260 | |
6261 | fi | |
10f2d63a VZ |
6262 | |
6263 | ||
6264 | eval "$ac_cv_use_statbmp" | |
6265 | if test "$no_cache" != 1; then | |
6266 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6267 | fi | |
6268 | ||
6269 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6271 | else |
698dcdb6 | 6272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6273 | fi |
698dcdb6 | 6274 | |
10f2d63a | 6275 | |
698dcdb6 | 6276 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
3f345b47 | 6277 | echo "configure:6278: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6278 | no_cache=0 |
6279 | # Check whether --enable-statbox or --disable-statbox was given. | |
6280 | if test "${enable_statbox+set}" = set; then | |
6281 | enableval="$enable_statbox" | |
698dcdb6 | 6282 | |
10f2d63a VZ |
6283 | if test "$enableval" = yes; then |
6284 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6285 | else | |
6286 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6287 | fi | |
698dcdb6 | 6288 | |
10f2d63a | 6289 | else |
698dcdb6 | 6290 | |
10f2d63a VZ |
6291 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6292 | if test "x$LINE" != x ; then | |
6293 | eval "DEFAULT_$LINE" | |
6294 | else | |
6295 | no_cache=1 | |
6296 | fi | |
6297 | ||
6298 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6299 | |
6300 | fi | |
10f2d63a VZ |
6301 | |
6302 | ||
6303 | eval "$ac_cv_use_statbox" | |
6304 | if test "$no_cache" != 1; then | |
6305 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6306 | fi | |
6307 | ||
6308 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6310 | else |
698dcdb6 | 6311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6312 | fi |
698dcdb6 | 6313 | |
10f2d63a | 6314 | |
698dcdb6 | 6315 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
3f345b47 | 6316 | echo "configure:6317: checking for --enable-statline" >&5 |
10f2d63a VZ |
6317 | no_cache=0 |
6318 | # Check whether --enable-statline or --disable-statline was given. | |
6319 | if test "${enable_statline+set}" = set; then | |
6320 | enableval="$enable_statline" | |
698dcdb6 | 6321 | |
10f2d63a VZ |
6322 | if test "$enableval" = yes; then |
6323 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6324 | else | |
6325 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6326 | fi | |
698dcdb6 | 6327 | |
10f2d63a | 6328 | else |
698dcdb6 | 6329 | |
10f2d63a VZ |
6330 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6331 | if test "x$LINE" != x ; then | |
6332 | eval "DEFAULT_$LINE" | |
6333 | else | |
6334 | no_cache=1 | |
6335 | fi | |
6336 | ||
6337 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6338 | |
6339 | fi | |
10f2d63a VZ |
6340 | |
6341 | ||
6342 | eval "$ac_cv_use_statline" | |
6343 | if test "$no_cache" != 1; then | |
6344 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6345 | fi | |
6346 | ||
6347 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6348 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6349 | else |
698dcdb6 | 6350 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6351 | fi |
698dcdb6 | 6352 | |
10f2d63a | 6353 | |
1e6feb95 | 6354 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
3f345b47 | 6355 | echo "configure:6356: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6356 | no_cache=0 |
6357 | # Check whether --enable-stattext or --disable-stattext was given. | |
6358 | if test "${enable_stattext+set}" = set; then | |
6359 | enableval="$enable_stattext" | |
6360 | ||
6361 | if test "$enableval" = yes; then | |
6362 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6363 | else | |
6364 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6365 | fi | |
6366 | ||
6367 | else | |
6368 | ||
6369 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6370 | if test "x$LINE" != x ; then | |
6371 | eval "DEFAULT_$LINE" | |
6372 | else | |
6373 | no_cache=1 | |
6374 | fi | |
6375 | ||
6376 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6377 | ||
6378 | fi | |
6379 | ||
6380 | ||
6381 | eval "$ac_cv_use_stattext" | |
6382 | if test "$no_cache" != 1; then | |
6383 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6384 | fi | |
6385 | ||
6386 | if test "$wxUSE_STATTEXT" = yes; then | |
6387 | echo "$ac_t""yes" 1>&6 | |
6388 | else | |
6389 | echo "$ac_t""no" 1>&6 | |
6390 | fi | |
6391 | ||
6392 | ||
698dcdb6 | 6393 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
3f345b47 | 6394 | echo "configure:6395: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6395 | no_cache=0 |
6396 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6397 | if test "${enable_statusbar+set}" = set; then | |
6398 | enableval="$enable_statusbar" | |
698dcdb6 | 6399 | |
10f2d63a VZ |
6400 | if test "$enableval" = yes; then |
6401 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6402 | else | |
6403 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6404 | fi | |
698dcdb6 | 6405 | |
10f2d63a | 6406 | else |
698dcdb6 | 6407 | |
10f2d63a VZ |
6408 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6409 | if test "x$LINE" != x ; then | |
6410 | eval "DEFAULT_$LINE" | |
6411 | else | |
6412 | no_cache=1 | |
6413 | fi | |
6414 | ||
6415 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6416 | |
6417 | fi | |
10f2d63a VZ |
6418 | |
6419 | ||
6420 | eval "$ac_cv_use_statusbar" | |
6421 | if test "$no_cache" != 1; then | |
6422 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6423 | fi | |
6424 | ||
6425 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6426 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6427 | else |
698dcdb6 | 6428 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6429 | fi |
698dcdb6 | 6430 | |
10f2d63a | 6431 | |
698dcdb6 | 6432 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
3f345b47 | 6433 | echo "configure:6434: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6434 | no_cache=0 |
6435 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6436 | if test "${enable_tabdialog+set}" = set; then | |
6437 | enableval="$enable_tabdialog" | |
698dcdb6 | 6438 | |
10f2d63a VZ |
6439 | if test "$enableval" = yes; then |
6440 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6441 | else | |
6442 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6443 | fi | |
698dcdb6 | 6444 | |
10f2d63a | 6445 | else |
698dcdb6 | 6446 | |
10f2d63a VZ |
6447 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6448 | if test "x$LINE" != x ; then | |
6449 | eval "DEFAULT_$LINE" | |
6450 | else | |
6451 | no_cache=1 | |
6452 | fi | |
6453 | ||
6454 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6455 | |
6456 | fi | |
10f2d63a VZ |
6457 | |
6458 | ||
6459 | eval "$ac_cv_use_tabdialog" | |
6460 | if test "$no_cache" != 1; then | |
6461 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6462 | fi | |
6463 | ||
6464 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6466 | else |
698dcdb6 | 6467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6468 | fi |
698dcdb6 | 6469 | |
10f2d63a | 6470 | |
1e6feb95 | 6471 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
3f345b47 | 6472 | echo "configure:6473: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6473 | no_cache=0 |
6474 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6475 | if test "${enable_textctrl+set}" = set; then | |
6476 | enableval="$enable_textctrl" | |
6477 | ||
6478 | if test "$enableval" = yes; then | |
6479 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6480 | else | |
6481 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6482 | fi | |
6483 | ||
6484 | else | |
6485 | ||
6486 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6487 | if test "x$LINE" != x ; then | |
6488 | eval "DEFAULT_$LINE" | |
6489 | else | |
6490 | no_cache=1 | |
6491 | fi | |
6492 | ||
6493 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6494 | ||
6495 | fi | |
6496 | ||
6497 | ||
6498 | eval "$ac_cv_use_textctrl" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6504 | echo "$ac_t""yes" 1>&6 | |
6505 | else | |
6506 | echo "$ac_t""no" 1>&6 | |
6507 | fi | |
6508 | ||
6509 | ||
698dcdb6 | 6510 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
3f345b47 | 6511 | echo "configure:6512: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6512 | no_cache=0 |
6513 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6514 | if test "${enable_togglebtn+set}" = set; then | |
6515 | enableval="$enable_togglebtn" | |
698dcdb6 | 6516 | |
1db8dc4a VZ |
6517 | if test "$enableval" = yes; then |
6518 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6519 | else | |
6520 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6521 | fi | |
698dcdb6 | 6522 | |
1db8dc4a | 6523 | else |
698dcdb6 | 6524 | |
1db8dc4a VZ |
6525 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6526 | if test "x$LINE" != x ; then | |
6527 | eval "DEFAULT_$LINE" | |
6528 | else | |
6529 | no_cache=1 | |
6530 | fi | |
6531 | ||
6532 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6533 | |
6534 | fi | |
1db8dc4a VZ |
6535 | |
6536 | ||
6537 | eval "$ac_cv_use_togglebtn" | |
6538 | if test "$no_cache" != 1; then | |
6539 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6540 | fi | |
6541 | ||
6542 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6543 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6544 | else |
698dcdb6 | 6545 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6546 | fi |
698dcdb6 | 6547 | |
1db8dc4a | 6548 | |
698dcdb6 | 6549 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
3f345b47 | 6550 | echo "configure:6551: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6551 | no_cache=0 |
6552 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6553 | if test "${enable_toolbar+set}" = set; then | |
6554 | enableval="$enable_toolbar" | |
698dcdb6 | 6555 | |
10f2d63a VZ |
6556 | if test "$enableval" = yes; then |
6557 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6558 | else | |
6559 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6560 | fi | |
698dcdb6 | 6561 | |
10f2d63a | 6562 | else |
698dcdb6 | 6563 | |
10f2d63a VZ |
6564 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6572 | |
6573 | fi | |
10f2d63a VZ |
6574 | |
6575 | ||
6576 | eval "$ac_cv_use_toolbar" | |
6577 | if test "$no_cache" != 1; then | |
6578 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6579 | fi | |
6580 | ||
6581 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6582 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6583 | else |
698dcdb6 | 6584 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6585 | fi |
698dcdb6 | 6586 | |
10f2d63a | 6587 | |
698dcdb6 | 6588 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
3f345b47 | 6589 | echo "configure:6590: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6590 | no_cache=0 |
6591 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6592 | if test "${enable_tbarnative+set}" = set; then | |
6593 | enableval="$enable_tbarnative" | |
698dcdb6 | 6594 | |
360d6699 VZ |
6595 | if test "$enableval" = yes; then |
6596 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6597 | else | |
6598 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6599 | fi | |
698dcdb6 | 6600 | |
360d6699 | 6601 | else |
698dcdb6 | 6602 | |
360d6699 VZ |
6603 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6604 | if test "x$LINE" != x ; then | |
6605 | eval "DEFAULT_$LINE" | |
6606 | else | |
6607 | no_cache=1 | |
6608 | fi | |
6609 | ||
6610 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6611 | |
6612 | fi | |
360d6699 VZ |
6613 | |
6614 | ||
6615 | eval "$ac_cv_use_tbarnative" | |
6616 | if test "$no_cache" != 1; then | |
6617 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6618 | fi | |
6619 | ||
6620 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6621 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6622 | else |
698dcdb6 | 6623 | echo "$ac_t""no" 1>&6 |
360d6699 | 6624 | fi |
698dcdb6 | 6625 | |
360d6699 | 6626 | |
698dcdb6 | 6627 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
3f345b47 | 6628 | echo "configure:6629: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6629 | no_cache=0 |
6630 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6631 | if test "${enable_tbarsmpl+set}" = set; then | |
6632 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6633 | |
360d6699 VZ |
6634 | if test "$enableval" = yes; then |
6635 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6636 | else | |
6637 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6638 | fi | |
698dcdb6 | 6639 | |
360d6699 | 6640 | else |
698dcdb6 | 6641 | |
360d6699 VZ |
6642 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6643 | if test "x$LINE" != x ; then | |
6644 | eval "DEFAULT_$LINE" | |
6645 | else | |
6646 | no_cache=1 | |
6647 | fi | |
6648 | ||
6649 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6650 | |
6651 | fi | |
360d6699 VZ |
6652 | |
6653 | ||
6654 | eval "$ac_cv_use_tbarsmpl" | |
6655 | if test "$no_cache" != 1; then | |
6656 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6657 | fi | |
6658 | ||
6659 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6660 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6661 | else |
698dcdb6 | 6662 | echo "$ac_t""no" 1>&6 |
360d6699 | 6663 | fi |
698dcdb6 | 6664 | |
360d6699 | 6665 | |
698dcdb6 | 6666 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
3f345b47 | 6667 | echo "configure:6668: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6668 | no_cache=0 |
6669 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6670 | if test "${enable_treectrl+set}" = set; then | |
6671 | enableval="$enable_treectrl" | |
698dcdb6 | 6672 | |
10f2d63a VZ |
6673 | if test "$enableval" = yes; then |
6674 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6675 | else | |
6676 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6677 | fi | |
698dcdb6 | 6678 | |
10f2d63a | 6679 | else |
698dcdb6 | 6680 | |
10f2d63a VZ |
6681 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6682 | if test "x$LINE" != x ; then | |
6683 | eval "DEFAULT_$LINE" | |
6684 | else | |
6685 | no_cache=1 | |
6686 | fi | |
6687 | ||
6688 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6689 | |
6690 | fi | |
10f2d63a VZ |
6691 | |
6692 | ||
1e6feb95 VZ |
6693 | eval "$ac_cv_use_treectrl" |
6694 | if test "$no_cache" != 1; then | |
6695 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6696 | fi | |
6697 | ||
6698 | if test "$wxUSE_TREECTRL" = yes; then | |
6699 | echo "$ac_t""yes" 1>&6 | |
6700 | else | |
6701 | echo "$ac_t""no" 1>&6 | |
6702 | fi | |
6703 | ||
6704 | ||
9926e4a4 | 6705 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
3f345b47 | 6706 | echo "configure:6707: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
6707 | no_cache=0 |
6708 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
6709 | if test "${enable_tipwindow+set}" = set; then | |
6710 | enableval="$enable_tipwindow" | |
6711 | ||
6712 | if test "$enableval" = yes; then | |
6713 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
6714 | else | |
6715 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
6716 | fi | |
6717 | ||
6718 | else | |
6719 | ||
6720 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
6721 | if test "x$LINE" != x ; then | |
6722 | eval "DEFAULT_$LINE" | |
6723 | else | |
6724 | no_cache=1 | |
6725 | fi | |
6726 | ||
6727 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
6728 | ||
6729 | fi | |
6730 | ||
6731 | ||
6732 | eval "$ac_cv_use_tipwindow" | |
6733 | if test "$no_cache" != 1; then | |
6734 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
6735 | fi | |
6736 | ||
6737 | if test "$wxUSE_TIPWINDOW" = yes; then | |
6738 | echo "$ac_t""yes" 1>&6 | |
6739 | else | |
6740 | echo "$ac_t""no" 1>&6 | |
6741 | fi | |
6742 | ||
6743 | ||
9f41d601 | 6744 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
3f345b47 | 6745 | echo "configure:6746: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6746 | no_cache=0 |
6747 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6748 | if test "${enable_popupwin+set}" = set; then | |
6749 | enableval="$enable_popupwin" | |
6750 | ||
6751 | if test "$enableval" = yes; then | |
6752 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6753 | else | |
6754 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6755 | fi | |
6756 | ||
6757 | else | |
6758 | ||
6759 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6760 | if test "x$LINE" != x ; then | |
6761 | eval "DEFAULT_$LINE" | |
6762 | else | |
6763 | no_cache=1 | |
6764 | fi | |
6765 | ||
6766 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6767 | ||
6768 | fi | |
6769 | ||
6770 | ||
6771 | eval "$ac_cv_use_popupwin" | |
6772 | if test "$no_cache" != 1; then | |
6773 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6774 | fi | |
6775 | ||
6776 | if test "$wxUSE_POPUPWIN" = yes; then | |
6777 | echo "$ac_t""yes" 1>&6 | |
6778 | else | |
6779 | echo "$ac_t""no" 1>&6 | |
6780 | fi | |
6781 | ||
6782 | ||
1e6feb95 VZ |
6783 | |
6784 | ||
6785 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
3f345b47 | 6786 | echo "configure:6787: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6787 | no_cache=0 |
6788 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6789 | if test "${enable_commondlg+set}" = set; then | |
6790 | enableval="$enable_commondlg" | |
6791 | ||
6792 | if test "$enableval" = yes; then | |
6793 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6794 | else | |
6795 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6796 | fi | |
6797 | ||
6798 | else | |
6799 | ||
6800 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6801 | if test "x$LINE" != x ; then | |
6802 | eval "DEFAULT_$LINE" | |
6803 | else | |
6804 | no_cache=1 | |
6805 | fi | |
6806 | ||
6807 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6808 | ||
6809 | fi | |
6810 | ||
6811 | ||
6812 | eval "$ac_cv_use_commondlg" | |
6813 | if test "$no_cache" != 1; then | |
6814 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6815 | fi | |
6816 | ||
6817 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6818 | echo "$ac_t""yes" 1>&6 | |
6819 | else | |
6820 | echo "$ac_t""no" 1>&6 | |
6821 | fi | |
6822 | ||
6823 | ||
6824 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
3f345b47 | 6825 | echo "configure:6826: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6826 | no_cache=0 |
6827 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6828 | if test "${enable_choicedlg+set}" = set; then | |
6829 | enableval="$enable_choicedlg" | |
6830 | ||
6831 | if test "$enableval" = yes; then | |
6832 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6833 | else | |
6834 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6835 | fi | |
6836 | ||
6837 | else | |
6838 | ||
6839 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6840 | if test "x$LINE" != x ; then | |
6841 | eval "DEFAULT_$LINE" | |
6842 | else | |
6843 | no_cache=1 | |
6844 | fi | |
6845 | ||
6846 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6847 | ||
6848 | fi | |
6849 | ||
6850 | ||
6851 | eval "$ac_cv_use_choicedlg" | |
6852 | if test "$no_cache" != 1; then | |
6853 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6854 | fi | |
6855 | ||
6856 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6857 | echo "$ac_t""yes" 1>&6 | |
6858 | else | |
6859 | echo "$ac_t""no" 1>&6 | |
6860 | fi | |
6861 | ||
6862 | ||
6863 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
3f345b47 | 6864 | echo "configure:6865: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6865 | no_cache=0 |
6866 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6867 | if test "${enable_coldlg+set}" = set; then | |
6868 | enableval="$enable_coldlg" | |
6869 | ||
6870 | if test "$enableval" = yes; then | |
6871 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6872 | else | |
6873 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6874 | fi | |
6875 | ||
6876 | else | |
6877 | ||
6878 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6879 | if test "x$LINE" != x ; then | |
6880 | eval "DEFAULT_$LINE" | |
6881 | else | |
6882 | no_cache=1 | |
6883 | fi | |
6884 | ||
6885 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6886 | ||
6887 | fi | |
6888 | ||
6889 | ||
6890 | eval "$ac_cv_use_coldlg" | |
6891 | if test "$no_cache" != 1; then | |
6892 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6893 | fi | |
6894 | ||
6895 | if test "$wxUSE_COLOURDLG" = yes; then | |
6896 | echo "$ac_t""yes" 1>&6 | |
6897 | else | |
6898 | echo "$ac_t""no" 1>&6 | |
6899 | fi | |
6900 | ||
6901 | ||
6902 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
3f345b47 | 6903 | echo "configure:6904: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6904 | no_cache=0 |
6905 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6906 | if test "${enable_filedlg+set}" = set; then | |
6907 | enableval="$enable_filedlg" | |
6908 | ||
6909 | if test "$enableval" = yes; then | |
6910 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6911 | else | |
6912 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6913 | fi | |
6914 | ||
6915 | else | |
6916 | ||
6917 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6918 | if test "x$LINE" != x ; then | |
6919 | eval "DEFAULT_$LINE" | |
6920 | else | |
6921 | no_cache=1 | |
6922 | fi | |
6923 | ||
6924 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6925 | ||
6926 | fi | |
6927 | ||
6928 | ||
6929 | eval "$ac_cv_use_filedlg" | |
6930 | if test "$no_cache" != 1; then | |
6931 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6932 | fi | |
6933 | ||
6934 | if test "$wxUSE_FILEDLG" = yes; then | |
6935 | echo "$ac_t""yes" 1>&6 | |
6936 | else | |
6937 | echo "$ac_t""no" 1>&6 | |
6938 | fi | |
6939 | ||
6940 | ||
69d27ff7 | 6941 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
3f345b47 | 6942 | echo "configure:6943: checking for --enable-finddlg" >&5 |
8db37e06 | 6943 | no_cache=0 |
69d27ff7 MB |
6944 | # Check whether --enable-finddlg or --disable-finddlg was given. |
6945 | if test "${enable_finddlg+set}" = set; then | |
6946 | enableval="$enable_finddlg" | |
8db37e06 VZ |
6947 | |
6948 | if test "$enableval" = yes; then | |
69d27ff7 | 6949 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 6950 | else |
69d27ff7 | 6951 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
6952 | fi |
6953 | ||
6954 | else | |
6955 | ||
6956 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6957 | if test "x$LINE" != x ; then | |
6958 | eval "DEFAULT_$LINE" | |
6959 | else | |
6960 | no_cache=1 | |
6961 | fi | |
6962 | ||
69d27ff7 | 6963 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
6964 | |
6965 | fi | |
6966 | ||
6967 | ||
69d27ff7 | 6968 | eval "$ac_cv_use_finddlg" |
8db37e06 | 6969 | if test "$no_cache" != 1; then |
69d27ff7 | 6970 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
6971 | fi |
6972 | ||
6973 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6974 | echo "$ac_t""yes" 1>&6 | |
6975 | else | |
6976 | echo "$ac_t""no" 1>&6 | |
6977 | fi | |
6978 | ||
6979 | ||
1e6feb95 | 6980 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
3f345b47 | 6981 | echo "configure:6982: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6982 | no_cache=0 |
6983 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6984 | if test "${enable_fontdlg+set}" = set; then | |
6985 | enableval="$enable_fontdlg" | |
6986 | ||
6987 | if test "$enableval" = yes; then | |
6988 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6989 | else | |
6990 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6991 | fi | |
6992 | ||
6993 | else | |
6994 | ||
6995 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7003 | ||
7004 | fi | |
7005 | ||
7006 | ||
7007 | eval "$ac_cv_use_fontdlg" | |
7008 | if test "$no_cache" != 1; then | |
7009 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7010 | fi | |
7011 | ||
7012 | if test "$wxUSE_FONTDLG" = yes; then | |
7013 | echo "$ac_t""yes" 1>&6 | |
7014 | else | |
7015 | echo "$ac_t""no" 1>&6 | |
7016 | fi | |
7017 | ||
7018 | ||
7019 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
3f345b47 | 7020 | echo "configure:7021: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7021 | no_cache=0 |
7022 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7023 | if test "${enable_dirdlg+set}" = set; then | |
7024 | enableval="$enable_dirdlg" | |
7025 | ||
7026 | if test "$enableval" = yes; then | |
7027 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7028 | else | |
7029 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7030 | fi | |
7031 | ||
7032 | else | |
7033 | ||
7034 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7035 | if test "x$LINE" != x ; then | |
7036 | eval "DEFAULT_$LINE" | |
7037 | else | |
7038 | no_cache=1 | |
7039 | fi | |
7040 | ||
7041 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7042 | ||
7043 | fi | |
7044 | ||
7045 | ||
7046 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7047 | if test "$no_cache" != 1; then |
1e6feb95 | 7048 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7049 | fi |
7050 | ||
1e6feb95 | 7051 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7052 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7053 | else |
698dcdb6 | 7054 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7055 | fi |
698dcdb6 VZ |
7056 | |
7057 | ||
1e6feb95 | 7058 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
3f345b47 | 7059 | echo "configure:7060: checking for --enable-msgdlg" >&5 |
10f2d63a | 7060 | no_cache=0 |
1e6feb95 VZ |
7061 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7062 | if test "${enable_msgdlg+set}" = set; then | |
7063 | enableval="$enable_msgdlg" | |
698dcdb6 | 7064 | |
10f2d63a | 7065 | if test "$enableval" = yes; then |
1e6feb95 | 7066 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7067 | else |
1e6feb95 | 7068 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7069 | fi |
698dcdb6 | 7070 | |
10f2d63a | 7071 | else |
698dcdb6 | 7072 | |
1e6feb95 | 7073 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7074 | if test "x$LINE" != x ; then |
7075 | eval "DEFAULT_$LINE" | |
7076 | else | |
7077 | no_cache=1 | |
7078 | fi | |
7079 | ||
1e6feb95 | 7080 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7081 | |
7082 | fi | |
10f2d63a VZ |
7083 | |
7084 | ||
1e6feb95 | 7085 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7086 | if test "$no_cache" != 1; then |
1e6feb95 | 7087 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7088 | fi |
7089 | ||
1e6feb95 | 7090 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7091 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7092 | else |
698dcdb6 | 7093 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7094 | fi |
698dcdb6 | 7095 | |
10f2d63a | 7096 | |
1e6feb95 | 7097 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
3f345b47 | 7098 | echo "configure:7099: checking for --enable-numberdlg" >&5 |
10f2d63a | 7099 | no_cache=0 |
1e6feb95 VZ |
7100 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7101 | if test "${enable_numberdlg+set}" = set; then | |
7102 | enableval="$enable_numberdlg" | |
698dcdb6 | 7103 | |
10f2d63a | 7104 | if test "$enableval" = yes; then |
1e6feb95 | 7105 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7106 | else |
1e6feb95 | 7107 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7108 | fi |
698dcdb6 | 7109 | |
10f2d63a | 7110 | else |
698dcdb6 | 7111 | |
1e6feb95 | 7112 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7113 | if test "x$LINE" != x ; then |
7114 | eval "DEFAULT_$LINE" | |
7115 | else | |
7116 | no_cache=1 | |
7117 | fi | |
7118 | ||
1e6feb95 | 7119 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7120 | |
7121 | fi | |
10f2d63a VZ |
7122 | |
7123 | ||
1e6feb95 | 7124 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7125 | if test "$no_cache" != 1; then |
1e6feb95 | 7126 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7127 | fi |
7128 | ||
1e6feb95 | 7129 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7130 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7131 | else |
698dcdb6 | 7132 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7133 | fi |
698dcdb6 | 7134 | |
10f2d63a | 7135 | |
cbca9943 | 7136 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
3f345b47 | 7137 | echo "configure:7138: checking for --enable-splash" >&5 |
cbca9943 VZ |
7138 | no_cache=0 |
7139 | # Check whether --enable-splash or --disable-splash was given. | |
7140 | if test "${enable_splash+set}" = set; then | |
7141 | enableval="$enable_splash" | |
7142 | ||
7143 | if test "$enableval" = yes; then | |
7144 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7145 | else | |
7146 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7147 | fi | |
7148 | ||
7149 | else | |
7150 | ||
7151 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7152 | if test "x$LINE" != x ; then | |
7153 | eval "DEFAULT_$LINE" | |
7154 | else | |
7155 | no_cache=1 | |
7156 | fi | |
7157 | ||
7158 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7159 | ||
7160 | fi | |
7161 | ||
7162 | ||
7163 | eval "$ac_cv_use_splash" | |
7164 | if test "$no_cache" != 1; then | |
7165 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7166 | fi | |
7167 | ||
7168 | if test "$wxUSE_SPLASH" = yes; then | |
7169 | echo "$ac_t""yes" 1>&6 | |
7170 | else | |
7171 | echo "$ac_t""no" 1>&6 | |
7172 | fi | |
7173 | ||
7174 | ||
698dcdb6 | 7175 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
3f345b47 | 7176 | echo "configure:7177: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7177 | no_cache=0 |
7178 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7179 | if test "${enable_textdlg+set}" = set; then | |
7180 | enableval="$enable_textdlg" | |
698dcdb6 | 7181 | |
10f2d63a VZ |
7182 | if test "$enableval" = yes; then |
7183 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7184 | else | |
7185 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7186 | fi | |
698dcdb6 | 7187 | |
10f2d63a | 7188 | else |
698dcdb6 | 7189 | |
10f2d63a VZ |
7190 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7191 | if test "x$LINE" != x ; then | |
7192 | eval "DEFAULT_$LINE" | |
7193 | else | |
7194 | no_cache=1 | |
7195 | fi | |
7196 | ||
7197 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7198 | |
7199 | fi | |
10f2d63a VZ |
7200 | |
7201 | ||
7202 | eval "$ac_cv_use_textdlg" | |
7203 | if test "$no_cache" != 1; then | |
7204 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7205 | fi | |
7206 | ||
7207 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7208 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7209 | else |
698dcdb6 | 7210 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7211 | fi |
698dcdb6 | 7212 | |
10f2d63a | 7213 | |
698dcdb6 | 7214 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
3f345b47 | 7215 | echo "configure:7216: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7216 | no_cache=0 |
7217 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7218 | if test "${enable_tipdlg+set}" = set; then | |
7219 | enableval="$enable_tipdlg" | |
698dcdb6 | 7220 | |
10f2d63a VZ |
7221 | if test "$enableval" = yes; then |
7222 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7223 | else | |
7224 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7225 | fi | |
698dcdb6 | 7226 | |
10f2d63a | 7227 | else |
698dcdb6 | 7228 | |
10f2d63a VZ |
7229 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7237 | |
7238 | fi | |
10f2d63a VZ |
7239 | |
7240 | ||
7241 | eval "$ac_cv_use_tipdlg" | |
7242 | if test "$no_cache" != 1; then | |
7243 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7244 | fi | |
7245 | ||
7246 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7247 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7248 | else |
698dcdb6 | 7249 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7250 | fi |
698dcdb6 | 7251 | |
10f2d63a | 7252 | |
698dcdb6 | 7253 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
3f345b47 | 7254 | echo "configure:7255: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7255 | no_cache=0 |
7256 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7257 | if test "${enable_progressdlg+set}" = set; then | |
7258 | enableval="$enable_progressdlg" | |
698dcdb6 | 7259 | |
10f2d63a VZ |
7260 | if test "$enableval" = yes; then |
7261 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7262 | else | |
7263 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7264 | fi | |
698dcdb6 | 7265 | |
10f2d63a | 7266 | else |
698dcdb6 | 7267 | |
10f2d63a VZ |
7268 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7269 | if test "x$LINE" != x ; then | |
7270 | eval "DEFAULT_$LINE" | |
7271 | else | |
7272 | no_cache=1 | |
7273 | fi | |
7274 | ||
7275 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7276 | |
7277 | fi | |
10f2d63a VZ |
7278 | |
7279 | ||
7280 | eval "$ac_cv_use_progressdlg" | |
7281 | if test "$no_cache" != 1; then | |
7282 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7283 | fi | |
7284 | ||
7285 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7286 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7287 | else |
698dcdb6 | 7288 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7289 | fi |
698dcdb6 | 7290 | |
10f2d63a | 7291 | |
b1f5d087 | 7292 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
3f345b47 | 7293 | echo "configure:7294: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7294 | no_cache=0 |
7295 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7296 | if test "${enable_wizarddlg+set}" = set; then | |
7297 | enableval="$enable_wizarddlg" | |
7298 | ||
7299 | if test "$enableval" = yes; then | |
7300 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7301 | else | |
7302 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7303 | fi | |
7304 | ||
7305 | else | |
7306 | ||
7307 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7308 | if test "x$LINE" != x ; then | |
7309 | eval "DEFAULT_$LINE" | |
7310 | else | |
7311 | no_cache=1 | |
7312 | fi | |
7313 | ||
7314 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7315 | ||
7316 | fi | |
7317 | ||
7318 | ||
7319 | eval "$ac_cv_use_wizarddlg" | |
7320 | if test "$no_cache" != 1; then | |
7321 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7322 | fi | |
7323 | ||
7324 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7325 | echo "$ac_t""yes" 1>&6 | |
7326 | else | |
7327 | echo "$ac_t""no" 1>&6 | |
7328 | fi | |
7329 | ||
7330 | ||
7331 | ||
7332 | ||
1e6feb95 | 7333 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
3f345b47 | 7334 | echo "configure:7335: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7335 | no_cache=0 |
7336 | # Check whether --enable-menus or --disable-menus was given. | |
7337 | if test "${enable_menus+set}" = set; then | |
7338 | enableval="$enable_menus" | |
7339 | ||
7340 | if test "$enableval" = yes; then | |
7341 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7342 | else | |
7343 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7344 | fi | |
7345 | ||
7346 | else | |
7347 | ||
7348 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7349 | if test "x$LINE" != x ; then | |
7350 | eval "DEFAULT_$LINE" | |
7351 | else | |
7352 | no_cache=1 | |
7353 | fi | |
7354 | ||
7355 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7356 | ||
7357 | fi | |
7358 | ||
7359 | ||
7360 | eval "$ac_cv_use_menus" | |
7361 | if test "$no_cache" != 1; then | |
7362 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7363 | fi | |
7364 | ||
7365 | if test "$wxUSE_MENUS" = yes; then | |
7366 | echo "$ac_t""yes" 1>&6 | |
7367 | else | |
7368 | echo "$ac_t""no" 1>&6 | |
7369 | fi | |
7370 | ||
7371 | ||
698dcdb6 | 7372 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
3f345b47 | 7373 | echo "configure:7374: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7374 | no_cache=0 |
7375 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7376 | if test "${enable_miniframe+set}" = set; then | |
7377 | enableval="$enable_miniframe" | |
698dcdb6 | 7378 | |
10f2d63a VZ |
7379 | if test "$enableval" = yes; then |
7380 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7381 | else | |
7382 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7383 | fi | |
698dcdb6 | 7384 | |
10f2d63a | 7385 | else |
698dcdb6 | 7386 | |
10f2d63a VZ |
7387 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7388 | if test "x$LINE" != x ; then | |
7389 | eval "DEFAULT_$LINE" | |
7390 | else | |
7391 | no_cache=1 | |
7392 | fi | |
7393 | ||
7394 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7395 | |
7396 | fi | |
10f2d63a VZ |
7397 | |
7398 | ||
7399 | eval "$ac_cv_use_miniframe" | |
7400 | if test "$no_cache" != 1; then | |
7401 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7402 | fi | |
7403 | ||
7404 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7405 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7406 | else |
698dcdb6 | 7407 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7408 | fi |
698dcdb6 | 7409 | |
10f2d63a | 7410 | |
698dcdb6 | 7411 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
3f345b47 | 7412 | echo "configure:7413: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7413 | no_cache=0 |
7414 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7415 | if test "${enable_tooltips+set}" = set; then | |
7416 | enableval="$enable_tooltips" | |
698dcdb6 | 7417 | |
10f2d63a VZ |
7418 | if test "$enableval" = yes; then |
7419 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7420 | else | |
7421 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7422 | fi | |
698dcdb6 | 7423 | |
10f2d63a | 7424 | else |
698dcdb6 | 7425 | |
10f2d63a VZ |
7426 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7427 | if test "x$LINE" != x ; then | |
7428 | eval "DEFAULT_$LINE" | |
7429 | else | |
7430 | no_cache=1 | |
7431 | fi | |
7432 | ||
7433 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7434 | |
7435 | fi | |
10f2d63a VZ |
7436 | |
7437 | ||
7438 | eval "$ac_cv_use_tooltips" | |
7439 | if test "$no_cache" != 1; then | |
7440 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7441 | fi | |
7442 | ||
7443 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7444 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7445 | else |
698dcdb6 | 7446 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7447 | fi |
698dcdb6 | 7448 | |
10f2d63a | 7449 | |
698dcdb6 | 7450 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
3f345b47 | 7451 | echo "configure:7452: checking for --enable-splines" >&5 |
10f2d63a VZ |
7452 | no_cache=0 |
7453 | # Check whether --enable-splines or --disable-splines was given. | |
7454 | if test "${enable_splines+set}" = set; then | |
7455 | enableval="$enable_splines" | |
698dcdb6 | 7456 | |
10f2d63a VZ |
7457 | if test "$enableval" = yes; then |
7458 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7459 | else | |
7460 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7461 | fi | |
698dcdb6 | 7462 | |
10f2d63a | 7463 | else |
698dcdb6 | 7464 | |
10f2d63a VZ |
7465 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7466 | if test "x$LINE" != x ; then | |
7467 | eval "DEFAULT_$LINE" | |
7468 | else | |
7469 | no_cache=1 | |
7470 | fi | |
7471 | ||
7472 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7473 | |
7474 | fi | |
10f2d63a VZ |
7475 | |
7476 | ||
7477 | eval "$ac_cv_use_splines" | |
7478 | if test "$no_cache" != 1; then | |
7479 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7480 | fi | |
7481 | ||
7482 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7483 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7484 | else |
698dcdb6 | 7485 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7486 | fi |
698dcdb6 | 7487 | |
10f2d63a | 7488 | |
698dcdb6 | 7489 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
3f345b47 | 7490 | echo "configure:7491: checking for --enable-validators" >&5 |
10f2d63a VZ |
7491 | no_cache=0 |
7492 | # Check whether --enable-validators or --disable-validators was given. | |
7493 | if test "${enable_validators+set}" = set; then | |
7494 | enableval="$enable_validators" | |
698dcdb6 | 7495 | |
10f2d63a VZ |
7496 | if test "$enableval" = yes; then |
7497 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7498 | else | |
7499 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7500 | fi | |
698dcdb6 | 7501 | |
10f2d63a | 7502 | else |
698dcdb6 | 7503 | |
10f2d63a VZ |
7504 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7505 | if test "x$LINE" != x ; then | |
7506 | eval "DEFAULT_$LINE" | |
7507 | else | |
7508 | no_cache=1 | |
7509 | fi | |
7510 | ||
7511 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7512 | |
7513 | fi | |
10f2d63a VZ |
7514 | |
7515 | ||
7516 | eval "$ac_cv_use_validators" | |
7517 | if test "$no_cache" != 1; then | |
7518 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7519 | fi | |
7520 | ||
7521 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7523 | else |
698dcdb6 | 7524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7525 | fi |
698dcdb6 | 7526 | |
10f2d63a | 7527 | |
698dcdb6 | 7528 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
3f345b47 | 7529 | echo "configure:7530: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7530 | no_cache=0 |
7531 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7532 | if test "${enable_busyinfo+set}" = set; then | |
7533 | enableval="$enable_busyinfo" | |
698dcdb6 | 7534 | |
10f2d63a VZ |
7535 | if test "$enableval" = yes; then |
7536 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7537 | else | |
7538 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7539 | fi | |
698dcdb6 | 7540 | |
10f2d63a | 7541 | else |
698dcdb6 | 7542 | |
10f2d63a VZ |
7543 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7544 | if test "x$LINE" != x ; then | |
7545 | eval "DEFAULT_$LINE" | |
7546 | else | |
7547 | no_cache=1 | |
7548 | fi | |
7549 | ||
7550 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7551 | |
7552 | fi | |
10f2d63a VZ |
7553 | |
7554 | ||
7555 | eval "$ac_cv_use_busyinfo" | |
7556 | if test "$no_cache" != 1; then | |
7557 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7558 | fi | |
7559 | ||
7560 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7561 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7562 | else |
698dcdb6 | 7563 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7564 | fi |
698dcdb6 | 7565 | |
10f2d63a | 7566 | |
698dcdb6 | 7567 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
3f345b47 | 7568 | echo "configure:7569: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7569 | no_cache=0 |
7570 | # Check whether --enable-joystick or --disable-joystick was given. | |
7571 | if test "${enable_joystick+set}" = set; then | |
7572 | enableval="$enable_joystick" | |
698dcdb6 | 7573 | |
f6bcfd97 BP |
7574 | if test "$enableval" = yes; then |
7575 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7576 | else | |
7577 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7578 | fi | |
698dcdb6 | 7579 | |
f6bcfd97 | 7580 | else |
698dcdb6 | 7581 | |
f6bcfd97 BP |
7582 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7583 | if test "x$LINE" != x ; then | |
7584 | eval "DEFAULT_$LINE" | |
7585 | else | |
7586 | no_cache=1 | |
7587 | fi | |
7588 | ||
7589 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7590 | |
7591 | fi | |
f6bcfd97 BP |
7592 | |
7593 | ||
7594 | eval "$ac_cv_use_joystick" | |
7595 | if test "$no_cache" != 1; then | |
7596 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7597 | fi | |
7598 | ||
7599 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7600 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7601 | else |
698dcdb6 | 7602 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7603 | fi |
698dcdb6 VZ |
7604 | |
7605 | ||
1e6feb95 | 7606 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
3f345b47 | 7607 | echo "configure:7608: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7608 | no_cache=0 |
7609 | # Check whether --enable-metafile or --disable-metafile was given. | |
7610 | if test "${enable_metafile+set}" = set; then | |
7611 | enableval="$enable_metafile" | |
7612 | ||
7613 | if test "$enableval" = yes; then | |
7614 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7615 | else | |
7616 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7617 | fi | |
7618 | ||
7619 | else | |
7620 | ||
7621 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7622 | if test "x$LINE" != x ; then | |
7623 | eval "DEFAULT_$LINE" | |
7624 | else | |
7625 | no_cache=1 | |
7626 | fi | |
7627 | ||
7628 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7629 | ||
7630 | fi | |
7631 | ||
7632 | ||
7633 | eval "$ac_cv_use_metafile" | |
7634 | if test "$no_cache" != 1; then | |
7635 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7636 | fi | |
7637 | ||
7638 | if test "$wxUSE_METAFILE" = yes; then | |
7639 | echo "$ac_t""yes" 1>&6 | |
7640 | else | |
7641 | echo "$ac_t""no" 1>&6 | |
7642 | fi | |
7643 | ||
7644 | ||
24fd6d87 | 7645 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
3f345b47 | 7646 | echo "configure:7647: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7647 | no_cache=0 |
7648 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7649 | if test "${enable_dragimage+set}" = set; then | |
7650 | enableval="$enable_dragimage" | |
7651 | ||
7652 | if test "$enableval" = yes; then | |
7653 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7654 | else | |
7655 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7656 | fi | |
7657 | ||
7658 | else | |
7659 | ||
7660 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7661 | if test "x$LINE" != x ; then | |
7662 | eval "DEFAULT_$LINE" | |
7663 | else | |
7664 | no_cache=1 | |
7665 | fi | |
7666 | ||
7667 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7668 | ||
7669 | fi | |
7670 | ||
7671 | ||
7672 | eval "$ac_cv_use_dragimage" | |
7673 | if test "$no_cache" != 1; then | |
7674 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7675 | fi | |
7676 | ||
7677 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7678 | echo "$ac_t""yes" 1>&6 | |
7679 | else | |
7680 | echo "$ac_t""no" 1>&6 | |
7681 | fi | |
7682 | ||
7683 | ||
10f2d63a | 7684 | |
698dcdb6 | 7685 | |
edae8572 | 7686 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
3f345b47 | 7687 | echo "configure:7688: checking for --enable-palette" >&5 |
edae8572 VZ |
7688 | no_cache=0 |
7689 | # Check whether --enable-palette or --disable-palette was given. | |
7690 | if test "${enable_palette+set}" = set; then | |
7691 | enableval="$enable_palette" | |
7692 | ||
7693 | if test "$enableval" = yes; then | |
7694 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7695 | else | |
7696 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7697 | fi | |
7698 | ||
7699 | else | |
7700 | ||
7701 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7702 | if test "x$LINE" != x ; then | |
7703 | eval "DEFAULT_$LINE" | |
7704 | else | |
7705 | no_cache=1 | |
7706 | fi | |
7707 | ||
7708 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7709 | ||
7710 | fi | |
7711 | ||
7712 | ||
7713 | eval "$ac_cv_use_palette" | |
7714 | if test "$no_cache" != 1; then | |
7715 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7716 | fi | |
7717 | ||
7718 | if test "$wxUSE_PALETTE" = yes; then | |
7719 | echo "$ac_t""yes" 1>&6 | |
7720 | else | |
7721 | echo "$ac_t""no" 1>&6 | |
7722 | fi | |
7723 | ||
7724 | ||
698dcdb6 | 7725 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
3f345b47 | 7726 | echo "configure:7727: checking for --enable-image" >&5 |
0046ff7c VS |
7727 | no_cache=0 |
7728 | # Check whether --enable-image or --disable-image was given. | |
7729 | if test "${enable_image+set}" = set; then | |
7730 | enableval="$enable_image" | |
698dcdb6 | 7731 | |
0046ff7c VS |
7732 | if test "$enableval" = yes; then |
7733 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7734 | else | |
7735 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7736 | fi | |
698dcdb6 | 7737 | |
0046ff7c | 7738 | else |
698dcdb6 | 7739 | |
0046ff7c VS |
7740 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7741 | if test "x$LINE" != x ; then | |
7742 | eval "DEFAULT_$LINE" | |
7743 | else | |
7744 | no_cache=1 | |
7745 | fi | |
7746 | ||
7747 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7748 | |
7749 | fi | |
0046ff7c VS |
7750 | |
7751 | ||
7752 | eval "$ac_cv_use_image" | |
7753 | if test "$no_cache" != 1; then | |
7754 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7755 | fi | |
7756 | ||
7757 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7758 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7759 | else |
698dcdb6 | 7760 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7761 | fi |
698dcdb6 | 7762 | |
0046ff7c | 7763 | |
698dcdb6 | 7764 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
3f345b47 | 7765 | echo "configure:7766: checking for --enable-gif" >&5 |
10f2d63a VZ |
7766 | no_cache=0 |
7767 | # Check whether --enable-gif or --disable-gif was given. | |
7768 | if test "${enable_gif+set}" = set; then | |
7769 | enableval="$enable_gif" | |
698dcdb6 | 7770 | |
10f2d63a VZ |
7771 | if test "$enableval" = yes; then |
7772 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7773 | else | |
7774 | ac_cv_use_gif='wxUSE_GIF=no' | |
7775 | fi | |
698dcdb6 | 7776 | |
10f2d63a | 7777 | else |
698dcdb6 | 7778 | |
10f2d63a VZ |
7779 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7780 | if test "x$LINE" != x ; then | |
7781 | eval "DEFAULT_$LINE" | |
7782 | else | |
7783 | no_cache=1 | |
7784 | fi | |
7785 | ||
7786 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7787 | |
7788 | fi | |
10f2d63a VZ |
7789 | |
7790 | ||
7791 | eval "$ac_cv_use_gif" | |
7792 | if test "$no_cache" != 1; then | |
7793 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7794 | fi | |
7795 | ||
7796 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7797 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7798 | else |
698dcdb6 | 7799 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7800 | fi |
698dcdb6 | 7801 | |
10f2d63a | 7802 | |
698dcdb6 | 7803 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
3f345b47 | 7804 | echo "configure:7805: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7805 | no_cache=0 |
7806 | # Check whether --enable-pcx or --disable-pcx was given. | |
7807 | if test "${enable_pcx+set}" = set; then | |
7808 | enableval="$enable_pcx" | |
698dcdb6 | 7809 | |
10f2d63a VZ |
7810 | if test "$enableval" = yes; then |
7811 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7812 | else | |
7813 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7814 | fi | |
698dcdb6 | 7815 | |
10f2d63a | 7816 | else |
698dcdb6 | 7817 | |
10f2d63a VZ |
7818 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7819 | if test "x$LINE" != x ; then | |
7820 | eval "DEFAULT_$LINE" | |
7821 | else | |
7822 | no_cache=1 | |
7823 | fi | |
7824 | ||
7825 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7826 | |
7827 | fi | |
10f2d63a VZ |
7828 | |
7829 | ||
7830 | eval "$ac_cv_use_pcx" | |
7831 | if test "$no_cache" != 1; then | |
7832 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7833 | fi | |
7834 | ||
7835 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7836 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7837 | else |
698dcdb6 | 7838 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7839 | fi |
698dcdb6 | 7840 | |
10f2d63a | 7841 | |
698dcdb6 | 7842 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
3f345b47 | 7843 | echo "configure:7844: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7844 | no_cache=0 |
7845 | # Check whether --enable-pnm or --disable-pnm was given. | |
7846 | if test "${enable_pnm+set}" = set; then | |
7847 | enableval="$enable_pnm" | |
698dcdb6 | 7848 | |
10f2d63a VZ |
7849 | if test "$enableval" = yes; then |
7850 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7851 | else | |
7852 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7853 | fi | |
698dcdb6 | 7854 | |
10f2d63a | 7855 | else |
698dcdb6 | 7856 | |
10f2d63a VZ |
7857 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7858 | if test "x$LINE" != x ; then | |
7859 | eval "DEFAULT_$LINE" | |
7860 | else | |
7861 | no_cache=1 | |
7862 | fi | |
7863 | ||
7864 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7865 | |
7866 | fi | |
10f2d63a VZ |
7867 | |
7868 | ||
7869 | eval "$ac_cv_use_pnm" | |
7870 | if test "$no_cache" != 1; then | |
7871 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7872 | fi | |
7873 | ||
7874 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7875 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7876 | else |
698dcdb6 | 7877 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7878 | fi |
698dcdb6 | 7879 | |
10f2d63a | 7880 | |
69d27ff7 | 7881 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
3f345b47 | 7882 | echo "configure:7883: checking for --enable-xpm" >&5 |
0046ff7c | 7883 | no_cache=0 |
69d27ff7 MB |
7884 | # Check whether --enable-xpm or --disable-xpm was given. |
7885 | if test "${enable_xpm+set}" = set; then | |
7886 | enableval="$enable_xpm" | |
698dcdb6 | 7887 | |
0046ff7c | 7888 | if test "$enableval" = yes; then |
69d27ff7 | 7889 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 7890 | else |
69d27ff7 | 7891 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 7892 | fi |
698dcdb6 | 7893 | |
0046ff7c | 7894 | else |
698dcdb6 | 7895 | |
0046ff7c VS |
7896 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7897 | if test "x$LINE" != x ; then | |
7898 | eval "DEFAULT_$LINE" | |
7899 | else | |
7900 | no_cache=1 | |
7901 | fi | |
7902 | ||
69d27ff7 | 7903 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
7904 | |
7905 | fi | |
0046ff7c VS |
7906 | |
7907 | ||
69d27ff7 | 7908 | eval "$ac_cv_use_xpm" |
0046ff7c | 7909 | if test "$no_cache" != 1; then |
69d27ff7 | 7910 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
7911 | fi |
7912 | ||
7913 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7914 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7915 | else |
698dcdb6 | 7916 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7917 | fi |
698dcdb6 | 7918 | |
0046ff7c | 7919 | |
b12915c1 VZ |
7920 | fi |
7921 | ||
698dcdb6 | 7922 | |
10f2d63a VZ |
7923 | echo "saving argument cache $wx_arg_cache_file" |
7924 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7925 | |
10f2d63a | 7926 | |
698dcdb6 VZ |
7927 | |
7928 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
3f345b47 | 7929 | echo "configure:7930: checking for toolkit" >&5 |
10f2d63a VZ |
7930 | |
7931 | if test "$wxUSE_GUI" = "yes"; then | |
7932 | ||
3a922bb4 RL |
7933 | if test "$USE_BEOS" = 1; then |
7934 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7935 | fi | |
b12915c1 | 7936 | |
3a922bb4 RL |
7937 | if test "$TOOLKIT_GIVEN" = 1; then |
7938 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7939 | var=wxUSE_$toolkit | |
7940 | eval "value=\$${var}" | |
7941 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7942 | done | |
10f2d63a | 7943 | else |
3a922bb4 RL |
7944 | for toolkit in `echo $ALL_TOOLKITS`; do |
7945 | if test "$has_toolkit_in_cache" != 1; then | |
7946 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7947 | else | |
7948 | var=DEFAULT_wxUSE_$toolkit | |
7949 | fi | |
7950 | eval "wxUSE_$toolkit=\$${var}" | |
7951 | done | |
10f2d63a | 7952 | fi |
10f2d63a | 7953 | |
3a922bb4 | 7954 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
77e13408 | 7955 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}` |
10f2d63a | 7956 | |
3a922bb4 | 7957 | case "${host}" in |
6fa882bd | 7958 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
7959 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
7960 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7961 | LEX_STEM="lexyy" | |
7962 | ;; | |
7963 | *) | |
7964 | PATH_IFS=':' | |
7965 | LEX_STEM="lex.yy" | |
7966 | ;; | |
7967 | esac | |
10f2d63a | 7968 | |
3a922bb4 RL |
7969 | case "$NUM_TOOLKITS" in |
7970 | 1) | |
7971 | ;; | |
7972 | 0) | |
7973 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7974 | ;; | |
7975 | *) | |
7976 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7977 | esac | |
10f2d63a | 7978 | |
3a922bb4 RL |
7979 | for toolkit in `echo $ALL_TOOLKITS`; do |
7980 | var=wxUSE_$toolkit | |
7981 | eval "value=\$${var}" | |
7982 | if test "x$value" != x; then | |
7983 | cache_var=CACHE_$toolkit | |
7984 | eval "cache=\$${cache_var}" | |
7985 | if test "$cache" = 1; then | |
7986 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7987 | fi | |
7988 | if test "$value" = 1; then | |
7989 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7990 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7991 | fi | |
7992 | fi | |
7993 | done | |
10f2d63a | 7994 | else |
cf27ef00 | 7995 | PATH_IFS=':' |
3a922bb4 | 7996 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7997 | fi |
7998 | ||
698dcdb6 VZ |
7999 | |
8000 | cat > confcache <<\EOF | |
10f2d63a VZ |
8001 | # This file is a shell script that caches the results of configure |
8002 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8003 | # scripts and configure runs. It is not useful on other systems. |
8004 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8005 | # |
698dcdb6 VZ |
8006 | # By default, configure uses ./config.cache as the cache file, |
8007 | # creating it if it does not exist already. You can give configure | |
8008 | # the --cache-file=FILE option to use a different cache file; that is | |
8009 | # what configure does when it calls configure scripts in | |
8010 | # subdirectories, so they share the cache. | |
8011 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8012 | # config.status only pays attention to the cache file if you give it the | |
8013 | # --recheck option to rerun configure. | |
10f2d63a | 8014 | # |
698dcdb6 | 8015 | EOF |
10f2d63a VZ |
8016 | # The following way of writing the cache mishandles newlines in values, |
8017 | # but we know of no workaround that is simple, portable, and efficient. | |
8018 | # So, don't put newlines in cache variables' values. | |
8019 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8020 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8021 | (set) 2>&1 | |
8022 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8023 | *ac_space=\ *) | |
8024 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8025 | # turns \\\\ into \\, and sed turns \\ into \). | |
8026 | sed -n \ | |
8027 | -e "s/'/'\\\\''/g" \ | |
8028 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8029 | ;; | |
8030 | *) | |
8031 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8032 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8033 | ;; | |
8034 | esac >> confcache | |
8035 | if cmp -s $cache_file confcache; then | |
8036 | : | |
8037 | else | |
10f2d63a | 8038 | if test -w $cache_file; then |
698dcdb6 VZ |
8039 | echo "updating cache $cache_file" |
8040 | cat confcache > $cache_file | |
10f2d63a VZ |
8041 | else |
8042 | echo "not updating unwritable cache $cache_file" | |
8043 | fi | |
8044 | fi | |
8045 | rm -f confcache | |
8046 | ||
698dcdb6 | 8047 | |
e59890c3 | 8048 | if test "$build" != "$host" ; then |
3a922bb4 RL |
8049 | if test "$USE_WIN32" = 1 ; then |
8050 | CC=$host_alias-gcc | |
8051 | CXX=$host_alias-c++ | |
8052 | AR=$host_alias-ar | |
8053 | RANLIB=$host_alias-ranlib | |
8054 | DLLTOOL=$host_alias-dlltool | |
8055 | RESCOMP=$host_alias-windres | |
8056 | LD=$host_alias-ld | |
8057 | NM=$host_alias-nm | |
8058 | STRIP=$host_alias-strip | |
8059 | else | |
8060 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8061 | fi | |
10f2d63a VZ |
8062 | fi |
8063 | ||
698dcdb6 | 8064 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8065 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8066 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 8067 | echo "configure:8068: checking for $ac_word" >&5 |
698dcdb6 VZ |
8068 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8070 | else |
8071 | if test -n "$CC"; then | |
8072 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8073 | else |
698dcdb6 VZ |
8074 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8075 | ac_dummy="$PATH" | |
8076 | for ac_dir in $ac_dummy; do | |
8077 | test -z "$ac_dir" && ac_dir=. | |
8078 | if test -f $ac_dir/$ac_word; then | |
8079 | ac_cv_prog_CC="gcc" | |
8080 | break | |
8081 | fi | |
8082 | done | |
8083 | IFS="$ac_save_ifs" | |
10f2d63a | 8084 | fi |
6232543b | 8085 | fi |
698dcdb6 | 8086 | CC="$ac_cv_prog_CC" |
6232543b | 8087 | if test -n "$CC"; then |
698dcdb6 | 8088 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8089 | else |
698dcdb6 | 8090 | echo "$ac_t""no" 1>&6 |
1e487827 | 8091 | fi |
6232543b | 8092 | |
1e487827 VS |
8093 | if test -z "$CC"; then |
8094 | # Extract the first word of "cc", so it can be a program name with args. | |
8095 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8096 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 8097 | echo "configure:8098: checking for $ac_word" >&5 |
698dcdb6 VZ |
8098 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8100 | else |
8101 | if test -n "$CC"; then | |
8102 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8103 | else | |
698dcdb6 | 8104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8105 | ac_prog_rejected=no |
698dcdb6 VZ |
8106 | ac_dummy="$PATH" |
8107 | for ac_dir in $ac_dummy; do | |
8108 | test -z "$ac_dir" && ac_dir=. | |
8109 | if test -f $ac_dir/$ac_word; then | |
8110 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8111 | ac_prog_rejected=yes | |
8112 | continue | |
8113 | fi | |
8114 | ac_cv_prog_CC="cc" | |
8115 | break | |
8116 | fi | |
8117 | done | |
8118 | IFS="$ac_save_ifs" | |
1e487827 VS |
8119 | if test $ac_prog_rejected = yes; then |
8120 | # We found a bogon in the path, so make sure we never use it. | |
8121 | set dummy $ac_cv_prog_CC | |
8122 | shift | |
698dcdb6 | 8123 | if test $# -gt 0; then |
1e487827 VS |
8124 | # We chose a different compiler from the bogus one. |
8125 | # However, it has the same basename, so the bogon will be chosen | |
8126 | # first if we set CC to just the basename; use the full file name. | |
8127 | shift | |
698dcdb6 | 8128 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8129 | shift |
8130 | ac_cv_prog_CC="$@" | |
703e0a69 | 8131 | fi |
1e487827 VS |
8132 | fi |
8133 | fi | |
8134 | fi | |
698dcdb6 | 8135 | CC="$ac_cv_prog_CC" |
1e487827 | 8136 | if test -n "$CC"; then |
698dcdb6 | 8137 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8138 | else |
698dcdb6 | 8139 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8140 | fi |
1e487827 | 8141 | |
698dcdb6 VZ |
8142 | if test -z "$CC"; then |
8143 | case "`uname -s`" in | |
8144 | *win32* | *WIN32*) | |
8145 | # Extract the first word of "cl", so it can be a program name with args. | |
8146 | set dummy cl; ac_word=$2 | |
8147 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3f345b47 | 8148 | echo "configure:8149: checking for $ac_word" >&5 |
698dcdb6 VZ |
8149 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8151 | else |
8152 | if test -n "$CC"; then | |
8153 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8154 | else |
698dcdb6 VZ |
8155 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8156 | ac_dummy="$PATH" | |
8157 | for ac_dir in $ac_dummy; do | |
8158 | test -z "$ac_dir" && ac_dir=. | |
8159 | if test -f $ac_dir/$ac_word; then | |
8160 | ac_cv_prog_CC="cl" | |
8161 | break | |
8162 | fi | |
8163 | done | |
8164 | IFS="$ac_save_ifs" | |
703e0a69 | 8165 | fi |
1e487827 | 8166 | fi |
698dcdb6 | 8167 | CC="$ac_cv_prog_CC" |
1e487827 | 8168 | if test -n "$CC"; then |
698dcdb6 | 8169 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8170 | else |
698dcdb6 | 8171 | echo "$ac_t""no" 1>&6 |
1e487827 | 8172 | fi |
698dcdb6 VZ |
8173 | ;; |
8174 | esac | |
8175 | fi | |
8176 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8177 | fi |
8178 | ||
698dcdb6 | 8179 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3f345b47 | 8180 | echo "configure:8181: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8181 | |
698dcdb6 VZ |
8182 | ac_ext=c |
8183 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8184 | ac_cpp='$CPP $CPPFLAGS' | |
8185 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8186 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8187 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8188 | |
698dcdb6 | 8189 | cat > conftest.$ac_ext << EOF |
1e487827 | 8190 | |
3f345b47 | 8191 | #line 8192 "configure" |
1e487827 VS |
8192 | #include "confdefs.h" |
8193 | ||
698dcdb6 VZ |
8194 | main(){return(0);} |
8195 | EOF | |
3f345b47 | 8196 | if { (eval echo configure:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8197 | ac_cv_prog_cc_works=yes |
8198 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8199 | if (./conftest; exit) 2>/dev/null; then | |
8200 | ac_cv_prog_cc_cross=no | |
8201 | else | |
8202 | ac_cv_prog_cc_cross=yes | |
8203 | fi | |
8204 | else | |
8205 | echo "configure: failed program was:" >&5 | |
8206 | cat conftest.$ac_ext >&5 | |
8207 | ac_cv_prog_cc_works=no | |
8208 | fi | |
8209 | rm -fr conftest* | |
8210 | ac_ext=c | |
8211 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8212 | ac_cpp='$CPP $CPPFLAGS' | |
8213 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8214 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8215 | cross_compiling=$ac_cv_prog_cc_cross | |
8216 | ||
8217 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8218 | if test $ac_cv_prog_cc_works = no; then | |
8219 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8220 | fi | |
8221 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3f345b47 | 8222 | echo "configure:8223: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8223 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8224 | cross_compiling=$ac_cv_prog_cc_cross | |
8225 | ||
8226 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
3f345b47 | 8227 | echo "configure:8228: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8228 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8230 | else | |
8231 | cat > conftest.c <<EOF | |
8232 | #ifdef __GNUC__ | |
8233 | yes; | |
1e487827 | 8234 | #endif |
698dcdb6 | 8235 | EOF |
3f345b47 | 8236 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8237 | ac_cv_prog_gcc=yes |
8238 | else | |
8239 | ac_cv_prog_gcc=no | |
8240 | fi | |
8241 | fi | |
1e487827 | 8242 | |
698dcdb6 | 8243 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8244 | |
698dcdb6 VZ |
8245 | if test $ac_cv_prog_gcc = yes; then |
8246 | GCC=yes | |
8247 | else | |
8248 | GCC= | |
8249 | fi | |
1e487827 | 8250 | |
698dcdb6 VZ |
8251 | ac_test_CFLAGS="${CFLAGS+set}" |
8252 | ac_save_CFLAGS="$CFLAGS" | |
8253 | CFLAGS= | |
8254 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
3f345b47 | 8255 | echo "configure:8256: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8256 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8258 | else | |
8259 | echo 'void f(){}' > conftest.c | |
8260 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8261 | ac_cv_prog_cc_g=yes |
8262 | else | |
698dcdb6 | 8263 | ac_cv_prog_cc_g=no |
10f2d63a | 8264 | fi |
698dcdb6 VZ |
8265 | rm -f conftest* |
8266 | ||
10f2d63a | 8267 | fi |
698dcdb6 VZ |
8268 | |
8269 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8270 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8271 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8272 | elif test $ac_cv_prog_cc_g = yes; then |
8273 | if test "$GCC" = yes; then | |
8274 | CFLAGS="-g -O2" | |
8275 | else | |
8276 | CFLAGS="-g" | |
8277 | fi | |
8278 | else | |
8279 | if test "$GCC" = yes; then | |
8280 | CFLAGS="-O2" | |
8281 | else | |
8282 | CFLAGS= | |
8283 | fi | |
8284 | fi | |
8285 | ||
8286 | ||
8287 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8288 | ||
698dcdb6 | 8289 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
3f345b47 | 8290 | echo "configure:8291: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8291 | # On Suns, sometimes $CPP names a directory. |
8292 | if test -n "$CPP" && test -d "$CPP"; then | |
8293 | CPP= | |
8294 | fi | |
8295 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8296 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8298 | else | |
8299 | # This must be in double quotes, not single quotes, because CPP may get | |
8300 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8301 | CPP="${CC-cc} -E" | |
10f2d63a | 8302 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8303 | # not just through cpp. |
8304 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 8305 | #line 8306 "configure" |
10f2d63a VZ |
8306 | #include "confdefs.h" |
8307 | #include <assert.h> | |
698dcdb6 VZ |
8308 | Syntax Error |
8309 | EOF | |
8310 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 8311 | { (eval echo configure:8312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8312 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8313 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8314 | : |
8315 | else | |
698dcdb6 VZ |
8316 | echo "$ac_err" >&5 |
8317 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8318 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8319 | rm -rf conftest* |
8320 | CPP="${CC-cc} -E -traditional-cpp" | |
8321 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 8322 | #line 8323 "configure" |
10f2d63a | 8323 | #include "confdefs.h" |
698dcdb6 VZ |
8324 | #include <assert.h> |
8325 | Syntax Error | |
8326 | EOF | |
8327 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 8328 | { (eval echo configure:8329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8329 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8330 | if test -z "$ac_err"; then | |
8331 | : | |
10f2d63a | 8332 | else |
698dcdb6 VZ |
8333 | echo "$ac_err" >&5 |
8334 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8335 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8336 | rm -rf conftest* |
8337 | CPP="${CC-cc} -nologo -E" | |
8338 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 8339 | #line 8340 "configure" |
10f2d63a VZ |
8340 | #include "confdefs.h" |
8341 | #include <assert.h> | |
698dcdb6 VZ |
8342 | Syntax Error |
8343 | EOF | |
8344 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 8345 | { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8346 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8347 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8348 | : |
8349 | else | |
698dcdb6 VZ |
8350 | echo "$ac_err" >&5 |
8351 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8352 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8353 | rm -rf conftest* |
8354 | CPP=/lib/cpp | |
10f2d63a | 8355 | fi |
698dcdb6 | 8356 | rm -f conftest* |
10f2d63a | 8357 | fi |
698dcdb6 | 8358 | rm -f conftest* |
703e0a69 | 8359 | fi |
698dcdb6 VZ |
8360 | rm -f conftest* |
8361 | ac_cv_prog_CPP="$CPP" | |
8362 | fi | |
8363 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8364 | else |
698dcdb6 | 8365 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8366 | fi |
698dcdb6 | 8367 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8368 | |
698dcdb6 VZ |
8369 | if test $ac_cv_prog_gcc = yes; then |
8370 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
3f345b47 | 8371 | echo "configure:8372: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8372 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8374 | else |
8375 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8376 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 8377 | #line 8378 "configure" |
10f2d63a VZ |
8378 | #include "confdefs.h" |
8379 | #include <sgtty.h> | |
8380 | Autoconf TIOCGETP | |
698dcdb6 | 8381 | EOF |
10f2d63a VZ |
8382 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8383 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8384 | rm -rf conftest* |
10f2d63a VZ |
8385 | ac_cv_prog_gcc_traditional=yes |
8386 | else | |
698dcdb6 | 8387 | rm -rf conftest* |
10f2d63a VZ |
8388 | ac_cv_prog_gcc_traditional=no |
8389 | fi | |
8390 | rm -f conftest* | |
8391 | ||
698dcdb6 | 8392 | |
10f2d63a | 8393 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8394 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 8395 | #line 8396 "configure" |
10f2d63a VZ |
8396 | #include "confdefs.h" |
8397 | #include <termio.h> | |
8398 | Autoconf TCGETA | |
698dcdb6 | 8399 | EOF |
10f2d63a VZ |
8400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8401 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8402 | rm -rf conftest* |
10f2d63a VZ |
8403 | ac_cv_prog_gcc_traditional=yes |
8404 | fi | |
8405 | rm -f conftest* | |
8406 | ||
8407 | fi | |
8408 | fi | |
698dcdb6 VZ |
8409 | |
8410 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8411 | if test $ac_cv_prog_gcc_traditional = yes; then |
8412 | CC="$CC -traditional" | |
8413 | fi | |
8414 | fi | |
8415 | ||
703e0a69 | 8416 | |
698dcdb6 VZ |
8417 | |
8418 | ac_ext=C | |
8419 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8420 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8421 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8422 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8423 | cross_compiling=$ac_cv_prog_cxx_cross | |
8424 | ||
8425 | ||
8426 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8427 | do | |
8428 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8429 | set dummy $ac_prog; ac_word=$2 | |
8430 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3f345b47 | 8431 | echo "configure:8432: checking for $ac_word" >&5 |
698dcdb6 VZ |
8432 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8434 | else |
8435 | if test -n "$CXX"; then | |
8436 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8437 | else | |
698dcdb6 VZ |
8438 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8439 | ac_dummy="$PATH" | |
8440 | for ac_dir in $ac_dummy; do | |
8441 | test -z "$ac_dir" && ac_dir=. | |
8442 | if test -f $ac_dir/$ac_word; then | |
8443 | ac_cv_prog_CXX="$ac_prog" | |
8444 | break | |
8445 | fi | |
8446 | done | |
8447 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8448 | fi |
8449 | fi | |
698dcdb6 | 8450 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8451 | if test -n "$CXX"; then |
698dcdb6 | 8452 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8453 | else |
698dcdb6 | 8454 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8455 | fi |
8456 | ||
698dcdb6 | 8457 | test -n "$CXX" && break |
10f2d63a | 8458 | done |
698dcdb6 | 8459 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8460 | |
8461 | ||
698dcdb6 | 8462 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
3f345b47 | 8463 | echo "configure:8464: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8464 | |
698dcdb6 VZ |
8465 | ac_ext=C |
8466 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8467 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8468 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8469 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8470 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8471 | |
698dcdb6 VZ |
8472 | cat > conftest.$ac_ext << EOF |
8473 | ||
3f345b47 | 8474 | #line 8475 "configure" |
10f2d63a VZ |
8475 | #include "confdefs.h" |
8476 | ||
698dcdb6 VZ |
8477 | int main(){return(0);} |
8478 | EOF | |
3f345b47 | 8479 | if { (eval echo configure:8480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8480 | ac_cv_prog_cxx_works=yes |
8481 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8482 | if (./conftest; exit) 2>/dev/null; then | |
8483 | ac_cv_prog_cxx_cross=no | |
8484 | else | |
8485 | ac_cv_prog_cxx_cross=yes | |
8486 | fi | |
8487 | else | |
8488 | echo "configure: failed program was:" >&5 | |
8489 | cat conftest.$ac_ext >&5 | |
8490 | ac_cv_prog_cxx_works=no | |
8491 | fi | |
8492 | rm -fr conftest* | |
8493 | ac_ext=C | |
8494 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8495 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8496 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8497 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8498 | cross_compiling=$ac_cv_prog_cxx_cross | |
8499 | ||
8500 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8501 | if test $ac_cv_prog_cxx_works = no; then | |
8502 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8503 | fi | |
8504 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
3f345b47 | 8505 | echo "configure:8506: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8506 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8507 | cross_compiling=$ac_cv_prog_cxx_cross | |
8508 | ||
8509 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
3f345b47 | 8510 | echo "configure:8511: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8511 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8513 | else | |
8514 | cat > conftest.C <<EOF | |
8515 | #ifdef __GNUC__ | |
8516 | yes; | |
10f2d63a | 8517 | #endif |
698dcdb6 | 8518 | EOF |
3f345b47 | 8519 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8520 | ac_cv_prog_gxx=yes |
8521 | else | |
8522 | ac_cv_prog_gxx=no | |
8523 | fi | |
8524 | fi | |
10f2d63a | 8525 | |
698dcdb6 | 8526 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8527 | |
698dcdb6 VZ |
8528 | if test $ac_cv_prog_gxx = yes; then |
8529 | GXX=yes | |
8530 | else | |
8531 | GXX= | |
8532 | fi | |
10f2d63a | 8533 | |
698dcdb6 VZ |
8534 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8535 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8536 | CXXFLAGS= | |
8537 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
3f345b47 | 8538 | echo "configure:8539: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8539 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8541 | else | |
8542 | echo 'void f(){}' > conftest.cc | |
8543 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8544 | ac_cv_prog_cxx_g=yes |
8545 | else | |
698dcdb6 | 8546 | ac_cv_prog_cxx_g=no |
10f2d63a | 8547 | fi |
698dcdb6 VZ |
8548 | rm -f conftest* |
8549 | ||
10f2d63a | 8550 | fi |
698dcdb6 VZ |
8551 | |
8552 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8553 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8554 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8555 | elif test $ac_cv_prog_cxx_g = yes; then |
8556 | if test "$GXX" = yes; then | |
8557 | CXXFLAGS="-g -O2" | |
8558 | else | |
8559 | CXXFLAGS="-g" | |
8560 | fi | |
8561 | else | |
8562 | if test "$GXX" = yes; then | |
8563 | CXXFLAGS="-O2" | |
8564 | else | |
8565 | CXXFLAGS= | |
8566 | fi | |
8567 | fi | |
8568 | ||
8569 | ||
10f2d63a VZ |
8570 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8571 | ||
8572 | ac_ext=c | |
698dcdb6 | 8573 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8574 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8575 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8576 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8577 | cross_compiling=$ac_cv_prog_cc_cross | |
8578 | ||
8579 | ||
8580 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8581 | set dummy ranlib; ac_word=$2 | |
8582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3f345b47 | 8583 | echo "configure:8584: checking for $ac_word" >&5 |
698dcdb6 VZ |
8584 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8586 | else |
8587 | if test -n "$RANLIB"; then | |
8588 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8589 | else | |
698dcdb6 VZ |
8590 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8591 | ac_dummy="$PATH" | |
8592 | for ac_dir in $ac_dummy; do | |
8593 | test -z "$ac_dir" && ac_dir=. | |
8594 | if test -f $ac_dir/$ac_word; then | |
8595 | ac_cv_prog_RANLIB="ranlib" | |
8596 | break | |
8597 | fi | |
8598 | done | |
8599 | IFS="$ac_save_ifs" | |
8600 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8601 | fi |
8602 | fi | |
698dcdb6 | 8603 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8604 | if test -n "$RANLIB"; then |
698dcdb6 | 8605 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8606 | else |
698dcdb6 | 8607 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8608 | fi |
8609 | ||
8610 | ||
8611 | # Extract the first word of "ar", so it can be a program name with args. | |
8612 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 8614 | echo "configure:8615: checking for $ac_word" >&5 |
698dcdb6 VZ |
8615 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8617 | else |
8618 | if test -n "$AR"; then | |
8619 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8620 | else | |
698dcdb6 VZ |
8621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8622 | ac_dummy="$PATH" | |
8623 | for ac_dir in $ac_dummy; do | |
8624 | test -z "$ac_dir" && ac_dir=. | |
8625 | if test -f $ac_dir/$ac_word; then | |
8626 | ac_cv_prog_AR="ar" | |
8627 | break | |
8628 | fi | |
8629 | done | |
8630 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8631 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8632 | fi | |
8633 | fi | |
698dcdb6 | 8634 | AR="$ac_cv_prog_AR" |
10f2d63a | 8635 | if test -n "$AR"; then |
698dcdb6 | 8636 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8637 | else |
698dcdb6 | 8638 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8639 | fi |
8640 | ||
698dcdb6 | 8641 | |
6054113a | 8642 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
8643 | # so one script is as good as another. But avoid the broken or |
8644 | # incompatible versions: | |
8645 | # SysV /etc/install, /usr/sbin/install | |
8646 | # SunOS /usr/etc/install | |
8647 | # IRIX /sbin/install | |
8648 | # AIX /bin/install | |
8649 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8650 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8651 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8652 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8653 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
3f345b47 | 8654 | echo "configure:8655: checking for a BSD compatible install" >&5 |
10f2d63a | 8655 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8656 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8657 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8658 | else |
698dcdb6 | 8659 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8660 | for ac_dir in $PATH; do |
8661 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8662 | case "$ac_dir/" in |
8663 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8664 | *) |
8665 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8666 | # Don't use installbsd from OSF since it installs stuff as root | |
8667 | # by default. | |
8668 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8669 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8670 | if test $ac_prog = install && |
698dcdb6 | 8671 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8672 | # AIX install. It has an incompatible calling convention. |
8673 | : | |
8674 | else | |
8675 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8676 | break 2 | |
8677 | fi | |
8678 | fi | |
8679 | done | |
8680 | ;; | |
8681 | esac | |
8682 | done | |
698dcdb6 | 8683 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8684 | |
8685 | fi | |
8686 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8687 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8688 | else |
8689 | # As a last resort, use the slow shell script. We don't cache a | |
8690 | # path for INSTALL within a source directory, because that will | |
8691 | # break other packages using the cache if that directory is | |
8692 | # removed, or if the path is relative. | |
698dcdb6 | 8693 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8694 | fi |
8695 | fi | |
698dcdb6 | 8696 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8697 | |
8698 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8699 | # It thinks the first close brace ends the variable substitution. | |
8700 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8701 | ||
698dcdb6 | 8702 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8703 | |
8704 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8705 | ||
6054113a GD |
8706 | case "${host}" in |
8707 | ||
b5853384 | 8708 | powerpc-*-darwin* ) |
eb99ae0b GD |
8709 | INSTALL_PROGRAM="cp -fp" |
8710 | INSTALL_DATA="cp -fp" | |
6054113a GD |
8711 | ;; |
8712 | *) | |
8713 | ;; | |
d6853540 | 8714 | esac |
698dcdb6 | 8715 | |
10f2d63a VZ |
8716 | # Extract the first word of "strip", so it can be a program name with args. |
8717 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8718 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 8719 | echo "configure:8720: checking for $ac_word" >&5 |
698dcdb6 VZ |
8720 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8722 | else |
8723 | if test -n "$STRIP"; then | |
8724 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8725 | else | |
698dcdb6 VZ |
8726 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8727 | ac_dummy="$PATH" | |
8728 | for ac_dir in $ac_dummy; do | |
8729 | test -z "$ac_dir" && ac_dir=. | |
8730 | if test -f $ac_dir/$ac_word; then | |
8731 | ac_cv_prog_STRIP="strip" | |
8732 | break | |
8733 | fi | |
8734 | done | |
8735 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8736 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8737 | fi | |
8738 | fi | |
698dcdb6 | 8739 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8740 | if test -n "$STRIP"; then |
698dcdb6 | 8741 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8742 | else |
698dcdb6 | 8743 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8744 | fi |
8745 | ||
698dcdb6 VZ |
8746 | |
8747 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
3f345b47 | 8748 | echo "configure:8749: checking make for VPATH support" >&5 |
10f2d63a VZ |
8749 | cat - << EOF > confMake |
8750 | check : file | |
8751 | cp \$? \$@ | |
8752 | cp \$? final_file | |
8753 | EOF | |
8754 | ||
8755 | if test ! -d sub ; then | |
8756 | mkdir sub | |
8757 | fi | |
8758 | echo dummy > sub/file | |
f6bcfd97 | 8759 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8760 | RESULT=$? |
8761 | rm -f sub/file check final_file confMake | |
8762 | rmdir sub | |
8763 | if test "$RESULT" = 0; then | |
698dcdb6 | 8764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8765 | else |
698dcdb6 VZ |
8766 | echo "$ac_t""no" 1>&6 |
8767 | { echo "configure: error: | |
1e487827 VS |
8768 | You need a make-utility that is able to use the variable |
8769 | VPATH correctly. | |
8770 | If your version of make does not support VPATH correctly, | |
8771 | please install GNU-make (possibly as gmake), and start | |
8772 | configure with the following command: | |
8773 | export MAKE=gmake; ./configure for sh-type shells | |
8774 | setenv MAKE gmake; ./configure for csh-type shells | |
8775 | Also please do remember to use gmake in this case every time | |
8776 | you are trying to compile. | |
698dcdb6 | 8777 | " 1>&2; exit 1; } |
10f2d63a VZ |
8778 | fi |
8779 | ||
8780 | for ac_prog in 'bison -y' byacc | |
8781 | do | |
698dcdb6 | 8782 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8783 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8784 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 8785 | echo "configure:8786: checking for $ac_word" >&5 |
698dcdb6 VZ |
8786 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8788 | else |
8789 | if test -n "$YACC"; then | |
8790 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8791 | else | |
698dcdb6 VZ |
8792 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8793 | ac_dummy="$PATH" | |
8794 | for ac_dir in $ac_dummy; do | |
8795 | test -z "$ac_dir" && ac_dir=. | |
8796 | if test -f $ac_dir/$ac_word; then | |
8797 | ac_cv_prog_YACC="$ac_prog" | |
8798 | break | |
8799 | fi | |
8800 | done | |
8801 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8802 | fi |
8803 | fi | |
698dcdb6 | 8804 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8805 | if test -n "$YACC"; then |
698dcdb6 | 8806 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8807 | else |
698dcdb6 | 8808 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8809 | fi |
8810 | ||
698dcdb6 | 8811 | test -n "$YACC" && break |
10f2d63a VZ |
8812 | done |
8813 | test -n "$YACC" || YACC="yacc" | |
8814 | ||
698dcdb6 VZ |
8815 | |
8816 | # Extract the first word of "flex", so it can be a program name with args. | |
8817 | set dummy flex; ac_word=$2 | |
8818 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3f345b47 | 8819 | echo "configure:8820: checking for $ac_word" >&5 |
698dcdb6 VZ |
8820 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8822 | else |
8823 | if test -n "$LEX"; then | |
8824 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8825 | else | |
698dcdb6 VZ |
8826 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8827 | ac_dummy="$PATH" | |
8828 | for ac_dir in $ac_dummy; do | |
8829 | test -z "$ac_dir" && ac_dir=. | |
8830 | if test -f $ac_dir/$ac_word; then | |
8831 | ac_cv_prog_LEX="flex" | |
8832 | break | |
8833 | fi | |
8834 | done | |
8835 | IFS="$ac_save_ifs" | |
8836 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8837 | fi |
8838 | fi | |
698dcdb6 | 8839 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8840 | if test -n "$LEX"; then |
698dcdb6 | 8841 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8842 | else |
698dcdb6 | 8843 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8844 | fi |
8845 | ||
8846 | if test -z "$LEXLIB" | |
8847 | then | |
698dcdb6 VZ |
8848 | case "$LEX" in |
8849 | flex*) ac_lib=fl ;; | |
8850 | *) ac_lib=l ;; | |
8851 | esac | |
8852 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
3f345b47 | 8853 | echo "configure:8854: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8854 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8855 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8857 | else | |
8858 | ac_save_LIBS="$LIBS" | |
8859 | LIBS="-l$ac_lib $LIBS" | |
8860 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 8861 | #line 8862 "configure" |
10f2d63a VZ |
8862 | #include "confdefs.h" |
8863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8864 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8865 | builtin and then its argument prototype would still apply. */ |
8866 | char yywrap(); | |
10f2d63a | 8867 | |
698dcdb6 VZ |
8868 | int main() { |
8869 | yywrap() | |
8870 | ; return 0; } | |
8871 | EOF | |
3f345b47 | 8872 | if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8873 | rm -rf conftest* |
8874 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8875 | else |
698dcdb6 VZ |
8876 | echo "configure: failed program was:" >&5 |
8877 | cat conftest.$ac_ext >&5 | |
8878 | rm -rf conftest* | |
8879 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8880 | fi |
698dcdb6 VZ |
8881 | rm -f conftest* |
8882 | LIBS="$ac_save_LIBS" | |
8883 | ||
10f2d63a | 8884 | fi |
698dcdb6 VZ |
8885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8886 | echo "$ac_t""yes" 1>&6 | |
8887 | LEXLIB="-l$ac_lib" | |
8888 | else | |
8889 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8890 | fi |
8891 | ||
8892 | fi | |
8893 | ||
8894 | ||
698dcdb6 | 8895 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
3f345b47 | 8896 | echo "configure:8897: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8897 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8898 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8899 | else |
698dcdb6 VZ |
8900 | rm -f conftestdata |
8901 | if ln -s X conftestdata 2>/dev/null | |
8902 | then | |
8903 | rm -f conftestdata | |
8904 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8905 | else |
698dcdb6 | 8906 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8907 | fi |
8908 | fi | |
698dcdb6 VZ |
8909 | LN_S="$ac_cv_prog_LN_S" |
8910 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8911 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8912 | else |
698dcdb6 | 8913 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8914 | fi |
8915 | ||
8916 | ||
8917 | ||
8918 | SEARCH_INCLUDE="\ | |
8919 | /usr/local/include \ | |
8920 | \ | |
8921 | /usr/Motif-1.2/include \ | |
8922 | /usr/Motif-2.1/include \ | |
8923 | \ | |
8924 | /usr/include/Motif1.2 \ | |
8925 | /opt/xpm/include/X11 \ | |
8926 | /opt/GBxpm/include/ \ | |
8927 | /opt/GBxpm/X11/include/ \ | |
8928 | \ | |
8929 | /usr/Motif1.2/include \ | |
8930 | /usr/dt/include \ | |
afc31813 VZ |
8931 | /usr/openwin/include \ |
8932 | \ | |
10f2d63a VZ |
8933 | /usr/include/Xm \ |
8934 | \ | |
8935 | /usr/X11R6/include \ | |
afc31813 | 8936 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8937 | /usr/X11R5/include \ |
8938 | /usr/X11R4/include \ | |
8939 | \ | |
10f2d63a VZ |
8940 | /usr/include/X11R6 \ |
8941 | /usr/include/X11R5 \ | |
8942 | /usr/include/X11R4 \ | |
8943 | \ | |
8944 | /usr/local/X11R6/include \ | |
8945 | /usr/local/X11R5/include \ | |
8946 | /usr/local/X11R4/include \ | |
8947 | \ | |
8948 | /usr/local/include/X11R6 \ | |
8949 | /usr/local/include/X11R5 \ | |
8950 | /usr/local/include/X11R4 \ | |
8951 | \ | |
8952 | /usr/X11/include \ | |
8953 | /usr/include/X11 \ | |
8954 | /usr/local/X11/include \ | |
8955 | /usr/local/include/X11 \ | |
8956 | \ | |
8957 | /usr/X386/include \ | |
8958 | /usr/x386/include \ | |
8959 | /usr/XFree86/include/X11 \ | |
8960 | \ | |
cf27ef00 | 8961 | X:/XFree86/include \ |
ec14dd32 VZ |
8962 | X:/XFree86/include/X11 \ |
8963 | \ | |
10f2d63a VZ |
8964 | /usr/include/gtk \ |
8965 | /usr/local/include/gtk \ | |
8966 | /usr/include/glib \ | |
8967 | /usr/local/include/glib \ | |
8968 | \ | |
8969 | /usr/include/qt \ | |
8970 | /usr/local/include/qt \ | |
8971 | \ | |
8972 | /usr/include/windows \ | |
8973 | /usr/include/wine \ | |
8974 | /usr/local/include/wine \ | |
8975 | \ | |
8976 | /usr/unsupported/include \ | |
8977 | /usr/athena/include \ | |
8978 | /usr/local/x11r5/include \ | |
8979 | /usr/lpp/Xamples/include \ | |
8980 | \ | |
10f2d63a | 8981 | /usr/openwin/share/include \ |
928b5c08 VZ |
8982 | \ |
8983 | /usr/include" | |
10f2d63a VZ |
8984 | |
8985 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8986 | ||
698dcdb6 VZ |
8987 | |
8988 | cat > confcache <<\EOF | |
10f2d63a VZ |
8989 | # This file is a shell script that caches the results of configure |
8990 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8991 | # scripts and configure runs. It is not useful on other systems. |
8992 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8993 | # |
698dcdb6 VZ |
8994 | # By default, configure uses ./config.cache as the cache file, |
8995 | # creating it if it does not exist already. You can give configure | |
8996 | # the --cache-file=FILE option to use a different cache file; that is | |
8997 | # what configure does when it calls configure scripts in | |
8998 | # subdirectories, so they share the cache. | |
8999 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9000 | # config.status only pays attention to the cache file if you give it the | |
9001 | # --recheck option to rerun configure. | |
10f2d63a | 9002 | # |
698dcdb6 | 9003 | EOF |
10f2d63a VZ |
9004 | # The following way of writing the cache mishandles newlines in values, |
9005 | # but we know of no workaround that is simple, portable, and efficient. | |
9006 | # So, don't put newlines in cache variables' values. | |
9007 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9008 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9009 | (set) 2>&1 | |
9010 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9011 | *ac_space=\ *) | |
9012 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9013 | # turns \\\\ into \\, and sed turns \\ into \). | |
9014 | sed -n \ | |
9015 | -e "s/'/'\\\\''/g" \ | |
9016 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9017 | ;; | |
9018 | *) | |
9019 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9020 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9021 | ;; | |
9022 | esac >> confcache | |
9023 | if cmp -s $cache_file confcache; then | |
9024 | : | |
9025 | else | |
10f2d63a | 9026 | if test -w $cache_file; then |
698dcdb6 VZ |
9027 | echo "updating cache $cache_file" |
9028 | cat confcache > $cache_file | |
10f2d63a VZ |
9029 | else |
9030 | echo "not updating unwritable cache $cache_file" | |
9031 | fi | |
9032 | fi | |
9033 | rm -f confcache | |
9034 | ||
698dcdb6 VZ |
9035 | |
9036 | ||
4f14bcd8 | 9037 | |
18dbb1f6 VZ |
9038 | REGEX_INCLUDE= |
9039 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9040 | cat >> confdefs.h <<\EOF |
9041 | #define wxUSE_REGEX 1 | |
9042 | EOF | |
9043 | ||
9044 | ||
9045 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9046 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9047 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
3f345b47 | 9048 | echo "configure:9049: checking for regex.h" >&5 |
18dbb1f6 VZ |
9049 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9051 | else | |
9052 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9053 | #line 9054 "configure" |
18dbb1f6 VZ |
9054 | #include "confdefs.h" |
9055 | #include <regex.h> | |
9056 | EOF | |
9057 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9058 | { (eval echo configure:9059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9059 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9060 | if test -z "$ac_err"; then | |
9061 | rm -rf conftest* | |
9062 | eval "ac_cv_header_$ac_safe=yes" | |
9063 | else | |
9064 | echo "$ac_err" >&5 | |
9065 | echo "configure: failed program was:" >&5 | |
9066 | cat conftest.$ac_ext >&5 | |
9067 | rm -rf conftest* | |
9068 | eval "ac_cv_header_$ac_safe=no" | |
9069 | fi | |
9070 | rm -f conftest* | |
9071 | fi | |
9072 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9073 | echo "$ac_t""yes" 1>&6 | |
9074 | for ac_func in regcomp | |
9075 | do | |
9076 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 9077 | echo "configure:9078: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9078 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9080 | else | |
9081 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9082 | #line 9083 "configure" |
18dbb1f6 VZ |
9083 | #include "confdefs.h" |
9084 | /* System header to define __stub macros and hopefully few prototypes, | |
9085 | which can conflict with char $ac_func(); below. */ | |
9086 | #include <assert.h> | |
9087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9088 | /* We use char because int might match the return type of a gcc2 | |
9089 | builtin and then its argument prototype would still apply. */ | |
9090 | char $ac_func(); | |
9091 | ||
9092 | int main() { | |
9093 | ||
9094 | /* The GNU C library defines this for functions which it implements | |
9095 | to always fail with ENOSYS. Some functions are actually named | |
9096 | something starting with __ and the normal name is an alias. */ | |
9097 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9098 | choke me | |
9099 | #else | |
9100 | $ac_func(); | |
9101 | #endif | |
9102 | ||
9103 | ; return 0; } | |
9104 | EOF | |
3f345b47 | 9105 | if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9106 | rm -rf conftest* |
9107 | eval "ac_cv_func_$ac_func=yes" | |
9108 | else | |
9109 | echo "configure: failed program was:" >&5 | |
9110 | cat conftest.$ac_ext >&5 | |
9111 | rm -rf conftest* | |
9112 | eval "ac_cv_func_$ac_func=no" | |
9113 | fi | |
9114 | rm -f conftest* | |
9115 | fi | |
9116 | ||
9117 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9118 | echo "$ac_t""yes" 1>&6 | |
9119 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9120 | cat >> confdefs.h <<EOF | |
9121 | #define $ac_tr_func 1 | |
9122 | EOF | |
9123 | ||
9124 | else | |
9125 | echo "$ac_t""no" 1>&6 | |
9126 | fi | |
9127 | done | |
9128 | ||
9129 | else | |
9130 | echo "$ac_t""no" 1>&6 | |
9131 | fi | |
9132 | ||
9133 | ||
4f14bcd8 GD |
9134 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9135 | if test "$wxUSE_REGEX" = "sys" ; then | |
9136 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9137 | else | |
a3df447d | 9138 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9139 | wxUSE_REGEX=builtin |
9140 | fi | |
9141 | else | |
9142 | wxUSE_REGEX=sys | |
18dbb1f6 | 9143 | fi |
18dbb1f6 VZ |
9144 | fi |
9145 | ||
4f14bcd8 GD |
9146 | if test "$wxUSE_REGEX" = "builtin" ; then |
9147 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9148 | fi | |
18dbb1f6 VZ |
9149 | fi |
9150 | ||
9151 | ||
4f14bcd8 GD |
9152 | ZLIB_INCLUDE= |
9153 | ZLIB_LINK= | |
9154 | if test "$wxUSE_ZLIB" != "no" ; then | |
9155 | cat >> confdefs.h <<\EOF | |
9156 | #define wxUSE_ZLIB 1 | |
9157 | EOF | |
dad6c0ea | 9158 | |
10f2d63a | 9159 | |
4f14bcd8 GD |
9160 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9161 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9162 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
3f345b47 | 9163 | echo "configure:9164: checking for zlib.h" >&5 |
3a922bb4 RL |
9164 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9166 | else | |
9167 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9168 | #line 9169 "configure" |
3a922bb4 | 9169 | #include "confdefs.h" |
4f14bcd8 | 9170 | #include <zlib.h> |
3a922bb4 RL |
9171 | EOF |
9172 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9173 | { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9174 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9175 | if test -z "$ac_err"; then | |
9176 | rm -rf conftest* | |
9177 | eval "ac_cv_header_$ac_safe=yes" | |
9178 | else | |
9179 | echo "$ac_err" >&5 | |
9180 | echo "configure: failed program was:" >&5 | |
9181 | cat conftest.$ac_ext >&5 | |
9182 | rm -rf conftest* | |
9183 | eval "ac_cv_header_$ac_safe=no" | |
9184 | fi | |
9185 | rm -f conftest* | |
9186 | fi | |
9187 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9188 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9189 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
3f345b47 | 9190 | echo "configure:9191: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9191 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9192 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9194 | else | |
9195 | ac_save_LIBS="$LIBS" | |
9196 | LIBS="-lz $LIBS" | |
9197 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9198 | #line 9199 "configure" |
4f14bcd8 GD |
9199 | #include "confdefs.h" |
9200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9201 | /* We use char because int might match the return type of a gcc2 | |
9202 | builtin and then its argument prototype would still apply. */ | |
9203 | char deflate(); | |
9204 | ||
9205 | int main() { | |
9206 | deflate() | |
9207 | ; return 0; } | |
3a922bb4 | 9208 | EOF |
3f345b47 | 9209 | if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9210 | rm -rf conftest* |
9211 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9212 | else | |
9213 | echo "configure: failed program was:" >&5 | |
9214 | cat conftest.$ac_ext >&5 | |
9215 | rm -rf conftest* | |
9216 | eval "ac_cv_lib_$ac_lib_var=no" | |
9217 | fi | |
9218 | rm -f conftest* | |
9219 | LIBS="$ac_save_LIBS" | |
9220 | ||
9221 | fi | |
9222 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9223 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9224 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9225 | else |
9226 | echo "$ac_t""no" 1>&6 | |
9227 | fi | |
10f2d63a | 9228 | |
4f14bcd8 GD |
9229 | else |
9230 | echo "$ac_t""no" 1>&6 | |
9231 | fi | |
9232 | ||
9233 | ||
9234 | if test "x$ZLIB_LINK" = "x" ; then | |
9235 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9236 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9237 | else | |
a3df447d | 9238 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9239 | wxUSE_ZLIB=builtin |
9240 | fi | |
9241 | else | |
9242 | wxUSE_ZLIB=sys | |
9243 | fi | |
9244 | fi | |
9245 | ||
9246 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9247 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9248 | fi | |
9249 | fi | |
9250 | ||
9251 | ||
9252 | PNG_INCLUDE= | |
9253 | PNG_LINK= | |
9254 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9255 | cat >> confdefs.h <<\EOF | |
9256 | #define wxUSE_LIBPNG 1 | |
9257 | EOF | |
9258 | ||
9259 | ||
9260 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9261 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9262 | wxUSE_LIBPNG=builtin |
9263 | fi | |
9264 | ||
9265 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9266 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9267 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
3f345b47 | 9268 | echo "configure:9269: checking for png.h" >&5 |
d4158b5d VS |
9269 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9271 | else | |
9272 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9273 | #line 9274 "configure" |
d4158b5d | 9274 | #include "confdefs.h" |
4f14bcd8 | 9275 | #include <png.h> |
d4158b5d VS |
9276 | EOF |
9277 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9278 | { (eval echo configure:9279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9279 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9280 | if test -z "$ac_err"; then | |
9281 | rm -rf conftest* | |
9282 | eval "ac_cv_header_$ac_safe=yes" | |
9283 | else | |
9284 | echo "$ac_err" >&5 | |
9285 | echo "configure: failed program was:" >&5 | |
9286 | cat conftest.$ac_ext >&5 | |
9287 | rm -rf conftest* | |
9288 | eval "ac_cv_header_$ac_safe=no" | |
9289 | fi | |
9290 | rm -f conftest* | |
9291 | fi | |
9292 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9293 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9294 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
3f345b47 | 9295 | echo "configure:9296: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9296 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9297 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9298 | echo $ac_n "(cached) $ac_c" 1>&6 |
9299 | else | |
4f14bcd8 GD |
9300 | ac_save_LIBS="$LIBS" |
9301 | LIBS="-lpng -lz -lm $LIBS" | |
9302 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9303 | #line 9304 "configure" |
3a922bb4 | 9304 | #include "confdefs.h" |
4f14bcd8 GD |
9305 | /* Override any gcc2 internal prototype to avoid an error. */ |
9306 | /* We use char because int might match the return type of a gcc2 | |
9307 | builtin and then its argument prototype would still apply. */ | |
9308 | char png_check_sig(); | |
f6bcfd97 | 9309 | |
4f14bcd8 GD |
9310 | int main() { |
9311 | png_check_sig() | |
3a922bb4 RL |
9312 | ; return 0; } |
9313 | EOF | |
3f345b47 | 9314 | if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9315 | rm -rf conftest* |
4f14bcd8 | 9316 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9317 | else |
9318 | echo "configure: failed program was:" >&5 | |
9319 | cat conftest.$ac_ext >&5 | |
9320 | rm -rf conftest* | |
4f14bcd8 | 9321 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9322 | fi |
9323 | rm -f conftest* | |
4f14bcd8 | 9324 | LIBS="$ac_save_LIBS" |
10f2d63a | 9325 | |
4f14bcd8 GD |
9326 | fi |
9327 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9328 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9329 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9330 | else |
9331 | echo "$ac_t""no" 1>&6 | |
9332 | fi | |
32832908 | 9333 | |
4f14bcd8 GD |
9334 | |
9335 | else | |
9336 | echo "$ac_t""no" 1>&6 | |
9337 | fi | |
3a922bb4 | 9338 | |
7b7a7637 | 9339 | |
4f14bcd8 GD |
9340 | if test "x$PNG_LINK" = "x" ; then |
9341 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9342 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9343 | else | |
a3df447d | 9344 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9345 | wxUSE_LIBPNG=builtin |
9346 | fi | |
9347 | else | |
9348 | wxUSE_LIBPNG=yes | |
9349 | fi | |
3a922bb4 RL |
9350 | fi |
9351 | ||
4f14bcd8 GD |
9352 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9353 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9354 | fi |
9355 | ||
4f14bcd8 | 9356 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9357 | fi |
9358 | ||
32832908 | 9359 | |
4f14bcd8 GD |
9360 | JPEG_INCLUDE= |
9361 | JPEG_LINK= | |
9362 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9363 | cat >> confdefs.h <<\EOF | |
9364 | #define wxUSE_LIBJPEG 1 | |
9365 | EOF | |
10f2d63a | 9366 | |
8168de4c | 9367 | |
4f14bcd8 GD |
9368 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9369 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
3f345b47 | 9370 | echo "configure:9371: checking for jpeglib.h" >&5 |
4f14bcd8 | 9371 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9372 | echo $ac_n "(cached) $ac_c" 1>&6 |
9373 | else | |
4f14bcd8 | 9374 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 9375 | #line 9376 "configure" |
4f14bcd8 | 9376 | #include "confdefs.h" |
8168de4c | 9377 | |
4f14bcd8 GD |
9378 | #undef HAVE_STDLIB_H |
9379 | #include <stdio.h> | |
9380 | #include <jpeglib.h> | |
9381 | ||
9382 | int main() { | |
9383 | ||
9384 | ||
9385 | ; return 0; } | |
9386 | EOF | |
3f345b47 | 9387 | if { (eval echo configure:9388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9388 | rm -rf conftest* |
9389 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9390 | else |
4f14bcd8 GD |
9391 | echo "configure: failed program was:" >&5 |
9392 | cat conftest.$ac_ext >&5 | |
9393 | rm -rf conftest* | |
9394 | ac_cv_header_jpeglib_h=no | |
9395 | ||
9396 | fi | |
9397 | rm -f conftest* | |
9398 | ||
698dcdb6 | 9399 | fi |
6f72b082 | 9400 | |
4f14bcd8 GD |
9401 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9402 | ||
9403 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9404 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
3f345b47 | 9405 | echo "configure:9406: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9406 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9407 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9409 | else |
4f14bcd8 GD |
9410 | ac_save_LIBS="$LIBS" |
9411 | LIBS="-ljpeg $LIBS" | |
9412 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9413 | #line 9414 "configure" |
4f14bcd8 GD |
9414 | #include "confdefs.h" |
9415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9416 | /* We use char because int might match the return type of a gcc2 | |
9417 | builtin and then its argument prototype would still apply. */ | |
9418 | char jpeg_read_header(); | |
698dcdb6 | 9419 | |
4f14bcd8 GD |
9420 | int main() { |
9421 | jpeg_read_header() | |
9422 | ; return 0; } | |
9423 | EOF | |
3f345b47 | 9424 | if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9425 | rm -rf conftest* |
9426 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9427 | else |
4f14bcd8 GD |
9428 | echo "configure: failed program was:" >&5 |
9429 | cat conftest.$ac_ext >&5 | |
9430 | rm -rf conftest* | |
9431 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9432 | fi |
4f14bcd8 GD |
9433 | rm -f conftest* |
9434 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9435 | |
4f14bcd8 GD |
9436 | fi |
9437 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9438 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9439 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
9440 | else |
9441 | echo "$ac_t""no" 1>&6 | |
9442 | fi | |
9443 | ||
9444 | fi | |
9445 | ||
9446 | if test "x$JPEG_LINK" = "x" ; then | |
9447 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9448 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9449 | else | |
a3df447d | 9450 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9451 | wxUSE_LIBJPEG=builtin |
9452 | fi | |
9453 | else | |
9454 | wxUSE_LIBJPEG=sys | |
9455 | fi | |
9456 | fi | |
9457 | ||
9458 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9459 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9460 | fi | |
9461 | fi | |
9462 | ||
9463 | ||
9464 | TIFF_INCLUDE= | |
9465 | TIFF_LINK= | |
9466 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9467 | cat >> confdefs.h <<\EOF | |
9468 | #define wxUSE_LIBTIFF 1 | |
9469 | EOF | |
9470 | ||
9471 | ||
9472 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9473 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9474 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
3f345b47 | 9475 | echo "configure:9476: checking for tiffio.h" >&5 |
4f14bcd8 GD |
9476 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9478 | else | |
9479 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9480 | #line 9481 "configure" |
4f14bcd8 GD |
9481 | #include "confdefs.h" |
9482 | #include <tiffio.h> | |
9483 | EOF | |
9484 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9485 | { (eval echo configure:9486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9486 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9487 | if test -z "$ac_err"; then | |
9488 | rm -rf conftest* | |
9489 | eval "ac_cv_header_$ac_safe=yes" | |
9490 | else | |
9491 | echo "$ac_err" >&5 | |
9492 | echo "configure: failed program was:" >&5 | |
9493 | cat conftest.$ac_ext >&5 | |
9494 | rm -rf conftest* | |
9495 | eval "ac_cv_header_$ac_safe=no" | |
9496 | fi | |
9497 | rm -f conftest* | |
9498 | fi | |
9499 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9500 | echo "$ac_t""yes" 1>&6 | |
9501 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
3f345b47 | 9502 | echo "configure:9503: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
9503 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
9504 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9506 | else | |
9507 | ac_save_LIBS="$LIBS" | |
9508 | LIBS="-ltiff -lm $LIBS" | |
9509 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9510 | #line 9511 "configure" |
4f14bcd8 GD |
9511 | #include "confdefs.h" |
9512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9513 | /* We use char because int might match the return type of a gcc2 | |
9514 | builtin and then its argument prototype would still apply. */ | |
9515 | char TIFFError(); | |
9516 | ||
9517 | int main() { | |
9518 | TIFFError() | |
9519 | ; return 0; } | |
9520 | EOF | |
3f345b47 | 9521 | if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9522 | rm -rf conftest* |
9523 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9524 | else | |
9525 | echo "configure: failed program was:" >&5 | |
9526 | cat conftest.$ac_ext >&5 | |
9527 | rm -rf conftest* | |
9528 | eval "ac_cv_lib_$ac_lib_var=no" | |
9529 | fi | |
9530 | rm -f conftest* | |
9531 | LIBS="$ac_save_LIBS" | |
9532 | ||
9533 | fi | |
9534 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9535 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9536 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
9537 | else |
9538 | echo "$ac_t""no" 1>&6 | |
9539 | fi | |
9540 | ||
9541 | ||
9542 | else | |
9543 | echo "$ac_t""no" 1>&6 | |
9544 | fi | |
9545 | ||
9546 | ||
9547 | if test "x$TIFF_LINK" = "x" ; then | |
9548 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9549 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9550 | else | |
a3df447d | 9551 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9552 | wxUSE_LIBTIFF=builtin |
9553 | fi | |
9554 | else | |
9555 | wxUSE_LIBTIFF=sys | |
9556 | fi | |
9557 | fi | |
9558 | ||
9559 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9560 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9561 | fi | |
9562 | fi | |
9563 | ||
9564 | ||
9565 | FREETYPE_INCLUDE= | |
9566 | FREETYPE_LINK= | |
9567 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9568 | cat >> confdefs.h <<\EOF | |
9569 | #define wxUSE_FREETYPE 1 | |
9570 | EOF | |
9571 | ||
9572 | ||
9573 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9574 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9575 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
3f345b47 | 9576 | echo "configure:9577: checking for freetype.h" >&5 |
4f14bcd8 GD |
9577 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9579 | else | |
9580 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9581 | #line 9582 "configure" |
4f14bcd8 GD |
9582 | #include "confdefs.h" |
9583 | #include <freetype.h> | |
9584 | EOF | |
9585 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9586 | { (eval echo configure:9587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9587 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9588 | if test -z "$ac_err"; then | |
9589 | rm -rf conftest* | |
9590 | eval "ac_cv_header_$ac_safe=yes" | |
9591 | else | |
9592 | echo "$ac_err" >&5 | |
9593 | echo "configure: failed program was:" >&5 | |
9594 | cat conftest.$ac_ext >&5 | |
9595 | rm -rf conftest* | |
9596 | eval "ac_cv_header_$ac_safe=no" | |
9597 | fi | |
9598 | rm -f conftest* | |
9599 | fi | |
9600 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9601 | echo "$ac_t""yes" 1>&6 | |
9602 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
3f345b47 | 9603 | echo "configure:9604: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
9604 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
9605 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9607 | else | |
9608 | ac_save_LIBS="$LIBS" | |
9609 | LIBS="-lfreetype -lm $LIBS" | |
9610 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9611 | #line 9612 "configure" |
4f14bcd8 GD |
9612 | #include "confdefs.h" |
9613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9614 | /* We use char because int might match the return type of a gcc2 | |
9615 | builtin and then its argument prototype would still apply. */ | |
9616 | char FT_Render_Glyph(); | |
9617 | ||
9618 | int main() { | |
9619 | FT_Render_Glyph() | |
9620 | ; return 0; } | |
9621 | EOF | |
3f345b47 | 9622 | if { (eval echo configure:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9623 | rm -rf conftest* |
9624 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9625 | else | |
9626 | echo "configure: failed program was:" >&5 | |
9627 | cat conftest.$ac_ext >&5 | |
9628 | rm -rf conftest* | |
9629 | eval "ac_cv_lib_$ac_lib_var=no" | |
9630 | fi | |
9631 | rm -f conftest* | |
9632 | LIBS="$ac_save_LIBS" | |
9633 | ||
9634 | fi | |
9635 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9636 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9637 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
9638 | else |
9639 | echo "$ac_t""no" 1>&6 | |
9640 | fi | |
9641 | ||
9642 | ||
9643 | else | |
9644 | echo "$ac_t""no" 1>&6 | |
9645 | fi | |
9646 | ||
9647 | ||
9648 | if test "x$FREETYPE_LINK" = "x" ; then | |
9649 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9650 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9651 | else | |
a3df447d | 9652 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9653 | wxUSE_FREETYPE=builtin |
9654 | fi | |
9655 | else | |
9656 | wxUSE_FREETYPE=sys | |
9657 | fi | |
9658 | fi | |
9659 | ||
9660 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9661 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9662 | fi | |
9663 | fi | |
9664 | ||
9665 | ||
9666 | AFMINSTALL= | |
9667 | ||
9668 | TOOLKIT= | |
9669 | TOOLKIT_INCLUDE= | |
9670 | WIDGET_SET= | |
9671 | ||
9672 | if test "$USE_WIN32" = 1 ; then | |
9673 | for ac_hdr in w32api.h | |
9674 | do | |
9675 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9676 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 9677 | echo "configure:9678: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
9678 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9680 | else | |
9681 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9682 | #line 9683 "configure" |
4f14bcd8 GD |
9683 | #include "confdefs.h" |
9684 | #include <$ac_hdr> | |
9685 | EOF | |
9686 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9687 | { (eval echo configure:9688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9688 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9689 | if test -z "$ac_err"; then | |
9690 | rm -rf conftest* | |
9691 | eval "ac_cv_header_$ac_safe=yes" | |
9692 | else | |
9693 | echo "$ac_err" >&5 | |
9694 | echo "configure: failed program was:" >&5 | |
9695 | cat conftest.$ac_ext >&5 | |
9696 | rm -rf conftest* | |
9697 | eval "ac_cv_header_$ac_safe=no" | |
9698 | fi | |
9699 | rm -f conftest* | |
9700 | fi | |
9701 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9702 | echo "$ac_t""yes" 1>&6 | |
9703 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9704 | cat >> confdefs.h <<EOF | |
9705 | #define $ac_tr_hdr 1 | |
9706 | EOF | |
9707 | ||
9708 | else | |
9709 | echo "$ac_t""no" 1>&6 | |
9710 | fi | |
9711 | done | |
9712 | ||
9713 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9714 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
3f345b47 | 9715 | echo "configure:9716: checking for windows.h" >&5 |
4f14bcd8 GD |
9716 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9718 | else | |
9719 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9720 | #line 9721 "configure" |
4f14bcd8 GD |
9721 | #include "confdefs.h" |
9722 | #include <windows.h> | |
9723 | EOF | |
9724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 9725 | { (eval echo configure:9726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9726 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9727 | if test -z "$ac_err"; then | |
9728 | rm -rf conftest* | |
9729 | eval "ac_cv_header_$ac_safe=yes" | |
9730 | else | |
9731 | echo "$ac_err" >&5 | |
9732 | echo "configure: failed program was:" >&5 | |
9733 | cat conftest.$ac_ext >&5 | |
9734 | rm -rf conftest* | |
9735 | eval "ac_cv_header_$ac_safe=no" | |
9736 | fi | |
9737 | rm -f conftest* | |
9738 | fi | |
9739 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9740 | echo "$ac_t""yes" 1>&6 | |
9741 | : | |
9742 | else | |
9743 | echo "$ac_t""no" 1>&6 | |
9744 | ||
9745 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9746 | ||
9747 | fi | |
9748 | ||
9749 | ||
9750 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
3f345b47 | 9751 | echo "configure:9752: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 9752 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
9753 | echo $ac_n "(cached) $ac_c" 1>&6 |
9754 | else | |
9755 | ||
9756 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 9757 | #line 9758 "configure" |
4f14bcd8 GD |
9758 | #include "confdefs.h" |
9759 | #include <w32api.h> | |
9760 | int main() { | |
9761 | ||
9762 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9763 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9764 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9765 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9766 | ||
9767 | #if !wxCHECK_W32API_VERSION(1,1) | |
9768 | #error You need w32api 1.1 or newer | |
9769 | #endif | |
9770 | ||
9771 | ; return 0; } | |
9772 | EOF | |
3f345b47 | 9773 | if { (eval echo configure:9774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9774 | rm -rf conftest* |
9775 | ||
ea7682f0 | 9776 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
9777 | |
9778 | else | |
9779 | echo "configure: failed program was:" >&5 | |
9780 | cat conftest.$ac_ext >&5 | |
9781 | rm -rf conftest* | |
9782 | ||
ea7682f0 | 9783 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
9784 | |
9785 | fi | |
9786 | rm -f conftest* | |
9787 | ||
9788 | fi | |
9789 | ||
ea7682f0 VS |
9790 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
9791 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
9792 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
9793 | fi | |
4f14bcd8 GD |
9794 | |
9795 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9796 | ||
77e13408 RL |
9797 | case "${host}" in |
9798 | *-*-cygwin* ) | |
9799 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9800 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
9801 | esac | |
4f14bcd8 GD |
9802 | |
9803 | if test "$wxUSE_ODBC" = "yes" ; then | |
3d63bc3a | 9804 | LIBS=" -lodbc32 -lole32 -loleaut32$LIBS" |
4f14bcd8 GD |
9805 | fi |
9806 | ||
4f14bcd8 GD |
9807 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
9808 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9809 | fi | |
9810 | ||
9811 | if test "$wxUSE_GUI" = "yes"; then | |
9812 | USE_GUI=1 | |
9813 | ||
9814 | GUI_TK_LIBRARY= | |
9815 | ||
9816 | WXGTK12= | |
9817 | WXGTK127= | |
9818 | WXGTK20= | |
9819 | ||
77e13408 | 9820 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
9821 | TOOLKIT=MSW |
9822 | GUIDIST=MSW_DIST | |
77e13408 RL |
9823 | |
9824 | case "${host}" in | |
9825 | *-*-mingw32* ) | |
3d63bc3a | 9826 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 9827 | esac |
4f14bcd8 GD |
9828 | fi |
9829 | ||
9830 | if test "$wxUSE_GTK" = 1; then | |
9831 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
3f345b47 | 9832 | echo "configure:9833: checking for GTK+ version" >&5 |
4f14bcd8 GD |
9833 | |
9834 | gtk_version_cached=1 | |
9835 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9837 | else | |
9838 | ||
9839 | gtk_version_cached=0 | |
d48ad9bd | 9840 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 9841 | |
3f345b47 VZ |
9842 | GTK_MODULES= |
9843 | if test "$wxUSE_THREADS" = "yes"; then | |
9844 | GTK_MODULES=gthread | |
9845 | fi | |
9846 | ||
4f14bcd8 GD |
9847 | wx_cv_lib_gtk= |
9848 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9849 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9850 | if test "${with_gtk_prefix+set}" = set; then | |
9851 | withval="$with_gtk_prefix" | |
9852 | gtk_config_prefix="$withval" | |
9853 | else | |
9854 | gtk_config_prefix="" | |
9855 | fi | |
9856 | ||
9857 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9858 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9859 | withval="$with_gtk_exec_prefix" | |
9860 | gtk_config_exec_prefix="$withval" | |
9861 | else | |
9862 | gtk_config_exec_prefix="" | |
9863 | fi | |
9864 | ||
9865 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9866 | if test "${enable_gtktest+set}" = set; then | |
9867 | enableval="$enable_gtktest" | |
9868 | : | |
9869 | else | |
9870 | enable_gtktest=yes | |
9871 | fi | |
9872 | ||
9873 | ||
3f345b47 | 9874 | for module in . $GTK_MODULES |
4f14bcd8 | 9875 | do |
6f72b082 | 9876 | case "$module" in |
8168de4c | 9877 | gthread) |
6f72b082 OK |
9878 | gtk_config_args="$gtk_config_args gthread" |
9879 | ;; | |
9880 | esac | |
9881 | done | |
9882 | ||
9883 | if test x$gtk_config_exec_prefix != x ; then | |
9884 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9885 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9886 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9887 | fi | |
9888 | fi | |
9889 | if test x$gtk_config_prefix != x ; then | |
9890 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9891 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9892 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9893 | fi | |
9894 | fi | |
9895 | ||
9896 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9897 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9898 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 9899 | echo "configure:9900: checking for $ac_word" >&5 |
698dcdb6 VZ |
9900 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9902 | else |
698dcdb6 VZ |
9903 | case "$GTK_CONFIG_2_0" in |
9904 | /*) | |
6f72b082 OK |
9905 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9906 | ;; | |
698dcdb6 VZ |
9907 | ?:/*) |
9908 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9909 | ;; | |
6f72b082 | 9910 | *) |
698dcdb6 VZ |
9911 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9912 | ac_dummy="$PATH" | |
9913 | for ac_dir in $ac_dummy; do | |
9914 | test -z "$ac_dir" && ac_dir=. | |
9915 | if test -f $ac_dir/$ac_word; then | |
9916 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9917 | break | |
9918 | fi | |
9919 | done | |
9920 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9921 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9922 | ;; | |
9923 | esac | |
9924 | fi | |
698dcdb6 | 9925 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9926 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9927 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9928 | else |
698dcdb6 | 9929 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9930 | fi |
9931 | ||
9932 | min_gtk_version=1.3.1 | |
698dcdb6 | 9933 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3f345b47 | 9934 | echo "configure:9935: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9935 | no_gtk="" |
9936 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9937 | no_gtk=yes | |
9938 | else | |
9939 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9940 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9941 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9942 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9943 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9944 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9945 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9946 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9947 | if test "x$enable_gtktest" = "xyes" ; then | |
9948 | ac_save_CFLAGS="$CFLAGS" | |
9949 | ac_save_LIBS="$LIBS" | |
9950 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9951 | LIBS="$GTK_LIBS $LIBS" | |
9952 | rm -f conf.gtktest | |
9953 | if test "$cross_compiling" = yes; then | |
9954 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9955 | else | |
698dcdb6 | 9956 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 9957 | #line 9958 "configure" |
6f72b082 OK |
9958 | #include "confdefs.h" |
9959 | ||
9960 | #include <gtk/gtk.h> | |
9961 | #include <stdio.h> | |
9962 | #include <stdlib.h> | |
9963 | ||
8168de4c | 9964 | int |
6f72b082 OK |
9965 | main () |
9966 | { | |
9967 | int major, minor, micro; | |
9968 | char *tmp_version; | |
9969 | ||
9970 | system ("touch conf.gtktest"); | |
9971 | ||
9972 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9973 | tmp_version = g_strdup("$min_gtk_version"); | |
9974 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9975 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9976 | exit(1); | |
9977 | } | |
9978 | ||
9979 | if ((gtk_major_version != $gtk_config_major_version) || | |
9980 | (gtk_minor_version != $gtk_config_minor_version) || | |
9981 | (gtk_micro_version != $gtk_config_micro_version)) | |
9982 | { | |
8168de4c | 9983 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9984 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9985 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9986 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9987 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9988 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9989 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9990 | printf("*** required on your system.\n"); | |
9991 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9992 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9993 | printf("*** before re-running configure\n"); | |
8168de4c | 9994 | } |
6f72b082 OK |
9995 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9996 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9997 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9998 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9999 | { | |
10000 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10001 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10002 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10003 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10004 | } |
10005 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10006 | else | |
10007 | { | |
10008 | if ((gtk_major_version > major) || | |
10009 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10010 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10011 | { | |
10012 | return 0; | |
10013 | } | |
10014 | else | |
10015 | { | |
10016 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10017 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10018 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10019 | major, minor, micro); |
6f72b082 OK |
10020 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10021 | printf("***\n"); | |
10022 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10023 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10024 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10025 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10026 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10027 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10028 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10029 | } | |
10030 | } | |
10031 | return 1; | |
10032 | } | |
10033 | ||
698dcdb6 | 10034 | EOF |
3f345b47 | 10035 | if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10036 | then |
6f72b082 OK |
10037 | : |
10038 | else | |
698dcdb6 VZ |
10039 | echo "configure: failed program was:" >&5 |
10040 | cat conftest.$ac_ext >&5 | |
10041 | rm -fr conftest* | |
10042 | no_gtk=yes | |
6f72b082 | 10043 | fi |
698dcdb6 | 10044 | rm -fr conftest* |
6f72b082 | 10045 | fi |
698dcdb6 | 10046 | |
6f72b082 OK |
10047 | CFLAGS="$ac_save_CFLAGS" |
10048 | LIBS="$ac_save_LIBS" | |
10049 | fi | |
10050 | fi | |
10051 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10052 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10053 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10054 | else |
698dcdb6 | 10055 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10056 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10057 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10058 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10059 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10060 | echo "*** full path to gtk-config-2.0." | |
10061 | else | |
10062 | if test -f conf.gtktest ; then | |
10063 | : | |
10064 | else | |
10065 | echo "*** Could not run GTK test program, checking why..." | |
10066 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10067 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10068 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 10069 | #line 10070 "configure" |
6f72b082 OK |
10070 | #include "confdefs.h" |
10071 | ||
10072 | #include <gtk/gtk.h> | |
10073 | #include <stdio.h> | |
10074 | ||
698dcdb6 VZ |
10075 | int main() { |
10076 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10077 | ; return 0; } | |
10078 | EOF | |
3f345b47 | 10079 | if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10080 | rm -rf conftest* |
6f72b082 OK |
10081 | echo "*** The test program compiled, but did not run. This usually means" |
10082 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10083 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10084 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10085 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10086 | echo "*** is required on your system" | |
8168de4c | 10087 | echo "***" |
6f72b082 OK |
10088 | echo "*** If you have an old version installed, it is best to remove it, although" |
10089 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10090 | echo "***" | |
10091 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10092 | echo "*** came with the system with the command" | |
10093 | echo "***" | |
698dcdb6 | 10094 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10095 | else |
698dcdb6 VZ |
10096 | echo "configure: failed program was:" >&5 |
10097 | cat conftest.$ac_ext >&5 | |
10098 | rm -rf conftest* | |
10099 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10100 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10101 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10102 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10103 | fi |
698dcdb6 | 10104 | rm -f conftest* |
6f72b082 OK |
10105 | CFLAGS="$ac_save_CFLAGS" |
10106 | LIBS="$ac_save_LIBS" | |
10107 | fi | |
10108 | fi | |
10109 | GTK_CFLAGS="" | |
10110 | GTK_LIBS="" | |
3f345b47 | 10111 | : |
8168de4c VZ |
10112 | fi |
10113 | ||
10114 | ||
10115 | rm -f conf.gtktest | |
10116 | ||
10117 | fi | |
10118 | ||
10119 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10120 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10121 | if test "${with_gtk_prefix+set}" = set; then | |
10122 | withval="$with_gtk_prefix" | |
10123 | gtk_config_prefix="$withval" | |
10124 | else | |
10125 | gtk_config_prefix="" | |
10126 | fi | |
10127 | ||
10128 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10129 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10130 | withval="$with_gtk_exec_prefix" | |
10131 | gtk_config_exec_prefix="$withval" | |
10132 | else | |
10133 | gtk_config_exec_prefix="" | |
10134 | fi | |
10135 | ||
10136 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10137 | if test "${enable_gtktest+set}" = set; then | |
10138 | enableval="$enable_gtktest" | |
10139 | : | |
10140 | else | |
10141 | enable_gtktest=yes | |
10142 | fi | |
10143 | ||
10144 | ||
10145 | for module in . $GTK_MODULES | |
10146 | do | |
10147 | case "$module" in | |
10148 | gthread) | |
10149 | gtk_config_args="$gtk_config_args gthread" | |
10150 | ;; | |
10151 | esac | |
10152 | done | |
10153 | ||
10f2d63a VZ |
10154 | if test x$gtk_config_exec_prefix != x ; then |
10155 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10156 | if test x${GTK_CONFIG+set} != xset ; then | |
10157 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10158 | fi | |
10159 | fi | |
10160 | if test x$gtk_config_prefix != x ; then | |
10161 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10162 | if test x${GTK_CONFIG+set} != xset ; then | |
10163 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10164 | fi | |
10165 | fi | |
10166 | ||
10167 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10168 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10169 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 10170 | echo "configure:10171: checking for $ac_word" >&5 |
698dcdb6 VZ |
10171 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10173 | else |
698dcdb6 VZ |
10174 | case "$GTK_CONFIG" in |
10175 | /*) | |
f6bcfd97 BP |
10176 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10177 | ;; | |
698dcdb6 VZ |
10178 | ?:/*) |
10179 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10180 | ;; | |
f6bcfd97 | 10181 | *) |
698dcdb6 VZ |
10182 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10183 | ac_dummy="$PATH" | |
10184 | for ac_dir in $ac_dummy; do | |
10185 | test -z "$ac_dir" && ac_dir=. | |
10186 | if test -f $ac_dir/$ac_word; then | |
10187 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10188 | break | |
10189 | fi | |
10190 | done | |
10191 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10192 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10193 | ;; | |
10194 | esac | |
10195 | fi | |
698dcdb6 | 10196 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10197 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10198 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10199 | else |
698dcdb6 | 10200 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10201 | fi |
10202 | ||
10203 | min_gtk_version=1.2.7 | |
698dcdb6 | 10204 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3f345b47 | 10205 | echo "configure:10206: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10206 | no_gtk="" |
3f345b47 VZ |
10207 | if test "$GTK_CONFIG" = "no" ; then |
10208 | no_gtk=yes | |
10209 | else | |
10210 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10211 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10212 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10213 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10214 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10215 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10216 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10217 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10218 | if test "x$enable_gtktest" = "xyes" ; then | |
10219 | ac_save_CFLAGS="$CFLAGS" | |
10220 | ac_save_LIBS="$LIBS" | |
10221 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10222 | LIBS="$GTK_LIBS $LIBS" | |
10223 | rm -f conf.gtktest | |
10224 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10225 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10226 | else | |
698dcdb6 | 10227 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 10228 | #line 10229 "configure" |
f6bcfd97 BP |
10229 | #include "confdefs.h" |
10230 | ||
10231 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10232 | #include <stdio.h> |
10233 | #include <stdlib.h> | |
10234 | ||
3f345b47 | 10235 | int |
f6bcfd97 BP |
10236 | main () |
10237 | { | |
10238 | int major, minor, micro; | |
3f345b47 | 10239 | char *tmp_version; |
f6bcfd97 | 10240 | |
3f345b47 | 10241 | system ("touch conf.gtktest"); |
f6bcfd97 | 10242 | |
3f345b47 VZ |
10243 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10244 | tmp_version = g_strdup("$min_gtk_version"); | |
10245 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10246 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10247 | exit(1); |
10248 | } | |
10249 | ||
3f345b47 VZ |
10250 | if ((gtk_major_version != $gtk_config_major_version) || |
10251 | (gtk_minor_version != $gtk_config_minor_version) || | |
10252 | (gtk_micro_version != $gtk_config_micro_version)) | |
10253 | { | |
10254 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10255 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10256 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10257 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10258 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10259 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10260 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10261 | printf("*** required on your system.\n"); | |
10262 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10263 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10264 | printf("*** before re-running configure\n"); | |
10265 | } | |
10266 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10267 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10268 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10269 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10270 | { | |
10271 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10272 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10273 | printf("*** library (version %d.%d.%d)\n", | |
10274 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10275 | } | |
10276 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10277 | else | |
10278 | { | |
10279 | if ((gtk_major_version > major) || | |
10280 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10281 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10282 | { | |
10283 | return 0; | |
10284 | } | |
10285 | else | |
10286 | { | |
10287 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10288 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10289 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10290 | major, minor, micro); | |
10291 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10292 | printf("***\n"); | |
10293 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10294 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10295 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10296 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10297 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10298 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10299 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10300 | } | |
10301 | } | |
10302 | return 1; | |
f6bcfd97 BP |
10303 | } |
10304 | ||
698dcdb6 | 10305 | EOF |
3f345b47 | 10306 | if { (eval echo configure:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10307 | then |
f6bcfd97 BP |
10308 | : |
10309 | else | |
698dcdb6 VZ |
10310 | echo "configure: failed program was:" >&5 |
10311 | cat conftest.$ac_ext >&5 | |
10312 | rm -fr conftest* | |
10313 | no_gtk=yes | |
f6bcfd97 | 10314 | fi |
698dcdb6 | 10315 | rm -fr conftest* |
f6bcfd97 | 10316 | fi |
698dcdb6 | 10317 | |
3f345b47 VZ |
10318 | CFLAGS="$ac_save_CFLAGS" |
10319 | LIBS="$ac_save_LIBS" | |
10320 | fi | |
f6bcfd97 BP |
10321 | fi |
10322 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10323 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10324 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10325 | else |
698dcdb6 | 10326 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10327 | if test "$GTK_CONFIG" = "no" ; then |
10328 | echo "*** The gtk-config script installed by GTK could not be found" | |
10329 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10330 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10331 | echo "*** full path to gtk-config." | |
10332 | else | |
10333 | if test -f conf.gtktest ; then | |
10334 | : | |
10335 | else | |
10336 | echo "*** Could not run GTK test program, checking why..." | |
10337 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10338 | LIBS="$LIBS $GTK_LIBS" | |
10339 | cat > conftest.$ac_ext <<EOF | |
10340 | #line 10341 "configure" | |
10341 | #include "confdefs.h" | |
10342 | ||
10343 | #include <gtk/gtk.h> | |
10344 | #include <stdio.h> | |
10345 | ||
10346 | int main() { | |
10347 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10348 | ; return 0; } | |
10349 | EOF | |
10350 | if { (eval echo configure:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10351 | rm -rf conftest* | |
10352 | echo "*** The test program compiled, but did not run. This usually means" | |
10353 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10354 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10355 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10356 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10357 | echo "*** is required on your system" | |
10358 | echo "***" | |
10359 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10360 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10361 | echo "***" | |
10362 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10363 | echo "*** came with the system with the command" | |
10364 | echo "***" | |
10365 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10366 | else | |
10367 | echo "configure: failed program was:" >&5 | |
10368 | cat conftest.$ac_ext >&5 | |
10369 | rm -rf conftest* | |
10370 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10371 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10372 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10373 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10374 | fi | |
10375 | rm -f conftest* | |
10376 | CFLAGS="$ac_save_CFLAGS" | |
10377 | LIBS="$ac_save_LIBS" | |
10378 | fi | |
10379 | fi | |
f6bcfd97 BP |
10380 | GTK_CFLAGS="" |
10381 | GTK_LIBS="" | |
10382 | : | |
10383 | fi | |
698dcdb6 VZ |
10384 | |
10385 | ||
3f345b47 | 10386 | rm -f conf.gtktest |
f6bcfd97 | 10387 | |
8168de4c VZ |
10388 | fi |
10389 | ||
10390 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10391 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10392 | if test "${with_gtk_prefix+set}" = set; then | |
10393 | withval="$with_gtk_prefix" | |
10394 | gtk_config_prefix="$withval" | |
10395 | else | |
10396 | gtk_config_prefix="" | |
10397 | fi | |
10398 | ||
10399 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10400 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10401 | withval="$with_gtk_exec_prefix" | |
10402 | gtk_config_exec_prefix="$withval" | |
10403 | else | |
10404 | gtk_config_exec_prefix="" | |
10405 | fi | |
10406 | ||
10407 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10408 | if test "${enable_gtktest+set}" = set; then | |
10409 | enableval="$enable_gtktest" | |
10410 | : | |
10411 | else | |
10412 | enable_gtktest=yes | |
10413 | fi | |
10414 | ||
10415 | ||
10416 | for module in . $GTK_MODULES | |
10417 | do | |
10418 | case "$module" in | |
10419 | gthread) | |
10420 | gtk_config_args="$gtk_config_args gthread" | |
10421 | ;; | |
10422 | esac | |
10423 | done | |
10424 | ||
f6bcfd97 BP |
10425 | if test x$gtk_config_exec_prefix != x ; then |
10426 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10427 | if test x${GTK_CONFIG+set} != xset ; then | |
10428 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10429 | fi | |
10430 | fi | |
10431 | if test x$gtk_config_prefix != x ; then | |
10432 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10433 | if test x${GTK_CONFIG+set} != xset ; then | |
10434 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10435 | fi | |
10436 | fi | |
10437 | ||
10438 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10439 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10440 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 10441 | echo "configure:10442: checking for $ac_word" >&5 |
698dcdb6 VZ |
10442 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10443 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10444 | else |
698dcdb6 VZ |
10445 | case "$GTK_CONFIG" in |
10446 | /*) | |
10f2d63a VZ |
10447 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10448 | ;; | |
698dcdb6 VZ |
10449 | ?:/*) |
10450 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10451 | ;; | |
10f2d63a | 10452 | *) |
698dcdb6 VZ |
10453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10454 | ac_dummy="$PATH" | |
10455 | for ac_dir in $ac_dummy; do | |
10456 | test -z "$ac_dir" && ac_dir=. | |
10457 | if test -f $ac_dir/$ac_word; then | |
10458 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10459 | break | |
10460 | fi | |
10461 | done | |
10462 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10463 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10464 | ;; | |
10465 | esac | |
10466 | fi | |
698dcdb6 | 10467 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10468 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10469 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10470 | else |
698dcdb6 | 10471 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10472 | fi |
10473 | ||
04165bec | 10474 | min_gtk_version=1.2.3 |
698dcdb6 | 10475 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3f345b47 | 10476 | echo "configure:10477: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 10477 | no_gtk="" |
3f345b47 VZ |
10478 | if test "$GTK_CONFIG" = "no" ; then |
10479 | no_gtk=yes | |
10480 | else | |
10481 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10482 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10483 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10484 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10485 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10486 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10487 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10488 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10489 | if test "x$enable_gtktest" = "xyes" ; then | |
10490 | ac_save_CFLAGS="$CFLAGS" | |
10491 | ac_save_LIBS="$LIBS" | |
10492 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10493 | LIBS="$GTK_LIBS $LIBS" | |
10494 | rm -f conf.gtktest | |
10495 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
10496 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10497 | else | |
698dcdb6 | 10498 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 10499 | #line 10500 "configure" |
10f2d63a VZ |
10500 | #include "confdefs.h" |
10501 | ||
10502 | #include <gtk/gtk.h> | |
10503 | #include <stdio.h> | |
32832908 | 10504 | #include <stdlib.h> |
10f2d63a | 10505 | |
3f345b47 | 10506 | int |
10f2d63a VZ |
10507 | main () |
10508 | { | |
10509 | int major, minor, micro; | |
3f345b47 | 10510 | char *tmp_version; |
10f2d63a | 10511 | |
3f345b47 | 10512 | system ("touch conf.gtktest"); |
10f2d63a | 10513 | |
3f345b47 VZ |
10514 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10515 | tmp_version = g_strdup("$min_gtk_version"); | |
10516 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10517 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
10518 | exit(1); |
10519 | } | |
10520 | ||
3f345b47 VZ |
10521 | if ((gtk_major_version != $gtk_config_major_version) || |
10522 | (gtk_minor_version != $gtk_config_minor_version) || | |
10523 | (gtk_micro_version != $gtk_config_micro_version)) | |
10524 | { | |
10525 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10526 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10527 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10528 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10529 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10530 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10531 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10532 | printf("*** required on your system.\n"); | |
10533 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10534 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10535 | printf("*** before re-running configure\n"); | |
10536 | } | |
10537 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10538 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10539 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10540 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10541 | { | |
10542 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10543 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10544 | printf("*** library (version %d.%d.%d)\n", | |
10545 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10546 | } | |
10547 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10548 | else | |
10549 | { | |
10550 | if ((gtk_major_version > major) || | |
10551 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10552 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10553 | { | |
10554 | return 0; | |
10555 | } | |
10556 | else | |
10557 | { | |
10558 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10559 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10560 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10561 | major, minor, micro); | |
10562 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10563 | printf("***\n"); | |
10564 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10565 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10566 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10567 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10568 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10569 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10570 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10571 | } | |
10572 | } | |
10573 | return 1; | |
10f2d63a VZ |
10574 | } |
10575 | ||
698dcdb6 | 10576 | EOF |
3f345b47 | 10577 | if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10578 | then |
10f2d63a VZ |
10579 | : |
10580 | else | |
698dcdb6 VZ |
10581 | echo "configure: failed program was:" >&5 |
10582 | cat conftest.$ac_ext >&5 | |
10583 | rm -fr conftest* | |
10584 | no_gtk=yes | |
10f2d63a | 10585 | fi |
698dcdb6 | 10586 | rm -fr conftest* |
10f2d63a | 10587 | fi |
698dcdb6 | 10588 | |
3f345b47 VZ |
10589 | CFLAGS="$ac_save_CFLAGS" |
10590 | LIBS="$ac_save_LIBS" | |
10591 | fi | |
10f2d63a VZ |
10592 | fi |
10593 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10594 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10595 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10596 | else |
698dcdb6 | 10597 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10598 | if test "$GTK_CONFIG" = "no" ; then |
10599 | echo "*** The gtk-config script installed by GTK could not be found" | |
10600 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10601 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10602 | echo "*** full path to gtk-config." | |
10603 | else | |
10604 | if test -f conf.gtktest ; then | |
10605 | : | |
10606 | else | |
10607 | echo "*** Could not run GTK test program, checking why..." | |
10608 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10609 | LIBS="$LIBS $GTK_LIBS" | |
10610 | cat > conftest.$ac_ext <<EOF | |
10611 | #line 10612 "configure" | |
10612 | #include "confdefs.h" | |
10613 | ||
10614 | #include <gtk/gtk.h> | |
10615 | #include <stdio.h> | |
10616 | ||
10617 | int main() { | |
10618 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10619 | ; return 0; } | |
10620 | EOF | |
10621 | if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10622 | rm -rf conftest* | |
10623 | echo "*** The test program compiled, but did not run. This usually means" | |
10624 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10625 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10626 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10627 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10628 | echo "*** is required on your system" | |
10629 | echo "***" | |
10630 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10631 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10632 | echo "***" | |
10633 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10634 | echo "*** came with the system with the command" | |
10635 | echo "***" | |
10636 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10637 | else | |
10638 | echo "configure: failed program was:" >&5 | |
10639 | cat conftest.$ac_ext >&5 | |
10640 | rm -rf conftest* | |
10641 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10642 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10643 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10644 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10645 | fi | |
10646 | rm -f conftest* | |
10647 | CFLAGS="$ac_save_CFLAGS" | |
10648 | LIBS="$ac_save_LIBS" | |
10649 | fi | |
10650 | fi | |
10f2d63a VZ |
10651 | GTK_CFLAGS="" |
10652 | GTK_LIBS="" | |
7e99ad86 | 10653 | : |
10f2d63a | 10654 | fi |
698dcdb6 VZ |
10655 | |
10656 | ||
3f345b47 | 10657 | rm -f conf.gtktest |
10f2d63a | 10658 | |
8168de4c VZ |
10659 | fi |
10660 | ||
10661 | if test -z "$wx_cv_lib_gtk"; then | |
10662 | wx_cv_lib_gtk=none | |
138be253 VZ |
10663 | else |
10664 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10665 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10666 | fi |
10667 | ||
1e6feb95 | 10668 | |
8168de4c | 10669 | fi |
703e0a69 | 10670 | |
698dcdb6 | 10671 | |
8168de4c VZ |
10672 | if test "$gtk_version_cached" = 1; then |
10673 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10674 | fi |
698dcdb6 | 10675 | |
8168de4c VZ |
10676 | case "$wx_cv_lib_gtk" in |
10677 | 2.0) WXGTK20=1 | |
10678 | ;; | |
10679 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10680 | WXGTK12=1 |
8168de4c VZ |
10681 | ;; |
10682 | 1.2.3) WXGTK12=1 | |
10683 | ;; | |
10684 | *) { echo "configure: error: | |
10685 | Please check that gtk-config is in path, the directory | |
10686 | where GTK+ libraries are installed (returned by | |
10687 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10688 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10689 | " 1>&2; exit 1; } | |
10690 | ;; | |
10691 | esac | |
2224580a | 10692 | |
138be253 | 10693 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10694 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10695 | |
1e6feb95 VZ |
10696 | AFMINSTALL=afminstall |
10697 | TOOLKIT=GTK | |
10698 | GUIDIST=GTK_DIST | |
7ec2881a | 10699 | |
1e6feb95 | 10700 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
3f345b47 | 10701 | echo "configure:10702: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10702 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10703 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10705 | else |
698dcdb6 | 10706 | ac_save_LIBS="$LIBS" |
7ec2881a | 10707 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10708 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 10709 | #line 10710 "configure" |
7ec2881a RR |
10710 | #include "confdefs.h" |
10711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10712 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10713 | builtin and then its argument prototype would still apply. */ |
10714 | char gdk_im_open(); | |
10715 | ||
10716 | int main() { | |
10717 | gdk_im_open() | |
10718 | ; return 0; } | |
10719 | EOF | |
3f345b47 | 10720 | if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10721 | rm -rf conftest* |
10722 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10723 | else | |
10724 | echo "configure: failed program was:" >&5 | |
10725 | cat conftest.$ac_ext >&5 | |
10726 | rm -rf conftest* | |
10727 | eval "ac_cv_lib_$ac_lib_var=no" | |
10728 | fi | |
10729 | rm -f conftest* | |
10730 | LIBS="$ac_save_LIBS" | |
10731 | ||
10732 | fi | |
10733 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10734 | echo "$ac_t""yes" 1>&6 | |
10735 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10736 | #define HAVE_XIM 1 |
10737 | EOF | |
10738 | ||
698dcdb6 VZ |
10739 | else |
10740 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10741 | fi |
10742 | ||
1e6feb95 | 10743 | fi |
10f2d63a | 10744 | |
1e6feb95 VZ |
10745 | if test "$wxUSE_MGL" = 1; then |
10746 | ||
10747 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
3f345b47 | 10748 | echo "configure:10749: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10749 | if test "x$MGL_ROOT" = x ; then |
10750 | echo "$ac_t""not found" 1>&6 | |
10751 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10752 | else | |
10753 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10754 | fi | |
10755 | ||
3a922bb4 RL |
10756 | mgl_os=linux/gcc/glibc |
10757 | mgl_lib_type="" | |
1e6feb95 VZ |
10758 | |
10759 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
10760 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
10761 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 10762 | mgl_lib_type=debug |
1e6feb95 VZ |
10763 | fi |
10764 | fi | |
3a922bb4 | 10765 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
10766 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
10767 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 10768 | mgl_lib_type=release |
1e6feb95 VZ |
10769 | else |
10770 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10771 | fi | |
10772 | fi | |
10773 | ||
10774 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 10775 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
10776 | |
10777 | AFMINSTALL=afminstall | |
10778 | TOOLKIT=MGL | |
10779 | GUIDIST=MGL_DIST | |
10780 | fi | |
10781 | ||
10782 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
10783 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
10784 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
3f345b47 | 10785 | echo "configure:10786: checking for windows.h" >&5 |
3a922bb4 RL |
10786 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10788 | else | |
10789 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 10790 | #line 10791 "configure" |
3a922bb4 RL |
10791 | #include "confdefs.h" |
10792 | #include <windows.h> | |
10793 | EOF | |
10794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 10795 | { (eval echo configure:10796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10797 | if test -z "$ac_err"; then | |
10798 | rm -rf conftest* | |
10799 | eval "ac_cv_header_$ac_safe=yes" | |
10800 | else | |
10801 | echo "$ac_err" >&5 | |
10802 | echo "configure: failed program was:" >&5 | |
10803 | cat conftest.$ac_ext >&5 | |
10804 | rm -rf conftest* | |
10805 | eval "ac_cv_header_$ac_safe=no" | |
10806 | fi | |
10807 | rm -f conftest* | |
10808 | fi | |
10809 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10810 | echo "$ac_t""yes" 1>&6 | |
10811 | : | |
10812 | else | |
10813 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 10814 | |
1e6feb95 | 10815 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
10816 | |
10817 | fi | |
10818 | ||
10f2d63a | 10819 | |
3d63bc3a | 10820 | xpm_link= |
1e6feb95 | 10821 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
3f345b47 | 10822 | echo "configure:10823: checking for Xpm library" >&5 |
1e6feb95 | 10823 | |
10f2d63a VZ |
10824 | ac_find_libraries= |
10825 | for ac_dir in $SEARCH_LIB; | |
10826 | do | |
f11bdd03 | 10827 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10828 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10829 | ac_find_libraries=$ac_dir | |
10830 | break 2 | |
10831 | fi | |
10832 | done | |
10833 | done | |
10834 | ||
1e6feb95 VZ |
10835 | if test "$ac_find_libraries" != "" ; then |
10836 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 10837 | xpm_link=" -lXpm" |
1e6feb95 | 10838 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10839 | #define wxHAVE_LIB_XPM 1 |
10840 | EOF | |
10841 | ||
1e6feb95 VZ |
10842 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10843 | else | |
10844 | echo "$ac_t""no" 1>&6 | |
10845 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10846 | fi | |
10f2d63a | 10847 | |
3d63bc3a | 10848 | mesa_link= |
1e6feb95 | 10849 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
3f345b47 | 10850 | echo "configure:10851: checking for Mesa library" >&5 |
1e6feb95 | 10851 | |
10f2d63a VZ |
10852 | ac_find_libraries= |
10853 | for ac_dir in $SEARCH_LIB; | |
10854 | do | |
f11bdd03 | 10855 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10856 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
10857 | ac_find_libraries=$ac_dir | |
10858 | break 2 | |
10859 | fi | |
10860 | done | |
10861 | done | |
10862 | ||
1e6feb95 VZ |
10863 | if test "$ac_find_libraries" != "" ; then |
10864 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 10865 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
10866 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10867 | else | |
10868 | { echo "configure: error: no" 1>&2; exit 1; } | |
10869 | fi | |
10f2d63a | 10870 | |
3d63bc3a | 10871 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
10872 | TOOLKIT=MSW |
10873 | GUIDIST=MSW_DIST | |
3a922bb4 | 10874 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 10875 | fi |
698dcdb6 | 10876 | |
d714471b VZ |
10877 | if test "$wxUSE_MOTIF" = 1; then |
10878 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
10879 | # paths, otherwise set no_x=yes. |
10880 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10881 | # --without-x overrides everything else, but does not touch the cache. | |
10882 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
3f345b47 | 10883 | echo "configure:10884: checking for X" >&5 |
ab9b9eab VZ |
10884 | |
10885 | # Check whether --with-x or --without-x was given. | |
10886 | if test "${with_x+set}" = set; then | |
10887 | withval="$with_x" | |
698dcdb6 VZ |
10888 | : |
10889 | fi | |
ba337fe7 | 10890 | |
ab9b9eab VZ |
10891 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10892 | if test "x$with_x" = xno; then | |
10893 | # The user explicitly disabled X. | |
10894 | have_x=disabled | |
10895 | else | |
10896 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10897 | # Both variables are already set. | |
10898 | have_x=yes | |
10899 | else | |
698dcdb6 VZ |
10900 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
10901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
10902 | else |
10903 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
10904 | ac_x_includes=NO ac_x_libraries=NO |
10905 | rm -fr conftestdir | |
10906 | if mkdir conftestdir; then | |
10907 | cd conftestdir | |
ab9b9eab | 10908 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 10909 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
10910 | acfindx: |
10911 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10912 | EOF | |
10913 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10914 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10915 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10916 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 10917 | for ac_extension in a so sl; do |
ab9b9eab | 10918 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 10919 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 10920 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
10921 | fi |
10922 | done | |
ab9b9eab VZ |
10923 | # Screen out bogus values from the imake configuration. They are |
10924 | # bogus both because they are the default anyway, and because | |
10925 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 10926 | case "$ac_im_incroot" in |
ab9b9eab | 10927 | /usr/include) ;; |
698dcdb6 | 10928 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 10929 | esac |
698dcdb6 | 10930 | case "$ac_im_usrlibdir" in |
ab9b9eab | 10931 | /usr/lib | /lib) ;; |
698dcdb6 | 10932 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 10933 | esac |
ba337fe7 | 10934 | fi |
ab9b9eab | 10935 | cd .. |
698dcdb6 | 10936 | rm -fr conftestdir |
ab9b9eab | 10937 | fi |
10f2d63a | 10938 | |
698dcdb6 VZ |
10939 | if test "$ac_x_includes" = NO; then |
10940 | # Guess where to find include files, by looking for this one X11 .h file. | |
10941 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
10942 | ||
ab9b9eab | 10943 | # First, try using that file with no special directory specified. |
698dcdb6 | 10944 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 10945 | #line 10946 "configure" |
ab9b9eab | 10946 | #include "confdefs.h" |
698dcdb6 VZ |
10947 | #include <$x_direct_test_include> |
10948 | EOF | |
10949 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 10950 | { (eval echo configure:10951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10951 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10952 | if test -z "$ac_err"; then | |
10953 | rm -rf conftest* | |
ab9b9eab VZ |
10954 | # We can compile using X headers with no special include directory. |
10955 | ac_x_includes= | |
10956 | else | |
698dcdb6 VZ |
10957 | echo "$ac_err" >&5 |
10958 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10959 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10960 | rm -rf conftest* |
10961 | # Look for the header file in a standard set of common directories. | |
10962 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10963 | for ac_dir in \ | |
10964 | /usr/X11/include \ | |
10965 | /usr/X11R6/include \ | |
10966 | /usr/X11R5/include \ | |
10967 | /usr/X11R4/include \ | |
10968 | \ | |
10969 | /usr/include/X11 \ | |
10970 | /usr/include/X11R6 \ | |
10971 | /usr/include/X11R5 \ | |
10972 | /usr/include/X11R4 \ | |
10973 | \ | |
10974 | /usr/local/X11/include \ | |
10975 | /usr/local/X11R6/include \ | |
10976 | /usr/local/X11R5/include \ | |
10977 | /usr/local/X11R4/include \ | |
10978 | \ | |
10979 | /usr/local/include/X11 \ | |
10980 | /usr/local/include/X11R6 \ | |
10981 | /usr/local/include/X11R5 \ | |
10982 | /usr/local/include/X11R4 \ | |
10983 | \ | |
10984 | /usr/X386/include \ | |
10985 | /usr/x386/include \ | |
10986 | /usr/XFree86/include/X11 \ | |
10987 | \ | |
10988 | /usr/include \ | |
10989 | /usr/local/include \ | |
10990 | /usr/unsupported/include \ | |
10991 | /usr/athena/include \ | |
10992 | /usr/local/x11r5/include \ | |
10993 | /usr/lpp/Xamples/include \ | |
10994 | \ | |
10995 | /usr/openwin/include \ | |
10996 | /usr/openwin/share/include \ | |
10997 | ; \ | |
10998 | do | |
10999 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11000 | ac_x_includes=$ac_dir | |
11001 | break | |
11002 | fi | |
11003 | done | |
ab9b9eab | 11004 | fi |
698dcdb6 VZ |
11005 | rm -f conftest* |
11006 | fi # $ac_x_includes = NO | |
10f2d63a | 11007 | |
698dcdb6 | 11008 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11009 | # Check for the libraries. |
698dcdb6 VZ |
11010 | |
11011 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11012 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11013 | ||
ab9b9eab VZ |
11014 | # See if we find them without any special options. |
11015 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11016 | ac_save_LIBS="$LIBS" |
11017 | LIBS="-l$x_direct_test_library $LIBS" | |
11018 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11019 | #line 11020 "configure" |
ab9b9eab | 11020 | #include "confdefs.h" |
698dcdb6 VZ |
11021 | |
11022 | int main() { | |
11023 | ${x_direct_test_function}() | |
11024 | ; return 0; } | |
11025 | EOF | |
3f345b47 | 11026 | if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11027 | rm -rf conftest* |
11028 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11029 | # We can link X programs with no special library path. |
11030 | ac_x_libraries= | |
11031 | else | |
698dcdb6 VZ |
11032 | echo "configure: failed program was:" >&5 |
11033 | cat conftest.$ac_ext >&5 | |
11034 | rm -rf conftest* | |
11035 | LIBS="$ac_save_LIBS" | |
11036 | # First see if replacing the include by lib works. | |
11037 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11038 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11039 | /usr/X11/lib \ | |
11040 | /usr/X11R6/lib \ | |
11041 | /usr/X11R5/lib \ | |
11042 | /usr/X11R4/lib \ | |
11043 | \ | |
11044 | /usr/lib/X11 \ | |
11045 | /usr/lib/X11R6 \ | |
11046 | /usr/lib/X11R5 \ | |
11047 | /usr/lib/X11R4 \ | |
11048 | \ | |
11049 | /usr/local/X11/lib \ | |
11050 | /usr/local/X11R6/lib \ | |
11051 | /usr/local/X11R5/lib \ | |
11052 | /usr/local/X11R4/lib \ | |
11053 | \ | |
11054 | /usr/local/lib/X11 \ | |
11055 | /usr/local/lib/X11R6 \ | |
11056 | /usr/local/lib/X11R5 \ | |
11057 | /usr/local/lib/X11R4 \ | |
11058 | \ | |
11059 | /usr/X386/lib \ | |
11060 | /usr/x386/lib \ | |
11061 | /usr/XFree86/lib/X11 \ | |
11062 | \ | |
11063 | /usr/lib \ | |
11064 | /usr/local/lib \ | |
11065 | /usr/unsupported/lib \ | |
11066 | /usr/athena/lib \ | |
11067 | /usr/local/x11r5/lib \ | |
11068 | /usr/lpp/Xamples/lib \ | |
11069 | /lib/usr/lib/X11 \ | |
11070 | \ | |
11071 | /usr/openwin/lib \ | |
11072 | /usr/openwin/share/lib \ | |
11073 | ; \ | |
ab9b9eab VZ |
11074 | do |
11075 | for ac_extension in a so sl; do | |
698dcdb6 | 11076 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11077 | ac_x_libraries=$ac_dir |
11078 | break 2 | |
10f2d63a | 11079 | fi |
10f2d63a | 11080 | done |
ab9b9eab VZ |
11081 | done |
11082 | fi | |
698dcdb6 VZ |
11083 | rm -f conftest* |
11084 | fi # $ac_x_libraries = NO | |
10f2d63a | 11085 | |
698dcdb6 | 11086 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11087 | # Didn't find X anywhere. Cache the known absence of X. |
11088 | ac_cv_have_x="have_x=no" | |
11089 | else | |
11090 | # Record where we found X for the cache. | |
11091 | ac_cv_have_x="have_x=yes \ | |
11092 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11093 | fi | |
11094 | fi | |
10f2d63a | 11095 | fi |
ab9b9eab VZ |
11096 | eval "$ac_cv_have_x" |
11097 | fi # $with_x != no | |
10f2d63a | 11098 | |
ab9b9eab | 11099 | if test "$have_x" != yes; then |
698dcdb6 | 11100 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11101 | no_x=yes |
11102 | else | |
11103 | # If each of the values was on the command line, it overrides each guess. | |
11104 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11105 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11106 | # Update the cache value to reflect the command line values. | |
11107 | ac_cv_have_x="have_x=yes \ | |
11108 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11109 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11110 | fi |
10f2d63a | 11111 | |
ab9b9eab VZ |
11112 | if test "$no_x" = yes; then |
11113 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11114 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11115 | #define X_DISPLAY_MISSING 1 |
11116 | EOF | |
10f2d63a | 11117 | |
ab9b9eab VZ |
11118 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11119 | else | |
11120 | if test -n "$x_includes"; then | |
11121 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11122 | fi |
11123 | ||
ab9b9eab VZ |
11124 | # It would also be nice to do this for all -L options, not just this one. |
11125 | if test -n "$x_libraries"; then | |
11126 | X_LIBS="$X_LIBS -L$x_libraries" | |
11127 | # For Solaris; some versions of Sun CC require a space after -R and | |
11128 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11129 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11130 | "SunOS 5"*) |
698dcdb6 | 11131 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
3f345b47 | 11132 | echo "configure:11133: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11133 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11134 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11135 | #line 11136 "configure" |
ab9b9eab | 11136 | #include "confdefs.h" |
10f2d63a | 11137 | |
698dcdb6 | 11138 | int main() { |
788deba1 | 11139 | |
698dcdb6 VZ |
11140 | ; return 0; } |
11141 | EOF | |
3f345b47 | 11142 | if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11143 | rm -rf conftest* |
ab9b9eab VZ |
11144 | ac_R_nospace=yes |
11145 | else | |
698dcdb6 VZ |
11146 | echo "configure: failed program was:" >&5 |
11147 | cat conftest.$ac_ext >&5 | |
11148 | rm -rf conftest* | |
11149 | ac_R_nospace=no | |
ab9b9eab | 11150 | fi |
698dcdb6 | 11151 | rm -f conftest* |
ab9b9eab | 11152 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11153 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11154 | X_LIBS="$X_LIBS -R$x_libraries" |
11155 | else | |
11156 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11157 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11158 | #line 11159 "configure" |
ab9b9eab | 11159 | #include "confdefs.h" |
788deba1 | 11160 | |
698dcdb6 | 11161 | int main() { |
ab9b9eab | 11162 | |
698dcdb6 VZ |
11163 | ; return 0; } |
11164 | EOF | |
3f345b47 | 11165 | if { (eval echo configure:11166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11166 | rm -rf conftest* |
ab9b9eab VZ |
11167 | ac_R_space=yes |
11168 | else | |
698dcdb6 VZ |
11169 | echo "configure: failed program was:" >&5 |
11170 | cat conftest.$ac_ext >&5 | |
11171 | rm -rf conftest* | |
11172 | ac_R_space=no | |
ab9b9eab | 11173 | fi |
698dcdb6 | 11174 | rm -f conftest* |
ab9b9eab | 11175 | if test $ac_R_space = yes; then |
698dcdb6 | 11176 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11177 | X_LIBS="$X_LIBS -R $x_libraries" |
11178 | else | |
698dcdb6 | 11179 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11180 | fi |
11181 | fi | |
698dcdb6 | 11182 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11183 | esac |
11184 | fi | |
11185 | ||
11186 | # Check for system-dependent libraries X programs must link with. | |
11187 | # Do this before checking for the system-independent R6 libraries | |
11188 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11189 | ||
11190 | if test "$ISC" = yes; then | |
11191 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11192 | else | |
698dcdb6 VZ |
11193 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11194 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11195 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11196 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3f345b47 | 11197 | echo "configure:11198: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11198 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11199 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11201 | else |
698dcdb6 | 11202 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11203 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11204 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11205 | #line 11206 "configure" |
ab9b9eab VZ |
11206 | #include "confdefs.h" |
11207 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11208 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11209 | builtin and then its argument prototype would still apply. */ |
11210 | char dnet_ntoa(); | |
11211 | ||
11212 | int main() { | |
11213 | dnet_ntoa() | |
11214 | ; return 0; } | |
11215 | EOF | |
3f345b47 | 11216 | if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11217 | rm -rf conftest* |
11218 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11219 | else | |
11220 | echo "configure: failed program was:" >&5 | |
11221 | cat conftest.$ac_ext >&5 | |
11222 | rm -rf conftest* | |
11223 | eval "ac_cv_lib_$ac_lib_var=no" | |
11224 | fi | |
11225 | rm -f conftest* | |
11226 | LIBS="$ac_save_LIBS" | |
11227 | ||
11228 | fi | |
11229 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11230 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11231 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11232 | else |
11233 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11234 | fi |
11235 | ||
11236 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11237 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
3f345b47 | 11238 | echo "configure:11239: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11239 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11240 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11242 | else |
698dcdb6 | 11243 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11244 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11245 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11246 | #line 11247 "configure" |
ab9b9eab VZ |
11247 | #include "confdefs.h" |
11248 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11249 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11250 | builtin and then its argument prototype would still apply. */ |
11251 | char dnet_ntoa(); | |
11252 | ||
11253 | int main() { | |
11254 | dnet_ntoa() | |
11255 | ; return 0; } | |
11256 | EOF | |
3f345b47 | 11257 | if { (eval echo configure:11258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11258 | rm -rf conftest* |
11259 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11260 | else | |
11261 | echo "configure: failed program was:" >&5 | |
11262 | cat conftest.$ac_ext >&5 | |
11263 | rm -rf conftest* | |
11264 | eval "ac_cv_lib_$ac_lib_var=no" | |
11265 | fi | |
11266 | rm -f conftest* | |
11267 | LIBS="$ac_save_LIBS" | |
11268 | ||
11269 | fi | |
11270 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11271 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11272 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11273 | else |
11274 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11275 | fi |
11276 | ||
11277 | fi | |
11278 | ||
11279 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11280 | # to get the SysV transport functions. | |
698dcdb6 | 11281 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11282 | # needs -lnsl. |
11283 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11284 | # on Irix 5.2, according to dickey@clark.net. |
11285 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
3f345b47 | 11286 | echo "configure:11287: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11287 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11289 | else | |
11290 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11291 | #line 11292 "configure" |
ab9b9eab VZ |
11292 | #include "confdefs.h" |
11293 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11294 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11295 | #include <assert.h> |
11296 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11297 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11298 | builtin and then its argument prototype would still apply. */ |
11299 | char gethostbyname(); | |
11300 | ||
11301 | int main() { | |
ab9b9eab VZ |
11302 | |
11303 | /* The GNU C library defines this for functions which it implements | |
11304 | to always fail with ENOSYS. Some functions are actually named | |
11305 | something starting with __ and the normal name is an alias. */ | |
11306 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11307 | choke me | |
11308 | #else | |
698dcdb6 | 11309 | gethostbyname(); |
ab9b9eab VZ |
11310 | #endif |
11311 | ||
698dcdb6 VZ |
11312 | ; return 0; } |
11313 | EOF | |
3f345b47 | 11314 | if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11315 | rm -rf conftest* |
11316 | eval "ac_cv_func_gethostbyname=yes" | |
11317 | else | |
11318 | echo "configure: failed program was:" >&5 | |
11319 | cat conftest.$ac_ext >&5 | |
11320 | rm -rf conftest* | |
11321 | eval "ac_cv_func_gethostbyname=no" | |
11322 | fi | |
11323 | rm -f conftest* | |
11324 | fi | |
11325 | ||
11326 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11327 | echo "$ac_t""yes" 1>&6 | |
11328 | : | |
11329 | else | |
11330 | echo "$ac_t""no" 1>&6 | |
11331 | fi | |
ab9b9eab VZ |
11332 | |
11333 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11334 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
3f345b47 | 11335 | echo "configure:11336: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11336 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11337 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11339 | else |
698dcdb6 | 11340 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11341 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11342 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11343 | #line 11344 "configure" |
ab9b9eab VZ |
11344 | #include "confdefs.h" |
11345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11346 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11347 | builtin and then its argument prototype would still apply. */ |
11348 | char gethostbyname(); | |
6232543b | 11349 | |
698dcdb6 VZ |
11350 | int main() { |
11351 | gethostbyname() | |
11352 | ; return 0; } | |
11353 | EOF | |
3f345b47 | 11354 | if { (eval echo configure:11355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11355 | rm -rf conftest* |
11356 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11357 | else |
698dcdb6 VZ |
11358 | echo "configure: failed program was:" >&5 |
11359 | cat conftest.$ac_ext >&5 | |
11360 | rm -rf conftest* | |
11361 | eval "ac_cv_lib_$ac_lib_var=no" | |
11362 | fi | |
11363 | rm -f conftest* | |
11364 | LIBS="$ac_save_LIBS" | |
1e487827 | 11365 | |
698dcdb6 VZ |
11366 | fi |
11367 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11368 | echo "$ac_t""yes" 1>&6 | |
11369 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11370 | else | |
11371 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11372 | fi |
11373 | ||
11374 | fi | |
11375 | ||
11376 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11377 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11378 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
11379 | # on later versions), says simon@lia.di.epfl.ch: it contains |
11380 | # gethostby* variants that don't use the nameserver (or something). | |
11381 | # -lsocket must be given before -lnsl if both are needed. | |
11382 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11383 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
3f345b47 | 11384 | echo "configure:11385: checking for connect" >&5 |
698dcdb6 VZ |
11385 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
11386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11387 | else | |
11388 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11389 | #line 11390 "configure" |
ab9b9eab VZ |
11390 | #include "confdefs.h" |
11391 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11392 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
11393 | #include <assert.h> |
11394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11395 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11396 | builtin and then its argument prototype would still apply. */ |
11397 | char connect(); | |
11398 | ||
11399 | int main() { | |
ab9b9eab VZ |
11400 | |
11401 | /* The GNU C library defines this for functions which it implements | |
11402 | to always fail with ENOSYS. Some functions are actually named | |
11403 | something starting with __ and the normal name is an alias. */ | |
11404 | #if defined (__stub_connect) || defined (__stub___connect) | |
11405 | choke me | |
11406 | #else | |
698dcdb6 | 11407 | connect(); |
ab9b9eab VZ |
11408 | #endif |
11409 | ||
698dcdb6 VZ |
11410 | ; return 0; } |
11411 | EOF | |
3f345b47 | 11412 | if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11413 | rm -rf conftest* |
11414 | eval "ac_cv_func_connect=yes" | |
11415 | else | |
11416 | echo "configure: failed program was:" >&5 | |
11417 | cat conftest.$ac_ext >&5 | |
11418 | rm -rf conftest* | |
11419 | eval "ac_cv_func_connect=no" | |
11420 | fi | |
11421 | rm -f conftest* | |
11422 | fi | |
11423 | ||
11424 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11425 | echo "$ac_t""yes" 1>&6 | |
11426 | : | |
11427 | else | |
11428 | echo "$ac_t""no" 1>&6 | |
11429 | fi | |
ab9b9eab VZ |
11430 | |
11431 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11432 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
3f345b47 | 11433 | echo "configure:11434: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11434 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11435 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11437 | else |
698dcdb6 | 11438 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11439 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11440 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11441 | #line 11442 "configure" |
ab9b9eab VZ |
11442 | #include "confdefs.h" |
11443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11444 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11445 | builtin and then its argument prototype would still apply. */ |
11446 | char connect(); | |
11447 | ||
11448 | int main() { | |
11449 | connect() | |
11450 | ; return 0; } | |
11451 | EOF | |
3f345b47 | 11452 | if { (eval echo configure:11453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11453 | rm -rf conftest* |
11454 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11455 | else | |
11456 | echo "configure: failed program was:" >&5 | |
11457 | cat conftest.$ac_ext >&5 | |
11458 | rm -rf conftest* | |
11459 | eval "ac_cv_lib_$ac_lib_var=no" | |
11460 | fi | |
11461 | rm -f conftest* | |
11462 | LIBS="$ac_save_LIBS" | |
11463 | ||
11464 | fi | |
11465 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11466 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11467 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11468 | else |
11469 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11470 | fi |
11471 | ||
11472 | fi | |
11473 | ||
698dcdb6 VZ |
11474 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11475 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
3f345b47 | 11476 | echo "configure:11477: checking for remove" >&5 |
698dcdb6 VZ |
11477 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11479 | else |
698dcdb6 | 11480 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11481 | #line 11482 "configure" |
ab9b9eab VZ |
11482 | #include "confdefs.h" |
11483 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11484 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11485 | #include <assert.h> |
11486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11487 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11488 | builtin and then its argument prototype would still apply. */ |
11489 | char remove(); | |
11490 | ||
11491 | int main() { | |
ab9b9eab VZ |
11492 | |
11493 | /* The GNU C library defines this for functions which it implements | |
11494 | to always fail with ENOSYS. Some functions are actually named | |
11495 | something starting with __ and the normal name is an alias. */ | |
11496 | #if defined (__stub_remove) || defined (__stub___remove) | |
11497 | choke me | |
11498 | #else | |
698dcdb6 | 11499 | remove(); |
ab9b9eab VZ |
11500 | #endif |
11501 | ||
698dcdb6 VZ |
11502 | ; return 0; } |
11503 | EOF | |
3f345b47 | 11504 | if { (eval echo configure:11505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11505 | rm -rf conftest* |
11506 | eval "ac_cv_func_remove=yes" | |
11507 | else | |
11508 | echo "configure: failed program was:" >&5 | |
11509 | cat conftest.$ac_ext >&5 | |
11510 | rm -rf conftest* | |
11511 | eval "ac_cv_func_remove=no" | |
11512 | fi | |
11513 | rm -f conftest* | |
11514 | fi | |
11515 | ||
11516 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11517 | echo "$ac_t""yes" 1>&6 | |
11518 | : | |
11519 | else | |
11520 | echo "$ac_t""no" 1>&6 | |
11521 | fi | |
ab9b9eab VZ |
11522 | |
11523 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11524 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
3f345b47 | 11525 | echo "configure:11526: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11526 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11527 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11529 | else |
698dcdb6 | 11530 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11531 | LIBS="-lposix $LIBS" |
698dcdb6 | 11532 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11533 | #line 11534 "configure" |
ab9b9eab VZ |
11534 | #include "confdefs.h" |
11535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11536 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11537 | builtin and then its argument prototype would still apply. */ |
11538 | char remove(); | |
11539 | ||
11540 | int main() { | |
11541 | remove() | |
11542 | ; return 0; } | |
11543 | EOF | |
3f345b47 | 11544 | if { (eval echo configure:11545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11545 | rm -rf conftest* |
11546 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11547 | else | |
11548 | echo "configure: failed program was:" >&5 | |
11549 | cat conftest.$ac_ext >&5 | |
11550 | rm -rf conftest* | |
11551 | eval "ac_cv_lib_$ac_lib_var=no" | |
11552 | fi | |
11553 | rm -f conftest* | |
11554 | LIBS="$ac_save_LIBS" | |
11555 | ||
11556 | fi | |
11557 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11558 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11559 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11560 | else |
11561 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11562 | fi |
11563 | ||
11564 | fi | |
11565 | ||
11566 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11567 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
3f345b47 | 11568 | echo "configure:11569: checking for shmat" >&5 |
698dcdb6 VZ |
11569 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11571 | else |
698dcdb6 | 11572 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11573 | #line 11574 "configure" |
ab9b9eab VZ |
11574 | #include "confdefs.h" |
11575 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11576 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11577 | #include <assert.h> |
11578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11579 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11580 | builtin and then its argument prototype would still apply. */ |
11581 | char shmat(); | |
11582 | ||
11583 | int main() { | |
ab9b9eab VZ |
11584 | |
11585 | /* The GNU C library defines this for functions which it implements | |
11586 | to always fail with ENOSYS. Some functions are actually named | |
11587 | something starting with __ and the normal name is an alias. */ | |
11588 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11589 | choke me | |
11590 | #else | |
698dcdb6 | 11591 | shmat(); |
ab9b9eab VZ |
11592 | #endif |
11593 | ||
698dcdb6 VZ |
11594 | ; return 0; } |
11595 | EOF | |
3f345b47 | 11596 | if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11597 | rm -rf conftest* |
11598 | eval "ac_cv_func_shmat=yes" | |
11599 | else | |
11600 | echo "configure: failed program was:" >&5 | |
11601 | cat conftest.$ac_ext >&5 | |
11602 | rm -rf conftest* | |
11603 | eval "ac_cv_func_shmat=no" | |
11604 | fi | |
11605 | rm -f conftest* | |
11606 | fi | |
11607 | ||
11608 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11609 | echo "$ac_t""yes" 1>&6 | |
11610 | : | |
11611 | else | |
11612 | echo "$ac_t""no" 1>&6 | |
11613 | fi | |
ab9b9eab VZ |
11614 | |
11615 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11616 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
3f345b47 | 11617 | echo "configure:11618: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11618 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11619 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11621 | else |
698dcdb6 | 11622 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11623 | LIBS="-lipc $LIBS" |
698dcdb6 | 11624 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11625 | #line 11626 "configure" |
ab9b9eab VZ |
11626 | #include "confdefs.h" |
11627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11628 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11629 | builtin and then its argument prototype would still apply. */ |
11630 | char shmat(); | |
11631 | ||
11632 | int main() { | |
11633 | shmat() | |
11634 | ; return 0; } | |
11635 | EOF | |
3f345b47 | 11636 | if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11637 | rm -rf conftest* |
11638 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11639 | else | |
11640 | echo "configure: failed program was:" >&5 | |
11641 | cat conftest.$ac_ext >&5 | |
11642 | rm -rf conftest* | |
11643 | eval "ac_cv_lib_$ac_lib_var=no" | |
11644 | fi | |
11645 | rm -f conftest* | |
11646 | LIBS="$ac_save_LIBS" | |
11647 | ||
11648 | fi | |
11649 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11650 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11651 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11652 | else |
11653 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11654 | fi |
11655 | ||
11656 | fi | |
11657 | fi | |
11658 | ||
11659 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11660 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11661 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11662 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11663 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11664 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11665 | # These have to be linked with before -lX11, unlike the other | |
11666 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11667 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11668 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
3f345b47 | 11669 | echo "configure:11670: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11670 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11671 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11673 | else | |
11674 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11675 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11676 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 11677 | #line 11678 "configure" |
ab9b9eab VZ |
11678 | #include "confdefs.h" |
11679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11680 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11681 | builtin and then its argument prototype would still apply. */ |
11682 | char IceConnectionNumber(); | |
11683 | ||
11684 | int main() { | |
11685 | IceConnectionNumber() | |
11686 | ; return 0; } | |
11687 | EOF | |
3f345b47 | 11688 | if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11689 | rm -rf conftest* |
11690 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11691 | else | |
11692 | echo "configure: failed program was:" >&5 | |
11693 | cat conftest.$ac_ext >&5 | |
11694 | rm -rf conftest* | |
11695 | eval "ac_cv_lib_$ac_lib_var=no" | |
11696 | fi | |
11697 | rm -f conftest* | |
11698 | LIBS="$ac_save_LIBS" | |
11699 | ||
11700 | fi | |
11701 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11702 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11703 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11704 | else |
11705 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11706 | fi |
11707 | ||
698dcdb6 | 11708 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11709 | |
11710 | fi | |
11711 | ||
11712 | ||
1e6feb95 VZ |
11713 | if test "$no_x" = "yes"; then |
11714 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11715 | fi | |
ab9b9eab | 11716 | |
1e6feb95 VZ |
11717 | GUI_TK_LIBRARY="$X_LIBS" |
11718 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11719 | AFMINSTALL=afminstall |
1e6feb95 | 11720 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11721 | |
1e6feb95 | 11722 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
3f345b47 | 11723 | echo "configure:11724: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11724 | |
ab9b9eab VZ |
11725 | ac_find_includes= |
11726 | for ac_dir in $SEARCH_INCLUDE; | |
11727 | do | |
11728 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11729 | ac_find_includes=$ac_dir | |
11730 | break | |
11731 | fi | |
11732 | done | |
11733 | ||
1e6feb95 VZ |
11734 | if test "$ac_find_includes" != "" ; then |
11735 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11736 | else | |
11737 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11738 | #line 11739 "configure" |
cd6d6d5b VZ |
11739 | #include "confdefs.h" |
11740 | ||
1e6feb95 VZ |
11741 | #include <Xm/Xm.h> |
11742 | ||
698dcdb6 | 11743 | int main() { |
cd6d6d5b | 11744 | |
1e6feb95 | 11745 | int version; |
1e6feb95 VZ |
11746 | version = xmUseVersion; |
11747 | ||
698dcdb6 VZ |
11748 | ; return 0; } |
11749 | EOF | |
3f345b47 | 11750 | if { (eval echo configure:11751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11751 | rm -rf conftest* |
11752 | ||
1e6feb95 VZ |
11753 | echo "$ac_t""found in default search path" 1>&6 |
11754 | COMPILED_X_PROGRAM=1 | |
11755 | ||
cd6d6d5b | 11756 | else |
698dcdb6 VZ |
11757 | echo "configure: failed program was:" >&5 |
11758 | cat conftest.$ac_ext >&5 | |
11759 | rm -rf conftest* | |
11760 | ||
1e6feb95 VZ |
11761 | echo "$ac_t""no" 1>&6 |
11762 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11763 | ||
698dcdb6 | 11764 | |
cd6d6d5b | 11765 | fi |
698dcdb6 | 11766 | rm -f conftest* |
1e6feb95 | 11767 | fi |
ab9b9eab | 11768 | |
1e6feb95 VZ |
11769 | if test "$COMPILED_X_PROGRAM" = 0; then |
11770 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
3f345b47 | 11771 | echo "configure:11772: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 11772 | |
ab9b9eab VZ |
11773 | ac_find_libraries= |
11774 | for ac_dir in $SEARCH_LIB; | |
11775 | do | |
f11bdd03 | 11776 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11777 | if test -f "$ac_dir/libXm.$ac_extension"; then |
11778 | ac_find_libraries=$ac_dir | |
11779 | break 2 | |
11780 | fi | |
11781 | done | |
11782 | done | |
11783 | ||
1e6feb95 VZ |
11784 | if test "$ac_find_libraries" != "" ; then |
11785 | ||
ab9b9eab VZ |
11786 | ac_path_to_include=$ac_find_includes |
11787 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11788 | result=$? | |
11789 | if test $result = 0; then | |
11790 | ac_path_to_include="" | |
11791 | else | |
62d0491b | 11792 | ac_path_to_include=" -I$ac_find_includes" |
ab9b9eab VZ |
11793 | fi |
11794 | ||
1e6feb95 | 11795 | |
ab9b9eab VZ |
11796 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11797 | result=$? | |
11798 | if test $result = 0; then | |
11799 | ac_path_to_link="" | |
11800 | else | |
62d0491b | 11801 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
11802 | fi |
11803 | ||
698dcdb6 | 11804 | |
62d0491b RL |
11805 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
11806 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
1e6feb95 VZ |
11807 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11808 | else | |
11809 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11810 | #line 11811 "configure" |
cd6d6d5b | 11811 | #include "confdefs.h" |
ab9b9eab | 11812 | |
1e6feb95 VZ |
11813 | #include <Xm/Xm.h> |
11814 | ||
698dcdb6 | 11815 | int main() { |
ab9b9eab | 11816 | |
1e6feb95 | 11817 | int version; |
1e6feb95 VZ |
11818 | version = xmUseVersion; |
11819 | ||
698dcdb6 VZ |
11820 | ; return 0; } |
11821 | EOF | |
3f345b47 | 11822 | if { (eval echo configure:11823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11823 | rm -rf conftest* |
11824 | ||
1e6feb95 VZ |
11825 | echo "$ac_t""found in default search path" 1>&6 |
11826 | COMPILED_X_PROGRAM=1 | |
11827 | ||
cd6d6d5b | 11828 | else |
698dcdb6 VZ |
11829 | echo "configure: failed program was:" >&5 |
11830 | cat conftest.$ac_ext >&5 | |
11831 | rm -rf conftest* | |
11832 | ||
1e6feb95 VZ |
11833 | echo "$ac_t""no" 1>&6 |
11834 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11835 | ||
698dcdb6 | 11836 | |
cd6d6d5b | 11837 | fi |
698dcdb6 | 11838 | rm -f conftest* |
1e6feb95 | 11839 | fi |
cd6d6d5b | 11840 | fi |
ab9b9eab | 11841 | |
3d63bc3a | 11842 | xpm_link= |
1e6feb95 | 11843 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
3f345b47 | 11844 | echo "configure:11845: checking for Xpm library" >&5 |
1e6feb95 | 11845 | |
ab9b9eab VZ |
11846 | ac_find_libraries= |
11847 | for ac_dir in $SEARCH_LIB; | |
11848 | do | |
f11bdd03 | 11849 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11850 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11851 | ac_find_libraries=$ac_dir | |
11852 | break 2 | |
11853 | fi | |
11854 | done | |
11855 | done | |
11856 | ||
1e6feb95 VZ |
11857 | if test "$ac_find_libraries" != "" ; then |
11858 | ||
ab9b9eab VZ |
11859 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11860 | result=$? | |
11861 | if test $result = 0; then | |
11862 | ac_path_to_link="" | |
11863 | else | |
62d0491b | 11864 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
11865 | fi |
11866 | ||
62d0491b | 11867 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 11868 | xpm_link=" -lXpm" |
1e6feb95 | 11869 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11870 | #define wxHAVE_LIB_XPM 1 |
11871 | EOF | |
11872 | ||
1e6feb95 VZ |
11873 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11874 | else | |
11875 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 11876 | #line 11877 "configure" |
cd6d6d5b VZ |
11877 | #include "confdefs.h" |
11878 | ||
1e6feb95 VZ |
11879 | #include <X11/xpm.h> |
11880 | ||
698dcdb6 | 11881 | int main() { |
cd6d6d5b | 11882 | |
1e6feb95 | 11883 | int version; |
1e6feb95 VZ |
11884 | version = XpmLibraryVersion(); |
11885 | ||
698dcdb6 VZ |
11886 | ; return 0; } |
11887 | EOF | |
3f345b47 | 11888 | if { (eval echo configure:11889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11889 | rm -rf conftest* |
11890 | ||
3d63bc3a | 11891 | xpm_link=" -lXpm" |
3a922bb4 | 11892 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
11893 | #define wxHAVE_LIB_XPM 1 |
11894 | EOF | |
11895 | ||
1e6feb95 VZ |
11896 | echo "$ac_t""found in default search path" 1>&6 |
11897 | COMPILED_X_PROGRAM=0 | |
11898 | ||
cd6d6d5b | 11899 | else |
698dcdb6 VZ |
11900 | echo "configure: failed program was:" >&5 |
11901 | cat conftest.$ac_ext >&5 | |
11902 | rm -rf conftest* | |
11903 | ||
1e6feb95 VZ |
11904 | echo "$ac_t""no" 1>&6 |
11905 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11906 | ||
698dcdb6 | 11907 | |
cd6d6d5b | 11908 | fi |
698dcdb6 | 11909 | rm -f conftest* |
1e6feb95 VZ |
11910 | fi |
11911 | ||
3d63bc3a | 11912 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 11913 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
11914 | TOOLKIT=MOTIF |
11915 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
11916 | fi |
11917 | ||
683dccda GD |
11918 | if test "$wxUSE_MAC" = 1; then |
11919 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 11920 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 11921 | fi |
3d63bc3a RL |
11922 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
11923 | CFLAGS="$CFLAGS -fpascal-strings" | |
11924 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
11925 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON" | |
d08b457b | 11926 | |
13c0541d | 11927 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 11928 | TOOLKIT=MAC |
683dccda | 11929 | GUIDIST=MACX_DIST |
1e6feb95 | 11930 | fi |
10f2d63a | 11931 | |
1e6feb95 VZ |
11932 | if test "$wxUSE_PM" = 1; then |
11933 | TOOLKIT=PM | |
11934 | GUIDIST=GTK_DIST | |
11935 | fi | |
b4085ce6 | 11936 | |
3a922bb4 | 11937 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 11938 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
11939 | else |
11940 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 11941 | fi |
e07802fc | 11942 | |
3a922bb4 | 11943 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 11944 | |
3a922bb4 RL |
11945 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
11946 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
11947 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
11948 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11949 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
11950 | WIDGET_SET=univ | |
f6bcfd97 | 11951 | else |
3a922bb4 | 11952 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
11953 | fi |
11954 | ||
ba0e650c | 11955 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 VZ |
11956 | |
11957 | if test "$TOOLKIT" != "MSW"; then | |
11958 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
11959 | fi | |
11960 | ||
11961 | if test "$wxUSE_HTML" = "yes"; then | |
11962 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
11963 | fi | |
3fcdd07b | 11964 | |
3a922bb4 RL |
11965 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
11966 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 11967 | fi |
4f14bcd8 | 11968 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 11969 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 11970 | fi |
4f14bcd8 | 11971 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
11972 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
11973 | fi | |
4f14bcd8 | 11974 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
11975 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
11976 | fi | |
4f14bcd8 | 11977 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
11978 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
11979 | fi | |
2224580a | 11980 | |
2224580a VZ |
11981 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
11982 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 11983 | else |
dad6c0ea VZ |
11984 | USE_GUI=0 |
11985 | ||
3a922bb4 | 11986 | TOOLKIT_DIR="base" |
f6bcfd97 | 11987 | |
3a922bb4 RL |
11988 | if test "$USE_WIN32" = 1 ; then |
11989 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
11990 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 11991 | |
3a922bb4 | 11992 | TOOLKIT="MSW" |
f6bcfd97 | 11993 | else |
3a922bb4 RL |
11994 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
11995 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
11996 | fi |
11997 | ||
831b3152 | 11998 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
11999 | |
12000 | GUIDIST="BASE_DIST" | |
12001 | DISTDIR="wxBase" | |
10f2d63a VZ |
12002 | fi |
12003 | ||
4f14bcd8 | 12004 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
12005 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
12006 | fi | |
4f14bcd8 | 12007 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
12008 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
12009 | fi | |
10f2d63a | 12010 | |
3a922bb4 | 12011 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
12012 | if test "$wxUSE_MAC" = 1; then |
12013 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
12014 | else | |
570cb8cb | 12015 | |
62d0491b | 12016 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 12017 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
3f345b47 | 12018 | echo "configure:12019: checking for GL/gl.h" >&5 |
3a922bb4 RL |
12019 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12021 | else | |
12022 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12023 | #line 12024 "configure" |
3a922bb4 RL |
12024 | #include "confdefs.h" |
12025 | #include <GL/gl.h> | |
12026 | EOF | |
12027 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12028 | { (eval echo configure:12029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12029 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12030 | if test -z "$ac_err"; then | |
12031 | rm -rf conftest* | |
12032 | eval "ac_cv_header_$ac_safe=yes" | |
12033 | else | |
12034 | echo "$ac_err" >&5 | |
12035 | echo "configure: failed program was:" >&5 | |
12036 | cat conftest.$ac_ext >&5 | |
12037 | rm -rf conftest* | |
12038 | eval "ac_cv_header_$ac_safe=no" | |
12039 | fi | |
12040 | rm -f conftest* | |
12041 | fi | |
12042 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12043 | echo "$ac_t""yes" 1>&6 | |
12044 | ||
1352efdf | 12045 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
3f345b47 | 12046 | echo "configure:12047: checking for -lGL" >&5 |
57964555 | 12047 | |
62d0491b RL |
12048 | ac_find_libraries= |
12049 | for ac_dir in $SEARCH_LIB; | |
12050 | do | |
12051 | for ac_extension in a so sl dylib; do | |
12052 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
12053 | ac_find_libraries=$ac_dir | |
12054 | break 2 | |
12055 | fi | |
12056 | done | |
12057 | done | |
3a922bb4 | 12058 | |
62d0491b RL |
12059 | if test "$ac_find_libraries" != "" ; then |
12060 | ||
12061 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
12062 | result=$? | |
12063 | if test $result = 0; then | |
12064 | ac_path_to_link="" | |
12065 | else | |
12066 | ac_path_to_link=" -L$ac_find_libraries" | |
12067 | fi | |
3a922bb4 | 12068 | |
62d0491b RL |
12069 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12070 | OPENGL_LIBS="-lGL -lGLU" | |
1352efdf | 12071 | echo "$ac_t""yes" 1>&6 |
62d0491b | 12072 | else |
1352efdf RL |
12073 | echo "$ac_t""no" 1>&6 |
12074 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
3f345b47 | 12075 | echo "configure:12076: checking for -lMesaGL" >&5 |
62d0491b RL |
12076 | |
12077 | ac_find_libraries= | |
12078 | for ac_dir in $SEARCH_LIB; | |
12079 | do | |
12080 | for ac_extension in a so sl dylib; do | |
12081 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12082 | ac_find_libraries=$ac_dir | |
12083 | break 2 | |
12084 | fi | |
12085 | done | |
12086 | done | |
3a922bb4 | 12087 | |
62d0491b | 12088 | if test "$ac_find_libraries" != "" ; then |
57964555 | 12089 | |
62d0491b RL |
12090 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
12091 | result=$? | |
12092 | if test $result = 0; then | |
12093 | ac_path_to_link="" | |
12094 | else | |
12095 | ac_path_to_link=" -L$ac_find_libraries" | |
12096 | fi | |
3a922bb4 | 12097 | |
62d0491b RL |
12098 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12099 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
12100 | echo "$ac_t""yes" 1>&6 |
12101 | else | |
12102 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
12103 | fi |
12104 | fi | |
12105 | ||
3a922bb4 RL |
12106 | else |
12107 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12108 | fi |
12109 | ||
6f754473 | 12110 | |
62d0491b RL |
12111 | |
12112 | # AC_CHECK_HEADER(GL/gl.h, | |
12113 | # [ | |
12114 | # AC_CHECK_LIB(GL, glFlush, | |
12115 | # [ | |
12116 | # OPENGL_LIBS="-lGL -lGLU" | |
12117 | # ], | |
12118 | # [ | |
12119 | # AC_CHECK_LIB(MesaGL, glFlush, | |
12120 | # [ | |
12121 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
12122 | # ], | |
12123 | # [], | |
12124 | # [-lm]) | |
12125 | # ], | |
12126 | # [-lm]) | |
12127 | # ]) | |
12128 | ||
12129 | if test "x$OPENGL_LIBS" = "x"; then | |
12130 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
12131 | fi | |
6f754473 | 12132 | fi |
6f754473 | 12133 | |
62d0491b RL |
12134 | if test "$wxUSE_OPENGL" = "yes"; then |
12135 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
12136 | #define wxUSE_OPENGL 1 |
12137 | EOF | |
12138 | ||
62d0491b | 12139 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
12140 | #define wxUSE_GLCANVAS 1 |
12141 | EOF | |
12142 | ||
62d0491b RL |
12143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
12144 | fi | |
3a922bb4 RL |
12145 | fi |
12146 | ||
12147 | if test -z "$TOOLKIT_VPATH" ; then | |
12148 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12149 | fi | |
12150 | ||
12151 | if test -n "$TOOLKIT" ; then | |
12152 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
12153 | fi | |
12154 | ||
f676c7ff MB |
12155 | lib_unicode_suffix= |
12156 | if test "$wxUSE_UNICODE" = "yes"; then | |
12157 | lib_unicode_suffix=u | |
12158 | fi | |
12159 | ||
3a922bb4 RL |
12160 | lib_debug_suffix= |
12161 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
12162 | lib_debug_suffix=d | |
3a922bb4 RL |
12163 | fi |
12164 | ||
f676c7ff MB |
12165 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
12166 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
12167 | |
12168 | if test "$cross_compiling" = "yes"; then | |
12169 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
12170 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
12171 | fi | |
12172 | ||
12173 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
12174 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
12175 | ||
3a922bb4 RL |
12176 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
12177 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
12178 | ||
12179 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
12180 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12181 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
12182 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
12183 | ||
d08b457b | 12184 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 12185 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 12186 | |
978f1259 RL |
12187 | case "${host}" in |
12188 | *-*-cygwin* | *-*-mingw32* ) | |
12189 | ||
2da4f892 | 12190 | |
978f1259 RL |
12191 | |
12192 | if test "$cross_compiling" != "yes"; then | |
12193 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12194 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12195 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
12196 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
12197 | else |
12198 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12199 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
12200 | fi |
12201 | ||
12202 | esac | |
12203 | ||
12204 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
12205 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
12206 | ||
12207 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 12208 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
12209 | |
12210 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
12211 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
12212 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
12213 | fi |
12214 | ||
12215 | ||
3a922bb4 RL |
12216 | |
12217 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
12218 | |
12219 | if test "$wxUSE_OPENGL" = "yes"; then | |
12220 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 12221 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
12222 | else |
12223 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 12224 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
12225 | fi |
12226 | ||
dd4f7467 | 12227 | if test "$GCC" = "yes"; then |
55e80573 | 12228 | PIC_FLAG="-fPIC" |
dd4f7467 | 12229 | fi |
55e80573 VZ |
12230 | |
12231 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 12232 | |
10f2d63a VZ |
12233 | case "${host}" in |
12234 | *-hp-hpux* ) | |
55e80573 | 12235 | if test "$GCC" != "yes"; then |
3d63bc3a | 12236 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 12237 | |
10f2d63a VZ |
12238 | SHARED_LD="${CXX} -b -o" |
12239 | PIC_FLAG="+Z" | |
12240 | fi | |
55e80573 | 12241 | |
7b7a7637 RL |
12242 | if test "$wxUSE_OPENGL" = "yes"; then |
12243 | WX_ALL_INSTALLED="preinstall_gl" | |
12244 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
12245 | else | |
12246 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
12247 | fi | |
10f2d63a | 12248 | ;; |
b12915c1 | 12249 | |
55e80573 VZ |
12250 | *-*-linux* ) |
12251 | if test "$GCC" != "yes"; then | |
12252 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
3f345b47 | 12253 | echo "configure:12254: checking for Intel compiler" >&5 |
55e80573 VZ |
12254 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
12255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12256 | else | |
12257 | ||
12258 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12259 | #line 12260 "configure" |
55e80573 VZ |
12260 | #include "confdefs.h" |
12261 | ||
12262 | int main() { | |
12263 | ||
12264 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 12265 | #error Not icc |
55e80573 VZ |
12266 | #endif |
12267 | ||
12268 | ; return 0; } | |
12269 | EOF | |
3f345b47 | 12270 | if { (eval echo configure:12271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
12271 | rm -rf conftest* |
12272 | wx_cv_prog_icc=yes | |
12273 | else | |
12274 | echo "configure: failed program was:" >&5 | |
12275 | cat conftest.$ac_ext >&5 | |
12276 | rm -rf conftest* | |
12277 | wx_cv_prog_icc=no | |
12278 | ||
12279 | fi | |
12280 | rm -f conftest* | |
12281 | ||
12282 | fi | |
12283 | ||
12284 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
12285 | if test "$wx_cv_prog_icc" = "yes"; then |
12286 | PIC_FLAG="-KPIC" | |
12287 | fi | |
12288 | fi | |
12289 | ||
3a922bb4 RL |
12290 | if test "$wxUSE_SONAME" = "yes" ; then |
12291 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
12292 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 12293 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 12294 | fi |
10f2d63a | 12295 | ;; |
55e80573 | 12296 | |
10f2d63a VZ |
12297 | *-*-solaris2* ) |
12298 | if test "$GCC" = yes ; then | |
f6bcfd97 | 12299 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
12300 | else |
12301 | SHARED_LD="${CXX} -G -o" | |
12302 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
12303 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
12304 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 12305 | fi |
10f2d63a | 12306 | ;; |
55e80573 | 12307 | |
b4085ce6 | 12308 | *-*-darwin* ) |
156b2523 GD |
12309 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
12310 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
12311 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 12312 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 12313 | ;; |
55e80573 | 12314 | |
10f2d63a VZ |
12315 | *-*-aix* ) |
12316 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 12317 | ;; |
55e80573 | 12318 | |
7b7a7637 | 12319 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 12320 | |
2da4f892 | 12321 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 12322 | |
77e13408 | 12323 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 12324 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
12325 | |
12326 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
12327 | |
12328 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 12329 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 12330 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 12331 | else |
978f1259 | 12332 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 12333 | fi |
10f2d63a | 12334 | ;; |
55e80573 | 12335 | |
6fa882bd | 12336 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 12337 | wxUSE_SHARED=no |
10f2d63a | 12338 | ;; |
55e80573 | 12339 | |
b12915c1 | 12340 | *-*-beos* ) |
e2b8b066 | 12341 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 12342 | ;; |
55e80573 VZ |
12343 | |
12344 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
12345 | *-*-sunos4* | \ | |
12346 | *-*-irix5* | *-*-irix6* | \ | |
12347 | *-*-osf* | \ | |
12348 | *-*-dgux5* | \ | |
12349 | *-*-sysv5* ) | |
12350 | ;; | |
12351 | ||
10f2d63a | 12352 | *) |
7b7a7637 | 12353 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
12354 | esac |
12355 | ||
12356 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
12357 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 12358 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 12359 | fi |
55e80573 | 12360 | |
3711412e | 12361 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 12362 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 12363 | fi |
f6bcfd97 | 12364 | |
3a922bb4 | 12365 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 12366 | |
3a922bb4 | 12367 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
12368 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
12369 | fi | |
12370 | ||
6fa882bd RR |
12371 | if test "$wxUSE_MAC" = 1; then |
12372 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
12373 | fi | |
12374 | ||
3a922bb4 RL |
12375 | if test "$wxUSE_OPENGL" = "yes"; then |
12376 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
12377 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
12378 | else | |
12379 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
12380 | fi | |
698dcdb6 | 12381 | |
3a922bb4 RL |
12382 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
12383 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
12384 | ||
12385 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 12386 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 12387 | fi |
10f2d63a | 12388 | |
d08b457b GD |
12389 | if test "$wxUSE_MAC" = 1; then |
12390 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 12391 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
12392 | # Extract the first word of "Rez", so it can be a program name with args. |
12393 | set dummy Rez; ac_word=$2 | |
12394 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3f345b47 | 12395 | echo "configure:12396: checking for $ac_word" >&5 |
d08b457b GD |
12396 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
12397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12398 | else | |
12399 | if test -n "$RESCOMP"; then | |
12400 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
12401 | else | |
12402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12403 | ac_dummy="$PATH" | |
12404 | for ac_dir in $ac_dummy; do | |
12405 | test -z "$ac_dir" && ac_dir=. | |
12406 | if test -f $ac_dir/$ac_word; then | |
12407 | ac_cv_prog_RESCOMP="Rez" | |
12408 | break | |
12409 | fi | |
12410 | done | |
12411 | IFS="$ac_save_ifs" | |
12412 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
12413 | fi | |
12414 | fi | |
12415 | RESCOMP="$ac_cv_prog_RESCOMP" | |
12416 | if test -n "$RESCOMP"; then | |
12417 | echo "$ac_t""$RESCOMP" 1>&6 | |
12418 | else | |
12419 | echo "$ac_t""no" 1>&6 | |
12420 | fi | |
12421 | ||
9f8148b1 GD |
12422 | # Extract the first word of "DeRez", so it can be a program name with args. |
12423 | set dummy DeRez; ac_word=$2 | |
d08b457b | 12424 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f345b47 | 12425 | echo "configure:12426: checking for $ac_word" >&5 |
d08b457b GD |
12426 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
12427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12428 | else | |
12429 | if test -n "$DEREZ"; then | |
12430 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12431 | else | |
12432 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12433 | ac_dummy="$PATH" | |
12434 | for ac_dir in $ac_dummy; do | |
12435 | test -z "$ac_dir" && ac_dir=. | |
12436 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 12437 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
12438 | break |
12439 | fi | |
12440 | done | |
12441 | IFS="$ac_save_ifs" | |
9f8148b1 | 12442 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
12443 | fi |
12444 | fi | |
12445 | DEREZ="$ac_cv_prog_DEREZ" | |
12446 | if test -n "$DEREZ"; then | |
12447 | echo "$ac_t""$DEREZ" 1>&6 | |
12448 | else | |
12449 | echo "$ac_t""no" 1>&6 | |
12450 | fi | |
12451 | ||
12452 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12453 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12454 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12455 | fi |
12456 | ||
3a922bb4 | 12457 | |
13c0541d GD |
12458 | if test "$wxUSE_MAC" != 1; then |
12459 | for ac_hdr in strings.h | |
9cfadba2 | 12460 | do |
698dcdb6 VZ |
12461 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12462 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12463 | echo "configure:12464: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12464 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12466 | else | |
12467 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12468 | #line 12469 "configure" |
9cfadba2 | 12469 | #include "confdefs.h" |
698dcdb6 VZ |
12470 | #include <$ac_hdr> |
12471 | EOF | |
12472 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12473 | { (eval echo configure:12474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12474 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12475 | if test -z "$ac_err"; then | |
12476 | rm -rf conftest* | |
12477 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12478 | else |
698dcdb6 VZ |
12479 | echo "$ac_err" >&5 |
12480 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12481 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12482 | rm -rf conftest* |
12483 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12484 | fi |
698dcdb6 | 12485 | rm -f conftest* |
9cfadba2 | 12486 | fi |
698dcdb6 VZ |
12487 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12488 | echo "$ac_t""yes" 1>&6 | |
12489 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12490 | cat >> confdefs.h <<EOF | |
12491 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12492 | EOF |
698dcdb6 VZ |
12493 | |
12494 | else | |
12495 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12496 | fi |
12497 | done | |
10f2d63a | 12498 | |
13c0541d GD |
12499 | fi |
12500 | ||
3a922bb4 | 12501 | for ac_hdr in stdlib.h |
10f2d63a | 12502 | do |
698dcdb6 VZ |
12503 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12504 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12505 | echo "configure:12506: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12506 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12508 | else | |
12509 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12510 | #line 12511 "configure" |
10f2d63a | 12511 | #include "confdefs.h" |
698dcdb6 VZ |
12512 | #include <$ac_hdr> |
12513 | EOF | |
12514 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12515 | { (eval echo configure:12516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12516 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12517 | if test -z "$ac_err"; then | |
12518 | rm -rf conftest* | |
12519 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12520 | else |
698dcdb6 VZ |
12521 | echo "$ac_err" >&5 |
12522 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12523 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12524 | rm -rf conftest* |
12525 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12526 | fi |
698dcdb6 | 12527 | rm -f conftest* |
10f2d63a | 12528 | fi |
698dcdb6 VZ |
12529 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12530 | echo "$ac_t""yes" 1>&6 | |
12531 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12532 | cat >> confdefs.h <<EOF | |
12533 | #define $ac_tr_hdr 1 | |
10f2d63a | 12534 | EOF |
698dcdb6 VZ |
12535 | |
12536 | else | |
12537 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12538 | fi |
12539 | done | |
12540 | ||
9f8148b1 | 12541 | for ac_hdr in malloc.h |
10f2d63a | 12542 | do |
698dcdb6 VZ |
12543 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12544 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12545 | echo "configure:12546: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12546 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12548 | else | |
12549 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12550 | #line 12551 "configure" |
10f2d63a | 12551 | #include "confdefs.h" |
698dcdb6 VZ |
12552 | #include <$ac_hdr> |
12553 | EOF | |
12554 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12555 | { (eval echo configure:12556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12556 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12557 | if test -z "$ac_err"; then | |
12558 | rm -rf conftest* | |
12559 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12560 | else |
698dcdb6 VZ |
12561 | echo "$ac_err" >&5 |
12562 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12563 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12564 | rm -rf conftest* |
12565 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12566 | fi |
698dcdb6 | 12567 | rm -f conftest* |
6f72b082 | 12568 | fi |
698dcdb6 VZ |
12569 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12570 | echo "$ac_t""yes" 1>&6 | |
12571 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12572 | cat >> confdefs.h <<EOF | |
12573 | #define $ac_tr_hdr 1 | |
6f72b082 | 12574 | EOF |
698dcdb6 VZ |
12575 | |
12576 | else | |
12577 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12578 | fi |
12579 | done | |
12580 | ||
9f8148b1 | 12581 | for ac_hdr in unistd.h |
6f72b082 | 12582 | do |
698dcdb6 VZ |
12583 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12584 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12585 | echo "configure:12586: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12586 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12588 | else | |
12589 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12590 | #line 12591 "configure" |
6f72b082 | 12591 | #include "confdefs.h" |
698dcdb6 VZ |
12592 | #include <$ac_hdr> |
12593 | EOF | |
12594 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12595 | { (eval echo configure:12596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12596 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12597 | if test -z "$ac_err"; then | |
12598 | rm -rf conftest* | |
12599 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12600 | else |
698dcdb6 VZ |
12601 | echo "$ac_err" >&5 |
12602 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12603 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12604 | rm -rf conftest* |
12605 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12606 | fi |
698dcdb6 | 12607 | rm -f conftest* |
6f72b082 | 12608 | fi |
698dcdb6 VZ |
12609 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12610 | echo "$ac_t""yes" 1>&6 | |
12611 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12612 | cat >> confdefs.h <<EOF | |
12613 | #define $ac_tr_hdr 1 | |
6f72b082 | 12614 | EOF |
698dcdb6 VZ |
12615 | |
12616 | else | |
12617 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12618 | fi |
12619 | done | |
12620 | ||
9f8148b1 | 12621 | for ac_hdr in wchar.h |
6f72b082 | 12622 | do |
698dcdb6 VZ |
12623 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12624 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12625 | echo "configure:12626: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12626 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12628 | else | |
12629 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12630 | #line 12631 "configure" |
6f72b082 | 12631 | #include "confdefs.h" |
698dcdb6 VZ |
12632 | #include <$ac_hdr> |
12633 | EOF | |
12634 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12635 | { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12636 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12637 | if test -z "$ac_err"; then | |
12638 | rm -rf conftest* | |
12639 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12640 | else |
698dcdb6 VZ |
12641 | echo "$ac_err" >&5 |
12642 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12643 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12644 | rm -rf conftest* |
12645 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12646 | fi |
698dcdb6 | 12647 | rm -f conftest* |
10f2d63a | 12648 | fi |
698dcdb6 VZ |
12649 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12650 | echo "$ac_t""yes" 1>&6 | |
12651 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12652 | cat >> confdefs.h <<EOF | |
12653 | #define $ac_tr_hdr 1 | |
10f2d63a | 12654 | EOF |
698dcdb6 VZ |
12655 | |
12656 | else | |
12657 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12658 | fi |
12659 | done | |
12660 | ||
9f8148b1 | 12661 | for ac_hdr in wcstr.h |
0fb0dd83 | 12662 | do |
698dcdb6 VZ |
12663 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12664 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12665 | echo "configure:12666: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12666 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12668 | else | |
12669 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12670 | #line 12671 "configure" |
0fb0dd83 | 12671 | #include "confdefs.h" |
698dcdb6 VZ |
12672 | #include <$ac_hdr> |
12673 | EOF | |
12674 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12675 | { (eval echo configure:12676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12676 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12677 | if test -z "$ac_err"; then | |
12678 | rm -rf conftest* | |
12679 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12680 | else |
698dcdb6 VZ |
12681 | echo "$ac_err" >&5 |
12682 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12683 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12684 | rm -rf conftest* |
12685 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12686 | fi |
698dcdb6 | 12687 | rm -f conftest* |
0fb0dd83 | 12688 | fi |
698dcdb6 VZ |
12689 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12690 | echo "$ac_t""yes" 1>&6 | |
12691 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12692 | cat >> confdefs.h <<EOF | |
12693 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12694 | EOF |
698dcdb6 VZ |
12695 | |
12696 | else | |
12697 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12698 | fi |
12699 | done | |
12700 | ||
9f8148b1 | 12701 | for ac_hdr in wctype.h |
1f8ae82f | 12702 | do |
698dcdb6 VZ |
12703 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12704 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12705 | echo "configure:12706: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12706 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12708 | else | |
12709 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12710 | #line 12711 "configure" |
1f8ae82f | 12711 | #include "confdefs.h" |
698dcdb6 VZ |
12712 | #include <$ac_hdr> |
12713 | EOF | |
12714 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12715 | { (eval echo configure:12716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12716 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12717 | if test -z "$ac_err"; then | |
12718 | rm -rf conftest* | |
12719 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12720 | else |
698dcdb6 VZ |
12721 | echo "$ac_err" >&5 |
12722 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12723 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12724 | rm -rf conftest* |
12725 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12726 | fi |
698dcdb6 | 12727 | rm -f conftest* |
1f8ae82f | 12728 | fi |
698dcdb6 VZ |
12729 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12730 | echo "$ac_t""yes" 1>&6 | |
12731 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12732 | cat >> confdefs.h <<EOF | |
12733 | #define $ac_tr_hdr 1 | |
1f8ae82f | 12734 | EOF |
698dcdb6 VZ |
12735 | |
12736 | else | |
12737 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
12738 | fi |
12739 | done | |
12740 | ||
9f8148b1 | 12741 | for ac_hdr in fnmatch.h |
10f2d63a | 12742 | do |
698dcdb6 VZ |
12743 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12744 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12745 | echo "configure:12746: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12746 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12748 | else | |
12749 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12750 | #line 12751 "configure" |
10f2d63a | 12751 | #include "confdefs.h" |
698dcdb6 VZ |
12752 | #include <$ac_hdr> |
12753 | EOF | |
12754 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12755 | { (eval echo configure:12756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12756 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12757 | if test -z "$ac_err"; then | |
12758 | rm -rf conftest* | |
12759 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12760 | else |
698dcdb6 VZ |
12761 | echo "$ac_err" >&5 |
12762 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12763 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12764 | rm -rf conftest* |
12765 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12766 | fi |
698dcdb6 | 12767 | rm -f conftest* |
10f2d63a | 12768 | fi |
698dcdb6 VZ |
12769 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12770 | echo "$ac_t""yes" 1>&6 | |
12771 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12772 | cat >> confdefs.h <<EOF | |
12773 | #define $ac_tr_hdr 1 | |
10f2d63a | 12774 | EOF |
698dcdb6 VZ |
12775 | |
12776 | else | |
12777 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12778 | fi |
12779 | done | |
12780 | ||
9f8148b1 | 12781 | for ac_hdr in iconv.h |
0fbb762e MB |
12782 | do |
12783 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12784 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12785 | echo "configure:12786: checking for $ac_hdr" >&5 |
0fbb762e MB |
12786 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12788 | else | |
12789 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12790 | #line 12791 "configure" |
0fbb762e MB |
12791 | #include "confdefs.h" |
12792 | #include <$ac_hdr> | |
12793 | EOF | |
12794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12795 | { (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
12796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12797 | if test -z "$ac_err"; then | |
12798 | rm -rf conftest* | |
12799 | eval "ac_cv_header_$ac_safe=yes" | |
12800 | else | |
12801 | echo "$ac_err" >&5 | |
12802 | echo "configure: failed program was:" >&5 | |
12803 | cat conftest.$ac_ext >&5 | |
12804 | rm -rf conftest* | |
12805 | eval "ac_cv_header_$ac_safe=no" | |
12806 | fi | |
12807 | rm -f conftest* | |
12808 | fi | |
12809 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12810 | echo "$ac_t""yes" 1>&6 | |
12811 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12812 | cat >> confdefs.h <<EOF | |
12813 | #define $ac_tr_hdr 1 | |
12814 | EOF | |
12815 | ||
12816 | else | |
12817 | echo "$ac_t""no" 1>&6 | |
12818 | fi | |
12819 | done | |
12820 | ||
9f8148b1 GD |
12821 | for ac_hdr in langinfo.h |
12822 | do | |
12823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12825 | echo "configure:12826: checking for $ac_hdr" >&5 |
9f8148b1 GD |
12826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12828 | else | |
12829 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12830 | #line 12831 "configure" |
9f8148b1 GD |
12831 | #include "confdefs.h" |
12832 | #include <$ac_hdr> | |
12833 | EOF | |
12834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12835 | { (eval echo configure:12836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
12836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12837 | if test -z "$ac_err"; then | |
12838 | rm -rf conftest* | |
12839 | eval "ac_cv_header_$ac_safe=yes" | |
12840 | else | |
12841 | echo "$ac_err" >&5 | |
12842 | echo "configure: failed program was:" >&5 | |
12843 | cat conftest.$ac_ext >&5 | |
12844 | rm -rf conftest* | |
12845 | eval "ac_cv_header_$ac_safe=no" | |
12846 | fi | |
12847 | rm -f conftest* | |
12848 | fi | |
12849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12850 | echo "$ac_t""yes" 1>&6 | |
12851 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12852 | cat >> confdefs.h <<EOF | |
12853 | #define $ac_tr_hdr 1 | |
12854 | EOF | |
12855 | ||
12856 | else | |
12857 | echo "$ac_t""no" 1>&6 | |
12858 | fi | |
12859 | done | |
12860 | ||
10f2d63a | 12861 | |
3a922bb4 RL |
12862 | if test "$wxUSE_GUI" = "yes"; then |
12863 | if test "$wxUSE_UNIX" = "yes"; then | |
12864 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
12865 | do |
12866 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12867 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 12868 | echo "configure:12869: checking for $ac_hdr" >&5 |
29fd3c0c VS |
12869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12871 | else | |
12872 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 12873 | #line 12874 "configure" |
29fd3c0c VS |
12874 | #include "confdefs.h" |
12875 | #include <$ac_hdr> | |
12876 | EOF | |
12877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12878 | { (eval echo configure:12879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
12879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12880 | if test -z "$ac_err"; then | |
12881 | rm -rf conftest* | |
12882 | eval "ac_cv_header_$ac_safe=yes" | |
12883 | else | |
12884 | echo "$ac_err" >&5 | |
12885 | echo "configure: failed program was:" >&5 | |
12886 | cat conftest.$ac_ext >&5 | |
12887 | rm -rf conftest* | |
12888 | eval "ac_cv_header_$ac_safe=no" | |
12889 | fi | |
12890 | rm -f conftest* | |
12891 | fi | |
12892 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12893 | echo "$ac_t""yes" 1>&6 | |
12894 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12895 | cat >> confdefs.h <<EOF | |
12896 | #define $ac_tr_hdr 1 | |
12897 | EOF | |
12898 | ||
12899 | else | |
12900 | echo "$ac_t""no" 1>&6 | |
12901 | fi | |
12902 | done | |
12903 | ||
3a922bb4 | 12904 | fi |
29fd3c0c VS |
12905 | fi |
12906 | ||
698dcdb6 VZ |
12907 | |
12908 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
3f345b47 | 12909 | echo "configure:12910: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
12910 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
12911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12912 | else |
698dcdb6 | 12913 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 12914 | #line 12915 "configure" |
10f2d63a VZ |
12915 | #include "confdefs.h" |
12916 | #include <stdlib.h> | |
12917 | #include <stdarg.h> | |
12918 | #include <string.h> | |
12919 | #include <float.h> | |
698dcdb6 VZ |
12920 | EOF |
12921 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 12922 | { (eval echo configure:12923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12923 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12924 | if test -z "$ac_err"; then | |
12925 | rm -rf conftest* | |
10f2d63a VZ |
12926 | ac_cv_header_stdc=yes |
12927 | else | |
698dcdb6 VZ |
12928 | echo "$ac_err" >&5 |
12929 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12930 | cat conftest.$ac_ext >&5 |
698dcdb6 | 12931 | rm -rf conftest* |
10f2d63a VZ |
12932 | ac_cv_header_stdc=no |
12933 | fi | |
698dcdb6 | 12934 | rm -f conftest* |
10f2d63a VZ |
12935 | |
12936 | if test $ac_cv_header_stdc = yes; then | |
12937 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 12938 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 12939 | #line 12940 "configure" |
10f2d63a VZ |
12940 | #include "confdefs.h" |
12941 | #include <string.h> | |
698dcdb6 | 12942 | EOF |
10f2d63a VZ |
12943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12944 | egrep "memchr" >/dev/null 2>&1; then | |
12945 | : | |
12946 | else | |
698dcdb6 | 12947 | rm -rf conftest* |
10f2d63a VZ |
12948 | ac_cv_header_stdc=no |
12949 | fi | |
12950 | rm -f conftest* | |
12951 | ||
12952 | fi | |
12953 | ||
12954 | if test $ac_cv_header_stdc = yes; then | |
12955 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 12956 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 12957 | #line 12958 "configure" |
10f2d63a VZ |
12958 | #include "confdefs.h" |
12959 | #include <stdlib.h> | |
698dcdb6 | 12960 | EOF |
10f2d63a VZ |
12961 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12962 | egrep "free" >/dev/null 2>&1; then | |
12963 | : | |
12964 | else | |
698dcdb6 | 12965 | rm -rf conftest* |
10f2d63a VZ |
12966 | ac_cv_header_stdc=no |
12967 | fi | |
12968 | rm -f conftest* | |
12969 | ||
12970 | fi | |
12971 | ||
12972 | if test $ac_cv_header_stdc = yes; then | |
12973 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 12974 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
12975 | : |
12976 | else | |
698dcdb6 | 12977 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 12978 | #line 12979 "configure" |
10f2d63a VZ |
12979 | #include "confdefs.h" |
12980 | #include <ctype.h> | |
698dcdb6 VZ |
12981 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12982 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 12983 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
12984 | int main () { int i; for (i = 0; i < 256; i++) |
12985 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
12986 | exit (0); } | |
12987 | ||
12988 | EOF | |
3f345b47 | 12989 | if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12990 | then |
10f2d63a VZ |
12991 | : |
12992 | else | |
698dcdb6 VZ |
12993 | echo "configure: failed program was:" >&5 |
12994 | cat conftest.$ac_ext >&5 | |
12995 | rm -fr conftest* | |
12996 | ac_cv_header_stdc=no | |
10f2d63a | 12997 | fi |
698dcdb6 | 12998 | rm -fr conftest* |
10f2d63a | 12999 | fi |
698dcdb6 | 13000 | |
10f2d63a VZ |
13001 | fi |
13002 | fi | |
1e487827 | 13003 | |
698dcdb6 VZ |
13004 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
13005 | if test $ac_cv_header_stdc = yes; then | |
13006 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13007 | #define STDC_HEADERS 1 |
13008 | EOF | |
13009 | ||
13010 | fi | |
13011 | ||
698dcdb6 | 13012 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
3f345b47 | 13013 | echo "configure:13014: checking for mode_t" >&5 |
698dcdb6 VZ |
13014 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
13015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13016 | else |
698dcdb6 | 13017 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13018 | #line 13019 "configure" |
1e487827 | 13019 | #include "confdefs.h" |
698dcdb6 VZ |
13020 | #include <sys/types.h> |
13021 | #if STDC_HEADERS | |
13022 | #include <stdlib.h> | |
13023 | #include <stddef.h> | |
13024 | #endif | |
13025 | EOF | |
13026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13027 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13028 | rm -rf conftest* | |
10f2d63a VZ |
13029 | ac_cv_type_mode_t=yes |
13030 | else | |
698dcdb6 VZ |
13031 | rm -rf conftest* |
13032 | ac_cv_type_mode_t=no | |
703e0a69 | 13033 | fi |
698dcdb6 | 13034 | rm -f conftest* |
1e487827 | 13035 | |
698dcdb6 VZ |
13036 | fi |
13037 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
13038 | if test $ac_cv_type_mode_t = no; then | |
13039 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13040 | #define mode_t int |
13041 | EOF | |
13042 | ||
13043 | fi | |
13044 | ||
698dcdb6 | 13045 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3f345b47 | 13046 | echo "configure:13047: checking for off_t" >&5 |
698dcdb6 VZ |
13047 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
13048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13049 | else |
698dcdb6 | 13050 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13051 | #line 13052 "configure" |
10f2d63a | 13052 | #include "confdefs.h" |
698dcdb6 VZ |
13053 | #include <sys/types.h> |
13054 | #if STDC_HEADERS | |
13055 | #include <stdlib.h> | |
13056 | #include <stddef.h> | |
13057 | #endif | |
13058 | EOF | |
13059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13060 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13061 | rm -rf conftest* | |
10f2d63a VZ |
13062 | ac_cv_type_off_t=yes |
13063 | else | |
698dcdb6 VZ |
13064 | rm -rf conftest* |
13065 | ac_cv_type_off_t=no | |
703e0a69 | 13066 | fi |
698dcdb6 | 13067 | rm -f conftest* |
1e487827 | 13068 | |
698dcdb6 VZ |
13069 | fi |
13070 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
13071 | if test $ac_cv_type_off_t = no; then | |
13072 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13073 | #define off_t long |
13074 | EOF | |
13075 | ||
13076 | fi | |
13077 | ||
698dcdb6 | 13078 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3f345b47 | 13079 | echo "configure:13080: checking for pid_t" >&5 |
698dcdb6 VZ |
13080 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
13081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13082 | else |
698dcdb6 | 13083 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13084 | #line 13085 "configure" |
10f2d63a | 13085 | #include "confdefs.h" |
698dcdb6 VZ |
13086 | #include <sys/types.h> |
13087 | #if STDC_HEADERS | |
13088 | #include <stdlib.h> | |
13089 | #include <stddef.h> | |
13090 | #endif | |
13091 | EOF | |
13092 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13093 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13094 | rm -rf conftest* | |
10f2d63a VZ |
13095 | ac_cv_type_pid_t=yes |
13096 | else | |
698dcdb6 VZ |
13097 | rm -rf conftest* |
13098 | ac_cv_type_pid_t=no | |
703e0a69 | 13099 | fi |
698dcdb6 | 13100 | rm -f conftest* |
1e487827 | 13101 | |
698dcdb6 VZ |
13102 | fi |
13103 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
13104 | if test $ac_cv_type_pid_t = no; then | |
13105 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13106 | #define pid_t int |
13107 | EOF | |
13108 | ||
13109 | fi | |
13110 | ||
698dcdb6 | 13111 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3f345b47 | 13112 | echo "configure:13113: checking for size_t" >&5 |
698dcdb6 VZ |
13113 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
13114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13115 | else |
698dcdb6 | 13116 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13117 | #line 13118 "configure" |
10f2d63a | 13118 | #include "confdefs.h" |
698dcdb6 VZ |
13119 | #include <sys/types.h> |
13120 | #if STDC_HEADERS | |
13121 | #include <stdlib.h> | |
13122 | #include <stddef.h> | |
13123 | #endif | |
13124 | EOF | |
13125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13126 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13127 | rm -rf conftest* | |
10f2d63a VZ |
13128 | ac_cv_type_size_t=yes |
13129 | else | |
698dcdb6 VZ |
13130 | rm -rf conftest* |
13131 | ac_cv_type_size_t=no | |
703e0a69 | 13132 | fi |
698dcdb6 | 13133 | rm -f conftest* |
1e487827 | 13134 | |
698dcdb6 VZ |
13135 | fi |
13136 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
13137 | if test $ac_cv_type_size_t = no; then | |
13138 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13139 | #define size_t unsigned |
13140 | EOF | |
13141 | ||
13142 | fi | |
13143 | ||
698dcdb6 | 13144 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
3f345b47 | 13145 | echo "configure:13146: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
13146 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
13147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13148 | else |
698dcdb6 | 13149 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13150 | #line 13151 "configure" |
10f2d63a VZ |
13151 | #include "confdefs.h" |
13152 | #include <sys/types.h> | |
698dcdb6 | 13153 | EOF |
10f2d63a VZ |
13154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13155 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 13156 | rm -rf conftest* |
10f2d63a VZ |
13157 | ac_cv_type_uid_t=yes |
13158 | else | |
698dcdb6 | 13159 | rm -rf conftest* |
10f2d63a VZ |
13160 | ac_cv_type_uid_t=no |
13161 | fi | |
13162 | rm -f conftest* | |
13163 | ||
13164 | fi | |
1e487827 | 13165 | |
698dcdb6 VZ |
13166 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
13167 | if test $ac_cv_type_uid_t = no; then | |
13168 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13169 | #define uid_t int |
13170 | EOF | |
13171 | ||
698dcdb6 | 13172 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13173 | #define gid_t int |
13174 | EOF | |
13175 | ||
13176 | fi | |
13177 | ||
1e487827 | 13178 | |
698dcdb6 | 13179 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
3f345b47 | 13180 | echo "configure:13181: checking for wchar_t" >&5 |
698dcdb6 VZ |
13181 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
13182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13183 | else | |
13184 | ||
13185 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13186 | #line 13187 "configure" |
0046ff7c | 13187 | #include "confdefs.h" |
4b42290e GD |
13188 | |
13189 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
13190 | # ifdef __CYGWIN__ |
13191 | # include <stddef.h> | |
13192 | # endif | |
4b42290e GD |
13193 | # include <wchar.h> |
13194 | #endif | |
13195 | #ifdef HAVE_STDLIB_H | |
13196 | # include <stdlib.h> | |
13197 | #endif | |
13198 | ||
698dcdb6 | 13199 | int main() { |
0046ff7c | 13200 | |
d836ee96 VZ |
13201 | wchar_t wc, *ws; |
13202 | wc = L'a'; | |
13203 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
13204 | |
13205 | ; return 0; } | |
13206 | EOF | |
3f345b47 | 13207 | if { (eval echo configure:13208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13208 | rm -rf conftest* |
1f8ae82f | 13209 | wx_cv_type_wchar_t=yes |
0046ff7c | 13210 | else |
698dcdb6 VZ |
13211 | echo "configure: failed program was:" >&5 |
13212 | cat conftest.$ac_ext >&5 | |
13213 | rm -rf conftest* | |
13214 | wx_cv_type_wchar_t=no | |
d836ee96 | 13215 | |
6232543b | 13216 | fi |
698dcdb6 | 13217 | rm -f conftest* |
703e0a69 | 13218 | |
1e487827 | 13219 | fi |
698dcdb6 VZ |
13220 | |
13221 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
13222 | |
13223 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 13224 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
13225 | #define wxUSE_WCHAR_T 1 |
13226 | EOF | |
13227 | ||
13228 | fi | |
13229 | ||
19af3b06 VZ |
13230 | |
13231 | ac_ext=C | |
13232 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13233 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13234 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13235 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13236 | cross_compiling=$ac_cv_prog_cxx_cross | |
13237 | ||
d836ee96 | 13238 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
3f345b47 | 13239 | echo "configure:13240: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
13240 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
13241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13242 | else | |
dd2c8b7c | 13243 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13244 | #line 13245 "configure" |
d836ee96 VZ |
13245 | #include "confdefs.h" |
13246 | #include <stddef.h> | |
13247 | int main() { | |
13248 | ||
dd2c8b7c VZ |
13249 | return 0; } |
13250 | ||
d836ee96 | 13251 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
13252 | |
13253 | int bar() { | |
d836ee96 VZ |
13254 | |
13255 | ; return 0; } | |
13256 | EOF | |
3f345b47 | 13257 | if { (eval echo configure:13258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13258 | rm -rf conftest* |
13259 | wx_cv_size_t_is_uint=no | |
13260 | else | |
13261 | echo "configure: failed program was:" >&5 | |
13262 | cat conftest.$ac_ext >&5 | |
13263 | rm -rf conftest* | |
13264 | wx_cv_size_t_is_uint=yes | |
13265 | ||
13266 | fi | |
13267 | rm -f conftest* | |
13268 | ||
13269 | fi | |
13270 | ||
13271 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
13272 | ||
13273 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
13274 | cat >> confdefs.h <<\EOF | |
13275 | #define wxSIZE_T_IS_UINT 1 | |
13276 | EOF | |
13277 | ||
13278 | else | |
13279 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
3f345b47 | 13280 | echo "configure:13281: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
13281 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
13282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13283 | else | |
13284 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13285 | #line 13286 "configure" |
d836ee96 VZ |
13286 | #include "confdefs.h" |
13287 | #include <stddef.h> | |
13288 | int main() { | |
13289 | ||
dd2c8b7c VZ |
13290 | return 0; } |
13291 | ||
d836ee96 | 13292 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
13293 | |
13294 | int bar() { | |
d836ee96 VZ |
13295 | |
13296 | ; return 0; } | |
13297 | EOF | |
3f345b47 | 13298 | if { (eval echo configure:13299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13299 | rm -rf conftest* |
13300 | wx_cv_size_t_is_ulong=no | |
13301 | else | |
13302 | echo "configure: failed program was:" >&5 | |
13303 | cat conftest.$ac_ext >&5 | |
13304 | rm -rf conftest* | |
13305 | wx_cv_size_t_is_ulong=yes | |
13306 | ||
13307 | fi | |
13308 | rm -f conftest* | |
13309 | ||
13310 | fi | |
13311 | ||
13312 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
13313 | ||
13314 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
13315 | cat >> confdefs.h <<\EOF | |
13316 | #define wxSIZE_T_IS_ULONG 1 | |
13317 | EOF | |
13318 | ||
13319 | fi | |
13320 | fi | |
13321 | ||
19af3b06 VZ |
13322 | ac_ext=c |
13323 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13324 | ac_cpp='$CPP $CPPFLAGS' | |
13325 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13326 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13327 | cross_compiling=$ac_cv_prog_cc_cross | |
13328 | ||
13329 | ||
1e487827 | 13330 | |
698dcdb6 | 13331 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
3f345b47 | 13332 | echo "configure:13333: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
13333 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
13334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13335 | else | |
13336 | ||
13337 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13338 | #line 13339 "configure" |
b12915c1 VZ |
13339 | #include "confdefs.h" |
13340 | #include <pwd.h> | |
698dcdb6 | 13341 | int main() { |
b12915c1 VZ |
13342 | |
13343 | char *p; | |
13344 | struct passwd *pw; | |
13345 | p = pw->pw_gecos; | |
698dcdb6 VZ |
13346 | |
13347 | ; return 0; } | |
13348 | EOF | |
3f345b47 | 13349 | if { (eval echo configure:13350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13350 | rm -rf conftest* |
13351 | ||
b12915c1 | 13352 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 13353 | |
b12915c1 | 13354 | else |
698dcdb6 VZ |
13355 | echo "configure: failed program was:" >&5 |
13356 | cat conftest.$ac_ext >&5 | |
13357 | rm -rf conftest* | |
13358 | ||
b12915c1 | 13359 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
13360 | |
13361 | ||
6232543b | 13362 | fi |
698dcdb6 VZ |
13363 | rm -f conftest* |
13364 | ||
703e0a69 | 13365 | |
1e487827 | 13366 | fi |
698dcdb6 VZ |
13367 | |
13368 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 13369 | |
bd3277fe | 13370 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 13371 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
13372 | #define HAVE_PW_GECOS 1 |
13373 | EOF | |
13374 | ||
13375 | fi | |
13376 | ||
698dcdb6 VZ |
13377 | |
13378 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
3f345b47 | 13379 | echo "configure:13380: checking for working const" >&5 |
698dcdb6 VZ |
13380 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
13381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13382 | else |
698dcdb6 | 13383 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13384 | #line 13385 "configure" |
10f2d63a | 13385 | #include "confdefs.h" |
698dcdb6 VZ |
13386 | |
13387 | int main() { | |
13388 | ||
13389 | /* Ultrix mips cc rejects this. */ | |
9f8148b1 | 13390 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
13391 | /* SunOS 4.1.1 cc rejects this. */ |
13392 | char const *const *ccp; | |
13393 | char **p; | |
13394 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13395 | struct point {int x, y;}; | |
13396 | static struct point const zero = {0,0}; | |
13397 | /* AIX XL C 1.02.0.0 rejects this. | |
13398 | It does not let you subtract one const X* pointer from another in an arm | |
13399 | of an if-expression whose if-part is not a constant expression */ | |
13400 | const char *g = "string"; | |
13401 | ccp = &g + (g ? g-g : 0); | |
13402 | /* HPUX 7.0 cc rejects these. */ | |
13403 | ++ccp; | |
13404 | p = (char**) ccp; | |
13405 | ccp = (char const *const *) p; | |
13406 | { /* SCO 3.2v4 cc rejects this. */ | |
13407 | char *t; | |
13408 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13409 | ||
13410 | *t++ = 0; | |
10f2d63a | 13411 | } |
698dcdb6 VZ |
13412 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
13413 | int x[] = {25, 17}; | |
13414 | const int *foo = &x[0]; | |
13415 | ++foo; | |
703e0a69 | 13416 | } |
698dcdb6 VZ |
13417 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
13418 | typedef const int *iptr; | |
13419 | iptr p = 0; | |
13420 | ++p; | |
6232543b | 13421 | } |
698dcdb6 VZ |
13422 | { /* AIX XL C 1.02.0.0 rejects this saying |
13423 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13424 | struct s { int j; const int *ap[3]; }; | |
13425 | struct s *b; b->j = 5; | |
1e487827 | 13426 | } |
698dcdb6 VZ |
13427 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
13428 | const int foo = 10; | |
13429 | } | |
4f14bcd8 GD |
13430 | |
13431 | ; return 0; } | |
698dcdb6 | 13432 | EOF |
3f345b47 | 13433 | if { (eval echo configure:13434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13434 | rm -rf conftest* |
13435 | ac_cv_c_const=yes | |
698dcdb6 VZ |
13436 | else |
13437 | echo "configure: failed program was:" >&5 | |
13438 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13439 | rm -rf conftest* |
13440 | ac_cv_c_const=no | |
703e0a69 | 13441 | fi |
4f14bcd8 | 13442 | rm -f conftest* |
698dcdb6 VZ |
13443 | fi |
13444 | ||
4f14bcd8 GD |
13445 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
13446 | if test $ac_cv_c_const = no; then | |
13447 | cat >> confdefs.h <<\EOF | |
13448 | #define const | |
698dcdb6 VZ |
13449 | EOF |
13450 | ||
4f14bcd8 | 13451 | fi |
698dcdb6 | 13452 | |
4f14bcd8 | 13453 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3f345b47 | 13454 | echo "configure:13455: checking for inline" >&5 |
4f14bcd8 | 13455 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 13456 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13457 | else |
4f14bcd8 GD |
13458 | ac_cv_c_inline=no |
13459 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 13460 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13461 | #line 13462 "configure" |
10f2d63a | 13462 | #include "confdefs.h" |
4f14bcd8 GD |
13463 | |
13464 | int main() { | |
9f8148b1 | 13465 | } $ac_kw foo() { |
4f14bcd8 | 13466 | ; return 0; } |
698dcdb6 | 13467 | EOF |
3f345b47 | 13468 | if { (eval echo configure:13469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13469 | rm -rf conftest* |
13470 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 13471 | else |
698dcdb6 VZ |
13472 | echo "configure: failed program was:" >&5 |
13473 | cat conftest.$ac_ext >&5 | |
10f2d63a | 13474 | fi |
4f14bcd8 GD |
13475 | rm -f conftest* |
13476 | done | |
698dcdb6 | 13477 | |
10f2d63a | 13478 | fi |
4f14bcd8 GD |
13479 | |
13480 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
13481 | case "$ac_cv_c_inline" in | |
13482 | inline | yes) ;; | |
13483 | no) cat >> confdefs.h <<\EOF | |
13484 | #define inline | |
13485 | EOF | |
13486 | ;; | |
13487 | *) cat >> confdefs.h <<EOF | |
13488 | #define inline $ac_cv_c_inline | |
698dcdb6 | 13489 | EOF |
4f14bcd8 GD |
13490 | ;; |
13491 | esac | |
698dcdb6 VZ |
13492 | |
13493 | ||
4f14bcd8 | 13494 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
3f345b47 | 13495 | echo "configure:13496: checking size of char" >&5 |
4f14bcd8 | 13496 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
13497 | echo $ac_n "(cached) $ac_c" 1>&6 |
13498 | else | |
13499 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 13500 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
13501 | else |
13502 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13503 | #line 13504 "configure" |
698dcdb6 VZ |
13504 | #include "confdefs.h" |
13505 | #include <stdio.h> | |
13506 | main() | |
13507 | { | |
13508 | FILE *f=fopen("conftestval", "w"); | |
13509 | if (!f) exit(1); | |
4f14bcd8 | 13510 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
13511 | exit(0); |
13512 | } | |
13513 | EOF | |
3f345b47 | 13514 | if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13515 | then |
4f14bcd8 | 13516 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 13517 | else |
698dcdb6 VZ |
13518 | echo "configure: failed program was:" >&5 |
13519 | cat conftest.$ac_ext >&5 | |
13520 | rm -fr conftest* | |
4f14bcd8 | 13521 | ac_cv_sizeof_char=0 |
6232543b | 13522 | fi |
698dcdb6 VZ |
13523 | rm -fr conftest* |
13524 | fi | |
13525 | ||
703e0a69 | 13526 | fi |
4f14bcd8 | 13527 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 13528 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13529 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13530 | EOF |
13531 | ||
1e487827 | 13532 | |
4f14bcd8 | 13533 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3f345b47 | 13534 | echo "configure:13535: checking size of short" >&5 |
4f14bcd8 | 13535 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
13536 | echo $ac_n "(cached) $ac_c" 1>&6 |
13537 | else | |
4f14bcd8 GD |
13538 | if test "$cross_compiling" = yes; then |
13539 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13540 | else |
698dcdb6 | 13541 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13542 | #line 13543 "configure" |
b93d0d08 | 13543 | #include "confdefs.h" |
4f14bcd8 GD |
13544 | #include <stdio.h> |
13545 | main() | |
13546 | { | |
13547 | FILE *f=fopen("conftestval", "w"); | |
13548 | if (!f) exit(1); | |
13549 | fprintf(f, "%d\n", sizeof(short)); | |
13550 | exit(0); | |
13551 | } | |
698dcdb6 | 13552 | EOF |
3f345b47 | 13553 | if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13554 | then |
4f14bcd8 | 13555 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13556 | else |
698dcdb6 VZ |
13557 | echo "configure: failed program was:" >&5 |
13558 | cat conftest.$ac_ext >&5 | |
13559 | rm -fr conftest* | |
4f14bcd8 | 13560 | ac_cv_sizeof_short=0 |
b93d0d08 | 13561 | fi |
698dcdb6 | 13562 | rm -fr conftest* |
b93d0d08 VS |
13563 | fi |
13564 | ||
b93d0d08 | 13565 | fi |
4f14bcd8 | 13566 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13567 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13568 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13569 | EOF |
13570 | ||
698dcdb6 | 13571 | |
4f14bcd8 | 13572 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
3f345b47 | 13573 | echo "configure:13574: checking size of int *" >&5 |
4f14bcd8 | 13574 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 13575 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13576 | else |
4f14bcd8 GD |
13577 | if test "$cross_compiling" = yes; then |
13578 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13579 | else |
3a922bb4 | 13580 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13581 | #line 13582 "configure" |
3a922bb4 | 13582 | #include "confdefs.h" |
4f14bcd8 GD |
13583 | #include <stdio.h> |
13584 | main() | |
13585 | { | |
13586 | FILE *f=fopen("conftestval", "w"); | |
13587 | if (!f) exit(1); | |
13588 | fprintf(f, "%d\n", sizeof(int *)); | |
13589 | exit(0); | |
13590 | } | |
13591 | EOF | |
3f345b47 | 13592 | if { (eval echo configure:13593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13593 | then |
13594 | ac_cv_sizeof_int_p=`cat conftestval` | |
13595 | else | |
13596 | echo "configure: failed program was:" >&5 | |
13597 | cat conftest.$ac_ext >&5 | |
13598 | rm -fr conftest* | |
13599 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13600 | fi |
4f14bcd8 | 13601 | rm -fr conftest* |
3a922bb4 | 13602 | fi |
698dcdb6 | 13603 | |
4f14bcd8 GD |
13604 | fi |
13605 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13606 | cat >> confdefs.h <<EOF | |
13607 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13608 | EOF |
13609 | ||
703e0a69 | 13610 | |
4f14bcd8 | 13611 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
3f345b47 | 13612 | echo "configure:13613: checking size of int" >&5 |
4f14bcd8 | 13613 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 13614 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13615 | else |
13616 | if test "$cross_compiling" = yes; then | |
13617 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13618 | else |
13619 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13620 | #line 13621 "configure" |
10f2d63a | 13621 | #include "confdefs.h" |
4f14bcd8 GD |
13622 | #include <stdio.h> |
13623 | main() | |
13624 | { | |
13625 | FILE *f=fopen("conftestval", "w"); | |
13626 | if (!f) exit(1); | |
13627 | fprintf(f, "%d\n", sizeof(int)); | |
13628 | exit(0); | |
13629 | } | |
698dcdb6 | 13630 | EOF |
3f345b47 | 13631 | if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13632 | then |
13633 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13634 | else |
698dcdb6 | 13635 | echo "configure: failed program was:" >&5 |
10f2d63a | 13636 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13637 | rm -fr conftest* |
13638 | ac_cv_sizeof_int=0 | |
10f2d63a | 13639 | fi |
4f14bcd8 | 13640 | rm -fr conftest* |
10f2d63a | 13641 | fi |
10f2d63a | 13642 | |
4f14bcd8 GD |
13643 | fi |
13644 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13645 | cat >> confdefs.h <<EOF | |
13646 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13647 | EOF |
13648 | ||
698dcdb6 | 13649 | |
4f14bcd8 | 13650 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
3f345b47 | 13651 | echo "configure:13652: checking size of long" >&5 |
4f14bcd8 | 13652 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
13653 | echo $ac_n "(cached) $ac_c" 1>&6 |
13654 | else | |
4f14bcd8 GD |
13655 | if test "$cross_compiling" = yes; then |
13656 | ac_cv_sizeof_long=4 | |
13657 | else | |
13658 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13659 | #line 13660 "configure" |
10f2d63a | 13660 | #include "confdefs.h" |
4f14bcd8 GD |
13661 | #include <stdio.h> |
13662 | main() | |
13663 | { | |
13664 | FILE *f=fopen("conftestval", "w"); | |
13665 | if (!f) exit(1); | |
13666 | fprintf(f, "%d\n", sizeof(long)); | |
13667 | exit(0); | |
13668 | } | |
698dcdb6 | 13669 | EOF |
3f345b47 | 13670 | if { (eval echo configure:13671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13671 | then |
13672 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13673 | else |
698dcdb6 VZ |
13674 | echo "configure: failed program was:" >&5 |
13675 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13676 | rm -fr conftest* |
13677 | ac_cv_sizeof_long=0 | |
10f2d63a | 13678 | fi |
4f14bcd8 | 13679 | rm -fr conftest* |
10f2d63a | 13680 | fi |
698dcdb6 | 13681 | |
4f14bcd8 GD |
13682 | fi |
13683 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13684 | cat >> confdefs.h <<EOF | |
13685 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13686 | EOF |
13687 | ||
698dcdb6 | 13688 | |
4f14bcd8 | 13689 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
3f345b47 | 13690 | echo "configure:13691: checking size of long long" >&5 |
4f14bcd8 | 13691 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 13692 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13693 | else |
4f14bcd8 GD |
13694 | if test "$cross_compiling" = yes; then |
13695 | ac_cv_sizeof_long_long=0 | |
13696 | else | |
13697 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13698 | #line 13699 "configure" |
10f2d63a | 13699 | #include "confdefs.h" |
4f14bcd8 GD |
13700 | #include <stdio.h> |
13701 | main() | |
13702 | { | |
13703 | FILE *f=fopen("conftestval", "w"); | |
13704 | if (!f) exit(1); | |
13705 | fprintf(f, "%d\n", sizeof(long long)); | |
13706 | exit(0); | |
13707 | } | |
698dcdb6 | 13708 | EOF |
3f345b47 | 13709 | if { (eval echo configure:13710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13710 | then |
13711 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13712 | else |
13713 | echo "configure: failed program was:" >&5 | |
13714 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13715 | rm -fr conftest* |
13716 | ac_cv_sizeof_long_long=0 | |
13717 | fi | |
13718 | rm -fr conftest* | |
698dcdb6 | 13719 | fi |
698dcdb6 VZ |
13720 | |
13721 | fi | |
4f14bcd8 GD |
13722 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13723 | cat >> confdefs.h <<EOF | |
13724 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13725 | EOF |
13726 | ||
10f2d63a | 13727 | |
4f14bcd8 GD |
13728 | |
13729 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
3f345b47 | 13730 | echo "configure:13731: checking size of wchar_t" >&5 |
4f14bcd8 | 13731 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 13732 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13733 | else |
4f14bcd8 GD |
13734 | |
13735 | if test "$cross_compiling" = yes; then | |
13736 | wx_cv_sizeof_wchar_t=4 | |
13737 | ||
13738 | else | |
13739 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13740 | #line 13741 "configure" |
10f2d63a | 13741 | #include "confdefs.h" |
698dcdb6 | 13742 | |
4f14bcd8 | 13743 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
13744 | # ifdef __CYGWIN__ |
13745 | # include <stddef.h> | |
13746 | # endif | |
4f14bcd8 GD |
13747 | # include <wchar.h> |
13748 | #endif | |
13749 | #ifdef HAVE_STDLIB_H | |
13750 | # include <stdlib.h> | |
13751 | #endif | |
13752 | #include <stdio.h> | |
13753 | int main() | |
13754 | { | |
13755 | FILE *f=fopen("conftestval", "w"); | |
13756 | if (!f) exit(1); | |
13757 | fprintf(f, "%i", sizeof(wchar_t)); | |
13758 | exit(0); | |
13759 | } | |
13760 | ||
698dcdb6 | 13761 | EOF |
3f345b47 | 13762 | if { (eval echo configure:13763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13763 | then |
13764 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
13765 | else |
13766 | echo "configure: failed program was:" >&5 | |
13767 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13768 | rm -fr conftest* |
13769 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 13770 | fi |
4f14bcd8 GD |
13771 | rm -fr conftest* |
13772 | fi | |
13773 | ||
698dcdb6 VZ |
13774 | |
13775 | fi | |
4f14bcd8 GD |
13776 | |
13777 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13778 | ||
13779 | cat >> confdefs.h <<EOF | |
13780 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
13781 | EOF |
13782 | ||
18dbb1f6 | 13783 | |
4f14bcd8 | 13784 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3f345b47 | 13785 | echo "configure:13786: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 13786 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
13787 | echo $ac_n "(cached) $ac_c" 1>&6 |
13788 | else | |
4f14bcd8 GD |
13789 | ac_cv_c_bigendian=unknown |
13790 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 13791 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13792 | #line 13793 "configure" |
18dbb1f6 | 13793 | #include "confdefs.h" |
4f14bcd8 GD |
13794 | #include <sys/types.h> |
13795 | #include <sys/param.h> | |
13796 | int main() { | |
18dbb1f6 | 13797 | |
4f14bcd8 GD |
13798 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
13799 | bogus endian macros | |
13800 | #endif | |
13801 | ; return 0; } | |
13802 | EOF | |
3f345b47 | 13803 | if { (eval echo configure:13804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13804 | rm -rf conftest* |
13805 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13806 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13807 | #line 13808 "configure" |
4f14bcd8 GD |
13808 | #include "confdefs.h" |
13809 | #include <sys/types.h> | |
13810 | #include <sys/param.h> | |
18dbb1f6 | 13811 | int main() { |
4f14bcd8 GD |
13812 | |
13813 | #if BYTE_ORDER != BIG_ENDIAN | |
13814 | not big endian | |
13815 | #endif | |
18dbb1f6 VZ |
13816 | ; return 0; } |
13817 | EOF | |
3f345b47 | 13818 | if { (eval echo configure:13819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 13819 | rm -rf conftest* |
4f14bcd8 | 13820 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
13821 | else |
13822 | echo "configure: failed program was:" >&5 | |
13823 | cat conftest.$ac_ext >&5 | |
13824 | rm -rf conftest* | |
4f14bcd8 | 13825 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
13826 | fi |
13827 | rm -f conftest* | |
698dcdb6 | 13828 | else |
4f14bcd8 GD |
13829 | echo "configure: failed program was:" >&5 |
13830 | cat conftest.$ac_ext >&5 | |
1e487827 | 13831 | fi |
4f14bcd8 GD |
13832 | rm -f conftest* |
13833 | if test $ac_cv_c_bigendian = unknown; then | |
13834 | if test "$cross_compiling" = yes; then | |
13835 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
13836 | else |
13837 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13838 | #line 13839 "configure" |
b3e8d00a | 13839 | #include "confdefs.h" |
4f14bcd8 GD |
13840 | main () { |
13841 | /* Are we little or big endian? From Harbison&Steele. */ | |
13842 | union | |
13843 | { | |
13844 | long l; | |
13845 | char c[sizeof (long)]; | |
13846 | } u; | |
13847 | u.l = 1; | |
13848 | exit (u.c[sizeof (long) - 1] == 1); | |
13849 | } | |
b3e8d00a | 13850 | EOF |
3f345b47 | 13851 | if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13852 | then |
13853 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
13854 | else |
13855 | echo "configure: failed program was:" >&5 | |
13856 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13857 | rm -fr conftest* |
13858 | ac_cv_c_bigendian=yes | |
b3e8d00a | 13859 | fi |
4f14bcd8 | 13860 | rm -fr conftest* |
b3e8d00a VZ |
13861 | fi |
13862 | ||
4f14bcd8 GD |
13863 | fi |
13864 | fi | |
13865 | ||
13866 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13867 | if test $ac_cv_c_bigendian = unknown; then | |
13868 | 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 | |
13869 | fi | |
13870 | if test $ac_cv_c_bigendian = yes; then | |
13871 | cat >> confdefs.h <<\EOF | |
13872 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 13873 | EOF |
4f14bcd8 | 13874 | |
b3e8d00a | 13875 | fi |
b3e8d00a VZ |
13876 | |
13877 | ||
4f14bcd8 | 13878 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
3f345b47 | 13879 | echo "configure:13880: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
13880 | if test -z "$CXXCPP"; then |
13881 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
13882 | echo $ac_n "(cached) $ac_c" 1>&6 |
13883 | else | |
4f14bcd8 GD |
13884 | ac_ext=C |
13885 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13886 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13887 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13888 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13889 | cross_compiling=$ac_cv_prog_cxx_cross | |
13890 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 13891 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 13892 | #line 13893 "configure" |
10f2d63a | 13893 | #include "confdefs.h" |
4f14bcd8 | 13894 | #include <stdlib.h> |
698dcdb6 | 13895 | EOF |
4f14bcd8 | 13896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3f345b47 | 13897 | { (eval echo configure:13898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13899 | if test -z "$ac_err"; then | |
13900 | : | |
698dcdb6 | 13901 | else |
4f14bcd8 | 13902 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13903 | echo "configure: failed program was:" >&5 |
13904 | cat conftest.$ac_ext >&5 | |
13905 | rm -rf conftest* | |
4f14bcd8 | 13906 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
13907 | fi |
13908 | rm -f conftest* | |
4f14bcd8 GD |
13909 | ac_cv_prog_CXXCPP="$CXXCPP" |
13910 | ac_ext=C | |
13911 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13912 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13913 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13914 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13915 | cross_compiling=$ac_cv_prog_cxx_cross | |
13916 | fi | |
698dcdb6 | 13917 | fi |
4f14bcd8 GD |
13918 | CXXCPP="$ac_cv_prog_CXXCPP" |
13919 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 13920 | |
4f14bcd8 GD |
13921 | |
13922 | if test "$cross_compiling" = "yes"; then | |
13923 | cat >> confdefs.h <<\EOF | |
13924 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
13925 | EOF |
13926 | ||
4f14bcd8 GD |
13927 | else |
13928 | ||
13929 | ac_ext=C | |
13930 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13931 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13932 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13933 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13934 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 13935 | |
4f14bcd8 GD |
13936 | |
13937 | for ac_hdr in iostream | |
13938 | do | |
13939 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13940 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 13941 | echo "configure:13942: checking for $ac_hdr" >&5 |
4f14bcd8 | 13942 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
13943 | echo $ac_n "(cached) $ac_c" 1>&6 |
13944 | else | |
13945 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 13946 | #line 13947 "configure" |
10f2d63a | 13947 | #include "confdefs.h" |
4f14bcd8 | 13948 | #include <$ac_hdr> |
698dcdb6 | 13949 | EOF |
4f14bcd8 | 13950 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3f345b47 | 13951 | { (eval echo configure:13952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13952 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13953 | if test -z "$ac_err"; then | |
698dcdb6 | 13954 | rm -rf conftest* |
4f14bcd8 | 13955 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 13956 | else |
4f14bcd8 | 13957 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13958 | echo "configure: failed program was:" >&5 |
13959 | cat conftest.$ac_ext >&5 | |
13960 | rm -rf conftest* | |
4f14bcd8 | 13961 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
13962 | fi |
13963 | rm -f conftest* | |
13964 | fi | |
4f14bcd8 | 13965 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 13966 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13967 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
13968 | cat >> confdefs.h <<EOF | |
13969 | #define $ac_tr_hdr 1 | |
10f2d63a | 13970 | EOF |
4f14bcd8 | 13971 | |
698dcdb6 VZ |
13972 | else |
13973 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 13974 | fi |
4f14bcd8 | 13975 | done |
10f2d63a | 13976 | |
10f2d63a | 13977 | |
4f14bcd8 GD |
13978 | if test "$ac_cv_header_iostream" = "yes" ; then |
13979 | : | |
13980 | else | |
13981 | cat >> confdefs.h <<\EOF | |
13982 | #define wxUSE_IOSTREAMH 1 | |
13983 | EOF | |
13984 | ||
13985 | fi | |
1e487827 | 13986 | |
4f14bcd8 GD |
13987 | ac_ext=c |
13988 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13989 | ac_cpp='$CPP $CPPFLAGS' | |
13990 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13991 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13992 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 13993 | |
4f14bcd8 | 13994 | fi |
698dcdb6 VZ |
13995 | |
13996 | ||
13997 | ||
4f14bcd8 | 13998 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
3f345b47 | 13999 | echo "configure:14000: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 14000 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
14001 | echo $ac_n "(cached) $ac_c" 1>&6 |
14002 | else | |
14003 | ||
4f14bcd8 GD |
14004 | |
14005 | ac_ext=C | |
14006 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14007 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14008 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14009 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14010 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 14011 | |
10f2d63a | 14012 | |
4f14bcd8 | 14013 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 14014 | #line 14015 "configure" |
4f14bcd8 | 14015 | #include "confdefs.h" |
10f2d63a | 14016 | |
4f14bcd8 GD |
14017 | |
14018 | int main() { | |
f6bcfd97 | 14019 | |
4f14bcd8 | 14020 | bool b = true; |
f6bcfd97 | 14021 | |
4f14bcd8 GD |
14022 | return 0; |
14023 | ||
698dcdb6 VZ |
14024 | ; return 0; } |
14025 | EOF | |
3f345b47 | 14026 | if { (eval echo configure:14027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14027 | rm -rf conftest* |
14028 | ||
4f14bcd8 GD |
14029 | wx_cv_cpp_bool=yes |
14030 | ||
10f2d63a | 14031 | else |
698dcdb6 VZ |
14032 | echo "configure: failed program was:" >&5 |
14033 | cat conftest.$ac_ext >&5 | |
14034 | rm -rf conftest* | |
14035 | ||
4f14bcd8 GD |
14036 | wx_cv_cpp_bool=no |
14037 | ||
14038 | ||
14039 | fi | |
14040 | rm -f conftest* | |
c521c494 | 14041 | |
4f14bcd8 GD |
14042 | ac_ext=c |
14043 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14044 | ac_cpp='$CPP $CPPFLAGS' | |
14045 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14046 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14047 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 14048 | |
4f14bcd8 GD |
14049 | |
14050 | fi | |
c521c494 | 14051 | |
4f14bcd8 | 14052 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 14053 | |
4f14bcd8 GD |
14054 | if test "$wx_cv_cpp_bool" = "yes"; then |
14055 | cat >> confdefs.h <<\EOF | |
14056 | #define HAVE_BOOL 1 | |
14057 | EOF | |
c521c494 | 14058 | |
4f14bcd8 GD |
14059 | fi |
14060 | ||
14061 | ||
14062 | ||
14063 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
3f345b47 | 14064 | echo "configure:14065: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
14065 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
14066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14068 | else | |
14069 | ac_save_LIBS="$LIBS" | |
14070 | LIBS="-lc $LIBS" | |
14071 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14072 | #line 14073 "configure" |
4f14bcd8 GD |
14073 | #include "confdefs.h" |
14074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14075 | /* We use char because int might match the return type of a gcc2 | |
14076 | builtin and then its argument prototype would still apply. */ | |
14077 | char wcslen(); | |
14078 | ||
14079 | int main() { | |
14080 | wcslen() | |
698dcdb6 VZ |
14081 | ; return 0; } |
14082 | EOF | |
3f345b47 | 14083 | if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14084 | rm -rf conftest* |
4f14bcd8 | 14085 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 14086 | else |
698dcdb6 VZ |
14087 | echo "configure: failed program was:" >&5 |
14088 | cat conftest.$ac_ext >&5 | |
14089 | rm -rf conftest* | |
4f14bcd8 | 14090 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14091 | fi |
698dcdb6 | 14092 | rm -f conftest* |
4f14bcd8 | 14093 | LIBS="$ac_save_LIBS" |
703e0a69 | 14094 | |
1e487827 | 14095 | fi |
4f14bcd8 GD |
14096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14097 | echo "$ac_t""yes" 1>&6 | |
14098 | ||
14099 | cat >> confdefs.h <<\EOF | |
14100 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14101 | EOF |
14102 | ||
3d63bc3a | 14103 | WCHAR_LINK= |
4f14bcd8 | 14104 | |
9d8deca0 | 14105 | else |
4f14bcd8 | 14106 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 14107 | |
4f14bcd8 | 14108 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
3f345b47 | 14109 | echo "configure:14110: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
14110 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
14111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 14112 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14113 | else |
4f14bcd8 GD |
14114 | ac_save_LIBS="$LIBS" |
14115 | LIBS="-lw $LIBS" | |
14116 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14117 | #line 14118 "configure" |
10f2d63a | 14118 | #include "confdefs.h" |
4f14bcd8 GD |
14119 | /* Override any gcc2 internal prototype to avoid an error. */ |
14120 | /* We use char because int might match the return type of a gcc2 | |
14121 | builtin and then its argument prototype would still apply. */ | |
14122 | char wcslen(); | |
10f2d63a | 14123 | |
698dcdb6 | 14124 | int main() { |
4f14bcd8 | 14125 | wcslen() |
698dcdb6 VZ |
14126 | ; return 0; } |
14127 | EOF | |
3f345b47 | 14128 | if { (eval echo configure:14129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14129 | rm -rf conftest* |
4f14bcd8 | 14130 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 14131 | else |
698dcdb6 VZ |
14132 | echo "configure: failed program was:" >&5 |
14133 | cat conftest.$ac_ext >&5 | |
14134 | rm -rf conftest* | |
4f14bcd8 | 14135 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14136 | fi |
698dcdb6 | 14137 | rm -f conftest* |
4f14bcd8 | 14138 | LIBS="$ac_save_LIBS" |
703e0a69 | 14139 | |
1e487827 | 14140 | fi |
4f14bcd8 GD |
14141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14142 | echo "$ac_t""yes" 1>&6 | |
14143 | ||
14144 | cat >> confdefs.h <<\EOF | |
14145 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14146 | EOF |
14147 | ||
3d63bc3a | 14148 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
14149 | |
14150 | else | |
14151 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 14152 | |
4f14bcd8 | 14153 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
3f345b47 | 14154 | echo "configure:14155: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
14155 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
14156 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
14157 | echo $ac_n "(cached) $ac_c" 1>&6 |
14158 | else | |
4f14bcd8 GD |
14159 | ac_save_LIBS="$LIBS" |
14160 | LIBS="-lmsvcrt $LIBS" | |
14161 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14162 | #line 14163 "configure" |
95c8801c | 14163 | #include "confdefs.h" |
4f14bcd8 GD |
14164 | /* Override any gcc2 internal prototype to avoid an error. */ |
14165 | /* We use char because int might match the return type of a gcc2 | |
14166 | builtin and then its argument prototype would still apply. */ | |
14167 | char wcslen(); | |
95c8801c | 14168 | |
4f14bcd8 GD |
14169 | int main() { |
14170 | wcslen() | |
698dcdb6 VZ |
14171 | ; return 0; } |
14172 | EOF | |
3f345b47 | 14173 | if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14174 | rm -rf conftest* |
4f14bcd8 | 14175 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 14176 | else |
698dcdb6 VZ |
14177 | echo "configure: failed program was:" >&5 |
14178 | cat conftest.$ac_ext >&5 | |
14179 | rm -rf conftest* | |
4f14bcd8 | 14180 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 14181 | fi |
698dcdb6 | 14182 | rm -f conftest* |
4f14bcd8 | 14183 | LIBS="$ac_save_LIBS" |
95c8801c VS |
14184 | |
14185 | fi | |
4f14bcd8 GD |
14186 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14187 | echo "$ac_t""yes" 1>&6 | |
14188 | ||
14189 | cat >> confdefs.h <<\EOF | |
14190 | #define HAVE_WCSLEN 1 | |
14191 | EOF | |
698dcdb6 | 14192 | |
3d63bc3a | 14193 | WCHAR_LINK= |
4f14bcd8 GD |
14194 | |
14195 | else | |
14196 | echo "$ac_t""no" 1>&6 | |
14197 | fi | |
10f2d63a | 14198 | |
4f14bcd8 GD |
14199 | |
14200 | fi | |
95c8801c | 14201 | |
4f14bcd8 | 14202 | |
95c8801c | 14203 | fi |
10f2d63a | 14204 | |
1e487827 | 14205 | |
4f14bcd8 | 14206 | for ac_func in wcsrtombs |
eb4efbdc | 14207 | do |
698dcdb6 | 14208 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 14209 | echo "configure:14210: checking for $ac_func" >&5 |
698dcdb6 VZ |
14210 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14212 | else | |
14213 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14214 | #line 14215 "configure" |
eb4efbdc VZ |
14215 | #include "confdefs.h" |
14216 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14217 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
14218 | #include <assert.h> |
14219 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14220 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14221 | builtin and then its argument prototype would still apply. */ |
14222 | char $ac_func(); | |
14223 | ||
14224 | int main() { | |
eb4efbdc VZ |
14225 | |
14226 | /* The GNU C library defines this for functions which it implements | |
14227 | to always fail with ENOSYS. Some functions are actually named | |
14228 | something starting with __ and the normal name is an alias. */ | |
14229 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14230 | choke me | |
14231 | #else | |
698dcdb6 | 14232 | $ac_func(); |
eb4efbdc VZ |
14233 | #endif |
14234 | ||
698dcdb6 | 14235 | ; return 0; } |
eb4efbdc | 14236 | EOF |
3f345b47 | 14237 | if { (eval echo configure:14238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14238 | rm -rf conftest* |
14239 | eval "ac_cv_func_$ac_func=yes" | |
14240 | else | |
14241 | echo "configure: failed program was:" >&5 | |
14242 | cat conftest.$ac_ext >&5 | |
14243 | rm -rf conftest* | |
14244 | eval "ac_cv_func_$ac_func=no" | |
14245 | fi | |
14246 | rm -f conftest* | |
14247 | fi | |
eb4efbdc | 14248 | |
698dcdb6 VZ |
14249 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14250 | echo "$ac_t""yes" 1>&6 | |
14251 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14252 | cat >> confdefs.h <<EOF | |
14253 | #define $ac_tr_func 1 | |
14254 | EOF | |
14255 | ||
14256 | else | |
14257 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14258 | fi |
14259 | done | |
14260 | ||
698dcdb6 | 14261 | |
4f14bcd8 | 14262 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
3f345b47 | 14263 | echo "configure:14264: checking for vprintf" >&5 |
4f14bcd8 | 14264 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
14265 | echo $ac_n "(cached) $ac_c" 1>&6 |
14266 | else | |
4f14bcd8 | 14267 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 14268 | #line 14269 "configure" |
f6bcfd97 | 14269 | #include "confdefs.h" |
4f14bcd8 GD |
14270 | /* System header to define __stub macros and hopefully few prototypes, |
14271 | which can conflict with char vprintf(); below. */ | |
14272 | #include <assert.h> | |
14273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14274 | /* We use char because int might match the return type of a gcc2 | |
14275 | builtin and then its argument prototype would still apply. */ | |
14276 | char vprintf(); | |
14277 | ||
698dcdb6 | 14278 | int main() { |
f6bcfd97 | 14279 | |
4f14bcd8 GD |
14280 | /* The GNU C library defines this for functions which it implements |
14281 | to always fail with ENOSYS. Some functions are actually named | |
14282 | something starting with __ and the normal name is an alias. */ | |
14283 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
14284 | choke me | |
14285 | #else | |
14286 | vprintf(); | |
14287 | #endif | |
f6bcfd97 | 14288 | |
698dcdb6 VZ |
14289 | ; return 0; } |
14290 | EOF | |
3f345b47 | 14291 | if { (eval echo configure:14292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14292 | rm -rf conftest* |
4f14bcd8 | 14293 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 14294 | else |
698dcdb6 VZ |
14295 | echo "configure: failed program was:" >&5 |
14296 | cat conftest.$ac_ext >&5 | |
14297 | rm -rf conftest* | |
4f14bcd8 | 14298 | eval "ac_cv_func_vprintf=no" |
6232543b | 14299 | fi |
698dcdb6 | 14300 | rm -f conftest* |
1e487827 | 14301 | fi |
698dcdb6 | 14302 | |
4f14bcd8 GD |
14303 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
14304 | echo "$ac_t""yes" 1>&6 | |
14305 | cat >> confdefs.h <<\EOF | |
14306 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
14307 | EOF |
14308 | ||
4f14bcd8 GD |
14309 | else |
14310 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14311 | fi |
14312 | ||
4f14bcd8 GD |
14313 | if test "$ac_cv_func_vprintf" != yes; then |
14314 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
3f345b47 | 14315 | echo "configure:14316: checking for _doprnt" >&5 |
4f14bcd8 | 14316 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
14317 | echo $ac_n "(cached) $ac_c" 1>&6 |
14318 | else | |
14319 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14320 | #line 14321 "configure" |
10f2d63a VZ |
14321 | #include "confdefs.h" |
14322 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 14323 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
14324 | #include <assert.h> |
14325 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14326 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14327 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14328 | char _doprnt(); |
698dcdb6 VZ |
14329 | |
14330 | int main() { | |
10f2d63a VZ |
14331 | |
14332 | /* The GNU C library defines this for functions which it implements | |
14333 | to always fail with ENOSYS. Some functions are actually named | |
14334 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 14335 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
14336 | choke me |
14337 | #else | |
4f14bcd8 | 14338 | _doprnt(); |
10f2d63a VZ |
14339 | #endif |
14340 | ||
698dcdb6 | 14341 | ; return 0; } |
10f2d63a | 14342 | EOF |
3f345b47 | 14343 | if { (eval echo configure:14344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14344 | rm -rf conftest* |
4f14bcd8 | 14345 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
14346 | else |
14347 | echo "configure: failed program was:" >&5 | |
14348 | cat conftest.$ac_ext >&5 | |
14349 | rm -rf conftest* | |
4f14bcd8 | 14350 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
14351 | fi |
14352 | rm -f conftest* | |
14353 | fi | |
270a909e | 14354 | |
4f14bcd8 | 14355 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 14356 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14357 | cat >> confdefs.h <<\EOF |
14358 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 14359 | EOF |
4f14bcd8 | 14360 | |
698dcdb6 VZ |
14361 | else |
14362 | echo "$ac_t""no" 1>&6 | |
270a909e | 14363 | fi |
270a909e | 14364 | |
4f14bcd8 | 14365 | fi |
1e487827 | 14366 | |
52e8b690 | 14367 | |
52e8b690 | 14368 | |
52e8b690 | 14369 | |
52e8b690 | 14370 | |
52e8b690 | 14371 | |
4f14bcd8 | 14372 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
3f345b47 | 14373 | echo "configure:14374: checking for vsnprintf" >&5 |
4f14bcd8 | 14374 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 14375 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 14376 | else |
4f14bcd8 | 14377 | |
af15babd | 14378 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 14379 | #line 14380 "configure" |
c63c7106 | 14380 | #include "confdefs.h" |
698dcdb6 | 14381 | |
4f14bcd8 GD |
14382 | #include <stdio.h> |
14383 | #include <stdarg.h> | |
14384 | ||
af15babd VZ |
14385 | int main() { |
14386 | ||
4f14bcd8 GD |
14387 | int wx_test_vsnprintf(const char *, ...); |
14388 | ||
14389 | wx_test_vsnprintf("%s"); | |
14390 | return 0; | |
14391 | } | |
14392 | ||
14393 | int wx_test_vsnprintf(const char *fmt, ...) | |
14394 | { | |
14395 | char *s; | |
14396 | ||
14397 | va_list argp; | |
14398 | va_start(argp, fmt); | |
14399 | vsnprintf(s, 42, fmt, argp); | |
14400 | va_end(argp); | |
14401 | ||
af15babd VZ |
14402 | ; return 0; } |
14403 | EOF | |
3f345b47 | 14404 | if { (eval echo configure:14405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd VZ |
14405 | rm -rf conftest* |
14406 | ||
4f14bcd8 GD |
14407 | wx_cv_func_vsnprintf=yes |
14408 | ||
af15babd VZ |
14409 | else |
14410 | echo "configure: failed program was:" >&5 | |
14411 | cat conftest.$ac_ext >&5 | |
14412 | rm -rf conftest* | |
14413 | ||
4f14bcd8 | 14414 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 14415 | #line 14416 "configure" |
af15babd | 14416 | #include "confdefs.h" |
af15babd | 14417 | |
4f14bcd8 GD |
14418 | #include <stdio.h> |
14419 | #include <stdarg.h> | |
14420 | ||
af15babd VZ |
14421 | int main() { |
14422 | ||
4f14bcd8 GD |
14423 | int wx_test_vsnprintf(const char *, ...); |
14424 | ||
14425 | wx_test_vsnprintf("%s"); | |
14426 | return 0; | |
14427 | } | |
14428 | ||
14429 | int wx_test_vsnprintf(const char *fmt, ...) | |
14430 | { | |
14431 | char *s; | |
af15babd | 14432 | |
4f14bcd8 GD |
14433 | va_list argp; |
14434 | va_start(argp, fmt); | |
14435 | _vsnprintf(s, 42, fmt, argp); | |
14436 | va_end(argp); | |
14437 | ||
af15babd VZ |
14438 | ; return 0; } |
14439 | EOF | |
3f345b47 | 14440 | if { (eval echo configure:14441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14441 | rm -rf conftest* |
4f14bcd8 GD |
14442 | |
14443 | wx_cv_func_vsnprintf=yes | |
14444 | ||
af15babd VZ |
14445 | else |
14446 | echo "configure: failed program was:" >&5 | |
14447 | cat conftest.$ac_ext >&5 | |
14448 | rm -rf conftest* | |
4f14bcd8 GD |
14449 | |
14450 | wx_cv_func_vsnprintf=no | |
14451 | ||
af15babd VZ |
14452 | fi |
14453 | rm -f conftest* | |
4f14bcd8 | 14454 | |
af15babd | 14455 | fi |
4f14bcd8 | 14456 | rm -f conftest* |
af15babd | 14457 | |
af15babd | 14458 | fi |
af15babd | 14459 | |
4f14bcd8 | 14460 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 14461 | |
4f14bcd8 GD |
14462 | if test "$wx_cv_func_vsnprintf" = yes; then |
14463 | cat >> confdefs.h <<\EOF | |
14464 | #define HAVE_VSNPRINTF 1 | |
14465 | EOF | |
14466 | ||
14467 | else | |
14468 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
af15babd VZ |
14469 | fi |
14470 | ||
4f14bcd8 | 14471 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
3f345b47 | 14472 | echo "configure:14473: checking for vsscanf" >&5 |
4f14bcd8 | 14473 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
14474 | echo $ac_n "(cached) $ac_c" 1>&6 |
14475 | else | |
4f14bcd8 | 14476 | |
af15babd | 14477 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 14478 | #line 14479 "configure" |
af15babd | 14479 | #include "confdefs.h" |
af15babd | 14480 | |
4f14bcd8 GD |
14481 | #include <stdio.h> |
14482 | #include <stdarg.h> | |
14483 | ||
af15babd VZ |
14484 | int main() { |
14485 | ||
4f14bcd8 GD |
14486 | int wx_test_vsscanf(const char *, ...); |
14487 | ||
14488 | wx_test_vsscanf("%d"); | |
14489 | return 0; | |
14490 | } | |
af15babd | 14491 | |
4f14bcd8 GD |
14492 | int wx_test_vsscanf(const char *fmt, ...) |
14493 | { | |
14494 | va_list argp; | |
14495 | va_start(argp, fmt); | |
14496 | vsscanf("42", fmt, argp); | |
14497 | va_end(argp); | |
14498 | ||
af15babd VZ |
14499 | ; return 0; } |
14500 | EOF | |
3f345b47 | 14501 | if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14502 | rm -rf conftest* |
4f14bcd8 GD |
14503 | |
14504 | wx_cv_func_vsscanf=yes | |
14505 | ||
af15babd VZ |
14506 | else |
14507 | echo "configure: failed program was:" >&5 | |
14508 | cat conftest.$ac_ext >&5 | |
14509 | rm -rf conftest* | |
4f14bcd8 GD |
14510 | |
14511 | wx_cv_func_vsscanf=no | |
14512 | ||
af15babd VZ |
14513 | fi |
14514 | rm -f conftest* | |
4f14bcd8 | 14515 | |
af15babd VZ |
14516 | fi |
14517 | ||
4f14bcd8 GD |
14518 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
14519 | ||
14520 | if test "$wx_cv_func_vsscanf" = yes; then | |
14521 | cat >> confdefs.h <<\EOF | |
14522 | #define HAVE_VSSCANF 1 | |
af15babd | 14523 | EOF |
4f14bcd8 | 14524 | |
af15babd | 14525 | fi |
af15babd | 14526 | |
4f14bcd8 | 14527 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 14528 | |
4f14bcd8 GD |
14529 | |
14530 | ||
14531 | ac_ext=C | |
14532 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14533 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14534 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14535 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14536 | cross_compiling=$ac_cv_prog_cxx_cross | |
14537 | ||
14538 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
3f345b47 | 14539 | echo "configure:14540: checking if iconv() takes char**" >&5 |
4f14bcd8 | 14540 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
af15babd VZ |
14541 | echo $ac_n "(cached) $ac_c" 1>&6 |
14542 | else | |
4f14bcd8 GD |
14543 | |
14544 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14545 | #line 14546 "configure" |
af15babd | 14546 | #include "confdefs.h" |
4f14bcd8 | 14547 | #include <iconv.h> |
af15babd VZ |
14548 | int main() { |
14549 | ||
4f14bcd8 GD |
14550 | char **inbuf, **outbuf; |
14551 | iconv_t cd; | |
14552 | size_t insz, outsz; | |
14553 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14554 | ||
af15babd VZ |
14555 | ; return 0; } |
14556 | EOF | |
3f345b47 | 14557 | if { (eval echo configure:14558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14558 | rm -rf conftest* |
4f14bcd8 | 14559 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14560 | else |
14561 | echo "configure: failed program was:" >&5 | |
14562 | cat conftest.$ac_ext >&5 | |
14563 | rm -rf conftest* | |
4f14bcd8 | 14564 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14565 | fi |
14566 | rm -f conftest* | |
af15babd | 14567 | |
af15babd | 14568 | fi |
af15babd | 14569 | |
4f14bcd8 GD |
14570 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14571 | ac_ext=c | |
14572 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14573 | ac_cpp='$CPP $CPPFLAGS' | |
14574 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14575 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14576 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14577 | |
4f14bcd8 GD |
14578 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14579 | cat >> confdefs.h <<\EOF | |
14580 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14581 | EOF |
14582 | ||
af15babd VZ |
14583 | fi |
14584 | ||
af15babd | 14585 | |
4f14bcd8 GD |
14586 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14587 | for ac_func in sigaction | |
af15babd VZ |
14588 | do |
14589 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 14590 | echo "configure:14591: checking for $ac_func" >&5 |
af15babd VZ |
14591 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14593 | else | |
14594 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14595 | #line 14596 "configure" |
af15babd VZ |
14596 | #include "confdefs.h" |
14597 | /* System header to define __stub macros and hopefully few prototypes, | |
14598 | which can conflict with char $ac_func(); below. */ | |
14599 | #include <assert.h> | |
14600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14601 | /* We use char because int might match the return type of a gcc2 | |
14602 | builtin and then its argument prototype would still apply. */ | |
14603 | char $ac_func(); | |
14604 | ||
14605 | int main() { | |
14606 | ||
14607 | /* The GNU C library defines this for functions which it implements | |
14608 | to always fail with ENOSYS. Some functions are actually named | |
14609 | something starting with __ and the normal name is an alias. */ | |
14610 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14611 | choke me | |
14612 | #else | |
14613 | $ac_func(); | |
14614 | #endif | |
14615 | ||
14616 | ; return 0; } | |
14617 | EOF | |
3f345b47 | 14618 | if { (eval echo configure:14619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14619 | rm -rf conftest* |
14620 | eval "ac_cv_func_$ac_func=yes" | |
14621 | else | |
14622 | echo "configure: failed program was:" >&5 | |
14623 | cat conftest.$ac_ext >&5 | |
14624 | rm -rf conftest* | |
14625 | eval "ac_cv_func_$ac_func=no" | |
14626 | fi | |
14627 | rm -f conftest* | |
14628 | fi | |
14629 | ||
14630 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14631 | echo "$ac_t""yes" 1>&6 | |
14632 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14633 | cat >> confdefs.h <<EOF | |
14634 | #define $ac_tr_func 1 | |
14635 | EOF | |
4f14bcd8 | 14636 | |
af15babd VZ |
14637 | else |
14638 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14639 | fi |
14640 | done | |
14641 | ||
14642 | ||
14643 | if test "$ac_cv_func_sigaction" = "no"; then | |
14644 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14645 | wxUSE_ON_FATAL_EXCEPTION=no | |
14646 | fi | |
14647 | ||
14648 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14649 | ||
14650 | ac_ext=C | |
14651 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14652 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14653 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14654 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14655 | cross_compiling=$ac_cv_prog_cxx_cross | |
14656 | ||
14657 | ||
14658 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
3f345b47 | 14659 | echo "configure:14660: checking for sa_handler type" >&5 |
4f14bcd8 | 14660 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
14661 | echo $ac_n "(cached) $ac_c" 1>&6 |
14662 | else | |
4f14bcd8 GD |
14663 | |
14664 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14665 | #line 14666 "configure" |
af15babd | 14666 | #include "confdefs.h" |
4f14bcd8 | 14667 | #include <signal.h> |
af15babd | 14668 | int main() { |
4f14bcd8 GD |
14669 | |
14670 | extern void testSigHandler(int); | |
14671 | ||
14672 | struct sigaction sa; | |
14673 | sa.sa_handler = testSigHandler; | |
14674 | ||
af15babd VZ |
14675 | ; return 0; } |
14676 | EOF | |
3f345b47 | 14677 | if { (eval echo configure:14678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14678 | rm -rf conftest* |
4f14bcd8 GD |
14679 | |
14680 | wx_cv_type_sa_handler=int | |
14681 | ||
af15babd VZ |
14682 | else |
14683 | echo "configure: failed program was:" >&5 | |
14684 | cat conftest.$ac_ext >&5 | |
14685 | rm -rf conftest* | |
4f14bcd8 GD |
14686 | |
14687 | wx_cv_type_sa_handler=void | |
14688 | ||
af15babd VZ |
14689 | fi |
14690 | rm -f conftest* | |
4f14bcd8 GD |
14691 | |
14692 | fi | |
14693 | ||
14694 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14695 | ||
14696 | ac_ext=c | |
14697 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14698 | ac_cpp='$CPP $CPPFLAGS' | |
14699 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14700 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14701 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14702 | |
4f14bcd8 GD |
14703 | |
14704 | cat >> confdefs.h <<EOF | |
14705 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14706 | EOF |
14707 | ||
4f14bcd8 GD |
14708 | fi |
14709 | fi | |
af15babd | 14710 | |
4f14bcd8 | 14711 | for ac_func in vfork |
af15babd VZ |
14712 | do |
14713 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 14714 | echo "configure:14715: checking for $ac_func" >&5 |
af15babd VZ |
14715 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14717 | else | |
14718 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14719 | #line 14720 "configure" |
af15babd VZ |
14720 | #include "confdefs.h" |
14721 | /* System header to define __stub macros and hopefully few prototypes, | |
14722 | which can conflict with char $ac_func(); below. */ | |
14723 | #include <assert.h> | |
14724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14725 | /* We use char because int might match the return type of a gcc2 | |
14726 | builtin and then its argument prototype would still apply. */ | |
14727 | char $ac_func(); | |
14728 | ||
14729 | int main() { | |
14730 | ||
14731 | /* The GNU C library defines this for functions which it implements | |
14732 | to always fail with ENOSYS. Some functions are actually named | |
14733 | something starting with __ and the normal name is an alias. */ | |
14734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14735 | choke me | |
14736 | #else | |
14737 | $ac_func(); | |
14738 | #endif | |
14739 | ||
14740 | ; return 0; } | |
14741 | EOF | |
3f345b47 | 14742 | if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14743 | rm -rf conftest* |
14744 | eval "ac_cv_func_$ac_func=yes" | |
14745 | else | |
14746 | echo "configure: failed program was:" >&5 | |
14747 | cat conftest.$ac_ext >&5 | |
14748 | rm -rf conftest* | |
14749 | eval "ac_cv_func_$ac_func=no" | |
14750 | fi | |
14751 | rm -f conftest* | |
14752 | fi | |
14753 | ||
14754 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14755 | echo "$ac_t""yes" 1>&6 | |
14756 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14757 | cat >> confdefs.h <<EOF | |
14758 | #define $ac_tr_func 1 | |
14759 | EOF | |
4f14bcd8 | 14760 | |
af15babd VZ |
14761 | else |
14762 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14763 | fi |
14764 | done | |
14765 | ||
af15babd | 14766 | |
ade35f11 VZ |
14767 | for ac_func in mkstemp mktemp |
14768 | do | |
14769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 14770 | echo "configure:14771: checking for $ac_func" >&5 |
ade35f11 VZ |
14771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14773 | else | |
14774 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14775 | #line 14776 "configure" |
ade35f11 VZ |
14776 | #include "confdefs.h" |
14777 | /* System header to define __stub macros and hopefully few prototypes, | |
14778 | which can conflict with char $ac_func(); below. */ | |
14779 | #include <assert.h> | |
14780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14781 | /* We use char because int might match the return type of a gcc2 | |
14782 | builtin and then its argument prototype would still apply. */ | |
14783 | char $ac_func(); | |
14784 | ||
14785 | int main() { | |
14786 | ||
14787 | /* The GNU C library defines this for functions which it implements | |
14788 | to always fail with ENOSYS. Some functions are actually named | |
14789 | something starting with __ and the normal name is an alias. */ | |
14790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14791 | choke me | |
14792 | #else | |
14793 | $ac_func(); | |
14794 | #endif | |
14795 | ||
14796 | ; return 0; } | |
14797 | EOF | |
3f345b47 | 14798 | if { (eval echo configure:14799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
14799 | rm -rf conftest* |
14800 | eval "ac_cv_func_$ac_func=yes" | |
14801 | else | |
14802 | echo "configure: failed program was:" >&5 | |
14803 | cat conftest.$ac_ext >&5 | |
14804 | rm -rf conftest* | |
14805 | eval "ac_cv_func_$ac_func=no" | |
14806 | fi | |
14807 | rm -f conftest* | |
14808 | fi | |
14809 | ||
14810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14811 | echo "$ac_t""yes" 1>&6 | |
14812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14813 | cat >> confdefs.h <<EOF | |
14814 | #define $ac_tr_func 1 | |
14815 | EOF | |
14816 | break | |
14817 | else | |
14818 | echo "$ac_t""no" 1>&6 | |
14819 | fi | |
14820 | done | |
14821 | ||
14822 | ||
4f14bcd8 | 14823 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
3f345b47 | 14824 | echo "configure:14825: checking for statfs" >&5 |
4f14bcd8 GD |
14825 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
14826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14827 | else | |
14828 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14829 | #line 14830 "configure" |
4f14bcd8 GD |
14830 | #include "confdefs.h" |
14831 | ||
14832 | #if defined(__BSD__) | |
14833 | #include <sys/param.h> | |
14834 | #include <sys/mount.h> | |
14835 | #else | |
14836 | #include <sys/vfs.h> | |
14837 | #endif | |
14838 | ||
14839 | int main() { | |
14840 | ||
14841 | long l; | |
14842 | struct statfs fs; | |
14843 | statfs("/", &fs); | |
14844 | l = fs.f_bsize; | |
14845 | l += fs.f_blocks; | |
14846 | l += fs.f_bavail; | |
14847 | ||
14848 | ; return 0; } | |
14849 | EOF | |
3f345b47 | 14850 | if { (eval echo configure:14851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14851 | rm -rf conftest* |
14852 | ||
14853 | wx_cv_func_statfs=yes | |
14854 | ||
14855 | else | |
14856 | echo "configure: failed program was:" >&5 | |
14857 | cat conftest.$ac_ext >&5 | |
14858 | rm -rf conftest* | |
14859 | ||
14860 | wx_cv_func_statfs=no | |
af15babd VZ |
14861 | |
14862 | ||
14863 | fi | |
4f14bcd8 | 14864 | rm -f conftest* |
af15babd VZ |
14865 | |
14866 | fi | |
14867 | ||
4f14bcd8 GD |
14868 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
14869 | ||
14870 | if test "$wx_cv_func_statfs" = "yes"; then | |
14871 | cat >> confdefs.h <<\EOF | |
14872 | #define HAVE_STATFS 1 | |
14873 | EOF | |
14874 | ||
14875 | else | |
14876 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
3f345b47 | 14877 | echo "configure:14878: checking for statvfs" >&5 |
4f14bcd8 | 14878 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
14879 | echo $ac_n "(cached) $ac_c" 1>&6 |
14880 | else | |
14881 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14882 | #line 14883 "configure" |
af15babd | 14883 | #include "confdefs.h" |
af15babd | 14884 | |
4f14bcd8 GD |
14885 | #include <sys/statvfs.h> |
14886 | ||
af15babd VZ |
14887 | int main() { |
14888 | ||
4f14bcd8 GD |
14889 | long l; |
14890 | struct statvfs fs; | |
14891 | statvfs("/", &fs); | |
14892 | l = fs.f_bsize; | |
14893 | l += fs.f_blocks; | |
14894 | l += fs.f_bavail; | |
14895 | ||
af15babd VZ |
14896 | ; return 0; } |
14897 | EOF | |
3f345b47 | 14898 | if { (eval echo configure:14899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14899 | rm -rf conftest* |
4f14bcd8 GD |
14900 | |
14901 | wx_cv_func_statvfs=yes | |
14902 | ||
af15babd VZ |
14903 | else |
14904 | echo "configure: failed program was:" >&5 | |
14905 | cat conftest.$ac_ext >&5 | |
14906 | rm -rf conftest* | |
4f14bcd8 GD |
14907 | |
14908 | wx_cv_func_statvfs=no | |
14909 | ||
14910 | ||
af15babd VZ |
14911 | fi |
14912 | rm -f conftest* | |
4f14bcd8 | 14913 | |
af15babd VZ |
14914 | fi |
14915 | ||
4f14bcd8 | 14916 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 14917 | |
4f14bcd8 GD |
14918 | if test "$wx_cv_func_statvfs" = "yes"; then |
14919 | cat >> confdefs.h <<\EOF | |
14920 | #define HAVE_STATVFS 1 | |
14921 | EOF | |
af15babd | 14922 | |
4f14bcd8 GD |
14923 | else |
14924 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
14925 | fi | |
14926 | fi | |
af15babd | 14927 | |
4f14bcd8 GD |
14928 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
14929 | for ac_func in fcntl flock | |
af15babd VZ |
14930 | do |
14931 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 14932 | echo "configure:14933: checking for $ac_func" >&5 |
af15babd VZ |
14933 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14935 | else | |
14936 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14937 | #line 14938 "configure" |
af15babd VZ |
14938 | #include "confdefs.h" |
14939 | /* System header to define __stub macros and hopefully few prototypes, | |
14940 | which can conflict with char $ac_func(); below. */ | |
14941 | #include <assert.h> | |
14942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
14943 | /* We use char because int might match the return type of a gcc2 |
14944 | builtin and then its argument prototype would still apply. */ | |
14945 | char $ac_func(); | |
14946 | ||
14947 | int main() { | |
14948 | ||
14949 | /* The GNU C library defines this for functions which it implements | |
14950 | to always fail with ENOSYS. Some functions are actually named | |
14951 | something starting with __ and the normal name is an alias. */ | |
14952 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14953 | choke me | |
14954 | #else | |
14955 | $ac_func(); | |
14956 | #endif | |
14957 | ||
14958 | ; return 0; } | |
14959 | EOF | |
3f345b47 | 14960 | if { (eval echo configure:14961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14961 | rm -rf conftest* |
14962 | eval "ac_cv_func_$ac_func=yes" | |
14963 | else | |
14964 | echo "configure: failed program was:" >&5 | |
14965 | cat conftest.$ac_ext >&5 | |
14966 | rm -rf conftest* | |
14967 | eval "ac_cv_func_$ac_func=no" | |
14968 | fi | |
14969 | rm -f conftest* | |
14970 | fi | |
14971 | ||
14972 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14973 | echo "$ac_t""yes" 1>&6 | |
14974 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14975 | cat >> confdefs.h <<EOF | |
14976 | #define $ac_tr_func 1 | |
14977 | EOF | |
4f14bcd8 | 14978 | break |
af15babd VZ |
14979 | else |
14980 | echo "$ac_t""no" 1>&6 | |
14981 | fi | |
14982 | done | |
14983 | ||
14984 | ||
4f14bcd8 GD |
14985 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
14986 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
14987 | wxUSE_SNGLINST_CHECKER=no | |
14988 | fi | |
14989 | fi | |
af15babd | 14990 | |
4f14bcd8 | 14991 | for ac_func in timegm |
af15babd VZ |
14992 | do |
14993 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 14994 | echo "configure:14995: checking for $ac_func" >&5 |
af15babd VZ |
14995 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14997 | else | |
14998 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 14999 | #line 15000 "configure" |
af15babd VZ |
15000 | #include "confdefs.h" |
15001 | /* System header to define __stub macros and hopefully few prototypes, | |
15002 | which can conflict with char $ac_func(); below. */ | |
15003 | #include <assert.h> | |
15004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15005 | /* We use char because int might match the return type of a gcc2 | |
15006 | builtin and then its argument prototype would still apply. */ | |
15007 | char $ac_func(); | |
15008 | ||
698dcdb6 | 15009 | int main() { |
698dcdb6 | 15010 | |
af15babd VZ |
15011 | /* The GNU C library defines this for functions which it implements |
15012 | to always fail with ENOSYS. Some functions are actually named | |
15013 | something starting with __ and the normal name is an alias. */ | |
15014 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15015 | choke me | |
15016 | #else | |
15017 | $ac_func(); | |
15018 | #endif | |
15019 | ||
698dcdb6 VZ |
15020 | ; return 0; } |
15021 | EOF | |
3f345b47 | 15022 | if { (eval echo configure:15023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15023 | rm -rf conftest* |
af15babd | 15024 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15025 | else |
15026 | echo "configure: failed program was:" >&5 | |
15027 | cat conftest.$ac_ext >&5 | |
15028 | rm -rf conftest* | |
af15babd | 15029 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 15030 | fi |
9952adac | 15031 | rm -f conftest* |
af15babd | 15032 | fi |
703e0a69 | 15033 | |
af15babd VZ |
15034 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15035 | echo "$ac_t""yes" 1>&6 | |
15036 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
15037 | cat >> confdefs.h <<EOF |
15038 | #define $ac_tr_func 1 | |
15039 | EOF | |
15040 | ||
15041 | else | |
15042 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15043 | fi |
15044 | done | |
15045 | ||
15046 | ||
4f14bcd8 | 15047 | for ac_func in putenv setenv |
10f2d63a | 15048 | do |
698dcdb6 | 15049 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 15050 | echo "configure:15051: checking for $ac_func" >&5 |
698dcdb6 VZ |
15051 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15053 | else | |
15054 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 15055 | #line 15056 "configure" |
af15babd VZ |
15056 | #include "confdefs.h" |
15057 | /* System header to define __stub macros and hopefully few prototypes, | |
15058 | which can conflict with char $ac_func(); below. */ | |
15059 | #include <assert.h> | |
15060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15061 | /* We use char because int might match the return type of a gcc2 | |
15062 | builtin and then its argument prototype would still apply. */ | |
15063 | char $ac_func(); | |
15064 | ||
15065 | int main() { | |
15066 | ||
15067 | /* The GNU C library defines this for functions which it implements | |
15068 | to always fail with ENOSYS. Some functions are actually named | |
15069 | something starting with __ and the normal name is an alias. */ | |
15070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15071 | choke me | |
15072 | #else | |
15073 | $ac_func(); | |
15074 | #endif | |
15075 | ||
15076 | ; return 0; } | |
15077 | EOF | |
3f345b47 | 15078 | if { (eval echo configure:15079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15079 | rm -rf conftest* |
15080 | eval "ac_cv_func_$ac_func=yes" | |
15081 | else | |
15082 | echo "configure: failed program was:" >&5 | |
15083 | cat conftest.$ac_ext >&5 | |
15084 | rm -rf conftest* | |
15085 | eval "ac_cv_func_$ac_func=no" | |
15086 | fi | |
15087 | rm -f conftest* | |
15088 | fi | |
15089 | ||
15090 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15091 | echo "$ac_t""yes" 1>&6 | |
15092 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15093 | cat >> confdefs.h <<EOF | |
15094 | #define $ac_tr_func 1 | |
15095 | EOF | |
4f14bcd8 | 15096 | break |
af15babd VZ |
15097 | else |
15098 | echo "$ac_t""no" 1>&6 | |
15099 | fi | |
af15babd VZ |
15100 | done |
15101 | ||
15102 | ||
4f14bcd8 GD |
15103 | HAVE_SOME_SLEEP_FUNC=0 |
15104 | if test "$USE_BEOS" = 1; then | |
15105 | cat >> confdefs.h <<\EOF | |
15106 | #define HAVE_SLEEP 1 | |
af15babd VZ |
15107 | EOF |
15108 | ||
4f14bcd8 | 15109 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15110 | fi |
15111 | ||
4f14bcd8 GD |
15112 | if test "$USE_DARWIN" = 1; then |
15113 | cat >> confdefs.h <<\EOF | |
15114 | #define HAVE_USLEEP 1 | |
af15babd | 15115 | EOF |
10f2d63a | 15116 | |
4f14bcd8 | 15117 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15118 | fi |
15119 | ||
4f14bcd8 GD |
15120 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
15121 | POSIX4_LINK= | |
15122 | for ac_func in nanosleep | |
15123 | do | |
15124 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 15125 | echo "configure:15126: checking for $ac_func" >&5 |
4f14bcd8 | 15126 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15127 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15128 | else |
4f14bcd8 | 15129 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15130 | #line 15131 "configure" |
10f2d63a | 15131 | #include "confdefs.h" |
4f14bcd8 GD |
15132 | /* System header to define __stub macros and hopefully few prototypes, |
15133 | which can conflict with char $ac_func(); below. */ | |
15134 | #include <assert.h> | |
10f2d63a VZ |
15135 | /* Override any gcc2 internal prototype to avoid an error. */ |
15136 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15137 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15138 | char $ac_func(); |
698dcdb6 VZ |
15139 | |
15140 | int main() { | |
4f14bcd8 GD |
15141 | |
15142 | /* The GNU C library defines this for functions which it implements | |
15143 | to always fail with ENOSYS. Some functions are actually named | |
15144 | something starting with __ and the normal name is an alias. */ | |
15145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15146 | choke me | |
15147 | #else | |
15148 | $ac_func(); | |
15149 | #endif | |
15150 | ||
698dcdb6 VZ |
15151 | ; return 0; } |
15152 | EOF | |
3f345b47 | 15153 | if { (eval echo configure:15154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15154 | rm -rf conftest* |
4f14bcd8 | 15155 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15156 | else |
15157 | echo "configure: failed program was:" >&5 | |
15158 | cat conftest.$ac_ext >&5 | |
15159 | rm -rf conftest* | |
4f14bcd8 | 15160 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15161 | fi |
15162 | rm -f conftest* | |
698dcdb6 | 15163 | fi |
4f14bcd8 GD |
15164 | |
15165 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15166 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15167 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15168 | cat >> confdefs.h <<EOF | |
15169 | #define $ac_tr_func 1 | |
15170 | EOF | |
15171 | cat >> confdefs.h <<\EOF | |
15172 | #define HAVE_NANOSLEEP 1 | |
15173 | EOF | |
15174 | ||
10f2d63a | 15175 | else |
698dcdb6 | 15176 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15177 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
3f345b47 | 15178 | echo "configure:15179: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 15179 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15180 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15182 | else |
698dcdb6 | 15183 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15184 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15185 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15186 | #line 15187 "configure" |
10f2d63a VZ |
15187 | #include "confdefs.h" |
15188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15189 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15190 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15191 | char nanosleep(); |
698dcdb6 VZ |
15192 | |
15193 | int main() { | |
4f14bcd8 | 15194 | nanosleep() |
698dcdb6 VZ |
15195 | ; return 0; } |
15196 | EOF | |
3f345b47 | 15197 | if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15198 | rm -rf conftest* |
15199 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15200 | else | |
15201 | echo "configure: failed program was:" >&5 | |
15202 | cat conftest.$ac_ext >&5 | |
15203 | rm -rf conftest* | |
15204 | eval "ac_cv_lib_$ac_lib_var=no" | |
15205 | fi | |
15206 | rm -f conftest* | |
15207 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15208 | |
698dcdb6 VZ |
15209 | fi |
15210 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15211 | echo "$ac_t""yes" 1>&6 | |
15212 | ||
4f14bcd8 GD |
15213 | cat >> confdefs.h <<\EOF |
15214 | #define HAVE_NANOSLEEP 1 | |
15215 | EOF | |
15216 | ||
3d63bc3a | 15217 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 15218 | |
10f2d63a | 15219 | else |
698dcdb6 | 15220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15221 | |
4f14bcd8 GD |
15222 | for ac_func in usleep |
15223 | do | |
15224 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 15225 | echo "configure:15226: checking for $ac_func" >&5 |
4f14bcd8 | 15226 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15227 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15228 | else |
698dcdb6 | 15229 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15230 | #line 15231 "configure" |
10f2d63a | 15231 | #include "confdefs.h" |
4f14bcd8 GD |
15232 | /* System header to define __stub macros and hopefully few prototypes, |
15233 | which can conflict with char $ac_func(); below. */ | |
15234 | #include <assert.h> | |
15235 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15236 | /* We use char because int might match the return type of a gcc2 | |
15237 | builtin and then its argument prototype would still apply. */ | |
15238 | char $ac_func(); | |
15239 | ||
15240 | int main() { | |
15241 | ||
15242 | /* The GNU C library defines this for functions which it implements | |
15243 | to always fail with ENOSYS. Some functions are actually named | |
15244 | something starting with __ and the normal name is an alias. */ | |
15245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15246 | choke me | |
15247 | #else | |
15248 | $ac_func(); | |
15249 | #endif | |
15250 | ||
15251 | ; return 0; } | |
698dcdb6 | 15252 | EOF |
3f345b47 | 15253 | if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15254 | rm -rf conftest* |
4f14bcd8 | 15255 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15256 | else |
698dcdb6 | 15257 | echo "configure: failed program was:" >&5 |
10f2d63a | 15258 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15259 | rm -rf conftest* |
4f14bcd8 | 15260 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15261 | fi |
698dcdb6 | 15262 | rm -f conftest* |
10f2d63a | 15263 | fi |
4f14bcd8 GD |
15264 | |
15265 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15266 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15267 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15268 | cat >> confdefs.h <<EOF | |
15269 | #define $ac_tr_func 1 | |
15270 | EOF | |
15271 | cat >> confdefs.h <<\EOF | |
15272 | #define HAVE_USLEEP 1 | |
15273 | EOF | |
15274 | ||
698dcdb6 VZ |
15275 | else |
15276 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15277 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
15278 | ||
10f2d63a | 15279 | fi |
4f14bcd8 | 15280 | done |
10f2d63a | 15281 | |
4f14bcd8 | 15282 | |
698dcdb6 | 15283 | |
6232543b | 15284 | fi |
10f2d63a | 15285 | |
698dcdb6 | 15286 | |
4f14bcd8 | 15287 | |
1e487827 | 15288 | fi |
4f14bcd8 | 15289 | done |
703e0a69 | 15290 | |
10f2d63a VZ |
15291 | fi |
15292 | ||
4f14bcd8 | 15293 | for ac_func in uname gethostname |
70846f0a | 15294 | do |
698dcdb6 | 15295 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 15296 | echo "configure:15297: checking for $ac_func" >&5 |
698dcdb6 VZ |
15297 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15299 | else | |
15300 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 15301 | #line 15302 "configure" |
70846f0a VZ |
15302 | #include "confdefs.h" |
15303 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15304 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
15305 | #include <assert.h> |
15306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15307 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15308 | builtin and then its argument prototype would still apply. */ |
15309 | char $ac_func(); | |
15310 | ||
15311 | int main() { | |
70846f0a VZ |
15312 | |
15313 | /* The GNU C library defines this for functions which it implements | |
15314 | to always fail with ENOSYS. Some functions are actually named | |
15315 | something starting with __ and the normal name is an alias. */ | |
15316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15317 | choke me | |
15318 | #else | |
698dcdb6 | 15319 | $ac_func(); |
70846f0a VZ |
15320 | #endif |
15321 | ||
698dcdb6 | 15322 | ; return 0; } |
70846f0a | 15323 | EOF |
3f345b47 | 15324 | if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15325 | rm -rf conftest* |
15326 | eval "ac_cv_func_$ac_func=yes" | |
15327 | else | |
15328 | echo "configure: failed program was:" >&5 | |
15329 | cat conftest.$ac_ext >&5 | |
15330 | rm -rf conftest* | |
15331 | eval "ac_cv_func_$ac_func=no" | |
15332 | fi | |
15333 | rm -f conftest* | |
15334 | fi | |
70846f0a | 15335 | |
698dcdb6 VZ |
15336 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15337 | echo "$ac_t""yes" 1>&6 | |
15338 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15339 | cat >> confdefs.h <<EOF | |
15340 | #define $ac_tr_func 1 | |
15341 | EOF | |
4f14bcd8 | 15342 | break |
698dcdb6 VZ |
15343 | else |
15344 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
15345 | fi |
15346 | done | |
15347 | ||
698dcdb6 | 15348 | |
4f14bcd8 GD |
15349 | |
15350 | ac_ext=C | |
15351 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15352 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15353 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15354 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15355 | cross_compiling=$ac_cv_prog_cxx_cross | |
15356 | ||
15357 | ||
15358 | for ac_func in strtok_r | |
10f2d63a | 15359 | do |
4f14bcd8 | 15360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 15361 | echo "configure:15362: checking for $ac_func" >&5 |
4f14bcd8 | 15362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15363 | echo $ac_n "(cached) $ac_c" 1>&6 |
15364 | else | |
15365 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 15366 | #line 15367 "configure" |
10f2d63a | 15367 | #include "confdefs.h" |
4f14bcd8 GD |
15368 | /* System header to define __stub macros and hopefully few prototypes, |
15369 | which can conflict with char $ac_func(); below. */ | |
15370 | #include <assert.h> | |
15371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15372 | #ifdef __cplusplus | |
15373 | extern "C" | |
15374 | #endif | |
15375 | /* We use char because int might match the return type of a gcc2 | |
15376 | builtin and then its argument prototype would still apply. */ | |
15377 | char $ac_func(); | |
15378 | ||
15379 | int main() { | |
15380 | ||
15381 | /* The GNU C library defines this for functions which it implements | |
15382 | to always fail with ENOSYS. Some functions are actually named | |
15383 | something starting with __ and the normal name is an alias. */ | |
15384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15385 | choke me | |
15386 | #else | |
15387 | $ac_func(); | |
15388 | #endif | |
15389 | ||
15390 | ; return 0; } | |
698dcdb6 | 15391 | EOF |
3f345b47 | 15392 | if { (eval echo configure:15393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15393 | rm -rf conftest* |
4f14bcd8 | 15394 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15395 | else |
698dcdb6 | 15396 | echo "configure: failed program was:" >&5 |
10f2d63a | 15397 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15398 | rm -rf conftest* |
4f14bcd8 | 15399 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15400 | fi |
698dcdb6 | 15401 | rm -f conftest* |
10f2d63a | 15402 | fi |
4f14bcd8 GD |
15403 | |
15404 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15405 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 15406 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 15407 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15408 | #define $ac_tr_func 1 |
10f2d63a | 15409 | EOF |
698dcdb6 VZ |
15410 | |
15411 | else | |
15412 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15413 | fi |
15414 | done | |
15415 | ||
698dcdb6 | 15416 | |
4f14bcd8 GD |
15417 | ac_ext=c |
15418 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15419 | ac_cpp='$CPP $CPPFLAGS' | |
15420 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15421 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15422 | cross_compiling=$ac_cv_prog_cc_cross | |
15423 | ||
15424 | ||
15425 | INET_LINK= | |
15426 | for ac_func in inet_addr | |
15427 | do | |
15428 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 15429 | echo "configure:15430: checking for $ac_func" >&5 |
4f14bcd8 | 15430 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15431 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15432 | else |
4f14bcd8 | 15433 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15434 | #line 15435 "configure" |
10f2d63a | 15435 | #include "confdefs.h" |
4f14bcd8 GD |
15436 | /* System header to define __stub macros and hopefully few prototypes, |
15437 | which can conflict with char $ac_func(); below. */ | |
15438 | #include <assert.h> | |
10f2d63a VZ |
15439 | /* Override any gcc2 internal prototype to avoid an error. */ |
15440 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15441 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15442 | char $ac_func(); |
698dcdb6 VZ |
15443 | |
15444 | int main() { | |
4f14bcd8 GD |
15445 | |
15446 | /* The GNU C library defines this for functions which it implements | |
15447 | to always fail with ENOSYS. Some functions are actually named | |
15448 | something starting with __ and the normal name is an alias. */ | |
15449 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15450 | choke me | |
15451 | #else | |
15452 | $ac_func(); | |
15453 | #endif | |
15454 | ||
698dcdb6 VZ |
15455 | ; return 0; } |
15456 | EOF | |
3f345b47 | 15457 | if { (eval echo configure:15458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15458 | rm -rf conftest* |
4f14bcd8 | 15459 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15460 | else |
15461 | echo "configure: failed program was:" >&5 | |
15462 | cat conftest.$ac_ext >&5 | |
15463 | rm -rf conftest* | |
4f14bcd8 | 15464 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15465 | fi |
15466 | rm -f conftest* | |
698dcdb6 | 15467 | fi |
4f14bcd8 GD |
15468 | |
15469 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15470 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15471 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15472 | cat >> confdefs.h <<EOF | |
15473 | #define $ac_tr_func 1 | |
15474 | EOF | |
15475 | cat >> confdefs.h <<\EOF | |
15476 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
15477 | EOF |
15478 | ||
15479 | else | |
698dcdb6 | 15480 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15481 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
3f345b47 | 15482 | echo "configure:15483: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 15483 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15484 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15486 | else |
698dcdb6 | 15487 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15488 | LIBS="-lnsl $LIBS" |
698dcdb6 | 15489 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15490 | #line 15491 "configure" |
10f2d63a VZ |
15491 | #include "confdefs.h" |
15492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15493 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15494 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15495 | char inet_addr(); |
698dcdb6 VZ |
15496 | |
15497 | int main() { | |
4f14bcd8 | 15498 | inet_addr() |
698dcdb6 VZ |
15499 | ; return 0; } |
15500 | EOF | |
3f345b47 | 15501 | if { (eval echo configure:15502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15502 | rm -rf conftest* |
15503 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15504 | else | |
15505 | echo "configure: failed program was:" >&5 | |
15506 | cat conftest.$ac_ext >&5 | |
15507 | rm -rf conftest* | |
15508 | eval "ac_cv_lib_$ac_lib_var=no" | |
15509 | fi | |
15510 | rm -f conftest* | |
15511 | LIBS="$ac_save_LIBS" | |
15512 | ||
15513 | fi | |
15514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15515 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15516 | INET_LINK="nsl" |
10f2d63a | 15517 | else |
698dcdb6 | 15518 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15519 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
3f345b47 | 15520 | echo "configure:15521: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 15521 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15522 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15524 | else |
698dcdb6 | 15525 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15526 | LIBS="-lresolv $LIBS" |
698dcdb6 | 15527 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15528 | #line 15529 "configure" |
10f2d63a VZ |
15529 | #include "confdefs.h" |
15530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15531 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15532 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15533 | char inet_addr(); |
698dcdb6 VZ |
15534 | |
15535 | int main() { | |
4f14bcd8 | 15536 | inet_addr() |
698dcdb6 VZ |
15537 | ; return 0; } |
15538 | EOF | |
3f345b47 | 15539 | if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15540 | rm -rf conftest* |
15541 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15542 | else | |
15543 | echo "configure: failed program was:" >&5 | |
15544 | cat conftest.$ac_ext >&5 | |
15545 | rm -rf conftest* | |
15546 | eval "ac_cv_lib_$ac_lib_var=no" | |
15547 | fi | |
15548 | rm -f conftest* | |
15549 | LIBS="$ac_save_LIBS" | |
15550 | ||
15551 | fi | |
15552 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15553 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15554 | INET_LINK="resolv" |
15555 | ||
698dcdb6 | 15556 | else |
4f14bcd8 GD |
15557 | echo "$ac_t""no" 1>&6 |
15558 | fi | |
698dcdb6 | 15559 | |
4f14bcd8 | 15560 | |
698dcdb6 | 15561 | fi |
4f14bcd8 GD |
15562 | |
15563 | ||
698dcdb6 VZ |
15564 | |
15565 | fi | |
4f14bcd8 GD |
15566 | done |
15567 | ||
15568 | ||
15569 | for ac_func in inet_aton | |
15570 | do | |
15571 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 15572 | echo "configure:15573: checking for $ac_func" >&5 |
4f14bcd8 | 15573 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15574 | echo $ac_n "(cached) $ac_c" 1>&6 |
15575 | else | |
4f14bcd8 | 15576 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15577 | #line 15578 "configure" |
f6bcfd97 | 15578 | #include "confdefs.h" |
4f14bcd8 GD |
15579 | /* System header to define __stub macros and hopefully few prototypes, |
15580 | which can conflict with char $ac_func(); below. */ | |
15581 | #include <assert.h> | |
f6bcfd97 BP |
15582 | /* Override any gcc2 internal prototype to avoid an error. */ |
15583 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15584 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15585 | char $ac_func(); |
698dcdb6 VZ |
15586 | |
15587 | int main() { | |
4f14bcd8 GD |
15588 | |
15589 | /* The GNU C library defines this for functions which it implements | |
15590 | to always fail with ENOSYS. Some functions are actually named | |
15591 | something starting with __ and the normal name is an alias. */ | |
15592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15593 | choke me | |
15594 | #else | |
15595 | $ac_func(); | |
15596 | #endif | |
15597 | ||
698dcdb6 VZ |
15598 | ; return 0; } |
15599 | EOF | |
3f345b47 | 15600 | if { (eval echo configure:15601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15601 | rm -rf conftest* |
4f14bcd8 | 15602 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15603 | else |
15604 | echo "configure: failed program was:" >&5 | |
15605 | cat conftest.$ac_ext >&5 | |
15606 | rm -rf conftest* | |
4f14bcd8 | 15607 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15608 | fi |
15609 | rm -f conftest* | |
698dcdb6 | 15610 | fi |
4f14bcd8 GD |
15611 | |
15612 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15613 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15614 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15615 | cat >> confdefs.h <<EOF | |
15616 | #define $ac_tr_func 1 | |
15617 | EOF | |
15618 | cat >> confdefs.h <<\EOF | |
15619 | #define HAVE_INET_ATON 1 | |
15620 | EOF | |
15621 | ||
10f2d63a | 15622 | else |
698dcdb6 | 15623 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15624 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
3f345b47 | 15625 | echo "configure:15626: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 15626 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15627 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15629 | else |
698dcdb6 | 15630 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15631 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15632 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15633 | #line 15634 "configure" |
10f2d63a | 15634 | #include "confdefs.h" |
6232543b | 15635 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15636 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15637 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15638 | char inet_aton(); |
698dcdb6 VZ |
15639 | |
15640 | int main() { | |
4f14bcd8 | 15641 | inet_aton() |
698dcdb6 VZ |
15642 | ; return 0; } |
15643 | EOF | |
3f345b47 | 15644 | if { (eval echo configure:15645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15645 | rm -rf conftest* |
15646 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15647 | else | |
15648 | echo "configure: failed program was:" >&5 | |
15649 | cat conftest.$ac_ext >&5 | |
15650 | rm -rf conftest* | |
15651 | eval "ac_cv_lib_$ac_lib_var=no" | |
15652 | fi | |
15653 | rm -f conftest* | |
15654 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15655 | |
698dcdb6 VZ |
15656 | fi |
15657 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15658 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15659 | cat >> confdefs.h <<\EOF |
15660 | #define HAVE_INET_ATON 1 | |
15661 | EOF | |
15662 | ||
698dcdb6 VZ |
15663 | else |
15664 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15665 | fi |
15666 | ||
4f14bcd8 | 15667 | |
10f2d63a | 15668 | fi |
4f14bcd8 | 15669 | done |
10f2d63a | 15670 | |
4f14bcd8 GD |
15671 | |
15672 | if test "x$INET_LINK" != "x"; then | |
15673 | cat >> confdefs.h <<\EOF | |
15674 | #define HAVE_INET_ADDR 1 | |
15675 | EOF | |
15676 | ||
3d63bc3a | 15677 | INET_LINK=" -l$INET_LINK" |
6232543b | 15678 | fi |
10f2d63a | 15679 | |
1e487827 | 15680 | fi |
703e0a69 | 15681 | |
698dcdb6 | 15682 | |
4f14bcd8 GD |
15683 | cat > confcache <<\EOF |
15684 | # This file is a shell script that caches the results of configure | |
15685 | # tests run on this system so they can be shared between configure | |
15686 | # scripts and configure runs. It is not useful on other systems. | |
15687 | # If it contains results you don't want to keep, you may remove or edit it. | |
15688 | # | |
15689 | # By default, configure uses ./config.cache as the cache file, | |
15690 | # creating it if it does not exist already. You can give configure | |
15691 | # the --cache-file=FILE option to use a different cache file; that is | |
15692 | # what configure does when it calls configure scripts in | |
15693 | # subdirectories, so they share the cache. | |
15694 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15695 | # config.status only pays attention to the cache file if you give it the | |
15696 | # --recheck option to rerun configure. | |
15697 | # | |
f6bcfd97 | 15698 | EOF |
4f14bcd8 GD |
15699 | # The following way of writing the cache mishandles newlines in values, |
15700 | # but we know of no workaround that is simple, portable, and efficient. | |
15701 | # So, don't put newlines in cache variables' values. | |
15702 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15703 | # and sets the high bit in the cache file unless we assign to the vars. | |
15704 | (set) 2>&1 | | |
15705 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15706 | *ac_space=\ *) | |
15707 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15708 | # turns \\\\ into \\, and sed turns \\ into \). | |
15709 | sed -n \ | |
15710 | -e "s/'/'\\\\''/g" \ | |
15711 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15712 | ;; | |
15713 | *) | |
15714 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15715 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15716 | ;; | |
15717 | esac >> confcache | |
15718 | if cmp -s $cache_file confcache; then | |
15719 | : | |
15720 | else | |
15721 | if test -w $cache_file; then | |
15722 | echo "updating cache $cache_file" | |
15723 | cat confcache > $cache_file | |
f6bcfd97 | 15724 | else |
4f14bcd8 | 15725 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15726 | fi |
4f14bcd8 GD |
15727 | fi |
15728 | rm -f confcache | |
f6bcfd97 | 15729 | |
4f14bcd8 GD |
15730 | |
15731 | ||
15732 | if test "$TOOLKIT" != "MSW"; then | |
15733 | ||
7274f1c7 RL |
15734 | |
15735 | THREADS_LINK= | |
15736 | THREADS_OBJ= | |
15737 | CODE_GEN_FLAGS= | |
15738 | CODE_GEN_FLAGS_CXX= | |
15739 | ||
15740 | if test "$wxUSE_THREADS" = "yes" ; then | |
15741 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 15742 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
15743 | wxUSE_THREADS="no" |
15744 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 15745 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
15746 | wxUSE_THREADS="no" |
15747 | fi | |
4f14bcd8 | 15748 | fi |
4f14bcd8 | 15749 | |
7274f1c7 RL |
15750 | if test "$wxUSE_THREADS" = "yes" ; then |
15751 | ||
15752 | if test "$USE_AIX" = 1; then | |
15753 | THREADS_LIB=pthreads | |
15754 | else | |
15755 | THREADS_LIB=pthread | |
15756 | fi | |
4f14bcd8 | 15757 | |
7274f1c7 | 15758 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
3f345b47 | 15759 | echo "configure:15760: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 15760 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15763 | else |
698dcdb6 | 15764 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15765 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 15766 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15767 | #line 15768 "configure" |
10f2d63a VZ |
15768 | #include "confdefs.h" |
15769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15770 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15771 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15772 | char pthread_create(); |
698dcdb6 VZ |
15773 | |
15774 | int main() { | |
4f14bcd8 | 15775 | pthread_create() |
698dcdb6 VZ |
15776 | ; return 0; } |
15777 | EOF | |
3f345b47 | 15778 | if { (eval echo configure:15779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15779 | rm -rf conftest* |
15780 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15781 | else | |
15782 | echo "configure: failed program was:" >&5 | |
15783 | cat conftest.$ac_ext >&5 | |
15784 | rm -rf conftest* | |
15785 | eval "ac_cv_lib_$ac_lib_var=no" | |
15786 | fi | |
15787 | rm -f conftest* | |
15788 | LIBS="$ac_save_LIBS" | |
15789 | ||
15790 | fi | |
15791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15792 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15793 | |
7274f1c7 RL |
15794 | THREADS_OBJ="threadpsx.lo" |
15795 | THREADS_LINK=$THREADS_LIB | |
15796 | ||
10f2d63a | 15797 | else |
698dcdb6 | 15798 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15799 | |
7274f1c7 | 15800 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
3f345b47 | 15801 | echo "configure:15802: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
15802 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
15803 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15804 | echo $ac_n "(cached) $ac_c" 1>&6 |
15805 | else | |
4f14bcd8 GD |
15806 | ac_save_LIBS="$LIBS" |
15807 | LIBS="-lc_r $LIBS" | |
15808 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 15809 | #line 15810 "configure" |
10f2d63a | 15810 | #include "confdefs.h" |
4f14bcd8 GD |
15811 | /* Override any gcc2 internal prototype to avoid an error. */ |
15812 | /* We use char because int might match the return type of a gcc2 | |
15813 | builtin and then its argument prototype would still apply. */ | |
15814 | char pthread_create(); | |
10f2d63a | 15815 | |
4f14bcd8 GD |
15816 | int main() { |
15817 | pthread_create() | |
698dcdb6 VZ |
15818 | ; return 0; } |
15819 | EOF | |
3f345b47 | 15820 | if { (eval echo configure:15821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15821 | rm -rf conftest* |
4f14bcd8 | 15822 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15823 | else |
698dcdb6 VZ |
15824 | echo "configure: failed program was:" >&5 |
15825 | cat conftest.$ac_ext >&5 | |
15826 | rm -rf conftest* | |
4f14bcd8 | 15827 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15828 | fi |
698dcdb6 | 15829 | rm -f conftest* |
4f14bcd8 | 15830 | LIBS="$ac_save_LIBS" |
d9b9876f | 15831 | |
4f14bcd8 GD |
15832 | fi |
15833 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15834 | echo "$ac_t""yes" 1>&6 | |
15835 | ||
7274f1c7 RL |
15836 | THREADS_OBJ="threadpsx.lo" |
15837 | THREADS_LINK="c_r" | |
15838 | ||
4f14bcd8 GD |
15839 | else |
15840 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 15841 | |
7274f1c7 | 15842 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15843 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
3f345b47 | 15844 | echo "configure:15845: checking for sys/prctl.h" >&5 |
4f14bcd8 | 15845 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 15846 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 15847 | else |
4f14bcd8 | 15848 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15849 | #line 15850 "configure" |
d9b9876f | 15850 | #include "confdefs.h" |
4f14bcd8 | 15851 | #include <sys/prctl.h> |
698dcdb6 | 15852 | EOF |
4f14bcd8 | 15853 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3f345b47 | 15854 | { (eval echo configure:15855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15855 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15856 | if test -z "$ac_err"; then | |
698dcdb6 | 15857 | rm -rf conftest* |
4f14bcd8 | 15858 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 15859 | else |
4f14bcd8 | 15860 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15861 | echo "configure: failed program was:" >&5 |
15862 | cat conftest.$ac_ext >&5 | |
15863 | rm -rf conftest* | |
4f14bcd8 | 15864 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 15865 | fi |
698dcdb6 | 15866 | rm -f conftest* |
4f14bcd8 GD |
15867 | fi |
15868 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15869 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 15870 | |
7274f1c7 RL |
15871 | THREADS_OBJ="threadsgi.lo" |
15872 | ||
4f14bcd8 GD |
15873 | else |
15874 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15875 | fi |
698dcdb6 | 15876 | |
7274f1c7 | 15877 | |
4f14bcd8 | 15878 | fi |
d9b9876f | 15879 | |
7274f1c7 | 15880 | |
4f14bcd8 | 15881 | fi |
d9b9876f | 15882 | |
4f14bcd8 | 15883 | |
7274f1c7 RL |
15884 | if test -z "$THREADS_OBJ" ; then |
15885 | wxUSE_THREADS=no | |
156b2523 | 15886 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 15887 | fi |
4f14bcd8 | 15888 | fi |
4f14bcd8 | 15889 | |
7274f1c7 RL |
15890 | if test "$wxUSE_THREADS" = "yes" ; then |
15891 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
15892 | do |
15893 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f345b47 | 15894 | echo "configure:15895: checking for $ac_func" >&5 |
4f14bcd8 | 15895 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15896 | echo $ac_n "(cached) $ac_c" 1>&6 |
15897 | else | |
4f14bcd8 | 15898 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15899 | #line 15900 "configure" |
d9b9876f | 15900 | #include "confdefs.h" |
4f14bcd8 GD |
15901 | /* System header to define __stub macros and hopefully few prototypes, |
15902 | which can conflict with char $ac_func(); below. */ | |
15903 | #include <assert.h> | |
15904 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15905 | /* We use char because int might match the return type of a gcc2 | |
15906 | builtin and then its argument prototype would still apply. */ | |
15907 | char $ac_func(); | |
15908 | ||
698dcdb6 | 15909 | int main() { |
d9b9876f | 15910 | |
4f14bcd8 GD |
15911 | /* The GNU C library defines this for functions which it implements |
15912 | to always fail with ENOSYS. Some functions are actually named | |
15913 | something starting with __ and the normal name is an alias. */ | |
15914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15915 | choke me | |
15916 | #else | |
15917 | $ac_func(); | |
15918 | #endif | |
15919 | ||
698dcdb6 VZ |
15920 | ; return 0; } |
15921 | EOF | |
3f345b47 | 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_func_$ac_func=yes" |
d9b9876f | 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_func_$ac_func=no" |
6232543b | 15930 | fi |
698dcdb6 | 15931 | rm -f conftest* |
1e487827 | 15932 | fi |
698dcdb6 | 15933 | |
4f14bcd8 GD |
15934 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15935 | echo "$ac_t""yes" 1>&6 | |
15936 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15937 | cat >> confdefs.h <<EOF | |
15938 | #define $ac_tr_func 1 | |
d9b9876f | 15939 | EOF |
4f14bcd8 GD |
15940 | |
15941 | else | |
15942 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15943 | fi |
4f14bcd8 | 15944 | done |
10f2d63a | 15945 | |
10f2d63a | 15946 | |
7274f1c7 RL |
15947 | |
15948 | for ac_hdr in sched.h | |
4f14bcd8 GD |
15949 | do |
15950 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15951 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 15952 | echo "configure:15953: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
15953 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15955 | else |
4f14bcd8 | 15956 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 15957 | #line 15958 "configure" |
4f14bcd8 GD |
15958 | #include "confdefs.h" |
15959 | #include <$ac_hdr> | |
13111b2a | 15960 | EOF |
4f14bcd8 | 15961 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3f345b47 | 15962 | { (eval echo configure:15963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15963 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15964 | if test -z "$ac_err"; then | |
15965 | rm -rf conftest* | |
15966 | eval "ac_cv_header_$ac_safe=yes" | |
15967 | else | |
15968 | echo "$ac_err" >&5 | |
15969 | echo "configure: failed program was:" >&5 | |
15970 | cat conftest.$ac_ext >&5 | |
15971 | rm -rf conftest* | |
15972 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 15973 | fi |
4f14bcd8 | 15974 | rm -f conftest* |
10f2d63a | 15975 | fi |
4f14bcd8 GD |
15976 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15977 | echo "$ac_t""yes" 1>&6 | |
15978 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 15979 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15980 | #define $ac_tr_hdr 1 |
f6bcfd97 | 15981 | EOF |
4f14bcd8 GD |
15982 | |
15983 | else | |
15984 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 15985 | fi |
4f14bcd8 | 15986 | done |
f6bcfd97 | 15987 | |
10f2d63a | 15988 | |
7274f1c7 | 15989 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
3f345b47 | 15990 | echo "configure:15991: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15991 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
15992 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15994 | else | |
15995 | ac_save_LIBS="$LIBS" | |
15996 | LIBS="-l$THREADS_LINK $LIBS" | |
15997 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 15998 | #line 15999 "configure" |
4f14bcd8 GD |
15999 | #include "confdefs.h" |
16000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16001 | /* We use char because int might match the return type of a gcc2 | |
16002 | builtin and then its argument prototype would still apply. */ | |
16003 | char sched_yield(); | |
10f2d63a | 16004 | |
4f14bcd8 GD |
16005 | int main() { |
16006 | sched_yield() | |
16007 | ; return 0; } | |
10f2d63a | 16008 | EOF |
3f345b47 | 16009 | if { (eval echo configure:16010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16010 | rm -rf conftest* |
16011 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16012 | else |
4f14bcd8 GD |
16013 | echo "configure: failed program was:" >&5 |
16014 | cat conftest.$ac_ext >&5 | |
16015 | rm -rf conftest* | |
16016 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16017 | fi |
4f14bcd8 GD |
16018 | rm -f conftest* |
16019 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16020 | |
4f14bcd8 GD |
16021 | fi |
16022 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16023 | echo "$ac_t""yes" 1>&6 | |
16024 | cat >> confdefs.h <<\EOF | |
16025 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
16026 | EOF |
16027 | ||
4f14bcd8 GD |
16028 | else |
16029 | echo "$ac_t""no" 1>&6 | |
16030 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
3f345b47 | 16031 | echo "configure:16032: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
16032 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
16033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16035 | else | |
16036 | ac_save_LIBS="$LIBS" | |
16037 | LIBS="-lposix4 $LIBS" | |
16038 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16039 | #line 16040 "configure" |
4f14bcd8 GD |
16040 | #include "confdefs.h" |
16041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16042 | /* We use char because int might match the return type of a gcc2 | |
16043 | builtin and then its argument prototype would still apply. */ | |
16044 | char sched_yield(); | |
47c13eb7 | 16045 | |
4f14bcd8 GD |
16046 | int main() { |
16047 | sched_yield() | |
16048 | ; return 0; } | |
10f2d63a | 16049 | EOF |
3f345b47 | 16050 | if { (eval echo configure:16051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16051 | rm -rf conftest* |
16052 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16053 | else |
4f14bcd8 GD |
16054 | echo "configure: failed program was:" >&5 |
16055 | cat conftest.$ac_ext >&5 | |
16056 | rm -rf conftest* | |
16057 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16058 | fi |
4f14bcd8 GD |
16059 | rm -f conftest* |
16060 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16061 | |
54276ccf | 16062 | fi |
4f14bcd8 GD |
16063 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16064 | echo "$ac_t""yes" 1>&6 | |
16065 | cat >> confdefs.h <<\EOF | |
16066 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 16067 | EOF |
3d63bc3a | 16068 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
16069 | else |
16070 | echo "$ac_t""no" 1>&6 | |
16071 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 16072 | |
54276ccf VZ |
16073 | fi |
16074 | ||
7274f1c7 | 16075 | |
4f14bcd8 | 16076 | fi |
698dcdb6 | 16077 | |
10f2d63a | 16078 | |
7274f1c7 RL |
16079 | HAVE_PRIOR_FUNCS=0 |
16080 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3f345b47 | 16081 | echo "configure:16082: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16082 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
16083 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16084 | echo $ac_n "(cached) $ac_c" 1>&6 |
16085 | else | |
4f14bcd8 GD |
16086 | ac_save_LIBS="$LIBS" |
16087 | LIBS="-l$THREADS_LINK $LIBS" | |
16088 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16089 | #line 16090 "configure" |
422107f9 | 16090 | #include "confdefs.h" |
4f14bcd8 GD |
16091 | /* Override any gcc2 internal prototype to avoid an error. */ |
16092 | /* We use char because int might match the return type of a gcc2 | |
16093 | builtin and then its argument prototype would still apply. */ | |
16094 | char pthread_attr_getschedpolicy(); | |
16095 | ||
16096 | int main() { | |
16097 | pthread_attr_getschedpolicy() | |
16098 | ; return 0; } | |
698dcdb6 | 16099 | EOF |
3f345b47 | 16100 | if { (eval echo configure:16101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16101 | rm -rf conftest* |
4f14bcd8 | 16102 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16103 | else |
698dcdb6 | 16104 | echo "configure: failed program was:" >&5 |
422107f9 | 16105 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16106 | rm -rf conftest* |
4f14bcd8 | 16107 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16108 | fi |
698dcdb6 | 16109 | rm -f conftest* |
4f14bcd8 GD |
16110 | LIBS="$ac_save_LIBS" |
16111 | ||
422107f9 | 16112 | fi |
4f14bcd8 | 16113 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16114 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16115 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
3f345b47 | 16116 | echo "configure:16117: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16117 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16118 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16120 | else |
698dcdb6 | 16121 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16122 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16123 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 16124 | #line 16125 "configure" |
422107f9 VZ |
16125 | #include "confdefs.h" |
16126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16127 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16128 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16129 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
16130 | |
16131 | int main() { | |
4f14bcd8 | 16132 | pthread_attr_setschedparam() |
698dcdb6 VZ |
16133 | ; return 0; } |
16134 | EOF | |
3f345b47 | 16135 | if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16136 | rm -rf conftest* |
16137 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16138 | else | |
16139 | echo "configure: failed program was:" >&5 | |
16140 | cat conftest.$ac_ext >&5 | |
16141 | rm -rf conftest* | |
16142 | eval "ac_cv_lib_$ac_lib_var=no" | |
16143 | fi | |
16144 | rm -f conftest* | |
16145 | LIBS="$ac_save_LIBS" | |
16146 | ||
16147 | fi | |
16148 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16149 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16150 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
3f345b47 | 16151 | echo "configure:16152: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16152 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
16153 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16154 | echo $ac_n "(cached) $ac_c" 1>&6 |
16155 | else | |
4f14bcd8 GD |
16156 | ac_save_LIBS="$LIBS" |
16157 | LIBS="-l$THREADS_LINK $LIBS" | |
16158 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16159 | #line 16160 "configure" |
422107f9 | 16160 | #include "confdefs.h" |
4f14bcd8 GD |
16161 | /* Override any gcc2 internal prototype to avoid an error. */ |
16162 | /* We use char because int might match the return type of a gcc2 | |
16163 | builtin and then its argument prototype would still apply. */ | |
16164 | char sched_get_priority_max(); | |
16165 | ||
16166 | int main() { | |
16167 | sched_get_priority_max() | |
16168 | ; return 0; } | |
698dcdb6 | 16169 | EOF |
3f345b47 | 16170 | if { (eval echo configure:16171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16171 | rm -rf conftest* |
4f14bcd8 | 16172 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16173 | else |
698dcdb6 | 16174 | echo "configure: failed program was:" >&5 |
422107f9 | 16175 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16176 | rm -rf conftest* |
4f14bcd8 | 16177 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16178 | fi |
698dcdb6 | 16179 | rm -f conftest* |
4f14bcd8 GD |
16180 | LIBS="$ac_save_LIBS" |
16181 | ||
422107f9 | 16182 | fi |
4f14bcd8 | 16183 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16184 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16185 | HAVE_PRIOR_FUNCS=1 |
16186 | else | |
16187 | echo "$ac_t""no" 1>&6 | |
16188 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
3f345b47 | 16189 | echo "configure:16190: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 16190 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16191 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16193 | else |
698dcdb6 | 16194 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16195 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16196 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 16197 | #line 16198 "configure" |
422107f9 VZ |
16198 | #include "confdefs.h" |
16199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16200 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16201 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16202 | char sched_get_priority_max(); |
698dcdb6 VZ |
16203 | |
16204 | int main() { | |
4f14bcd8 | 16205 | sched_get_priority_max() |
698dcdb6 VZ |
16206 | ; return 0; } |
16207 | EOF | |
3f345b47 | 16208 | if { (eval echo configure:16209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16209 | rm -rf conftest* |
16210 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16211 | else | |
16212 | echo "configure: failed program was:" >&5 | |
16213 | cat conftest.$ac_ext >&5 | |
16214 | rm -rf conftest* | |
16215 | eval "ac_cv_lib_$ac_lib_var=no" | |
16216 | fi | |
16217 | rm -f conftest* | |
16218 | LIBS="$ac_save_LIBS" | |
16219 | ||
16220 | fi | |
16221 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16222 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16223 | |
7274f1c7 RL |
16224 | HAVE_PRIOR_FUNCS=1 |
16225 | POSIX4_LINK=" -lposix4" | |
16226 | ||
698dcdb6 VZ |
16227 | else |
16228 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
16229 | fi |
16230 | ||
7274f1c7 | 16231 | |
422107f9 VZ |
16232 | fi |
16233 | ||
7274f1c7 | 16234 | |
4f14bcd8 GD |
16235 | else |
16236 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16237 | fi |
16238 | ||
7274f1c7 | 16239 | |
698dcdb6 | 16240 | else |
4f14bcd8 GD |
16241 | echo "$ac_t""no" 1>&6 |
16242 | fi | |
463abc64 | 16243 | |
463abc64 | 16244 | |
7274f1c7 RL |
16245 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
16246 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16247 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 16248 | EOF |
463abc64 | 16249 | |
7274f1c7 RL |
16250 | else |
16251 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
16252 | fi | |
463abc64 | 16253 | |
7274f1c7 | 16254 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
3f345b47 | 16255 | echo "configure:16256: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16256 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16257 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16259 | else |
698dcdb6 | 16260 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16261 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16262 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 16263 | #line 16264 "configure" |
422107f9 VZ |
16264 | #include "confdefs.h" |
16265 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16266 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16267 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16268 | char pthread_cancel(); |
698dcdb6 VZ |
16269 | |
16270 | int main() { | |
4f14bcd8 | 16271 | pthread_cancel() |
698dcdb6 VZ |
16272 | ; return 0; } |
16273 | EOF | |
3f345b47 | 16274 | if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16275 | rm -rf conftest* |
16276 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16277 | else | |
16278 | echo "configure: failed program was:" >&5 | |
16279 | cat conftest.$ac_ext >&5 | |
16280 | rm -rf conftest* | |
16281 | eval "ac_cv_lib_$ac_lib_var=no" | |
16282 | fi | |
16283 | rm -f conftest* | |
16284 | LIBS="$ac_save_LIBS" | |
16285 | ||
16286 | fi | |
16287 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16288 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16289 | cat >> confdefs.h <<\EOF |
16290 | #define HAVE_PTHREAD_CANCEL 1 | |
16291 | EOF | |
16292 | ||
698dcdb6 VZ |
16293 | else |
16294 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16295 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
16296 | fi |
16297 | ||
422107f9 | 16298 | |
7274f1c7 | 16299 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
3f345b47 | 16300 | echo "configure:16301: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
16301 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
16302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16303 | else | |
16304 | ||
7274f1c7 | 16305 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 16306 | #line 16307 "configure" |
4f14bcd8 GD |
16307 | #include "confdefs.h" |
16308 | #include <pthread.h> | |
16309 | int main() { | |
16310 | ||
7274f1c7 RL |
16311 | pthread_cleanup_push(NULL, NULL); |
16312 | pthread_cleanup_pop(0); | |
16313 | ||
4f14bcd8 GD |
16314 | ; return 0; } |
16315 | EOF | |
3f345b47 | 16316 | if { (eval echo configure:16317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16317 | rm -rf conftest* |
16318 | ||
7274f1c7 RL |
16319 | wx_cv_func_pthread_cleanup_push=yes |
16320 | ||
4f14bcd8 GD |
16321 | else |
16322 | echo "configure: failed program was:" >&5 | |
16323 | cat conftest.$ac_ext >&5 | |
16324 | rm -rf conftest* | |
16325 | ||
7274f1c7 RL |
16326 | wx_cv_func_pthread_cleanup_push=no |
16327 | ||
4f14bcd8 GD |
16328 | fi |
16329 | rm -f conftest* | |
7274f1c7 | 16330 | |
10f2d63a VZ |
16331 | fi |
16332 | ||
4f14bcd8 GD |
16333 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
16334 | ||
7274f1c7 RL |
16335 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
16336 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16337 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
16338 | EOF |
16339 | ||
7274f1c7 | 16340 | fi |
4f14bcd8 | 16341 | |
7274f1c7 RL |
16342 | |
16343 | if test "x$wx_lib_glibc21" = "xyes"; then | |
16344 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
16345 | fi | |
4f14bcd8 | 16346 | |
7274f1c7 | 16347 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
3f345b47 | 16348 | echo "configure:16349: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 16349 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
16350 | echo $ac_n "(cached) $ac_c" 1>&6 |
16351 | else | |
4f14bcd8 | 16352 | |
7274f1c7 | 16353 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 16354 | #line 16355 "configure" |
0dcf9893 | 16355 | #include "confdefs.h" |
4f14bcd8 GD |
16356 | #include <pthread.h> |
16357 | int main() { | |
16358 | ||
7274f1c7 RL |
16359 | pthread_mutexattr_t attr; |
16360 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
16361 | ||
4f14bcd8 | 16362 | ; return 0; } |
698dcdb6 | 16363 | EOF |
3f345b47 | 16364 | if { (eval echo configure:16365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16365 | rm -rf conftest* |
4f14bcd8 | 16366 | |
7274f1c7 RL |
16367 | wx_cv_type_pthread_mutexattr_t=yes |
16368 | ||
3fed1840 | 16369 | else |
698dcdb6 | 16370 | echo "configure: failed program was:" >&5 |
3fed1840 | 16371 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16372 | rm -rf conftest* |
4f14bcd8 | 16373 | |
7274f1c7 RL |
16374 | wx_cv_type_pthread_mutexattr_t=no |
16375 | ||
4f14bcd8 | 16376 | |
3fed1840 | 16377 | fi |
698dcdb6 | 16378 | rm -f conftest* |
7274f1c7 | 16379 | |
3fed1840 | 16380 | fi |
4f14bcd8 GD |
16381 | |
16382 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
16383 | ||
7274f1c7 RL |
16384 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
16385 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16386 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
16387 | EOF | |
16388 | ||
7274f1c7 RL |
16389 | else |
16390 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
3f345b47 | 16391 | echo "configure:16392: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 16392 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 16393 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 16394 | else |
4f14bcd8 | 16395 | |
7274f1c7 | 16396 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 16397 | #line 16398 "configure" |
3fed1840 | 16398 | #include "confdefs.h" |
4f14bcd8 | 16399 | #include <pthread.h> |
698dcdb6 | 16400 | int main() { |
4f14bcd8 | 16401 | |
7274f1c7 RL |
16402 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
16403 | ||
698dcdb6 VZ |
16404 | ; return 0; } |
16405 | EOF | |
3f345b47 | 16406 | if { (eval echo configure:16407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16407 | rm -rf conftest* |
4f14bcd8 | 16408 | |
7274f1c7 RL |
16409 | wx_cv_type_pthread_rec_mutex_init=yes |
16410 | ||
698dcdb6 VZ |
16411 | else |
16412 | echo "configure: failed program was:" >&5 | |
16413 | cat conftest.$ac_ext >&5 | |
16414 | rm -rf conftest* | |
4f14bcd8 | 16415 | |
7274f1c7 RL |
16416 | wx_cv_type_pthread_rec_mutex_init=no |
16417 | ||
4f14bcd8 | 16418 | |
698dcdb6 VZ |
16419 | fi |
16420 | rm -f conftest* | |
7274f1c7 | 16421 | |
3fed1840 RR |
16422 | fi |
16423 | ||
4f14bcd8 | 16424 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
16425 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
16426 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16427 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
16428 | EOF | |
3fed1840 | 16429 | |
7274f1c7 RL |
16430 | else |
16431 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
16432 | fi | |
16433 | fi | |
4f14bcd8 | 16434 | |
7274f1c7 | 16435 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 16436 | |
7274f1c7 RL |
16437 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
16438 | CPPFLAGS="$CFLAGS -mt" | |
16439 | CXXFLAGS="$CXXFLAGS -mt" | |
16440 | LDFLAGS="$LDFLAGS -mt" | |
16441 | fi | |
16442 | fi | |
3fed1840 | 16443 | |
4f14bcd8 GD |
16444 | fi |
16445 | ||
16446 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 16447 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16448 | #define wxUSE_THREADS 1 |
7b6058cd GD |
16449 | EOF |
16450 | ||
4f14bcd8 | 16451 | |
3f345b47 | 16452 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
16453 | |
16454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 16455 | else |
4f14bcd8 GD |
16456 | if test "$ac_cv_func_strtok_r" = "yes"; then |
16457 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
3f345b47 | 16458 | echo "configure:16459: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
16459 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
16460 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
16461 | echo "$ac_t""yes" 1>&6 | |
16462 | else | |
16463 | echo "$ac_t""no" 1>&6 | |
16464 | fi | |
16465 | fi | |
16466 | fi | |
16467 | ||
16468 | if test "$WXGTK20" = 1 ; then | |
16469 | cat >> confdefs.h <<EOF | |
16470 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 16471 | EOF |
4f14bcd8 GD |
16472 | |
16473 | WXGTK12=1 | |
10f2d63a | 16474 | fi |
4f14bcd8 GD |
16475 | |
16476 | if test "$WXGTK12" = 1 ; then | |
16477 | cat >> confdefs.h <<EOF | |
16478 | #define __WXGTK12__ $WXGTK12 | |
16479 | EOF | |
16480 | ||
10f2d63a | 16481 | fi |
698dcdb6 | 16482 | |
4f14bcd8 GD |
16483 | if test "$WXGTK127" = 1 ; then |
16484 | cat >> confdefs.h <<EOF | |
16485 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 16486 | EOF |
4f14bcd8 | 16487 | |
698dcdb6 | 16488 | fi |
10f2d63a | 16489 | |
4f14bcd8 GD |
16490 | WXDEBUG= |
16491 | ||
16492 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
16493 | WXDEBUG="-g" | |
16494 | wxUSE_OPTIMISE=no | |
698dcdb6 | 16495 | fi |
4f14bcd8 GD |
16496 | |
16497 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
16498 | wxUSE_DEBUG_INFO=yes | |
16499 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
16500 | fi |
16501 | ||
4f14bcd8 GD |
16502 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
16503 | cat >> confdefs.h <<\EOF | |
16504 | #define WXDEBUG 1 | |
16505 | EOF | |
16506 | ||
16507 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 16508 | else |
4f14bcd8 GD |
16509 | if test "$wxUSE_GTK" = 1 ; then |
16510 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
16511 | fi | |
16512 | fi | |
16513 | ||
16514 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
16515 | cat >> confdefs.h <<\EOF | |
16516 | #define wxUSE_MEMORY_TRACING 1 | |
16517 | EOF | |
16518 | ||
16519 | cat >> confdefs.h <<\EOF | |
16520 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
16521 | EOF | |
16522 | ||
16523 | cat >> confdefs.h <<\EOF | |
16524 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
16525 | EOF | |
16526 | ||
16527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
16528 | fi | |
16529 | ||
16530 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 16531 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
16532 | fi |
16533 | ||
16534 | PROFILE= | |
16535 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 16536 | PROFILE=" -pg" |
10f2d63a VZ |
16537 | fi |
16538 | ||
88e30f2b | 16539 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
16540 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
16541 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 16542 | fi |
4f14bcd8 GD |
16543 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
16544 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
16545 | fi | |
16546 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
16547 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
16548 | fi | |
4f14bcd8 GD |
16549 | if test "$USE_WIN32" = 1 ; then |
16550 | # I'm not even really sure what this was ever added to solve, | |
16551 | # but someone added it for mingw native builds, so I guess | |
16552 | # they had a reason, right?? | |
16553 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
16554 | fi | |
16555 | fi | |
16556 | ||
16557 | ||
16558 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16559 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16560 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16561 | OPTIMISE= | |
16562 | else | |
16563 | if test "$GCC" = yes ; then | |
16564 | OPTIMISE="-O2" | |
16565 | case "${host}" in | |
16566 | i586-*-*|i686-*-* ) | |
16567 | OPTIMISE="${OPTIMISE} " | |
16568 | ;; | |
16569 | esac | |
16570 | else | |
16571 | OPTIMISE="-O" | |
16572 | fi | |
16573 | fi | |
16574 | ||
16575 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16576 | cat >> confdefs.h <<\EOF | |
16577 | #define WXWIN_COMPATIBILITY_2 1 | |
16578 | EOF | |
16579 | ||
16580 | ||
16581 | WXWIN_COMPATIBILITY_2_2="yes" | |
16582 | fi | |
16583 | ||
16584 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16585 | cat >> confdefs.h <<\EOF | |
16586 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16587 | EOF | |
16588 | ||
10f2d63a VZ |
16589 | fi |
16590 | ||
698dcdb6 | 16591 | |
10f2d63a | 16592 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16593 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16594 | #define wxUSE_GUI 1 |
16595 | EOF | |
16596 | ||
698dcdb6 | 16597 | |
10f2d63a | 16598 | else |
698dcdb6 | 16599 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16600 | #define wxUSE_NOGUI 1 |
16601 | EOF | |
16602 | ||
16603 | fi | |
16604 | ||
698dcdb6 | 16605 | |
10f2d63a | 16606 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16607 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16608 | #define wxUSE_UNIX 1 |
16609 | EOF | |
16610 | ||
16611 | fi | |
16612 | ||
698dcdb6 | 16613 | |
10f2d63a | 16614 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16615 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16616 | #define wxUSE_APPLE_IEEE 1 |
16617 | EOF | |
16618 | ||
16619 | fi | |
16620 | ||
1e6feb95 VZ |
16621 | if test "$wxUSE_TIMER" = "yes"; then |
16622 | cat >> confdefs.h <<\EOF | |
16623 | #define wxUSE_TIMER 1 | |
16624 | EOF | |
16625 | ||
16626 | fi | |
16627 | ||
10f2d63a | 16628 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16629 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16630 | #define wxUSE_WAVE 1 |
16631 | EOF | |
16632 | ||
16633 | fi | |
16634 | ||
1e6feb95 VZ |
16635 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16636 | cat >> confdefs.h <<\EOF | |
16637 | #define wxUSE_CMDLINE_PARSER 1 | |
16638 | EOF | |
16639 | ||
16640 | fi | |
16641 | ||
16642 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16643 | cat >> confdefs.h <<\EOF | |
16644 | #define wxUSE_STOPWATCH 1 | |
16645 | EOF | |
16646 | ||
16647 | fi | |
16648 | ||
16649 | if test "$wxUSE_DATETIME" = "yes"; then | |
16650 | cat >> confdefs.h <<\EOF | |
16651 | #define wxUSE_DATETIME 1 | |
16652 | EOF | |
16653 | ||
16654 | fi | |
16655 | ||
16656 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16657 | cat >> confdefs.h <<\EOF | |
16658 | #define wxUSE_TIMEDATE 1 | |
16659 | EOF | |
16660 | ||
16661 | fi | |
16662 | ||
10f2d63a | 16663 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16664 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16665 | #define wxUSE_FILE 1 |
16666 | EOF | |
16667 | ||
16668 | fi | |
16669 | ||
1e6feb95 VZ |
16670 | if test "$wxUSE_FFILE" = "yes"; then |
16671 | cat >> confdefs.h <<\EOF | |
16672 | #define wxUSE_FFILE 1 | |
16673 | EOF | |
16674 | ||
16675 | fi | |
16676 | ||
24528b0c | 16677 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16678 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16679 | #define wxUSE_FILESYSTEM 1 |
16680 | EOF | |
16681 | ||
16682 | fi | |
16683 | ||
10f2d63a | 16684 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16685 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16686 | #define wxUSE_FS_INET 1 |
16687 | EOF | |
16688 | ||
16689 | fi | |
16690 | ||
16691 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16692 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16693 | #define wxUSE_FS_ZIP 1 |
16694 | EOF | |
16695 | ||
16696 | fi | |
16697 | ||
16698 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16699 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16700 | #define wxUSE_ZIPSTREAM 1 |
16701 | EOF | |
16702 | ||
16703 | fi | |
16704 | ||
eb4efbdc | 16705 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16706 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16707 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16708 | EOF | |
16709 | ||
16710 | fi | |
16711 | ||
4f3c5f06 | 16712 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16713 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16714 | #define wxUSE_SNGLINST_CHECKER 1 |
16715 | EOF | |
16716 | ||
16717 | fi | |
16718 | ||
10f2d63a | 16719 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16720 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16721 | #define wxUSE_BUSYINFO 1 |
16722 | EOF | |
16723 | ||
16724 | fi | |
16725 | ||
16726 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16727 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16728 | #define wxUSE_STD_IOSTREAM 1 |
16729 | EOF | |
16730 | ||
16731 | fi | |
16732 | ||
a3a584a7 VZ |
16733 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
16734 | cat >> confdefs.h <<\EOF | |
16735 | #define wxUSE_TEXTBUFFER 1 | |
16736 | EOF | |
16737 | ||
16738 | fi | |
16739 | ||
10f2d63a | 16740 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 16741 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 16742 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 16743 | else |
698dcdb6 | 16744 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16745 | #define wxUSE_TEXTFILE 1 |
16746 | EOF | |
16747 | ||
16748 | fi | |
16749 | fi | |
16750 | ||
16751 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16752 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 16753 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 16754 | else |
698dcdb6 | 16755 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16756 | #define wxUSE_CONFIG 1 |
16757 | EOF | |
16758 | ||
16759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16760 | fi | |
16761 | fi | |
16762 | ||
16763 | if test "$wxUSE_INTL" = "yes" ; then | |
16764 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 16765 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 16766 | else |
698dcdb6 | 16767 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16768 | #define wxUSE_INTL 1 |
16769 | EOF | |
16770 | ||
16771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 16772 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
16773 | fi |
16774 | fi | |
16775 | ||
16776 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 16777 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16778 | #define wxUSE_LOG 1 |
16779 | EOF | |
16780 | ||
d73be714 VZ |
16781 | |
16782 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16783 | cat >> confdefs.h <<\EOF | |
16784 | #define wxUSE_LOGGUI 1 | |
16785 | EOF | |
16786 | ||
16787 | fi | |
16788 | ||
16789 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16790 | cat >> confdefs.h <<\EOF | |
16791 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
16792 | EOF |
16793 | ||
16794 | fi | |
16795 | ||
16796 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
16797 | cat >> confdefs.h <<\EOF | |
16798 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
16799 | EOF |
16800 | ||
16801 | fi | |
10f2d63a VZ |
16802 | fi |
16803 | ||
16804 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16805 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16806 | #define wxUSE_LONGLONG 1 |
16807 | EOF | |
16808 | ||
16809 | fi | |
16810 | ||
e8f65ba6 | 16811 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16812 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16813 | #define wxUSE_GEOMETRY 1 |
16814 | EOF | |
16815 | ||
16816 | fi | |
16817 | ||
10f2d63a | 16818 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16819 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16820 | #define wxUSE_DIALUP_MANAGER 1 |
16821 | EOF | |
16822 | ||
70f7a477 | 16823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16824 | fi |
16825 | ||
16826 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16827 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16828 | #define wxUSE_STREAMS 1 |
16829 | EOF | |
16830 | ||
16831 | fi | |
16832 | ||
1e487827 | 16833 | |
1e6feb95 | 16834 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16835 | for ac_func in strptime |
83307f33 | 16836 | do |
698dcdb6 | 16837 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 16838 | echo "configure:16839: checking for $ac_func" >&5 |
698dcdb6 VZ |
16839 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16841 | else | |
16842 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16843 | #line 16844 "configure" |
83307f33 VZ |
16844 | #include "confdefs.h" |
16845 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16846 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16847 | #include <assert.h> |
16848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16849 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16850 | builtin and then its argument prototype would still apply. */ |
16851 | char $ac_func(); | |
16852 | ||
16853 | int main() { | |
83307f33 VZ |
16854 | |
16855 | /* The GNU C library defines this for functions which it implements | |
16856 | to always fail with ENOSYS. Some functions are actually named | |
16857 | something starting with __ and the normal name is an alias. */ | |
16858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16859 | choke me | |
16860 | #else | |
698dcdb6 | 16861 | $ac_func(); |
83307f33 VZ |
16862 | #endif |
16863 | ||
698dcdb6 | 16864 | ; return 0; } |
83307f33 | 16865 | EOF |
3f345b47 | 16866 | if { (eval echo configure:16867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16867 | rm -rf conftest* |
16868 | eval "ac_cv_func_$ac_func=yes" | |
16869 | else | |
16870 | echo "configure: failed program was:" >&5 | |
16871 | cat conftest.$ac_ext >&5 | |
16872 | rm -rf conftest* | |
16873 | eval "ac_cv_func_$ac_func=no" | |
16874 | fi | |
16875 | rm -f conftest* | |
16876 | fi | |
83307f33 | 16877 | |
698dcdb6 VZ |
16878 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16879 | echo "$ac_t""yes" 1>&6 | |
16880 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16881 | cat >> confdefs.h <<EOF | |
16882 | #define $ac_tr_func 1 | |
16883 | EOF | |
16884 | ||
16885 | else | |
16886 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16887 | fi |
16888 | done | |
16889 | ||
1e487827 | 16890 | |
698dcdb6 | 16891 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
3f345b47 | 16892 | echo "configure:16893: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16893 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16895 | else | |
16896 | ||
16897 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16898 | #line 16899 "configure" |
360d6699 VZ |
16899 | #include "confdefs.h" |
16900 | ||
b4085ce6 | 16901 | #include <time.h> |
698dcdb6 VZ |
16902 | |
16903 | int main() { | |
360d6699 VZ |
16904 | |
16905 | int tz; | |
4f11a343 | 16906 | tz = timezone; |
698dcdb6 VZ |
16907 | |
16908 | ; return 0; } | |
16909 | EOF | |
3f345b47 | 16910 | if { (eval echo configure:16911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16911 | rm -rf conftest* |
16912 | ||
4f11a343 | 16913 | wx_cv_var_timezone=timezone |
698dcdb6 | 16914 | |
360d6699 | 16915 | else |
698dcdb6 VZ |
16916 | echo "configure: failed program was:" >&5 |
16917 | cat conftest.$ac_ext >&5 | |
16918 | rm -rf conftest* | |
16919 | ||
16920 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16921 | #line 16922 "configure" |
360d6699 VZ |
16922 | #include "confdefs.h" |
16923 | ||
b4085ce6 | 16924 | #include <time.h> |
698dcdb6 VZ |
16925 | |
16926 | int main() { | |
360d6699 VZ |
16927 | |
16928 | int tz; | |
16929 | tz = _timezone; | |
698dcdb6 VZ |
16930 | |
16931 | ; return 0; } | |
16932 | EOF | |
3f345b47 | 16933 | if { (eval echo configure:16934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16934 | rm -rf conftest* |
16935 | ||
360d6699 | 16936 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16937 | |
5357c8e8 | 16938 | else |
698dcdb6 VZ |
16939 | echo "configure: failed program was:" >&5 |
16940 | cat conftest.$ac_ext >&5 | |
16941 | rm -rf conftest* | |
16942 | ||
16943 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16944 | #line 16945 "configure" |
5357c8e8 VZ |
16945 | #include "confdefs.h" |
16946 | ||
b4085ce6 | 16947 | #include <time.h> |
698dcdb6 VZ |
16948 | |
16949 | int main() { | |
5357c8e8 VZ |
16950 | |
16951 | int tz; | |
4f11a343 | 16952 | tz = __timezone; |
698dcdb6 VZ |
16953 | |
16954 | ; return 0; } | |
16955 | EOF | |
3f345b47 | 16956 | if { (eval echo configure:16957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16957 | rm -rf conftest* |
16958 | ||
4f11a343 | 16959 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16960 | |
360d6699 | 16961 | else |
698dcdb6 VZ |
16962 | echo "configure: failed program was:" >&5 |
16963 | cat conftest.$ac_ext >&5 | |
16964 | rm -rf conftest* | |
16965 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16966 | ||
360d6699 | 16967 | fi |
698dcdb6 VZ |
16968 | rm -f conftest* |
16969 | ||
16970 | ||
360d6699 | 16971 | fi |
698dcdb6 VZ |
16972 | rm -f conftest* |
16973 | ||
16974 | ||
6232543b | 16975 | fi |
698dcdb6 VZ |
16976 | rm -f conftest* |
16977 | ||
16978 | ||
1e487827 | 16979 | fi |
703e0a69 | 16980 | |
698dcdb6 VZ |
16981 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16982 | ||
16983 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16984 | #define WX_TIMEZONE $wx_cv_var_timezone |
16985 | EOF | |
16986 | ||
698dcdb6 VZ |
16987 | |
16988 | for ac_func in localtime | |
afc31813 | 16989 | do |
698dcdb6 | 16990 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 16991 | echo "configure:16992: checking for $ac_func" >&5 |
698dcdb6 VZ |
16992 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16994 | else | |
16995 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 16996 | #line 16997 "configure" |
10f2d63a | 16997 | #include "confdefs.h" |
afc31813 | 16998 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16999 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
17000 | #include <assert.h> |
17001 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17002 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17003 | builtin and then its argument prototype would still apply. */ |
17004 | char $ac_func(); | |
17005 | ||
17006 | int main() { | |
afc31813 VZ |
17007 | |
17008 | /* The GNU C library defines this for functions which it implements | |
17009 | to always fail with ENOSYS. Some functions are actually named | |
17010 | something starting with __ and the normal name is an alias. */ | |
17011 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17012 | choke me | |
17013 | #else | |
698dcdb6 | 17014 | $ac_func(); |
afc31813 VZ |
17015 | #endif |
17016 | ||
698dcdb6 | 17017 | ; return 0; } |
10f2d63a | 17018 | EOF |
3f345b47 | 17019 | if { (eval echo configure:17020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17020 | rm -rf conftest* |
17021 | eval "ac_cv_func_$ac_func=yes" | |
17022 | else | |
17023 | echo "configure: failed program was:" >&5 | |
17024 | cat conftest.$ac_ext >&5 | |
17025 | rm -rf conftest* | |
17026 | eval "ac_cv_func_$ac_func=no" | |
17027 | fi | |
17028 | rm -f conftest* | |
17029 | fi | |
afc31813 | 17030 | |
698dcdb6 VZ |
17031 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17032 | echo "$ac_t""yes" 1>&6 | |
17033 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17034 | cat >> confdefs.h <<EOF | |
17035 | #define $ac_tr_func 1 | |
17036 | EOF | |
17037 | ||
17038 | else | |
17039 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
17040 | fi |
17041 | done | |
17042 | ||
1e487827 | 17043 | |
698dcdb6 VZ |
17044 | if test "$ac_cv_func_localtime" = "yes"; then |
17045 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
3f345b47 | 17046 | echo "configure:17047: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
17047 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
17048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17049 | else | |
17050 | ||
17051 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17052 | #line 17053 "configure" |
0470b1e6 VZ |
17053 | #include "confdefs.h" |
17054 | ||
b4085ce6 | 17055 | #include <time.h> |
698dcdb6 VZ |
17056 | |
17057 | int main() { | |
0470b1e6 VZ |
17058 | |
17059 | struct tm tm; | |
17060 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
17061 | |
17062 | ; return 0; } | |
17063 | EOF | |
3f345b47 | 17064 | if { (eval echo configure:17065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17065 | rm -rf conftest* |
17066 | ||
f03a98d8 | 17067 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 17068 | |
0470b1e6 | 17069 | else |
698dcdb6 VZ |
17070 | echo "configure: failed program was:" >&5 |
17071 | cat conftest.$ac_ext >&5 | |
17072 | rm -rf conftest* | |
17073 | wx_cv_struct_tm_has_gmtoff=no | |
17074 | ||
0470b1e6 | 17075 | fi |
698dcdb6 VZ |
17076 | rm -f conftest* |
17077 | ||
1e487827 | 17078 | fi |
698dcdb6 VZ |
17079 | |
17080 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
17081 | fi |
17082 | ||
17083 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 17084 | cat >> confdefs.h <<\EOF |
6232543b VS |
17085 | #define WX_GMTOFF_IN_TM 1 |
17086 | EOF | |
0470b1e6 | 17087 | |
3fcdd07b VZ |
17088 | fi |
17089 | ||
698dcdb6 | 17090 | for ac_func in gettimeofday ftime |
3fcdd07b | 17091 | do |
698dcdb6 | 17092 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 17093 | echo "configure:17094: checking for $ac_func" >&5 |
698dcdb6 VZ |
17094 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17096 | else | |
17097 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17098 | #line 17099 "configure" |
3fcdd07b VZ |
17099 | #include "confdefs.h" |
17100 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17101 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
17102 | #include <assert.h> |
17103 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17104 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17105 | builtin and then its argument prototype would still apply. */ |
17106 | char $ac_func(); | |
17107 | ||
17108 | int main() { | |
3fcdd07b VZ |
17109 | |
17110 | /* The GNU C library defines this for functions which it implements | |
17111 | to always fail with ENOSYS. Some functions are actually named | |
17112 | something starting with __ and the normal name is an alias. */ | |
17113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17114 | choke me | |
17115 | #else | |
698dcdb6 | 17116 | $ac_func(); |
3fcdd07b VZ |
17117 | #endif |
17118 | ||
698dcdb6 VZ |
17119 | ; return 0; } |
17120 | EOF | |
3f345b47 | 17121 | if { (eval echo configure:17122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17122 | rm -rf conftest* |
17123 | eval "ac_cv_func_$ac_func=yes" | |
17124 | else | |
17125 | echo "configure: failed program was:" >&5 | |
17126 | cat conftest.$ac_ext >&5 | |
17127 | rm -rf conftest* | |
17128 | eval "ac_cv_func_$ac_func=no" | |
17129 | fi | |
17130 | rm -f conftest* | |
17131 | fi | |
17132 | ||
17133 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17134 | echo "$ac_t""yes" 1>&6 | |
17135 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17136 | cat >> confdefs.h <<EOF | |
17137 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
17138 | EOF |
17139 | break | |
698dcdb6 VZ |
17140 | else |
17141 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
17142 | fi |
17143 | done | |
17144 | ||
afc31813 | 17145 | |
698dcdb6 VZ |
17146 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
17147 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
3f345b47 | 17148 | echo "configure:17149: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
17149 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
17150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17151 | else | |
17152 | ||
17153 | ||
17154 | ac_ext=C | |
17155 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 17156 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17157 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17158 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17159 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17160 | |
698dcdb6 VZ |
17161 | |
17162 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17163 | #line 17164 "configure" |
10f2d63a | 17164 | #include "confdefs.h" |
afc31813 VZ |
17165 | |
17166 | #include <sys/time.h> | |
17167 | #include <unistd.h> | |
698dcdb6 VZ |
17168 | |
17169 | int main() { | |
afc31813 VZ |
17170 | |
17171 | struct timeval tv; | |
776862b4 | 17172 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
17173 | |
17174 | ; return 0; } | |
17175 | EOF | |
3f345b47 | 17176 | if { (eval echo configure:17177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17177 | rm -rf conftest* |
afc31813 | 17178 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 17179 | else |
698dcdb6 VZ |
17180 | echo "configure: failed program was:" >&5 |
17181 | cat conftest.$ac_ext >&5 | |
17182 | rm -rf conftest* | |
17183 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17184 | #line 17185 "configure" |
10f2d63a | 17185 | #include "confdefs.h" |
afc31813 VZ |
17186 | |
17187 | #include <sys/time.h> | |
17188 | #include <unistd.h> | |
698dcdb6 VZ |
17189 | |
17190 | int main() { | |
afc31813 VZ |
17191 | |
17192 | struct timeval tv; | |
17193 | gettimeofday(&tv); | |
698dcdb6 VZ |
17194 | |
17195 | ; return 0; } | |
17196 | EOF | |
3f345b47 | 17197 | if { (eval echo configure:17198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17198 | rm -rf conftest* |
afc31813 | 17199 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 17200 | else |
698dcdb6 VZ |
17201 | echo "configure: failed program was:" >&5 |
17202 | cat conftest.$ac_ext >&5 | |
17203 | rm -rf conftest* | |
776862b4 VZ |
17204 | |
17205 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
17206 | wx_cv_func_gettimeofday_has_2_args=unknown | |
17207 | ||
698dcdb6 | 17208 | |
10f2d63a | 17209 | fi |
698dcdb6 VZ |
17210 | rm -f conftest* |
17211 | ||
10f2d63a | 17212 | fi |
698dcdb6 | 17213 | rm -f conftest* |
afc31813 | 17214 | ac_ext=c |
698dcdb6 | 17215 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 17216 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17217 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17218 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17219 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 17220 | |
698dcdb6 | 17221 | |
afc31813 | 17222 | fi |
698dcdb6 VZ |
17223 | |
17224 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 17225 | |
afc31813 | 17226 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 17227 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17228 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
17229 | EOF | |
17230 | ||
17231 | fi | |
17232 | fi | |
17233 | ||
698dcdb6 | 17234 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17235 | #define wxUSE_TIMEDATE 1 |
17236 | EOF | |
17237 | ||
17238 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
17239 | fi | |
17240 | ||
698dcdb6 | 17241 | |
b089607b VZ |
17242 | if test "$TOOLKIT" != "MSW"; then |
17243 | ||
3a922bb4 RL |
17244 | if test "$wxUSE_SOCKETS" = "yes"; then |
17245 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
3f345b47 | 17246 | echo "configure:17247: checking for socket" >&5 |
698dcdb6 VZ |
17247 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
17248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17249 | else |
698dcdb6 | 17250 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 17251 | #line 17252 "configure" |
c63c7106 VZ |
17252 | #include "confdefs.h" |
17253 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17254 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
17255 | #include <assert.h> |
17256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17257 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17258 | builtin and then its argument prototype would still apply. */ |
17259 | char socket(); | |
17260 | ||
17261 | int main() { | |
c63c7106 VZ |
17262 | |
17263 | /* The GNU C library defines this for functions which it implements | |
17264 | to always fail with ENOSYS. Some functions are actually named | |
17265 | something starting with __ and the normal name is an alias. */ | |
17266 | #if defined (__stub_socket) || defined (__stub___socket) | |
17267 | choke me | |
17268 | #else | |
698dcdb6 | 17269 | socket(); |
c63c7106 VZ |
17270 | #endif |
17271 | ||
698dcdb6 VZ |
17272 | ; return 0; } |
17273 | EOF | |
3f345b47 | 17274 | if { (eval echo configure:17275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17275 | rm -rf conftest* |
17276 | eval "ac_cv_func_socket=yes" | |
17277 | else | |
17278 | echo "configure: failed program was:" >&5 | |
17279 | cat conftest.$ac_ext >&5 | |
17280 | rm -rf conftest* | |
17281 | eval "ac_cv_func_socket=no" | |
17282 | fi | |
17283 | rm -f conftest* | |
17284 | fi | |
17285 | ||
17286 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
17287 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
17288 | : |
17289 | else | |
698dcdb6 VZ |
17290 | echo "$ac_t""no" 1>&6 |
17291 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
3f345b47 | 17292 | echo "configure:17293: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
17293 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
17294 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17296 | else |
698dcdb6 | 17297 | ac_save_LIBS="$LIBS" |
c63c7106 | 17298 | LIBS="-lsocket $LIBS" |
698dcdb6 | 17299 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 17300 | #line 17301 "configure" |
c63c7106 VZ |
17301 | #include "confdefs.h" |
17302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17303 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17304 | builtin and then its argument prototype would still apply. */ |
17305 | char socket(); | |
17306 | ||
17307 | int main() { | |
17308 | socket() | |
17309 | ; return 0; } | |
17310 | EOF | |
3f345b47 | 17311 | if { (eval echo configure:17312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17312 | rm -rf conftest* |
17313 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17314 | else | |
17315 | echo "configure: failed program was:" >&5 | |
17316 | cat conftest.$ac_ext >&5 | |
17317 | rm -rf conftest* | |
17318 | eval "ac_cv_lib_$ac_lib_var=no" | |
17319 | fi | |
17320 | rm -f conftest* | |
17321 | LIBS="$ac_save_LIBS" | |
17322 | ||
17323 | fi | |
17324 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17325 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 17326 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 17327 | else |
698dcdb6 | 17328 | echo "$ac_t""no" 1>&6 |
afc31813 | 17329 | |
3a922bb4 RL |
17330 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
17331 | wxUSE_SOCKETS=no | |
17332 | ||
698dcdb6 | 17333 | |
6232543b | 17334 | fi |
b089607b | 17335 | |
3a922bb4 | 17336 | |
1e487827 | 17337 | fi |
afc31813 | 17338 | |
3a922bb4 | 17339 | fi |
51a9faba | 17340 | |
3a922bb4 RL |
17341 | |
17342 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
17343 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
3f345b47 | 17344 | echo "configure:17345: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
17345 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
17346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17347 | else | |
17348 | ||
3a922bb4 RL |
17349 | |
17350 | ac_ext=C | |
698dcdb6 | 17351 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 17352 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17353 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17354 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17355 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17356 | |
698dcdb6 | 17357 | |
3a922bb4 | 17358 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 17359 | #line 17360 "configure" |
afc31813 | 17360 | #include "confdefs.h" |
51a9faba | 17361 | |
3a922bb4 RL |
17362 | #include <sys/types.h> |
17363 | #include <sys/socket.h> | |
17364 | ||
698dcdb6 | 17365 | int main() { |
51a9faba | 17366 | |
3a922bb4 RL |
17367 | socklen_t len; |
17368 | getsockname(0, 0, &len); | |
17369 | ||
698dcdb6 VZ |
17370 | ; return 0; } |
17371 | EOF | |
3f345b47 | 17372 | if { (eval echo configure:17373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17373 | rm -rf conftest* |
51a9faba | 17374 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 17375 | else |
698dcdb6 VZ |
17376 | echo "configure: failed program was:" >&5 |
17377 | cat conftest.$ac_ext >&5 | |
17378 | rm -rf conftest* | |
17379 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17380 | #line 17381 "configure" |
afc31813 | 17381 | #include "confdefs.h" |
51a9faba | 17382 | |
3a922bb4 RL |
17383 | #include <sys/types.h> |
17384 | #include <sys/socket.h> | |
17385 | ||
698dcdb6 | 17386 | int main() { |
51a9faba | 17387 | |
3a922bb4 RL |
17388 | size_t len; |
17389 | getsockname(0, 0, &len); | |
17390 | ||
698dcdb6 VZ |
17391 | ; return 0; } |
17392 | EOF | |
3f345b47 | 17393 | if { (eval echo configure:17394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17394 | rm -rf conftest* |
51a9faba | 17395 | wx_cv_type_getsockname3=size_t |
afc31813 | 17396 | else |
698dcdb6 VZ |
17397 | echo "configure: failed program was:" >&5 |
17398 | cat conftest.$ac_ext >&5 | |
17399 | rm -rf conftest* | |
17400 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17401 | #line 17402 "configure" |
afc31813 | 17402 | #include "confdefs.h" |
51a9faba | 17403 | |
3a922bb4 RL |
17404 | #include <sys/types.h> |
17405 | #include <sys/socket.h> | |
17406 | ||
698dcdb6 | 17407 | int main() { |
51a9faba | 17408 | |
3a922bb4 RL |
17409 | int len; |
17410 | getsockname(0, 0, &len); | |
17411 | ||
698dcdb6 VZ |
17412 | ; return 0; } |
17413 | EOF | |
3f345b47 | 17414 | if { (eval echo configure:17415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17415 | rm -rf conftest* |
51a9faba | 17416 | wx_cv_type_getsockname3=int |
afc31813 | 17417 | else |
698dcdb6 VZ |
17418 | echo "configure: failed program was:" >&5 |
17419 | cat conftest.$ac_ext >&5 | |
17420 | rm -rf conftest* | |
17421 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 17422 | |
afc31813 | 17423 | fi |
698dcdb6 | 17424 | rm -f conftest* |
3a922bb4 | 17425 | |
afc31813 | 17426 | fi |
698dcdb6 | 17427 | rm -f conftest* |
3a922bb4 | 17428 | |
afc31813 | 17429 | fi |
698dcdb6 | 17430 | rm -f conftest* |
51a9faba | 17431 | |
3a922bb4 | 17432 | ac_ext=c |
698dcdb6 | 17433 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 17434 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17435 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17436 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17437 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 17438 | |
3a922bb4 | 17439 | |
51a9faba | 17440 | fi |
698dcdb6 VZ |
17441 | |
17442 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 17443 | |
3a922bb4 RL |
17444 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
17445 | wxUSE_SOCKETS=no | |
17446 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
17447 | else | |
17448 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
17449 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
17450 | EOF | |
17451 | ||
3a922bb4 | 17452 | fi |
51a9faba VZ |
17453 | fi |
17454 | fi | |
afc31813 | 17455 | |
51a9faba | 17456 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 17457 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17458 | #define wxUSE_SOCKETS 1 |
17459 | EOF | |
17460 | ||
70f7a477 | 17461 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
17462 | fi |
17463 | ||
698dcdb6 | 17464 | |
dc3d889d VZ |
17465 | if test "$wxUSE_GUI" = "yes"; then |
17466 | ||
156b2523 GD |
17467 | if test "$TOOLKIT" = "MAC"; then |
17468 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
17469 | wxUSE_JOYSTICK=no | |
17470 | fi | |
17471 | if test "$TOOLKIT" = "MOTIF"; then | |
17472 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
17473 | wxUSE_JOYSTICK=no | |
17474 | fi | |
17475 | ||
3a922bb4 RL |
17476 | if test "$TOOLKIT" != "MSW"; then |
17477 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
17478 | for ac_hdr in linux/joystick.h | |
10f2d63a | 17479 | do |
698dcdb6 VZ |
17480 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17481 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 17482 | echo "configure:17483: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17483 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17485 | else | |
17486 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17487 | #line 17488 "configure" |
10f2d63a | 17488 | #include "confdefs.h" |
698dcdb6 VZ |
17489 | #include <$ac_hdr> |
17490 | EOF | |
17491 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 17492 | { (eval echo configure:17493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17493 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17494 | if test -z "$ac_err"; then | |
17495 | rm -rf conftest* | |
17496 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 17497 | else |
698dcdb6 VZ |
17498 | echo "$ac_err" >&5 |
17499 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17500 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17501 | rm -rf conftest* |
17502 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17503 | fi |
698dcdb6 | 17504 | rm -f conftest* |
10f2d63a | 17505 | fi |
698dcdb6 VZ |
17506 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17507 | echo "$ac_t""yes" 1>&6 | |
17508 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17509 | cat >> confdefs.h <<EOF | |
17510 | #define $ac_tr_hdr 1 | |
10f2d63a | 17511 | EOF |
698dcdb6 VZ |
17512 | |
17513 | else | |
17514 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17515 | fi |
17516 | done | |
17517 | ||
3a922bb4 RL |
17518 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
17519 | wxUSE_JOYSTICK=no | |
156b2523 | 17520 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
17521 | fi |
17522 | fi | |
17523 | fi | |
b089607b | 17524 | |
3a922bb4 RL |
17525 | if test "$wxUSE_JOYSTICK" = "yes"; then |
17526 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17527 | #define wxUSE_JOYSTICK 1 |
17528 | EOF | |
17529 | ||
3a922bb4 RL |
17530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
17531 | fi | |
dc3d889d VZ |
17532 | fi |
17533 | ||
698dcdb6 | 17534 | |
b089607b VZ |
17535 | if test "$TOOLKIT" != "MSW"; then |
17536 | ||
3a922bb4 RL |
17537 | HAVE_DL_FUNCS=0 |
17538 | HAVE_SHL_FUNCS=0 | |
17539 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
17540 | if test "$USE_DARWIN" = 1; then | |
17541 | HAVE_DL_FUNCS=1 | |
17542 | else | |
17543 | for ac_func in dlopen | |
10f2d63a | 17544 | do |
698dcdb6 | 17545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 17546 | echo "configure:17547: checking for $ac_func" >&5 |
698dcdb6 VZ |
17547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17549 | else | |
17550 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17551 | #line 17552 "configure" |
10f2d63a VZ |
17552 | #include "confdefs.h" |
17553 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17554 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17555 | #include <assert.h> |
17556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17557 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17558 | builtin and then its argument prototype would still apply. */ |
17559 | char $ac_func(); | |
17560 | ||
17561 | int main() { | |
10f2d63a VZ |
17562 | |
17563 | /* The GNU C library defines this for functions which it implements | |
17564 | to always fail with ENOSYS. Some functions are actually named | |
17565 | something starting with __ and the normal name is an alias. */ | |
17566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17567 | choke me | |
17568 | #else | |
698dcdb6 | 17569 | $ac_func(); |
10f2d63a VZ |
17570 | #endif |
17571 | ||
698dcdb6 VZ |
17572 | ; return 0; } |
17573 | EOF | |
3f345b47 | 17574 | if { (eval echo configure:17575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17575 | rm -rf conftest* |
17576 | eval "ac_cv_func_$ac_func=yes" | |
17577 | else | |
17578 | echo "configure: failed program was:" >&5 | |
17579 | cat conftest.$ac_ext >&5 | |
17580 | rm -rf conftest* | |
17581 | eval "ac_cv_func_$ac_func=no" | |
17582 | fi | |
17583 | rm -f conftest* | |
17584 | fi | |
17585 | ||
17586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17587 | echo "$ac_t""yes" 1>&6 | |
17588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17589 | cat >> confdefs.h <<EOF | |
17590 | #define $ac_tr_func 1 | |
17591 | EOF | |
17592 | ||
3a922bb4 | 17593 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17594 | #define HAVE_DLOPEN 1 |
17595 | EOF | |
17596 | ||
3a922bb4 RL |
17597 | HAVE_DL_FUNCS=1 |
17598 | ||
10f2d63a | 17599 | else |
698dcdb6 VZ |
17600 | echo "$ac_t""no" 1>&6 |
17601 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
3f345b47 | 17602 | echo "configure:17603: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
17603 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
17604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17606 | else |
698dcdb6 | 17607 | ac_save_LIBS="$LIBS" |
10f2d63a | 17608 | LIBS="-ldl $LIBS" |
698dcdb6 | 17609 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 17610 | #line 17611 "configure" |
10f2d63a VZ |
17611 | #include "confdefs.h" |
17612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17613 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17614 | builtin and then its argument prototype would still apply. */ |
17615 | char dlopen(); | |
17616 | ||
17617 | int main() { | |
17618 | dlopen() | |
17619 | ; return 0; } | |
17620 | EOF | |
3f345b47 | 17621 | if { (eval echo configure:17622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17622 | rm -rf conftest* |
17623 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17624 | else | |
17625 | echo "configure: failed program was:" >&5 | |
17626 | cat conftest.$ac_ext >&5 | |
17627 | rm -rf conftest* | |
17628 | eval "ac_cv_lib_$ac_lib_var=no" | |
17629 | fi | |
17630 | rm -f conftest* | |
17631 | LIBS="$ac_save_LIBS" | |
17632 | ||
17633 | fi | |
17634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17635 | echo "$ac_t""yes" 1>&6 | |
17636 | ||
3a922bb4 | 17637 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17638 | #define HAVE_DLOPEN 1 |
17639 | EOF | |
17640 | ||
3a922bb4 | 17641 | HAVE_DL_FUNCS=1 |
3d63bc3a | 17642 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 17643 | |
10f2d63a | 17644 | else |
698dcdb6 | 17645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17646 | |
3a922bb4 | 17647 | for ac_func in shl_load |
10f2d63a | 17648 | do |
698dcdb6 | 17649 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 17650 | echo "configure:17651: checking for $ac_func" >&5 |
698dcdb6 VZ |
17651 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17653 | else | |
17654 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17655 | #line 17656 "configure" |
10f2d63a VZ |
17656 | #include "confdefs.h" |
17657 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17658 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17659 | #include <assert.h> |
17660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17661 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17662 | builtin and then its argument prototype would still apply. */ |
17663 | char $ac_func(); | |
17664 | ||
17665 | int main() { | |
10f2d63a VZ |
17666 | |
17667 | /* The GNU C library defines this for functions which it implements | |
17668 | to always fail with ENOSYS. Some functions are actually named | |
17669 | something starting with __ and the normal name is an alias. */ | |
17670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17671 | choke me | |
17672 | #else | |
698dcdb6 | 17673 | $ac_func(); |
10f2d63a VZ |
17674 | #endif |
17675 | ||
698dcdb6 VZ |
17676 | ; return 0; } |
17677 | EOF | |
3f345b47 | 17678 | if { (eval echo configure:17679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17679 | rm -rf conftest* |
17680 | eval "ac_cv_func_$ac_func=yes" | |
17681 | else | |
17682 | echo "configure: failed program was:" >&5 | |
17683 | cat conftest.$ac_ext >&5 | |
17684 | rm -rf conftest* | |
17685 | eval "ac_cv_func_$ac_func=no" | |
17686 | fi | |
17687 | rm -f conftest* | |
17688 | fi | |
17689 | ||
17690 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17691 | echo "$ac_t""yes" 1>&6 | |
17692 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17693 | cat >> confdefs.h <<EOF | |
17694 | #define $ac_tr_func 1 | |
17695 | EOF | |
17696 | ||
3a922bb4 | 17697 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17698 | #define HAVE_SHL_LOAD 1 |
17699 | EOF | |
17700 | ||
3a922bb4 RL |
17701 | HAVE_SHL_FUNCS=1 |
17702 | ||
10f2d63a | 17703 | else |
698dcdb6 VZ |
17704 | echo "$ac_t""no" 1>&6 |
17705 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
3f345b47 | 17706 | echo "configure:17707: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17707 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17708 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17710 | else |
698dcdb6 | 17711 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17712 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17713 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 17714 | #line 17715 "configure" |
f6bcfd97 BP |
17715 | #include "confdefs.h" |
17716 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17717 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17718 | builtin and then its argument prototype would still apply. */ |
17719 | char dld(); | |
17720 | ||
17721 | int main() { | |
17722 | dld() | |
17723 | ; return 0; } | |
17724 | EOF | |
3f345b47 | 17725 | if { (eval echo configure:17726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17726 | rm -rf conftest* |
17727 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17728 | else | |
17729 | echo "configure: failed program was:" >&5 | |
17730 | cat conftest.$ac_ext >&5 | |
17731 | rm -rf conftest* | |
17732 | eval "ac_cv_lib_$ac_lib_var=no" | |
17733 | fi | |
17734 | rm -f conftest* | |
17735 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 17736 | |
698dcdb6 VZ |
17737 | fi |
17738 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17739 | echo "$ac_t""yes" 1>&6 | |
17740 | ||
3a922bb4 | 17741 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 17742 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 17743 | |
698dcdb6 VZ |
17744 | else |
17745 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17746 | fi |
17747 | ||
3a922bb4 | 17748 | |
10f2d63a VZ |
17749 | fi |
17750 | done | |
17751 | ||
3a922bb4 | 17752 | |
10f2d63a VZ |
17753 | fi |
17754 | ||
3a922bb4 | 17755 | |
10f2d63a VZ |
17756 | fi |
17757 | done | |
17758 | ||
1e487827 | 17759 | |
3a922bb4 RL |
17760 | if test "$HAVE_DL_FUNCS" = 1; then |
17761 | for ac_func in dlerror | |
f6bcfd97 | 17762 | do |
698dcdb6 | 17763 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f345b47 | 17764 | echo "configure:17765: checking for $ac_func" >&5 |
698dcdb6 VZ |
17765 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17767 | else | |
17768 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17769 | #line 17770 "configure" |
f6bcfd97 BP |
17770 | #include "confdefs.h" |
17771 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17772 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
17773 | #include <assert.h> |
17774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17775 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17776 | builtin and then its argument prototype would still apply. */ |
17777 | char $ac_func(); | |
17778 | ||
17779 | int main() { | |
f6bcfd97 BP |
17780 | |
17781 | /* The GNU C library defines this for functions which it implements | |
17782 | to always fail with ENOSYS. Some functions are actually named | |
17783 | something starting with __ and the normal name is an alias. */ | |
17784 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17785 | choke me | |
17786 | #else | |
698dcdb6 | 17787 | $ac_func(); |
f6bcfd97 BP |
17788 | #endif |
17789 | ||
698dcdb6 VZ |
17790 | ; return 0; } |
17791 | EOF | |
3f345b47 | 17792 | if { (eval echo configure:17793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17793 | rm -rf conftest* |
17794 | eval "ac_cv_func_$ac_func=yes" | |
17795 | else | |
17796 | echo "configure: failed program was:" >&5 | |
17797 | cat conftest.$ac_ext >&5 | |
17798 | rm -rf conftest* | |
17799 | eval "ac_cv_func_$ac_func=no" | |
17800 | fi | |
17801 | rm -f conftest* | |
17802 | fi | |
17803 | ||
17804 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17805 | echo "$ac_t""yes" 1>&6 | |
17806 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17807 | cat >> confdefs.h <<EOF | |
17808 | #define $ac_tr_func 1 | |
17809 | EOF | |
17810 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17811 | #define HAVE_DLERROR 1 |
17812 | EOF | |
17813 | ||
17814 | else | |
698dcdb6 VZ |
17815 | echo "$ac_t""no" 1>&6 |
17816 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
3f345b47 | 17817 | echo "configure:17818: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17818 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17821 | else |
698dcdb6 | 17822 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17823 | LIBS="-ldl $LIBS" |
698dcdb6 | 17824 | cat > conftest.$ac_ext <<EOF |
3f345b47 | 17825 | #line 17826 "configure" |
f6bcfd97 BP |
17826 | #include "confdefs.h" |
17827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17828 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17829 | builtin and then its argument prototype would still apply. */ |
17830 | char dlerror(); | |
17831 | ||
17832 | int main() { | |
17833 | dlerror() | |
17834 | ; return 0; } | |
17835 | EOF | |
3f345b47 | 17836 | if { (eval echo configure:17837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17837 | rm -rf conftest* |
17838 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17839 | else | |
17840 | echo "configure: failed program was:" >&5 | |
17841 | cat conftest.$ac_ext >&5 | |
17842 | rm -rf conftest* | |
17843 | eval "ac_cv_lib_$ac_lib_var=no" | |
17844 | fi | |
17845 | rm -f conftest* | |
17846 | LIBS="$ac_save_LIBS" | |
17847 | ||
17848 | fi | |
17849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17850 | echo "$ac_t""yes" 1>&6 | |
17851 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17852 | #define HAVE_DLERROR 1 |
17853 | EOF | |
17854 | ||
698dcdb6 VZ |
17855 | else |
17856 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17857 | fi |
17858 | ||
17859 | fi | |
17860 | done | |
17861 | ||
3a922bb4 RL |
17862 | fi |
17863 | fi | |
f6bcfd97 | 17864 | |
3a922bb4 RL |
17865 | if test "$HAVE_DL_FUNCS" = 0; then |
17866 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17867 | if test "$USE_UNIX" = 1; then | |
17868 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17869 | wxUSE_DYNLIB_CLASS=no | |
17870 | else | |
17871 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17872 | fi | |
17873 | fi | |
10f2d63a VZ |
17874 | fi |
17875 | fi | |
17876 | fi | |
17877 | ||
17878 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17879 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17880 | #define wxUSE_DYNLIB_CLASS 1 |
17881 | EOF | |
17882 | ||
b12915c1 VZ |
17883 | else |
17884 | wxUSE_ODBC=no | |
17885 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17886 | fi |
17887 | ||
698dcdb6 | 17888 | |
1e6feb95 VZ |
17889 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17890 | cat >> confdefs.h <<\EOF | |
17891 | #define wxUSE_FONTMAP 1 | |
17892 | EOF | |
17893 | ||
17894 | fi | |
17895 | ||
10f2d63a | 17896 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17897 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17898 | #define wxUSE_UNICODE 1 |
17899 | EOF | |
17900 | ||
17901 | fi | |
17902 | ||
10f2d63a | 17903 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17904 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17905 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17906 | EOF | |
17907 | ||
17908 | fi | |
17909 | ||
698dcdb6 | 17910 | |
b12915c1 | 17911 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17912 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17913 | #define wxUSE_SERIAL 1 |
17914 | EOF | |
17915 | ||
17916 | fi | |
17917 | ||
698dcdb6 | 17918 | |
10f2d63a VZ |
17919 | IODBC_C_SRC="" |
17920 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17921 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17922 | #define wxUSE_ODBC 1 |
17923 | EOF | |
17924 | ||
17925 | WXODBCFLAG="-D_IODBC_" | |
17926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17927 | fi |
17928 | ||
698dcdb6 | 17929 | |
10f2d63a | 17930 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17931 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17932 | #define wxUSE_POSTSCRIPT 1 |
17933 | EOF | |
17934 | ||
17935 | fi | |
17936 | ||
698dcdb6 | 17937 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17938 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17939 | EOF | |
17940 | ||
698dcdb6 VZ |
17941 | |
17942 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17943 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17944 | EOF | |
17945 | ||
698dcdb6 VZ |
17946 | |
17947 | ||
10f2d63a | 17948 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17949 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17950 | #define wxUSE_CONSTRAINTS 1 |
17951 | EOF | |
17952 | ||
17953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17954 | fi | |
17955 | ||
17956 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 17957 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 17958 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
17959 | wxUSE_MDI_ARCHITECTURE=no |
17960 | fi | |
17961 | ||
17962 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17963 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17964 | #define wxUSE_MDI_ARCHITECTURE 1 |
17965 | EOF | |
17966 | ||
fc26f4ab RL |
17967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
17968 | fi | |
10f2d63a VZ |
17969 | fi |
17970 | ||
17971 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17972 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17973 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17974 | EOF | |
17975 | ||
17976 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17977 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17979 | fi | |
17980 | fi | |
17981 | ||
17982 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17983 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17984 | #define wxUSE_HELP 1 |
17985 | EOF | |
17986 | ||
17987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17988 | |
77e13408 | 17989 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 17990 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17991 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17992 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
3f345b47 | 17993 | echo "configure:17994: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17994 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17996 | else | |
17997 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 17998 | #line 17999 "configure" |
29fd3c0c VS |
17999 | #include "confdefs.h" |
18000 | #include <htmlhelp.h> | |
18001 | EOF | |
18002 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 18003 | { (eval echo configure:18004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
18004 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18005 | if test -z "$ac_err"; then | |
18006 | rm -rf conftest* | |
18007 | eval "ac_cv_header_$ac_safe=yes" | |
18008 | else | |
18009 | echo "$ac_err" >&5 | |
18010 | echo "configure: failed program was:" >&5 | |
18011 | cat conftest.$ac_ext >&5 | |
18012 | rm -rf conftest* | |
18013 | eval "ac_cv_header_$ac_safe=no" | |
18014 | fi | |
18015 | rm -f conftest* | |
18016 | fi | |
18017 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18018 | echo "$ac_t""yes" 1>&6 | |
18019 | ||
18020 | cat >> confdefs.h <<\EOF | |
18021 | #define wxUSE_MS_HTML_HELP 1 | |
18022 | EOF | |
18023 | ||
18024 | ||
18025 | else | |
18026 | echo "$ac_t""no" 1>&6 | |
18027 | ||
fc26f4ab | 18028 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
18029 | wxUSE_MS_HTML_HELP=no |
18030 | ||
18031 | fi | |
18032 | ||
3e44f09d | 18033 | fi |
3379ed37 | 18034 | fi |
031d8228 VS |
18035 | |
18036 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
18037 | if test "$wxUSE_HTML" = "yes"; then | |
18038 | cat >> confdefs.h <<\EOF | |
18039 | #define wxUSE_WXHTML_HELP 1 | |
18040 | EOF | |
18041 | ||
18042 | else | |
18043 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
18044 | wxUSE_WXHTML_HELP=no | |
18045 | fi | |
18046 | fi | |
10f2d63a VZ |
18047 | fi |
18048 | ||
18049 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
18050 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 18051 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 18052 | else |
698dcdb6 | 18053 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18054 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
18055 | EOF | |
18056 | ||
18057 | fi | |
18058 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
18059 | fi | |
18060 | ||
18061 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 18062 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18063 | #define wxUSE_PROLOGIO 1 |
18064 | EOF | |
18065 | ||
18066 | fi | |
18067 | ||
18068 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 18069 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18070 | #define wxUSE_RESOURCES 1 |
18071 | EOF | |
18072 | ||
3379ed37 | 18073 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
18074 | fi |
18075 | ||
18076 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 18077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18078 | #define wxUSE_X_RESOURCES 1 |
18079 | EOF | |
18080 | ||
18081 | fi | |
18082 | ||
698dcdb6 | 18083 | |
77e13408 RL |
18084 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
18085 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
18086 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 18087 | for ac_hdr in ole2.h |
10f2d63a | 18088 | do |
698dcdb6 VZ |
18089 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18090 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f345b47 | 18091 | echo "configure:18092: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18092 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18094 | else | |
18095 | cat > conftest.$ac_ext <<EOF | |
3f345b47 | 18096 | #line 18097 "configure" |
10f2d63a | 18097 | #include "confdefs.h" |
698dcdb6 VZ |
18098 | #include <$ac_hdr> |
18099 | EOF | |
18100 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f345b47 | 18101 | { (eval echo configure:18102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18102 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18103 | if test -z "$ac_err"; then | |
18104 | rm -rf conftest* | |
18105 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 18106 | else |
698dcdb6 VZ |
18107 | echo "$ac_err" >&5 |
18108 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18109 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18110 | rm -rf conftest* |
18111 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18112 | fi |
698dcdb6 | 18113 | rm -f conftest* |
10f2d63a | 18114 | fi |
698dcdb6 VZ |
18115 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18116 | echo "$ac_t""yes" 1>&6 | |
18117 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18118 | cat >> confdefs.h <<EOF | |
18119 | #define $ac_tr_hdr 1 | |
10f2d63a | 18120 | EOF |
698dcdb6 VZ |
18121 | |
18122 | else | |
18123 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18124 | fi |
18125 | done | |
18126 | ||
698dcdb6 | 18127 | |
2b9bdf71 VZ |
18128 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
18129 | if test "$GCC" = yes ; then | |
18130 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 18131 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 18132 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 18133 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
18134 | #define wxUSE_OLE 1 |
18135 | EOF | |
18136 | ||
b64f0a5f | 18137 | |
2b9bdf71 VZ |
18138 | fi |
18139 | ||
18140 | cat >> confdefs.h <<\EOF | |
18141 | #define wxUSE_DATAOBJ 1 | |
18142 | EOF | |
18143 | ||
18144 | else | |
18145 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
18146 | ||
18147 | wxUSE_CLIPBOARD=no | |
18148 | wxUSE_DRAG_AND_DROP=no | |
18149 | wxUSE_DATAOBJ=no | |
18150 | fi | |
18151 | ||
77e13408 | 18152 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 18153 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
18154 | #define wxUSE_METAFILE 1 |
18155 | EOF | |
18156 | ||
2b9bdf71 VZ |
18157 | |
18158 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
18159 | #define wxUSE_ENH_METAFILE 1 |
18160 | EOF | |
18161 | ||
2b9bdf71 VZ |
18162 | fi |
18163 | fi | |
18164 | ||
18165 | if test "$wxUSE_IPC" = "yes"; then | |
18166 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 18167 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
18168 | fi |
18169 | ||
18170 | cat >> confdefs.h <<\EOF | |
18171 | #define wxUSE_IPC 1 | |
18172 | EOF | |
18173 | ||
18174 | fi | |
18175 | ||
18176 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
18177 | cat >> confdefs.h <<\EOF | |
18178 | #define wxUSE_CLIPBOARD 1 | |
18179 | EOF | |
18180 | ||
673f4220 | 18181 | |
e33ef661 | 18182 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
18183 | #define wxUSE_DATAOBJ 1 |
18184 | EOF | |
18185 | ||
2b9bdf71 VZ |
18186 | fi |
18187 | ||
18188 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
18189 | if test "$wxUSE_GTK" = 1; then | |
18190 | if test "$WXGTK12" != 1; then | |
156b2523 | 18191 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
18192 | wxUSE_DRAG_AND_DROP=no |
18193 | fi | |
18194 | fi | |
18195 | ||
2b9bdf71 | 18196 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 18197 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
18198 | wxUSE_DRAG_AND_DROP=no |
18199 | fi | |
18200 | ||
18201 | if test "$wxUSE_MAC" = 1; then | |
156b2523 | 18202 | echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2 |
2b9bdf71 VZ |
18203 | wxUSE_DRAG_AND_DROP=no |
18204 | fi | |
18205 | ||
10f2d63a | 18206 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 18207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18208 | #define wxUSE_DRAG_AND_DROP 1 |
18209 | EOF | |
18210 | ||
18211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
18212 | fi | |
18213 | ||
18214 | fi | |
18215 | ||
18216 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 18217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18218 | #define wxUSE_SPLINES 1 |
18219 | EOF | |
18220 | ||
18221 | fi | |
18222 | ||
698dcdb6 | 18223 | |
1e6feb95 VZ |
18224 | USES_CONTROLS=0 |
18225 | if test "$wxUSE_CONTROLS" = "yes"; then | |
18226 | USES_CONTROLS=1 | |
18227 | fi | |
18228 | ||
10f2d63a | 18229 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 18230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18231 | #define wxUSE_ACCEL 1 |
18232 | EOF | |
18233 | ||
1e6feb95 VZ |
18234 | USES_CONTROLS=1 |
18235 | fi | |
18236 | ||
18237 | if test "$wxUSE_BUTTON" = "yes"; then | |
18238 | cat >> confdefs.h <<\EOF | |
18239 | #define wxUSE_BUTTON 1 | |
18240 | EOF | |
18241 | ||
18242 | USES_CONTROLS=1 | |
18243 | fi | |
18244 | ||
18245 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
18246 | cat >> confdefs.h <<\EOF | |
18247 | #define wxUSE_BMPBUTTON 1 | |
18248 | EOF | |
18249 | ||
18250 | USES_CONTROLS=1 | |
18251 | fi | |
18252 | ||
18253 | if test "$wxUSE_CALCTRL" = "yes"; then | |
18254 | cat >> confdefs.h <<\EOF | |
18255 | #define wxUSE_CALENDARCTRL 1 | |
18256 | EOF | |
18257 | ||
18258 | USES_CONTROLS=1 | |
18259 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
18260 | fi |
18261 | ||
18262 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 18263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18264 | #define wxUSE_CARET 1 |
18265 | EOF | |
18266 | ||
1e6feb95 | 18267 | USES_CONTROLS=1 |
10f2d63a VZ |
18268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
18269 | fi | |
18270 | ||
18271 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 18272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18273 | #define wxUSE_COMBOBOX 1 |
18274 | EOF | |
18275 | ||
1e6feb95 | 18276 | USES_CONTROLS=1 |
10f2d63a VZ |
18277 | fi |
18278 | ||
18279 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 18280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18281 | #define wxUSE_CHOICE 1 |
18282 | EOF | |
18283 | ||
1e6feb95 | 18284 | USES_CONTROLS=1 |
10f2d63a VZ |
18285 | fi |
18286 | ||
18287 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 18288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18289 | #define wxUSE_CHECKBOX 1 |
18290 | EOF | |
18291 | ||
1e6feb95 | 18292 | USES_CONTROLS=1 |
10f2d63a VZ |
18293 | fi |
18294 | ||
18295 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 18296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18297 | #define wxUSE_CHECKLISTBOX 1 |
18298 | EOF | |
18299 | ||
1e6feb95 | 18300 | USES_CONTROLS=1 |
10f2d63a VZ |
18301 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
18302 | fi | |
18303 | ||
18304 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 18305 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18306 | #define wxUSE_GAUGE 1 |
18307 | EOF | |
18308 | ||
1e6feb95 | 18309 | USES_CONTROLS=1 |
10f2d63a VZ |
18310 | fi |
18311 | ||
d6a55c4b VZ |
18312 | if test "$wxUSE_NEW_GRID" = "yes"; then |
18313 | wxUSE_GRID="yes" | |
698dcdb6 | 18314 | cat >> confdefs.h <<\EOF |
d6a55c4b | 18315 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
18316 | EOF |
18317 | ||
1e6feb95 | 18318 | USES_CONTROLS=1 |
d6a55c4b | 18319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
18320 | fi |
18321 | ||
d6a55c4b | 18322 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 18323 | cat >> confdefs.h <<\EOF |
d6a55c4b | 18324 | #define wxUSE_GRID 1 |
10f2d63a VZ |
18325 | EOF |
18326 | ||
1e6feb95 | 18327 | USES_CONTROLS=1 |
d6a55c4b | 18328 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
18329 | fi |
18330 | ||
18331 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18332 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18333 | #define wxUSE_IMAGLIST 1 |
18334 | EOF | |
18335 | ||
18336 | fi | |
18337 | ||
18338 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 18339 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18340 | #define wxUSE_LISTBOX 1 |
18341 | EOF | |
18342 | ||
1e6feb95 | 18343 | USES_CONTROLS=1 |
10f2d63a VZ |
18344 | fi |
18345 | ||
18346 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
18347 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18348 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18349 | #define wxUSE_LISTCTRL 1 |
18350 | EOF | |
18351 | ||
1e6feb95 | 18352 | USES_CONTROLS=1 |
10f2d63a VZ |
18353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
18354 | else | |
698dcdb6 | 18355 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18356 | fi |
18357 | fi | |
18358 | ||
18359 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 18360 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18361 | #define wxUSE_NOTEBOOK 1 |
18362 | EOF | |
18363 | ||
1e6feb95 | 18364 | USES_CONTROLS=1 |
10f2d63a VZ |
18365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
18366 | fi | |
18367 | ||
24176f2c GD |
18368 | if test "$wxUSE_PROPSHEET" = "yes"; then |
18369 | cat >> confdefs.h <<\EOF | |
18370 | #define wxUSE_PROPSHEET 1 | |
18371 | EOF | |
18372 | ||
18373 | USES_CONTROLS=1 | |
18374 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
18375 | fi | |
18376 | ||
10f2d63a | 18377 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 18378 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18379 | #define wxUSE_RADIOBOX 1 |
18380 | EOF | |
18381 | ||
1e6feb95 | 18382 | USES_CONTROLS=1 |
10f2d63a VZ |
18383 | fi |
18384 | ||
18385 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 18386 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18387 | #define wxUSE_RADIOBTN 1 |
18388 | EOF | |
18389 | ||
1e6feb95 | 18390 | USES_CONTROLS=1 |
10f2d63a VZ |
18391 | fi |
18392 | ||
18393 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 18394 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18395 | #define wxUSE_SASH 1 |
18396 | EOF | |
18397 | ||
18398 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
18399 | fi | |
18400 | ||
18401 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 18402 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18403 | #define wxUSE_SCROLLBAR 1 |
18404 | EOF | |
18405 | ||
1e6feb95 | 18406 | USES_CONTROLS=1 |
741a9306 | 18407 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
18408 | fi |
18409 | ||
18410 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 18411 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18412 | #define wxUSE_SLIDER 1 |
18413 | EOF | |
18414 | ||
1e6feb95 | 18415 | USES_CONTROLS=1 |
10f2d63a VZ |
18416 | fi |
18417 | ||
18418 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 18419 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18420 | #define wxUSE_SPINBTN 1 |
18421 | EOF | |
18422 | ||
1e6feb95 | 18423 | USES_CONTROLS=1 |
10f2d63a VZ |
18424 | fi |
18425 | ||
56cfaa52 | 18426 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 18427 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
18428 | #define wxUSE_SPINCTRL 1 |
18429 | EOF | |
18430 | ||
1e6feb95 | 18431 | USES_CONTROLS=1 |
56cfaa52 RR |
18432 | fi |
18433 | ||
10f2d63a | 18434 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 18435 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18436 | #define wxUSE_SPLITTER 1 |
18437 | EOF | |
18438 | ||
18439 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
18440 | fi | |
18441 | ||
18442 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 18443 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18444 | #define wxUSE_STATBMP 1 |
18445 | EOF | |
18446 | ||
1e6feb95 | 18447 | USES_CONTROLS=1 |
10f2d63a VZ |
18448 | fi |
18449 | ||
18450 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 18451 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18452 | #define wxUSE_STATBOX 1 |
18453 | EOF | |
18454 | ||
1e6feb95 VZ |
18455 | USES_CONTROLS=1 |
18456 | fi | |
18457 | ||
18458 | if test "$wxUSE_STATTEXT" = "yes"; then | |
18459 | cat >> confdefs.h <<\EOF | |
18460 | #define wxUSE_STATTEXT 1 | |
18461 | EOF | |
18462 | ||
18463 | USES_CONTROLS=1 | |
10f2d63a VZ |
18464 | fi |
18465 | ||
18466 | if test "$wxUSE_STATLINE" = "yes"; then | |
18467 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 18468 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 18469 | else |
698dcdb6 | 18470 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18471 | #define wxUSE_STATLINE 1 |
18472 | EOF | |
18473 | ||
1e6feb95 | 18474 | USES_CONTROLS=1 |
10f2d63a VZ |
18475 | fi |
18476 | fi | |
18477 | ||
18478 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 18479 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18480 | #define wxUSE_STATUSBAR 1 |
18481 | EOF | |
18482 | ||
1e6feb95 | 18483 | USES_CONTROLS=1 |
698dcdb6 | 18484 | |
2286341c | 18485 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
18486 | fi |
18487 | ||
18488 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 18489 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18490 | #define wxUSE_TAB_DIALOG 1 |
18491 | EOF | |
18492 | ||
18493 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
18494 | fi | |
18495 | ||
1e6feb95 VZ |
18496 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
18497 | cat >> confdefs.h <<\EOF | |
18498 | #define wxUSE_TEXTCTRL 1 | |
18499 | EOF | |
18500 | ||
18501 | USES_CONTROLS=1 | |
18502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
18503 | fi | |
18504 | ||
1db8dc4a | 18505 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
18506 | if test "$wxUSE_MAC" = 1; then |
18507 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
18508 | wxUSE_TOGGLEBTN=no | |
18509 | fi | |
18510 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
18511 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
18512 | wxUSE_TOGGLEBTN=no |
18513 | fi | |
18514 | ||
18515 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
18516 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
18517 | #define wxUSE_TOGGLEBTN 1 |
18518 | EOF | |
18519 | ||
1e6feb95 | 18520 | USES_CONTROLS=1 |
a45d7ab7 | 18521 | fi |
1db8dc4a VZ |
18522 | fi |
18523 | ||
360d6699 | 18524 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 18525 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
18526 | #define wxUSE_TOOLBAR_SIMPLE 1 |
18527 | EOF | |
18528 | ||
18529 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 18530 | USES_CONTROLS=1 |
360d6699 VZ |
18531 | fi |
18532 | ||
10f2d63a | 18533 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 18534 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18535 | #define wxUSE_TOOLBAR 1 |
18536 | EOF | |
18537 | ||
1e6feb95 | 18538 | USES_CONTROLS=1 |
698dcdb6 | 18539 | |
360d6699 VZ |
18540 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
18541 | wxUSE_TOOLBAR_NATIVE="yes" | |
18542 | fi | |
18543 | ||
1e6feb95 VZ |
18544 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
18545 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
18546 | #define wxUSE_TOOLBAR_NATIVE 1 |
18547 | EOF | |
18548 | ||
1e6feb95 VZ |
18549 | USES_CONTROLS=1 |
18550 | fi | |
18551 | ||
18552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
18553 | fi |
18554 | ||
10f2d63a VZ |
18555 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
18556 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 18557 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
18558 | else |
18559 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 18560 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 18561 | else |
69d27ff7 | 18562 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18563 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 MB |
18564 | else |
18565 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18566 | #define wxUSE_TOOLTIPS 1 |
18567 | EOF | |
18568 | ||
69d27ff7 | 18569 | fi |
10f2d63a VZ |
18570 | fi |
18571 | fi | |
18572 | fi | |
18573 | ||
18574 | if test "$wxUSE_TREECTRL" = "yes"; then | |
18575 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 18576 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18577 | #define wxUSE_TREECTRL 1 |
18578 | EOF | |
18579 | ||
1e6feb95 | 18580 | USES_CONTROLS=1 |
10f2d63a VZ |
18581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
18582 | else | |
698dcdb6 | 18583 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
18584 | fi |
18585 | fi | |
18586 | ||
9f41d601 | 18587 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 18588 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 18589 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 18590 | else |
485cf710 VZ |
18591 | if test "$wxUSE_MOTIF" = 1; then |
18592 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
18593 | else | |
18594 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
18595 | #define wxUSE_POPUPWIN 1 |
18596 | EOF | |
18597 | ||
9926e4a4 | 18598 | |
485cf710 VZ |
18599 | USES_CONTROLS=1 |
18600 | fi | |
6abe4b65 | 18601 | fi |
9f41d601 RR |
18602 | fi |
18603 | ||
dd964dcc VZ |
18604 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
18605 | cat >> confdefs.h <<\EOF | |
18606 | #define wxUSE_TIPWINDOW 1 | |
18607 | EOF | |
18608 | ||
18609 | fi | |
18610 | ||
1e6feb95 VZ |
18611 | if test "$USES_CONTROLS" = 1; then |
18612 | cat >> confdefs.h <<\EOF | |
18613 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
18614 | EOF |
18615 | ||
10f2d63a VZ |
18616 | fi |
18617 | ||
1e6feb95 | 18618 | |
24176f2c GD |
18619 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
18620 | cat >> confdefs.h <<\EOF | |
18621 | #define wxUSE_TREELAYOUT 1 | |
18622 | EOF | |
18623 | ||
18624 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18625 | fi | |
1e6feb95 | 18626 | |
24fd6d87 VZ |
18627 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18628 | cat >> confdefs.h <<\EOF | |
18629 | #define wxUSE_DRAGIMAGE 1 | |
18630 | EOF | |
18631 | ||
18632 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18633 | fi | |
18634 | ||
1e6feb95 | 18635 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18636 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18637 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18638 | EOF |
18639 | ||
1e6feb95 | 18640 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18641 | fi |
18642 | ||
1e6feb95 VZ |
18643 | if test "$wxUSE_METAFILE" = "yes"; then |
18644 | cat >> confdefs.h <<\EOF | |
18645 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18646 | EOF |
18647 | ||
10f2d63a VZ |
18648 | fi |
18649 | ||
1e6feb95 VZ |
18650 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18651 | cat >> confdefs.h <<\EOF | |
18652 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18653 | EOF |
18654 | ||
10f2d63a VZ |
18655 | fi |
18656 | ||
3e44f09d VZ |
18657 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18658 | cat >> confdefs.h <<\EOF | |
18659 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18660 | EOF | |
18661 | ||
18662 | fi | |
18663 | ||
10f2d63a | 18664 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18665 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18666 | #define wxUSE_MINIFRAME 1 |
18667 | EOF | |
18668 | ||
18669 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18670 | fi | |
18671 | ||
18672 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18673 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18674 | #define wxUSE_HTML 1 |
18675 | EOF | |
18676 | ||
18677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18678 | fi |
18679 | ||
18680 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18681 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18682 | #define wxUSE_VALIDATORS 1 |
18683 | EOF | |
703e0a69 | 18684 | |
698dcdb6 VZ |
18685 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
18686 | fi | |
18687 | ||
edae8572 VZ |
18688 | if test "$wxUSE_PALETTE" = "yes" ; then |
18689 | cat >> confdefs.h <<\EOF | |
18690 | #define wxUSE_PALETTE 1 | |
18691 | EOF | |
18692 | ||
18693 | fi | |
18694 | ||
698dcdb6 VZ |
18695 | if test "$wxUSE_IMAGE" = "yes" ; then |
18696 | cat >> confdefs.h <<\EOF | |
18697 | #define wxUSE_IMAGE 1 | |
18698 | EOF | |
18699 | ||
18700 | fi | |
18701 | ||
18702 | if test "$wxUSE_GIF" = "yes" ; then | |
18703 | cat >> confdefs.h <<\EOF | |
18704 | #define wxUSE_GIF 1 | |
18705 | EOF | |
18706 | ||
18707 | fi | |
18708 | ||
18709 | if test "$wxUSE_PCX" = "yes" ; then | |
18710 | cat >> confdefs.h <<\EOF | |
18711 | #define wxUSE_PCX 1 | |
18712 | EOF | |
18713 | ||
18714 | fi | |
18715 | ||
18716 | if test "$wxUSE_PNM" = "yes" ; then | |
18717 | cat >> confdefs.h <<\EOF | |
18718 | #define wxUSE_PNM 1 | |
18719 | EOF | |
18720 | ||
18721 | fi | |
18722 | ||
18723 | if test "$wxUSE_XPM" = "yes" ; then | |
18724 | cat >> confdefs.h <<\EOF | |
18725 | #define wxUSE_XPM 1 | |
18726 | EOF | |
18727 | ||
18728 | fi | |
18729 | ||
18730 | ||
1e6feb95 VZ |
18731 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
18732 | cat >> confdefs.h <<\EOF | |
18733 | #define wxUSE_CHOICEDLG 1 | |
18734 | EOF | |
18735 | ||
18736 | fi | |
18737 | ||
18738 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18739 | cat >> confdefs.h <<\EOF | |
18740 | #define wxUSE_COLOURDLG 1 | |
18741 | EOF | |
18742 | ||
18743 | fi | |
18744 | ||
18745 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18746 | cat >> confdefs.h <<\EOF | |
18747 | #define wxUSE_FILEDLG 1 | |
18748 | EOF | |
18749 | ||
18750 | fi | |
18751 | ||
8db37e06 VZ |
18752 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
18753 | cat >> confdefs.h <<\EOF | |
18754 | #define wxUSE_FINDREPLDLG 1 | |
18755 | EOF | |
18756 | ||
18757 | fi | |
18758 | ||
1e6feb95 VZ |
18759 | if test "$wxUSE_FONTDLG" = "yes"; then |
18760 | cat >> confdefs.h <<\EOF | |
18761 | #define wxUSE_FONTDLG 1 | |
18762 | EOF | |
18763 | ||
18764 | fi | |
18765 | ||
18766 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18767 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18768 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18769 | else | |
18770 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18771 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18772 | else | |
18773 | cat >> confdefs.h <<\EOF | |
18774 | #define wxUSE_DIRDLG 1 | |
18775 | EOF | |
18776 | ||
18777 | fi | |
18778 | fi | |
18779 | fi | |
18780 | ||
18781 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18782 | cat >> confdefs.h <<\EOF | |
18783 | #define wxUSE_MSGDLG 1 | |
18784 | EOF | |
18785 | ||
18786 | fi | |
18787 | ||
18788 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18789 | cat >> confdefs.h <<\EOF | |
18790 | #define wxUSE_NUMBERDLG 1 | |
18791 | EOF | |
18792 | ||
18793 | fi | |
18794 | ||
18795 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18796 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18797 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18798 | else | |
18799 | cat >> confdefs.h <<\EOF | |
18800 | #define wxUSE_PROGRESSDLG 1 | |
18801 | EOF | |
18802 | ||
18803 | fi | |
18804 | fi | |
18805 | ||
cbca9943 VZ |
18806 | if test "$wxUSE_SPLASH" = "yes"; then |
18807 | cat >> confdefs.h <<\EOF | |
18808 | #define wxUSE_SPLASH 1 | |
18809 | EOF | |
18810 | ||
18811 | fi | |
18812 | ||
1e6feb95 VZ |
18813 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
18814 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18815 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18816 | else | |
18817 | cat >> confdefs.h <<\EOF | |
18818 | #define wxUSE_STARTUP_TIPS 1 | |
18819 | EOF | |
18820 | ||
18821 | fi | |
18822 | fi | |
18823 | ||
18824 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18825 | cat >> confdefs.h <<\EOF | |
18826 | #define wxUSE_TEXTDLG 1 | |
18827 | EOF | |
18828 | ||
18829 | fi | |
18830 | ||
b1f5d087 VZ |
18831 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18832 | cat >> confdefs.h <<\EOF | |
18833 | #define wxUSE_WIZARDDLG 1 | |
18834 | EOF | |
18835 | ||
18836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18837 | fi | |
18838 | ||
1e6feb95 | 18839 | |
698dcdb6 VZ |
18840 | if test "$cross_compiling" = "yes"; then |
18841 | OSINFO="\"$host\"" | |
18842 | else | |
18843 | OSINFO=`uname -s -r -m` | |
18844 | OSINFO="\"$OSINFO\"" | |
18845 | fi | |
18846 | ||
18847 | cat >> confdefs.h <<EOF | |
18848 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18849 | EOF | |
18850 | ||
18851 | ||
18852 | ||
06dda230 VZ |
18853 | if test "x$prefix" != "xNONE"; then |
18854 | wxPREFIX=$prefix | |
18855 | else | |
18856 | wxPREFIX=$ac_default_prefix | |
18857 | fi | |
18858 | ||
7e67ed0d | 18859 | cat >> confdefs.h <<EOF |
06dda230 | 18860 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18861 | EOF |
18862 | ||
18863 | ||
18864 | ||
698dcdb6 | 18865 | |
3a922bb4 | 18866 | |
f11bdd03 | 18867 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 18868 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 18869 | fi |
3a922bb4 | 18870 | |
3d63bc3a RL |
18871 | |
18872 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
18873 | ||
698dcdb6 | 18874 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
18875 | |
18876 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
18877 | |
18878 | ||
18879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18880 | drawing dynamic erase event exec font image \ | |
18881 | minimal richedit rotate widgets" | |
18882 | ||
3a922bb4 RL |
18883 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
18884 | else | |
18885 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18886 | fi |
18887 | ||
698dcdb6 | 18888 | |
d714471b | 18889 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18890 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18891 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 18892 | |
63e7762e | 18893 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 18894 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
18895 | else |
18896 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18897 | fi | |
18898 | ||
18899 | if test "$GXX" = yes ; then | |
18900 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
18901 | |
18902 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
18903 | CFLAGS="-MMD $CFLAGS" | |
18904 | CXXFLAGS="-MMD $CXXFLAGS" | |
18905 | fi | |
18906 | fi | |
18907 | ||
3d63bc3a | 18908 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
18909 | |
18910 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18911 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18912 | ||
3d63bc3a | 18913 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 18914 | |
698dcdb6 VZ |
18915 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18916 | ||
18917 | ||
18918 | ||
18919 | ||
18920 | ||
18921 | ||
18922 | ||
18923 | ||
18924 | ||
18925 | ||
18926 | ||
18927 | ||
18928 | ||
18929 | ||
18930 | ||
18931 | ||
18932 | ||
18933 | ||
18934 | ||
18935 | ||
18936 | ||
18937 | ||
18938 | ||
18939 | ||
18940 | ||
18941 | ||
18942 | ||
18943 | ||
18944 | ||
18945 | ||
18946 | ||
18947 | ||
18948 | ||
18949 | ||
18950 | ||
18951 | ||
18952 | ||
18953 | ||
18954 | ||
18955 | ||
18956 | ||
18957 | ||
18958 | ||
18959 | ||
18960 | ||
18961 | ||
18962 | ||
18963 | ||
18964 | ||
18965 | ||
18966 | ||
18967 | ||
18968 | ||
18969 | ||
18970 | ||
18971 | ||
18972 | ||
18973 | ||
18974 | ||
18975 | ||
18976 | ||
18977 | ||
18978 | ||
18979 | ||
18980 | ||
18981 | ||
18982 | ||
32832908 | 18983 | |
2f51a9ec GD |
18984 | |
18985 | ||
18986 | ||
18987 | ||
f6bcfd97 | 18988 | |
dad6c0ea | 18989 | |
caa2c79b | 18990 | |
3711412e | 18991 | |
1e6feb95 VZ |
18992 | |
18993 | ||
885d4bf5 VS |
18994 | |
18995 | ||
18996 | ||
18997 | ||
62d0491b | 18998 | |
10f2d63a VZ |
18999 | |
19000 | ||
698dcdb6 | 19001 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3f345b47 | 19002 | echo "configure:19003: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
19003 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
19004 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
19005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19006 | else |
698dcdb6 | 19007 | cat > conftestmake <<\EOF |
10f2d63a VZ |
19008 | all: |
19009 | @echo 'ac_maketemp="${MAKE}"' | |
19010 | EOF | |
19011 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 19012 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
19013 | if test -n "$ac_maketemp"; then |
19014 | eval ac_cv_prog_make_${ac_make}_set=yes | |
19015 | else | |
19016 | eval ac_cv_prog_make_${ac_make}_set=no | |
19017 | fi | |
698dcdb6 | 19018 | rm -f conftestmake |
10f2d63a VZ |
19019 | fi |
19020 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 19021 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
19022 | SET_MAKE= |
19023 | else | |
698dcdb6 | 19024 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
19025 | SET_MAKE="MAKE=${MAKE-make}" |
19026 | fi | |
19027 | ||
698dcdb6 | 19028 | |
3a922bb4 RL |
19029 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
19030 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 19031 | fi |
665bbe97 | 19032 | |
698dcdb6 | 19033 | |
10f2d63a | 19034 | |
2224580a | 19035 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 19036 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
19037 | wx_cv_path_ifs=$PATH_IFS |
19038 | wx_cv_program_ext=$PROGRAM_EXT | |
19039 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 19040 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 19041 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 19042 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 19043 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 19044 | subdirs="demos samples utils contrib" |
2224580a VZ |
19045 | |
19046 | fi | |
10f2d63a | 19047 | |
698dcdb6 VZ |
19048 | trap '' 1 2 15 |
19049 | cat > confcache <<\EOF | |
10f2d63a VZ |
19050 | # This file is a shell script that caches the results of configure |
19051 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
19052 | # scripts and configure runs. It is not useful on other systems. |
19053 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 19054 | # |
698dcdb6 VZ |
19055 | # By default, configure uses ./config.cache as the cache file, |
19056 | # creating it if it does not exist already. You can give configure | |
19057 | # the --cache-file=FILE option to use a different cache file; that is | |
19058 | # what configure does when it calls configure scripts in | |
19059 | # subdirectories, so they share the cache. | |
19060 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
19061 | # config.status only pays attention to the cache file if you give it the | |
19062 | # --recheck option to rerun configure. | |
10f2d63a | 19063 | # |
698dcdb6 | 19064 | EOF |
10f2d63a VZ |
19065 | # The following way of writing the cache mishandles newlines in values, |
19066 | # but we know of no workaround that is simple, portable, and efficient. | |
19067 | # So, don't put newlines in cache variables' values. | |
19068 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19069 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
19070 | (set) 2>&1 | |
19071 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19072 | *ac_space=\ *) | |
19073 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
19074 | # turns \\\\ into \\, and sed turns \\ into \). | |
19075 | sed -n \ | |
19076 | -e "s/'/'\\\\''/g" \ | |
19077 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
19078 | ;; | |
19079 | *) | |
19080 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19081 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
19082 | ;; | |
19083 | esac >> confcache | |
19084 | if cmp -s $cache_file confcache; then | |
19085 | : | |
19086 | else | |
10f2d63a | 19087 | if test -w $cache_file; then |
698dcdb6 VZ |
19088 | echo "updating cache $cache_file" |
19089 | cat confcache > $cache_file | |
10f2d63a VZ |
19090 | else |
19091 | echo "not updating unwritable cache $cache_file" | |
19092 | fi | |
19093 | fi | |
19094 | rm -f confcache | |
19095 | ||
698dcdb6 VZ |
19096 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
19097 | ||
10f2d63a VZ |
19098 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19099 | # Let make expand exec_prefix. | |
19100 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19101 | ||
698dcdb6 VZ |
19102 | # Any assignment to VPATH causes Sun make to only execute |
19103 | # the first set of double-colon rules, so remove it if not needed. | |
19104 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 19105 | if test "x$srcdir" = x.; then |
698dcdb6 | 19106 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
19107 | fi |
19108 | ||
698dcdb6 VZ |
19109 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
19110 | ||
10f2d63a VZ |
19111 | DEFS=-DHAVE_CONFIG_H |
19112 | ||
698dcdb6 | 19113 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 19114 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
19115 | |
19116 | echo creating $CONFIG_STATUS | |
19117 | rm -f $CONFIG_STATUS | |
19118 | cat > $CONFIG_STATUS <<EOF | |
19119 | #! /bin/sh | |
10f2d63a VZ |
19120 | # Generated automatically by configure. |
19121 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
19122 | # This directory was configured as follows, |
19123 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19124 | # | |
19125 | # $0 $ac_configure_args | |
19126 | # | |
10f2d63a | 19127 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 19128 | # configure, is in ./config.log if it exists. |
1e487827 | 19129 | |
698dcdb6 VZ |
19130 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
19131 | for ac_option | |
10f2d63a | 19132 | do |
698dcdb6 | 19133 | case "\$ac_option" in |
10f2d63a | 19134 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
19135 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
19136 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
19137 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
19138 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
19139 | exit 0 ;; | |
19140 | -help | --help | --hel | --he | --h) | |
19141 | echo "\$ac_cs_usage"; exit 0 ;; | |
19142 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
19143 | esac |
19144 | done | |
19145 | ||
698dcdb6 VZ |
19146 | ac_given_srcdir=$srcdir |
19147 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 19148 | |
698dcdb6 VZ |
19149 | trap 'rm -fr `echo " |
19150 | wx-config | |
19151 | src/make.env | |
19152 | src/makeprog.env | |
19153 | src/makelib.env | |
19154 | Makefile | |
19155 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 19156 | EOF |
698dcdb6 | 19157 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 19158 | |
698dcdb6 VZ |
19159 | # Protect against being on the right side of a sed subst in config.status. |
19160 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
19161 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
19162 | $ac_vpsub | |
19163 | $extrasub | |
19164 | s%@SHELL@%$SHELL%g | |
19165 | s%@CFLAGS@%$CFLAGS%g | |
19166 | s%@CPPFLAGS@%$CPPFLAGS%g | |
19167 | s%@CXXFLAGS@%$CXXFLAGS%g | |
19168 | s%@FFLAGS@%$FFLAGS%g | |
19169 | s%@DEFS@%$DEFS%g | |
19170 | s%@LDFLAGS@%$LDFLAGS%g | |
19171 | s%@LIBS@%$LIBS%g | |
19172 | s%@exec_prefix@%$exec_prefix%g | |
19173 | s%@prefix@%$prefix%g | |
19174 | s%@program_transform_name@%$program_transform_name%g | |
19175 | s%@bindir@%$bindir%g | |
19176 | s%@sbindir@%$sbindir%g | |
19177 | s%@libexecdir@%$libexecdir%g | |
19178 | s%@datadir@%$datadir%g | |
19179 | s%@sysconfdir@%$sysconfdir%g | |
19180 | s%@sharedstatedir@%$sharedstatedir%g | |
19181 | s%@localstatedir@%$localstatedir%g | |
19182 | s%@libdir@%$libdir%g | |
19183 | s%@includedir@%$includedir%g | |
19184 | s%@oldincludedir@%$oldincludedir%g | |
19185 | s%@infodir@%$infodir%g | |
19186 | s%@mandir@%$mandir%g | |
19187 | s%@host@%$host%g | |
19188 | s%@host_alias@%$host_alias%g | |
19189 | s%@host_cpu@%$host_cpu%g | |
19190 | s%@host_vendor@%$host_vendor%g | |
19191 | s%@host_os@%$host_os%g | |
19192 | s%@target@%$target%g | |
19193 | s%@target_alias@%$target_alias%g | |
19194 | s%@target_cpu@%$target_cpu%g | |
19195 | s%@target_vendor@%$target_vendor%g | |
19196 | s%@target_os@%$target_os%g | |
19197 | s%@build@%$build%g | |
19198 | s%@build_alias@%$build_alias%g | |
19199 | s%@build_cpu@%$build_cpu%g | |
19200 | s%@build_vendor@%$build_vendor%g | |
19201 | s%@build_os@%$build_os%g | |
19202 | s%@CC@%$CC%g | |
19203 | s%@CPP@%$CPP%g | |
19204 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
19205 | s%@RANLIB@%$RANLIB%g |
19206 | s%@AR@%$AR%g | |
19207 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 19208 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 19209 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 VZ |
19210 | s%@STRIP@%$STRIP%g |
19211 | s%@YACC@%$YACC%g | |
19212 | s%@LEX@%$LEX%g | |
19213 | s%@LEXLIB@%$LEXLIB%g | |
19214 | s%@LN_S@%$LN_S%g | |
19215 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
19216 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
19217 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 19218 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
19219 | s%@X_CFLAGS@%$X_CFLAGS%g |
19220 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
19221 | s%@X_LIBS@%$X_LIBS%g | |
19222 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 19223 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 19224 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 19225 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
19226 | s%@LEX_STEM@%$LEX_STEM%g |
19227 | s%@PATH_IFS@%$PATH_IFS%g | |
19228 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
19229 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
19230 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
19231 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
19232 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 19233 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
19234 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
19235 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
19236 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 19237 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
19238 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
19239 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
19240 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
19241 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
19242 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
19243 | s%@WX_ALL@%$WX_ALL%g |
19244 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
19245 | s%@SHARED_LD@%$SHARED_LD%g | |
19246 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
19247 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
19248 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
19249 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
19250 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
19251 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
19252 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
19253 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
19254 | s%@USE_GUI@%$USE_GUI%g | |
19255 | s%@AFMINSTALL@%$AFMINSTALL%g | |
19256 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 19257 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 19258 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
19259 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
19260 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 19261 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
19262 | s%@cross_compiling@%$cross_compiling%g |
19263 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
19264 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
19265 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
19266 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
19267 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
19268 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
19269 | s%@GUIDIST@%$GUIDIST%g |
19270 | s%@PORT_FILES@%$PORT_FILES%g | |
19271 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 19272 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 19273 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 19274 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 19275 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 19276 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 19277 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 19278 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 19279 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 19280 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
19281 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
19282 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 19283 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
19284 | s%@DLLTOOL@%$DLLTOOL%g |
19285 | s%@AS@%$AS%g | |
19286 | s%@NM@%$NM%g | |
19287 | s%@LD@%$LD%g | |
19288 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 19289 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
19290 | s%@SET_MAKE@%$SET_MAKE%g |
19291 | s%@subdirs@%$subdirs%g | |
1e487827 | 19292 | |
1e487827 | 19293 | CEOF |
1e487827 VS |
19294 | EOF |
19295 | ||
698dcdb6 VZ |
19296 | cat >> $CONFIG_STATUS <<\EOF |
19297 | ||
19298 | # Split the substitutions into bite-sized pieces for seds with | |
19299 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
19300 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
19301 | ac_file=1 # Number of current file. | |
19302 | ac_beg=1 # First line for current file. | |
19303 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
19304 | ac_more_lines=: | |
19305 | ac_sed_cmds="" | |
19306 | while $ac_more_lines; do | |
19307 | if test $ac_beg -gt 1; then | |
19308 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
19309 | else | |
19310 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
19311 | fi | |
19312 | if test ! -s conftest.s$ac_file; then | |
19313 | ac_more_lines=false | |
19314 | rm -f conftest.s$ac_file | |
19315 | else | |
19316 | if test -z "$ac_sed_cmds"; then | |
19317 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 19318 | else |
698dcdb6 | 19319 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 19320 | fi |
698dcdb6 VZ |
19321 | ac_file=`expr $ac_file + 1` |
19322 | ac_beg=$ac_end | |
19323 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 19324 | fi |
698dcdb6 VZ |
19325 | done |
19326 | if test -z "$ac_sed_cmds"; then | |
19327 | ac_sed_cmds=cat | |
19328 | fi | |
19329 | EOF | |
10f2d63a | 19330 | |
698dcdb6 VZ |
19331 | cat >> $CONFIG_STATUS <<EOF |
19332 | ||
19333 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
19334 | src/make.env | |
19335 | src/makeprog.env | |
19336 | src/makelib.env | |
19337 | Makefile | |
19338 | "} | |
10f2d63a | 19339 | EOF |
698dcdb6 VZ |
19340 | cat >> $CONFIG_STATUS <<\EOF |
19341 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 19342 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
19343 | case "$ac_file" in |
19344 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
19345 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19346 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
19347 | esac |
19348 | ||
698dcdb6 | 19349 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 19350 | |
698dcdb6 VZ |
19351 | # Remove last slash and all that follows it. Not all systems have dirname. |
19352 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
19353 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
19354 | # The file is in a subdirectory. | |
19355 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
19356 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 19357 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 19358 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
19359 | else |
19360 | ac_dir_suffix= ac_dots= | |
19361 | fi | |
19362 | ||
698dcdb6 VZ |
19363 | case "$ac_given_srcdir" in |
19364 | .) srcdir=. | |
19365 | if test -z "$ac_dots"; then top_srcdir=. | |
19366 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
19367 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 19368 | *) # Relative path. |
698dcdb6 VZ |
19369 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
19370 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
19371 | esac |
19372 | ||
698dcdb6 VZ |
19373 | case "$ac_given_INSTALL" in |
19374 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19375 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
19376 | esac |
19377 | ||
698dcdb6 VZ |
19378 | echo creating "$ac_file" |
19379 | rm -f "$ac_file" | |
19380 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
19381 | case "$ac_file" in | |
19382 | *Makefile*) ac_comsub="1i\\ | |
19383 | # $configure_input" ;; | |
19384 | *) ac_comsub= ;; | |
19385 | esac | |
10f2d63a | 19386 | |
698dcdb6 VZ |
19387 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
19388 | sed -e "$ac_comsub | |
19389 | s%@configure_input@%$configure_input%g | |
19390 | s%@srcdir@%$srcdir%g | |
19391 | s%@top_srcdir@%$top_srcdir%g | |
19392 | s%@INSTALL@%$INSTALL%g | |
19393 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
19394 | fi; done | |
19395 | rm -f conftest.s* | |
10f2d63a VZ |
19396 | |
19397 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
19398 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
19399 | # | |
19400 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
19401 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
19402 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
19403 | ac_dC='\3' | |
19404 | ac_dD='%g' | |
19405 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
19406 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19407 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 19408 | ac_uC=' ' |
698dcdb6 VZ |
19409 | ac_uD='\4%g' |
19410 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
19411 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
19412 | ac_eB='$%\1#\2define\3' | |
19413 | ac_eC=' ' | |
19414 | ac_eD='%g' | |
10f2d63a | 19415 | |
698dcdb6 VZ |
19416 | if test "${CONFIG_HEADERS+set}" != set; then |
19417 | EOF | |
19418 | cat >> $CONFIG_STATUS <<EOF | |
19419 | CONFIG_HEADERS="setup.h:setup.h.in" | |
19420 | EOF | |
19421 | cat >> $CONFIG_STATUS <<\EOF | |
19422 | fi | |
19423 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 19424 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
19425 | case "$ac_file" in |
19426 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
19427 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19428 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
19429 | esac |
19430 | ||
698dcdb6 VZ |
19431 | echo creating $ac_file |
19432 | ||
19433 | rm -f conftest.frag conftest.in conftest.out | |
19434 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
19435 | cat $ac_file_inputs > conftest.in | |
19436 | ||
19437 | EOF | |
19438 | ||
19439 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
19440 | # the proper values into config.h.in to produce config.h. And first: | |
19441 | # Protect against being on the right side of a sed subst in config.status. | |
19442 | # Protect against being in an unquoted here document in config.status. | |
19443 | rm -f conftest.vals | |
19444 | cat > conftest.hdr <<\EOF | |
19445 | s/[\\&%]/\\&/g | |
19446 | s%[\\$`]%\\&%g | |
19447 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
19448 | s%ac_d%ac_u%gp | |
19449 | s%ac_u%ac_e%gp | |
19450 | EOF | |
19451 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
19452 | rm -f conftest.hdr | |
10f2d63a VZ |
19453 | |
19454 | # This sed command replaces #undef with comments. This is necessary, for | |
19455 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
19456 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
19457 | cat >> conftest.vals <<\EOF |
19458 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
19459 | EOF |
19460 | ||
698dcdb6 VZ |
19461 | # Break up conftest.vals because some shells have a limit on |
19462 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
19463 | |
19464 | rm -f conftest.tail | |
698dcdb6 | 19465 | while : |
10f2d63a | 19466 | do |
698dcdb6 VZ |
19467 | ac_lines=`grep -c . conftest.vals` |
19468 | # grep -c gives empty output for an empty file on some AIX systems. | |
19469 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
19470 | # Write a limited-size here document to conftest.frag. | |
19471 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
19472 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 19473 | echo 'CEOF |
698dcdb6 VZ |
19474 | sed -f conftest.frag conftest.in > conftest.out |
19475 | rm -f conftest.in | |
19476 | mv conftest.out conftest.in | |
19477 | ' >> $CONFIG_STATUS | |
19478 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
19479 | rm -f conftest.vals | |
19480 | mv conftest.tail conftest.vals | |
10f2d63a | 19481 | done |
698dcdb6 VZ |
19482 | rm -f conftest.vals |
19483 | ||
19484 | cat >> $CONFIG_STATUS <<\EOF | |
19485 | rm -f conftest.frag conftest.h | |
19486 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
19487 | cat conftest.in >> conftest.h | |
19488 | rm -f conftest.in | |
19489 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
19490 | echo "$ac_file is unchanged" | |
19491 | rm -f conftest.h | |
10f2d63a | 19492 | else |
698dcdb6 VZ |
19493 | # Remove last slash and all that follows it. Not all systems have dirname. |
19494 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 19495 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
19496 | # The file is in a subdirectory. |
19497 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 19498 | fi |
698dcdb6 VZ |
19499 | rm -f $ac_file |
19500 | mv conftest.h $ac_file | |
10f2d63a | 19501 | fi |
698dcdb6 VZ |
19502 | fi; done |
19503 | ||
10f2d63a | 19504 | EOF |
698dcdb6 | 19505 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 19506 | |
3a922bb4 | 19507 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
19508 | LN_S="${LN_S}" |
19509 | ||
19510 | ||
19511 | EOF | |
19512 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 19513 | |
652d930d | 19514 | if test ! -h wx-config; then |
991a5759 | 19515 | chmod +x wx-config |
3a922bb4 RL |
19516 | mv wx-config wx${TOOLCHAIN_NAME}-config |
19517 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 19518 | fi |
665bbe97 | 19519 | |
00cf1208 RR |
19520 | if test ! -d lib; then |
19521 | mkdir lib | |
19522 | fi | |
19523 | if test ! -d lib/wx; then | |
19524 | mkdir lib/wx | |
19525 | fi | |
19526 | if test ! -d lib/wx/include; then | |
19527 | mkdir lib/wx/include | |
19528 | fi | |
3a922bb4 RL |
19529 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
19530 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 19531 | fi |
3a922bb4 RL |
19532 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
19533 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
19534 | fi |
19535 | if test -f setup.h; then | |
3a922bb4 | 19536 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 19537 | fi |
698dcdb6 VZ |
19538 | |
19539 | exit 0 | |
10f2d63a VZ |
19540 | EOF |
19541 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
19542 | rm -fr confdefs* $ac_clean_files |
19543 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 19544 | |
2224580a VZ |
19545 | if test "$no_recursion" != yes; then |
19546 | ||
19547 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
19548 | ac_sub_configure_args= | |
19549 | ac_prev= | |
19550 | for ac_arg in $ac_configure_args; do | |
19551 | if test -n "$ac_prev"; then | |
19552 | ac_prev= | |
19553 | continue | |
19554 | fi | |
698dcdb6 | 19555 | case "$ac_arg" in |
2224580a VZ |
19556 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
19557 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
19558 | ac_prev=cache_file ;; | |
19559 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 19560 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
19561 | ;; |
19562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
19563 | ac_prev=srcdir ;; | |
19564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
19565 | ;; | |
19566 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
19567 | esac | |
19568 | done | |
19569 | ||
698dcdb6 | 19570 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
19571 | |
19572 | # Do not complain, so a configure script can configure whichever | |
19573 | # parts of a large source tree are present. | |
698dcdb6 VZ |
19574 | if test ! -d $srcdir/$ac_config_dir; then |
19575 | continue | |
19576 | fi | |
19577 | ||
19578 | echo configuring in $ac_config_dir | |
2224580a | 19579 | |
698dcdb6 | 19580 | case "$srcdir" in |
2224580a VZ |
19581 | .) ;; |
19582 | *) | |
698dcdb6 VZ |
19583 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
19584 | else | |
19585 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
19586 | fi | |
19587 | ;; | |
2224580a VZ |
19588 | esac |
19589 | ||
19590 | ac_popdir=`pwd` | |
698dcdb6 | 19591 | cd $ac_config_dir |
2224580a | 19592 | |
698dcdb6 VZ |
19593 | # A "../" for each directory in /$ac_config_dir. |
19594 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 19595 | |
698dcdb6 | 19596 | case "$srcdir" in |
2224580a VZ |
19597 | .) # No --srcdir option. We are building in place. |
19598 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
19599 | /*) # Absolute path. |
19600 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 19601 | *) # Relative path. |
698dcdb6 | 19602 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
19603 | esac |
19604 | ||
19605 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
19606 | if test -f $ac_sub_srcdir/configure; then |
19607 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
19608 | elif test -f $ac_sub_srcdir/configure.in; then |
19609 | ac_sub_configure=$ac_configure | |
19610 | else | |
698dcdb6 | 19611 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
19612 | ac_sub_configure= |
19613 | fi | |
19614 | ||
19615 | # The recursion is here. | |
19616 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 19617 | |
2224580a | 19618 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
19619 | case "$cache_file" in |
19620 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 19621 | *) # Relative path. |
698dcdb6 | 19622 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 19623 | esac |
698dcdb6 VZ |
19624 | case "$ac_given_INSTALL" in |
19625 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19626 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19627 | esac | |
2224580a | 19628 | |
698dcdb6 | 19629 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 19630 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
19631 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
19632 | then : | |
19633 | else | |
19634 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19635 | fi | |
2224580a VZ |
19636 | fi |
19637 | ||
19638 | cd $ac_popdir | |
19639 | done | |
19640 | fi | |
19641 | ||
698dcdb6 | 19642 |