]>
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 | ||
8168de4c VZ |
38 | |
39 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
698dcdb6 VZ |
41 | |
42 | ||
43 | ||
44 | ||
698dcdb6 VZ |
45 | |
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
8168de4c | 59 | --enable-gui use GUI classes" |
1e6feb95 | 60 | ac_help="$ac_help |
8168de4c | 61 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
62 | ac_help="$ac_help |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-cygwin use Cygwin for MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-mingw use GCC Minimal MS-Windows" | |
74 | ac_help="$ac_help | |
75 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 76 | ac_help="$ac_help |
b3e8d00a | 77 | --with-mgl use SciTech MGL" |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
92 | ac_help="$ac_help |
93 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-shared create shared library code" |
698dcdb6 | 100 | ac_help="$ac_help |
3a922bb4 | 101 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-optimise create optimised code" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
106 | ac_help="$ac_help |
107 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_info create code with debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-profile create code with profiling information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 122 | ac_help="$ac_help |
b3e8d00a | 123 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-no_deps create code without dependency information" |
54276ccf | 128 | ac_help="$ac_help |
b3e8d00a | 129 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 130 | ac_help="$ac_help |
b3e8d00a | 131 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-intl use internationalization system" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-sockets use socket/network classes" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-datetime use wxDateTime class" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-dialupman use dialup network classes" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-timer use wxTimer class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-wave use wxWave class" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-fraction use wxFraction class" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-longlong use wxLongLong class" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-geometry use geometry class" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-log use logging system" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-streams use wxStream etc classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-file use wxFile classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-ffile use wxFFile classes" |
1e6feb95 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-mimetypes use wxMimeTypesManager" |
3e44f09d | 196 | ac_help="$ac_help |
b3e8d00a | 197 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-threads use threads" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-serial use class serialization" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-docview use document view architecture" |
698dcdb6 | 204 | ac_help="$ac_help |
3379ed37 | 205 | --enable-help use help subsystem" |
29fd3c0c VS |
206 | ac_help="$ac_help |
207 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
208 | ac_help="$ac_help |
209 | --enable-html use wxHTML sub-library" | |
210 | ac_help="$ac_help | |
211 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-constraints use layout-constraints system" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-printarch use printing architecture" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-loggui use standard GUI logger" |
1e6feb95 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-logwin use wxLogWindow" |
1e6feb95 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-prologio use Prolog IO library" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-resources use wxWindows resources" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-metafile use win32 metafiles" |
698dcdb6 | 236 | ac_help="$ac_help |
24176f2c | 237 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-controls use all usual controls" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-accel use accelerators" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-button use wxButton class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-caret use wxCaret class" |
1e6feb95 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-choice use wxChoice class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-gauge use wxGauge class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-grid use wxGrid class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-imaglist use wxImageList class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-listbox use wxListBox class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-notebook use wxNotebook class" |
24176f2c GD |
272 | ac_help="$ac_help |
273 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-sash use wxSashWindow class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-slider use wxSlider class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-statline use wxStaticLine class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-stattext use wxStaticText class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
314 | ac_help="$ac_help |
315 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 316 | ac_help="$ac_help |
b3e8d00a | 317 | --enable-commondlg use all common dialogs" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
324 | ac_help="$ac_help |
325 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
334 | ac_help="$ac_help |
335 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-tipdlg use startup tips" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
342 | ac_help="$ac_help |
343 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-splines use spline drawing code" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 356 | ac_help="$ac_help |
b3e8d00a | 357 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
360 | ac_help="$ac_help |
361 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
362 | ac_help="$ac_help |
363 | --enable-palette use wxPalette class" | |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-image use wxImage class" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
374 | ac_help="$ac_help |
375 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
378 | ac_help="$ac_help | |
379 | --disable-gtktest Do not try to compile and run a test GTK program" | |
380 | ac_help="$ac_help | |
381 | --with-x use the X Window System" | |
10f2d63a VZ |
382 | |
383 | # Initialize some variables set by options. | |
384 | # The variables have the same names as the options, with | |
385 | # dashes changed to underlines. | |
698dcdb6 VZ |
386 | build=NONE |
387 | cache_file=./config.cache | |
10f2d63a | 388 | exec_prefix=NONE |
698dcdb6 | 389 | host=NONE |
10f2d63a | 390 | no_create= |
698dcdb6 | 391 | nonopt=NONE |
10f2d63a VZ |
392 | no_recursion= |
393 | prefix=NONE | |
394 | program_prefix=NONE | |
395 | program_suffix=NONE | |
396 | program_transform_name=s,x,x, | |
397 | silent= | |
398 | site= | |
399 | srcdir= | |
698dcdb6 | 400 | target=NONE |
10f2d63a VZ |
401 | verbose= |
402 | x_includes=NONE | |
403 | x_libraries=NONE | |
404 | bindir='${exec_prefix}/bin' | |
405 | sbindir='${exec_prefix}/sbin' | |
406 | libexecdir='${exec_prefix}/libexec' | |
407 | datadir='${prefix}/share' | |
408 | sysconfdir='${prefix}/etc' | |
409 | sharedstatedir='${prefix}/com' | |
410 | localstatedir='${prefix}/var' | |
411 | libdir='${exec_prefix}/lib' | |
412 | includedir='${prefix}/include' | |
413 | oldincludedir='/usr/include' | |
414 | infodir='${prefix}/info' | |
415 | mandir='${prefix}/man' | |
416 | ||
698dcdb6 VZ |
417 | # Initialize some other variables. |
418 | subdirs= | |
419 | MFLAGS= MAKEFLAGS= | |
420 | SHELL=${CONFIG_SHELL-/bin/sh} | |
421 | # Maximum number of lines to put in a shell here document. | |
422 | ac_max_here_lines=12 | |
10f2d63a VZ |
423 | |
424 | ac_prev= | |
425 | for ac_option | |
426 | do | |
698dcdb6 | 427 | |
10f2d63a VZ |
428 | # If the previous option needs an argument, assign it. |
429 | if test -n "$ac_prev"; then | |
430 | eval "$ac_prev=\$ac_option" | |
431 | ac_prev= | |
432 | continue | |
433 | fi | |
434 | ||
698dcdb6 VZ |
435 | case "$ac_option" in |
436 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
437 | *) ac_optarg= ;; | |
438 | esac | |
10f2d63a VZ |
439 | |
440 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
441 | ||
698dcdb6 | 442 | case "$ac_option" in |
10f2d63a VZ |
443 | |
444 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
445 | ac_prev=bindir ;; | |
446 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 447 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
448 | |
449 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 450 | ac_prev=build ;; |
10f2d63a | 451 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 452 | build="$ac_optarg" ;; |
10f2d63a VZ |
453 | |
454 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
455 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
456 | ac_prev=cache_file ;; | |
457 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
458 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 459 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
460 | |
461 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
462 | ac_prev=datadir ;; | |
463 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
464 | | --da=*) | |
698dcdb6 | 465 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
466 | |
467 | -disable-* | --disable-*) | |
698dcdb6 | 468 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 469 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
470 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
471 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
472 | fi | |
473 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
474 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
475 | |
476 | -enable-* | --enable-*) | |
698dcdb6 | 477 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 478 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
479 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
480 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
481 | fi | |
482 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
483 | case "$ac_option" in | |
484 | *=*) ;; | |
10f2d63a VZ |
485 | *) ac_optarg=yes ;; |
486 | esac | |
698dcdb6 | 487 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
488 | |
489 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
490 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
491 | | --exec | --exe | --ex) | |
492 | ac_prev=exec_prefix ;; | |
493 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
494 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
495 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 496 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
497 | |
498 | -gas | --gas | --ga | --g) | |
499 | # Obsolete; use --with-gas. | |
500 | with_gas=yes ;; | |
501 | ||
698dcdb6 VZ |
502 | -help | --help | --hel | --he) |
503 | # Omit some internal or obsolete options to make the list less imposing. | |
504 | # This message is too long to be a string in the A/UX 3.1 sh. | |
505 | cat << EOF | |
506 | Usage: configure [options] [host] | |
507 | Options: [defaults in brackets after descriptions] | |
508 | Configuration: | |
509 | --cache-file=FILE cache test results in FILE | |
510 | --help print this message | |
511 | --no-create do not create output files | |
512 | --quiet, --silent do not print \`checking...' messages | |
513 | --version print the version of autoconf that created configure | |
514 | Directory and file names: | |
515 | --prefix=PREFIX install architecture-independent files in PREFIX | |
516 | [$ac_default_prefix] | |
517 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
518 | [same as prefix] | |
519 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
520 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
521 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
522 | --datadir=DIR read-only architecture-independent data in DIR | |
523 | [PREFIX/share] | |
524 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
525 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
526 | [PREFIX/com] | |
527 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
528 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
529 | --includedir=DIR C header files in DIR [PREFIX/include] | |
530 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
531 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
532 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
533 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
534 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
535 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
536 | --program-transform-name=PROGRAM | |
537 | run sed PROGRAM on installed program names | |
538 | EOF | |
539 | cat << EOF | |
540 | Host type: | |
541 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
542 | --host=HOST configure for HOST [guessed] | |
543 | --target=TARGET configure for TARGET [TARGET=HOST] | |
544 | Features and packages: | |
545 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
546 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
547 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
548 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
549 | --x-includes=DIR X include files are in DIR | |
550 | --x-libraries=DIR X library files are in DIR | |
551 | EOF | |
552 | if test -n "$ac_help"; then | |
553 | echo "--enable and --with options recognized:$ac_help" | |
554 | fi | |
555 | exit 0 ;; | |
10f2d63a VZ |
556 | |
557 | -host | --host | --hos | --ho) | |
698dcdb6 | 558 | ac_prev=host ;; |
10f2d63a | 559 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 560 | host="$ac_optarg" ;; |
10f2d63a VZ |
561 | |
562 | -includedir | --includedir | --includedi | --included | --include \ | |
563 | | --includ | --inclu | --incl | --inc) | |
564 | ac_prev=includedir ;; | |
565 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
566 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 567 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
568 | |
569 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
570 | ac_prev=infodir ;; | |
571 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 572 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
573 | |
574 | -libdir | --libdir | --libdi | --libd) | |
575 | ac_prev=libdir ;; | |
576 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 577 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
578 | |
579 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
580 | | --libexe | --libex | --libe) | |
581 | ac_prev=libexecdir ;; | |
582 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
583 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 584 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
585 | |
586 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
587 | | --localstate | --localstat | --localsta | --localst \ | |
588 | | --locals | --local | --loca | --loc | --lo) | |
589 | ac_prev=localstatedir ;; | |
590 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
591 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
592 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 593 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
594 | |
595 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
596 | ac_prev=mandir ;; | |
597 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 598 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
599 | |
600 | -nfp | --nfp | --nf) | |
601 | # Obsolete; use --without-fp. | |
602 | with_fp=no ;; | |
603 | ||
604 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
605 | | --no-cr | --no-c) | |
606 | no_create=yes ;; | |
607 | ||
608 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
609 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
610 | no_recursion=yes ;; | |
611 | ||
612 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
613 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
614 | | --oldin | --oldi | --old | --ol | --o) | |
615 | ac_prev=oldincludedir ;; | |
616 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
617 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
618 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 619 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
620 | |
621 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
622 | ac_prev=prefix ;; | |
623 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 624 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
625 | |
626 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
627 | | --program-pre | --program-pr | --program-p) | |
628 | ac_prev=program_prefix ;; | |
629 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
630 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 631 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
632 | |
633 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
634 | | --program-suf | --program-su | --program-s) | |
635 | ac_prev=program_suffix ;; | |
636 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
637 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 638 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -program-transform-name | --program-transform-name \ | |
641 | | --program-transform-nam | --program-transform-na \ | |
642 | | --program-transform-n | --program-transform- \ | |
643 | | --program-transform | --program-transfor \ | |
644 | | --program-transfo | --program-transf \ | |
645 | | --program-trans | --program-tran \ | |
646 | | --progr-tra | --program-tr | --program-t) | |
647 | ac_prev=program_transform_name ;; | |
648 | -program-transform-name=* | --program-transform-name=* \ | |
649 | | --program-transform-nam=* | --program-transform-na=* \ | |
650 | | --program-transform-n=* | --program-transform-=* \ | |
651 | | --program-transform=* | --program-transfor=* \ | |
652 | | --program-transfo=* | --program-transf=* \ | |
653 | | --program-trans=* | --program-tran=* \ | |
654 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 655 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
656 | |
657 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
658 | | -silent | --silent | --silen | --sile | --sil) | |
659 | silent=yes ;; | |
660 | ||
661 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
662 | ac_prev=sbindir ;; | |
663 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
664 | | --sbi=* | --sb=*) | |
698dcdb6 | 665 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
666 | |
667 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
668 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
669 | | --sharedst | --shareds | --shared | --share | --shar \ | |
670 | | --sha | --sh) | |
671 | ac_prev=sharedstatedir ;; | |
672 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
673 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
674 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
675 | | --sha=* | --sh=*) | |
698dcdb6 | 676 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
677 | |
678 | -site | --site | --sit) | |
679 | ac_prev=site ;; | |
680 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 681 | site="$ac_optarg" ;; |
10f2d63a VZ |
682 | |
683 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
684 | ac_prev=srcdir ;; | |
685 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 686 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
687 | |
688 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
689 | | --syscon | --sysco | --sysc | --sys | --sy) | |
690 | ac_prev=sysconfdir ;; | |
691 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
692 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 693 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
694 | |
695 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 696 | ac_prev=target ;; |
10f2d63a | 697 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 698 | target="$ac_optarg" ;; |
10f2d63a VZ |
699 | |
700 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
701 | verbose=yes ;; | |
702 | ||
698dcdb6 VZ |
703 | -version | --version | --versio | --versi | --vers) |
704 | echo "configure generated by autoconf version 2.13" | |
705 | exit 0 ;; | |
10f2d63a VZ |
706 | |
707 | -with-* | --with-*) | |
698dcdb6 | 708 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 709 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
710 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
711 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
712 | fi | |
10f2d63a | 713 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
714 | case "$ac_option" in |
715 | *=*) ;; | |
10f2d63a VZ |
716 | *) ac_optarg=yes ;; |
717 | esac | |
698dcdb6 | 718 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
719 | |
720 | -without-* | --without-*) | |
698dcdb6 | 721 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
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 | |
726 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
727 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
728 | |
729 | --x) | |
730 | # Obsolete; use --with-x. | |
731 | with_x=yes ;; | |
732 | ||
733 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
734 | | --x-incl | --x-inc | --x-in | --x-i) | |
735 | ac_prev=x_includes ;; | |
736 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
737 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 738 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
739 | |
740 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
741 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
742 | ac_prev=x_libraries ;; | |
743 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
744 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 745 | x_libraries="$ac_optarg" ;; |
10f2d63a | 746 | |
698dcdb6 | 747 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
748 | ;; |
749 | ||
750 | *) | |
698dcdb6 VZ |
751 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
752 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
753 | fi | |
754 | if test "x$nonopt" != xNONE; then | |
755 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
756 | fi | |
757 | nonopt="$ac_option" | |
10f2d63a VZ |
758 | ;; |
759 | ||
760 | esac | |
761 | done | |
762 | ||
763 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
764 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
765 | fi | |
766 | ||
767 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
768 | ||
769 | # File descriptor usage: | |
770 | # 0 standard input | |
771 | # 1 file creation | |
772 | # 2 errors and warnings | |
773 | # 3 some systems may open it to /dev/tty | |
774 | # 4 used on the Kubota Titan | |
775 | # 6 checking for... messages and results | |
776 | # 5 compiler messages saved in config.log | |
777 | if test "$silent" = yes; then | |
778 | exec 6>/dev/null | |
779 | else | |
780 | exec 6>&1 | |
10f2d63a | 781 | fi |
698dcdb6 VZ |
782 | exec 5>./config.log |
783 | ||
784 | echo "\ | |
785 | This file contains any messages produced by compilers while | |
786 | running configure, to aid debugging if configure makes a mistake. | |
787 | " 1>&5 | |
10f2d63a | 788 | |
698dcdb6 VZ |
789 | # Strip out --no-create and --no-recursion so they do not pile up. |
790 | # Also quote any args containing shell metacharacters. | |
791 | ac_configure_args= | |
792 | for ac_arg | |
10f2d63a | 793 | do |
698dcdb6 VZ |
794 | case "$ac_arg" in |
795 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
796 | | --no-cr | --no-c) ;; | |
797 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
798 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
799 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
800 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
801 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
802 | esac |
803 | done | |
804 | ||
698dcdb6 VZ |
805 | # NLS nuisances. |
806 | # Only set these to C if already set. These must not be set unconditionally | |
807 | # because not all systems understand e.g. LANG=C (notably SCO). | |
808 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
809 | # Non-C LC_CTYPE values break the ctype check. | |
810 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
811 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
812 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
813 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 814 | |
698dcdb6 VZ |
815 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
816 | rm -rf conftest* confdefs.h | |
817 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
818 | echo > confdefs.h | |
10f2d63a | 819 | |
698dcdb6 VZ |
820 | # A filename unique to this package, relative to the directory that |
821 | # configure is in, which we can look for to find out if srcdir is correct. | |
822 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
823 | |
824 | # Find the source files, if location was not specified. | |
825 | if test -z "$srcdir"; then | |
826 | ac_srcdir_defaulted=yes | |
827 | # Try the directory containing this script, then its parent. | |
828 | ac_prog=$0 | |
698dcdb6 | 829 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
830 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
831 | srcdir=$ac_confdir | |
832 | if test ! -r $srcdir/$ac_unique_file; then | |
833 | srcdir=.. | |
834 | fi | |
835 | else | |
836 | ac_srcdir_defaulted=no | |
837 | fi | |
838 | if test ! -r $srcdir/$ac_unique_file; then | |
839 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 840 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 841 | else |
698dcdb6 | 842 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
843 | fi |
844 | fi | |
698dcdb6 | 845 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
846 | |
847 | # Prefer explicitly selected file to automatically selected ones. | |
848 | if test -z "$CONFIG_SITE"; then | |
849 | if test "x$prefix" != xNONE; then | |
850 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
851 | else | |
852 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
853 | fi | |
854 | fi | |
855 | for ac_site_file in $CONFIG_SITE; do | |
856 | if test -r "$ac_site_file"; then | |
698dcdb6 | 857 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
858 | . "$ac_site_file" |
859 | fi | |
860 | done | |
861 | ||
862 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
863 | echo "loading cache $cache_file" |
864 | . $cache_file | |
10f2d63a | 865 | else |
698dcdb6 VZ |
866 | echo "creating cache $cache_file" |
867 | > $cache_file | |
10f2d63a VZ |
868 | fi |
869 | ||
870 | ac_ext=c | |
698dcdb6 | 871 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 872 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
873 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
874 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
875 | cross_compiling=$ac_cv_prog_cc_cross | |
876 | ||
877 | ac_exeext= | |
878 | ac_objext=o | |
879 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
880 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
881 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
882 | ac_n= ac_c=' | |
883 | ' ac_t=' ' | |
884 | else | |
885 | ac_n=-n ac_c= ac_t= | |
886 | fi | |
10f2d63a | 887 | else |
698dcdb6 | 888 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 889 | fi |
698dcdb6 VZ |
890 | |
891 | ||
10f2d63a | 892 | |
7c66a493 VZ |
893 | ac_aux_dir= |
894 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
895 | if test -f $ac_dir/install-sh; then | |
896 | ac_aux_dir=$ac_dir | |
897 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
898 | break | |
899 | elif test -f $ac_dir/install.sh; then | |
900 | ac_aux_dir=$ac_dir | |
901 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
902 | break | |
903 | fi | |
904 | done | |
905 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 906 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 907 | fi |
698dcdb6 VZ |
908 | ac_config_guess=$ac_aux_dir/config.guess |
909 | ac_config_sub=$ac_aux_dir/config.sub | |
910 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 911 | |
698dcdb6 VZ |
912 | |
913 | # Do some error checking and defaulting for the host and target type. | |
914 | # The inputs are: | |
915 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
916 | # | |
917 | # The rules are: | |
918 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
919 | # same time. | |
920 | # 2. Host defaults to nonopt. | |
921 | # 3. If nonopt is not specified, then host defaults to the current host, | |
922 | # as determined by config.guess. | |
923 | # 4. Target and build default to nonopt. | |
924 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
925 | |
926 | # The aliases save the names the user supplied, while $host etc. | |
927 | # will get canonicalized. | |
698dcdb6 VZ |
928 | case $host---$target---$nonopt in |
929 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
930 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
931 | esac | |
932 | ||
933 | ||
934 | # Make sure we can run config.sub. | |
935 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
936 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
937 | fi | |
938 | ||
939 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
683dccda | 940 | echo "configure:941: checking host system type" >&5 |
698dcdb6 VZ |
941 | |
942 | host_alias=$host | |
943 | case "$host_alias" in | |
944 | NONE) | |
945 | case $nonopt in | |
946 | NONE) | |
947 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
948 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
949 | fi ;; | |
950 | *) host_alias=$nonopt ;; | |
951 | esac ;; | |
952 | esac | |
953 | ||
954 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
955 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
956 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
957 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
958 | echo "$ac_t""$host" 1>&6 | |
959 | ||
960 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
683dccda | 961 | echo "configure:962: checking target system type" >&5 |
698dcdb6 VZ |
962 | |
963 | target_alias=$target | |
964 | case "$target_alias" in | |
965 | NONE) | |
966 | case $nonopt in | |
967 | NONE) target_alias=$host_alias ;; | |
968 | *) target_alias=$nonopt ;; | |
969 | esac ;; | |
970 | esac | |
971 | ||
972 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
973 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
974 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
975 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
976 | echo "$ac_t""$target" 1>&6 | |
977 | ||
978 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
683dccda | 979 | echo "configure:980: checking build system type" >&5 |
698dcdb6 VZ |
980 | |
981 | build_alias=$build | |
982 | case "$build_alias" in | |
983 | NONE) | |
984 | case $nonopt in | |
985 | NONE) build_alias=$host_alias ;; | |
986 | *) build_alias=$nonopt ;; | |
987 | esac ;; | |
988 | esac | |
989 | ||
990 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
991 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
992 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
993 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
994 | echo "$ac_t""$build" 1>&6 | |
995 | ||
996 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
997 | test "$program_prefix$program_suffix$program_transform_name" = \ |
998 | NONENONEs,x,x, && | |
999 | program_prefix=${target_alias}- | |
1000 | ||
698dcdb6 VZ |
1001 | |
1002 | ||
10f2d63a | 1003 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1004 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1005 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1006 | |
10f2d63a | 1007 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1008 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1009 | |
6c01ec02 | 1010 | WX_CURRENT=1 |
6426998c RL |
1011 | WX_REVISION=0 |
1012 | WX_AGE=0 | |
1013 | ||
698dcdb6 VZ |
1014 | |
1015 | ||
10f2d63a VZ |
1016 | USE_UNIX=1 |
1017 | USE_WIN32=0 | |
b12915c1 | 1018 | USE_BEOS=0 |
1216f52d | 1019 | USE_MAC=0 |
b12915c1 | 1020 | |
10f2d63a VZ |
1021 | USE_LINUX= |
1022 | USE_SGI= | |
1023 | USE_HPUX= | |
1024 | USE_SYSV= | |
1025 | USE_SVR4= | |
1026 | USE_AIX= | |
1027 | USE_SUN= | |
1028 | USE_SOLARIS= | |
1029 | USE_SUNOS= | |
1030 | USE_ALPHA= | |
7cf43d5e | 1031 | USE_IA64= |
10f2d63a VZ |
1032 | USE_OSF= |
1033 | USE_BSD= | |
f11bdd03 | 1034 | USE_DARWIN= |
10f2d63a | 1035 | USE_FREEBSD= |
95c8801c | 1036 | USE_OPENBSD= |
f6bcfd97 | 1037 | USE_NETBSD= |
10f2d63a VZ |
1038 | USE_VMS= |
1039 | USE_ULTRIX= | |
1040 | USE_CYGWIN= | |
1041 | USE_MINGW= | |
1042 | USE_DATA_GENERAL= | |
1043 | ||
ab9b9eab VZ |
1044 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1045 | ||
1e6feb95 | 1046 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1047 | |
1048 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1049 | DEFAULT_wxUSE_MAC=0 |
1050 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1051 | DEFAULT_wxUSE_MOTIF=0 |
1052 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1053 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1054 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1055 | |
1056 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1057 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1058 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1059 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1060 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1061 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1062 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1063 | |
d6a55c4b | 1064 | PROGRAM_EXT= |
3a922bb4 | 1065 | SO_SUFFIX=so |
d6a55c4b | 1066 | |
10f2d63a VZ |
1067 | case "${host}" in |
1068 | *-hp-hpux* ) | |
1069 | USE_HPUX=1 | |
1070 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1071 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1072 | SO_SUFFIX=sl |
698dcdb6 | 1073 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1074 | #define __HPUX__ 1 |
1075 | EOF | |
1076 | ||
1077 | ;; | |
1078 | *-*-linux* ) | |
1079 | USE_LINUX=1 | |
698dcdb6 | 1080 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1081 | #define __LINUX__ 1 |
1082 | EOF | |
1083 | ||
1084 | TMP=`uname -m` | |
1085 | if test "x$TMP" = "xalpha"; then | |
1086 | USE_ALPHA=1 | |
698dcdb6 | 1087 | cat >> confdefs.h <<\EOF |
10f2d63a | 1088 | #define __ALPHA__ 1 |
7cf43d5e RL |
1089 | EOF |
1090 | ||
1091 | fi | |
1092 | if test "x$TMP" = "xia64"; then | |
1093 | USE_IA64=1 | |
1094 | cat >> confdefs.h <<\EOF | |
1095 | #define __IA64__ 1 | |
10f2d63a VZ |
1096 | EOF |
1097 | ||
1098 | fi | |
1099 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1100 | ;; | |
1101 | *-*-irix5* | *-*-irix6* ) | |
1102 | USE_SGI=1 | |
1103 | USE_SVR4=1 | |
698dcdb6 | 1104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1105 | #define __SGI__ 1 |
1106 | EOF | |
1107 | ||
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SVR4__ 1 |
1110 | EOF | |
1111 | ||
1112 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1113 | ;; | |
1114 | *-*-solaris2* ) | |
1115 | USE_SUN=1 | |
1116 | USE_SOLARIS=1 | |
1117 | USE_SVR4=1 | |
698dcdb6 | 1118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1119 | #define __SUN__ 1 |
1120 | EOF | |
1121 | ||
698dcdb6 | 1122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1123 | #define __SOLARIS__ 1 |
1124 | EOF | |
1125 | ||
698dcdb6 | 1126 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1127 | #define __SVR4__ 1 |
1128 | EOF | |
1129 | ||
1130 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1131 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1132 | ;; |
1133 | *-*-sunos4* ) | |
1134 | USE_SUN=1 | |
1135 | USE_SUNOS=1 | |
1136 | USE_BSD=1 | |
698dcdb6 | 1137 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1138 | #define __SUN__ 1 |
1139 | EOF | |
1140 | ||
698dcdb6 | 1141 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1142 | #define __SUNOS__ 1 |
1143 | EOF | |
1144 | ||
698dcdb6 | 1145 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1146 | #define __BSD__ 1 |
1147 | EOF | |
1148 | ||
1149 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1150 | ;; | |
f6bcfd97 | 1151 | *-*-freebsd*) |
10f2d63a VZ |
1152 | USE_BSD=1 |
1153 | USE_FREEBSD=1 | |
698dcdb6 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1155 | #define __FREEBSD__ 1 |
1156 | EOF | |
1157 | ||
698dcdb6 | 1158 | cat >> confdefs.h <<\EOF |
10f2d63a | 1159 | #define __BSD__ 1 |
95c8801c VS |
1160 | EOF |
1161 | ||
1162 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1163 | ;; | |
1164 | *-*-openbsd*) | |
1165 | USE_BSD=1 | |
1166 | USE_OPENBSD=1 | |
698dcdb6 | 1167 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1168 | #define __FREEBSD__ 1 |
1169 | EOF | |
1170 | ||
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
95c8801c | 1172 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1173 | EOF |
1174 | ||
1175 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1176 | ;; | |
1177 | *-*-netbsd*) | |
1178 | USE_BSD=1 | |
1179 | USE_NETBSD=1 | |
698dcdb6 | 1180 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1181 | #define __FREEBSD__ 1 |
1182 | EOF | |
1183 | ||
698dcdb6 | 1184 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1185 | #define __NETBSD__ 1 |
10f2d63a VZ |
1186 | EOF |
1187 | ||
1188 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1189 | ;; | |
1190 | *-*-osf* ) | |
1191 | USE_ALPHA=1 | |
1192 | USE_OSF=1 | |
698dcdb6 | 1193 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1194 | #define __ALPHA__ 1 |
1195 | EOF | |
1196 | ||
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __OSF__ 1 |
1199 | EOF | |
1200 | ||
1201 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1202 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1203 | ;; |
1204 | *-*-dgux5* ) | |
1205 | USE_ALPHA=1 | |
1206 | USE_SVR4=1 | |
698dcdb6 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __ALPHA__ 1 |
1209 | EOF | |
1210 | ||
698dcdb6 | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1212 | #define __SVR4__ 1 |
1213 | EOF | |
1214 | ||
1215 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1216 | ;; | |
1217 | *-*-sysv5* ) | |
1218 | USE_SYSV=1 | |
1219 | USE_SVR4=1 | |
698dcdb6 | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1221 | #define __SYSV__ 1 |
1222 | EOF | |
1223 | ||
698dcdb6 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __SVR4__ 1 |
1226 | EOF | |
1227 | ||
1228 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1229 | ;; | |
1230 | *-*-aix* ) | |
1231 | USE_AIX=1 | |
1232 | USE_SYSV=1 | |
1233 | USE_SVR4=1 | |
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1235 | #define __AIX__ 1 |
1236 | EOF | |
1237 | ||
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1239 | #define __SYSV__ 1 |
1240 | EOF | |
1241 | ||
698dcdb6 | 1242 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1243 | #define __SVR4__ 1 |
1244 | EOF | |
1245 | ||
1246 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1247 | ;; | |
1248 | ||
1c8183e2 | 1249 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1250 | USE_UNIX=0 |
1251 | USE_WIN32=1 | |
3a922bb4 | 1252 | SO_SUFFIX=dll |
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __WIN32__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __WIN95__ 1 |
1259 | EOF | |
1260 | ||
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __WINDOWS__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define __GNUWIN32__ 1 |
1267 | EOF | |
1268 | ||
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1270 | #define STRICT 1 |
1271 | EOF | |
1272 | ||
698dcdb6 | 1273 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1274 | #define WINVER 0x0400 |
1275 | EOF | |
1276 | ||
cf27ef00 | 1277 | PROGRAM_EXT=".exe" |
7b7a7637 | 1278 | RESCOMP=windres |
10f2d63a VZ |
1279 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1280 | ;; | |
1281 | ||
6fa882bd | 1282 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1284 | #define __EMX__ 1 |
1285 | EOF | |
1286 | ||
cf27ef00 | 1287 | PROGRAM_EXT=".exe" |
e07802fc | 1288 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1289 | ;; |
1290 | ||
d08b457b GD |
1291 | powerpc-*-darwin* ) |
1292 | USE_BSD=1 | |
f11bdd03 | 1293 | USE_DARWIN=1 |
3a922bb4 | 1294 | SO_SUFFIX=dylib |
698dcdb6 | 1295 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1296 | #define __BSD__ 1 |
b4085ce6 GD |
1297 | EOF |
1298 | ||
698dcdb6 | 1299 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1300 | #define __DARWIN__ 1 |
d08b457b GD |
1301 | EOF |
1302 | ||
1303 | cat >> confdefs.h <<\EOF | |
1304 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1305 | EOF |
1306 | ||
1307 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1308 | ;; | |
1309 | ||
b12915c1 VZ |
1310 | *-*-beos* ) |
1311 | USE_BEOS=1 | |
698dcdb6 | 1312 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1313 | #define __BEOS__ 1 |
1314 | EOF | |
1315 | ||
1316 | ;; | |
1317 | ||
10f2d63a | 1318 | *) |
698dcdb6 | 1319 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1320 | esac |
1321 | ||
1322 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1323 | wxUSE_UNIX=yes |
698dcdb6 | 1324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1325 | #define __UNIX__ 1 |
1326 | EOF | |
1327 | ||
10f2d63a VZ |
1328 | fi |
1329 | ||
2389f33b VZ |
1330 | if test "$USE_LINUX" = 1; then |
1331 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
7cf43d5e | 1332 | echo "configure:1333: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1333 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1335 | else | |
1336 | cat > conftest.$ac_ext <<EOF | |
7cf43d5e | 1337 | #line 1338 "configure" |
2389f33b VZ |
1338 | #include "confdefs.h" |
1339 | #include <features.h> | |
1340 | int main() { | |
1341 | ||
1342 | #if !__GLIBC_PREREQ(2, 1) | |
1343 | #error not glibc2.1 | |
1344 | #endif | |
1345 | ||
1346 | ; return 0; } | |
1347 | EOF | |
7cf43d5e | 1348 | if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1349 | rm -rf conftest* |
1350 | ||
1351 | wx_lib_glibc21=yes | |
1352 | ||
1353 | else | |
1354 | echo "configure: failed program was:" >&5 | |
1355 | cat conftest.$ac_ext >&5 | |
1356 | rm -rf conftest* | |
1357 | ||
1358 | wx_lib_glibc21=no | |
1359 | ||
1360 | ||
1361 | fi | |
1362 | rm -f conftest* | |
1363 | ||
1364 | fi | |
1365 | ||
1366 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1367 | if test "$wx_lib_glibc21" = "yes"; then |
1368 | cat >> confdefs.h <<\EOF | |
1369 | #define wxHAVE_GLIBC2 1 | |
1370 | EOF | |
1371 | ||
1372 | fi | |
1373 | fi | |
10f2d63a | 1374 | |
1e487827 | 1375 | |
1e487827 | 1376 | |
6232543b | 1377 | |
10f2d63a VZ |
1378 | wx_arg_cache_file="configarg.cache" |
1379 | echo "loading argument cache $wx_arg_cache_file" | |
1380 | rm -f ${wx_arg_cache_file}.tmp | |
1381 | touch ${wx_arg_cache_file}.tmp | |
1382 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1383 | |
10f2d63a VZ |
1384 | |
1385 | DEBUG_CONFIGURE=0 | |
1386 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1387 | DEFAULT_wxUSE_UNIVERSAL=no |
1388 | ||
10f2d63a VZ |
1389 | DEFAULT_wxUSE_THREADS=yes |
1390 | ||
1391 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1392 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1393 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1394 | DEFAULT_wxUSE_PROFILE=no |
1395 | DEFAULT_wxUSE_NO_DEPS=no | |
1396 | DEFAULT_wxUSE_NO_RTTI=no | |
1397 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1398 | DEFAULT_wxUSE_PERMISSIVE=no | |
1399 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1400 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1401 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1402 | DEFAULT_wxUSE_MEM_TRACING=no | |
1403 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1404 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1405 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1406 | DEFAULT_wxUSE_APPLE_IEEE=no |
1407 | ||
1408 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1409 | DEFAULT_wxUSE_LOGWINDOW=no |
1410 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1411 | |
1412 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1413 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1414 | |
3e44f09d | 1415 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_ZLIB=no |
1417 | DEFAULT_wxUSE_LIBPNG=no | |
1418 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1419 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1420 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1421 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1422 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1423 | |
eb4efbdc | 1424 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1425 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1426 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1427 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1428 | DEFAULT_wxUSE_DATETIME=no | |
1429 | DEFAULT_wxUSE_TIMEDATE=no | |
1430 | DEFAULT_wxUSE_TIMER=no | |
1431 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1432 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1433 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1434 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_WAVE=no |
1436 | DEFAULT_wxUSE_INTL=no | |
1437 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1438 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1439 | DEFAULT_wxUSE_STREAMS=no |
1440 | DEFAULT_wxUSE_SOCKETS=no | |
1441 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1442 | DEFAULT_wxUSE_SERIAL=no | |
1443 | DEFAULT_wxUSE_JOYSTICK=no | |
1444 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1445 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1446 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1447 | |
1448 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1449 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1450 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1451 | ||
1452 | DEFAULT_wxUSE_X_RESOURCES=no | |
1453 | DEFAULT_wxUSE_CLIPBOARD=no | |
1454 | DEFAULT_wxUSE_TOOLTIPS=no | |
1455 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1456 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_SPLINES=no |
1458 | ||
1459 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1460 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1461 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1462 | ||
1463 | DEFAULT_wxUSE_PROLOGIO=no | |
1464 | DEFAULT_wxUSE_RESOURCES=no | |
1465 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1466 | DEFAULT_wxUSE_IPC=no | |
1467 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1468 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1469 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1470 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1471 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1472 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1473 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1474 | |
1475 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1476 | DEFAULT_wxUSE_CHOICEDLG=no |
1477 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1478 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1479 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1480 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1481 | DEFAULT_wxUSE_FONTDLG=no |
1482 | DEFAULT_wxUSE_MSGDLG=no | |
1483 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1484 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1485 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1487 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1488 | DEFAULT_wxUSE_WIZARDDLG=no |
1489 | ||
1e6feb95 | 1490 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1491 | DEFAULT_wxUSE_MINIFRAME=no |
1492 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1493 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1494 | DEFAULT_wxUSE_FS_INET=no |
1495 | DEFAULT_wxUSE_FS_ZIP=no | |
1496 | DEFAULT_wxUSE_BUSYINFO=no | |
1497 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1498 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1499 | |
1500 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1501 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1502 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1503 | DEFAULT_wxUSE_CALCTRL=no |
1504 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_CHECKBOX=no |
1506 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1507 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_COMBOBOX=no |
1509 | DEFAULT_wxUSE_GAUGE=no | |
1510 | DEFAULT_wxUSE_GRID=no | |
1511 | DEFAULT_wxUSE_NEW_GRID=no | |
1512 | DEFAULT_wxUSE_IMAGLIST=no | |
1513 | DEFAULT_wxUSE_LISTBOX=no | |
1514 | DEFAULT_wxUSE_LISTCTRL=no | |
1515 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1516 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_RADIOBOX=no |
1518 | DEFAULT_wxUSE_RADIOBTN=no | |
1519 | DEFAULT_wxUSE_SASH=no | |
1520 | DEFAULT_wxUSE_SCROLLBAR=no | |
1521 | DEFAULT_wxUSE_SLIDER=no | |
1522 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1523 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1524 | DEFAULT_wxUSE_SPLITTER=no |
1525 | DEFAULT_wxUSE_STATBMP=no | |
1526 | DEFAULT_wxUSE_STATBOX=no | |
1527 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1528 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_STATUSBAR=yes |
1530 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1531 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1532 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1533 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1534 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1535 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1536 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1537 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1538 | |
1539 | DEFAULT_wxUSE_UNICODE=no | |
1540 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1541 | ||
edae8572 | 1542 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1543 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_GIF=no |
1545 | DEFAULT_wxUSE_PCX=no | |
1546 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1547 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1548 | else |
1e6feb95 VZ |
1549 | DEFAULT_wxUSE_UNIVERSAL=no |
1550 | ||
10f2d63a VZ |
1551 | DEFAULT_wxUSE_THREADS=yes |
1552 | ||
1553 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1554 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1555 | DEFAULT_wxUSE_OPTIMISE=yes |
1556 | DEFAULT_wxUSE_PROFILE=no | |
1557 | DEFAULT_wxUSE_NO_DEPS=no | |
1558 | DEFAULT_wxUSE_NO_RTTI=no | |
1559 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1560 | DEFAULT_wxUSE_PERMISSIVE=no | |
1561 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1562 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1563 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1564 | DEFAULT_wxUSE_MEM_TRACING=no | |
1565 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1566 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1567 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1568 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1569 | ||
1570 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1571 | DEFAULT_wxUSE_LOGWINDOW=yes |
1572 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1573 | |
1574 | DEFAULT_wxUSE_GUI=yes | |
1575 | ||
831b3152 | 1576 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1577 | DEFAULT_wxUSE_ZLIB=yes |
1578 | DEFAULT_wxUSE_LIBPNG=yes | |
1579 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1580 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1581 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1582 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1583 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1584 | |
eb4efbdc | 1585 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1586 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1587 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1588 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1589 | DEFAULT_wxUSE_DATETIME=yes | |
1590 | DEFAULT_wxUSE_TIMEDATE=no | |
1591 | DEFAULT_wxUSE_TIMER=yes | |
1592 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1593 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1594 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1595 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_WAVE=no |
1597 | DEFAULT_wxUSE_INTL=yes | |
1598 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1599 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1600 | DEFAULT_wxUSE_STREAMS=yes |
1601 | DEFAULT_wxUSE_SOCKETS=yes | |
1602 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1603 | DEFAULT_wxUSE_SERIAL=yes | |
1604 | DEFAULT_wxUSE_JOYSTICK=yes | |
1605 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1606 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1607 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1608 | |
1609 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1610 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1611 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1612 | ||
1613 | DEFAULT_wxUSE_X_RESOURCES=no | |
1614 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1615 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1616 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1617 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1618 | DEFAULT_wxUSE_SPLINES=yes |
1619 | ||
1620 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1621 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1622 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1623 | ||
1624 | DEFAULT_wxUSE_PROLOGIO=yes | |
1625 | DEFAULT_wxUSE_RESOURCES=yes | |
1626 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1627 | DEFAULT_wxUSE_IPC=yes | |
1628 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1629 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1630 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1631 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1632 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1633 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1634 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1635 | |
1636 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1637 | DEFAULT_wxUSE_CHOICEDLG=yes |
1638 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1639 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1640 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1641 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1642 | DEFAULT_wxUSE_FONTDLG=yes |
1643 | DEFAULT_wxUSE_MSGDLG=yes | |
1644 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1645 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1646 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1647 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1648 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1649 | DEFAULT_wxUSE_WIZARDDLG=yes |
1650 | ||
1e6feb95 | 1651 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1652 | DEFAULT_wxUSE_MINIFRAME=yes |
1653 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1654 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1655 | DEFAULT_wxUSE_FS_INET=yes |
1656 | DEFAULT_wxUSE_FS_ZIP=yes | |
1657 | DEFAULT_wxUSE_BUSYINFO=yes | |
1658 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1659 | DEFAULT_wxUSE_VALIDATORS=yes | |
1660 | ||
1661 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1662 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1663 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1664 | DEFAULT_wxUSE_CALCTRL=yes |
1665 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1666 | DEFAULT_wxUSE_CHECKBOX=yes |
1667 | DEFAULT_wxUSE_CHECKLST=yes | |
1668 | DEFAULT_wxUSE_CHOICE=yes | |
1669 | DEFAULT_wxUSE_COMBOBOX=yes | |
1670 | DEFAULT_wxUSE_GAUGE=yes | |
1671 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1672 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1673 | DEFAULT_wxUSE_IMAGLIST=yes |
1674 | DEFAULT_wxUSE_LISTBOX=yes | |
1675 | DEFAULT_wxUSE_LISTCTRL=yes | |
1676 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1677 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1678 | DEFAULT_wxUSE_RADIOBOX=yes |
1679 | DEFAULT_wxUSE_RADIOBTN=yes | |
1680 | DEFAULT_wxUSE_SASH=yes | |
1681 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1682 | DEFAULT_wxUSE_SLIDER=yes | |
1683 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1684 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1685 | DEFAULT_wxUSE_SPLITTER=yes |
1686 | DEFAULT_wxUSE_STATBMP=yes | |
1687 | DEFAULT_wxUSE_STATBOX=yes | |
1688 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1689 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_STATUSBAR=yes |
1691 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1692 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1693 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1694 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1695 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1696 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1697 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1698 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1699 | |
1700 | DEFAULT_wxUSE_UNICODE=no | |
1701 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1702 | ||
edae8572 | 1703 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1704 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1705 | DEFAULT_wxUSE_GIF=yes |
1706 | DEFAULT_wxUSE_PCX=yes | |
1707 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1708 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1709 | fi |
1710 | ||
698dcdb6 VZ |
1711 | |
1712 | ||
10f2d63a VZ |
1713 | for toolkit in `echo $ALL_TOOLKITS`; do |
1714 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1715 | if test "x$LINE" != x ; then | |
1716 | has_toolkit_in_cache=1 | |
1717 | eval "DEFAULT_$LINE" | |
1718 | eval "CACHE_$toolkit=1" | |
1719 | fi | |
1720 | done | |
1721 | ||
698dcdb6 VZ |
1722 | |
1723 | ||
1724 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
7cf43d5e | 1725 | echo "configure:1726: checking for --enable-gui" >&5 |
10f2d63a VZ |
1726 | no_cache=0 |
1727 | # Check whether --enable-gui or --disable-gui was given. | |
1728 | if test "${enable_gui+set}" = set; then | |
1729 | enableval="$enable_gui" | |
698dcdb6 | 1730 | |
10f2d63a VZ |
1731 | if test "$enableval" = yes; then |
1732 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1733 | else | |
1734 | ac_cv_use_gui='wxUSE_GUI=no' | |
1735 | fi | |
698dcdb6 | 1736 | |
10f2d63a | 1737 | else |
698dcdb6 | 1738 | |
10f2d63a VZ |
1739 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1740 | if test "x$LINE" != x ; then | |
1741 | eval "DEFAULT_$LINE" | |
1742 | else | |
1743 | no_cache=1 | |
1744 | fi | |
1745 | ||
1746 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1747 | |
1748 | fi | |
10f2d63a VZ |
1749 | |
1750 | ||
1751 | eval "$ac_cv_use_gui" | |
1752 | if test "$no_cache" != 1; then | |
1753 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1754 | fi | |
1755 | ||
1756 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1758 | else |
698dcdb6 | 1759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1760 | fi |
698dcdb6 | 1761 | |
10f2d63a | 1762 | |
b12915c1 | 1763 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1764 | |
1e6feb95 VZ |
1765 | |
1766 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
7cf43d5e | 1767 | echo "configure:1768: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1768 | no_cache=0 |
1769 | # Check whether --enable-universal or --disable-universal was given. | |
1770 | if test "${enable_universal+set}" = set; then | |
1771 | enableval="$enable_universal" | |
1772 | ||
1773 | if test "$enableval" = yes; then | |
1774 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1775 | else | |
1776 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1777 | fi | |
1778 | ||
1779 | else | |
1780 | ||
1781 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1782 | if test "x$LINE" != x ; then | |
1783 | eval "DEFAULT_$LINE" | |
1784 | else | |
1785 | no_cache=1 | |
1786 | fi | |
1787 | ||
1788 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1789 | ||
1790 | fi | |
1791 | ||
1792 | ||
1793 | eval "$ac_cv_use_universal" | |
1794 | if test "$no_cache" != 1; then | |
1795 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1796 | fi | |
1797 | ||
1798 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1799 | echo "$ac_t""yes" 1>&6 | |
1800 | else | |
1801 | echo "$ac_t""no" 1>&6 | |
1802 | fi | |
1803 | ||
10f2d63a VZ |
1804 | # Check whether --with-gtk or --without-gtk was given. |
1805 | if test "${with_gtk+set}" = set; then | |
1806 | withval="$with_gtk" | |
1807 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1808 | fi |
10f2d63a VZ |
1809 | |
1810 | # Check whether --with-motif or --without-motif was given. | |
1811 | if test "${with_motif+set}" = set; then | |
1812 | withval="$with_motif" | |
1813 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1814 | fi |
10f2d63a | 1815 | |
b4085ce6 GD |
1816 | # Check whether --with-mac or --without-mac was given. |
1817 | if test "${with_mac+set}" = set; then | |
1818 | withval="$with_mac" | |
1819 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1820 | fi |
b4085ce6 | 1821 | |
10f2d63a VZ |
1822 | # Check whether --with-wine or --without-wine was given. |
1823 | if test "${with_wine+set}" = set; then | |
1824 | withval="$with_wine" | |
1825 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1826 | fi |
10f2d63a VZ |
1827 | |
1828 | # Check whether --with-cygwin or --without-cygwin was given. | |
1829 | if test "${with_cygwin+set}" = set; then | |
1830 | withval="$with_cygwin" | |
1831 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1832 | fi |
10f2d63a VZ |
1833 | |
1834 | # Check whether --with-mingw or --without-mingw was given. | |
1835 | if test "${with_mingw+set}" = set; then | |
1836 | withval="$with_mingw" | |
1837 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1838 | fi |
10f2d63a | 1839 | |
e07802fc VZ |
1840 | # Check whether --with-pm or --without-pm was given. |
1841 | if test "${with_pm+set}" = set; then | |
1842 | withval="$with_pm" | |
1843 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1844 | fi |
1845 | ||
1e6feb95 VZ |
1846 | # Check whether --with-mgl or --without-mgl was given. |
1847 | if test "${with_mgl+set}" = set; then | |
1848 | withval="$with_mgl" | |
1849 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1850 | fi | |
1851 | ||
10f2d63a | 1852 | |
8168de4c VZ |
1853 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1854 | if test "${enable_gtk2+set}" = set; then | |
1855 | enableval="$enable_gtk2" | |
1856 | wxUSE_GTK2=1 | |
10f2d63a | 1857 | else |
8168de4c | 1858 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1859 | fi |
1860 | ||
703e0a69 | 1861 | |
1e487827 | 1862 | |
698dcdb6 | 1863 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
7cf43d5e | 1864 | echo "configure:1865: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1865 | no_cache=0 |
1866 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1867 | if test "${with_libpng+set}" = set; then |
1868 | withval="$with_libpng" | |
698dcdb6 | 1869 | |
10f2d63a | 1870 | if test "$withval" = yes; then |
b12915c1 | 1871 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1872 | elif test "$withval" = no; then |
b12915c1 | 1873 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1874 | elif test "$withval" = sys; then |
1875 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1876 | elif test "$withval" = builtin; then |
1877 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1878 | else |
4f14bcd8 | 1879 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1880 | fi |
698dcdb6 | 1881 | |
10f2d63a | 1882 | else |
698dcdb6 | 1883 | |
b12915c1 | 1884 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1885 | if test "x$LINE" != x ; then |
1886 | eval "DEFAULT_$LINE" | |
1887 | else | |
1888 | no_cache=1 | |
1889 | fi | |
1890 | ||
b12915c1 | 1891 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1892 | |
1893 | fi | |
10f2d63a VZ |
1894 | |
1895 | ||
b12915c1 | 1896 | eval "$ac_cv_use_libpng" |
10f2d63a | 1897 | if test "$no_cache" != 1; then |
b12915c1 | 1898 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1899 | fi |
1900 | ||
b12915c1 | 1901 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1902 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1903 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1904 | echo "$ac_t""no" 1>&6 |
422107f9 | 1905 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1906 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1907 | elif test "$wxUSE_LIBPNG" = builtin; then |
1908 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1909 | else |
4f14bcd8 | 1910 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1911 | fi |
698dcdb6 | 1912 | |
10f2d63a | 1913 | |
698dcdb6 | 1914 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
4f14bcd8 | 1915 | echo "configure:1916: checking for --with-libjpeg" >&5 |
10f2d63a | 1916 | no_cache=0 |
698dcdb6 | 1917 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1918 | if test "${with_libjpeg+set}" = set; then |
1919 | withval="$with_libjpeg" | |
698dcdb6 | 1920 | |
10f2d63a | 1921 | if test "$withval" = yes; then |
b12915c1 | 1922 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1923 | elif test "$withval" = no; then |
b12915c1 | 1924 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1925 | elif test "$withval" = sys; then |
1926 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1927 | elif test "$withval" = builtin; then |
1928 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1929 | else |
4f14bcd8 | 1930 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1931 | fi |
698dcdb6 | 1932 | |
10f2d63a | 1933 | else |
698dcdb6 | 1934 | |
b12915c1 | 1935 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1936 | if test "x$LINE" != x ; then |
1937 | eval "DEFAULT_$LINE" | |
1938 | else | |
1939 | no_cache=1 | |
1940 | fi | |
1941 | ||
b12915c1 | 1942 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1943 | |
1944 | fi | |
10f2d63a VZ |
1945 | |
1946 | ||
b12915c1 | 1947 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1948 | if test "$no_cache" != 1; then |
b12915c1 | 1949 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1950 | fi |
1951 | ||
b12915c1 | 1952 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1953 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1954 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1955 | echo "$ac_t""no" 1>&6 |
422107f9 | 1956 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1957 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1958 | elif test "$wxUSE_LIBJPEG" = builtin; then |
1959 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1960 | else |
4f14bcd8 | 1961 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1962 | fi |
698dcdb6 | 1963 | |
10f2d63a | 1964 | |
698dcdb6 | 1965 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
4f14bcd8 | 1966 | echo "configure:1967: checking for --with-libtiff" >&5 |
10f2d63a | 1967 | no_cache=0 |
698dcdb6 | 1968 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1969 | if test "${with_libtiff+set}" = set; then |
1970 | withval="$with_libtiff" | |
698dcdb6 | 1971 | |
10f2d63a | 1972 | if test "$withval" = yes; then |
b12915c1 | 1973 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1974 | elif test "$withval" = no; then |
b12915c1 | 1975 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1976 | elif test "$withval" = sys; then |
1977 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
1978 | elif test "$withval" = builtin; then |
1979 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 1980 | else |
4f14bcd8 | 1981 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1982 | fi |
698dcdb6 | 1983 | |
10f2d63a | 1984 | else |
698dcdb6 | 1985 | |
b12915c1 | 1986 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1987 | if test "x$LINE" != x ; then |
1988 | eval "DEFAULT_$LINE" | |
1989 | else | |
1990 | no_cache=1 | |
1991 | fi | |
1992 | ||
b12915c1 | 1993 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1994 | |
1995 | fi | |
10f2d63a VZ |
1996 | |
1997 | ||
b12915c1 | 1998 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1999 | if test "$no_cache" != 1; then |
b12915c1 | 2000 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2001 | fi |
2002 | ||
b12915c1 | 2003 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2004 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2005 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2006 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2007 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2008 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2009 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2010 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2011 | else |
4f14bcd8 | 2012 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2013 | fi |
698dcdb6 | 2014 | |
10f2d63a | 2015 | |
698dcdb6 | 2016 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
4f14bcd8 | 2017 | echo "configure:2018: checking for --with-freetype" >&5 |
3fed1840 | 2018 | no_cache=0 |
698dcdb6 | 2019 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2020 | if test "${with_freetype+set}" = set; then |
2021 | withval="$with_freetype" | |
698dcdb6 | 2022 | |
3fed1840 RR |
2023 | if test "$withval" = yes; then |
2024 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2025 | elif test "$withval" = no; then | |
2026 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2027 | elif test "$withval" = sys; then | |
2028 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2029 | elif test "$withval" = builtin; then |
2030 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2031 | else |
4f14bcd8 | 2032 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2033 | fi |
698dcdb6 | 2034 | |
3fed1840 | 2035 | else |
698dcdb6 | 2036 | |
3fed1840 RR |
2037 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2038 | if test "x$LINE" != x ; then | |
2039 | eval "DEFAULT_$LINE" | |
2040 | else | |
2041 | no_cache=1 | |
2042 | fi | |
2043 | ||
2044 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2045 | |
2046 | fi | |
3fed1840 RR |
2047 | |
2048 | ||
2049 | eval "$ac_cv_use_freetype" | |
2050 | if test "$no_cache" != 1; then | |
2051 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2052 | fi | |
2053 | ||
2054 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2055 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2056 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2057 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2058 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2059 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2060 | elif test "$wxUSE_FREETYPE" = builtin; then |
2061 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2062 | else |
4f14bcd8 | 2063 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2064 | fi |
698dcdb6 | 2065 | |
3fed1840 | 2066 | |
698dcdb6 | 2067 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
4f14bcd8 | 2068 | echo "configure:2069: checking for --with-opengl" >&5 |
10f2d63a | 2069 | no_cache=0 |
698dcdb6 | 2070 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2071 | if test "${with_opengl+set}" = set; then |
2072 | withval="$with_opengl" | |
698dcdb6 | 2073 | |
10f2d63a | 2074 | if test "$withval" = yes; then |
b12915c1 | 2075 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2076 | else |
b12915c1 | 2077 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2078 | fi |
698dcdb6 | 2079 | |
10f2d63a | 2080 | else |
698dcdb6 | 2081 | |
b12915c1 | 2082 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2083 | if test "x$LINE" != x ; then |
2084 | eval "DEFAULT_$LINE" | |
2085 | else | |
2086 | no_cache=1 | |
2087 | fi | |
2088 | ||
b12915c1 | 2089 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2090 | |
2091 | fi | |
10f2d63a VZ |
2092 | |
2093 | ||
b12915c1 | 2094 | eval "$ac_cv_use_opengl" |
10f2d63a | 2095 | if test "$no_cache" != 1; then |
b12915c1 | 2096 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2097 | fi |
2098 | ||
b12915c1 | 2099 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2100 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2101 | else |
698dcdb6 | 2102 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2103 | fi |
698dcdb6 | 2104 | |
10f2d63a | 2105 | |
b12915c1 VZ |
2106 | fi |
2107 | ||
1e487827 | 2108 | |
698dcdb6 | 2109 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
4f14bcd8 | 2110 | echo "configure:2111: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2111 | no_cache=0 |
2112 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2113 | if test "${with_dmalloc+set}" = set; then |
2114 | withval="$with_dmalloc" | |
698dcdb6 | 2115 | |
c7a2bf27 | 2116 | if test "$withval" = yes; then |
b12915c1 | 2117 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2118 | else |
b12915c1 | 2119 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2120 | fi |
698dcdb6 | 2121 | |
c7a2bf27 | 2122 | else |
698dcdb6 | 2123 | |
b12915c1 | 2124 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2125 | if test "x$LINE" != x ; then |
2126 | eval "DEFAULT_$LINE" | |
2127 | else | |
2128 | no_cache=1 | |
2129 | fi | |
2130 | ||
b12915c1 | 2131 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2132 | |
2133 | fi | |
c7a2bf27 RR |
2134 | |
2135 | ||
b12915c1 | 2136 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2137 | if test "$no_cache" != 1; then |
b12915c1 | 2138 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2139 | fi |
2140 | ||
b12915c1 | 2141 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2142 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2143 | else |
698dcdb6 | 2144 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2145 | fi |
698dcdb6 | 2146 | |
c7a2bf27 | 2147 | |
3e44f09d | 2148 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
4f14bcd8 | 2149 | echo "configure:2150: checking for --with-regex" >&5 |
3e44f09d VZ |
2150 | no_cache=0 |
2151 | # Check whether --with-regex or --without-regex was given. | |
2152 | if test "${with_regex+set}" = set; then | |
2153 | withval="$with_regex" | |
2154 | ||
2155 | if test "$withval" = yes; then | |
2156 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2157 | elif test "$withval" = no; then | |
2158 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2159 | elif test "$withval" = sys; then | |
2160 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2161 | elif test "$withval" = builtin; then |
2162 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2163 | else |
4f14bcd8 | 2164 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2165 | fi |
2166 | ||
2167 | else | |
2168 | ||
2169 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2170 | if test "x$LINE" != x ; then | |
2171 | eval "DEFAULT_$LINE" | |
2172 | else | |
2173 | no_cache=1 | |
2174 | fi | |
2175 | ||
2176 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2177 | ||
2178 | fi | |
2179 | ||
2180 | ||
2181 | eval "$ac_cv_use_regex" | |
2182 | if test "$no_cache" != 1; then | |
2183 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2184 | fi | |
2185 | ||
2186 | if test "$wxUSE_REGEX" = yes; then | |
2187 | echo "$ac_t""yes" 1>&6 | |
2188 | elif test "$wxUSE_REGEX" = no; then | |
2189 | echo "$ac_t""no" 1>&6 | |
2190 | elif test "$wxUSE_REGEX" = sys; then | |
2191 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2192 | elif test "$wxUSE_REGEX" = builtin; then |
2193 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2194 | else |
4f14bcd8 | 2195 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2196 | fi |
2197 | ||
2198 | ||
698dcdb6 | 2199 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
4f14bcd8 | 2200 | echo "configure:2201: checking for --with-zlib" >&5 |
10f2d63a | 2201 | no_cache=0 |
698dcdb6 | 2202 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2203 | if test "${with_zlib+set}" = set; then |
2204 | withval="$with_zlib" | |
698dcdb6 | 2205 | |
10f2d63a | 2206 | if test "$withval" = yes; then |
b12915c1 | 2207 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2208 | elif test "$withval" = no; then |
b12915c1 | 2209 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2210 | elif test "$withval" = sys; then |
2211 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2212 | elif test "$withval" = builtin; then |
2213 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2214 | else |
4f14bcd8 | 2215 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2216 | fi |
698dcdb6 | 2217 | |
10f2d63a | 2218 | else |
698dcdb6 | 2219 | |
b12915c1 | 2220 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2221 | if test "x$LINE" != x ; then |
2222 | eval "DEFAULT_$LINE" | |
2223 | else | |
2224 | no_cache=1 | |
2225 | fi | |
2226 | ||
b12915c1 | 2227 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2228 | |
2229 | fi | |
10f2d63a VZ |
2230 | |
2231 | ||
b12915c1 | 2232 | eval "$ac_cv_use_zlib" |
10f2d63a | 2233 | if test "$no_cache" != 1; then |
b12915c1 | 2234 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2235 | fi |
2236 | ||
b12915c1 | 2237 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2238 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2239 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2240 | echo "$ac_t""no" 1>&6 |
422107f9 | 2241 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2242 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2243 | elif test "$wxUSE_ZLIB" = builtin; then |
2244 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2245 | else |
4f14bcd8 | 2246 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2247 | fi |
698dcdb6 | 2248 | |
10f2d63a | 2249 | |
698dcdb6 | 2250 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
4f14bcd8 | 2251 | echo "configure:2252: checking for --with-odbc" >&5 |
10f2d63a | 2252 | no_cache=0 |
698dcdb6 | 2253 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2254 | if test "${with_odbc+set}" = set; then |
2255 | withval="$with_odbc" | |
698dcdb6 | 2256 | |
10f2d63a VZ |
2257 | if test "$withval" = yes; then |
2258 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2259 | else | |
2260 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2261 | fi | |
698dcdb6 | 2262 | |
10f2d63a | 2263 | else |
698dcdb6 | 2264 | |
10f2d63a VZ |
2265 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2266 | if test "x$LINE" != x ; then | |
2267 | eval "DEFAULT_$LINE" | |
2268 | else | |
2269 | no_cache=1 | |
2270 | fi | |
2271 | ||
2272 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2273 | |
2274 | fi | |
10f2d63a VZ |
2275 | |
2276 | ||
2277 | eval "$ac_cv_use_odbc" | |
2278 | if test "$no_cache" != 1; then | |
2279 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2280 | fi | |
2281 | ||
2282 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2283 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2284 | else |
698dcdb6 | 2285 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2286 | fi |
698dcdb6 VZ |
2287 | |
2288 | ||
10f2d63a | 2289 | |
698dcdb6 | 2290 | |
698dcdb6 | 2291 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
4f14bcd8 | 2292 | echo "configure:2293: checking for --enable-shared" >&5 |
10f2d63a VZ |
2293 | no_cache=0 |
2294 | # Check whether --enable-shared or --disable-shared was given. | |
2295 | if test "${enable_shared+set}" = set; then | |
2296 | enableval="$enable_shared" | |
698dcdb6 | 2297 | |
10f2d63a VZ |
2298 | if test "$enableval" = yes; then |
2299 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2300 | else | |
2301 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2302 | fi | |
698dcdb6 | 2303 | |
10f2d63a | 2304 | else |
698dcdb6 | 2305 | |
10f2d63a VZ |
2306 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2307 | if test "x$LINE" != x ; then | |
2308 | eval "DEFAULT_$LINE" | |
2309 | else | |
2310 | no_cache=1 | |
2311 | fi | |
2312 | ||
2313 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2314 | |
2315 | fi | |
10f2d63a VZ |
2316 | |
2317 | ||
2318 | eval "$ac_cv_use_shared" | |
2319 | if test "$no_cache" != 1; then | |
2320 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2321 | fi | |
2322 | ||
2323 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2324 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2325 | else |
698dcdb6 | 2326 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2327 | fi |
698dcdb6 | 2328 | |
10f2d63a | 2329 | |
3a922bb4 | 2330 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
4f14bcd8 | 2331 | echo "configure:2332: checking for --enable-soname" >&5 |
00cf1208 | 2332 | no_cache=0 |
3a922bb4 RL |
2333 | # Check whether --enable-soname or --disable-soname was given. |
2334 | if test "${enable_soname+set}" = set; then | |
2335 | enableval="$enable_soname" | |
698dcdb6 | 2336 | |
00cf1208 | 2337 | if test "$enableval" = yes; then |
3a922bb4 | 2338 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2339 | else |
3a922bb4 | 2340 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2341 | fi |
698dcdb6 | 2342 | |
00cf1208 | 2343 | else |
698dcdb6 | 2344 | |
3a922bb4 | 2345 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2346 | if test "x$LINE" != x ; then |
2347 | eval "DEFAULT_$LINE" | |
2348 | else | |
2349 | no_cache=1 | |
2350 | fi | |
2351 | ||
3a922bb4 | 2352 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2353 | |
2354 | fi | |
00cf1208 RR |
2355 | |
2356 | ||
3a922bb4 | 2357 | eval "$ac_cv_use_soname" |
00cf1208 | 2358 | if test "$no_cache" != 1; then |
3a922bb4 | 2359 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2360 | fi |
2361 | ||
3a922bb4 | 2362 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2363 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2364 | else |
698dcdb6 | 2365 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2366 | fi |
698dcdb6 | 2367 | |
00cf1208 | 2368 | |
698dcdb6 | 2369 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
4f14bcd8 | 2370 | echo "configure:2371: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2371 | no_cache=0 |
2372 | # Check whether --enable-optimise or --disable-optimise was given. | |
2373 | if test "${enable_optimise+set}" = set; then | |
2374 | enableval="$enable_optimise" | |
698dcdb6 | 2375 | |
10f2d63a VZ |
2376 | if test "$enableval" = yes; then |
2377 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2378 | else | |
2379 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2380 | fi | |
698dcdb6 | 2381 | |
10f2d63a | 2382 | else |
698dcdb6 | 2383 | |
10f2d63a VZ |
2384 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2385 | if test "x$LINE" != x ; then | |
2386 | eval "DEFAULT_$LINE" | |
2387 | else | |
2388 | no_cache=1 | |
2389 | fi | |
2390 | ||
2391 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2392 | |
2393 | fi | |
10f2d63a VZ |
2394 | |
2395 | ||
2396 | eval "$ac_cv_use_optimise" | |
2397 | if test "$no_cache" != 1; then | |
2398 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2399 | fi | |
2400 | ||
2401 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2402 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2403 | else |
698dcdb6 | 2404 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2405 | fi |
698dcdb6 | 2406 | |
10f2d63a | 2407 | |
698dcdb6 | 2408 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
4f14bcd8 | 2409 | echo "configure:2410: checking for --enable-debug" >&5 |
10f2d63a VZ |
2410 | no_cache=0 |
2411 | # Check whether --enable-debug or --disable-debug was given. | |
2412 | if test "${enable_debug+set}" = set; then | |
2413 | enableval="$enable_debug" | |
698dcdb6 | 2414 | |
10f2d63a VZ |
2415 | if test "$enableval" = yes; then |
2416 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2417 | else | |
2418 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2419 | fi | |
698dcdb6 | 2420 | |
10f2d63a | 2421 | else |
698dcdb6 | 2422 | |
10f2d63a VZ |
2423 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2424 | if test "x$LINE" != x ; then | |
2425 | eval "DEFAULT_$LINE" | |
2426 | else | |
2427 | no_cache=1 | |
2428 | fi | |
2429 | ||
2430 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2431 | |
2432 | fi | |
10f2d63a VZ |
2433 | |
2434 | ||
2435 | eval "$ac_cv_use_debug" | |
2436 | if test "$no_cache" != 1; then | |
2437 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2438 | fi | |
2439 | ||
2440 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2441 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2442 | else |
698dcdb6 | 2443 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2444 | fi |
698dcdb6 | 2445 | |
10f2d63a | 2446 | |
683dccda GD |
2447 | |
2448 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
4f14bcd8 | 2449 | echo "configure:2450: checking for --enable-precomp" >&5 |
683dccda GD |
2450 | no_cache=0 |
2451 | # Check whether --enable-precomp or --disable-precomp was given. | |
2452 | if test "${enable_precomp+set}" = set; then | |
2453 | enableval="$enable_precomp" | |
2454 | ||
2455 | if test "$enableval" = yes; then | |
2456 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2457 | else | |
2458 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2459 | fi | |
2460 | ||
2461 | else | |
2462 | ||
2463 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2471 | ||
2472 | fi | |
2473 | ||
2474 | ||
2475 | eval "$ac_cv_use_precomp" | |
2476 | if test "$no_cache" != 1; then | |
2477 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2478 | fi | |
2479 | ||
2480 | if test "$wxUSE_PRECOMP" = yes; then | |
2481 | echo "$ac_t""yes" 1>&6 | |
2482 | else | |
2483 | echo "$ac_t""no" 1>&6 | |
2484 | fi | |
2485 | ||
2486 | ||
10f2d63a VZ |
2487 | if test "$wxUSE_DEBUG" = "yes"; then |
2488 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2489 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2490 | elif test "$wxUSE_DEBUG" = "no"; then | |
2491 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2492 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2493 | fi | |
2494 | ||
698dcdb6 VZ |
2495 | |
2496 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
4f14bcd8 | 2497 | echo "configure:2498: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2498 | no_cache=0 |
2499 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2500 | if test "${enable_debug_flag+set}" = set; then | |
2501 | enableval="$enable_debug_flag" | |
698dcdb6 | 2502 | |
10f2d63a VZ |
2503 | if test "$enableval" = yes; then |
2504 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2505 | else | |
2506 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2507 | fi | |
698dcdb6 | 2508 | |
10f2d63a | 2509 | else |
698dcdb6 | 2510 | |
10f2d63a VZ |
2511 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2512 | if test "x$LINE" != x ; then | |
2513 | eval "DEFAULT_$LINE" | |
2514 | else | |
2515 | no_cache=1 | |
2516 | fi | |
2517 | ||
2518 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2519 | |
2520 | fi | |
10f2d63a VZ |
2521 | |
2522 | ||
2523 | eval "$ac_cv_use_debug_flag" | |
2524 | if test "$no_cache" != 1; then | |
2525 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2526 | fi | |
2527 | ||
2528 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2530 | else |
698dcdb6 | 2531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2532 | fi |
698dcdb6 | 2533 | |
10f2d63a | 2534 | |
698dcdb6 | 2535 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
4f14bcd8 | 2536 | echo "configure:2537: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2537 | no_cache=0 |
2538 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2539 | if test "${enable_debug_info+set}" = set; then | |
2540 | enableval="$enable_debug_info" | |
698dcdb6 | 2541 | |
10f2d63a VZ |
2542 | if test "$enableval" = yes; then |
2543 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2544 | else | |
2545 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2546 | fi | |
698dcdb6 | 2547 | |
10f2d63a | 2548 | else |
698dcdb6 | 2549 | |
10f2d63a VZ |
2550 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2551 | if test "x$LINE" != x ; then | |
2552 | eval "DEFAULT_$LINE" | |
2553 | else | |
2554 | no_cache=1 | |
2555 | fi | |
2556 | ||
2557 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2558 | |
2559 | fi | |
10f2d63a VZ |
2560 | |
2561 | ||
2562 | eval "$ac_cv_use_debug_info" | |
2563 | if test "$no_cache" != 1; then | |
2564 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2565 | fi | |
2566 | ||
2567 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2568 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2569 | else |
698dcdb6 | 2570 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2571 | fi |
698dcdb6 | 2572 | |
10f2d63a | 2573 | |
698dcdb6 | 2574 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
4f14bcd8 | 2575 | echo "configure:2576: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2576 | no_cache=0 |
2577 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2578 | if test "${enable_debug_gdb+set}" = set; then | |
2579 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2580 | |
10f2d63a VZ |
2581 | if test "$enableval" = yes; then |
2582 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2583 | else | |
2584 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2585 | fi | |
698dcdb6 | 2586 | |
10f2d63a | 2587 | else |
698dcdb6 | 2588 | |
10f2d63a VZ |
2589 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2590 | if test "x$LINE" != x ; then | |
2591 | eval "DEFAULT_$LINE" | |
2592 | else | |
2593 | no_cache=1 | |
2594 | fi | |
2595 | ||
2596 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2597 | |
2598 | fi | |
10f2d63a VZ |
2599 | |
2600 | ||
2601 | eval "$ac_cv_use_debug_gdb" | |
2602 | if test "$no_cache" != 1; then | |
2603 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2604 | fi | |
2605 | ||
2606 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2607 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2608 | else |
698dcdb6 | 2609 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2610 | fi |
698dcdb6 | 2611 | |
10f2d63a | 2612 | |
698dcdb6 | 2613 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
4f14bcd8 | 2614 | echo "configure:2615: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2615 | no_cache=0 |
2616 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2617 | if test "${enable_debug_cntxt+set}" = set; then | |
2618 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2619 | |
10f2d63a VZ |
2620 | if test "$enableval" = yes; then |
2621 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2622 | else | |
2623 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2624 | fi | |
698dcdb6 | 2625 | |
10f2d63a | 2626 | else |
698dcdb6 | 2627 | |
10f2d63a VZ |
2628 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2629 | if test "x$LINE" != x ; then | |
2630 | eval "DEFAULT_$LINE" | |
2631 | else | |
2632 | no_cache=1 | |
2633 | fi | |
2634 | ||
2635 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2636 | |
2637 | fi | |
10f2d63a VZ |
2638 | |
2639 | ||
2640 | eval "$ac_cv_use_debug_cntxt" | |
2641 | if test "$no_cache" != 1; then | |
2642 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2643 | fi | |
2644 | ||
2645 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2647 | else |
698dcdb6 | 2648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2649 | fi |
698dcdb6 | 2650 | |
10f2d63a | 2651 | |
698dcdb6 | 2652 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
4f14bcd8 | 2653 | echo "configure:2654: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2654 | no_cache=0 |
2655 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2656 | if test "${enable_mem_tracing+set}" = set; then | |
2657 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2658 | |
10f2d63a VZ |
2659 | if test "$enableval" = yes; then |
2660 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2661 | else | |
2662 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2663 | fi | |
698dcdb6 | 2664 | |
10f2d63a | 2665 | else |
698dcdb6 | 2666 | |
10f2d63a VZ |
2667 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2668 | if test "x$LINE" != x ; then | |
2669 | eval "DEFAULT_$LINE" | |
2670 | else | |
2671 | no_cache=1 | |
2672 | fi | |
2673 | ||
2674 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2675 | |
2676 | fi | |
10f2d63a VZ |
2677 | |
2678 | ||
2679 | eval "$ac_cv_use_mem_tracing" | |
2680 | if test "$no_cache" != 1; then | |
2681 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2682 | fi | |
2683 | ||
2684 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2685 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2686 | else |
698dcdb6 | 2687 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2688 | fi |
698dcdb6 | 2689 | |
10f2d63a | 2690 | |
698dcdb6 | 2691 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
4f14bcd8 | 2692 | echo "configure:2693: checking for --enable-profile" >&5 |
10f2d63a VZ |
2693 | no_cache=0 |
2694 | # Check whether --enable-profile or --disable-profile was given. | |
2695 | if test "${enable_profile+set}" = set; then | |
2696 | enableval="$enable_profile" | |
698dcdb6 | 2697 | |
10f2d63a VZ |
2698 | if test "$enableval" = yes; then |
2699 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2700 | else | |
2701 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2702 | fi | |
698dcdb6 | 2703 | |
10f2d63a | 2704 | else |
698dcdb6 | 2705 | |
10f2d63a VZ |
2706 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2707 | if test "x$LINE" != x ; then | |
2708 | eval "DEFAULT_$LINE" | |
2709 | else | |
2710 | no_cache=1 | |
2711 | fi | |
2712 | ||
2713 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2714 | |
2715 | fi | |
10f2d63a VZ |
2716 | |
2717 | ||
2718 | eval "$ac_cv_use_profile" | |
2719 | if test "$no_cache" != 1; then | |
2720 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2721 | fi | |
2722 | ||
2723 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2725 | else |
698dcdb6 | 2726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2727 | fi |
698dcdb6 | 2728 | |
10f2d63a | 2729 | |
698dcdb6 | 2730 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
4f14bcd8 | 2731 | echo "configure:2732: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2732 | no_cache=0 |
2733 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2734 | if test "${enable_no_rtti+set}" = set; then | |
2735 | enableval="$enable_no_rtti" | |
698dcdb6 | 2736 | |
10f2d63a VZ |
2737 | if test "$enableval" = yes; then |
2738 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2739 | else | |
2740 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2741 | fi | |
698dcdb6 | 2742 | |
10f2d63a | 2743 | else |
698dcdb6 | 2744 | |
10f2d63a VZ |
2745 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2746 | if test "x$LINE" != x ; then | |
2747 | eval "DEFAULT_$LINE" | |
2748 | else | |
2749 | no_cache=1 | |
2750 | fi | |
2751 | ||
2752 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2753 | |
2754 | fi | |
10f2d63a VZ |
2755 | |
2756 | ||
2757 | eval "$ac_cv_use_no_rtti" | |
2758 | if test "$no_cache" != 1; then | |
2759 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2760 | fi | |
2761 | ||
2762 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2764 | else |
698dcdb6 | 2765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2766 | fi |
698dcdb6 | 2767 | |
10f2d63a | 2768 | |
698dcdb6 | 2769 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
4f14bcd8 | 2770 | echo "configure:2771: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2771 | no_cache=0 |
2772 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2773 | if test "${enable_no_exceptions+set}" = set; then | |
2774 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2775 | |
10f2d63a VZ |
2776 | if test "$enableval" = yes; then |
2777 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2778 | else | |
2779 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2780 | fi | |
698dcdb6 | 2781 | |
10f2d63a | 2782 | else |
698dcdb6 | 2783 | |
10f2d63a VZ |
2784 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2785 | if test "x$LINE" != x ; then | |
2786 | eval "DEFAULT_$LINE" | |
2787 | else | |
2788 | no_cache=1 | |
2789 | fi | |
2790 | ||
2791 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2792 | |
2793 | fi | |
10f2d63a VZ |
2794 | |
2795 | ||
2796 | eval "$ac_cv_use_no_exceptions" | |
2797 | if test "$no_cache" != 1; then | |
2798 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2799 | fi | |
2800 | ||
2801 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2803 | else |
698dcdb6 | 2804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2805 | fi |
698dcdb6 | 2806 | |
10f2d63a | 2807 | |
698dcdb6 | 2808 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
4f14bcd8 | 2809 | echo "configure:2810: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2810 | no_cache=0 |
2811 | # Check whether --enable-permissive or --disable-permissive was given. | |
2812 | if test "${enable_permissive+set}" = set; then | |
2813 | enableval="$enable_permissive" | |
698dcdb6 | 2814 | |
10f2d63a VZ |
2815 | if test "$enableval" = yes; then |
2816 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2817 | else | |
2818 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2819 | fi | |
698dcdb6 | 2820 | |
10f2d63a | 2821 | else |
698dcdb6 | 2822 | |
10f2d63a VZ |
2823 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2824 | if test "x$LINE" != x ; then | |
2825 | eval "DEFAULT_$LINE" | |
2826 | else | |
2827 | no_cache=1 | |
2828 | fi | |
2829 | ||
2830 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2831 | |
2832 | fi | |
10f2d63a VZ |
2833 | |
2834 | ||
2835 | eval "$ac_cv_use_permissive" | |
2836 | if test "$no_cache" != 1; then | |
2837 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2838 | fi | |
2839 | ||
2840 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2841 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2842 | else |
698dcdb6 | 2843 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2844 | fi |
698dcdb6 | 2845 | |
10f2d63a | 2846 | |
698dcdb6 | 2847 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
4f14bcd8 | 2848 | echo "configure:2849: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2849 | no_cache=0 |
2850 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2851 | if test "${enable_no_deps+set}" = set; then | |
2852 | enableval="$enable_no_deps" | |
698dcdb6 | 2853 | |
10f2d63a VZ |
2854 | if test "$enableval" = yes; then |
2855 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2856 | else | |
2857 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2858 | fi | |
698dcdb6 | 2859 | |
10f2d63a | 2860 | else |
698dcdb6 | 2861 | |
10f2d63a VZ |
2862 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2863 | if test "x$LINE" != x ; then | |
2864 | eval "DEFAULT_$LINE" | |
2865 | else | |
2866 | no_cache=1 | |
2867 | fi | |
2868 | ||
2869 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2870 | |
2871 | fi | |
10f2d63a VZ |
2872 | |
2873 | ||
2874 | eval "$ac_cv_use_no_deps" | |
2875 | if test "$no_cache" != 1; then | |
2876 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2877 | fi | |
2878 | ||
2879 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2881 | else |
698dcdb6 | 2882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2883 | fi |
698dcdb6 VZ |
2884 | |
2885 | ||
10f2d63a | 2886 | |
54276ccf | 2887 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
4f14bcd8 | 2888 | echo "configure:2889: checking for --enable-compat20" >&5 |
54276ccf VZ |
2889 | no_cache=0 |
2890 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2891 | if test "${enable_compat20+set}" = set; then | |
2892 | enableval="$enable_compat20" | |
2893 | ||
2894 | if test "$enableval" = yes; then | |
2895 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2896 | else | |
2897 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2898 | fi | |
2899 | ||
2900 | else | |
2901 | ||
2902 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2910 | ||
2911 | fi | |
2912 | ||
2913 | ||
2914 | eval "$ac_cv_use_compat20" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2920 | echo "$ac_t""yes" 1>&6 | |
2921 | else | |
2922 | echo "$ac_t""no" 1>&6 | |
2923 | fi | |
2924 | ||
2925 | ||
2926 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
4f14bcd8 | 2927 | echo "configure:2928: checking for --enable-compat22" >&5 |
54276ccf VZ |
2928 | no_cache=0 |
2929 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2930 | if test "${enable_compat22+set}" = set; then | |
2931 | enableval="$enable_compat22" | |
2932 | ||
2933 | if test "$enableval" = yes; then | |
2934 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2935 | else | |
2936 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2937 | fi | |
2938 | ||
2939 | else | |
2940 | ||
2941 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2942 | if test "x$LINE" != x ; then | |
2943 | eval "DEFAULT_$LINE" | |
2944 | else | |
2945 | no_cache=1 | |
2946 | fi | |
2947 | ||
2948 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2949 | ||
2950 | fi | |
2951 | ||
2952 | ||
2953 | eval "$ac_cv_use_compat22" | |
2954 | if test "$no_cache" != 1; then | |
2955 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2956 | fi | |
2957 | ||
2958 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2959 | echo "$ac_t""yes" 1>&6 | |
2960 | else | |
2961 | echo "$ac_t""no" 1>&6 | |
2962 | fi | |
2963 | ||
2964 | ||
2965 | ||
698dcdb6 VZ |
2966 | |
2967 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
4f14bcd8 | 2968 | echo "configure:2969: checking for --enable-intl" >&5 |
10f2d63a VZ |
2969 | no_cache=0 |
2970 | # Check whether --enable-intl or --disable-intl was given. | |
2971 | if test "${enable_intl+set}" = set; then | |
2972 | enableval="$enable_intl" | |
698dcdb6 | 2973 | |
10f2d63a VZ |
2974 | if test "$enableval" = yes; then |
2975 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2976 | else | |
2977 | ac_cv_use_intl='wxUSE_INTL=no' | |
2978 | fi | |
698dcdb6 | 2979 | |
10f2d63a | 2980 | else |
698dcdb6 | 2981 | |
10f2d63a VZ |
2982 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2983 | if test "x$LINE" != x ; then | |
2984 | eval "DEFAULT_$LINE" | |
2985 | else | |
2986 | no_cache=1 | |
2987 | fi | |
2988 | ||
2989 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2990 | |
2991 | fi | |
10f2d63a VZ |
2992 | |
2993 | ||
2994 | eval "$ac_cv_use_intl" | |
2995 | if test "$no_cache" != 1; then | |
2996 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2997 | fi | |
2998 | ||
2999 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3001 | else |
698dcdb6 | 3002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3003 | fi |
698dcdb6 | 3004 | |
10f2d63a | 3005 | |
698dcdb6 | 3006 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
4f14bcd8 | 3007 | echo "configure:3008: checking for --enable-config" >&5 |
10f2d63a VZ |
3008 | no_cache=0 |
3009 | # Check whether --enable-config or --disable-config was given. | |
3010 | if test "${enable_config+set}" = set; then | |
3011 | enableval="$enable_config" | |
698dcdb6 | 3012 | |
10f2d63a VZ |
3013 | if test "$enableval" = yes; then |
3014 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3015 | else | |
3016 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3017 | fi | |
698dcdb6 | 3018 | |
10f2d63a | 3019 | else |
698dcdb6 | 3020 | |
10f2d63a VZ |
3021 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3022 | if test "x$LINE" != x ; then | |
3023 | eval "DEFAULT_$LINE" | |
3024 | else | |
3025 | no_cache=1 | |
3026 | fi | |
3027 | ||
3028 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3029 | |
3030 | fi | |
10f2d63a VZ |
3031 | |
3032 | ||
3033 | eval "$ac_cv_use_config" | |
3034 | if test "$no_cache" != 1; then | |
3035 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3036 | fi | |
3037 | ||
3038 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3040 | else |
698dcdb6 | 3041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3042 | fi |
698dcdb6 VZ |
3043 | |
3044 | ||
b12915c1 | 3045 | |
698dcdb6 | 3046 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
4f14bcd8 | 3047 | echo "configure:3048: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3048 | no_cache=0 |
3049 | # Check whether --enable-sockets or --disable-sockets was given. | |
3050 | if test "${enable_sockets+set}" = set; then | |
3051 | enableval="$enable_sockets" | |
698dcdb6 | 3052 | |
10f2d63a VZ |
3053 | if test "$enableval" = yes; then |
3054 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3055 | else | |
3056 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3057 | fi | |
698dcdb6 | 3058 | |
10f2d63a | 3059 | else |
698dcdb6 | 3060 | |
10f2d63a VZ |
3061 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3062 | if test "x$LINE" != x ; then | |
3063 | eval "DEFAULT_$LINE" | |
3064 | else | |
3065 | no_cache=1 | |
3066 | fi | |
3067 | ||
3068 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3069 | |
3070 | fi | |
10f2d63a VZ |
3071 | |
3072 | ||
3073 | eval "$ac_cv_use_sockets" | |
3074 | if test "$no_cache" != 1; then | |
3075 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3076 | fi | |
3077 | ||
3078 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3079 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3080 | else |
698dcdb6 | 3081 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3082 | fi |
698dcdb6 | 3083 | |
b12915c1 | 3084 | |
698dcdb6 VZ |
3085 | |
3086 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
4f14bcd8 | 3087 | echo "configure:3088: checking for --enable-ipc" >&5 |
10f2d63a | 3088 | no_cache=0 |
eb4efbdc VZ |
3089 | # Check whether --enable-ipc or --disable-ipc was given. |
3090 | if test "${enable_ipc+set}" = set; then | |
3091 | enableval="$enable_ipc" | |
698dcdb6 | 3092 | |
10f2d63a | 3093 | if test "$enableval" = yes; then |
eb4efbdc | 3094 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3095 | else |
eb4efbdc | 3096 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3097 | fi |
698dcdb6 | 3098 | |
10f2d63a | 3099 | else |
698dcdb6 | 3100 | |
eb4efbdc | 3101 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3102 | if test "x$LINE" != x ; then |
3103 | eval "DEFAULT_$LINE" | |
3104 | else | |
3105 | no_cache=1 | |
3106 | fi | |
3107 | ||
eb4efbdc | 3108 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3109 | |
3110 | fi | |
10f2d63a VZ |
3111 | |
3112 | ||
eb4efbdc | 3113 | eval "$ac_cv_use_ipc" |
10f2d63a | 3114 | if test "$no_cache" != 1; then |
eb4efbdc | 3115 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3116 | fi |
3117 | ||
eb4efbdc | 3118 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3120 | else |
698dcdb6 | 3121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3122 | fi |
698dcdb6 VZ |
3123 | |
3124 | ||
eb4efbdc | 3125 | |
1e6feb95 | 3126 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
4f14bcd8 | 3127 | echo "configure:3128: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3128 | no_cache=0 |
3129 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3130 | if test "${enable_cmdline+set}" = set; then | |
3131 | enableval="$enable_cmdline" | |
3132 | ||
3133 | if test "$enableval" = yes; then | |
3134 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3135 | else | |
3136 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3137 | fi | |
3138 | ||
3139 | else | |
3140 | ||
3141 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3142 | if test "x$LINE" != x ; then | |
3143 | eval "DEFAULT_$LINE" | |
3144 | else | |
3145 | no_cache=1 | |
3146 | fi | |
3147 | ||
3148 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3149 | ||
3150 | fi | |
3151 | ||
3152 | ||
3153 | eval "$ac_cv_use_cmdline" | |
3154 | if test "$no_cache" != 1; then | |
3155 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3156 | fi | |
3157 | ||
3158 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3159 | echo "$ac_t""yes" 1>&6 | |
3160 | else | |
3161 | echo "$ac_t""no" 1>&6 | |
3162 | fi | |
3163 | ||
3164 | ||
3165 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
4f14bcd8 | 3166 | echo "configure:3167: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3167 | no_cache=0 |
3168 | # Check whether --enable-datetime or --disable-datetime was given. | |
3169 | if test "${enable_datetime+set}" = set; then | |
3170 | enableval="$enable_datetime" | |
3171 | ||
3172 | if test "$enableval" = yes; then | |
3173 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3174 | else | |
3175 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3188 | ||
3189 | fi | |
3190 | ||
3191 | ||
3192 | eval "$ac_cv_use_datetime" | |
3193 | if test "$no_cache" != 1; then | |
3194 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3195 | fi | |
3196 | ||
3197 | if test "$wxUSE_DATETIME" = yes; then | |
3198 | echo "$ac_t""yes" 1>&6 | |
3199 | else | |
3200 | echo "$ac_t""no" 1>&6 | |
3201 | fi | |
3202 | ||
3203 | ||
3204 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
4f14bcd8 | 3205 | echo "configure:3206: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3206 | no_cache=0 |
3207 | # Check whether --enable-timedate or --disable-timedate was given. | |
3208 | if test "${enable_timedate+set}" = set; then | |
3209 | enableval="$enable_timedate" | |
3210 | ||
3211 | if test "$enableval" = yes; then | |
3212 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3213 | else | |
3214 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3215 | fi | |
3216 | ||
3217 | else | |
3218 | ||
3219 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3220 | if test "x$LINE" != x ; then | |
3221 | eval "DEFAULT_$LINE" | |
3222 | else | |
3223 | no_cache=1 | |
3224 | fi | |
3225 | ||
3226 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3227 | ||
3228 | fi | |
3229 | ||
3230 | ||
3231 | eval "$ac_cv_use_timedate" | |
3232 | if test "$no_cache" != 1; then | |
3233 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3234 | fi | |
3235 | ||
3236 | if test "$wxUSE_TIMEDATE" = yes; then | |
3237 | echo "$ac_t""yes" 1>&6 | |
3238 | else | |
3239 | echo "$ac_t""no" 1>&6 | |
3240 | fi | |
3241 | ||
3242 | ||
3243 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
4f14bcd8 | 3244 | echo "configure:3245: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3245 | no_cache=0 |
3246 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3247 | if test "${enable_stopwatch+set}" = set; then | |
3248 | enableval="$enable_stopwatch" | |
3249 | ||
3250 | if test "$enableval" = yes; then | |
3251 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3252 | else | |
3253 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3254 | fi | |
3255 | ||
3256 | else | |
3257 | ||
3258 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3259 | if test "x$LINE" != x ; then | |
3260 | eval "DEFAULT_$LINE" | |
3261 | else | |
3262 | no_cache=1 | |
3263 | fi | |
3264 | ||
3265 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3266 | ||
3267 | fi | |
3268 | ||
3269 | ||
3270 | eval "$ac_cv_use_stopwatch" | |
3271 | if test "$no_cache" != 1; then | |
3272 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3273 | fi | |
3274 | ||
3275 | if test "$wxUSE_STOPWATCH" = yes; then | |
3276 | echo "$ac_t""yes" 1>&6 | |
3277 | else | |
3278 | echo "$ac_t""no" 1>&6 | |
3279 | fi | |
3280 | ||
3281 | ||
698dcdb6 | 3282 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
4f14bcd8 | 3283 | echo "configure:3284: checking for --enable-dialupman" >&5 |
10f2d63a | 3284 | no_cache=0 |
eb4efbdc VZ |
3285 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3286 | if test "${enable_dialupman+set}" = set; then | |
3287 | enableval="$enable_dialupman" | |
698dcdb6 | 3288 | |
10f2d63a | 3289 | if test "$enableval" = yes; then |
eb4efbdc | 3290 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3291 | else |
eb4efbdc | 3292 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3293 | fi |
698dcdb6 | 3294 | |
10f2d63a | 3295 | else |
698dcdb6 | 3296 | |
eb4efbdc | 3297 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3298 | if test "x$LINE" != x ; then |
3299 | eval "DEFAULT_$LINE" | |
3300 | else | |
3301 | no_cache=1 | |
3302 | fi | |
3303 | ||
eb4efbdc | 3304 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3305 | |
3306 | fi | |
10f2d63a VZ |
3307 | |
3308 | ||
eb4efbdc | 3309 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3310 | if test "$no_cache" != 1; then |
eb4efbdc | 3311 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3312 | fi |
3313 | ||
eb4efbdc | 3314 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3315 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3316 | else |
698dcdb6 | 3317 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3318 | fi |
698dcdb6 | 3319 | |
10f2d63a | 3320 | |
698dcdb6 | 3321 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
4f14bcd8 | 3322 | echo "configure:3323: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3323 | no_cache=0 |
3324 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3325 | if test "${enable_apple_ieee+set}" = set; then | |
3326 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3327 | |
10f2d63a VZ |
3328 | if test "$enableval" = yes; then |
3329 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3330 | else | |
3331 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3332 | fi | |
698dcdb6 | 3333 | |
10f2d63a | 3334 | else |
698dcdb6 | 3335 | |
10f2d63a VZ |
3336 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3337 | if test "x$LINE" != x ; then | |
3338 | eval "DEFAULT_$LINE" | |
3339 | else | |
3340 | no_cache=1 | |
3341 | fi | |
3342 | ||
3343 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3344 | |
3345 | fi | |
10f2d63a VZ |
3346 | |
3347 | ||
3348 | eval "$ac_cv_use_apple_ieee" | |
3349 | if test "$no_cache" != 1; then | |
3350 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3351 | fi | |
3352 | ||
3353 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3354 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3355 | else |
698dcdb6 | 3356 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3357 | fi |
698dcdb6 | 3358 | |
10f2d63a | 3359 | |
1e6feb95 | 3360 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
4f14bcd8 | 3361 | echo "configure:3362: checking for --enable-timer" >&5 |
10f2d63a | 3362 | no_cache=0 |
1e6feb95 VZ |
3363 | # Check whether --enable-timer or --disable-timer was given. |
3364 | if test "${enable_timer+set}" = set; then | |
3365 | enableval="$enable_timer" | |
698dcdb6 | 3366 | |
10f2d63a | 3367 | if test "$enableval" = yes; then |
1e6feb95 | 3368 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3369 | else |
1e6feb95 | 3370 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3371 | fi |
698dcdb6 | 3372 | |
10f2d63a | 3373 | else |
698dcdb6 | 3374 | |
1e6feb95 | 3375 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3376 | if test "x$LINE" != x ; then |
3377 | eval "DEFAULT_$LINE" | |
3378 | else | |
3379 | no_cache=1 | |
3380 | fi | |
3381 | ||
1e6feb95 | 3382 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3383 | |
3384 | fi | |
10f2d63a VZ |
3385 | |
3386 | ||
1e6feb95 | 3387 | eval "$ac_cv_use_timer" |
10f2d63a | 3388 | if test "$no_cache" != 1; then |
1e6feb95 | 3389 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3390 | fi |
3391 | ||
1e6feb95 | 3392 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3393 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3394 | else |
698dcdb6 | 3395 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3396 | fi |
698dcdb6 | 3397 | |
10f2d63a | 3398 | |
698dcdb6 | 3399 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
4f14bcd8 | 3400 | echo "configure:3401: checking for --enable-wave" >&5 |
10f2d63a VZ |
3401 | no_cache=0 |
3402 | # Check whether --enable-wave or --disable-wave was given. | |
3403 | if test "${enable_wave+set}" = set; then | |
3404 | enableval="$enable_wave" | |
698dcdb6 | 3405 | |
10f2d63a VZ |
3406 | if test "$enableval" = yes; then |
3407 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3408 | else | |
3409 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3410 | fi | |
698dcdb6 | 3411 | |
10f2d63a | 3412 | else |
698dcdb6 | 3413 | |
10f2d63a VZ |
3414 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3415 | if test "x$LINE" != x ; then | |
3416 | eval "DEFAULT_$LINE" | |
3417 | else | |
3418 | no_cache=1 | |
3419 | fi | |
3420 | ||
3421 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3422 | |
3423 | fi | |
10f2d63a VZ |
3424 | |
3425 | ||
3426 | eval "$ac_cv_use_wave" | |
3427 | if test "$no_cache" != 1; then | |
3428 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3429 | fi | |
3430 | ||
3431 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3432 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3433 | else |
698dcdb6 | 3434 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3435 | fi |
698dcdb6 | 3436 | |
10f2d63a | 3437 | |
698dcdb6 | 3438 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
4f14bcd8 | 3439 | echo "configure:3440: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3440 | no_cache=0 |
3441 | # Check whether --enable-fraction or --disable-fraction was given. | |
3442 | if test "${enable_fraction+set}" = set; then | |
3443 | enableval="$enable_fraction" | |
698dcdb6 | 3444 | |
10f2d63a VZ |
3445 | if test "$enableval" = yes; then |
3446 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3447 | else | |
3448 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3449 | fi | |
698dcdb6 | 3450 | |
10f2d63a | 3451 | else |
698dcdb6 | 3452 | |
10f2d63a VZ |
3453 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3454 | if test "x$LINE" != x ; then | |
3455 | eval "DEFAULT_$LINE" | |
3456 | else | |
3457 | no_cache=1 | |
3458 | fi | |
3459 | ||
3460 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3461 | |
3462 | fi | |
10f2d63a VZ |
3463 | |
3464 | ||
3465 | eval "$ac_cv_use_fraction" | |
3466 | if test "$no_cache" != 1; then | |
3467 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3468 | fi | |
3469 | ||
3470 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3471 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3472 | else |
698dcdb6 | 3473 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3474 | fi |
698dcdb6 | 3475 | |
10f2d63a | 3476 | |
698dcdb6 | 3477 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
4f14bcd8 | 3478 | echo "configure:3479: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3479 | no_cache=0 |
3480 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3481 | if test "${enable_dynlib+set}" = set; then | |
3482 | enableval="$enable_dynlib" | |
698dcdb6 | 3483 | |
10f2d63a VZ |
3484 | if test "$enableval" = yes; then |
3485 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3486 | else | |
3487 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3488 | fi | |
698dcdb6 | 3489 | |
10f2d63a | 3490 | else |
698dcdb6 | 3491 | |
10f2d63a VZ |
3492 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3493 | if test "x$LINE" != x ; then | |
3494 | eval "DEFAULT_$LINE" | |
3495 | else | |
3496 | no_cache=1 | |
3497 | fi | |
3498 | ||
3499 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3500 | |
3501 | fi | |
10f2d63a VZ |
3502 | |
3503 | ||
3504 | eval "$ac_cv_use_dynlib" | |
3505 | if test "$no_cache" != 1; then | |
3506 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3507 | fi | |
3508 | ||
3509 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3510 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3511 | else |
698dcdb6 | 3512 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3513 | fi |
698dcdb6 | 3514 | |
10f2d63a | 3515 | |
698dcdb6 | 3516 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
4f14bcd8 | 3517 | echo "configure:3518: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3518 | no_cache=0 |
3519 | # Check whether --enable-longlong or --disable-longlong was given. | |
3520 | if test "${enable_longlong+set}" = set; then | |
3521 | enableval="$enable_longlong" | |
698dcdb6 | 3522 | |
10f2d63a VZ |
3523 | if test "$enableval" = yes; then |
3524 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3525 | else | |
3526 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3527 | fi | |
698dcdb6 | 3528 | |
10f2d63a | 3529 | else |
698dcdb6 | 3530 | |
10f2d63a VZ |
3531 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3532 | if test "x$LINE" != x ; then | |
3533 | eval "DEFAULT_$LINE" | |
3534 | else | |
3535 | no_cache=1 | |
3536 | fi | |
3537 | ||
3538 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3539 | |
3540 | fi | |
10f2d63a VZ |
3541 | |
3542 | ||
3543 | eval "$ac_cv_use_longlong" | |
3544 | if test "$no_cache" != 1; then | |
3545 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3546 | fi | |
3547 | ||
3548 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3549 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3550 | else |
698dcdb6 | 3551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3552 | fi |
698dcdb6 | 3553 | |
10f2d63a | 3554 | |
698dcdb6 | 3555 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
4f14bcd8 | 3556 | echo "configure:3557: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3557 | no_cache=0 |
3558 | # Check whether --enable-geometry or --disable-geometry was given. | |
3559 | if test "${enable_geometry+set}" = set; then | |
3560 | enableval="$enable_geometry" | |
698dcdb6 | 3561 | |
e8f65ba6 RR |
3562 | if test "$enableval" = yes; then |
3563 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3564 | else | |
3565 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3566 | fi | |
698dcdb6 | 3567 | |
e8f65ba6 | 3568 | else |
698dcdb6 | 3569 | |
e8f65ba6 RR |
3570 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3571 | if test "x$LINE" != x ; then | |
3572 | eval "DEFAULT_$LINE" | |
3573 | else | |
3574 | no_cache=1 | |
3575 | fi | |
3576 | ||
3577 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3578 | |
3579 | fi | |
e8f65ba6 RR |
3580 | |
3581 | ||
3582 | eval "$ac_cv_use_geometry" | |
3583 | if test "$no_cache" != 1; then | |
3584 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3585 | fi | |
3586 | ||
3587 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3588 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3589 | else |
698dcdb6 | 3590 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3591 | fi |
698dcdb6 | 3592 | |
e8f65ba6 | 3593 | |
698dcdb6 | 3594 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
4f14bcd8 | 3595 | echo "configure:3596: checking for --enable-log" >&5 |
10f2d63a VZ |
3596 | no_cache=0 |
3597 | # Check whether --enable-log or --disable-log was given. | |
3598 | if test "${enable_log+set}" = set; then | |
3599 | enableval="$enable_log" | |
698dcdb6 | 3600 | |
10f2d63a VZ |
3601 | if test "$enableval" = yes; then |
3602 | ac_cv_use_log='wxUSE_LOG=yes' | |
3603 | else | |
3604 | ac_cv_use_log='wxUSE_LOG=no' | |
3605 | fi | |
698dcdb6 | 3606 | |
10f2d63a | 3607 | else |
698dcdb6 | 3608 | |
10f2d63a VZ |
3609 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3610 | if test "x$LINE" != x ; then | |
3611 | eval "DEFAULT_$LINE" | |
3612 | else | |
3613 | no_cache=1 | |
3614 | fi | |
3615 | ||
3616 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3617 | |
3618 | fi | |
10f2d63a VZ |
3619 | |
3620 | ||
3621 | eval "$ac_cv_use_log" | |
3622 | if test "$no_cache" != 1; then | |
3623 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3624 | fi | |
3625 | ||
3626 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3627 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3628 | else |
698dcdb6 | 3629 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3630 | fi |
698dcdb6 | 3631 | |
10f2d63a | 3632 | |
698dcdb6 | 3633 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
4f14bcd8 | 3634 | echo "configure:3635: checking for --enable-streams" >&5 |
10f2d63a VZ |
3635 | no_cache=0 |
3636 | # Check whether --enable-streams or --disable-streams was given. | |
3637 | if test "${enable_streams+set}" = set; then | |
3638 | enableval="$enable_streams" | |
698dcdb6 | 3639 | |
10f2d63a VZ |
3640 | if test "$enableval" = yes; then |
3641 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3642 | else | |
3643 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3644 | fi | |
698dcdb6 | 3645 | |
10f2d63a | 3646 | else |
698dcdb6 | 3647 | |
10f2d63a VZ |
3648 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3649 | if test "x$LINE" != x ; then | |
3650 | eval "DEFAULT_$LINE" | |
3651 | else | |
3652 | no_cache=1 | |
3653 | fi | |
3654 | ||
3655 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3656 | |
3657 | fi | |
10f2d63a VZ |
3658 | |
3659 | ||
3660 | eval "$ac_cv_use_streams" | |
3661 | if test "$no_cache" != 1; then | |
3662 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3663 | fi | |
3664 | ||
3665 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3666 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3667 | else |
698dcdb6 | 3668 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3669 | fi |
698dcdb6 | 3670 | |
10f2d63a | 3671 | |
698dcdb6 | 3672 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
4f14bcd8 | 3673 | echo "configure:3674: checking for --enable-file" >&5 |
10f2d63a VZ |
3674 | no_cache=0 |
3675 | # Check whether --enable-file or --disable-file was given. | |
3676 | if test "${enable_file+set}" = set; then | |
3677 | enableval="$enable_file" | |
698dcdb6 | 3678 | |
10f2d63a VZ |
3679 | if test "$enableval" = yes; then |
3680 | ac_cv_use_file='wxUSE_FILE=yes' | |
3681 | else | |
3682 | ac_cv_use_file='wxUSE_FILE=no' | |
3683 | fi | |
698dcdb6 | 3684 | |
10f2d63a | 3685 | else |
698dcdb6 | 3686 | |
10f2d63a VZ |
3687 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3688 | if test "x$LINE" != x ; then | |
3689 | eval "DEFAULT_$LINE" | |
3690 | else | |
3691 | no_cache=1 | |
3692 | fi | |
3693 | ||
3694 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3695 | |
3696 | fi | |
10f2d63a VZ |
3697 | |
3698 | ||
3699 | eval "$ac_cv_use_file" | |
3700 | if test "$no_cache" != 1; then | |
3701 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3702 | fi | |
3703 | ||
3704 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3705 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3706 | else |
698dcdb6 | 3707 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3708 | fi |
698dcdb6 | 3709 | |
10f2d63a | 3710 | |
1e6feb95 | 3711 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
4f14bcd8 | 3712 | echo "configure:3713: checking for --enable-ffile" >&5 |
10f2d63a | 3713 | no_cache=0 |
1e6feb95 VZ |
3714 | # Check whether --enable-ffile or --disable-ffile was given. |
3715 | if test "${enable_ffile+set}" = set; then | |
3716 | enableval="$enable_ffile" | |
698dcdb6 | 3717 | |
10f2d63a | 3718 | if test "$enableval" = yes; then |
1e6feb95 | 3719 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3720 | else |
1e6feb95 | 3721 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3722 | fi |
698dcdb6 | 3723 | |
10f2d63a | 3724 | else |
698dcdb6 | 3725 | |
1e6feb95 | 3726 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3727 | if test "x$LINE" != x ; then |
3728 | eval "DEFAULT_$LINE" | |
3729 | else | |
3730 | no_cache=1 | |
3731 | fi | |
3732 | ||
1e6feb95 | 3733 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3734 | |
3735 | fi | |
10f2d63a VZ |
3736 | |
3737 | ||
1e6feb95 | 3738 | eval "$ac_cv_use_ffile" |
10f2d63a | 3739 | if test "$no_cache" != 1; then |
1e6feb95 | 3740 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3741 | fi |
3742 | ||
1e6feb95 | 3743 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3745 | else |
698dcdb6 | 3746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3747 | fi |
698dcdb6 | 3748 | |
10f2d63a | 3749 | |
1e6feb95 | 3750 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
4f14bcd8 | 3751 | echo "configure:3752: checking for --enable-textfile" >&5 |
10f2d63a | 3752 | no_cache=0 |
1e6feb95 VZ |
3753 | # Check whether --enable-textfile or --disable-textfile was given. |
3754 | if test "${enable_textfile+set}" = set; then | |
3755 | enableval="$enable_textfile" | |
698dcdb6 | 3756 | |
10f2d63a | 3757 | if test "$enableval" = yes; then |
1e6feb95 | 3758 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3759 | else |
1e6feb95 | 3760 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3761 | fi |
698dcdb6 | 3762 | |
10f2d63a | 3763 | else |
698dcdb6 | 3764 | |
1e6feb95 | 3765 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3766 | if test "x$LINE" != x ; then |
3767 | eval "DEFAULT_$LINE" | |
3768 | else | |
3769 | no_cache=1 | |
3770 | fi | |
3771 | ||
1e6feb95 | 3772 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3773 | |
3774 | fi | |
10f2d63a VZ |
3775 | |
3776 | ||
1e6feb95 | 3777 | eval "$ac_cv_use_textfile" |
10f2d63a | 3778 | if test "$no_cache" != 1; then |
1e6feb95 | 3779 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3780 | fi |
3781 | ||
1e6feb95 | 3782 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3783 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3784 | else |
698dcdb6 | 3785 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3786 | fi |
698dcdb6 | 3787 | |
10f2d63a | 3788 | |
1e6feb95 | 3789 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
4f14bcd8 | 3790 | echo "configure:3791: checking for --enable-fontmap" >&5 |
10f2d63a | 3791 | no_cache=0 |
1e6feb95 VZ |
3792 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3793 | if test "${enable_fontmap+set}" = set; then | |
3794 | enableval="$enable_fontmap" | |
698dcdb6 | 3795 | |
10f2d63a | 3796 | if test "$enableval" = yes; then |
1e6feb95 | 3797 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3798 | else |
1e6feb95 | 3799 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3800 | fi |
698dcdb6 | 3801 | |
10f2d63a | 3802 | else |
698dcdb6 | 3803 | |
1e6feb95 | 3804 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3805 | if test "x$LINE" != x ; then |
3806 | eval "DEFAULT_$LINE" | |
3807 | else | |
3808 | no_cache=1 | |
3809 | fi | |
3810 | ||
1e6feb95 | 3811 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3812 | |
3813 | fi | |
10f2d63a VZ |
3814 | |
3815 | ||
1e6feb95 | 3816 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3817 | if test "$no_cache" != 1; then |
1e6feb95 | 3818 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3819 | fi |
3820 | ||
1e6feb95 | 3821 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3822 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3823 | else |
698dcdb6 | 3824 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3825 | fi |
698dcdb6 | 3826 | |
10f2d63a | 3827 | |
1e6feb95 | 3828 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
4f14bcd8 | 3829 | echo "configure:3830: checking for --enable-unicode" >&5 |
10f2d63a | 3830 | no_cache=0 |
1e6feb95 VZ |
3831 | # Check whether --enable-unicode or --disable-unicode was given. |
3832 | if test "${enable_unicode+set}" = set; then | |
3833 | enableval="$enable_unicode" | |
3834 | ||
3835 | if test "$enableval" = yes; then | |
3836 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3837 | else | |
3838 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3839 | fi | |
3840 | ||
3841 | else | |
3842 | ||
3843 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3844 | if test "x$LINE" != x ; then | |
3845 | eval "DEFAULT_$LINE" | |
3846 | else | |
3847 | no_cache=1 | |
3848 | fi | |
3849 | ||
3850 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3851 | ||
3852 | fi | |
3853 | ||
3854 | ||
3855 | eval "$ac_cv_use_unicode" | |
3856 | if test "$no_cache" != 1; then | |
3857 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3858 | fi | |
3859 | ||
3860 | if test "$wxUSE_UNICODE" = yes; then | |
3861 | echo "$ac_t""yes" 1>&6 | |
3862 | else | |
3863 | echo "$ac_t""no" 1>&6 | |
3864 | fi | |
3865 | ||
3866 | ||
1e6feb95 | 3867 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
4f14bcd8 | 3868 | echo "configure:3869: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3869 | no_cache=0 |
3870 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3871 | if test "${enable_wxprintfv+set}" = set; then | |
3872 | enableval="$enable_wxprintfv" | |
3873 | ||
3874 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3875 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3876 | else | |
3877 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3878 | fi | |
698dcdb6 | 3879 | |
10f2d63a | 3880 | else |
698dcdb6 | 3881 | |
10f2d63a VZ |
3882 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3883 | if test "x$LINE" != x ; then | |
3884 | eval "DEFAULT_$LINE" | |
3885 | else | |
3886 | no_cache=1 | |
3887 | fi | |
3888 | ||
3889 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3890 | |
3891 | fi | |
10f2d63a VZ |
3892 | |
3893 | ||
3894 | eval "$ac_cv_use_wxprintfv" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3900 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3901 | else |
698dcdb6 | 3902 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3903 | fi |
698dcdb6 | 3904 | |
10f2d63a | 3905 | |
698dcdb6 | 3906 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
4f14bcd8 | 3907 | echo "configure:3908: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3908 | no_cache=0 |
3909 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3910 | if test "${enable_std_iostreams+set}" = set; then | |
3911 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3912 | |
10f2d63a VZ |
3913 | if test "$enableval" = yes; then |
3914 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3915 | else | |
3916 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3917 | fi | |
698dcdb6 | 3918 | |
10f2d63a | 3919 | else |
698dcdb6 | 3920 | |
10f2d63a VZ |
3921 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3922 | if test "x$LINE" != x ; then | |
3923 | eval "DEFAULT_$LINE" | |
3924 | else | |
3925 | no_cache=1 | |
3926 | fi | |
3927 | ||
3928 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3929 | |
3930 | fi | |
10f2d63a VZ |
3931 | |
3932 | ||
3933 | eval "$ac_cv_use_std_iostreams" | |
3934 | if test "$no_cache" != 1; then | |
3935 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3936 | fi | |
3937 | ||
3938 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3940 | else |
698dcdb6 | 3941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3942 | fi |
698dcdb6 | 3943 | |
10f2d63a | 3944 | |
698dcdb6 | 3945 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
4f14bcd8 | 3946 | echo "configure:3947: checking for --enable-filesystem" >&5 |
24528b0c VS |
3947 | no_cache=0 |
3948 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3949 | if test "${enable_filesystem+set}" = set; then | |
3950 | enableval="$enable_filesystem" | |
698dcdb6 | 3951 | |
24528b0c VS |
3952 | if test "$enableval" = yes; then |
3953 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3954 | else | |
3955 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3956 | fi | |
698dcdb6 | 3957 | |
24528b0c | 3958 | else |
698dcdb6 | 3959 | |
24528b0c VS |
3960 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3961 | if test "x$LINE" != x ; then | |
3962 | eval "DEFAULT_$LINE" | |
3963 | else | |
3964 | no_cache=1 | |
3965 | fi | |
3966 | ||
3967 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3968 | |
3969 | fi | |
24528b0c VS |
3970 | |
3971 | ||
3972 | eval "$ac_cv_use_filesystem" | |
3973 | if test "$no_cache" != 1; then | |
3974 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3975 | fi | |
3976 | ||
3977 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3978 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3979 | else |
698dcdb6 | 3980 | echo "$ac_t""no" 1>&6 |
24528b0c | 3981 | fi |
698dcdb6 | 3982 | |
24528b0c | 3983 | |
698dcdb6 | 3984 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
4f14bcd8 | 3985 | echo "configure:3986: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3986 | no_cache=0 |
3987 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3988 | if test "${enable_fs_inet+set}" = set; then | |
3989 | enableval="$enable_fs_inet" | |
698dcdb6 | 3990 | |
10f2d63a VZ |
3991 | if test "$enableval" = yes; then |
3992 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3993 | else | |
3994 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3995 | fi | |
698dcdb6 | 3996 | |
10f2d63a | 3997 | else |
698dcdb6 | 3998 | |
10f2d63a VZ |
3999 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4000 | if test "x$LINE" != x ; then | |
4001 | eval "DEFAULT_$LINE" | |
4002 | else | |
4003 | no_cache=1 | |
4004 | fi | |
4005 | ||
4006 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4007 | |
4008 | fi | |
10f2d63a VZ |
4009 | |
4010 | ||
4011 | eval "$ac_cv_use_fs_inet" | |
4012 | if test "$no_cache" != 1; then | |
4013 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4014 | fi | |
4015 | ||
4016 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4017 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4018 | else |
698dcdb6 | 4019 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4020 | fi |
698dcdb6 | 4021 | |
10f2d63a | 4022 | |
698dcdb6 | 4023 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
4f14bcd8 | 4024 | echo "configure:4025: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4025 | no_cache=0 |
4026 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4027 | if test "${enable_fs_zip+set}" = set; then | |
4028 | enableval="$enable_fs_zip" | |
698dcdb6 | 4029 | |
10f2d63a VZ |
4030 | if test "$enableval" = yes; then |
4031 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4032 | else | |
4033 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4034 | fi | |
698dcdb6 | 4035 | |
10f2d63a | 4036 | else |
698dcdb6 | 4037 | |
10f2d63a VZ |
4038 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4039 | if test "x$LINE" != x ; then | |
4040 | eval "DEFAULT_$LINE" | |
4041 | else | |
4042 | no_cache=1 | |
4043 | fi | |
4044 | ||
4045 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4046 | |
4047 | fi | |
10f2d63a VZ |
4048 | |
4049 | ||
4050 | eval "$ac_cv_use_fs_zip" | |
4051 | if test "$no_cache" != 1; then | |
4052 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4053 | fi | |
4054 | ||
4055 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4056 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4057 | else |
698dcdb6 | 4058 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4059 | fi |
698dcdb6 | 4060 | |
10f2d63a | 4061 | |
698dcdb6 | 4062 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
4f14bcd8 | 4063 | echo "configure:4064: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4064 | no_cache=0 |
4065 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4066 | if test "${enable_zipstream+set}" = set; then | |
4067 | enableval="$enable_zipstream" | |
698dcdb6 | 4068 | |
10f2d63a VZ |
4069 | if test "$enableval" = yes; then |
4070 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4071 | else | |
4072 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4073 | fi | |
698dcdb6 | 4074 | |
10f2d63a | 4075 | else |
698dcdb6 | 4076 | |
10f2d63a VZ |
4077 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4078 | if test "x$LINE" != x ; then | |
4079 | eval "DEFAULT_$LINE" | |
4080 | else | |
4081 | no_cache=1 | |
4082 | fi | |
4083 | ||
4084 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4085 | |
4086 | fi | |
10f2d63a VZ |
4087 | |
4088 | ||
4089 | eval "$ac_cv_use_zipstream" | |
4090 | if test "$no_cache" != 1; then | |
4091 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4092 | fi | |
4093 | ||
4094 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4096 | else |
698dcdb6 | 4097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4098 | fi |
698dcdb6 | 4099 | |
10f2d63a | 4100 | |
698dcdb6 VZ |
4101 | |
4102 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
4f14bcd8 | 4103 | echo "configure:4104: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4104 | no_cache=0 |
4105 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4106 | if test "${enable_catch_segvs+set}" = set; then | |
4107 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4108 | |
eb4efbdc VZ |
4109 | if test "$enableval" = yes; then |
4110 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4111 | else | |
4112 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4113 | fi | |
698dcdb6 | 4114 | |
eb4efbdc | 4115 | else |
698dcdb6 | 4116 | |
eb4efbdc VZ |
4117 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4118 | if test "x$LINE" != x ; then | |
4119 | eval "DEFAULT_$LINE" | |
4120 | else | |
4121 | no_cache=1 | |
4122 | fi | |
4123 | ||
4124 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4125 | |
4126 | fi | |
eb4efbdc VZ |
4127 | |
4128 | ||
4129 | eval "$ac_cv_use_catch_segvs" | |
4130 | if test "$no_cache" != 1; then | |
4131 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4132 | fi | |
4133 | ||
4134 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4135 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4136 | else |
698dcdb6 | 4137 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4138 | fi |
698dcdb6 | 4139 | |
eb4efbdc | 4140 | |
698dcdb6 | 4141 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
4f14bcd8 | 4142 | echo "configure:4143: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4143 | no_cache=0 |
4144 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4145 | if test "${enable_snglinst+set}" = set; then | |
4146 | enableval="$enable_snglinst" | |
698dcdb6 | 4147 | |
4f3c5f06 VZ |
4148 | if test "$enableval" = yes; then |
4149 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4150 | else | |
4151 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4152 | fi | |
698dcdb6 | 4153 | |
4f3c5f06 | 4154 | else |
698dcdb6 | 4155 | |
4f3c5f06 VZ |
4156 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4157 | if test "x$LINE" != x ; then | |
4158 | eval "DEFAULT_$LINE" | |
4159 | else | |
4160 | no_cache=1 | |
4161 | fi | |
4162 | ||
4163 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4164 | |
4165 | fi | |
4f3c5f06 VZ |
4166 | |
4167 | ||
4168 | eval "$ac_cv_use_snglinst" | |
4169 | if test "$no_cache" != 1; then | |
4170 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4171 | fi | |
4172 | ||
4173 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4174 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4175 | else |
698dcdb6 | 4176 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4177 | fi |
698dcdb6 VZ |
4178 | |
4179 | ||
eb4efbdc | 4180 | |
1e6feb95 | 4181 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
4f14bcd8 | 4182 | echo "configure:4183: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4183 | no_cache=0 |
4184 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4185 | if test "${enable_mimetype+set}" = set; then | |
4186 | enableval="$enable_mimetype" | |
4187 | ||
4188 | if test "$enableval" = yes; then | |
4189 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4190 | else | |
4191 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4192 | fi | |
4193 | ||
4194 | else | |
4195 | ||
4196 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4197 | if test "x$LINE" != x ; then | |
4198 | eval "DEFAULT_$LINE" | |
4199 | else | |
4200 | no_cache=1 | |
4201 | fi | |
4202 | ||
4203 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4204 | ||
4205 | fi | |
4206 | ||
4207 | ||
4208 | eval "$ac_cv_use_mimetype" | |
4209 | if test "$no_cache" != 1; then | |
4210 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4211 | fi | |
4212 | ||
4213 | if test "$wxUSE_MIMETYPE" = yes; then | |
4214 | echo "$ac_t""yes" 1>&6 | |
4215 | else | |
4216 | echo "$ac_t""no" 1>&6 | |
4217 | fi | |
4218 | ||
4219 | ||
3e44f09d | 4220 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
4f14bcd8 | 4221 | echo "configure:4222: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4222 | no_cache=0 |
4223 | # Check whether --enable-system_options or --disable-system_options was given. | |
4224 | if test "${enable_system_options+set}" = set; then | |
4225 | enableval="$enable_system_options" | |
4226 | ||
4227 | if test "$enableval" = yes; then | |
4228 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4229 | else | |
4230 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4231 | fi | |
4232 | ||
4233 | else | |
4234 | ||
4235 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4236 | if test "x$LINE" != x ; then | |
4237 | eval "DEFAULT_$LINE" | |
4238 | else | |
4239 | no_cache=1 | |
4240 | fi | |
4241 | ||
4242 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4243 | ||
4244 | fi | |
4245 | ||
4246 | ||
4247 | eval "$ac_cv_use_system_options" | |
4248 | if test "$no_cache" != 1; then | |
4249 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4250 | fi | |
4251 | ||
4252 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4253 | echo "$ac_t""yes" 1>&6 | |
4254 | else | |
4255 | echo "$ac_t""no" 1>&6 | |
4256 | fi | |
4257 | ||
4258 | ||
1e6feb95 | 4259 | |
698dcdb6 VZ |
4260 | |
4261 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4f14bcd8 | 4262 | echo "configure:4263: checking for --enable-threads" >&5 |
10f2d63a VZ |
4263 | no_cache=0 |
4264 | # Check whether --enable-threads or --disable-threads was given. | |
4265 | if test "${enable_threads+set}" = set; then | |
4266 | enableval="$enable_threads" | |
698dcdb6 | 4267 | |
10f2d63a VZ |
4268 | if test "$enableval" = yes; then |
4269 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4270 | else | |
4271 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4272 | fi | |
698dcdb6 | 4273 | |
10f2d63a | 4274 | else |
698dcdb6 | 4275 | |
10f2d63a VZ |
4276 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4277 | if test "x$LINE" != x ; then | |
4278 | eval "DEFAULT_$LINE" | |
4279 | else | |
4280 | no_cache=1 | |
4281 | fi | |
4282 | ||
4283 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4284 | |
4285 | fi | |
10f2d63a VZ |
4286 | |
4287 | ||
4288 | eval "$ac_cv_use_threads" | |
4289 | if test "$no_cache" != 1; then | |
4290 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4291 | fi | |
4292 | ||
4293 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4294 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4295 | else |
698dcdb6 | 4296 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4297 | fi |
698dcdb6 | 4298 | |
10f2d63a | 4299 | |
698dcdb6 | 4300 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
4f14bcd8 | 4301 | echo "configure:4302: checking for --enable-serial" >&5 |
10f2d63a VZ |
4302 | no_cache=0 |
4303 | # Check whether --enable-serial or --disable-serial was given. | |
4304 | if test "${enable_serial+set}" = set; then | |
4305 | enableval="$enable_serial" | |
698dcdb6 | 4306 | |
10f2d63a VZ |
4307 | if test "$enableval" = yes; then |
4308 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4309 | else | |
4310 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4311 | fi | |
698dcdb6 | 4312 | |
10f2d63a | 4313 | else |
698dcdb6 | 4314 | |
10f2d63a VZ |
4315 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4316 | if test "x$LINE" != x ; then | |
4317 | eval "DEFAULT_$LINE" | |
4318 | else | |
4319 | no_cache=1 | |
4320 | fi | |
4321 | ||
4322 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4323 | |
4324 | fi | |
10f2d63a VZ |
4325 | |
4326 | ||
4327 | eval "$ac_cv_use_serial" | |
4328 | if test "$no_cache" != 1; then | |
4329 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4330 | fi | |
4331 | ||
4332 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4333 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4334 | else |
698dcdb6 | 4335 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4336 | fi |
698dcdb6 | 4337 | |
10f2d63a | 4338 | |
b12915c1 VZ |
4339 | if test "$wxUSE_GUI" = "yes"; then |
4340 | ||
698dcdb6 VZ |
4341 | |
4342 | ||
4343 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4f14bcd8 | 4344 | echo "configure:4345: checking for --enable-docview" >&5 |
10f2d63a VZ |
4345 | no_cache=0 |
4346 | # Check whether --enable-docview or --disable-docview was given. | |
4347 | if test "${enable_docview+set}" = set; then | |
4348 | enableval="$enable_docview" | |
698dcdb6 | 4349 | |
10f2d63a VZ |
4350 | if test "$enableval" = yes; then |
4351 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4352 | else | |
4353 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4354 | fi | |
698dcdb6 | 4355 | |
10f2d63a | 4356 | else |
698dcdb6 | 4357 | |
10f2d63a VZ |
4358 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4359 | if test "x$LINE" != x ; then | |
4360 | eval "DEFAULT_$LINE" | |
4361 | else | |
4362 | no_cache=1 | |
4363 | fi | |
4364 | ||
4365 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4366 | |
4367 | fi | |
10f2d63a VZ |
4368 | |
4369 | ||
4370 | eval "$ac_cv_use_docview" | |
4371 | if test "$no_cache" != 1; then | |
4372 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4373 | fi | |
4374 | ||
4375 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4376 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4377 | else |
698dcdb6 | 4378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4379 | fi |
698dcdb6 | 4380 | |
10f2d63a | 4381 | |
698dcdb6 | 4382 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
4f14bcd8 | 4383 | echo "configure:4384: checking for --enable-help" >&5 |
10f2d63a VZ |
4384 | no_cache=0 |
4385 | # Check whether --enable-help or --disable-help was given. | |
4386 | if test "${enable_help+set}" = set; then | |
4387 | enableval="$enable_help" | |
698dcdb6 | 4388 | |
10f2d63a VZ |
4389 | if test "$enableval" = yes; then |
4390 | ac_cv_use_help='wxUSE_HELP=yes' | |
4391 | else | |
4392 | ac_cv_use_help='wxUSE_HELP=no' | |
4393 | fi | |
698dcdb6 | 4394 | |
10f2d63a | 4395 | else |
698dcdb6 | 4396 | |
10f2d63a VZ |
4397 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4398 | if test "x$LINE" != x ; then | |
4399 | eval "DEFAULT_$LINE" | |
4400 | else | |
4401 | no_cache=1 | |
4402 | fi | |
4403 | ||
4404 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4405 | |
4406 | fi | |
10f2d63a VZ |
4407 | |
4408 | ||
4409 | eval "$ac_cv_use_help" | |
4410 | if test "$no_cache" != 1; then | |
4411 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4412 | fi | |
4413 | ||
4414 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4416 | else |
698dcdb6 | 4417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4418 | fi |
698dcdb6 | 4419 | |
10f2d63a | 4420 | |
29fd3c0c | 4421 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
4f14bcd8 | 4422 | echo "configure:4423: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4423 | no_cache=0 |
4424 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4425 | if test "${enable_mshtmlhelp+set}" = set; then | |
4426 | enableval="$enable_mshtmlhelp" | |
4427 | ||
4428 | if test "$enableval" = yes; then | |
4429 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4430 | else | |
4431 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4432 | fi | |
4433 | ||
4434 | else | |
4435 | ||
4436 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4437 | if test "x$LINE" != x ; then | |
4438 | eval "DEFAULT_$LINE" | |
4439 | else | |
4440 | no_cache=1 | |
4441 | fi | |
4442 | ||
4443 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4444 | ||
4445 | fi | |
4446 | ||
4447 | ||
4448 | eval "$ac_cv_use_mshtmlhelp" | |
4449 | if test "$no_cache" != 1; then | |
4450 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4451 | fi | |
4452 | ||
4453 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4454 | echo "$ac_t""yes" 1>&6 | |
4455 | else | |
4456 | echo "$ac_t""no" 1>&6 | |
4457 | fi | |
4458 | ||
4459 | ||
3379ed37 | 4460 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
4f14bcd8 | 4461 | echo "configure:4462: checking for --enable-html" >&5 |
3379ed37 VZ |
4462 | no_cache=0 |
4463 | # Check whether --enable-html or --disable-html was given. | |
4464 | if test "${enable_html+set}" = set; then | |
4465 | enableval="$enable_html" | |
4466 | ||
4467 | if test "$enableval" = yes; then | |
4468 | ac_cv_use_html='wxUSE_HTML=yes' | |
4469 | else | |
4470 | ac_cv_use_html='wxUSE_HTML=no' | |
4471 | fi | |
4472 | ||
4473 | else | |
4474 | ||
4475 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4476 | if test "x$LINE" != x ; then | |
4477 | eval "DEFAULT_$LINE" | |
4478 | else | |
4479 | no_cache=1 | |
4480 | fi | |
4481 | ||
4482 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4483 | ||
4484 | fi | |
4485 | ||
4486 | ||
4487 | eval "$ac_cv_use_html" | |
4488 | if test "$no_cache" != 1; then | |
4489 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4490 | fi | |
4491 | ||
4492 | if test "$wxUSE_HTML" = yes; then | |
4493 | echo "$ac_t""yes" 1>&6 | |
4494 | else | |
4495 | echo "$ac_t""no" 1>&6 | |
4496 | fi | |
4497 | ||
4498 | ||
4499 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
4f14bcd8 | 4500 | echo "configure:4501: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4501 | no_cache=0 |
4502 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4503 | if test "${enable_htmlhelp+set}" = set; then | |
4504 | enableval="$enable_htmlhelp" | |
4505 | ||
4506 | if test "$enableval" = yes; then | |
4507 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4508 | else | |
4509 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4510 | fi | |
4511 | ||
4512 | else | |
4513 | ||
4514 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4515 | if test "x$LINE" != x ; then | |
4516 | eval "DEFAULT_$LINE" | |
4517 | else | |
4518 | no_cache=1 | |
4519 | fi | |
4520 | ||
4521 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4522 | ||
4523 | fi | |
4524 | ||
4525 | ||
4526 | eval "$ac_cv_use_htmlhelp" | |
4527 | if test "$no_cache" != 1; then | |
4528 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4529 | fi | |
4530 | ||
4531 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4532 | echo "$ac_t""yes" 1>&6 | |
4533 | else | |
4534 | echo "$ac_t""no" 1>&6 | |
4535 | fi | |
4536 | ||
4537 | ||
698dcdb6 | 4538 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
4f14bcd8 | 4539 | echo "configure:4540: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4540 | no_cache=0 |
4541 | # Check whether --enable-constraints or --disable-constraints was given. | |
4542 | if test "${enable_constraints+set}" = set; then | |
4543 | enableval="$enable_constraints" | |
698dcdb6 | 4544 | |
10f2d63a VZ |
4545 | if test "$enableval" = yes; then |
4546 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4547 | else | |
4548 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4549 | fi | |
698dcdb6 | 4550 | |
10f2d63a | 4551 | else |
698dcdb6 | 4552 | |
10f2d63a VZ |
4553 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4554 | if test "x$LINE" != x ; then | |
4555 | eval "DEFAULT_$LINE" | |
4556 | else | |
4557 | no_cache=1 | |
4558 | fi | |
4559 | ||
4560 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4561 | |
4562 | fi | |
10f2d63a VZ |
4563 | |
4564 | ||
4565 | eval "$ac_cv_use_constraints" | |
4566 | if test "$no_cache" != 1; then | |
4567 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4568 | fi | |
4569 | ||
4570 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4571 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4572 | else |
698dcdb6 | 4573 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4574 | fi |
698dcdb6 | 4575 | |
10f2d63a | 4576 | |
698dcdb6 | 4577 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
4f14bcd8 | 4578 | echo "configure:4579: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4579 | no_cache=0 |
4580 | # Check whether --enable-printarch or --disable-printarch was given. | |
4581 | if test "${enable_printarch+set}" = set; then | |
4582 | enableval="$enable_printarch" | |
698dcdb6 | 4583 | |
10f2d63a VZ |
4584 | if test "$enableval" = yes; then |
4585 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4586 | else | |
4587 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4588 | fi | |
698dcdb6 | 4589 | |
10f2d63a | 4590 | else |
698dcdb6 | 4591 | |
10f2d63a VZ |
4592 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4593 | if test "x$LINE" != x ; then | |
4594 | eval "DEFAULT_$LINE" | |
4595 | else | |
4596 | no_cache=1 | |
4597 | fi | |
4598 | ||
4599 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4600 | |
4601 | fi | |
10f2d63a VZ |
4602 | |
4603 | ||
4604 | eval "$ac_cv_use_printarch" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4610 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4611 | else |
698dcdb6 | 4612 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4613 | fi |
698dcdb6 | 4614 | |
10f2d63a | 4615 | |
698dcdb6 | 4616 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
4f14bcd8 | 4617 | echo "configure:4618: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4618 | no_cache=0 |
4619 | # Check whether --enable-mdi or --disable-mdi was given. | |
4620 | if test "${enable_mdi+set}" = set; then | |
4621 | enableval="$enable_mdi" | |
698dcdb6 | 4622 | |
10f2d63a VZ |
4623 | if test "$enableval" = yes; then |
4624 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4625 | else | |
4626 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4627 | fi | |
698dcdb6 | 4628 | |
10f2d63a | 4629 | else |
698dcdb6 | 4630 | |
10f2d63a VZ |
4631 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4632 | if test "x$LINE" != x ; then | |
4633 | eval "DEFAULT_$LINE" | |
4634 | else | |
4635 | no_cache=1 | |
4636 | fi | |
4637 | ||
4638 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4639 | |
4640 | fi | |
10f2d63a VZ |
4641 | |
4642 | ||
4643 | eval "$ac_cv_use_mdi" | |
4644 | if test "$no_cache" != 1; then | |
4645 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4646 | fi | |
4647 | ||
4648 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4650 | else |
698dcdb6 | 4651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4652 | fi |
698dcdb6 VZ |
4653 | |
4654 | ||
1e6feb95 | 4655 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
4f14bcd8 | 4656 | echo "configure:4657: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4657 | no_cache=0 |
4658 | # Check whether --enable-loggui or --disable-loggui was given. | |
4659 | if test "${enable_loggui+set}" = set; then | |
4660 | enableval="$enable_loggui" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
4663 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4664 | else | |
4665 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4666 | fi | |
4667 | ||
4668 | else | |
4669 | ||
4670 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4671 | if test "x$LINE" != x ; then | |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
4677 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4678 | ||
4679 | fi | |
4680 | ||
4681 | ||
4682 | eval "$ac_cv_use_loggui" | |
4683 | if test "$no_cache" != 1; then | |
4684 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4685 | fi | |
4686 | ||
4687 | if test "$wxUSE_LOGGUI" = yes; then | |
4688 | echo "$ac_t""yes" 1>&6 | |
4689 | else | |
4690 | echo "$ac_t""no" 1>&6 | |
4691 | fi | |
4692 | ||
4693 | ||
4694 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
4f14bcd8 | 4695 | echo "configure:4696: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4696 | no_cache=0 |
4697 | # Check whether --enable-logwin or --disable-logwin was given. | |
4698 | if test "${enable_logwin+set}" = set; then | |
4699 | enableval="$enable_logwin" | |
4700 | ||
4701 | if test "$enableval" = yes; then | |
4702 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4703 | else | |
4704 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4705 | fi | |
4706 | ||
4707 | else | |
4708 | ||
4709 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4710 | if test "x$LINE" != x ; then | |
4711 | eval "DEFAULT_$LINE" | |
4712 | else | |
4713 | no_cache=1 | |
4714 | fi | |
4715 | ||
4716 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4717 | ||
4718 | fi | |
4719 | ||
4720 | ||
4721 | eval "$ac_cv_use_logwin" | |
4722 | if test "$no_cache" != 1; then | |
4723 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4724 | fi | |
4725 | ||
4726 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4727 | echo "$ac_t""yes" 1>&6 | |
4728 | else | |
4729 | echo "$ac_t""no" 1>&6 | |
4730 | fi | |
4731 | ||
4732 | ||
10f2d63a | 4733 | |
698dcdb6 | 4734 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
4f14bcd8 | 4735 | echo "configure:4736: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4736 | no_cache=0 |
4737 | # Check whether --enable-postscript or --disable-postscript was given. | |
4738 | if test "${enable_postscript+set}" = set; then | |
4739 | enableval="$enable_postscript" | |
698dcdb6 | 4740 | |
10f2d63a VZ |
4741 | if test "$enableval" = yes; then |
4742 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4743 | else | |
4744 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4745 | fi | |
698dcdb6 | 4746 | |
10f2d63a | 4747 | else |
698dcdb6 | 4748 | |
10f2d63a VZ |
4749 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4750 | if test "x$LINE" != x ; then | |
4751 | eval "DEFAULT_$LINE" | |
4752 | else | |
4753 | no_cache=1 | |
4754 | fi | |
4755 | ||
4756 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4757 | |
4758 | fi | |
10f2d63a VZ |
4759 | |
4760 | ||
4761 | eval "$ac_cv_use_postscript" | |
4762 | if test "$no_cache" != 1; then | |
4763 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4764 | fi | |
4765 | ||
4766 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4767 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4768 | else |
698dcdb6 | 4769 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4770 | fi |
698dcdb6 VZ |
4771 | |
4772 | ||
4773 | ||
10f2d63a | 4774 | |
1e6feb95 | 4775 | |
698dcdb6 | 4776 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
4f14bcd8 | 4777 | echo "configure:4778: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4778 | no_cache=0 |
4779 | # Check whether --enable-prologio or --disable-prologio was given. | |
4780 | if test "${enable_prologio+set}" = set; then | |
4781 | enableval="$enable_prologio" | |
698dcdb6 | 4782 | |
10f2d63a VZ |
4783 | if test "$enableval" = yes; then |
4784 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4785 | else | |
4786 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4787 | fi | |
698dcdb6 | 4788 | |
10f2d63a | 4789 | else |
698dcdb6 | 4790 | |
10f2d63a VZ |
4791 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4792 | if test "x$LINE" != x ; then | |
4793 | eval "DEFAULT_$LINE" | |
4794 | else | |
4795 | no_cache=1 | |
4796 | fi | |
4797 | ||
4798 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4799 | |
4800 | fi | |
10f2d63a VZ |
4801 | |
4802 | ||
4803 | eval "$ac_cv_use_prologio" | |
4804 | if test "$no_cache" != 1; then | |
4805 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4806 | fi | |
4807 | ||
4808 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4810 | else |
698dcdb6 | 4811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4812 | fi |
698dcdb6 | 4813 | |
10f2d63a | 4814 | |
698dcdb6 | 4815 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
4f14bcd8 | 4816 | echo "configure:4817: checking for --enable-resources" >&5 |
10f2d63a VZ |
4817 | no_cache=0 |
4818 | # Check whether --enable-resources or --disable-resources was given. | |
4819 | if test "${enable_resources+set}" = set; then | |
4820 | enableval="$enable_resources" | |
698dcdb6 | 4821 | |
10f2d63a VZ |
4822 | if test "$enableval" = yes; then |
4823 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4824 | else | |
4825 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4826 | fi | |
698dcdb6 | 4827 | |
10f2d63a | 4828 | else |
698dcdb6 | 4829 | |
10f2d63a VZ |
4830 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4831 | if test "x$LINE" != x ; then | |
4832 | eval "DEFAULT_$LINE" | |
4833 | else | |
4834 | no_cache=1 | |
4835 | fi | |
4836 | ||
4837 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4838 | |
4839 | fi | |
10f2d63a VZ |
4840 | |
4841 | ||
4842 | eval "$ac_cv_use_resources" | |
4843 | if test "$no_cache" != 1; then | |
4844 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4845 | fi | |
4846 | ||
4847 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4848 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4849 | else |
698dcdb6 | 4850 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4851 | fi |
698dcdb6 | 4852 | |
10f2d63a | 4853 | |
698dcdb6 VZ |
4854 | |
4855 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
4f14bcd8 | 4856 | echo "configure:4857: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4857 | no_cache=0 |
4858 | # Check whether --enable-xresources or --disable-xresources was given. | |
4859 | if test "${enable_xresources+set}" = set; then | |
4860 | enableval="$enable_xresources" | |
698dcdb6 | 4861 | |
10f2d63a VZ |
4862 | if test "$enableval" = yes; then |
4863 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4864 | else | |
4865 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4866 | fi | |
698dcdb6 | 4867 | |
10f2d63a | 4868 | else |
698dcdb6 | 4869 | |
10f2d63a VZ |
4870 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4871 | if test "x$LINE" != x ; then | |
4872 | eval "DEFAULT_$LINE" | |
4873 | else | |
4874 | no_cache=1 | |
4875 | fi | |
4876 | ||
4877 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4878 | |
4879 | fi | |
10f2d63a VZ |
4880 | |
4881 | ||
4882 | eval "$ac_cv_use_xresources" | |
4883 | if test "$no_cache" != 1; then | |
4884 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4885 | fi | |
4886 | ||
4887 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4888 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4889 | else |
698dcdb6 | 4890 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4891 | fi |
698dcdb6 VZ |
4892 | |
4893 | ||
10f2d63a | 4894 | |
698dcdb6 VZ |
4895 | |
4896 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
4f14bcd8 | 4897 | echo "configure:4898: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4898 | no_cache=0 |
4899 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4900 | if test "${enable_clipboard+set}" = set; then | |
4901 | enableval="$enable_clipboard" | |
698dcdb6 | 4902 | |
10f2d63a VZ |
4903 | if test "$enableval" = yes; then |
4904 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4905 | else | |
4906 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4907 | fi | |
698dcdb6 | 4908 | |
10f2d63a | 4909 | else |
698dcdb6 | 4910 | |
10f2d63a VZ |
4911 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4912 | if test "x$LINE" != x ; then | |
4913 | eval "DEFAULT_$LINE" | |
4914 | else | |
4915 | no_cache=1 | |
4916 | fi | |
4917 | ||
4918 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4919 | |
4920 | fi | |
10f2d63a VZ |
4921 | |
4922 | ||
4923 | eval "$ac_cv_use_clipboard" | |
4924 | if test "$no_cache" != 1; then | |
4925 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4926 | fi | |
4927 | ||
4928 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4929 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4930 | else |
698dcdb6 | 4931 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4932 | fi |
698dcdb6 | 4933 | |
10f2d63a | 4934 | |
698dcdb6 | 4935 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
4f14bcd8 | 4936 | echo "configure:4937: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4937 | no_cache=0 |
4938 | # Check whether --enable-dnd or --disable-dnd was given. | |
4939 | if test "${enable_dnd+set}" = set; then | |
4940 | enableval="$enable_dnd" | |
698dcdb6 | 4941 | |
10f2d63a VZ |
4942 | if test "$enableval" = yes; then |
4943 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4944 | else | |
4945 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4946 | fi | |
698dcdb6 | 4947 | |
10f2d63a | 4948 | else |
698dcdb6 | 4949 | |
10f2d63a VZ |
4950 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4951 | if test "x$LINE" != x ; then | |
4952 | eval "DEFAULT_$LINE" | |
4953 | else | |
4954 | no_cache=1 | |
4955 | fi | |
4956 | ||
4957 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4958 | |
4959 | fi | |
10f2d63a VZ |
4960 | |
4961 | ||
4962 | eval "$ac_cv_use_dnd" | |
4963 | if test "$no_cache" != 1; then | |
4964 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4965 | fi | |
4966 | ||
4967 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4968 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4969 | else |
698dcdb6 | 4970 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4971 | fi |
698dcdb6 | 4972 | |
10f2d63a | 4973 | |
698dcdb6 | 4974 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
4f14bcd8 | 4975 | echo "configure:4976: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4976 | no_cache=0 |
4977 | # Check whether --enable-metafile or --disable-metafile was given. | |
4978 | if test "${enable_metafile+set}" = set; then | |
4979 | enableval="$enable_metafile" | |
698dcdb6 | 4980 | |
b64f0a5f RL |
4981 | if test "$enableval" = yes; then |
4982 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4983 | else | |
4984 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4985 | fi | |
698dcdb6 | 4986 | |
b64f0a5f | 4987 | else |
698dcdb6 | 4988 | |
b64f0a5f RL |
4989 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4990 | if test "x$LINE" != x ; then | |
4991 | eval "DEFAULT_$LINE" | |
4992 | else | |
4993 | no_cache=1 | |
4994 | fi | |
4995 | ||
4996 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4997 | |
4998 | fi | |
b64f0a5f RL |
4999 | |
5000 | ||
5001 | eval "$ac_cv_use_metafile" | |
5002 | if test "$no_cache" != 1; then | |
5003 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5004 | fi | |
5005 | ||
5006 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5007 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5008 | else |
698dcdb6 | 5009 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5010 | fi |
698dcdb6 VZ |
5011 | |
5012 | ||
10f2d63a | 5013 | |
24176f2c | 5014 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
4f14bcd8 | 5015 | echo "configure:5016: checking for --enable-treelayout" >&5 |
10f2d63a | 5016 | no_cache=0 |
24176f2c GD |
5017 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5018 | if test "${enable_treelayout+set}" = set; then | |
5019 | enableval="$enable_treelayout" | |
698dcdb6 | 5020 | |
10f2d63a | 5021 | if test "$enableval" = yes; then |
24176f2c | 5022 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5023 | else |
24176f2c | 5024 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5025 | fi |
698dcdb6 | 5026 | |
10f2d63a | 5027 | else |
698dcdb6 | 5028 | |
24176f2c | 5029 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5030 | if test "x$LINE" != x ; then |
5031 | eval "DEFAULT_$LINE" | |
5032 | else | |
5033 | no_cache=1 | |
5034 | fi | |
5035 | ||
24176f2c | 5036 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5037 | |
5038 | fi | |
10f2d63a VZ |
5039 | |
5040 | ||
24176f2c | 5041 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5042 | if test "$no_cache" != 1; then |
24176f2c | 5043 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5044 | fi |
5045 | ||
24176f2c | 5046 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5047 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5048 | else |
698dcdb6 | 5049 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5050 | fi |
698dcdb6 | 5051 | |
10f2d63a | 5052 | |
698dcdb6 VZ |
5053 | |
5054 | ||
5055 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
4f14bcd8 | 5056 | echo "configure:5057: checking for --enable-controls" >&5 |
10f2d63a VZ |
5057 | no_cache=0 |
5058 | # Check whether --enable-controls or --disable-controls was given. | |
5059 | if test "${enable_controls+set}" = set; then | |
5060 | enableval="$enable_controls" | |
698dcdb6 | 5061 | |
10f2d63a VZ |
5062 | if test "$enableval" = yes; then |
5063 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5064 | else | |
5065 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5066 | fi | |
698dcdb6 | 5067 | |
10f2d63a | 5068 | else |
698dcdb6 | 5069 | |
10f2d63a VZ |
5070 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5071 | if test "x$LINE" != x ; then | |
5072 | eval "DEFAULT_$LINE" | |
5073 | else | |
5074 | no_cache=1 | |
5075 | fi | |
5076 | ||
5077 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5078 | |
5079 | fi | |
10f2d63a VZ |
5080 | |
5081 | ||
5082 | eval "$ac_cv_use_controls" | |
5083 | if test "$no_cache" != 1; then | |
5084 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5085 | fi | |
5086 | ||
5087 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5088 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5089 | else |
698dcdb6 | 5090 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5091 | fi |
698dcdb6 | 5092 | |
10f2d63a VZ |
5093 | |
5094 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5095 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5096 | DEFAULT_wxUSE_BMPBUTTON=yes |
5097 | DEFAULT_wxUSE_BUTTON=yes | |
5098 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5099 | DEFAULT_wxUSE_CARET=yes |
5100 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5101 | DEFAULT_wxUSE_CHECKBOX=yes |
5102 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5103 | DEFAULT_wxUSE_CHOICE=yes | |
5104 | DEFAULT_wxUSE_GAUGE=yes | |
5105 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5106 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5107 | DEFAULT_wxUSE_IMAGLIST=yes |
5108 | DEFAULT_wxUSE_LISTBOX=yes | |
5109 | DEFAULT_wxUSE_LISTCTRL=yes | |
5110 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5111 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5112 | DEFAULT_wxUSE_RADIOBOX=yes |
5113 | DEFAULT_wxUSE_RADIOBTN=yes | |
5114 | DEFAULT_wxUSE_SASH=yes | |
5115 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5116 | DEFAULT_wxUSE_SLIDER=yes | |
5117 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5118 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5119 | DEFAULT_wxUSE_SPLITTER=yes |
5120 | DEFAULT_wxUSE_STATBMP=yes | |
5121 | DEFAULT_wxUSE_STATBOX=yes | |
5122 | DEFAULT_wxUSE_STATLINE=yes | |
5123 | DEFAULT_wxUSE_STATUSBAR=yes | |
5124 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5125 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5126 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5127 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5128 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5129 | DEFAULT_wxUSE_TOOLTIPS=yes |
5130 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5131 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5132 | elif test "$wxUSE_CONTROLS" = "no"; then |
5133 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5134 | DEFAULT_wxUSE_BMPBUTTON=no |
5135 | DEFAULT_wxUSE_BUTTON=no | |
5136 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5137 | DEFAULT_wxUSE_CARET=no |
5138 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5139 | DEFAULT_wxUSE_CHECKBOX=no |
5140 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5141 | DEFAULT_wxUSE_CHOICE=no | |
5142 | DEFAULT_wxUSE_GAUGE=no | |
5143 | DEFAULT_wxUSE_GRID=no | |
5144 | DEFAULT_wxUSE_NEW_GRID=no | |
5145 | DEFAULT_wxUSE_IMAGLIST=no | |
5146 | DEFAULT_wxUSE_LISTBOX=no | |
5147 | DEFAULT_wxUSE_LISTCTRL=no | |
5148 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5149 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5150 | DEFAULT_wxUSE_RADIOBOX=no |
5151 | DEFAULT_wxUSE_RADIOBTN=no | |
5152 | DEFAULT_wxUSE_SASH=no | |
5153 | DEFAULT_wxUSE_SCROLLBAR=no | |
5154 | DEFAULT_wxUSE_SLIDER=no | |
5155 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5156 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5157 | DEFAULT_wxUSE_SPLITTER=no |
5158 | DEFAULT_wxUSE_STATBMP=no | |
5159 | DEFAULT_wxUSE_STATBOX=no | |
5160 | DEFAULT_wxUSE_STATLINE=no | |
5161 | DEFAULT_wxUSE_STATUSBAR=no | |
5162 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5163 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5164 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5165 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5166 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5167 | DEFAULT_wxUSE_TOOLTIPS=no |
5168 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5169 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5170 | fi |
5171 | ||
698dcdb6 VZ |
5172 | |
5173 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
4f14bcd8 | 5174 | echo "configure:5175: checking for --enable-accel" >&5 |
10f2d63a VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-accel or --disable-accel was given. | |
5177 | if test "${enable_accel+set}" = set; then | |
5178 | enableval="$enable_accel" | |
698dcdb6 | 5179 | |
10f2d63a VZ |
5180 | if test "$enableval" = yes; then |
5181 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5182 | else | |
5183 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5184 | fi | |
698dcdb6 | 5185 | |
10f2d63a | 5186 | else |
698dcdb6 | 5187 | |
10f2d63a VZ |
5188 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5196 | |
5197 | fi | |
10f2d63a VZ |
5198 | |
5199 | ||
5200 | eval "$ac_cv_use_accel" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5207 | else |
698dcdb6 | 5208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5209 | fi |
698dcdb6 | 5210 | |
10f2d63a | 5211 | |
1e6feb95 | 5212 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
4f14bcd8 | 5213 | echo "configure:5214: checking for --enable-button" >&5 |
10f2d63a | 5214 | no_cache=0 |
1e6feb95 VZ |
5215 | # Check whether --enable-button or --disable-button was given. |
5216 | if test "${enable_button+set}" = set; then | |
5217 | enableval="$enable_button" | |
698dcdb6 | 5218 | |
10f2d63a | 5219 | if test "$enableval" = yes; then |
1e6feb95 | 5220 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5221 | else |
1e6feb95 | 5222 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5223 | fi |
698dcdb6 | 5224 | |
10f2d63a | 5225 | else |
698dcdb6 | 5226 | |
1e6feb95 | 5227 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5228 | if test "x$LINE" != x ; then |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
1e6feb95 | 5234 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5235 | |
5236 | fi | |
10f2d63a VZ |
5237 | |
5238 | ||
1e6feb95 | 5239 | eval "$ac_cv_use_button" |
10f2d63a | 5240 | if test "$no_cache" != 1; then |
1e6feb95 | 5241 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5242 | fi |
5243 | ||
1e6feb95 | 5244 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5245 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5246 | else |
698dcdb6 | 5247 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5248 | fi |
698dcdb6 | 5249 | |
10f2d63a | 5250 | |
698dcdb6 | 5251 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
4f14bcd8 | 5252 | echo "configure:5253: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5253 | no_cache=0 |
5254 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5255 | if test "${enable_bmpbutton+set}" = set; then | |
5256 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5257 | |
10f2d63a VZ |
5258 | if test "$enableval" = yes; then |
5259 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5260 | else | |
5261 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5262 | fi | |
698dcdb6 | 5263 | |
10f2d63a | 5264 | else |
698dcdb6 | 5265 | |
10f2d63a VZ |
5266 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5267 | if test "x$LINE" != x ; then | |
5268 | eval "DEFAULT_$LINE" | |
5269 | else | |
5270 | no_cache=1 | |
5271 | fi | |
5272 | ||
5273 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5274 | |
5275 | fi | |
10f2d63a VZ |
5276 | |
5277 | ||
5278 | eval "$ac_cv_use_bmpbutton" | |
5279 | if test "$no_cache" != 1; then | |
5280 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5281 | fi | |
5282 | ||
5283 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5284 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5285 | else |
698dcdb6 | 5286 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5287 | fi |
698dcdb6 | 5288 | |
10f2d63a | 5289 | |
1e6feb95 | 5290 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
4f14bcd8 | 5291 | echo "configure:5292: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5292 | no_cache=0 |
5293 | # Check whether --enable-calendar or --disable-calendar was given. | |
5294 | if test "${enable_calendar+set}" = set; then | |
5295 | enableval="$enable_calendar" | |
5296 | ||
5297 | if test "$enableval" = yes; then | |
5298 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5299 | else | |
5300 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5301 | fi | |
5302 | ||
5303 | else | |
5304 | ||
5305 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5306 | if test "x$LINE" != x ; then | |
5307 | eval "DEFAULT_$LINE" | |
5308 | else | |
5309 | no_cache=1 | |
5310 | fi | |
5311 | ||
5312 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5313 | ||
5314 | fi | |
5315 | ||
5316 | ||
5317 | eval "$ac_cv_use_calendar" | |
5318 | if test "$no_cache" != 1; then | |
5319 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5320 | fi | |
5321 | ||
5322 | if test "$wxUSE_CALCTRL" = yes; then | |
5323 | echo "$ac_t""yes" 1>&6 | |
5324 | else | |
5325 | echo "$ac_t""no" 1>&6 | |
5326 | fi | |
5327 | ||
5328 | ||
5329 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
4f14bcd8 | 5330 | echo "configure:5331: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5331 | no_cache=0 |
5332 | # Check whether --enable-caret or --disable-caret was given. | |
5333 | if test "${enable_caret+set}" = set; then | |
5334 | enableval="$enable_caret" | |
5335 | ||
5336 | if test "$enableval" = yes; then | |
5337 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5338 | else | |
5339 | ac_cv_use_caret='wxUSE_CARET=no' | |
5340 | fi | |
5341 | ||
5342 | else | |
5343 | ||
5344 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5352 | ||
5353 | fi | |
5354 | ||
5355 | ||
5356 | eval "$ac_cv_use_caret" | |
5357 | if test "$no_cache" != 1; then | |
5358 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5359 | fi | |
5360 | ||
5361 | if test "$wxUSE_CARET" = yes; then | |
5362 | echo "$ac_t""yes" 1>&6 | |
5363 | else | |
5364 | echo "$ac_t""no" 1>&6 | |
5365 | fi | |
5366 | ||
5367 | ||
698dcdb6 | 5368 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
4f14bcd8 | 5369 | echo "configure:5370: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5370 | no_cache=0 |
5371 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5372 | if test "${enable_checkbox+set}" = set; then | |
5373 | enableval="$enable_checkbox" | |
698dcdb6 | 5374 | |
10f2d63a VZ |
5375 | if test "$enableval" = yes; then |
5376 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5377 | else | |
5378 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5379 | fi | |
698dcdb6 | 5380 | |
10f2d63a | 5381 | else |
698dcdb6 | 5382 | |
10f2d63a VZ |
5383 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5384 | if test "x$LINE" != x ; then | |
5385 | eval "DEFAULT_$LINE" | |
5386 | else | |
5387 | no_cache=1 | |
5388 | fi | |
5389 | ||
5390 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5391 | |
5392 | fi | |
10f2d63a VZ |
5393 | |
5394 | ||
5395 | eval "$ac_cv_use_checkbox" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5401 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5402 | else |
698dcdb6 | 5403 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5404 | fi |
698dcdb6 | 5405 | |
10f2d63a | 5406 | |
698dcdb6 | 5407 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
4f14bcd8 | 5408 | echo "configure:5409: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5409 | no_cache=0 |
5410 | # Check whether --enable-checklst or --disable-checklst was given. | |
5411 | if test "${enable_checklst+set}" = set; then | |
5412 | enableval="$enable_checklst" | |
698dcdb6 | 5413 | |
10f2d63a VZ |
5414 | if test "$enableval" = yes; then |
5415 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5416 | else | |
5417 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5418 | fi | |
698dcdb6 | 5419 | |
10f2d63a | 5420 | else |
698dcdb6 | 5421 | |
10f2d63a VZ |
5422 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5423 | if test "x$LINE" != x ; then | |
5424 | eval "DEFAULT_$LINE" | |
5425 | else | |
5426 | no_cache=1 | |
5427 | fi | |
5428 | ||
5429 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5430 | |
5431 | fi | |
10f2d63a VZ |
5432 | |
5433 | ||
5434 | eval "$ac_cv_use_checklst" | |
5435 | if test "$no_cache" != 1; then | |
5436 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5437 | fi | |
5438 | ||
5439 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5440 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5441 | else |
698dcdb6 | 5442 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5443 | fi |
698dcdb6 | 5444 | |
10f2d63a | 5445 | |
698dcdb6 | 5446 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
4f14bcd8 | 5447 | echo "configure:5448: checking for --enable-choice" >&5 |
10f2d63a VZ |
5448 | no_cache=0 |
5449 | # Check whether --enable-choice or --disable-choice was given. | |
5450 | if test "${enable_choice+set}" = set; then | |
5451 | enableval="$enable_choice" | |
698dcdb6 | 5452 | |
10f2d63a VZ |
5453 | if test "$enableval" = yes; then |
5454 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5455 | else | |
5456 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5457 | fi | |
698dcdb6 | 5458 | |
10f2d63a | 5459 | else |
698dcdb6 | 5460 | |
10f2d63a VZ |
5461 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5469 | |
5470 | fi | |
10f2d63a VZ |
5471 | |
5472 | ||
5473 | eval "$ac_cv_use_choice" | |
5474 | if test "$no_cache" != 1; then | |
5475 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5476 | fi | |
5477 | ||
5478 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5479 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5480 | else |
698dcdb6 | 5481 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5482 | fi |
698dcdb6 | 5483 | |
10f2d63a | 5484 | |
698dcdb6 | 5485 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
4f14bcd8 | 5486 | echo "configure:5487: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5487 | no_cache=0 |
5488 | # Check whether --enable-combobox or --disable-combobox was given. | |
5489 | if test "${enable_combobox+set}" = set; then | |
5490 | enableval="$enable_combobox" | |
698dcdb6 | 5491 | |
10f2d63a VZ |
5492 | if test "$enableval" = yes; then |
5493 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5494 | else | |
5495 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5496 | fi | |
698dcdb6 | 5497 | |
10f2d63a | 5498 | else |
698dcdb6 | 5499 | |
10f2d63a VZ |
5500 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5501 | if test "x$LINE" != x ; then | |
5502 | eval "DEFAULT_$LINE" | |
5503 | else | |
5504 | no_cache=1 | |
5505 | fi | |
5506 | ||
5507 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5508 | |
5509 | fi | |
10f2d63a VZ |
5510 | |
5511 | ||
5512 | eval "$ac_cv_use_combobox" | |
5513 | if test "$no_cache" != 1; then | |
5514 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5515 | fi | |
5516 | ||
5517 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5518 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5519 | else |
698dcdb6 | 5520 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5521 | fi |
698dcdb6 | 5522 | |
10f2d63a | 5523 | |
698dcdb6 | 5524 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
4f14bcd8 | 5525 | echo "configure:5526: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5526 | no_cache=0 |
5527 | # Check whether --enable-gauge or --disable-gauge was given. | |
5528 | if test "${enable_gauge+set}" = set; then | |
5529 | enableval="$enable_gauge" | |
698dcdb6 | 5530 | |
10f2d63a VZ |
5531 | if test "$enableval" = yes; then |
5532 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5533 | else | |
5534 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5535 | fi | |
698dcdb6 | 5536 | |
10f2d63a | 5537 | else |
698dcdb6 | 5538 | |
10f2d63a VZ |
5539 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5540 | if test "x$LINE" != x ; then | |
5541 | eval "DEFAULT_$LINE" | |
5542 | else | |
5543 | no_cache=1 | |
5544 | fi | |
5545 | ||
5546 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5547 | |
5548 | fi | |
10f2d63a VZ |
5549 | |
5550 | ||
5551 | eval "$ac_cv_use_gauge" | |
5552 | if test "$no_cache" != 1; then | |
5553 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5554 | fi | |
5555 | ||
5556 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5557 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5558 | else |
698dcdb6 | 5559 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5560 | fi |
698dcdb6 | 5561 | |
10f2d63a | 5562 | |
698dcdb6 | 5563 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
4f14bcd8 | 5564 | echo "configure:5565: checking for --enable-grid" >&5 |
10f2d63a VZ |
5565 | no_cache=0 |
5566 | # Check whether --enable-grid or --disable-grid was given. | |
5567 | if test "${enable_grid+set}" = set; then | |
5568 | enableval="$enable_grid" | |
698dcdb6 | 5569 | |
10f2d63a VZ |
5570 | if test "$enableval" = yes; then |
5571 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5572 | else | |
5573 | ac_cv_use_grid='wxUSE_GRID=no' | |
5574 | fi | |
698dcdb6 | 5575 | |
10f2d63a | 5576 | else |
698dcdb6 | 5577 | |
10f2d63a VZ |
5578 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5579 | if test "x$LINE" != x ; then | |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
5585 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5586 | |
5587 | fi | |
10f2d63a VZ |
5588 | |
5589 | ||
5590 | eval "$ac_cv_use_grid" | |
5591 | if test "$no_cache" != 1; then | |
5592 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5593 | fi | |
5594 | ||
5595 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5596 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5597 | else |
698dcdb6 | 5598 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5599 | fi |
698dcdb6 | 5600 | |
10f2d63a | 5601 | |
698dcdb6 | 5602 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
4f14bcd8 | 5603 | echo "configure:5604: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5604 | no_cache=0 |
5605 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5606 | if test "${enable_newgrid+set}" = set; then | |
5607 | enableval="$enable_newgrid" | |
698dcdb6 | 5608 | |
10f2d63a VZ |
5609 | if test "$enableval" = yes; then |
5610 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5611 | else | |
5612 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5613 | fi | |
698dcdb6 | 5614 | |
10f2d63a | 5615 | else |
698dcdb6 | 5616 | |
10f2d63a VZ |
5617 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5618 | if test "x$LINE" != x ; then | |
5619 | eval "DEFAULT_$LINE" | |
5620 | else | |
5621 | no_cache=1 | |
5622 | fi | |
5623 | ||
5624 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5625 | |
5626 | fi | |
10f2d63a VZ |
5627 | |
5628 | ||
5629 | eval "$ac_cv_use_newgrid" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5635 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5636 | else |
698dcdb6 | 5637 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5638 | fi |
698dcdb6 | 5639 | |
10f2d63a | 5640 | |
698dcdb6 | 5641 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
4f14bcd8 | 5642 | echo "configure:5643: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5643 | no_cache=0 |
5644 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5645 | if test "${enable_imaglist+set}" = set; then | |
5646 | enableval="$enable_imaglist" | |
698dcdb6 | 5647 | |
10f2d63a VZ |
5648 | if test "$enableval" = yes; then |
5649 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5650 | else | |
5651 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5652 | fi | |
698dcdb6 | 5653 | |
10f2d63a | 5654 | else |
698dcdb6 | 5655 | |
10f2d63a VZ |
5656 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5657 | if test "x$LINE" != x ; then | |
5658 | eval "DEFAULT_$LINE" | |
5659 | else | |
5660 | no_cache=1 | |
5661 | fi | |
5662 | ||
5663 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5664 | |
5665 | fi | |
10f2d63a VZ |
5666 | |
5667 | ||
5668 | eval "$ac_cv_use_imaglist" | |
5669 | if test "$no_cache" != 1; then | |
5670 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5671 | fi | |
5672 | ||
5673 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5674 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5675 | else |
698dcdb6 | 5676 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5677 | fi |
698dcdb6 | 5678 | |
10f2d63a | 5679 | |
698dcdb6 | 5680 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
4f14bcd8 | 5681 | echo "configure:5682: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5682 | no_cache=0 |
5683 | # Check whether --enable-listbox or --disable-listbox was given. | |
5684 | if test "${enable_listbox+set}" = set; then | |
5685 | enableval="$enable_listbox" | |
698dcdb6 | 5686 | |
10f2d63a VZ |
5687 | if test "$enableval" = yes; then |
5688 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5689 | else | |
5690 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5691 | fi | |
698dcdb6 | 5692 | |
10f2d63a | 5693 | else |
698dcdb6 | 5694 | |
10f2d63a VZ |
5695 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5703 | |
5704 | fi | |
10f2d63a VZ |
5705 | |
5706 | ||
5707 | eval "$ac_cv_use_listbox" | |
5708 | if test "$no_cache" != 1; then | |
5709 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5710 | fi | |
5711 | ||
5712 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5713 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5714 | else |
698dcdb6 | 5715 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5716 | fi |
698dcdb6 | 5717 | |
10f2d63a | 5718 | |
698dcdb6 | 5719 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
4f14bcd8 | 5720 | echo "configure:5721: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5721 | no_cache=0 |
5722 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5723 | if test "${enable_listctrl+set}" = set; then | |
5724 | enableval="$enable_listctrl" | |
698dcdb6 | 5725 | |
10f2d63a VZ |
5726 | if test "$enableval" = yes; then |
5727 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5728 | else | |
5729 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5730 | fi | |
698dcdb6 | 5731 | |
10f2d63a | 5732 | else |
698dcdb6 | 5733 | |
10f2d63a VZ |
5734 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5735 | if test "x$LINE" != x ; then | |
5736 | eval "DEFAULT_$LINE" | |
5737 | else | |
5738 | no_cache=1 | |
5739 | fi | |
5740 | ||
5741 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5742 | |
5743 | fi | |
10f2d63a VZ |
5744 | |
5745 | ||
5746 | eval "$ac_cv_use_listctrl" | |
5747 | if test "$no_cache" != 1; then | |
5748 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5749 | fi | |
5750 | ||
5751 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5752 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5753 | else |
698dcdb6 | 5754 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5755 | fi |
698dcdb6 | 5756 | |
10f2d63a | 5757 | |
698dcdb6 | 5758 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
4f14bcd8 | 5759 | echo "configure:5760: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5760 | no_cache=0 |
5761 | # Check whether --enable-notebook or --disable-notebook was given. | |
5762 | if test "${enable_notebook+set}" = set; then | |
5763 | enableval="$enable_notebook" | |
698dcdb6 | 5764 | |
10f2d63a VZ |
5765 | if test "$enableval" = yes; then |
5766 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5767 | else | |
5768 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5769 | fi | |
698dcdb6 | 5770 | |
10f2d63a | 5771 | else |
698dcdb6 | 5772 | |
10f2d63a VZ |
5773 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5781 | |
5782 | fi | |
10f2d63a VZ |
5783 | |
5784 | ||
5785 | eval "$ac_cv_use_notebook" | |
5786 | if test "$no_cache" != 1; then | |
5787 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5788 | fi | |
5789 | ||
5790 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5791 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5792 | else |
698dcdb6 | 5793 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5794 | fi |
698dcdb6 | 5795 | |
10f2d63a | 5796 | |
24176f2c | 5797 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
4f14bcd8 | 5798 | echo "configure:5799: checking for --enable-propsheet" >&5 |
24176f2c GD |
5799 | no_cache=0 |
5800 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5801 | if test "${enable_propsheet+set}" = set; then | |
5802 | enableval="$enable_propsheet" | |
5803 | ||
5804 | if test "$enableval" = yes; then | |
5805 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5806 | else | |
5807 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5808 | fi | |
5809 | ||
5810 | else | |
5811 | ||
5812 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5813 | if test "x$LINE" != x ; then | |
5814 | eval "DEFAULT_$LINE" | |
5815 | else | |
5816 | no_cache=1 | |
5817 | fi | |
5818 | ||
5819 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5820 | ||
5821 | fi | |
5822 | ||
5823 | ||
5824 | eval "$ac_cv_use_propsheet" | |
5825 | if test "$no_cache" != 1; then | |
5826 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5827 | fi | |
5828 | ||
5829 | if test "$wxUSE_PROPSHEET" = yes; then | |
5830 | echo "$ac_t""yes" 1>&6 | |
5831 | else | |
5832 | echo "$ac_t""no" 1>&6 | |
5833 | fi | |
5834 | ||
5835 | ||
698dcdb6 | 5836 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
4f14bcd8 | 5837 | echo "configure:5838: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5838 | no_cache=0 |
5839 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5840 | if test "${enable_radiobox+set}" = set; then | |
5841 | enableval="$enable_radiobox" | |
698dcdb6 | 5842 | |
10f2d63a VZ |
5843 | if test "$enableval" = yes; then |
5844 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5845 | else | |
5846 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5847 | fi | |
698dcdb6 | 5848 | |
10f2d63a | 5849 | else |
698dcdb6 | 5850 | |
10f2d63a VZ |
5851 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5852 | if test "x$LINE" != x ; then | |
5853 | eval "DEFAULT_$LINE" | |
5854 | else | |
5855 | no_cache=1 | |
5856 | fi | |
5857 | ||
5858 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5859 | |
5860 | fi | |
10f2d63a VZ |
5861 | |
5862 | ||
5863 | eval "$ac_cv_use_radiobox" | |
5864 | if test "$no_cache" != 1; then | |
5865 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5866 | fi | |
5867 | ||
5868 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5869 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5870 | else |
698dcdb6 | 5871 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5872 | fi |
698dcdb6 | 5873 | |
10f2d63a | 5874 | |
698dcdb6 | 5875 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
4f14bcd8 | 5876 | echo "configure:5877: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5877 | no_cache=0 |
5878 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5879 | if test "${enable_radiobtn+set}" = set; then | |
5880 | enableval="$enable_radiobtn" | |
698dcdb6 | 5881 | |
10f2d63a VZ |
5882 | if test "$enableval" = yes; then |
5883 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5884 | else | |
5885 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5886 | fi | |
698dcdb6 | 5887 | |
10f2d63a | 5888 | else |
698dcdb6 | 5889 | |
10f2d63a VZ |
5890 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5891 | if test "x$LINE" != x ; then | |
5892 | eval "DEFAULT_$LINE" | |
5893 | else | |
5894 | no_cache=1 | |
5895 | fi | |
5896 | ||
5897 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5898 | |
5899 | fi | |
10f2d63a VZ |
5900 | |
5901 | ||
5902 | eval "$ac_cv_use_radiobtn" | |
5903 | if test "$no_cache" != 1; then | |
5904 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5905 | fi | |
5906 | ||
5907 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5908 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5909 | else |
698dcdb6 | 5910 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5911 | fi |
698dcdb6 | 5912 | |
10f2d63a | 5913 | |
698dcdb6 | 5914 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
4f14bcd8 | 5915 | echo "configure:5916: checking for --enable-sash" >&5 |
10f2d63a VZ |
5916 | no_cache=0 |
5917 | # Check whether --enable-sash or --disable-sash was given. | |
5918 | if test "${enable_sash+set}" = set; then | |
5919 | enableval="$enable_sash" | |
698dcdb6 | 5920 | |
10f2d63a VZ |
5921 | if test "$enableval" = yes; then |
5922 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5923 | else | |
5924 | ac_cv_use_sash='wxUSE_SASH=no' | |
5925 | fi | |
698dcdb6 | 5926 | |
10f2d63a | 5927 | else |
698dcdb6 | 5928 | |
10f2d63a VZ |
5929 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5930 | if test "x$LINE" != x ; then | |
5931 | eval "DEFAULT_$LINE" | |
5932 | else | |
5933 | no_cache=1 | |
5934 | fi | |
5935 | ||
5936 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5937 | |
5938 | fi | |
10f2d63a VZ |
5939 | |
5940 | ||
5941 | eval "$ac_cv_use_sash" | |
5942 | if test "$no_cache" != 1; then | |
5943 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5944 | fi | |
5945 | ||
5946 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5947 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5948 | else |
698dcdb6 | 5949 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5950 | fi |
698dcdb6 | 5951 | |
10f2d63a | 5952 | |
698dcdb6 | 5953 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
4f14bcd8 | 5954 | echo "configure:5955: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5955 | no_cache=0 |
5956 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5957 | if test "${enable_scrollbar+set}" = set; then | |
5958 | enableval="$enable_scrollbar" | |
698dcdb6 | 5959 | |
10f2d63a VZ |
5960 | if test "$enableval" = yes; then |
5961 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5962 | else | |
5963 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5964 | fi | |
698dcdb6 | 5965 | |
10f2d63a | 5966 | else |
698dcdb6 | 5967 | |
10f2d63a VZ |
5968 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5969 | if test "x$LINE" != x ; then | |
5970 | eval "DEFAULT_$LINE" | |
5971 | else | |
5972 | no_cache=1 | |
5973 | fi | |
5974 | ||
5975 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5976 | |
5977 | fi | |
10f2d63a VZ |
5978 | |
5979 | ||
5980 | eval "$ac_cv_use_scrollbar" | |
5981 | if test "$no_cache" != 1; then | |
5982 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5983 | fi | |
5984 | ||
5985 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5986 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5987 | else |
698dcdb6 | 5988 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5989 | fi |
698dcdb6 | 5990 | |
10f2d63a | 5991 | |
698dcdb6 | 5992 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
4f14bcd8 | 5993 | echo "configure:5994: checking for --enable-slider" >&5 |
10f2d63a VZ |
5994 | no_cache=0 |
5995 | # Check whether --enable-slider or --disable-slider was given. | |
5996 | if test "${enable_slider+set}" = set; then | |
5997 | enableval="$enable_slider" | |
698dcdb6 | 5998 | |
10f2d63a VZ |
5999 | if test "$enableval" = yes; then |
6000 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6001 | else | |
6002 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6003 | fi | |
698dcdb6 | 6004 | |
10f2d63a | 6005 | else |
698dcdb6 | 6006 | |
10f2d63a VZ |
6007 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6008 | if test "x$LINE" != x ; then | |
6009 | eval "DEFAULT_$LINE" | |
6010 | else | |
6011 | no_cache=1 | |
6012 | fi | |
6013 | ||
6014 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6015 | |
6016 | fi | |
10f2d63a VZ |
6017 | |
6018 | ||
6019 | eval "$ac_cv_use_slider" | |
6020 | if test "$no_cache" != 1; then | |
6021 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6022 | fi | |
6023 | ||
6024 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6025 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6026 | else |
698dcdb6 | 6027 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6028 | fi |
698dcdb6 | 6029 | |
10f2d63a | 6030 | |
698dcdb6 | 6031 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
4f14bcd8 | 6032 | echo "configure:6033: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6033 | no_cache=0 |
6034 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6035 | if test "${enable_spinbtn+set}" = set; then | |
6036 | enableval="$enable_spinbtn" | |
698dcdb6 | 6037 | |
10f2d63a VZ |
6038 | if test "$enableval" = yes; then |
6039 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6040 | else | |
6041 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6042 | fi | |
698dcdb6 | 6043 | |
10f2d63a | 6044 | else |
698dcdb6 | 6045 | |
10f2d63a VZ |
6046 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6047 | if test "x$LINE" != x ; then | |
6048 | eval "DEFAULT_$LINE" | |
6049 | else | |
6050 | no_cache=1 | |
6051 | fi | |
6052 | ||
6053 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6054 | |
6055 | fi | |
10f2d63a VZ |
6056 | |
6057 | ||
6058 | eval "$ac_cv_use_spinbtn" | |
6059 | if test "$no_cache" != 1; then | |
6060 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6061 | fi | |
6062 | ||
6063 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6064 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6065 | else |
698dcdb6 | 6066 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6067 | fi |
698dcdb6 | 6068 | |
10f2d63a | 6069 | |
698dcdb6 | 6070 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
4f14bcd8 | 6071 | echo "configure:6072: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6072 | no_cache=0 |
6073 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6074 | if test "${enable_spinctrl+set}" = set; then | |
6075 | enableval="$enable_spinctrl" | |
698dcdb6 | 6076 | |
56cfaa52 RR |
6077 | if test "$enableval" = yes; then |
6078 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6079 | else | |
6080 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6081 | fi | |
698dcdb6 | 6082 | |
56cfaa52 | 6083 | else |
698dcdb6 | 6084 | |
56cfaa52 RR |
6085 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6086 | if test "x$LINE" != x ; then | |
6087 | eval "DEFAULT_$LINE" | |
6088 | else | |
6089 | no_cache=1 | |
6090 | fi | |
6091 | ||
6092 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6093 | |
6094 | fi | |
56cfaa52 RR |
6095 | |
6096 | ||
6097 | eval "$ac_cv_use_spinctrl" | |
6098 | if test "$no_cache" != 1; then | |
6099 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6100 | fi | |
6101 | ||
6102 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6103 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6104 | else |
698dcdb6 | 6105 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6106 | fi |
698dcdb6 | 6107 | |
56cfaa52 | 6108 | |
698dcdb6 | 6109 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
4f14bcd8 | 6110 | echo "configure:6111: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6111 | no_cache=0 |
6112 | # Check whether --enable-splitter or --disable-splitter was given. | |
6113 | if test "${enable_splitter+set}" = set; then | |
6114 | enableval="$enable_splitter" | |
698dcdb6 | 6115 | |
10f2d63a VZ |
6116 | if test "$enableval" = yes; then |
6117 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6118 | else | |
6119 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6120 | fi | |
698dcdb6 | 6121 | |
10f2d63a | 6122 | else |
698dcdb6 | 6123 | |
10f2d63a VZ |
6124 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6125 | if test "x$LINE" != x ; then | |
6126 | eval "DEFAULT_$LINE" | |
6127 | else | |
6128 | no_cache=1 | |
6129 | fi | |
6130 | ||
6131 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6132 | |
6133 | fi | |
10f2d63a VZ |
6134 | |
6135 | ||
6136 | eval "$ac_cv_use_splitter" | |
6137 | if test "$no_cache" != 1; then | |
6138 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6139 | fi | |
6140 | ||
6141 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6142 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6143 | else |
698dcdb6 | 6144 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6145 | fi |
698dcdb6 | 6146 | |
10f2d63a | 6147 | |
698dcdb6 | 6148 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
4f14bcd8 | 6149 | echo "configure:6150: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6150 | no_cache=0 |
6151 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6152 | if test "${enable_statbmp+set}" = set; then | |
6153 | enableval="$enable_statbmp" | |
698dcdb6 | 6154 | |
10f2d63a VZ |
6155 | if test "$enableval" = yes; then |
6156 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6157 | else | |
6158 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6159 | fi | |
698dcdb6 | 6160 | |
10f2d63a | 6161 | else |
698dcdb6 | 6162 | |
10f2d63a VZ |
6163 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6164 | if test "x$LINE" != x ; then | |
6165 | eval "DEFAULT_$LINE" | |
6166 | else | |
6167 | no_cache=1 | |
6168 | fi | |
6169 | ||
6170 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6171 | |
6172 | fi | |
10f2d63a VZ |
6173 | |
6174 | ||
6175 | eval "$ac_cv_use_statbmp" | |
6176 | if test "$no_cache" != 1; then | |
6177 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6178 | fi | |
6179 | ||
6180 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6181 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6182 | else |
698dcdb6 | 6183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6184 | fi |
698dcdb6 | 6185 | |
10f2d63a | 6186 | |
698dcdb6 | 6187 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
4f14bcd8 | 6188 | echo "configure:6189: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6189 | no_cache=0 |
6190 | # Check whether --enable-statbox or --disable-statbox was given. | |
6191 | if test "${enable_statbox+set}" = set; then | |
6192 | enableval="$enable_statbox" | |
698dcdb6 | 6193 | |
10f2d63a VZ |
6194 | if test "$enableval" = yes; then |
6195 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6196 | else | |
6197 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6198 | fi | |
698dcdb6 | 6199 | |
10f2d63a | 6200 | else |
698dcdb6 | 6201 | |
10f2d63a VZ |
6202 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6203 | if test "x$LINE" != x ; then | |
6204 | eval "DEFAULT_$LINE" | |
6205 | else | |
6206 | no_cache=1 | |
6207 | fi | |
6208 | ||
6209 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6210 | |
6211 | fi | |
10f2d63a VZ |
6212 | |
6213 | ||
6214 | eval "$ac_cv_use_statbox" | |
6215 | if test "$no_cache" != 1; then | |
6216 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6217 | fi | |
6218 | ||
6219 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6220 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6221 | else |
698dcdb6 | 6222 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6223 | fi |
698dcdb6 | 6224 | |
10f2d63a | 6225 | |
698dcdb6 | 6226 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
4f14bcd8 | 6227 | echo "configure:6228: checking for --enable-statline" >&5 |
10f2d63a VZ |
6228 | no_cache=0 |
6229 | # Check whether --enable-statline or --disable-statline was given. | |
6230 | if test "${enable_statline+set}" = set; then | |
6231 | enableval="$enable_statline" | |
698dcdb6 | 6232 | |
10f2d63a VZ |
6233 | if test "$enableval" = yes; then |
6234 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6235 | else | |
6236 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6237 | fi | |
698dcdb6 | 6238 | |
10f2d63a | 6239 | else |
698dcdb6 | 6240 | |
10f2d63a VZ |
6241 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6249 | |
6250 | fi | |
10f2d63a VZ |
6251 | |
6252 | ||
6253 | eval "$ac_cv_use_statline" | |
6254 | if test "$no_cache" != 1; then | |
6255 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6256 | fi | |
6257 | ||
6258 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6260 | else |
698dcdb6 | 6261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6262 | fi |
698dcdb6 | 6263 | |
10f2d63a | 6264 | |
1e6feb95 | 6265 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
4f14bcd8 | 6266 | echo "configure:6267: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6267 | no_cache=0 |
6268 | # Check whether --enable-stattext or --disable-stattext was given. | |
6269 | if test "${enable_stattext+set}" = set; then | |
6270 | enableval="$enable_stattext" | |
6271 | ||
6272 | if test "$enableval" = yes; then | |
6273 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6274 | else | |
6275 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6276 | fi | |
6277 | ||
6278 | else | |
6279 | ||
6280 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6281 | if test "x$LINE" != x ; then | |
6282 | eval "DEFAULT_$LINE" | |
6283 | else | |
6284 | no_cache=1 | |
6285 | fi | |
6286 | ||
6287 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6288 | ||
6289 | fi | |
6290 | ||
6291 | ||
6292 | eval "$ac_cv_use_stattext" | |
6293 | if test "$no_cache" != 1; then | |
6294 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6295 | fi | |
6296 | ||
6297 | if test "$wxUSE_STATTEXT" = yes; then | |
6298 | echo "$ac_t""yes" 1>&6 | |
6299 | else | |
6300 | echo "$ac_t""no" 1>&6 | |
6301 | fi | |
6302 | ||
6303 | ||
698dcdb6 | 6304 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
4f14bcd8 | 6305 | echo "configure:6306: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6306 | no_cache=0 |
6307 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6308 | if test "${enable_statusbar+set}" = set; then | |
6309 | enableval="$enable_statusbar" | |
698dcdb6 | 6310 | |
10f2d63a VZ |
6311 | if test "$enableval" = yes; then |
6312 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6313 | else | |
6314 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6315 | fi | |
698dcdb6 | 6316 | |
10f2d63a | 6317 | else |
698dcdb6 | 6318 | |
10f2d63a VZ |
6319 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6320 | if test "x$LINE" != x ; then | |
6321 | eval "DEFAULT_$LINE" | |
6322 | else | |
6323 | no_cache=1 | |
6324 | fi | |
6325 | ||
6326 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6327 | |
6328 | fi | |
10f2d63a VZ |
6329 | |
6330 | ||
6331 | eval "$ac_cv_use_statusbar" | |
6332 | if test "$no_cache" != 1; then | |
6333 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6334 | fi | |
6335 | ||
6336 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6338 | else |
698dcdb6 | 6339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6340 | fi |
698dcdb6 | 6341 | |
10f2d63a | 6342 | |
698dcdb6 | 6343 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
4f14bcd8 | 6344 | echo "configure:6345: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6345 | no_cache=0 |
6346 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6347 | if test "${enable_tabdialog+set}" = set; then | |
6348 | enableval="$enable_tabdialog" | |
698dcdb6 | 6349 | |
10f2d63a VZ |
6350 | if test "$enableval" = yes; then |
6351 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6352 | else | |
6353 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6354 | fi | |
698dcdb6 | 6355 | |
10f2d63a | 6356 | else |
698dcdb6 | 6357 | |
10f2d63a VZ |
6358 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6359 | if test "x$LINE" != x ; then | |
6360 | eval "DEFAULT_$LINE" | |
6361 | else | |
6362 | no_cache=1 | |
6363 | fi | |
6364 | ||
6365 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6366 | |
6367 | fi | |
10f2d63a VZ |
6368 | |
6369 | ||
6370 | eval "$ac_cv_use_tabdialog" | |
6371 | if test "$no_cache" != 1; then | |
6372 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6373 | fi | |
6374 | ||
6375 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6376 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6377 | else |
698dcdb6 | 6378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6379 | fi |
698dcdb6 | 6380 | |
10f2d63a | 6381 | |
1e6feb95 | 6382 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
4f14bcd8 | 6383 | echo "configure:6384: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6384 | no_cache=0 |
6385 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6386 | if test "${enable_textctrl+set}" = set; then | |
6387 | enableval="$enable_textctrl" | |
6388 | ||
6389 | if test "$enableval" = yes; then | |
6390 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6391 | else | |
6392 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6393 | fi | |
6394 | ||
6395 | else | |
6396 | ||
6397 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6398 | if test "x$LINE" != x ; then | |
6399 | eval "DEFAULT_$LINE" | |
6400 | else | |
6401 | no_cache=1 | |
6402 | fi | |
6403 | ||
6404 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6405 | ||
6406 | fi | |
6407 | ||
6408 | ||
6409 | eval "$ac_cv_use_textctrl" | |
6410 | if test "$no_cache" != 1; then | |
6411 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6412 | fi | |
6413 | ||
6414 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6415 | echo "$ac_t""yes" 1>&6 | |
6416 | else | |
6417 | echo "$ac_t""no" 1>&6 | |
6418 | fi | |
6419 | ||
6420 | ||
698dcdb6 | 6421 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
4f14bcd8 | 6422 | echo "configure:6423: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6423 | no_cache=0 |
6424 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6425 | if test "${enable_togglebtn+set}" = set; then | |
6426 | enableval="$enable_togglebtn" | |
698dcdb6 | 6427 | |
1db8dc4a VZ |
6428 | if test "$enableval" = yes; then |
6429 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6430 | else | |
6431 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6432 | fi | |
698dcdb6 | 6433 | |
1db8dc4a | 6434 | else |
698dcdb6 | 6435 | |
1db8dc4a VZ |
6436 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6437 | if test "x$LINE" != x ; then | |
6438 | eval "DEFAULT_$LINE" | |
6439 | else | |
6440 | no_cache=1 | |
6441 | fi | |
6442 | ||
6443 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6444 | |
6445 | fi | |
1db8dc4a VZ |
6446 | |
6447 | ||
6448 | eval "$ac_cv_use_togglebtn" | |
6449 | if test "$no_cache" != 1; then | |
6450 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6451 | fi | |
6452 | ||
6453 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6454 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6455 | else |
698dcdb6 | 6456 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6457 | fi |
698dcdb6 | 6458 | |
1db8dc4a | 6459 | |
698dcdb6 | 6460 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
4f14bcd8 | 6461 | echo "configure:6462: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6462 | no_cache=0 |
6463 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6464 | if test "${enable_toolbar+set}" = set; then | |
6465 | enableval="$enable_toolbar" | |
698dcdb6 | 6466 | |
10f2d63a VZ |
6467 | if test "$enableval" = yes; then |
6468 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6469 | else | |
6470 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6471 | fi | |
698dcdb6 | 6472 | |
10f2d63a | 6473 | else |
698dcdb6 | 6474 | |
10f2d63a VZ |
6475 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6483 | |
6484 | fi | |
10f2d63a VZ |
6485 | |
6486 | ||
6487 | eval "$ac_cv_use_toolbar" | |
6488 | if test "$no_cache" != 1; then | |
6489 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6490 | fi | |
6491 | ||
6492 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6494 | else |
698dcdb6 | 6495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6496 | fi |
698dcdb6 | 6497 | |
10f2d63a | 6498 | |
698dcdb6 | 6499 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
4f14bcd8 | 6500 | echo "configure:6501: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6501 | no_cache=0 |
6502 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6503 | if test "${enable_tbarnative+set}" = set; then | |
6504 | enableval="$enable_tbarnative" | |
698dcdb6 | 6505 | |
360d6699 VZ |
6506 | if test "$enableval" = yes; then |
6507 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6508 | else | |
6509 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6510 | fi | |
698dcdb6 | 6511 | |
360d6699 | 6512 | else |
698dcdb6 | 6513 | |
360d6699 VZ |
6514 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6515 | if test "x$LINE" != x ; then | |
6516 | eval "DEFAULT_$LINE" | |
6517 | else | |
6518 | no_cache=1 | |
6519 | fi | |
6520 | ||
6521 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6522 | |
6523 | fi | |
360d6699 VZ |
6524 | |
6525 | ||
6526 | eval "$ac_cv_use_tbarnative" | |
6527 | if test "$no_cache" != 1; then | |
6528 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6529 | fi | |
6530 | ||
6531 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6532 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6533 | else |
698dcdb6 | 6534 | echo "$ac_t""no" 1>&6 |
360d6699 | 6535 | fi |
698dcdb6 | 6536 | |
360d6699 | 6537 | |
698dcdb6 | 6538 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
4f14bcd8 | 6539 | echo "configure:6540: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6540 | no_cache=0 |
6541 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6542 | if test "${enable_tbarsmpl+set}" = set; then | |
6543 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6544 | |
360d6699 VZ |
6545 | if test "$enableval" = yes; then |
6546 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6547 | else | |
6548 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6549 | fi | |
698dcdb6 | 6550 | |
360d6699 | 6551 | else |
698dcdb6 | 6552 | |
360d6699 VZ |
6553 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6554 | if test "x$LINE" != x ; then | |
6555 | eval "DEFAULT_$LINE" | |
6556 | else | |
6557 | no_cache=1 | |
6558 | fi | |
6559 | ||
6560 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6561 | |
6562 | fi | |
360d6699 VZ |
6563 | |
6564 | ||
6565 | eval "$ac_cv_use_tbarsmpl" | |
6566 | if test "$no_cache" != 1; then | |
6567 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6568 | fi | |
6569 | ||
6570 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6571 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6572 | else |
698dcdb6 | 6573 | echo "$ac_t""no" 1>&6 |
360d6699 | 6574 | fi |
698dcdb6 | 6575 | |
360d6699 | 6576 | |
698dcdb6 | 6577 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
4f14bcd8 | 6578 | echo "configure:6579: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6579 | no_cache=0 |
6580 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6581 | if test "${enable_treectrl+set}" = set; then | |
6582 | enableval="$enable_treectrl" | |
698dcdb6 | 6583 | |
10f2d63a VZ |
6584 | if test "$enableval" = yes; then |
6585 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6586 | else | |
6587 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6588 | fi | |
698dcdb6 | 6589 | |
10f2d63a | 6590 | else |
698dcdb6 | 6591 | |
10f2d63a VZ |
6592 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6593 | if test "x$LINE" != x ; then | |
6594 | eval "DEFAULT_$LINE" | |
6595 | else | |
6596 | no_cache=1 | |
6597 | fi | |
6598 | ||
6599 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6600 | |
6601 | fi | |
10f2d63a VZ |
6602 | |
6603 | ||
1e6feb95 VZ |
6604 | eval "$ac_cv_use_treectrl" |
6605 | if test "$no_cache" != 1; then | |
6606 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6607 | fi | |
6608 | ||
6609 | if test "$wxUSE_TREECTRL" = yes; then | |
6610 | echo "$ac_t""yes" 1>&6 | |
6611 | else | |
6612 | echo "$ac_t""no" 1>&6 | |
6613 | fi | |
6614 | ||
6615 | ||
9f41d601 | 6616 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
4f14bcd8 | 6617 | echo "configure:6618: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6618 | no_cache=0 |
6619 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6620 | if test "${enable_popupwin+set}" = set; then | |
6621 | enableval="$enable_popupwin" | |
6622 | ||
6623 | if test "$enableval" = yes; then | |
6624 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6625 | else | |
6626 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6627 | fi | |
6628 | ||
6629 | else | |
6630 | ||
6631 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6632 | if test "x$LINE" != x ; then | |
6633 | eval "DEFAULT_$LINE" | |
6634 | else | |
6635 | no_cache=1 | |
6636 | fi | |
6637 | ||
6638 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6639 | ||
6640 | fi | |
6641 | ||
6642 | ||
6643 | eval "$ac_cv_use_popupwin" | |
6644 | if test "$no_cache" != 1; then | |
6645 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6646 | fi | |
6647 | ||
6648 | if test "$wxUSE_POPUPWIN" = yes; then | |
6649 | echo "$ac_t""yes" 1>&6 | |
6650 | else | |
6651 | echo "$ac_t""no" 1>&6 | |
6652 | fi | |
6653 | ||
6654 | ||
1e6feb95 VZ |
6655 | |
6656 | ||
6657 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
4f14bcd8 | 6658 | echo "configure:6659: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6659 | no_cache=0 |
6660 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6661 | if test "${enable_commondlg+set}" = set; then | |
6662 | enableval="$enable_commondlg" | |
6663 | ||
6664 | if test "$enableval" = yes; then | |
6665 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6666 | else | |
6667 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6668 | fi | |
6669 | ||
6670 | else | |
6671 | ||
6672 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6673 | if test "x$LINE" != x ; then | |
6674 | eval "DEFAULT_$LINE" | |
6675 | else | |
6676 | no_cache=1 | |
6677 | fi | |
6678 | ||
6679 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6680 | ||
6681 | fi | |
6682 | ||
6683 | ||
6684 | eval "$ac_cv_use_commondlg" | |
6685 | if test "$no_cache" != 1; then | |
6686 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6687 | fi | |
6688 | ||
6689 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6690 | echo "$ac_t""yes" 1>&6 | |
6691 | else | |
6692 | echo "$ac_t""no" 1>&6 | |
6693 | fi | |
6694 | ||
6695 | ||
6696 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
4f14bcd8 | 6697 | echo "configure:6698: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6698 | no_cache=0 |
6699 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6700 | if test "${enable_choicedlg+set}" = set; then | |
6701 | enableval="$enable_choicedlg" | |
6702 | ||
6703 | if test "$enableval" = yes; then | |
6704 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6705 | else | |
6706 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6707 | fi | |
6708 | ||
6709 | else | |
6710 | ||
6711 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6712 | if test "x$LINE" != x ; then | |
6713 | eval "DEFAULT_$LINE" | |
6714 | else | |
6715 | no_cache=1 | |
6716 | fi | |
6717 | ||
6718 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6719 | ||
6720 | fi | |
6721 | ||
6722 | ||
6723 | eval "$ac_cv_use_choicedlg" | |
6724 | if test "$no_cache" != 1; then | |
6725 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6726 | fi | |
6727 | ||
6728 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6729 | echo "$ac_t""yes" 1>&6 | |
6730 | else | |
6731 | echo "$ac_t""no" 1>&6 | |
6732 | fi | |
6733 | ||
6734 | ||
6735 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
4f14bcd8 | 6736 | echo "configure:6737: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6737 | no_cache=0 |
6738 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6739 | if test "${enable_coldlg+set}" = set; then | |
6740 | enableval="$enable_coldlg" | |
6741 | ||
6742 | if test "$enableval" = yes; then | |
6743 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6744 | else | |
6745 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6746 | fi | |
6747 | ||
6748 | else | |
6749 | ||
6750 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6751 | if test "x$LINE" != x ; then | |
6752 | eval "DEFAULT_$LINE" | |
6753 | else | |
6754 | no_cache=1 | |
6755 | fi | |
6756 | ||
6757 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6758 | ||
6759 | fi | |
6760 | ||
6761 | ||
6762 | eval "$ac_cv_use_coldlg" | |
6763 | if test "$no_cache" != 1; then | |
6764 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6765 | fi | |
6766 | ||
6767 | if test "$wxUSE_COLOURDLG" = yes; then | |
6768 | echo "$ac_t""yes" 1>&6 | |
6769 | else | |
6770 | echo "$ac_t""no" 1>&6 | |
6771 | fi | |
6772 | ||
6773 | ||
6774 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
4f14bcd8 | 6775 | echo "configure:6776: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6776 | no_cache=0 |
6777 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6778 | if test "${enable_filedlg+set}" = set; then | |
6779 | enableval="$enable_filedlg" | |
6780 | ||
6781 | if test "$enableval" = yes; then | |
6782 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6783 | else | |
6784 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6785 | fi | |
6786 | ||
6787 | else | |
6788 | ||
6789 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6790 | if test "x$LINE" != x ; then | |
6791 | eval "DEFAULT_$LINE" | |
6792 | else | |
6793 | no_cache=1 | |
6794 | fi | |
6795 | ||
6796 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6797 | ||
6798 | fi | |
6799 | ||
6800 | ||
6801 | eval "$ac_cv_use_filedlg" | |
6802 | if test "$no_cache" != 1; then | |
6803 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6804 | fi | |
6805 | ||
6806 | if test "$wxUSE_FILEDLG" = yes; then | |
6807 | echo "$ac_t""yes" 1>&6 | |
6808 | else | |
6809 | echo "$ac_t""no" 1>&6 | |
6810 | fi | |
6811 | ||
6812 | ||
8db37e06 | 6813 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
4f14bcd8 | 6814 | echo "configure:6815: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6815 | no_cache=0 |
6816 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6817 | if test "${enable_filedlg+set}" = set; then | |
6818 | enableval="$enable_filedlg" | |
6819 | ||
6820 | if test "$enableval" = yes; then | |
6821 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6822 | else | |
6823 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6824 | fi | |
6825 | ||
6826 | else | |
6827 | ||
6828 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6829 | if test "x$LINE" != x ; then | |
6830 | eval "DEFAULT_$LINE" | |
6831 | else | |
6832 | no_cache=1 | |
6833 | fi | |
6834 | ||
6835 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6836 | ||
6837 | fi | |
6838 | ||
6839 | ||
6840 | eval "$ac_cv_use_filedlg" | |
6841 | if test "$no_cache" != 1; then | |
6842 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6843 | fi | |
6844 | ||
6845 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6846 | echo "$ac_t""yes" 1>&6 | |
6847 | else | |
6848 | echo "$ac_t""no" 1>&6 | |
6849 | fi | |
6850 | ||
6851 | ||
1e6feb95 | 6852 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
4f14bcd8 | 6853 | echo "configure:6854: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6854 | no_cache=0 |
6855 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6856 | if test "${enable_fontdlg+set}" = set; then | |
6857 | enableval="$enable_fontdlg" | |
6858 | ||
6859 | if test "$enableval" = yes; then | |
6860 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6861 | else | |
6862 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6863 | fi | |
6864 | ||
6865 | else | |
6866 | ||
6867 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6868 | if test "x$LINE" != x ; then | |
6869 | eval "DEFAULT_$LINE" | |
6870 | else | |
6871 | no_cache=1 | |
6872 | fi | |
6873 | ||
6874 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6875 | ||
6876 | fi | |
6877 | ||
6878 | ||
6879 | eval "$ac_cv_use_fontdlg" | |
6880 | if test "$no_cache" != 1; then | |
6881 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6882 | fi | |
6883 | ||
6884 | if test "$wxUSE_FONTDLG" = yes; then | |
6885 | echo "$ac_t""yes" 1>&6 | |
6886 | else | |
6887 | echo "$ac_t""no" 1>&6 | |
6888 | fi | |
6889 | ||
6890 | ||
6891 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
4f14bcd8 | 6892 | echo "configure:6893: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6893 | no_cache=0 |
6894 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6895 | if test "${enable_dirdlg+set}" = set; then | |
6896 | enableval="$enable_dirdlg" | |
6897 | ||
6898 | if test "$enableval" = yes; then | |
6899 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6900 | else | |
6901 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6902 | fi | |
6903 | ||
6904 | else | |
6905 | ||
6906 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6907 | if test "x$LINE" != x ; then | |
6908 | eval "DEFAULT_$LINE" | |
6909 | else | |
6910 | no_cache=1 | |
6911 | fi | |
6912 | ||
6913 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6914 | ||
6915 | fi | |
6916 | ||
6917 | ||
6918 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6919 | if test "$no_cache" != 1; then |
1e6feb95 | 6920 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6921 | fi |
6922 | ||
1e6feb95 | 6923 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6924 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6925 | else |
698dcdb6 | 6926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6927 | fi |
698dcdb6 VZ |
6928 | |
6929 | ||
1e6feb95 | 6930 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
4f14bcd8 | 6931 | echo "configure:6932: checking for --enable-msgdlg" >&5 |
10f2d63a | 6932 | no_cache=0 |
1e6feb95 VZ |
6933 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6934 | if test "${enable_msgdlg+set}" = set; then | |
6935 | enableval="$enable_msgdlg" | |
698dcdb6 | 6936 | |
10f2d63a | 6937 | if test "$enableval" = yes; then |
1e6feb95 | 6938 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6939 | else |
1e6feb95 | 6940 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6941 | fi |
698dcdb6 | 6942 | |
10f2d63a | 6943 | else |
698dcdb6 | 6944 | |
1e6feb95 | 6945 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6946 | if test "x$LINE" != x ; then |
6947 | eval "DEFAULT_$LINE" | |
6948 | else | |
6949 | no_cache=1 | |
6950 | fi | |
6951 | ||
1e6feb95 | 6952 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6953 | |
6954 | fi | |
10f2d63a VZ |
6955 | |
6956 | ||
1e6feb95 | 6957 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6958 | if test "$no_cache" != 1; then |
1e6feb95 | 6959 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6960 | fi |
6961 | ||
1e6feb95 | 6962 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6964 | else |
698dcdb6 | 6965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6966 | fi |
698dcdb6 | 6967 | |
10f2d63a | 6968 | |
1e6feb95 | 6969 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
4f14bcd8 | 6970 | echo "configure:6971: checking for --enable-numberdlg" >&5 |
10f2d63a | 6971 | no_cache=0 |
1e6feb95 VZ |
6972 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6973 | if test "${enable_numberdlg+set}" = set; then | |
6974 | enableval="$enable_numberdlg" | |
698dcdb6 | 6975 | |
10f2d63a | 6976 | if test "$enableval" = yes; then |
1e6feb95 | 6977 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6978 | else |
1e6feb95 | 6979 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6980 | fi |
698dcdb6 | 6981 | |
10f2d63a | 6982 | else |
698dcdb6 | 6983 | |
1e6feb95 | 6984 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6985 | if test "x$LINE" != x ; then |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
1e6feb95 | 6991 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6992 | |
6993 | fi | |
10f2d63a VZ |
6994 | |
6995 | ||
1e6feb95 | 6996 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6997 | if test "$no_cache" != 1; then |
1e6feb95 | 6998 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6999 | fi |
7000 | ||
1e6feb95 | 7001 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7003 | else |
698dcdb6 | 7004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7005 | fi |
698dcdb6 | 7006 | |
10f2d63a | 7007 | |
cbca9943 | 7008 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
4f14bcd8 | 7009 | echo "configure:7010: checking for --enable-splash" >&5 |
cbca9943 VZ |
7010 | no_cache=0 |
7011 | # Check whether --enable-splash or --disable-splash was given. | |
7012 | if test "${enable_splash+set}" = set; then | |
7013 | enableval="$enable_splash" | |
7014 | ||
7015 | if test "$enableval" = yes; then | |
7016 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7017 | else | |
7018 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7019 | fi | |
7020 | ||
7021 | else | |
7022 | ||
7023 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7024 | if test "x$LINE" != x ; then | |
7025 | eval "DEFAULT_$LINE" | |
7026 | else | |
7027 | no_cache=1 | |
7028 | fi | |
7029 | ||
7030 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7031 | ||
7032 | fi | |
7033 | ||
7034 | ||
7035 | eval "$ac_cv_use_splash" | |
7036 | if test "$no_cache" != 1; then | |
7037 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7038 | fi | |
7039 | ||
7040 | if test "$wxUSE_SPLASH" = yes; then | |
7041 | echo "$ac_t""yes" 1>&6 | |
7042 | else | |
7043 | echo "$ac_t""no" 1>&6 | |
7044 | fi | |
7045 | ||
7046 | ||
698dcdb6 | 7047 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
4f14bcd8 | 7048 | echo "configure:7049: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7049 | no_cache=0 |
7050 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7051 | if test "${enable_textdlg+set}" = set; then | |
7052 | enableval="$enable_textdlg" | |
698dcdb6 | 7053 | |
10f2d63a VZ |
7054 | if test "$enableval" = yes; then |
7055 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7056 | else | |
7057 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7058 | fi | |
698dcdb6 | 7059 | |
10f2d63a | 7060 | else |
698dcdb6 | 7061 | |
10f2d63a VZ |
7062 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7063 | if test "x$LINE" != x ; then | |
7064 | eval "DEFAULT_$LINE" | |
7065 | else | |
7066 | no_cache=1 | |
7067 | fi | |
7068 | ||
7069 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7070 | |
7071 | fi | |
10f2d63a VZ |
7072 | |
7073 | ||
7074 | eval "$ac_cv_use_textdlg" | |
7075 | if test "$no_cache" != 1; then | |
7076 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7077 | fi | |
7078 | ||
7079 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7080 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7081 | else |
698dcdb6 | 7082 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7083 | fi |
698dcdb6 | 7084 | |
10f2d63a | 7085 | |
698dcdb6 | 7086 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
4f14bcd8 | 7087 | echo "configure:7088: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7088 | no_cache=0 |
7089 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7090 | if test "${enable_tipdlg+set}" = set; then | |
7091 | enableval="$enable_tipdlg" | |
698dcdb6 | 7092 | |
10f2d63a VZ |
7093 | if test "$enableval" = yes; then |
7094 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7095 | else | |
7096 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7097 | fi | |
698dcdb6 | 7098 | |
10f2d63a | 7099 | else |
698dcdb6 | 7100 | |
10f2d63a VZ |
7101 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7102 | if test "x$LINE" != x ; then | |
7103 | eval "DEFAULT_$LINE" | |
7104 | else | |
7105 | no_cache=1 | |
7106 | fi | |
7107 | ||
7108 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7109 | |
7110 | fi | |
10f2d63a VZ |
7111 | |
7112 | ||
7113 | eval "$ac_cv_use_tipdlg" | |
7114 | if test "$no_cache" != 1; then | |
7115 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7116 | fi | |
7117 | ||
7118 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7120 | else |
698dcdb6 | 7121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7122 | fi |
698dcdb6 | 7123 | |
10f2d63a | 7124 | |
698dcdb6 | 7125 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
4f14bcd8 | 7126 | echo "configure:7127: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7127 | no_cache=0 |
7128 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7129 | if test "${enable_progressdlg+set}" = set; then | |
7130 | enableval="$enable_progressdlg" | |
698dcdb6 | 7131 | |
10f2d63a VZ |
7132 | if test "$enableval" = yes; then |
7133 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7134 | else | |
7135 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7136 | fi | |
698dcdb6 | 7137 | |
10f2d63a | 7138 | else |
698dcdb6 | 7139 | |
10f2d63a VZ |
7140 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7141 | if test "x$LINE" != x ; then | |
7142 | eval "DEFAULT_$LINE" | |
7143 | else | |
7144 | no_cache=1 | |
7145 | fi | |
7146 | ||
7147 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7148 | |
7149 | fi | |
10f2d63a VZ |
7150 | |
7151 | ||
7152 | eval "$ac_cv_use_progressdlg" | |
7153 | if test "$no_cache" != 1; then | |
7154 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7155 | fi | |
7156 | ||
7157 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7158 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7159 | else |
698dcdb6 | 7160 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7161 | fi |
698dcdb6 | 7162 | |
10f2d63a | 7163 | |
b1f5d087 | 7164 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
4f14bcd8 | 7165 | echo "configure:7166: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7166 | no_cache=0 |
7167 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7168 | if test "${enable_wizarddlg+set}" = set; then | |
7169 | enableval="$enable_wizarddlg" | |
7170 | ||
7171 | if test "$enableval" = yes; then | |
7172 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7173 | else | |
7174 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7175 | fi | |
7176 | ||
7177 | else | |
7178 | ||
7179 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7180 | if test "x$LINE" != x ; then | |
7181 | eval "DEFAULT_$LINE" | |
7182 | else | |
7183 | no_cache=1 | |
7184 | fi | |
7185 | ||
7186 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7187 | ||
7188 | fi | |
7189 | ||
7190 | ||
7191 | eval "$ac_cv_use_wizarddlg" | |
7192 | if test "$no_cache" != 1; then | |
7193 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7194 | fi | |
7195 | ||
7196 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7197 | echo "$ac_t""yes" 1>&6 | |
7198 | else | |
7199 | echo "$ac_t""no" 1>&6 | |
7200 | fi | |
7201 | ||
7202 | ||
7203 | ||
7204 | ||
1e6feb95 | 7205 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
4f14bcd8 | 7206 | echo "configure:7207: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7207 | no_cache=0 |
7208 | # Check whether --enable-menus or --disable-menus was given. | |
7209 | if test "${enable_menus+set}" = set; then | |
7210 | enableval="$enable_menus" | |
7211 | ||
7212 | if test "$enableval" = yes; then | |
7213 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7214 | else | |
7215 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7216 | fi | |
7217 | ||
7218 | else | |
7219 | ||
7220 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7221 | if test "x$LINE" != x ; then | |
7222 | eval "DEFAULT_$LINE" | |
7223 | else | |
7224 | no_cache=1 | |
7225 | fi | |
7226 | ||
7227 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7228 | ||
7229 | fi | |
7230 | ||
7231 | ||
7232 | eval "$ac_cv_use_menus" | |
7233 | if test "$no_cache" != 1; then | |
7234 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7235 | fi | |
7236 | ||
7237 | if test "$wxUSE_MENUS" = yes; then | |
7238 | echo "$ac_t""yes" 1>&6 | |
7239 | else | |
7240 | echo "$ac_t""no" 1>&6 | |
7241 | fi | |
7242 | ||
7243 | ||
698dcdb6 | 7244 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
4f14bcd8 | 7245 | echo "configure:7246: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7246 | no_cache=0 |
7247 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7248 | if test "${enable_miniframe+set}" = set; then | |
7249 | enableval="$enable_miniframe" | |
698dcdb6 | 7250 | |
10f2d63a VZ |
7251 | if test "$enableval" = yes; then |
7252 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7253 | else | |
7254 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7255 | fi | |
698dcdb6 | 7256 | |
10f2d63a | 7257 | else |
698dcdb6 | 7258 | |
10f2d63a VZ |
7259 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7260 | if test "x$LINE" != x ; then | |
7261 | eval "DEFAULT_$LINE" | |
7262 | else | |
7263 | no_cache=1 | |
7264 | fi | |
7265 | ||
7266 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7267 | |
7268 | fi | |
10f2d63a VZ |
7269 | |
7270 | ||
7271 | eval "$ac_cv_use_miniframe" | |
7272 | if test "$no_cache" != 1; then | |
7273 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7274 | fi | |
7275 | ||
7276 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7278 | else |
698dcdb6 | 7279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7280 | fi |
698dcdb6 | 7281 | |
10f2d63a | 7282 | |
698dcdb6 | 7283 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
4f14bcd8 | 7284 | echo "configure:7285: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7285 | no_cache=0 |
7286 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7287 | if test "${enable_tooltips+set}" = set; then | |
7288 | enableval="$enable_tooltips" | |
698dcdb6 | 7289 | |
10f2d63a VZ |
7290 | if test "$enableval" = yes; then |
7291 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7292 | else | |
7293 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7294 | fi | |
698dcdb6 | 7295 | |
10f2d63a | 7296 | else |
698dcdb6 | 7297 | |
10f2d63a VZ |
7298 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7299 | if test "x$LINE" != x ; then | |
7300 | eval "DEFAULT_$LINE" | |
7301 | else | |
7302 | no_cache=1 | |
7303 | fi | |
7304 | ||
7305 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7306 | |
7307 | fi | |
10f2d63a VZ |
7308 | |
7309 | ||
7310 | eval "$ac_cv_use_tooltips" | |
7311 | if test "$no_cache" != 1; then | |
7312 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7313 | fi | |
7314 | ||
7315 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7316 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7317 | else |
698dcdb6 | 7318 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7319 | fi |
698dcdb6 | 7320 | |
10f2d63a | 7321 | |
698dcdb6 | 7322 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
4f14bcd8 | 7323 | echo "configure:7324: checking for --enable-splines" >&5 |
10f2d63a VZ |
7324 | no_cache=0 |
7325 | # Check whether --enable-splines or --disable-splines was given. | |
7326 | if test "${enable_splines+set}" = set; then | |
7327 | enableval="$enable_splines" | |
698dcdb6 | 7328 | |
10f2d63a VZ |
7329 | if test "$enableval" = yes; then |
7330 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7331 | else | |
7332 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7333 | fi | |
698dcdb6 | 7334 | |
10f2d63a | 7335 | else |
698dcdb6 | 7336 | |
10f2d63a VZ |
7337 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7338 | if test "x$LINE" != x ; then | |
7339 | eval "DEFAULT_$LINE" | |
7340 | else | |
7341 | no_cache=1 | |
7342 | fi | |
7343 | ||
7344 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7345 | |
7346 | fi | |
10f2d63a VZ |
7347 | |
7348 | ||
7349 | eval "$ac_cv_use_splines" | |
7350 | if test "$no_cache" != 1; then | |
7351 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7352 | fi | |
7353 | ||
7354 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7355 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7356 | else |
698dcdb6 | 7357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7358 | fi |
698dcdb6 | 7359 | |
10f2d63a | 7360 | |
698dcdb6 | 7361 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
4f14bcd8 | 7362 | echo "configure:7363: checking for --enable-validators" >&5 |
10f2d63a VZ |
7363 | no_cache=0 |
7364 | # Check whether --enable-validators or --disable-validators was given. | |
7365 | if test "${enable_validators+set}" = set; then | |
7366 | enableval="$enable_validators" | |
698dcdb6 | 7367 | |
10f2d63a VZ |
7368 | if test "$enableval" = yes; then |
7369 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7370 | else | |
7371 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7372 | fi | |
698dcdb6 | 7373 | |
10f2d63a | 7374 | else |
698dcdb6 | 7375 | |
10f2d63a VZ |
7376 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7377 | if test "x$LINE" != x ; then | |
7378 | eval "DEFAULT_$LINE" | |
7379 | else | |
7380 | no_cache=1 | |
7381 | fi | |
7382 | ||
7383 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7384 | |
7385 | fi | |
10f2d63a VZ |
7386 | |
7387 | ||
7388 | eval "$ac_cv_use_validators" | |
7389 | if test "$no_cache" != 1; then | |
7390 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7391 | fi | |
7392 | ||
7393 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7395 | else |
698dcdb6 | 7396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7397 | fi |
698dcdb6 | 7398 | |
10f2d63a | 7399 | |
698dcdb6 | 7400 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
4f14bcd8 | 7401 | echo "configure:7402: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7402 | no_cache=0 |
7403 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7404 | if test "${enable_busyinfo+set}" = set; then | |
7405 | enableval="$enable_busyinfo" | |
698dcdb6 | 7406 | |
10f2d63a VZ |
7407 | if test "$enableval" = yes; then |
7408 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7409 | else | |
7410 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7411 | fi | |
698dcdb6 | 7412 | |
10f2d63a | 7413 | else |
698dcdb6 | 7414 | |
10f2d63a VZ |
7415 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7416 | if test "x$LINE" != x ; then | |
7417 | eval "DEFAULT_$LINE" | |
7418 | else | |
7419 | no_cache=1 | |
7420 | fi | |
7421 | ||
7422 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7423 | |
7424 | fi | |
10f2d63a VZ |
7425 | |
7426 | ||
7427 | eval "$ac_cv_use_busyinfo" | |
7428 | if test "$no_cache" != 1; then | |
7429 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7430 | fi | |
7431 | ||
7432 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7433 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7434 | else |
698dcdb6 | 7435 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7436 | fi |
698dcdb6 | 7437 | |
10f2d63a | 7438 | |
698dcdb6 | 7439 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
4f14bcd8 | 7440 | echo "configure:7441: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7441 | no_cache=0 |
7442 | # Check whether --enable-joystick or --disable-joystick was given. | |
7443 | if test "${enable_joystick+set}" = set; then | |
7444 | enableval="$enable_joystick" | |
698dcdb6 | 7445 | |
f6bcfd97 BP |
7446 | if test "$enableval" = yes; then |
7447 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7448 | else | |
7449 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7450 | fi | |
698dcdb6 | 7451 | |
f6bcfd97 | 7452 | else |
698dcdb6 | 7453 | |
f6bcfd97 BP |
7454 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7455 | if test "x$LINE" != x ; then | |
7456 | eval "DEFAULT_$LINE" | |
7457 | else | |
7458 | no_cache=1 | |
7459 | fi | |
7460 | ||
7461 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7462 | |
7463 | fi | |
f6bcfd97 BP |
7464 | |
7465 | ||
7466 | eval "$ac_cv_use_joystick" | |
7467 | if test "$no_cache" != 1; then | |
7468 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7469 | fi | |
7470 | ||
7471 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7472 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7473 | else |
698dcdb6 | 7474 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7475 | fi |
698dcdb6 VZ |
7476 | |
7477 | ||
1e6feb95 | 7478 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
4f14bcd8 | 7479 | echo "configure:7480: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7480 | no_cache=0 |
7481 | # Check whether --enable-metafile or --disable-metafile was given. | |
7482 | if test "${enable_metafile+set}" = set; then | |
7483 | enableval="$enable_metafile" | |
7484 | ||
7485 | if test "$enableval" = yes; then | |
7486 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7487 | else | |
7488 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7489 | fi | |
7490 | ||
7491 | else | |
7492 | ||
7493 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7494 | if test "x$LINE" != x ; then | |
7495 | eval "DEFAULT_$LINE" | |
7496 | else | |
7497 | no_cache=1 | |
7498 | fi | |
7499 | ||
7500 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7501 | ||
7502 | fi | |
7503 | ||
7504 | ||
7505 | eval "$ac_cv_use_metafile" | |
7506 | if test "$no_cache" != 1; then | |
7507 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7508 | fi | |
7509 | ||
7510 | if test "$wxUSE_METAFILE" = yes; then | |
7511 | echo "$ac_t""yes" 1>&6 | |
7512 | else | |
7513 | echo "$ac_t""no" 1>&6 | |
7514 | fi | |
7515 | ||
7516 | ||
24fd6d87 | 7517 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
4f14bcd8 | 7518 | echo "configure:7519: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7519 | no_cache=0 |
7520 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7521 | if test "${enable_dragimage+set}" = set; then | |
7522 | enableval="$enable_dragimage" | |
7523 | ||
7524 | if test "$enableval" = yes; then | |
7525 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7526 | else | |
7527 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7528 | fi | |
7529 | ||
7530 | else | |
7531 | ||
7532 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7533 | if test "x$LINE" != x ; then | |
7534 | eval "DEFAULT_$LINE" | |
7535 | else | |
7536 | no_cache=1 | |
7537 | fi | |
7538 | ||
7539 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7540 | ||
7541 | fi | |
7542 | ||
7543 | ||
7544 | eval "$ac_cv_use_dragimage" | |
7545 | if test "$no_cache" != 1; then | |
7546 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7547 | fi | |
7548 | ||
7549 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7550 | echo "$ac_t""yes" 1>&6 | |
7551 | else | |
7552 | echo "$ac_t""no" 1>&6 | |
7553 | fi | |
7554 | ||
7555 | ||
10f2d63a | 7556 | |
698dcdb6 | 7557 | |
edae8572 | 7558 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
4f14bcd8 | 7559 | echo "configure:7560: checking for --enable-palette" >&5 |
edae8572 VZ |
7560 | no_cache=0 |
7561 | # Check whether --enable-palette or --disable-palette was given. | |
7562 | if test "${enable_palette+set}" = set; then | |
7563 | enableval="$enable_palette" | |
7564 | ||
7565 | if test "$enableval" = yes; then | |
7566 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7567 | else | |
7568 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7569 | fi | |
7570 | ||
7571 | else | |
7572 | ||
7573 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7574 | if test "x$LINE" != x ; then | |
7575 | eval "DEFAULT_$LINE" | |
7576 | else | |
7577 | no_cache=1 | |
7578 | fi | |
7579 | ||
7580 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7581 | ||
7582 | fi | |
7583 | ||
7584 | ||
7585 | eval "$ac_cv_use_palette" | |
7586 | if test "$no_cache" != 1; then | |
7587 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7588 | fi | |
7589 | ||
7590 | if test "$wxUSE_PALETTE" = yes; then | |
7591 | echo "$ac_t""yes" 1>&6 | |
7592 | else | |
7593 | echo "$ac_t""no" 1>&6 | |
7594 | fi | |
7595 | ||
7596 | ||
698dcdb6 | 7597 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
4f14bcd8 | 7598 | echo "configure:7599: checking for --enable-image" >&5 |
0046ff7c VS |
7599 | no_cache=0 |
7600 | # Check whether --enable-image or --disable-image was given. | |
7601 | if test "${enable_image+set}" = set; then | |
7602 | enableval="$enable_image" | |
698dcdb6 | 7603 | |
0046ff7c VS |
7604 | if test "$enableval" = yes; then |
7605 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7606 | else | |
7607 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7608 | fi | |
698dcdb6 | 7609 | |
0046ff7c | 7610 | else |
698dcdb6 | 7611 | |
0046ff7c VS |
7612 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7613 | if test "x$LINE" != x ; then | |
7614 | eval "DEFAULT_$LINE" | |
7615 | else | |
7616 | no_cache=1 | |
7617 | fi | |
7618 | ||
7619 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7620 | |
7621 | fi | |
0046ff7c VS |
7622 | |
7623 | ||
7624 | eval "$ac_cv_use_image" | |
7625 | if test "$no_cache" != 1; then | |
7626 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7627 | fi | |
7628 | ||
7629 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7630 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7631 | else |
698dcdb6 | 7632 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7633 | fi |
698dcdb6 | 7634 | |
0046ff7c | 7635 | |
698dcdb6 | 7636 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
4f14bcd8 | 7637 | echo "configure:7638: checking for --enable-gif" >&5 |
10f2d63a VZ |
7638 | no_cache=0 |
7639 | # Check whether --enable-gif or --disable-gif was given. | |
7640 | if test "${enable_gif+set}" = set; then | |
7641 | enableval="$enable_gif" | |
698dcdb6 | 7642 | |
10f2d63a VZ |
7643 | if test "$enableval" = yes; then |
7644 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7645 | else | |
7646 | ac_cv_use_gif='wxUSE_GIF=no' | |
7647 | fi | |
698dcdb6 | 7648 | |
10f2d63a | 7649 | else |
698dcdb6 | 7650 | |
10f2d63a VZ |
7651 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7652 | if test "x$LINE" != x ; then | |
7653 | eval "DEFAULT_$LINE" | |
7654 | else | |
7655 | no_cache=1 | |
7656 | fi | |
7657 | ||
7658 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7659 | |
7660 | fi | |
10f2d63a VZ |
7661 | |
7662 | ||
7663 | eval "$ac_cv_use_gif" | |
7664 | if test "$no_cache" != 1; then | |
7665 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7666 | fi | |
7667 | ||
7668 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7669 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7670 | else |
698dcdb6 | 7671 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7672 | fi |
698dcdb6 | 7673 | |
10f2d63a | 7674 | |
698dcdb6 | 7675 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
4f14bcd8 | 7676 | echo "configure:7677: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7677 | no_cache=0 |
7678 | # Check whether --enable-pcx or --disable-pcx was given. | |
7679 | if test "${enable_pcx+set}" = set; then | |
7680 | enableval="$enable_pcx" | |
698dcdb6 | 7681 | |
10f2d63a VZ |
7682 | if test "$enableval" = yes; then |
7683 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7684 | else | |
7685 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7686 | fi | |
698dcdb6 | 7687 | |
10f2d63a | 7688 | else |
698dcdb6 | 7689 | |
10f2d63a VZ |
7690 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7691 | if test "x$LINE" != x ; then | |
7692 | eval "DEFAULT_$LINE" | |
7693 | else | |
7694 | no_cache=1 | |
7695 | fi | |
7696 | ||
7697 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7698 | |
7699 | fi | |
10f2d63a VZ |
7700 | |
7701 | ||
7702 | eval "$ac_cv_use_pcx" | |
7703 | if test "$no_cache" != 1; then | |
7704 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7705 | fi | |
7706 | ||
7707 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7709 | else |
698dcdb6 | 7710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7711 | fi |
698dcdb6 | 7712 | |
10f2d63a | 7713 | |
698dcdb6 | 7714 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
4f14bcd8 | 7715 | echo "configure:7716: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7716 | no_cache=0 |
7717 | # Check whether --enable-pnm or --disable-pnm was given. | |
7718 | if test "${enable_pnm+set}" = set; then | |
7719 | enableval="$enable_pnm" | |
698dcdb6 | 7720 | |
10f2d63a VZ |
7721 | if test "$enableval" = yes; then |
7722 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7723 | else | |
7724 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7725 | fi | |
698dcdb6 | 7726 | |
10f2d63a | 7727 | else |
698dcdb6 | 7728 | |
10f2d63a VZ |
7729 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7730 | if test "x$LINE" != x ; then | |
7731 | eval "DEFAULT_$LINE" | |
7732 | else | |
7733 | no_cache=1 | |
7734 | fi | |
7735 | ||
7736 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7737 | |
7738 | fi | |
10f2d63a VZ |
7739 | |
7740 | ||
7741 | eval "$ac_cv_use_pnm" | |
7742 | if test "$no_cache" != 1; then | |
7743 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7744 | fi | |
7745 | ||
7746 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7747 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7748 | else |
698dcdb6 | 7749 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7750 | fi |
698dcdb6 | 7751 | |
10f2d63a | 7752 | |
698dcdb6 | 7753 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
4f14bcd8 | 7754 | echo "configure:7755: checking for --enable-pnm" >&5 |
0046ff7c VS |
7755 | no_cache=0 |
7756 | # Check whether --enable-pnm or --disable-pnm was given. | |
7757 | if test "${enable_pnm+set}" = set; then | |
7758 | enableval="$enable_pnm" | |
698dcdb6 | 7759 | |
0046ff7c VS |
7760 | if test "$enableval" = yes; then |
7761 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7762 | else | |
7763 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7764 | fi | |
698dcdb6 | 7765 | |
0046ff7c | 7766 | else |
698dcdb6 | 7767 | |
0046ff7c VS |
7768 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7769 | if test "x$LINE" != x ; then | |
7770 | eval "DEFAULT_$LINE" | |
7771 | else | |
7772 | no_cache=1 | |
7773 | fi | |
7774 | ||
7775 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7776 | |
7777 | fi | |
0046ff7c VS |
7778 | |
7779 | ||
7780 | eval "$ac_cv_use_pnm" | |
7781 | if test "$no_cache" != 1; then | |
7782 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7783 | fi | |
7784 | ||
7785 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7786 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7787 | else |
698dcdb6 | 7788 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7789 | fi |
698dcdb6 | 7790 | |
0046ff7c | 7791 | |
b12915c1 VZ |
7792 | fi |
7793 | ||
698dcdb6 | 7794 | |
10f2d63a VZ |
7795 | echo "saving argument cache $wx_arg_cache_file" |
7796 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7797 | |
10f2d63a | 7798 | |
698dcdb6 VZ |
7799 | |
7800 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
4f14bcd8 | 7801 | echo "configure:7802: checking for toolkit" >&5 |
10f2d63a VZ |
7802 | |
7803 | if test "$wxUSE_GUI" = "yes"; then | |
7804 | ||
3a922bb4 RL |
7805 | if test "$USE_BEOS" = 1; then |
7806 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7807 | fi | |
b12915c1 | 7808 | |
3a922bb4 RL |
7809 | if test "$TOOLKIT_GIVEN" = 1; then |
7810 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7811 | var=wxUSE_$toolkit | |
7812 | eval "value=\$${var}" | |
7813 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7814 | done | |
10f2d63a | 7815 | else |
3a922bb4 RL |
7816 | for toolkit in `echo $ALL_TOOLKITS`; do |
7817 | if test "$has_toolkit_in_cache" != 1; then | |
7818 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7819 | else | |
7820 | var=DEFAULT_wxUSE_$toolkit | |
7821 | fi | |
7822 | eval "wxUSE_$toolkit=\$${var}" | |
7823 | done | |
10f2d63a | 7824 | fi |
10f2d63a | 7825 | |
3a922bb4 RL |
7826 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
7827 | + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \ | |
7828 | + ${wxUSE_MGL:-0}` | |
10f2d63a | 7829 | |
3a922bb4 | 7830 | case "${host}" in |
6fa882bd | 7831 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
7832 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
7833 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7834 | LEX_STEM="lexyy" | |
7835 | ;; | |
7836 | *) | |
7837 | PATH_IFS=':' | |
7838 | LEX_STEM="lex.yy" | |
7839 | ;; | |
7840 | esac | |
10f2d63a | 7841 | |
3a922bb4 RL |
7842 | case "$NUM_TOOLKITS" in |
7843 | 1) | |
7844 | ;; | |
7845 | 0) | |
7846 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7847 | ;; | |
7848 | *) | |
7849 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7850 | esac | |
10f2d63a | 7851 | |
3a922bb4 RL |
7852 | for toolkit in `echo $ALL_TOOLKITS`; do |
7853 | var=wxUSE_$toolkit | |
7854 | eval "value=\$${var}" | |
7855 | if test "x$value" != x; then | |
7856 | cache_var=CACHE_$toolkit | |
7857 | eval "cache=\$${cache_var}" | |
7858 | if test "$cache" = 1; then | |
7859 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7860 | fi | |
7861 | if test "$value" = 1; then | |
7862 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7863 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7864 | fi | |
7865 | fi | |
7866 | done | |
10f2d63a | 7867 | else |
cf27ef00 | 7868 | PATH_IFS=':' |
3a922bb4 | 7869 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7870 | fi |
7871 | ||
698dcdb6 VZ |
7872 | |
7873 | cat > confcache <<\EOF | |
10f2d63a VZ |
7874 | # This file is a shell script that caches the results of configure |
7875 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7876 | # scripts and configure runs. It is not useful on other systems. |
7877 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7878 | # |
698dcdb6 VZ |
7879 | # By default, configure uses ./config.cache as the cache file, |
7880 | # creating it if it does not exist already. You can give configure | |
7881 | # the --cache-file=FILE option to use a different cache file; that is | |
7882 | # what configure does when it calls configure scripts in | |
7883 | # subdirectories, so they share the cache. | |
7884 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7885 | # config.status only pays attention to the cache file if you give it the | |
7886 | # --recheck option to rerun configure. | |
10f2d63a | 7887 | # |
698dcdb6 | 7888 | EOF |
10f2d63a VZ |
7889 | # The following way of writing the cache mishandles newlines in values, |
7890 | # but we know of no workaround that is simple, portable, and efficient. | |
7891 | # So, don't put newlines in cache variables' values. | |
7892 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7893 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7894 | (set) 2>&1 | |
7895 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7896 | *ac_space=\ *) | |
7897 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7898 | # turns \\\\ into \\, and sed turns \\ into \). | |
7899 | sed -n \ | |
7900 | -e "s/'/'\\\\''/g" \ | |
7901 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7902 | ;; | |
7903 | *) | |
7904 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7905 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7906 | ;; | |
7907 | esac >> confcache | |
7908 | if cmp -s $cache_file confcache; then | |
7909 | : | |
7910 | else | |
10f2d63a | 7911 | if test -w $cache_file; then |
698dcdb6 VZ |
7912 | echo "updating cache $cache_file" |
7913 | cat confcache > $cache_file | |
10f2d63a VZ |
7914 | else |
7915 | echo "not updating unwritable cache $cache_file" | |
7916 | fi | |
7917 | fi | |
7918 | rm -f confcache | |
7919 | ||
698dcdb6 | 7920 | |
e59890c3 | 7921 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7922 | if test "$USE_WIN32" = 1 ; then |
7923 | CC=$host_alias-gcc | |
7924 | CXX=$host_alias-c++ | |
7925 | AR=$host_alias-ar | |
7926 | RANLIB=$host_alias-ranlib | |
7927 | DLLTOOL=$host_alias-dlltool | |
7928 | RESCOMP=$host_alias-windres | |
7929 | LD=$host_alias-ld | |
7930 | NM=$host_alias-nm | |
7931 | STRIP=$host_alias-strip | |
7932 | else | |
7933 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7934 | fi | |
10f2d63a VZ |
7935 | fi |
7936 | ||
698dcdb6 | 7937 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7938 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 7940 | echo "configure:7941: checking for $ac_word" >&5 |
698dcdb6 VZ |
7941 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7943 | else |
7944 | if test -n "$CC"; then | |
7945 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7946 | else |
698dcdb6 VZ |
7947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7948 | ac_dummy="$PATH" | |
7949 | for ac_dir in $ac_dummy; do | |
7950 | test -z "$ac_dir" && ac_dir=. | |
7951 | if test -f $ac_dir/$ac_word; then | |
7952 | ac_cv_prog_CC="gcc" | |
7953 | break | |
7954 | fi | |
7955 | done | |
7956 | IFS="$ac_save_ifs" | |
10f2d63a | 7957 | fi |
6232543b | 7958 | fi |
698dcdb6 | 7959 | CC="$ac_cv_prog_CC" |
6232543b | 7960 | if test -n "$CC"; then |
698dcdb6 | 7961 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7962 | else |
698dcdb6 | 7963 | echo "$ac_t""no" 1>&6 |
1e487827 | 7964 | fi |
6232543b | 7965 | |
1e487827 VS |
7966 | if test -z "$CC"; then |
7967 | # Extract the first word of "cc", so it can be a program name with args. | |
7968 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7969 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 7970 | echo "configure:7971: checking for $ac_word" >&5 |
698dcdb6 VZ |
7971 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7973 | else |
7974 | if test -n "$CC"; then | |
7975 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7976 | else | |
698dcdb6 | 7977 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7978 | ac_prog_rejected=no |
698dcdb6 VZ |
7979 | ac_dummy="$PATH" |
7980 | for ac_dir in $ac_dummy; do | |
7981 | test -z "$ac_dir" && ac_dir=. | |
7982 | if test -f $ac_dir/$ac_word; then | |
7983 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7984 | ac_prog_rejected=yes | |
7985 | continue | |
7986 | fi | |
7987 | ac_cv_prog_CC="cc" | |
7988 | break | |
7989 | fi | |
7990 | done | |
7991 | IFS="$ac_save_ifs" | |
1e487827 VS |
7992 | if test $ac_prog_rejected = yes; then |
7993 | # We found a bogon in the path, so make sure we never use it. | |
7994 | set dummy $ac_cv_prog_CC | |
7995 | shift | |
698dcdb6 | 7996 | if test $# -gt 0; then |
1e487827 VS |
7997 | # We chose a different compiler from the bogus one. |
7998 | # However, it has the same basename, so the bogon will be chosen | |
7999 | # first if we set CC to just the basename; use the full file name. | |
8000 | shift | |
698dcdb6 | 8001 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8002 | shift |
8003 | ac_cv_prog_CC="$@" | |
703e0a69 | 8004 | fi |
1e487827 VS |
8005 | fi |
8006 | fi | |
8007 | fi | |
698dcdb6 | 8008 | CC="$ac_cv_prog_CC" |
1e487827 | 8009 | if test -n "$CC"; then |
698dcdb6 | 8010 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8011 | else |
698dcdb6 | 8012 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8013 | fi |
1e487827 | 8014 | |
698dcdb6 VZ |
8015 | if test -z "$CC"; then |
8016 | case "`uname -s`" in | |
8017 | *win32* | *WIN32*) | |
8018 | # Extract the first word of "cl", so it can be a program name with args. | |
8019 | set dummy cl; ac_word=$2 | |
8020 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4f14bcd8 | 8021 | echo "configure:8022: checking for $ac_word" >&5 |
698dcdb6 VZ |
8022 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8024 | else |
8025 | if test -n "$CC"; then | |
8026 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8027 | else |
698dcdb6 VZ |
8028 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8029 | ac_dummy="$PATH" | |
8030 | for ac_dir in $ac_dummy; do | |
8031 | test -z "$ac_dir" && ac_dir=. | |
8032 | if test -f $ac_dir/$ac_word; then | |
8033 | ac_cv_prog_CC="cl" | |
8034 | break | |
8035 | fi | |
8036 | done | |
8037 | IFS="$ac_save_ifs" | |
703e0a69 | 8038 | fi |
1e487827 | 8039 | fi |
698dcdb6 | 8040 | CC="$ac_cv_prog_CC" |
1e487827 | 8041 | if test -n "$CC"; then |
698dcdb6 | 8042 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8043 | else |
698dcdb6 | 8044 | echo "$ac_t""no" 1>&6 |
1e487827 | 8045 | fi |
698dcdb6 VZ |
8046 | ;; |
8047 | esac | |
8048 | fi | |
8049 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8050 | fi |
8051 | ||
698dcdb6 | 8052 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
4f14bcd8 | 8053 | echo "configure:8054: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8054 | |
698dcdb6 VZ |
8055 | ac_ext=c |
8056 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8057 | ac_cpp='$CPP $CPPFLAGS' | |
8058 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8059 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8060 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8061 | |
698dcdb6 | 8062 | cat > conftest.$ac_ext << EOF |
1e487827 | 8063 | |
4f14bcd8 | 8064 | #line 8065 "configure" |
1e487827 VS |
8065 | #include "confdefs.h" |
8066 | ||
698dcdb6 VZ |
8067 | main(){return(0);} |
8068 | EOF | |
4f14bcd8 | 8069 | if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8070 | ac_cv_prog_cc_works=yes |
8071 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8072 | if (./conftest; exit) 2>/dev/null; then | |
8073 | ac_cv_prog_cc_cross=no | |
8074 | else | |
8075 | ac_cv_prog_cc_cross=yes | |
8076 | fi | |
8077 | else | |
8078 | echo "configure: failed program was:" >&5 | |
8079 | cat conftest.$ac_ext >&5 | |
8080 | ac_cv_prog_cc_works=no | |
8081 | fi | |
8082 | rm -fr conftest* | |
8083 | ac_ext=c | |
8084 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8085 | ac_cpp='$CPP $CPPFLAGS' | |
8086 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8087 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8088 | cross_compiling=$ac_cv_prog_cc_cross | |
8089 | ||
8090 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8091 | if test $ac_cv_prog_cc_works = no; then | |
8092 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8093 | fi | |
8094 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4f14bcd8 | 8095 | echo "configure:8096: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8096 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8097 | cross_compiling=$ac_cv_prog_cc_cross | |
8098 | ||
8099 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
4f14bcd8 | 8100 | echo "configure:8101: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8101 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8103 | else | |
8104 | cat > conftest.c <<EOF | |
8105 | #ifdef __GNUC__ | |
8106 | yes; | |
1e487827 | 8107 | #endif |
698dcdb6 | 8108 | EOF |
4f14bcd8 | 8109 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8110 | ac_cv_prog_gcc=yes |
8111 | else | |
8112 | ac_cv_prog_gcc=no | |
8113 | fi | |
8114 | fi | |
1e487827 | 8115 | |
698dcdb6 | 8116 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8117 | |
698dcdb6 VZ |
8118 | if test $ac_cv_prog_gcc = yes; then |
8119 | GCC=yes | |
8120 | else | |
8121 | GCC= | |
8122 | fi | |
1e487827 | 8123 | |
698dcdb6 VZ |
8124 | ac_test_CFLAGS="${CFLAGS+set}" |
8125 | ac_save_CFLAGS="$CFLAGS" | |
8126 | CFLAGS= | |
8127 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
4f14bcd8 | 8128 | echo "configure:8129: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8129 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8131 | else | |
8132 | echo 'void f(){}' > conftest.c | |
8133 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8134 | ac_cv_prog_cc_g=yes |
8135 | else | |
698dcdb6 | 8136 | ac_cv_prog_cc_g=no |
10f2d63a | 8137 | fi |
698dcdb6 VZ |
8138 | rm -f conftest* |
8139 | ||
10f2d63a | 8140 | fi |
698dcdb6 VZ |
8141 | |
8142 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8143 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8144 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8145 | elif test $ac_cv_prog_cc_g = yes; then |
8146 | if test "$GCC" = yes; then | |
8147 | CFLAGS="-g -O2" | |
8148 | else | |
8149 | CFLAGS="-g" | |
8150 | fi | |
8151 | else | |
8152 | if test "$GCC" = yes; then | |
8153 | CFLAGS="-O2" | |
8154 | else | |
8155 | CFLAGS= | |
8156 | fi | |
8157 | fi | |
8158 | ||
8159 | ||
8160 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8161 | ||
698dcdb6 | 8162 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
4f14bcd8 | 8163 | echo "configure:8164: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8164 | # On Suns, sometimes $CPP names a directory. |
8165 | if test -n "$CPP" && test -d "$CPP"; then | |
8166 | CPP= | |
8167 | fi | |
8168 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8169 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8171 | else | |
8172 | # This must be in double quotes, not single quotes, because CPP may get | |
8173 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8174 | CPP="${CC-cc} -E" | |
10f2d63a | 8175 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8176 | # not just through cpp. |
8177 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 8178 | #line 8179 "configure" |
10f2d63a VZ |
8179 | #include "confdefs.h" |
8180 | #include <assert.h> | |
698dcdb6 VZ |
8181 | Syntax Error |
8182 | EOF | |
8183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 8184 | { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8186 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8187 | : |
8188 | else | |
698dcdb6 VZ |
8189 | echo "$ac_err" >&5 |
8190 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8191 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8192 | rm -rf conftest* |
8193 | CPP="${CC-cc} -E -traditional-cpp" | |
8194 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 8195 | #line 8196 "configure" |
10f2d63a | 8196 | #include "confdefs.h" |
698dcdb6 VZ |
8197 | #include <assert.h> |
8198 | Syntax Error | |
8199 | EOF | |
8200 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 8201 | { (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8202 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8203 | if test -z "$ac_err"; then | |
8204 | : | |
10f2d63a | 8205 | else |
698dcdb6 VZ |
8206 | echo "$ac_err" >&5 |
8207 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8208 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8209 | rm -rf conftest* |
8210 | CPP="${CC-cc} -nologo -E" | |
8211 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 8212 | #line 8213 "configure" |
10f2d63a VZ |
8213 | #include "confdefs.h" |
8214 | #include <assert.h> | |
698dcdb6 VZ |
8215 | Syntax Error |
8216 | EOF | |
8217 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 8218 | { (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8219 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8220 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8221 | : |
8222 | else | |
698dcdb6 VZ |
8223 | echo "$ac_err" >&5 |
8224 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8225 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8226 | rm -rf conftest* |
8227 | CPP=/lib/cpp | |
10f2d63a | 8228 | fi |
698dcdb6 | 8229 | rm -f conftest* |
10f2d63a | 8230 | fi |
698dcdb6 | 8231 | rm -f conftest* |
703e0a69 | 8232 | fi |
698dcdb6 VZ |
8233 | rm -f conftest* |
8234 | ac_cv_prog_CPP="$CPP" | |
8235 | fi | |
8236 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8237 | else |
698dcdb6 | 8238 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8239 | fi |
698dcdb6 | 8240 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8241 | |
698dcdb6 VZ |
8242 | if test $ac_cv_prog_gcc = yes; then |
8243 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
4f14bcd8 | 8244 | echo "configure:8245: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8245 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8247 | else |
8248 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8249 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 8250 | #line 8251 "configure" |
10f2d63a VZ |
8251 | #include "confdefs.h" |
8252 | #include <sgtty.h> | |
8253 | Autoconf TIOCGETP | |
698dcdb6 | 8254 | EOF |
10f2d63a VZ |
8255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8256 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8257 | rm -rf conftest* |
10f2d63a VZ |
8258 | ac_cv_prog_gcc_traditional=yes |
8259 | else | |
698dcdb6 | 8260 | rm -rf conftest* |
10f2d63a VZ |
8261 | ac_cv_prog_gcc_traditional=no |
8262 | fi | |
8263 | rm -f conftest* | |
8264 | ||
698dcdb6 | 8265 | |
10f2d63a | 8266 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8267 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 8268 | #line 8269 "configure" |
10f2d63a VZ |
8269 | #include "confdefs.h" |
8270 | #include <termio.h> | |
8271 | Autoconf TCGETA | |
698dcdb6 | 8272 | EOF |
10f2d63a VZ |
8273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8274 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8275 | rm -rf conftest* |
10f2d63a VZ |
8276 | ac_cv_prog_gcc_traditional=yes |
8277 | fi | |
8278 | rm -f conftest* | |
8279 | ||
8280 | fi | |
8281 | fi | |
698dcdb6 VZ |
8282 | |
8283 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8284 | if test $ac_cv_prog_gcc_traditional = yes; then |
8285 | CC="$CC -traditional" | |
8286 | fi | |
8287 | fi | |
8288 | ||
703e0a69 | 8289 | |
698dcdb6 VZ |
8290 | |
8291 | ac_ext=C | |
8292 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8293 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8294 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8295 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8296 | cross_compiling=$ac_cv_prog_cxx_cross | |
8297 | ||
8298 | ||
8299 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8300 | do | |
8301 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8302 | set dummy $ac_prog; ac_word=$2 | |
8303 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4f14bcd8 | 8304 | echo "configure:8305: checking for $ac_word" >&5 |
698dcdb6 VZ |
8305 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8307 | else |
8308 | if test -n "$CXX"; then | |
8309 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8310 | else | |
698dcdb6 VZ |
8311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8312 | ac_dummy="$PATH" | |
8313 | for ac_dir in $ac_dummy; do | |
8314 | test -z "$ac_dir" && ac_dir=. | |
8315 | if test -f $ac_dir/$ac_word; then | |
8316 | ac_cv_prog_CXX="$ac_prog" | |
8317 | break | |
8318 | fi | |
8319 | done | |
8320 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8321 | fi |
8322 | fi | |
698dcdb6 | 8323 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8324 | if test -n "$CXX"; then |
698dcdb6 | 8325 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8326 | else |
698dcdb6 | 8327 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8328 | fi |
8329 | ||
698dcdb6 | 8330 | test -n "$CXX" && break |
10f2d63a | 8331 | done |
698dcdb6 | 8332 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8333 | |
8334 | ||
698dcdb6 | 8335 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
4f14bcd8 | 8336 | echo "configure:8337: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8337 | |
698dcdb6 VZ |
8338 | ac_ext=C |
8339 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8340 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8341 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8342 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8343 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8344 | |
698dcdb6 VZ |
8345 | cat > conftest.$ac_ext << EOF |
8346 | ||
4f14bcd8 | 8347 | #line 8348 "configure" |
10f2d63a VZ |
8348 | #include "confdefs.h" |
8349 | ||
698dcdb6 VZ |
8350 | int main(){return(0);} |
8351 | EOF | |
4f14bcd8 | 8352 | if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8353 | ac_cv_prog_cxx_works=yes |
8354 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8355 | if (./conftest; exit) 2>/dev/null; then | |
8356 | ac_cv_prog_cxx_cross=no | |
8357 | else | |
8358 | ac_cv_prog_cxx_cross=yes | |
8359 | fi | |
8360 | else | |
8361 | echo "configure: failed program was:" >&5 | |
8362 | cat conftest.$ac_ext >&5 | |
8363 | ac_cv_prog_cxx_works=no | |
8364 | fi | |
8365 | rm -fr conftest* | |
8366 | ac_ext=C | |
8367 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8368 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8369 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8370 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8371 | cross_compiling=$ac_cv_prog_cxx_cross | |
8372 | ||
8373 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8374 | if test $ac_cv_prog_cxx_works = no; then | |
8375 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8376 | fi | |
8377 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4f14bcd8 | 8378 | echo "configure:8379: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8379 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8380 | cross_compiling=$ac_cv_prog_cxx_cross | |
8381 | ||
8382 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
4f14bcd8 | 8383 | echo "configure:8384: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8384 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8386 | else | |
8387 | cat > conftest.C <<EOF | |
8388 | #ifdef __GNUC__ | |
8389 | yes; | |
10f2d63a | 8390 | #endif |
698dcdb6 | 8391 | EOF |
4f14bcd8 | 8392 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8393 | ac_cv_prog_gxx=yes |
8394 | else | |
8395 | ac_cv_prog_gxx=no | |
8396 | fi | |
8397 | fi | |
10f2d63a | 8398 | |
698dcdb6 | 8399 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8400 | |
698dcdb6 VZ |
8401 | if test $ac_cv_prog_gxx = yes; then |
8402 | GXX=yes | |
8403 | else | |
8404 | GXX= | |
8405 | fi | |
10f2d63a | 8406 | |
698dcdb6 VZ |
8407 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8408 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8409 | CXXFLAGS= | |
8410 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
4f14bcd8 | 8411 | echo "configure:8412: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8412 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8414 | else | |
8415 | echo 'void f(){}' > conftest.cc | |
8416 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8417 | ac_cv_prog_cxx_g=yes |
8418 | else | |
698dcdb6 | 8419 | ac_cv_prog_cxx_g=no |
10f2d63a | 8420 | fi |
698dcdb6 VZ |
8421 | rm -f conftest* |
8422 | ||
10f2d63a | 8423 | fi |
698dcdb6 VZ |
8424 | |
8425 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8426 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8427 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8428 | elif test $ac_cv_prog_cxx_g = yes; then |
8429 | if test "$GXX" = yes; then | |
8430 | CXXFLAGS="-g -O2" | |
8431 | else | |
8432 | CXXFLAGS="-g" | |
8433 | fi | |
8434 | else | |
8435 | if test "$GXX" = yes; then | |
8436 | CXXFLAGS="-O2" | |
8437 | else | |
8438 | CXXFLAGS= | |
8439 | fi | |
8440 | fi | |
8441 | ||
8442 | ||
10f2d63a VZ |
8443 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8444 | ||
8445 | ac_ext=c | |
698dcdb6 | 8446 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8447 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8448 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8449 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8450 | cross_compiling=$ac_cv_prog_cc_cross | |
8451 | ||
8452 | ||
8453 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8454 | set dummy ranlib; ac_word=$2 | |
8455 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4f14bcd8 | 8456 | echo "configure:8457: checking for $ac_word" >&5 |
698dcdb6 VZ |
8457 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8459 | else |
8460 | if test -n "$RANLIB"; then | |
8461 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8462 | else | |
698dcdb6 VZ |
8463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8464 | ac_dummy="$PATH" | |
8465 | for ac_dir in $ac_dummy; do | |
8466 | test -z "$ac_dir" && ac_dir=. | |
8467 | if test -f $ac_dir/$ac_word; then | |
8468 | ac_cv_prog_RANLIB="ranlib" | |
8469 | break | |
8470 | fi | |
8471 | done | |
8472 | IFS="$ac_save_ifs" | |
8473 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8474 | fi |
8475 | fi | |
698dcdb6 | 8476 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8477 | if test -n "$RANLIB"; then |
698dcdb6 | 8478 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8479 | else |
698dcdb6 | 8480 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8481 | fi |
8482 | ||
8483 | ||
8484 | # Extract the first word of "ar", so it can be a program name with args. | |
8485 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8486 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 8487 | echo "configure:8488: checking for $ac_word" >&5 |
698dcdb6 VZ |
8488 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8490 | else |
8491 | if test -n "$AR"; then | |
8492 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8493 | else | |
698dcdb6 VZ |
8494 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8495 | ac_dummy="$PATH" | |
8496 | for ac_dir in $ac_dummy; do | |
8497 | test -z "$ac_dir" && ac_dir=. | |
8498 | if test -f $ac_dir/$ac_word; then | |
8499 | ac_cv_prog_AR="ar" | |
8500 | break | |
8501 | fi | |
8502 | done | |
8503 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8504 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8505 | fi | |
8506 | fi | |
698dcdb6 | 8507 | AR="$ac_cv_prog_AR" |
10f2d63a | 8508 | if test -n "$AR"; then |
698dcdb6 | 8509 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8510 | else |
698dcdb6 | 8511 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8512 | fi |
8513 | ||
698dcdb6 | 8514 | |
10f2d63a VZ |
8515 | # Find a good install program. We prefer a C program (faster), |
8516 | # so one script is as good as another. But avoid the broken or | |
8517 | # incompatible versions: | |
8518 | # SysV /etc/install, /usr/sbin/install | |
8519 | # SunOS /usr/etc/install | |
8520 | # IRIX /sbin/install | |
8521 | # AIX /bin/install | |
8522 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8523 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8524 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8525 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8526 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
4f14bcd8 | 8527 | echo "configure:8528: checking for a BSD compatible install" >&5 |
10f2d63a | 8528 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8529 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8531 | else |
698dcdb6 | 8532 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8533 | for ac_dir in $PATH; do |
8534 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8535 | case "$ac_dir/" in |
8536 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8537 | *) |
8538 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8539 | # Don't use installbsd from OSF since it installs stuff as root | |
8540 | # by default. | |
8541 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8542 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8543 | if test $ac_prog = install && |
698dcdb6 | 8544 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8545 | # AIX install. It has an incompatible calling convention. |
8546 | : | |
8547 | else | |
8548 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8549 | break 2 | |
8550 | fi | |
8551 | fi | |
8552 | done | |
8553 | ;; | |
8554 | esac | |
8555 | done | |
698dcdb6 | 8556 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8557 | |
8558 | fi | |
8559 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8560 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8561 | else |
8562 | # As a last resort, use the slow shell script. We don't cache a | |
8563 | # path for INSTALL within a source directory, because that will | |
8564 | # break other packages using the cache if that directory is | |
8565 | # removed, or if the path is relative. | |
698dcdb6 | 8566 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8567 | fi |
8568 | fi | |
698dcdb6 | 8569 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8570 | |
8571 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8572 | # It thinks the first close brace ends the variable substitution. | |
8573 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8574 | ||
698dcdb6 | 8575 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8576 | |
8577 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8578 | ||
698dcdb6 | 8579 | |
10f2d63a VZ |
8580 | # Extract the first word of "strip", so it can be a program name with args. |
8581 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 8583 | echo "configure:8584: checking for $ac_word" >&5 |
698dcdb6 VZ |
8584 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8586 | else |
8587 | if test -n "$STRIP"; then | |
8588 | ac_cv_prog_STRIP="$STRIP" # 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_STRIP="strip" | |
8596 | break | |
8597 | fi | |
8598 | done | |
8599 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8600 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8601 | fi | |
8602 | fi | |
698dcdb6 | 8603 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8604 | if test -n "$STRIP"; then |
698dcdb6 | 8605 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8606 | else |
698dcdb6 | 8607 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8608 | fi |
8609 | ||
698dcdb6 VZ |
8610 | |
8611 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
4f14bcd8 | 8612 | echo "configure:8613: checking make for VPATH support" >&5 |
10f2d63a VZ |
8613 | cat - << EOF > confMake |
8614 | check : file | |
8615 | cp \$? \$@ | |
8616 | cp \$? final_file | |
8617 | EOF | |
8618 | ||
8619 | if test ! -d sub ; then | |
8620 | mkdir sub | |
8621 | fi | |
8622 | echo dummy > sub/file | |
f6bcfd97 | 8623 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8624 | RESULT=$? |
8625 | rm -f sub/file check final_file confMake | |
8626 | rmdir sub | |
8627 | if test "$RESULT" = 0; then | |
698dcdb6 | 8628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8629 | else |
698dcdb6 VZ |
8630 | echo "$ac_t""no" 1>&6 |
8631 | { echo "configure: error: | |
1e487827 VS |
8632 | You need a make-utility that is able to use the variable |
8633 | VPATH correctly. | |
8634 | If your version of make does not support VPATH correctly, | |
8635 | please install GNU-make (possibly as gmake), and start | |
8636 | configure with the following command: | |
8637 | export MAKE=gmake; ./configure for sh-type shells | |
8638 | setenv MAKE gmake; ./configure for csh-type shells | |
8639 | Also please do remember to use gmake in this case every time | |
8640 | you are trying to compile. | |
698dcdb6 | 8641 | " 1>&2; exit 1; } |
10f2d63a VZ |
8642 | fi |
8643 | ||
8644 | for ac_prog in 'bison -y' byacc | |
8645 | do | |
698dcdb6 | 8646 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8647 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 8649 | echo "configure:8650: checking for $ac_word" >&5 |
698dcdb6 VZ |
8650 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8652 | else |
8653 | if test -n "$YACC"; then | |
8654 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8655 | else | |
698dcdb6 VZ |
8656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8657 | ac_dummy="$PATH" | |
8658 | for ac_dir in $ac_dummy; do | |
8659 | test -z "$ac_dir" && ac_dir=. | |
8660 | if test -f $ac_dir/$ac_word; then | |
8661 | ac_cv_prog_YACC="$ac_prog" | |
8662 | break | |
8663 | fi | |
8664 | done | |
8665 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8666 | fi |
8667 | fi | |
698dcdb6 | 8668 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8669 | if test -n "$YACC"; then |
698dcdb6 | 8670 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8671 | else |
698dcdb6 | 8672 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8673 | fi |
8674 | ||
698dcdb6 | 8675 | test -n "$YACC" && break |
10f2d63a VZ |
8676 | done |
8677 | test -n "$YACC" || YACC="yacc" | |
8678 | ||
698dcdb6 VZ |
8679 | |
8680 | # Extract the first word of "flex", so it can be a program name with args. | |
8681 | set dummy flex; ac_word=$2 | |
8682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4f14bcd8 | 8683 | echo "configure:8684: checking for $ac_word" >&5 |
698dcdb6 VZ |
8684 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8686 | else |
8687 | if test -n "$LEX"; then | |
8688 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8689 | else | |
698dcdb6 VZ |
8690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8691 | ac_dummy="$PATH" | |
8692 | for ac_dir in $ac_dummy; do | |
8693 | test -z "$ac_dir" && ac_dir=. | |
8694 | if test -f $ac_dir/$ac_word; then | |
8695 | ac_cv_prog_LEX="flex" | |
8696 | break | |
8697 | fi | |
8698 | done | |
8699 | IFS="$ac_save_ifs" | |
8700 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8701 | fi |
8702 | fi | |
698dcdb6 | 8703 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8704 | if test -n "$LEX"; then |
698dcdb6 | 8705 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8706 | else |
698dcdb6 | 8707 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8708 | fi |
8709 | ||
8710 | if test -z "$LEXLIB" | |
8711 | then | |
698dcdb6 VZ |
8712 | case "$LEX" in |
8713 | flex*) ac_lib=fl ;; | |
8714 | *) ac_lib=l ;; | |
8715 | esac | |
8716 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
4f14bcd8 | 8717 | echo "configure:8718: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8718 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8721 | else | |
8722 | ac_save_LIBS="$LIBS" | |
8723 | LIBS="-l$ac_lib $LIBS" | |
8724 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 8725 | #line 8726 "configure" |
10f2d63a VZ |
8726 | #include "confdefs.h" |
8727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8728 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8729 | builtin and then its argument prototype would still apply. */ |
8730 | char yywrap(); | |
10f2d63a | 8731 | |
698dcdb6 VZ |
8732 | int main() { |
8733 | yywrap() | |
8734 | ; return 0; } | |
8735 | EOF | |
4f14bcd8 | 8736 | if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8737 | rm -rf conftest* |
8738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8739 | else |
698dcdb6 VZ |
8740 | echo "configure: failed program was:" >&5 |
8741 | cat conftest.$ac_ext >&5 | |
8742 | rm -rf conftest* | |
8743 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8744 | fi |
698dcdb6 VZ |
8745 | rm -f conftest* |
8746 | LIBS="$ac_save_LIBS" | |
8747 | ||
10f2d63a | 8748 | fi |
698dcdb6 VZ |
8749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8750 | echo "$ac_t""yes" 1>&6 | |
8751 | LEXLIB="-l$ac_lib" | |
8752 | else | |
8753 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8754 | fi |
8755 | ||
8756 | fi | |
8757 | ||
8758 | ||
698dcdb6 | 8759 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
4f14bcd8 | 8760 | echo "configure:8761: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8761 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8763 | else |
698dcdb6 VZ |
8764 | rm -f conftestdata |
8765 | if ln -s X conftestdata 2>/dev/null | |
8766 | then | |
8767 | rm -f conftestdata | |
8768 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8769 | else |
698dcdb6 | 8770 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8771 | fi |
8772 | fi | |
698dcdb6 VZ |
8773 | LN_S="$ac_cv_prog_LN_S" |
8774 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8775 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8776 | else |
698dcdb6 | 8777 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8778 | fi |
8779 | ||
8780 | ||
8781 | ||
8782 | SEARCH_INCLUDE="\ | |
8783 | /usr/local/include \ | |
8784 | \ | |
8785 | /usr/Motif-1.2/include \ | |
8786 | /usr/Motif-2.1/include \ | |
8787 | \ | |
8788 | /usr/include/Motif1.2 \ | |
8789 | /opt/xpm/include/X11 \ | |
8790 | /opt/GBxpm/include/ \ | |
8791 | /opt/GBxpm/X11/include/ \ | |
8792 | \ | |
8793 | /usr/Motif1.2/include \ | |
8794 | /usr/dt/include \ | |
afc31813 VZ |
8795 | /usr/openwin/include \ |
8796 | \ | |
10f2d63a VZ |
8797 | /usr/include/Xm \ |
8798 | \ | |
8799 | /usr/X11R6/include \ | |
afc31813 | 8800 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8801 | /usr/X11R5/include \ |
8802 | /usr/X11R4/include \ | |
8803 | \ | |
10f2d63a VZ |
8804 | /usr/include/X11R6 \ |
8805 | /usr/include/X11R5 \ | |
8806 | /usr/include/X11R4 \ | |
8807 | \ | |
8808 | /usr/local/X11R6/include \ | |
8809 | /usr/local/X11R5/include \ | |
8810 | /usr/local/X11R4/include \ | |
8811 | \ | |
8812 | /usr/local/include/X11R6 \ | |
8813 | /usr/local/include/X11R5 \ | |
8814 | /usr/local/include/X11R4 \ | |
8815 | \ | |
8816 | /usr/X11/include \ | |
8817 | /usr/include/X11 \ | |
8818 | /usr/local/X11/include \ | |
8819 | /usr/local/include/X11 \ | |
8820 | \ | |
8821 | /usr/X386/include \ | |
8822 | /usr/x386/include \ | |
8823 | /usr/XFree86/include/X11 \ | |
8824 | \ | |
cf27ef00 | 8825 | X:/XFree86/include \ |
ec14dd32 VZ |
8826 | X:/XFree86/include/X11 \ |
8827 | \ | |
10f2d63a VZ |
8828 | /usr/include/gtk \ |
8829 | /usr/local/include/gtk \ | |
8830 | /usr/include/glib \ | |
8831 | /usr/local/include/glib \ | |
8832 | \ | |
8833 | /usr/include/qt \ | |
8834 | /usr/local/include/qt \ | |
8835 | \ | |
8836 | /usr/include/windows \ | |
8837 | /usr/include/wine \ | |
8838 | /usr/local/include/wine \ | |
8839 | \ | |
8840 | /usr/unsupported/include \ | |
8841 | /usr/athena/include \ | |
8842 | /usr/local/x11r5/include \ | |
8843 | /usr/lpp/Xamples/include \ | |
8844 | \ | |
10f2d63a | 8845 | /usr/openwin/share/include \ |
928b5c08 VZ |
8846 | \ |
8847 | /usr/include" | |
10f2d63a VZ |
8848 | |
8849 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8850 | ||
698dcdb6 VZ |
8851 | |
8852 | cat > confcache <<\EOF | |
10f2d63a VZ |
8853 | # This file is a shell script that caches the results of configure |
8854 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8855 | # scripts and configure runs. It is not useful on other systems. |
8856 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8857 | # |
698dcdb6 VZ |
8858 | # By default, configure uses ./config.cache as the cache file, |
8859 | # creating it if it does not exist already. You can give configure | |
8860 | # the --cache-file=FILE option to use a different cache file; that is | |
8861 | # what configure does when it calls configure scripts in | |
8862 | # subdirectories, so they share the cache. | |
8863 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8864 | # config.status only pays attention to the cache file if you give it the | |
8865 | # --recheck option to rerun configure. | |
10f2d63a | 8866 | # |
698dcdb6 | 8867 | EOF |
10f2d63a VZ |
8868 | # The following way of writing the cache mishandles newlines in values, |
8869 | # but we know of no workaround that is simple, portable, and efficient. | |
8870 | # So, don't put newlines in cache variables' values. | |
8871 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8872 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8873 | (set) 2>&1 | |
8874 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8875 | *ac_space=\ *) | |
8876 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8877 | # turns \\\\ into \\, and sed turns \\ into \). | |
8878 | sed -n \ | |
8879 | -e "s/'/'\\\\''/g" \ | |
8880 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8881 | ;; | |
8882 | *) | |
8883 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8884 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8885 | ;; | |
8886 | esac >> confcache | |
8887 | if cmp -s $cache_file confcache; then | |
8888 | : | |
8889 | else | |
10f2d63a | 8890 | if test -w $cache_file; then |
698dcdb6 VZ |
8891 | echo "updating cache $cache_file" |
8892 | cat confcache > $cache_file | |
10f2d63a VZ |
8893 | else |
8894 | echo "not updating unwritable cache $cache_file" | |
8895 | fi | |
8896 | fi | |
8897 | rm -f confcache | |
8898 | ||
698dcdb6 VZ |
8899 | |
8900 | ||
4f14bcd8 | 8901 | |
18dbb1f6 VZ |
8902 | REGEX_INCLUDE= |
8903 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
8904 | cat >> confdefs.h <<\EOF |
8905 | #define wxUSE_REGEX 1 | |
8906 | EOF | |
8907 | ||
8908 | ||
8909 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
8910 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 8911 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
4f14bcd8 | 8912 | echo "configure:8913: checking for regex.h" >&5 |
18dbb1f6 VZ |
8913 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8915 | else | |
8916 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 8917 | #line 8918 "configure" |
18dbb1f6 VZ |
8918 | #include "confdefs.h" |
8919 | #include <regex.h> | |
8920 | EOF | |
8921 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 8922 | { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8923 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8924 | if test -z "$ac_err"; then | |
8925 | rm -rf conftest* | |
8926 | eval "ac_cv_header_$ac_safe=yes" | |
8927 | else | |
8928 | echo "$ac_err" >&5 | |
8929 | echo "configure: failed program was:" >&5 | |
8930 | cat conftest.$ac_ext >&5 | |
8931 | rm -rf conftest* | |
8932 | eval "ac_cv_header_$ac_safe=no" | |
8933 | fi | |
8934 | rm -f conftest* | |
8935 | fi | |
8936 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8937 | echo "$ac_t""yes" 1>&6 | |
8938 | for ac_func in regcomp | |
8939 | do | |
8940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4f14bcd8 | 8941 | echo "configure:8942: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8944 | else | |
8945 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 8946 | #line 8947 "configure" |
18dbb1f6 VZ |
8947 | #include "confdefs.h" |
8948 | /* System header to define __stub macros and hopefully few prototypes, | |
8949 | which can conflict with char $ac_func(); below. */ | |
8950 | #include <assert.h> | |
8951 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8952 | /* We use char because int might match the return type of a gcc2 | |
8953 | builtin and then its argument prototype would still apply. */ | |
8954 | char $ac_func(); | |
8955 | ||
8956 | int main() { | |
8957 | ||
8958 | /* The GNU C library defines this for functions which it implements | |
8959 | to always fail with ENOSYS. Some functions are actually named | |
8960 | something starting with __ and the normal name is an alias. */ | |
8961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8962 | choke me | |
8963 | #else | |
8964 | $ac_func(); | |
8965 | #endif | |
8966 | ||
8967 | ; return 0; } | |
8968 | EOF | |
4f14bcd8 | 8969 | if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8970 | rm -rf conftest* |
8971 | eval "ac_cv_func_$ac_func=yes" | |
8972 | else | |
8973 | echo "configure: failed program was:" >&5 | |
8974 | cat conftest.$ac_ext >&5 | |
8975 | rm -rf conftest* | |
8976 | eval "ac_cv_func_$ac_func=no" | |
8977 | fi | |
8978 | rm -f conftest* | |
8979 | fi | |
8980 | ||
8981 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8982 | echo "$ac_t""yes" 1>&6 | |
8983 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8984 | cat >> confdefs.h <<EOF | |
8985 | #define $ac_tr_func 1 | |
8986 | EOF | |
8987 | ||
8988 | else | |
8989 | echo "$ac_t""no" 1>&6 | |
8990 | fi | |
8991 | done | |
8992 | ||
8993 | else | |
8994 | echo "$ac_t""no" 1>&6 | |
8995 | fi | |
8996 | ||
8997 | ||
4f14bcd8 GD |
8998 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
8999 | if test "$wxUSE_REGEX" = "sys" ; then | |
9000 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9001 | else | |
9002 | echo "configure: warning: system regex library not found, will compile built-in version instead" 1>&2 | |
9003 | wxUSE_REGEX=builtin | |
9004 | fi | |
9005 | else | |
9006 | wxUSE_REGEX=sys | |
18dbb1f6 | 9007 | fi |
18dbb1f6 VZ |
9008 | fi |
9009 | ||
4f14bcd8 GD |
9010 | if test "$wxUSE_REGEX" = "builtin" ; then |
9011 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9012 | fi | |
18dbb1f6 VZ |
9013 | fi |
9014 | ||
9015 | ||
4f14bcd8 GD |
9016 | ZLIB_INCLUDE= |
9017 | ZLIB_LINK= | |
9018 | if test "$wxUSE_ZLIB" != "no" ; then | |
9019 | cat >> confdefs.h <<\EOF | |
9020 | #define wxUSE_ZLIB 1 | |
9021 | EOF | |
dad6c0ea | 9022 | |
10f2d63a | 9023 | |
4f14bcd8 GD |
9024 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9025 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9026 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
9027 | echo "configure:9028: checking for zlib.h" >&5 | |
3a922bb4 RL |
9028 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9030 | else | |
9031 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 9032 | #line 9033 "configure" |
3a922bb4 | 9033 | #include "confdefs.h" |
4f14bcd8 | 9034 | #include <zlib.h> |
3a922bb4 RL |
9035 | EOF |
9036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 9037 | { (eval echo configure:9038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9039 | if test -z "$ac_err"; then | |
9040 | rm -rf conftest* | |
9041 | eval "ac_cv_header_$ac_safe=yes" | |
9042 | else | |
9043 | echo "$ac_err" >&5 | |
9044 | echo "configure: failed program was:" >&5 | |
9045 | cat conftest.$ac_ext >&5 | |
9046 | rm -rf conftest* | |
9047 | eval "ac_cv_header_$ac_safe=no" | |
9048 | fi | |
9049 | rm -f conftest* | |
9050 | fi | |
9051 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9052 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
9053 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
9054 | echo "configure:9055: checking for deflate in -lz" >&5 | |
9055 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
9056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9058 | else | |
9059 | ac_save_LIBS="$LIBS" | |
9060 | LIBS="-lz $LIBS" | |
9061 | cat > conftest.$ac_ext <<EOF | |
9062 | #line 9063 "configure" | |
9063 | #include "confdefs.h" | |
9064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9065 | /* We use char because int might match the return type of a gcc2 | |
9066 | builtin and then its argument prototype would still apply. */ | |
9067 | char deflate(); | |
9068 | ||
9069 | int main() { | |
9070 | deflate() | |
9071 | ; return 0; } | |
3a922bb4 | 9072 | EOF |
4f14bcd8 GD |
9073 | if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9074 | rm -rf conftest* | |
9075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9076 | else | |
9077 | echo "configure: failed program was:" >&5 | |
9078 | cat conftest.$ac_ext >&5 | |
9079 | rm -rf conftest* | |
9080 | eval "ac_cv_lib_$ac_lib_var=no" | |
9081 | fi | |
9082 | rm -f conftest* | |
9083 | LIBS="$ac_save_LIBS" | |
9084 | ||
9085 | fi | |
9086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9087 | echo "$ac_t""yes" 1>&6 | |
9088 | ZLIB_LINK="-lz" | |
3a922bb4 RL |
9089 | else |
9090 | echo "$ac_t""no" 1>&6 | |
9091 | fi | |
10f2d63a | 9092 | |
4f14bcd8 GD |
9093 | else |
9094 | echo "$ac_t""no" 1>&6 | |
9095 | fi | |
9096 | ||
9097 | ||
9098 | if test "x$ZLIB_LINK" = "x" ; then | |
9099 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9100 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9101 | else | |
9102 | echo "configure: warning: system zlib compression library not found, will compile built-in version instead" 1>&2 | |
9103 | wxUSE_ZLIB=builtin | |
9104 | fi | |
9105 | else | |
9106 | wxUSE_ZLIB=sys | |
9107 | fi | |
9108 | fi | |
9109 | ||
9110 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9111 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9112 | fi | |
9113 | fi | |
9114 | ||
9115 | ||
9116 | PNG_INCLUDE= | |
9117 | PNG_LINK= | |
9118 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9119 | cat >> confdefs.h <<\EOF | |
9120 | #define wxUSE_LIBPNG 1 | |
9121 | EOF | |
9122 | ||
9123 | ||
9124 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
9125 | echo "configure: warning: system png library doesn't work without system zlib, will compile built-in instead" 1>&2 | |
9126 | wxUSE_LIBPNG=builtin | |
9127 | fi | |
9128 | ||
9129 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9130 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9131 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
9132 | echo "configure:9133: checking for png.h" >&5 | |
d4158b5d VS |
9133 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9135 | else | |
9136 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 9137 | #line 9138 "configure" |
d4158b5d | 9138 | #include "confdefs.h" |
4f14bcd8 | 9139 | #include <png.h> |
d4158b5d VS |
9140 | EOF |
9141 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 9142 | { (eval echo configure:9143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9143 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9144 | if test -z "$ac_err"; then | |
9145 | rm -rf conftest* | |
9146 | eval "ac_cv_header_$ac_safe=yes" | |
9147 | else | |
9148 | echo "$ac_err" >&5 | |
9149 | echo "configure: failed program was:" >&5 | |
9150 | cat conftest.$ac_ext >&5 | |
9151 | rm -rf conftest* | |
9152 | eval "ac_cv_header_$ac_safe=no" | |
9153 | fi | |
9154 | rm -f conftest* | |
9155 | fi | |
9156 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9157 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
9158 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
9159 | echo "configure:9160: checking for png_check_sig in -lpng" >&5 | |
9160 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
9161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9162 | echo $ac_n "(cached) $ac_c" 1>&6 |
9163 | else | |
4f14bcd8 GD |
9164 | ac_save_LIBS="$LIBS" |
9165 | LIBS="-lpng -lz -lm $LIBS" | |
9166 | cat > conftest.$ac_ext <<EOF | |
9167 | #line 9168 "configure" | |
3a922bb4 | 9168 | #include "confdefs.h" |
4f14bcd8 GD |
9169 | /* Override any gcc2 internal prototype to avoid an error. */ |
9170 | /* We use char because int might match the return type of a gcc2 | |
9171 | builtin and then its argument prototype would still apply. */ | |
9172 | char png_check_sig(); | |
f6bcfd97 | 9173 | |
4f14bcd8 GD |
9174 | int main() { |
9175 | png_check_sig() | |
3a922bb4 RL |
9176 | ; return 0; } |
9177 | EOF | |
4f14bcd8 | 9178 | if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9179 | rm -rf conftest* |
4f14bcd8 | 9180 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9181 | else |
9182 | echo "configure: failed program was:" >&5 | |
9183 | cat conftest.$ac_ext >&5 | |
9184 | rm -rf conftest* | |
4f14bcd8 | 9185 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9186 | fi |
9187 | rm -f conftest* | |
4f14bcd8 | 9188 | LIBS="$ac_save_LIBS" |
10f2d63a | 9189 | |
4f14bcd8 GD |
9190 | fi |
9191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9192 | echo "$ac_t""yes" 1>&6 | |
9193 | PNG_LINK="-lpng" | |
9194 | else | |
9195 | echo "$ac_t""no" 1>&6 | |
9196 | fi | |
32832908 | 9197 | |
4f14bcd8 GD |
9198 | |
9199 | else | |
9200 | echo "$ac_t""no" 1>&6 | |
9201 | fi | |
3a922bb4 | 9202 | |
7b7a7637 | 9203 | |
4f14bcd8 GD |
9204 | if test "x$PNG_LINK" = "x" ; then |
9205 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9206 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9207 | else | |
9208 | echo "configure: warning: system png library not found, will compile built-in version instead" 1>&2 | |
9209 | wxUSE_LIBPNG=builtin | |
9210 | fi | |
9211 | else | |
9212 | wxUSE_LIBPNG=yes | |
9213 | fi | |
3a922bb4 RL |
9214 | fi |
9215 | ||
4f14bcd8 GD |
9216 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9217 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9218 | fi |
9219 | ||
4f14bcd8 | 9220 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9221 | fi |
9222 | ||
32832908 | 9223 | |
4f14bcd8 GD |
9224 | JPEG_INCLUDE= |
9225 | JPEG_LINK= | |
9226 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9227 | cat >> confdefs.h <<\EOF | |
9228 | #define wxUSE_LIBJPEG 1 | |
9229 | EOF | |
10f2d63a | 9230 | |
8168de4c | 9231 | |
4f14bcd8 GD |
9232 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9233 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
9234 | echo "configure:9235: checking for jpeglib.h" >&5 | |
9235 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
8168de4c VZ |
9236 | echo $ac_n "(cached) $ac_c" 1>&6 |
9237 | else | |
4f14bcd8 GD |
9238 | cat > conftest.$ac_ext <<EOF |
9239 | #line 9240 "configure" | |
9240 | #include "confdefs.h" | |
8168de4c | 9241 | |
4f14bcd8 GD |
9242 | #undef HAVE_STDLIB_H |
9243 | #include <stdio.h> | |
9244 | #include <jpeglib.h> | |
9245 | ||
9246 | int main() { | |
9247 | ||
9248 | ||
9249 | ; return 0; } | |
9250 | EOF | |
9251 | if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9252 | rm -rf conftest* | |
9253 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9254 | else |
4f14bcd8 GD |
9255 | echo "configure: failed program was:" >&5 |
9256 | cat conftest.$ac_ext >&5 | |
9257 | rm -rf conftest* | |
9258 | ac_cv_header_jpeglib_h=no | |
9259 | ||
9260 | fi | |
9261 | rm -f conftest* | |
9262 | ||
698dcdb6 | 9263 | fi |
6f72b082 | 9264 | |
4f14bcd8 GD |
9265 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9266 | ||
9267 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9268 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
9269 | echo "configure:9270: checking for jpeg_read_header in -ljpeg" >&5 | |
9270 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
9271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9273 | else |
4f14bcd8 GD |
9274 | ac_save_LIBS="$LIBS" |
9275 | LIBS="-ljpeg $LIBS" | |
9276 | cat > conftest.$ac_ext <<EOF | |
9277 | #line 9278 "configure" | |
9278 | #include "confdefs.h" | |
9279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9280 | /* We use char because int might match the return type of a gcc2 | |
9281 | builtin and then its argument prototype would still apply. */ | |
9282 | char jpeg_read_header(); | |
698dcdb6 | 9283 | |
4f14bcd8 GD |
9284 | int main() { |
9285 | jpeg_read_header() | |
9286 | ; return 0; } | |
9287 | EOF | |
9288 | if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9289 | rm -rf conftest* | |
9290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9291 | else |
4f14bcd8 GD |
9292 | echo "configure: failed program was:" >&5 |
9293 | cat conftest.$ac_ext >&5 | |
9294 | rm -rf conftest* | |
9295 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9296 | fi |
4f14bcd8 GD |
9297 | rm -f conftest* |
9298 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9299 | |
4f14bcd8 GD |
9300 | fi |
9301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9302 | echo "$ac_t""yes" 1>&6 | |
9303 | JPEG_LINK="-ljpeg" | |
9304 | else | |
9305 | echo "$ac_t""no" 1>&6 | |
9306 | fi | |
9307 | ||
9308 | fi | |
9309 | ||
9310 | if test "x$JPEG_LINK" = "x" ; then | |
9311 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9312 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9313 | else | |
9314 | echo "configure: warning: system jpeg library not found, will compile built-in version instead" 1>&2 | |
9315 | wxUSE_LIBJPEG=builtin | |
9316 | fi | |
9317 | else | |
9318 | wxUSE_LIBJPEG=sys | |
9319 | fi | |
9320 | fi | |
9321 | ||
9322 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9323 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9324 | fi | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | TIFF_INCLUDE= | |
9329 | TIFF_LINK= | |
9330 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9331 | cat >> confdefs.h <<\EOF | |
9332 | #define wxUSE_LIBTIFF 1 | |
9333 | EOF | |
9334 | ||
9335 | ||
9336 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9337 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9338 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
9339 | echo "configure:9340: checking for tiffio.h" >&5 | |
9340 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9342 | else | |
9343 | cat > conftest.$ac_ext <<EOF | |
9344 | #line 9345 "configure" | |
9345 | #include "confdefs.h" | |
9346 | #include <tiffio.h> | |
9347 | EOF | |
9348 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9349 | { (eval echo configure:9350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9350 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9351 | if test -z "$ac_err"; then | |
9352 | rm -rf conftest* | |
9353 | eval "ac_cv_header_$ac_safe=yes" | |
9354 | else | |
9355 | echo "$ac_err" >&5 | |
9356 | echo "configure: failed program was:" >&5 | |
9357 | cat conftest.$ac_ext >&5 | |
9358 | rm -rf conftest* | |
9359 | eval "ac_cv_header_$ac_safe=no" | |
9360 | fi | |
9361 | rm -f conftest* | |
9362 | fi | |
9363 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9364 | echo "$ac_t""yes" 1>&6 | |
9365 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
9366 | echo "configure:9367: checking for TIFFError in -ltiff" >&5 | |
9367 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
9368 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9370 | else | |
9371 | ac_save_LIBS="$LIBS" | |
9372 | LIBS="-ltiff -lm $LIBS" | |
9373 | cat > conftest.$ac_ext <<EOF | |
9374 | #line 9375 "configure" | |
9375 | #include "confdefs.h" | |
9376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9377 | /* We use char because int might match the return type of a gcc2 | |
9378 | builtin and then its argument prototype would still apply. */ | |
9379 | char TIFFError(); | |
9380 | ||
9381 | int main() { | |
9382 | TIFFError() | |
9383 | ; return 0; } | |
9384 | EOF | |
9385 | if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9386 | rm -rf conftest* | |
9387 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9388 | else | |
9389 | echo "configure: failed program was:" >&5 | |
9390 | cat conftest.$ac_ext >&5 | |
9391 | rm -rf conftest* | |
9392 | eval "ac_cv_lib_$ac_lib_var=no" | |
9393 | fi | |
9394 | rm -f conftest* | |
9395 | LIBS="$ac_save_LIBS" | |
9396 | ||
9397 | fi | |
9398 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9399 | echo "$ac_t""yes" 1>&6 | |
9400 | TIFF_LINK="-ltiff" | |
9401 | else | |
9402 | echo "$ac_t""no" 1>&6 | |
9403 | fi | |
9404 | ||
9405 | ||
9406 | else | |
9407 | echo "$ac_t""no" 1>&6 | |
9408 | fi | |
9409 | ||
9410 | ||
9411 | if test "x$TIFF_LINK" = "x" ; then | |
9412 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9413 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9414 | else | |
9415 | echo "configure: warning: system tiff library not found, will compile built-in version instead" 1>&2 | |
9416 | wxUSE_LIBTIFF=builtin | |
9417 | fi | |
9418 | else | |
9419 | wxUSE_LIBTIFF=sys | |
9420 | fi | |
9421 | fi | |
9422 | ||
9423 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9424 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9425 | fi | |
9426 | fi | |
9427 | ||
9428 | ||
9429 | FREETYPE_INCLUDE= | |
9430 | FREETYPE_LINK= | |
9431 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9432 | cat >> confdefs.h <<\EOF | |
9433 | #define wxUSE_FREETYPE 1 | |
9434 | EOF | |
9435 | ||
9436 | ||
9437 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9438 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9439 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
9440 | echo "configure:9441: checking for freetype.h" >&5 | |
9441 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9443 | else | |
9444 | cat > conftest.$ac_ext <<EOF | |
9445 | #line 9446 "configure" | |
9446 | #include "confdefs.h" | |
9447 | #include <freetype.h> | |
9448 | EOF | |
9449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9450 | { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9452 | if test -z "$ac_err"; then | |
9453 | rm -rf conftest* | |
9454 | eval "ac_cv_header_$ac_safe=yes" | |
9455 | else | |
9456 | echo "$ac_err" >&5 | |
9457 | echo "configure: failed program was:" >&5 | |
9458 | cat conftest.$ac_ext >&5 | |
9459 | rm -rf conftest* | |
9460 | eval "ac_cv_header_$ac_safe=no" | |
9461 | fi | |
9462 | rm -f conftest* | |
9463 | fi | |
9464 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9465 | echo "$ac_t""yes" 1>&6 | |
9466 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
9467 | echo "configure:9468: checking for FT_Render_Glyph in -lfreetype" >&5 | |
9468 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` | |
9469 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9471 | else | |
9472 | ac_save_LIBS="$LIBS" | |
9473 | LIBS="-lfreetype -lm $LIBS" | |
9474 | cat > conftest.$ac_ext <<EOF | |
9475 | #line 9476 "configure" | |
9476 | #include "confdefs.h" | |
9477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9478 | /* We use char because int might match the return type of a gcc2 | |
9479 | builtin and then its argument prototype would still apply. */ | |
9480 | char FT_Render_Glyph(); | |
9481 | ||
9482 | int main() { | |
9483 | FT_Render_Glyph() | |
9484 | ; return 0; } | |
9485 | EOF | |
9486 | if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9487 | rm -rf conftest* | |
9488 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9489 | else | |
9490 | echo "configure: failed program was:" >&5 | |
9491 | cat conftest.$ac_ext >&5 | |
9492 | rm -rf conftest* | |
9493 | eval "ac_cv_lib_$ac_lib_var=no" | |
9494 | fi | |
9495 | rm -f conftest* | |
9496 | LIBS="$ac_save_LIBS" | |
9497 | ||
9498 | fi | |
9499 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9500 | echo "$ac_t""yes" 1>&6 | |
9501 | FREETYPE_LINK="-lfreetype" | |
9502 | else | |
9503 | echo "$ac_t""no" 1>&6 | |
9504 | fi | |
9505 | ||
9506 | ||
9507 | else | |
9508 | echo "$ac_t""no" 1>&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | if test "x$FREETYPE_LINK" = "x" ; then | |
9513 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9514 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9515 | else | |
9516 | echo "configure: warning: system freetype library not found, will compile built-in version instead" 1>&2 | |
9517 | wxUSE_FREETYPE=builtin | |
9518 | fi | |
9519 | else | |
9520 | wxUSE_FREETYPE=sys | |
9521 | fi | |
9522 | fi | |
9523 | ||
9524 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9525 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9526 | fi | |
9527 | fi | |
9528 | ||
9529 | ||
9530 | AFMINSTALL= | |
9531 | ||
9532 | TOOLKIT= | |
9533 | TOOLKIT_INCLUDE= | |
9534 | WIDGET_SET= | |
9535 | ||
9536 | if test "$USE_WIN32" = 1 ; then | |
9537 | for ac_hdr in w32api.h | |
9538 | do | |
9539 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9540 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9541 | echo "configure:9542: checking for $ac_hdr" >&5 | |
9542 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9544 | else | |
9545 | cat > conftest.$ac_ext <<EOF | |
9546 | #line 9547 "configure" | |
9547 | #include "confdefs.h" | |
9548 | #include <$ac_hdr> | |
9549 | EOF | |
9550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9551 | { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9553 | if test -z "$ac_err"; then | |
9554 | rm -rf conftest* | |
9555 | eval "ac_cv_header_$ac_safe=yes" | |
9556 | else | |
9557 | echo "$ac_err" >&5 | |
9558 | echo "configure: failed program was:" >&5 | |
9559 | cat conftest.$ac_ext >&5 | |
9560 | rm -rf conftest* | |
9561 | eval "ac_cv_header_$ac_safe=no" | |
9562 | fi | |
9563 | rm -f conftest* | |
9564 | fi | |
9565 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9566 | echo "$ac_t""yes" 1>&6 | |
9567 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9568 | cat >> confdefs.h <<EOF | |
9569 | #define $ac_tr_hdr 1 | |
9570 | EOF | |
9571 | ||
9572 | else | |
9573 | echo "$ac_t""no" 1>&6 | |
9574 | fi | |
9575 | done | |
9576 | ||
9577 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9578 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
9579 | echo "configure:9580: checking for windows.h" >&5 | |
9580 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9582 | else | |
9583 | cat > conftest.$ac_ext <<EOF | |
9584 | #line 9585 "configure" | |
9585 | #include "confdefs.h" | |
9586 | #include <windows.h> | |
9587 | EOF | |
9588 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9589 | { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9590 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9591 | if test -z "$ac_err"; then | |
9592 | rm -rf conftest* | |
9593 | eval "ac_cv_header_$ac_safe=yes" | |
9594 | else | |
9595 | echo "$ac_err" >&5 | |
9596 | echo "configure: failed program was:" >&5 | |
9597 | cat conftest.$ac_ext >&5 | |
9598 | rm -rf conftest* | |
9599 | eval "ac_cv_header_$ac_safe=no" | |
9600 | fi | |
9601 | rm -f conftest* | |
9602 | fi | |
9603 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9604 | echo "$ac_t""yes" 1>&6 | |
9605 | : | |
9606 | else | |
9607 | echo "$ac_t""no" 1>&6 | |
9608 | ||
9609 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9610 | ||
9611 | fi | |
9612 | ||
9613 | ||
9614 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
9615 | echo "configure:9616: checking if w32api has good enough MSIE support" >&5 | |
9616 | if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then | |
9617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9618 | else | |
9619 | ||
9620 | cat > conftest.$ac_ext <<EOF | |
9621 | #line 9622 "configure" | |
9622 | #include "confdefs.h" | |
9623 | #include <w32api.h> | |
9624 | int main() { | |
9625 | ||
9626 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9627 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9628 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9629 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9630 | ||
9631 | #if !wxCHECK_W32API_VERSION(1,1) | |
9632 | #error You need w32api 1.1 or newer | |
9633 | #endif | |
9634 | ||
9635 | ; return 0; } | |
9636 | EOF | |
9637 | if { (eval echo configure:9638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9638 | rm -rf conftest* | |
9639 | ||
9640 | wx_cv_w32api_win_ie=yes | |
9641 | CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400" | |
9642 | ||
9643 | else | |
9644 | echo "configure: failed program was:" >&5 | |
9645 | cat conftest.$ac_ext >&5 | |
9646 | rm -rf conftest* | |
9647 | ||
9648 | wx_cv_w32api_win_ie=no | |
9649 | ||
9650 | fi | |
9651 | rm -f conftest* | |
9652 | ||
9653 | fi | |
9654 | ||
9655 | echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6 | |
9656 | ||
9657 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9658 | ||
9659 | if test "$wxUSE_CYGWIN" = 1; then | |
9660 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9661 | fi | |
9662 | ||
9663 | if test "$wxUSE_ODBC" = "yes" ; then | |
9664 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9665 | fi | |
9666 | ||
9667 | if test "$wxUSE_MINGW" = 1; then | |
9668 | LDFLAGS="$LDFLAGS -mwindows" | |
9669 | fi | |
9670 | ||
9671 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
9672 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9673 | fi | |
9674 | ||
9675 | if test "$wxUSE_GUI" = "yes"; then | |
9676 | USE_GUI=1 | |
9677 | ||
9678 | GUI_TK_LIBRARY= | |
9679 | ||
9680 | WXGTK12= | |
9681 | WXGTK127= | |
9682 | WXGTK20= | |
9683 | ||
9684 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
9685 | TOOLKIT=MSW | |
9686 | GUIDIST=MSW_DIST | |
9687 | fi | |
9688 | ||
9689 | if test "$wxUSE_GTK" = 1; then | |
9690 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
9691 | echo "configure:9692: checking for GTK+ version" >&5 | |
9692 | ||
9693 | gtk_version_cached=1 | |
9694 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9696 | else | |
9697 | ||
9698 | gtk_version_cached=0 | |
9699 | echo "$ac_t""""" 1>&6 | |
9700 | ||
9701 | wx_cv_lib_gtk= | |
9702 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9703 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9704 | if test "${with_gtk_prefix+set}" = set; then | |
9705 | withval="$with_gtk_prefix" | |
9706 | gtk_config_prefix="$withval" | |
9707 | else | |
9708 | gtk_config_prefix="" | |
9709 | fi | |
9710 | ||
9711 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9712 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9713 | withval="$with_gtk_exec_prefix" | |
9714 | gtk_config_exec_prefix="$withval" | |
9715 | else | |
9716 | gtk_config_exec_prefix="" | |
9717 | fi | |
9718 | ||
9719 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9720 | if test "${enable_gtktest+set}" = set; then | |
9721 | enableval="$enable_gtktest" | |
9722 | : | |
9723 | else | |
9724 | enable_gtktest=yes | |
9725 | fi | |
9726 | ||
9727 | ||
9728 | for module in . | |
9729 | do | |
6f72b082 | 9730 | case "$module" in |
8168de4c | 9731 | gthread) |
6f72b082 OK |
9732 | gtk_config_args="$gtk_config_args gthread" |
9733 | ;; | |
9734 | esac | |
9735 | done | |
9736 | ||
9737 | if test x$gtk_config_exec_prefix != x ; then | |
9738 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9739 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9740 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9741 | fi | |
9742 | fi | |
9743 | if test x$gtk_config_prefix != x ; then | |
9744 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9745 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9746 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9747 | fi | |
9748 | fi | |
9749 | ||
9750 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9751 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9752 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 9753 | echo "configure:9754: checking for $ac_word" >&5 |
698dcdb6 VZ |
9754 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9756 | else |
698dcdb6 VZ |
9757 | case "$GTK_CONFIG_2_0" in |
9758 | /*) | |
6f72b082 OK |
9759 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9760 | ;; | |
698dcdb6 VZ |
9761 | ?:/*) |
9762 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9763 | ;; | |
6f72b082 | 9764 | *) |
698dcdb6 VZ |
9765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9766 | ac_dummy="$PATH" | |
9767 | for ac_dir in $ac_dummy; do | |
9768 | test -z "$ac_dir" && ac_dir=. | |
9769 | if test -f $ac_dir/$ac_word; then | |
9770 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9771 | break | |
9772 | fi | |
9773 | done | |
9774 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9775 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9776 | ;; | |
9777 | esac | |
9778 | fi | |
698dcdb6 | 9779 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9780 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9781 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9782 | else |
698dcdb6 | 9783 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9784 | fi |
9785 | ||
9786 | min_gtk_version=1.3.1 | |
698dcdb6 | 9787 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4f14bcd8 | 9788 | echo "configure:9789: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9789 | no_gtk="" |
9790 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9791 | no_gtk=yes | |
9792 | else | |
9793 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9794 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9795 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9796 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9797 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9798 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9799 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9800 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9801 | if test "x$enable_gtktest" = "xyes" ; then | |
9802 | ac_save_CFLAGS="$CFLAGS" | |
9803 | ac_save_LIBS="$LIBS" | |
9804 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9805 | LIBS="$GTK_LIBS $LIBS" | |
9806 | rm -f conf.gtktest | |
9807 | if test "$cross_compiling" = yes; then | |
9808 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9809 | else | |
698dcdb6 | 9810 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 9811 | #line 9812 "configure" |
6f72b082 OK |
9812 | #include "confdefs.h" |
9813 | ||
9814 | #include <gtk/gtk.h> | |
9815 | #include <stdio.h> | |
9816 | #include <stdlib.h> | |
9817 | ||
8168de4c | 9818 | int |
6f72b082 OK |
9819 | main () |
9820 | { | |
9821 | int major, minor, micro; | |
9822 | char *tmp_version; | |
9823 | ||
9824 | system ("touch conf.gtktest"); | |
9825 | ||
9826 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9827 | tmp_version = g_strdup("$min_gtk_version"); | |
9828 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9829 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9830 | exit(1); | |
9831 | } | |
9832 | ||
9833 | if ((gtk_major_version != $gtk_config_major_version) || | |
9834 | (gtk_minor_version != $gtk_config_minor_version) || | |
9835 | (gtk_micro_version != $gtk_config_micro_version)) | |
9836 | { | |
8168de4c | 9837 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9838 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9839 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9840 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9841 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9842 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9843 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9844 | printf("*** required on your system.\n"); | |
9845 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9846 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9847 | printf("*** before re-running configure\n"); | |
8168de4c | 9848 | } |
6f72b082 OK |
9849 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9850 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9851 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9852 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9853 | { | |
9854 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9855 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9856 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9857 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9858 | } |
9859 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9860 | else | |
9861 | { | |
9862 | if ((gtk_major_version > major) || | |
9863 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9864 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9865 | { | |
9866 | return 0; | |
9867 | } | |
9868 | else | |
9869 | { | |
9870 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9871 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9872 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9873 | major, minor, micro); |
6f72b082 OK |
9874 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9875 | printf("***\n"); | |
9876 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9877 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9878 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9879 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9880 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9881 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9882 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9883 | } | |
9884 | } | |
9885 | return 1; | |
9886 | } | |
9887 | ||
698dcdb6 | 9888 | EOF |
4f14bcd8 | 9889 | if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9890 | then |
6f72b082 OK |
9891 | : |
9892 | else | |
698dcdb6 VZ |
9893 | echo "configure: failed program was:" >&5 |
9894 | cat conftest.$ac_ext >&5 | |
9895 | rm -fr conftest* | |
9896 | no_gtk=yes | |
6f72b082 | 9897 | fi |
698dcdb6 | 9898 | rm -fr conftest* |
6f72b082 | 9899 | fi |
698dcdb6 | 9900 | |
6f72b082 OK |
9901 | CFLAGS="$ac_save_CFLAGS" |
9902 | LIBS="$ac_save_LIBS" | |
9903 | fi | |
9904 | fi | |
9905 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9906 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9907 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9908 | else |
698dcdb6 | 9909 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9910 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9911 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9912 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9913 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9914 | echo "*** full path to gtk-config-2.0." | |
9915 | else | |
9916 | if test -f conf.gtktest ; then | |
9917 | : | |
9918 | else | |
9919 | echo "*** Could not run GTK test program, checking why..." | |
9920 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9921 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9922 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 9923 | #line 9924 "configure" |
6f72b082 OK |
9924 | #include "confdefs.h" |
9925 | ||
9926 | #include <gtk/gtk.h> | |
9927 | #include <stdio.h> | |
9928 | ||
698dcdb6 VZ |
9929 | int main() { |
9930 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9931 | ; return 0; } | |
9932 | EOF | |
4f14bcd8 | 9933 | if { (eval echo configure:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9934 | rm -rf conftest* |
6f72b082 OK |
9935 | echo "*** The test program compiled, but did not run. This usually means" |
9936 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9937 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9938 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9939 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9940 | echo "*** is required on your system" | |
8168de4c | 9941 | echo "***" |
6f72b082 OK |
9942 | echo "*** If you have an old version installed, it is best to remove it, although" |
9943 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9944 | echo "***" | |
9945 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9946 | echo "*** came with the system with the command" | |
9947 | echo "***" | |
698dcdb6 | 9948 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9949 | else |
698dcdb6 VZ |
9950 | echo "configure: failed program was:" >&5 |
9951 | cat conftest.$ac_ext >&5 | |
9952 | rm -rf conftest* | |
9953 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9954 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9955 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9956 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9957 | fi |
698dcdb6 | 9958 | rm -f conftest* |
6f72b082 OK |
9959 | CFLAGS="$ac_save_CFLAGS" |
9960 | LIBS="$ac_save_LIBS" | |
9961 | fi | |
9962 | fi | |
9963 | GTK_CFLAGS="" | |
9964 | GTK_LIBS="" | |
8168de4c VZ |
9965 | gthread |
9966 | fi | |
9967 | ||
9968 | ||
9969 | rm -f conf.gtktest | |
9970 | ||
9971 | fi | |
9972 | ||
9973 | if test -z "$wx_cv_lib_gtk"; then | |
9974 | ||
10f2d63a VZ |
9975 | if test x$gtk_config_exec_prefix != x ; then |
9976 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9977 | if test x${GTK_CONFIG+set} != xset ; then | |
9978 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9979 | fi | |
9980 | fi | |
9981 | if test x$gtk_config_prefix != x ; then | |
9982 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9983 | if test x${GTK_CONFIG+set} != xset ; then | |
9984 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9985 | fi | |
9986 | fi | |
9987 | ||
9988 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9989 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9990 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 9991 | echo "configure:9992: checking for $ac_word" >&5 |
698dcdb6 VZ |
9992 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9994 | else |
698dcdb6 VZ |
9995 | case "$GTK_CONFIG" in |
9996 | /*) | |
f6bcfd97 BP |
9997 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9998 | ;; | |
698dcdb6 VZ |
9999 | ?:/*) |
10000 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10001 | ;; | |
f6bcfd97 | 10002 | *) |
698dcdb6 VZ |
10003 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10004 | ac_dummy="$PATH" | |
10005 | for ac_dir in $ac_dummy; do | |
10006 | test -z "$ac_dir" && ac_dir=. | |
10007 | if test -f $ac_dir/$ac_word; then | |
10008 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10009 | break | |
10010 | fi | |
10011 | done | |
10012 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10013 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10014 | ;; | |
10015 | esac | |
10016 | fi | |
698dcdb6 | 10017 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10018 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10019 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10020 | else |
698dcdb6 | 10021 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10022 | fi |
10023 | ||
10024 | min_gtk_version=1.2.7 | |
698dcdb6 | 10025 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4f14bcd8 | 10026 | echo "configure:10027: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
10027 | no_gtk="" |
10028 | if test "$GTK_CONFIG" != "no" ; then | |
10029 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
10030 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
10031 | ac_save_CFLAGS="$CFLAGS" | |
10032 | ac_save_LIBS="$LIBS" | |
10033 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10034 | LIBS="$LIBS $GTK_LIBS" | |
10035 | if test "$cross_compiling" = yes; then | |
10036 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10037 | else | |
698dcdb6 | 10038 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10039 | #line 10040 "configure" |
f6bcfd97 BP |
10040 | #include "confdefs.h" |
10041 | ||
10042 | #include <gtk/gtk.h> | |
10043 | #include <gtk/gtkfeatures.h> | |
10044 | #include <stdio.h> | |
10045 | #include <stdlib.h> | |
10046 | ||
10047 | int | |
10048 | main () | |
10049 | { | |
10050 | int major, minor, micro; | |
10051 | ||
10052 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10053 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10054 | exit(1); | |
10055 | } | |
10056 | ||
10057 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
10058 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10059 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10060 | printf("Headers vs. library version mismatch!\n"); | |
10061 | exit(1); | |
10062 | } | |
10063 | ||
10064 | if (gtk_minor_version == 1) return FALSE; | |
10065 | ||
10066 | return !((gtk_major_version > major) || | |
10067 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10068 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10069 | } | |
10070 | ||
698dcdb6 | 10071 | EOF |
4f14bcd8 | 10072 | if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10073 | then |
f6bcfd97 BP |
10074 | : |
10075 | else | |
698dcdb6 VZ |
10076 | echo "configure: failed program was:" >&5 |
10077 | cat conftest.$ac_ext >&5 | |
10078 | rm -fr conftest* | |
10079 | no_gtk=yes | |
f6bcfd97 | 10080 | fi |
698dcdb6 | 10081 | rm -fr conftest* |
f6bcfd97 | 10082 | fi |
698dcdb6 | 10083 | |
f6bcfd97 BP |
10084 | CFLAGS="$ac_save_CFLAGS" |
10085 | LIBS="$ac_save_LIBS" | |
10086 | else | |
10087 | no_gtk=yes | |
10088 | fi | |
10089 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10090 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10091 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10092 | else |
698dcdb6 | 10093 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10094 | GTK_CFLAGS="" |
10095 | GTK_LIBS="" | |
10096 | : | |
10097 | fi | |
698dcdb6 VZ |
10098 | |
10099 | ||
f6bcfd97 | 10100 | |
8168de4c VZ |
10101 | fi |
10102 | ||
10103 | if test -z "$wx_cv_lib_gtk"; then | |
10104 | ||
f6bcfd97 BP |
10105 | if test x$gtk_config_exec_prefix != x ; then |
10106 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10107 | if test x${GTK_CONFIG+set} != xset ; then | |
10108 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10109 | fi | |
10110 | fi | |
10111 | if test x$gtk_config_prefix != x ; then | |
10112 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10113 | if test x${GTK_CONFIG+set} != xset ; then | |
10114 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10115 | fi | |
10116 | fi | |
10117 | ||
10118 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10119 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10120 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4f14bcd8 | 10121 | echo "configure:10122: checking for $ac_word" >&5 |
698dcdb6 VZ |
10122 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10124 | else |
698dcdb6 VZ |
10125 | case "$GTK_CONFIG" in |
10126 | /*) | |
10f2d63a VZ |
10127 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10128 | ;; | |
698dcdb6 VZ |
10129 | ?:/*) |
10130 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10131 | ;; | |
10f2d63a | 10132 | *) |
698dcdb6 VZ |
10133 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10134 | ac_dummy="$PATH" | |
10135 | for ac_dir in $ac_dummy; do | |
10136 | test -z "$ac_dir" && ac_dir=. | |
10137 | if test -f $ac_dir/$ac_word; then | |
10138 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10139 | break | |
10140 | fi | |
10141 | done | |
10142 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10143 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10144 | ;; | |
10145 | esac | |
10146 | fi | |
698dcdb6 | 10147 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10148 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10149 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10150 | else |
698dcdb6 | 10151 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10152 | fi |
10153 | ||
04165bec | 10154 | min_gtk_version=1.2.3 |
698dcdb6 | 10155 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
4f14bcd8 | 10156 | echo "configure:10157: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
10157 | no_gtk="" |
10158 | if test "$GTK_CONFIG" != "no" ; then | |
10159 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 10160 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
10161 | ac_save_CFLAGS="$CFLAGS" |
10162 | ac_save_LIBS="$LIBS" | |
10163 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10164 | LIBS="$LIBS $GTK_LIBS" | |
10165 | if test "$cross_compiling" = yes; then | |
10166 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10167 | else | |
698dcdb6 | 10168 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10169 | #line 10170 "configure" |
10f2d63a VZ |
10170 | #include "confdefs.h" |
10171 | ||
10172 | #include <gtk/gtk.h> | |
f49f2b0c | 10173 | #include <gtk/gtkfeatures.h> |
10f2d63a | 10174 | #include <stdio.h> |
32832908 | 10175 | #include <stdlib.h> |
10f2d63a VZ |
10176 | |
10177 | int | |
10178 | main () | |
10179 | { | |
10180 | int major, minor, micro; | |
10181 | ||
10182 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10183 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10184 | exit(1); | |
10185 | } | |
10186 | ||
f49f2b0c RR |
10187 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
10188 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10189 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10190 | printf("Headers vs. library version mismatch!\n"); | |
10191 | exit(1); | |
10192 | } | |
10193 | ||
10f2d63a VZ |
10194 | if (gtk_minor_version == 1) return FALSE; |
10195 | ||
10196 | return !((gtk_major_version > major) || | |
10197 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10198 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10199 | } | |
10200 | ||
698dcdb6 | 10201 | EOF |
4f14bcd8 | 10202 | if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10203 | then |
10f2d63a VZ |
10204 | : |
10205 | else | |
698dcdb6 VZ |
10206 | echo "configure: failed program was:" >&5 |
10207 | cat conftest.$ac_ext >&5 | |
10208 | rm -fr conftest* | |
10209 | no_gtk=yes | |
10f2d63a | 10210 | fi |
698dcdb6 | 10211 | rm -fr conftest* |
10f2d63a | 10212 | fi |
698dcdb6 | 10213 | |
10f2d63a VZ |
10214 | CFLAGS="$ac_save_CFLAGS" |
10215 | LIBS="$ac_save_LIBS" | |
10216 | else | |
10217 | no_gtk=yes | |
10218 | fi | |
10219 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10220 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10221 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10222 | else |
698dcdb6 | 10223 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10224 | GTK_CFLAGS="" |
10225 | GTK_LIBS="" | |
7e99ad86 | 10226 | : |
10f2d63a | 10227 | fi |
698dcdb6 VZ |
10228 | |
10229 | ||
10f2d63a | 10230 | |
8168de4c VZ |
10231 | fi |
10232 | ||
10233 | if test -z "$wx_cv_lib_gtk"; then | |
10234 | wx_cv_lib_gtk=none | |
138be253 VZ |
10235 | else |
10236 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10237 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10238 | fi |
10239 | ||
1e6feb95 | 10240 | |
8168de4c | 10241 | fi |
703e0a69 | 10242 | |
698dcdb6 | 10243 | |
8168de4c VZ |
10244 | if test "$gtk_version_cached" = 1; then |
10245 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10246 | fi |
698dcdb6 | 10247 | |
8168de4c VZ |
10248 | case "$wx_cv_lib_gtk" in |
10249 | 2.0) WXGTK20=1 | |
10250 | ;; | |
10251 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10252 | WXGTK12=1 |
8168de4c VZ |
10253 | ;; |
10254 | 1.2.3) WXGTK12=1 | |
10255 | ;; | |
10256 | *) { echo "configure: error: | |
10257 | Please check that gtk-config is in path, the directory | |
10258 | where GTK+ libraries are installed (returned by | |
10259 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10260 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10261 | " 1>&2; exit 1; } | |
10262 | ;; | |
10263 | esac | |
2224580a | 10264 | |
138be253 | 10265 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10266 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10267 | |
1e6feb95 VZ |
10268 | AFMINSTALL=afminstall |
10269 | TOOLKIT=GTK | |
10270 | GUIDIST=GTK_DIST | |
7ec2881a | 10271 | |
1e6feb95 | 10272 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
4f14bcd8 | 10273 | echo "configure:10274: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10274 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10275 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10276 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10277 | else |
698dcdb6 | 10278 | ac_save_LIBS="$LIBS" |
7ec2881a | 10279 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10280 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10281 | #line 10282 "configure" |
7ec2881a RR |
10282 | #include "confdefs.h" |
10283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10284 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10285 | builtin and then its argument prototype would still apply. */ |
10286 | char gdk_im_open(); | |
10287 | ||
10288 | int main() { | |
10289 | gdk_im_open() | |
10290 | ; return 0; } | |
10291 | EOF | |
4f14bcd8 | 10292 | if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10293 | rm -rf conftest* |
10294 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10295 | else | |
10296 | echo "configure: failed program was:" >&5 | |
10297 | cat conftest.$ac_ext >&5 | |
10298 | rm -rf conftest* | |
10299 | eval "ac_cv_lib_$ac_lib_var=no" | |
10300 | fi | |
10301 | rm -f conftest* | |
10302 | LIBS="$ac_save_LIBS" | |
10303 | ||
10304 | fi | |
10305 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10306 | echo "$ac_t""yes" 1>&6 | |
10307 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10308 | #define HAVE_XIM 1 |
10309 | EOF | |
10310 | ||
698dcdb6 VZ |
10311 | else |
10312 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10313 | fi |
10314 | ||
1e6feb95 | 10315 | fi |
10f2d63a | 10316 | |
1e6feb95 VZ |
10317 | if test "$wxUSE_MGL" = 1; then |
10318 | ||
10319 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
4f14bcd8 | 10320 | echo "configure:10321: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10321 | if test "x$MGL_ROOT" = x ; then |
10322 | echo "$ac_t""not found" 1>&6 | |
10323 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10324 | else | |
10325 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10326 | fi | |
10327 | ||
3a922bb4 RL |
10328 | mgl_os=linux/gcc/glibc |
10329 | mgl_lib_type="" | |
1e6feb95 VZ |
10330 | |
10331 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
3a922bb4 RL |
10332 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then |
10333 | mgl_lib_type=debug | |
1e6feb95 VZ |
10334 | fi |
10335 | fi | |
3a922bb4 RL |
10336 | if test "x$mgl_lib_type" = x ; then |
10337 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then | |
10338 | mgl_lib_type=release | |
1e6feb95 VZ |
10339 | else |
10340 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10341 | fi | |
10342 | fi | |
10343 | ||
10344 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 10345 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
10346 | |
10347 | AFMINSTALL=afminstall | |
10348 | TOOLKIT=MGL | |
10349 | GUIDIST=MGL_DIST | |
10350 | fi | |
10351 | ||
10352 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
10353 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
10354 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
4f14bcd8 | 10355 | echo "configure:10356: checking for windows.h" >&5 |
3a922bb4 RL |
10356 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10358 | else | |
10359 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 10360 | #line 10361 "configure" |
3a922bb4 RL |
10361 | #include "confdefs.h" |
10362 | #include <windows.h> | |
10363 | EOF | |
10364 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 10365 | { (eval echo configure:10366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10366 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10367 | if test -z "$ac_err"; then | |
10368 | rm -rf conftest* | |
10369 | eval "ac_cv_header_$ac_safe=yes" | |
10370 | else | |
10371 | echo "$ac_err" >&5 | |
10372 | echo "configure: failed program was:" >&5 | |
10373 | cat conftest.$ac_ext >&5 | |
10374 | rm -rf conftest* | |
10375 | eval "ac_cv_header_$ac_safe=no" | |
10376 | fi | |
10377 | rm -f conftest* | |
10378 | fi | |
10379 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10380 | echo "$ac_t""yes" 1>&6 | |
10381 | : | |
10382 | else | |
10383 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 10384 | |
1e6feb95 | 10385 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
10386 | |
10387 | fi | |
10388 | ||
10f2d63a | 10389 | |
3a922bb4 | 10390 | xpm_link="" |
1e6feb95 | 10391 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
4f14bcd8 | 10392 | echo "configure:10393: checking for Xpm library" >&5 |
1e6feb95 | 10393 | |
10f2d63a VZ |
10394 | ac_find_libraries= |
10395 | for ac_dir in $SEARCH_LIB; | |
10396 | do | |
f11bdd03 | 10397 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10398 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10399 | ac_find_libraries=$ac_dir | |
10400 | break 2 | |
10401 | fi | |
10402 | done | |
10403 | done | |
10404 | ||
1e6feb95 VZ |
10405 | if test "$ac_find_libraries" != "" ; then |
10406 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3a922bb4 | 10407 | xpm_link="-lXpm" |
1e6feb95 | 10408 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10409 | #define wxHAVE_LIB_XPM 1 |
10410 | EOF | |
10411 | ||
1e6feb95 VZ |
10412 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10413 | else | |
10414 | echo "$ac_t""no" 1>&6 | |
10415 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10416 | fi | |
10f2d63a | 10417 | |
3a922bb4 | 10418 | mesa_link="" |
1e6feb95 | 10419 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
4f14bcd8 | 10420 | echo "configure:10421: checking for Mesa library" >&5 |
1e6feb95 | 10421 | |
10f2d63a VZ |
10422 | ac_find_libraries= |
10423 | for ac_dir in $SEARCH_LIB; | |
10424 | do | |
f11bdd03 | 10425 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10426 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
10427 | ac_find_libraries=$ac_dir | |
10428 | break 2 | |
10429 | fi | |
10430 | done | |
10431 | done | |
10432 | ||
1e6feb95 VZ |
10433 | if test "$ac_find_libraries" != "" ; then |
10434 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3a922bb4 | 10435 | mesa_link="-lMesaGL" |
1e6feb95 VZ |
10436 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10437 | else | |
10438 | { echo "configure: error: no" 1>&2; exit 1; } | |
10439 | fi | |
10f2d63a | 10440 | |
3a922bb4 | 10441 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
10442 | TOOLKIT=MSW |
10443 | GUIDIST=MSW_DIST | |
3a922bb4 | 10444 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 10445 | fi |
698dcdb6 | 10446 | |
d714471b VZ |
10447 | if test "$wxUSE_MOTIF" = 1; then |
10448 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
10449 | # paths, otherwise set no_x=yes. |
10450 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10451 | # --without-x overrides everything else, but does not touch the cache. | |
10452 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
4f14bcd8 | 10453 | echo "configure:10454: checking for X" >&5 |
ab9b9eab VZ |
10454 | |
10455 | # Check whether --with-x or --without-x was given. | |
10456 | if test "${with_x+set}" = set; then | |
10457 | withval="$with_x" | |
698dcdb6 VZ |
10458 | : |
10459 | fi | |
ba337fe7 | 10460 | |
ab9b9eab VZ |
10461 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10462 | if test "x$with_x" = xno; then | |
10463 | # The user explicitly disabled X. | |
10464 | have_x=disabled | |
10465 | else | |
10466 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10467 | # Both variables are already set. | |
10468 | have_x=yes | |
10469 | else | |
698dcdb6 VZ |
10470 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
10471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
10472 | else |
10473 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
10474 | ac_x_includes=NO ac_x_libraries=NO |
10475 | rm -fr conftestdir | |
10476 | if mkdir conftestdir; then | |
10477 | cd conftestdir | |
ab9b9eab | 10478 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 10479 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
10480 | acfindx: |
10481 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10482 | EOF | |
10483 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10484 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10485 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10486 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 10487 | for ac_extension in a so sl; do |
ab9b9eab | 10488 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 10489 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 10490 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
10491 | fi |
10492 | done | |
ab9b9eab VZ |
10493 | # Screen out bogus values from the imake configuration. They are |
10494 | # bogus both because they are the default anyway, and because | |
10495 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 10496 | case "$ac_im_incroot" in |
ab9b9eab | 10497 | /usr/include) ;; |
698dcdb6 | 10498 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 10499 | esac |
698dcdb6 | 10500 | case "$ac_im_usrlibdir" in |
ab9b9eab | 10501 | /usr/lib | /lib) ;; |
698dcdb6 | 10502 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 10503 | esac |
ba337fe7 | 10504 | fi |
ab9b9eab | 10505 | cd .. |
698dcdb6 | 10506 | rm -fr conftestdir |
ab9b9eab | 10507 | fi |
10f2d63a | 10508 | |
698dcdb6 VZ |
10509 | if test "$ac_x_includes" = NO; then |
10510 | # Guess where to find include files, by looking for this one X11 .h file. | |
10511 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
10512 | ||
ab9b9eab | 10513 | # First, try using that file with no special directory specified. |
698dcdb6 | 10514 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10515 | #line 10516 "configure" |
ab9b9eab | 10516 | #include "confdefs.h" |
698dcdb6 VZ |
10517 | #include <$x_direct_test_include> |
10518 | EOF | |
10519 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 10520 | { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10521 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10522 | if test -z "$ac_err"; then | |
10523 | rm -rf conftest* | |
ab9b9eab VZ |
10524 | # We can compile using X headers with no special include directory. |
10525 | ac_x_includes= | |
10526 | else | |
698dcdb6 VZ |
10527 | echo "$ac_err" >&5 |
10528 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10529 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10530 | rm -rf conftest* |
10531 | # Look for the header file in a standard set of common directories. | |
10532 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10533 | for ac_dir in \ | |
10534 | /usr/X11/include \ | |
10535 | /usr/X11R6/include \ | |
10536 | /usr/X11R5/include \ | |
10537 | /usr/X11R4/include \ | |
10538 | \ | |
10539 | /usr/include/X11 \ | |
10540 | /usr/include/X11R6 \ | |
10541 | /usr/include/X11R5 \ | |
10542 | /usr/include/X11R4 \ | |
10543 | \ | |
10544 | /usr/local/X11/include \ | |
10545 | /usr/local/X11R6/include \ | |
10546 | /usr/local/X11R5/include \ | |
10547 | /usr/local/X11R4/include \ | |
10548 | \ | |
10549 | /usr/local/include/X11 \ | |
10550 | /usr/local/include/X11R6 \ | |
10551 | /usr/local/include/X11R5 \ | |
10552 | /usr/local/include/X11R4 \ | |
10553 | \ | |
10554 | /usr/X386/include \ | |
10555 | /usr/x386/include \ | |
10556 | /usr/XFree86/include/X11 \ | |
10557 | \ | |
10558 | /usr/include \ | |
10559 | /usr/local/include \ | |
10560 | /usr/unsupported/include \ | |
10561 | /usr/athena/include \ | |
10562 | /usr/local/x11r5/include \ | |
10563 | /usr/lpp/Xamples/include \ | |
10564 | \ | |
10565 | /usr/openwin/include \ | |
10566 | /usr/openwin/share/include \ | |
10567 | ; \ | |
10568 | do | |
10569 | if test -r "$ac_dir/$x_direct_test_include"; then | |
10570 | ac_x_includes=$ac_dir | |
10571 | break | |
10572 | fi | |
10573 | done | |
ab9b9eab | 10574 | fi |
698dcdb6 VZ |
10575 | rm -f conftest* |
10576 | fi # $ac_x_includes = NO | |
10f2d63a | 10577 | |
698dcdb6 | 10578 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 10579 | # Check for the libraries. |
698dcdb6 VZ |
10580 | |
10581 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
10582 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10583 | ||
ab9b9eab VZ |
10584 | # See if we find them without any special options. |
10585 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
10586 | ac_save_LIBS="$LIBS" |
10587 | LIBS="-l$x_direct_test_library $LIBS" | |
10588 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 10589 | #line 10590 "configure" |
ab9b9eab | 10590 | #include "confdefs.h" |
698dcdb6 VZ |
10591 | |
10592 | int main() { | |
10593 | ${x_direct_test_function}() | |
10594 | ; return 0; } | |
10595 | EOF | |
4f14bcd8 | 10596 | if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10597 | rm -rf conftest* |
10598 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
10599 | # We can link X programs with no special library path. |
10600 | ac_x_libraries= | |
10601 | else | |
698dcdb6 VZ |
10602 | echo "configure: failed program was:" >&5 |
10603 | cat conftest.$ac_ext >&5 | |
10604 | rm -rf conftest* | |
10605 | LIBS="$ac_save_LIBS" | |
10606 | # First see if replacing the include by lib works. | |
10607 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10608 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10609 | /usr/X11/lib \ | |
10610 | /usr/X11R6/lib \ | |
10611 | /usr/X11R5/lib \ | |
10612 | /usr/X11R4/lib \ | |
10613 | \ | |
10614 | /usr/lib/X11 \ | |
10615 | /usr/lib/X11R6 \ | |
10616 | /usr/lib/X11R5 \ | |
10617 | /usr/lib/X11R4 \ | |
10618 | \ | |
10619 | /usr/local/X11/lib \ | |
10620 | /usr/local/X11R6/lib \ | |
10621 | /usr/local/X11R5/lib \ | |
10622 | /usr/local/X11R4/lib \ | |
10623 | \ | |
10624 | /usr/local/lib/X11 \ | |
10625 | /usr/local/lib/X11R6 \ | |
10626 | /usr/local/lib/X11R5 \ | |
10627 | /usr/local/lib/X11R4 \ | |
10628 | \ | |
10629 | /usr/X386/lib \ | |
10630 | /usr/x386/lib \ | |
10631 | /usr/XFree86/lib/X11 \ | |
10632 | \ | |
10633 | /usr/lib \ | |
10634 | /usr/local/lib \ | |
10635 | /usr/unsupported/lib \ | |
10636 | /usr/athena/lib \ | |
10637 | /usr/local/x11r5/lib \ | |
10638 | /usr/lpp/Xamples/lib \ | |
10639 | /lib/usr/lib/X11 \ | |
10640 | \ | |
10641 | /usr/openwin/lib \ | |
10642 | /usr/openwin/share/lib \ | |
10643 | ; \ | |
ab9b9eab VZ |
10644 | do |
10645 | for ac_extension in a so sl; do | |
698dcdb6 | 10646 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
10647 | ac_x_libraries=$ac_dir |
10648 | break 2 | |
10f2d63a | 10649 | fi |
10f2d63a | 10650 | done |
ab9b9eab VZ |
10651 | done |
10652 | fi | |
698dcdb6 VZ |
10653 | rm -f conftest* |
10654 | fi # $ac_x_libraries = NO | |
10f2d63a | 10655 | |
698dcdb6 | 10656 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10657 | # Didn't find X anywhere. Cache the known absence of X. |
10658 | ac_cv_have_x="have_x=no" | |
10659 | else | |
10660 | # Record where we found X for the cache. | |
10661 | ac_cv_have_x="have_x=yes \ | |
10662 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10663 | fi | |
10664 | fi | |
10f2d63a | 10665 | fi |
ab9b9eab VZ |
10666 | eval "$ac_cv_have_x" |
10667 | fi # $with_x != no | |
10f2d63a | 10668 | |
ab9b9eab | 10669 | if test "$have_x" != yes; then |
698dcdb6 | 10670 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10671 | no_x=yes |
10672 | else | |
10673 | # If each of the values was on the command line, it overrides each guess. | |
10674 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10675 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10676 | # Update the cache value to reflect the command line values. | |
10677 | ac_cv_have_x="have_x=yes \ | |
10678 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10679 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10680 | fi |
10f2d63a | 10681 | |
ab9b9eab VZ |
10682 | if test "$no_x" = yes; then |
10683 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10684 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10685 | #define X_DISPLAY_MISSING 1 |
10686 | EOF | |
10f2d63a | 10687 | |
ab9b9eab VZ |
10688 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10689 | else | |
10690 | if test -n "$x_includes"; then | |
10691 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10692 | fi |
10693 | ||
ab9b9eab VZ |
10694 | # It would also be nice to do this for all -L options, not just this one. |
10695 | if test -n "$x_libraries"; then | |
10696 | X_LIBS="$X_LIBS -L$x_libraries" | |
10697 | # For Solaris; some versions of Sun CC require a space after -R and | |
10698 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10699 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10700 | "SunOS 5"*) |
698dcdb6 | 10701 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
4f14bcd8 | 10702 | echo "configure:10703: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10703 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10704 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 10705 | #line 10706 "configure" |
ab9b9eab | 10706 | #include "confdefs.h" |
10f2d63a | 10707 | |
698dcdb6 | 10708 | int main() { |
788deba1 | 10709 | |
698dcdb6 VZ |
10710 | ; return 0; } |
10711 | EOF | |
4f14bcd8 | 10712 | if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10713 | rm -rf conftest* |
ab9b9eab VZ |
10714 | ac_R_nospace=yes |
10715 | else | |
698dcdb6 VZ |
10716 | echo "configure: failed program was:" >&5 |
10717 | cat conftest.$ac_ext >&5 | |
10718 | rm -rf conftest* | |
10719 | ac_R_nospace=no | |
ab9b9eab | 10720 | fi |
698dcdb6 | 10721 | rm -f conftest* |
ab9b9eab | 10722 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10723 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10724 | X_LIBS="$X_LIBS -R$x_libraries" |
10725 | else | |
10726 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10727 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10728 | #line 10729 "configure" |
ab9b9eab | 10729 | #include "confdefs.h" |
788deba1 | 10730 | |
698dcdb6 | 10731 | int main() { |
ab9b9eab | 10732 | |
698dcdb6 VZ |
10733 | ; return 0; } |
10734 | EOF | |
4f14bcd8 | 10735 | if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10736 | rm -rf conftest* |
ab9b9eab VZ |
10737 | ac_R_space=yes |
10738 | else | |
698dcdb6 VZ |
10739 | echo "configure: failed program was:" >&5 |
10740 | cat conftest.$ac_ext >&5 | |
10741 | rm -rf conftest* | |
10742 | ac_R_space=no | |
ab9b9eab | 10743 | fi |
698dcdb6 | 10744 | rm -f conftest* |
ab9b9eab | 10745 | if test $ac_R_space = yes; then |
698dcdb6 | 10746 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10747 | X_LIBS="$X_LIBS -R $x_libraries" |
10748 | else | |
698dcdb6 | 10749 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10750 | fi |
10751 | fi | |
698dcdb6 | 10752 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10753 | esac |
10754 | fi | |
10755 | ||
10756 | # Check for system-dependent libraries X programs must link with. | |
10757 | # Do this before checking for the system-independent R6 libraries | |
10758 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10759 | ||
10760 | if test "$ISC" = yes; then | |
10761 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10762 | else | |
698dcdb6 VZ |
10763 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10764 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10765 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10766 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4f14bcd8 | 10767 | echo "configure:10768: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10768 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10769 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10771 | else |
698dcdb6 | 10772 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10773 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10774 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10775 | #line 10776 "configure" |
ab9b9eab VZ |
10776 | #include "confdefs.h" |
10777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10778 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10779 | builtin and then its argument prototype would still apply. */ |
10780 | char dnet_ntoa(); | |
10781 | ||
10782 | int main() { | |
10783 | dnet_ntoa() | |
10784 | ; return 0; } | |
10785 | EOF | |
4f14bcd8 | 10786 | if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10787 | rm -rf conftest* |
10788 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10789 | else | |
10790 | echo "configure: failed program was:" >&5 | |
10791 | cat conftest.$ac_ext >&5 | |
10792 | rm -rf conftest* | |
10793 | eval "ac_cv_lib_$ac_lib_var=no" | |
10794 | fi | |
10795 | rm -f conftest* | |
10796 | LIBS="$ac_save_LIBS" | |
10797 | ||
10798 | fi | |
10799 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10800 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10801 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10802 | else |
10803 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10804 | fi |
10805 | ||
10806 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10807 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
4f14bcd8 | 10808 | echo "configure:10809: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10809 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10810 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10811 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10812 | else |
698dcdb6 | 10813 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10814 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10815 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10816 | #line 10817 "configure" |
ab9b9eab VZ |
10817 | #include "confdefs.h" |
10818 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10819 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10820 | builtin and then its argument prototype would still apply. */ |
10821 | char dnet_ntoa(); | |
10822 | ||
10823 | int main() { | |
10824 | dnet_ntoa() | |
10825 | ; return 0; } | |
10826 | EOF | |
4f14bcd8 | 10827 | if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10828 | rm -rf conftest* |
10829 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10830 | else | |
10831 | echo "configure: failed program was:" >&5 | |
10832 | cat conftest.$ac_ext >&5 | |
10833 | rm -rf conftest* | |
10834 | eval "ac_cv_lib_$ac_lib_var=no" | |
10835 | fi | |
10836 | rm -f conftest* | |
10837 | LIBS="$ac_save_LIBS" | |
10838 | ||
10839 | fi | |
10840 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10841 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10842 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10843 | else |
10844 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10845 | fi |
10846 | ||
10847 | fi | |
10848 | ||
10849 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10850 | # to get the SysV transport functions. | |
698dcdb6 | 10851 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10852 | # needs -lnsl. |
10853 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10854 | # on Irix 5.2, according to dickey@clark.net. |
10855 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
4f14bcd8 | 10856 | echo "configure:10857: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10857 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10859 | else | |
10860 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 10861 | #line 10862 "configure" |
ab9b9eab VZ |
10862 | #include "confdefs.h" |
10863 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10864 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10865 | #include <assert.h> |
10866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10867 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10868 | builtin and then its argument prototype would still apply. */ |
10869 | char gethostbyname(); | |
10870 | ||
10871 | int main() { | |
ab9b9eab VZ |
10872 | |
10873 | /* The GNU C library defines this for functions which it implements | |
10874 | to always fail with ENOSYS. Some functions are actually named | |
10875 | something starting with __ and the normal name is an alias. */ | |
10876 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10877 | choke me | |
10878 | #else | |
698dcdb6 | 10879 | gethostbyname(); |
ab9b9eab VZ |
10880 | #endif |
10881 | ||
698dcdb6 VZ |
10882 | ; return 0; } |
10883 | EOF | |
4f14bcd8 | 10884 | if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10885 | rm -rf conftest* |
10886 | eval "ac_cv_func_gethostbyname=yes" | |
10887 | else | |
10888 | echo "configure: failed program was:" >&5 | |
10889 | cat conftest.$ac_ext >&5 | |
10890 | rm -rf conftest* | |
10891 | eval "ac_cv_func_gethostbyname=no" | |
10892 | fi | |
10893 | rm -f conftest* | |
10894 | fi | |
10895 | ||
10896 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10897 | echo "$ac_t""yes" 1>&6 | |
10898 | : | |
10899 | else | |
10900 | echo "$ac_t""no" 1>&6 | |
10901 | fi | |
ab9b9eab VZ |
10902 | |
10903 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10904 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
4f14bcd8 | 10905 | echo "configure:10906: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10906 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10907 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10909 | else |
698dcdb6 | 10910 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10911 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10912 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 10913 | #line 10914 "configure" |
ab9b9eab VZ |
10914 | #include "confdefs.h" |
10915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10916 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10917 | builtin and then its argument prototype would still apply. */ |
10918 | char gethostbyname(); | |
6232543b | 10919 | |
698dcdb6 VZ |
10920 | int main() { |
10921 | gethostbyname() | |
10922 | ; return 0; } | |
10923 | EOF | |
4f14bcd8 | 10924 | if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10925 | rm -rf conftest* |
10926 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10927 | else |
698dcdb6 VZ |
10928 | echo "configure: failed program was:" >&5 |
10929 | cat conftest.$ac_ext >&5 | |
10930 | rm -rf conftest* | |
10931 | eval "ac_cv_lib_$ac_lib_var=no" | |
10932 | fi | |
10933 | rm -f conftest* | |
10934 | LIBS="$ac_save_LIBS" | |
1e487827 | 10935 | |
698dcdb6 VZ |
10936 | fi |
10937 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10938 | echo "$ac_t""yes" 1>&6 | |
10939 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10940 | else | |
10941 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10942 | fi |
10943 | ||
10944 | fi | |
10945 | ||
10946 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10947 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10948 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10949 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10950 | # gethostby* variants that don't use the nameserver (or something). | |
10951 | # -lsocket must be given before -lnsl if both are needed. | |
10952 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10953 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
4f14bcd8 | 10954 | echo "configure:10955: checking for connect" >&5 |
698dcdb6 VZ |
10955 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10957 | else | |
10958 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 10959 | #line 10960 "configure" |
ab9b9eab VZ |
10960 | #include "confdefs.h" |
10961 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10962 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10963 | #include <assert.h> |
10964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10965 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10966 | builtin and then its argument prototype would still apply. */ |
10967 | char connect(); | |
10968 | ||
10969 | int main() { | |
ab9b9eab VZ |
10970 | |
10971 | /* The GNU C library defines this for functions which it implements | |
10972 | to always fail with ENOSYS. Some functions are actually named | |
10973 | something starting with __ and the normal name is an alias. */ | |
10974 | #if defined (__stub_connect) || defined (__stub___connect) | |
10975 | choke me | |
10976 | #else | |
698dcdb6 | 10977 | connect(); |
ab9b9eab VZ |
10978 | #endif |
10979 | ||
698dcdb6 VZ |
10980 | ; return 0; } |
10981 | EOF | |
4f14bcd8 | 10982 | if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10983 | rm -rf conftest* |
10984 | eval "ac_cv_func_connect=yes" | |
10985 | else | |
10986 | echo "configure: failed program was:" >&5 | |
10987 | cat conftest.$ac_ext >&5 | |
10988 | rm -rf conftest* | |
10989 | eval "ac_cv_func_connect=no" | |
10990 | fi | |
10991 | rm -f conftest* | |
10992 | fi | |
10993 | ||
10994 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10995 | echo "$ac_t""yes" 1>&6 | |
10996 | : | |
10997 | else | |
10998 | echo "$ac_t""no" 1>&6 | |
10999 | fi | |
ab9b9eab VZ |
11000 | |
11001 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11002 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
4f14bcd8 | 11003 | echo "configure:11004: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11004 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11005 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11007 | else |
698dcdb6 | 11008 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11009 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11010 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 11011 | #line 11012 "configure" |
ab9b9eab VZ |
11012 | #include "confdefs.h" |
11013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11014 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11015 | builtin and then its argument prototype would still apply. */ |
11016 | char connect(); | |
11017 | ||
11018 | int main() { | |
11019 | connect() | |
11020 | ; return 0; } | |
11021 | EOF | |
4f14bcd8 | 11022 | if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11023 | rm -rf conftest* |
11024 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11025 | else | |
11026 | echo "configure: failed program was:" >&5 | |
11027 | cat conftest.$ac_ext >&5 | |
11028 | rm -rf conftest* | |
11029 | eval "ac_cv_lib_$ac_lib_var=no" | |
11030 | fi | |
11031 | rm -f conftest* | |
11032 | LIBS="$ac_save_LIBS" | |
11033 | ||
11034 | fi | |
11035 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11036 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11037 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11038 | else |
11039 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11040 | fi |
11041 | ||
11042 | fi | |
11043 | ||
698dcdb6 VZ |
11044 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11045 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
4f14bcd8 | 11046 | echo "configure:11047: checking for remove" >&5 |
698dcdb6 VZ |
11047 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11049 | else |
698dcdb6 | 11050 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 11051 | #line 11052 "configure" |
ab9b9eab VZ |
11052 | #include "confdefs.h" |
11053 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11054 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11055 | #include <assert.h> |
11056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11057 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11058 | builtin and then its argument prototype would still apply. */ |
11059 | char remove(); | |
11060 | ||
11061 | int main() { | |
ab9b9eab VZ |
11062 | |
11063 | /* The GNU C library defines this for functions which it implements | |
11064 | to always fail with ENOSYS. Some functions are actually named | |
11065 | something starting with __ and the normal name is an alias. */ | |
11066 | #if defined (__stub_remove) || defined (__stub___remove) | |
11067 | choke me | |
11068 | #else | |
698dcdb6 | 11069 | remove(); |
ab9b9eab VZ |
11070 | #endif |
11071 | ||
698dcdb6 VZ |
11072 | ; return 0; } |
11073 | EOF | |
4f14bcd8 | 11074 | if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11075 | rm -rf conftest* |
11076 | eval "ac_cv_func_remove=yes" | |
11077 | else | |
11078 | echo "configure: failed program was:" >&5 | |
11079 | cat conftest.$ac_ext >&5 | |
11080 | rm -rf conftest* | |
11081 | eval "ac_cv_func_remove=no" | |
11082 | fi | |
11083 | rm -f conftest* | |
11084 | fi | |
11085 | ||
11086 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11087 | echo "$ac_t""yes" 1>&6 | |
11088 | : | |
11089 | else | |
11090 | echo "$ac_t""no" 1>&6 | |
11091 | fi | |
ab9b9eab VZ |
11092 | |
11093 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11094 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
4f14bcd8 | 11095 | echo "configure:11096: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11096 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11097 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11099 | else |
698dcdb6 | 11100 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11101 | LIBS="-lposix $LIBS" |
698dcdb6 | 11102 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 11103 | #line 11104 "configure" |
ab9b9eab VZ |
11104 | #include "confdefs.h" |
11105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11106 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11107 | builtin and then its argument prototype would still apply. */ |
11108 | char remove(); | |
11109 | ||
11110 | int main() { | |
11111 | remove() | |
11112 | ; return 0; } | |
11113 | EOF | |
4f14bcd8 | 11114 | if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11115 | rm -rf conftest* |
11116 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11117 | else | |
11118 | echo "configure: failed program was:" >&5 | |
11119 | cat conftest.$ac_ext >&5 | |
11120 | rm -rf conftest* | |
11121 | eval "ac_cv_lib_$ac_lib_var=no" | |
11122 | fi | |
11123 | rm -f conftest* | |
11124 | LIBS="$ac_save_LIBS" | |
11125 | ||
11126 | fi | |
11127 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11128 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11129 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11130 | else |
11131 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11132 | fi |
11133 | ||
11134 | fi | |
11135 | ||
11136 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11137 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
4f14bcd8 | 11138 | echo "configure:11139: checking for shmat" >&5 |
698dcdb6 VZ |
11139 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11141 | else |
698dcdb6 | 11142 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 11143 | #line 11144 "configure" |
ab9b9eab VZ |
11144 | #include "confdefs.h" |
11145 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11146 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11147 | #include <assert.h> |
11148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11149 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11150 | builtin and then its argument prototype would still apply. */ |
11151 | char shmat(); | |
11152 | ||
11153 | int main() { | |
ab9b9eab VZ |
11154 | |
11155 | /* The GNU C library defines this for functions which it implements | |
11156 | to always fail with ENOSYS. Some functions are actually named | |
11157 | something starting with __ and the normal name is an alias. */ | |
11158 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11159 | choke me | |
11160 | #else | |
698dcdb6 | 11161 | shmat(); |
ab9b9eab VZ |
11162 | #endif |
11163 | ||
698dcdb6 VZ |
11164 | ; return 0; } |
11165 | EOF | |
4f14bcd8 | 11166 | if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11167 | rm -rf conftest* |
11168 | eval "ac_cv_func_shmat=yes" | |
11169 | else | |
11170 | echo "configure: failed program was:" >&5 | |
11171 | cat conftest.$ac_ext >&5 | |
11172 | rm -rf conftest* | |
11173 | eval "ac_cv_func_shmat=no" | |
11174 | fi | |
11175 | rm -f conftest* | |
11176 | fi | |
11177 | ||
11178 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11179 | echo "$ac_t""yes" 1>&6 | |
11180 | : | |
11181 | else | |
11182 | echo "$ac_t""no" 1>&6 | |
11183 | fi | |
ab9b9eab VZ |
11184 | |
11185 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11186 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
4f14bcd8 | 11187 | echo "configure:11188: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11188 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11189 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11191 | else |
698dcdb6 | 11192 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11193 | LIBS="-lipc $LIBS" |
698dcdb6 | 11194 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 11195 | #line 11196 "configure" |
ab9b9eab VZ |
11196 | #include "confdefs.h" |
11197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11198 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11199 | builtin and then its argument prototype would still apply. */ |
11200 | char shmat(); | |
11201 | ||
11202 | int main() { | |
11203 | shmat() | |
11204 | ; return 0; } | |
11205 | EOF | |
4f14bcd8 | 11206 | if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11207 | rm -rf conftest* |
11208 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11209 | else | |
11210 | echo "configure: failed program was:" >&5 | |
11211 | cat conftest.$ac_ext >&5 | |
11212 | rm -rf conftest* | |
11213 | eval "ac_cv_lib_$ac_lib_var=no" | |
11214 | fi | |
11215 | rm -f conftest* | |
11216 | LIBS="$ac_save_LIBS" | |
11217 | ||
11218 | fi | |
11219 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11220 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11221 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11222 | else |
11223 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11224 | fi |
11225 | ||
11226 | fi | |
11227 | fi | |
11228 | ||
11229 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11230 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11231 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11232 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11233 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11234 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11235 | # These have to be linked with before -lX11, unlike the other | |
11236 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11237 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11238 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
4f14bcd8 | 11239 | echo "configure:11240: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11240 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11241 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11243 | else | |
11244 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11245 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11246 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 11247 | #line 11248 "configure" |
ab9b9eab VZ |
11248 | #include "confdefs.h" |
11249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11250 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11251 | builtin and then its argument prototype would still apply. */ |
11252 | char IceConnectionNumber(); | |
11253 | ||
11254 | int main() { | |
11255 | IceConnectionNumber() | |
11256 | ; return 0; } | |
11257 | EOF | |
4f14bcd8 | 11258 | if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11259 | rm -rf conftest* |
11260 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11261 | else | |
11262 | echo "configure: failed program was:" >&5 | |
11263 | cat conftest.$ac_ext >&5 | |
11264 | rm -rf conftest* | |
11265 | eval "ac_cv_lib_$ac_lib_var=no" | |
11266 | fi | |
11267 | rm -f conftest* | |
11268 | LIBS="$ac_save_LIBS" | |
11269 | ||
11270 | fi | |
11271 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11272 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11273 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11274 | else |
11275 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11276 | fi |
11277 | ||
698dcdb6 | 11278 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11279 | |
11280 | fi | |
11281 | ||
11282 | ||
1e6feb95 VZ |
11283 | if test "$no_x" = "yes"; then |
11284 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11285 | fi | |
ab9b9eab | 11286 | |
1e6feb95 VZ |
11287 | GUI_TK_LIBRARY="$X_LIBS" |
11288 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11289 | AFMINSTALL=afminstall |
1e6feb95 | 11290 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11291 | |
1e6feb95 | 11292 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
4f14bcd8 | 11293 | echo "configure:11294: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11294 | |
ab9b9eab VZ |
11295 | ac_find_includes= |
11296 | for ac_dir in $SEARCH_INCLUDE; | |
11297 | do | |
11298 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11299 | ac_find_includes=$ac_dir | |
11300 | break | |
11301 | fi | |
11302 | done | |
11303 | ||
1e6feb95 VZ |
11304 | if test "$ac_find_includes" != "" ; then |
11305 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11306 | else | |
11307 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11308 | #line 11309 "configure" |
cd6d6d5b VZ |
11309 | #include "confdefs.h" |
11310 | ||
1e6feb95 VZ |
11311 | #include <Xm/Xm.h> |
11312 | ||
698dcdb6 | 11313 | int main() { |
cd6d6d5b | 11314 | |
1e6feb95 | 11315 | int version; |
1e6feb95 VZ |
11316 | version = xmUseVersion; |
11317 | ||
698dcdb6 VZ |
11318 | ; return 0; } |
11319 | EOF | |
4f14bcd8 | 11320 | if { (eval echo configure:11321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11321 | rm -rf conftest* |
11322 | ||
1e6feb95 VZ |
11323 | echo "$ac_t""found in default search path" 1>&6 |
11324 | COMPILED_X_PROGRAM=1 | |
11325 | ||
cd6d6d5b | 11326 | else |
698dcdb6 VZ |
11327 | echo "configure: failed program was:" >&5 |
11328 | cat conftest.$ac_ext >&5 | |
11329 | rm -rf conftest* | |
11330 | ||
1e6feb95 VZ |
11331 | echo "$ac_t""no" 1>&6 |
11332 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11333 | ||
698dcdb6 | 11334 | |
cd6d6d5b | 11335 | fi |
698dcdb6 | 11336 | rm -f conftest* |
1e6feb95 | 11337 | fi |
ab9b9eab | 11338 | |
1e6feb95 VZ |
11339 | if test "$COMPILED_X_PROGRAM" = 0; then |
11340 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
4f14bcd8 | 11341 | echo "configure:11342: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 11342 | |
ab9b9eab VZ |
11343 | ac_find_libraries= |
11344 | for ac_dir in $SEARCH_LIB; | |
11345 | do | |
f11bdd03 | 11346 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11347 | if test -f "$ac_dir/libXm.$ac_extension"; then |
11348 | ac_find_libraries=$ac_dir | |
11349 | break 2 | |
11350 | fi | |
11351 | done | |
11352 | done | |
11353 | ||
1e6feb95 VZ |
11354 | if test "$ac_find_libraries" != "" ; then |
11355 | ||
ab9b9eab VZ |
11356 | ac_path_to_include=$ac_find_includes |
11357 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11358 | result=$? | |
11359 | if test $result = 0; then | |
11360 | ac_path_to_include="" | |
11361 | else | |
11362 | ac_path_to_include="-I$ac_find_includes" | |
11363 | fi | |
11364 | ||
1e6feb95 | 11365 | |
ab9b9eab VZ |
11366 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11367 | result=$? | |
11368 | if test $result = 0; then | |
11369 | ac_path_to_link="" | |
11370 | else | |
11371 | ac_path_to_link="-L$ac_find_libraries" | |
11372 | fi | |
11373 | ||
698dcdb6 | 11374 | |
1e6feb95 VZ |
11375 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
11376 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
11377 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
11378 | else | |
11379 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11380 | #line 11381 "configure" |
cd6d6d5b | 11381 | #include "confdefs.h" |
ab9b9eab | 11382 | |
1e6feb95 VZ |
11383 | #include <Xm/Xm.h> |
11384 | ||
698dcdb6 | 11385 | int main() { |
ab9b9eab | 11386 | |
1e6feb95 | 11387 | int version; |
1e6feb95 VZ |
11388 | version = xmUseVersion; |
11389 | ||
698dcdb6 VZ |
11390 | ; return 0; } |
11391 | EOF | |
4f14bcd8 | 11392 | if { (eval echo configure:11393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11393 | rm -rf conftest* |
11394 | ||
1e6feb95 VZ |
11395 | echo "$ac_t""found in default search path" 1>&6 |
11396 | COMPILED_X_PROGRAM=1 | |
11397 | ||
cd6d6d5b | 11398 | else |
698dcdb6 VZ |
11399 | echo "configure: failed program was:" >&5 |
11400 | cat conftest.$ac_ext >&5 | |
11401 | rm -rf conftest* | |
11402 | ||
1e6feb95 VZ |
11403 | echo "$ac_t""no" 1>&6 |
11404 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11405 | ||
698dcdb6 | 11406 | |
cd6d6d5b | 11407 | fi |
698dcdb6 | 11408 | rm -f conftest* |
1e6feb95 | 11409 | fi |
cd6d6d5b | 11410 | fi |
ab9b9eab | 11411 | |
3a922bb4 | 11412 | xpm_link="" |
1e6feb95 | 11413 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
4f14bcd8 | 11414 | echo "configure:11415: checking for Xpm library" >&5 |
1e6feb95 | 11415 | |
ab9b9eab VZ |
11416 | ac_find_libraries= |
11417 | for ac_dir in $SEARCH_LIB; | |
11418 | do | |
f11bdd03 | 11419 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11420 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11421 | ac_find_libraries=$ac_dir | |
11422 | break 2 | |
11423 | fi | |
11424 | done | |
11425 | done | |
11426 | ||
1e6feb95 VZ |
11427 | if test "$ac_find_libraries" != "" ; then |
11428 | ||
ab9b9eab VZ |
11429 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11430 | result=$? | |
11431 | if test $result = 0; then | |
11432 | ac_path_to_link="" | |
11433 | else | |
11434 | ac_path_to_link="-L$ac_find_libraries" | |
11435 | fi | |
11436 | ||
1e6feb95 | 11437 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
3a922bb4 | 11438 | xpm_link="-lXpm " |
1e6feb95 | 11439 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11440 | #define wxHAVE_LIB_XPM 1 |
11441 | EOF | |
11442 | ||
1e6feb95 VZ |
11443 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11444 | else | |
11445 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11446 | #line 11447 "configure" |
cd6d6d5b VZ |
11447 | #include "confdefs.h" |
11448 | ||
1e6feb95 VZ |
11449 | #include <X11/xpm.h> |
11450 | ||
698dcdb6 | 11451 | int main() { |
cd6d6d5b | 11452 | |
1e6feb95 | 11453 | int version; |
1e6feb95 VZ |
11454 | version = XpmLibraryVersion(); |
11455 | ||
698dcdb6 VZ |
11456 | ; return 0; } |
11457 | EOF | |
4f14bcd8 | 11458 | if { (eval echo configure:11459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11459 | rm -rf conftest* |
11460 | ||
3a922bb4 RL |
11461 | xpm_link="-lXpm " |
11462 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
11463 | #define wxHAVE_LIB_XPM 1 |
11464 | EOF | |
11465 | ||
1e6feb95 VZ |
11466 | echo "$ac_t""found in default search path" 1>&6 |
11467 | COMPILED_X_PROGRAM=0 | |
11468 | ||
cd6d6d5b | 11469 | else |
698dcdb6 VZ |
11470 | echo "configure: failed program was:" >&5 |
11471 | cat conftest.$ac_ext >&5 | |
11472 | rm -rf conftest* | |
11473 | ||
1e6feb95 VZ |
11474 | echo "$ac_t""no" 1>&6 |
11475 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11476 | ||
698dcdb6 | 11477 | |
cd6d6d5b | 11478 | fi |
698dcdb6 | 11479 | rm -f conftest* |
1e6feb95 VZ |
11480 | fi |
11481 | ||
3a922bb4 | 11482 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 11483 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
11484 | TOOLKIT=MOTIF |
11485 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
11486 | fi |
11487 | ||
683dccda GD |
11488 | if test "$wxUSE_MAC" = 1; then |
11489 | if test "$wxUSE_PRECOMP" = "yes"; then | |
11490 | CPPFLAGS="${CPPFLAGS} -cpp-precomp" | |
11491 | fi | |
13c0541d | 11492 | CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
d08b457b GD |
11493 | CFLAGS="${CFLAGS} -fpascal-strings" |
11494 | CXXFLAGS="${CXXFLAGS} -fpascal-strings" | |
11495 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON" | |
11496 | ||
13c0541d | 11497 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 11498 | TOOLKIT=MAC |
683dccda | 11499 | GUIDIST=MACX_DIST |
1e6feb95 | 11500 | fi |
10f2d63a | 11501 | |
1e6feb95 VZ |
11502 | if test "$wxUSE_PM" = 1; then |
11503 | TOOLKIT=PM | |
11504 | GUIDIST=GTK_DIST | |
11505 | fi | |
b4085ce6 | 11506 | |
3a922bb4 | 11507 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 11508 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
11509 | else |
11510 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 11511 | fi |
e07802fc | 11512 | |
3a922bb4 | 11513 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 11514 | |
3a922bb4 RL |
11515 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
11516 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
11517 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
11518 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11519 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
11520 | WIDGET_SET=univ | |
f6bcfd97 | 11521 | else |
3a922bb4 | 11522 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
11523 | fi |
11524 | ||
11525 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
11526 | ||
11527 | if test "$TOOLKIT" != "MSW"; then | |
11528 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
11529 | fi | |
11530 | ||
11531 | if test "$wxUSE_HTML" = "yes"; then | |
11532 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
11533 | fi | |
3fcdd07b | 11534 | |
3a922bb4 RL |
11535 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
11536 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 11537 | fi |
4f14bcd8 | 11538 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 11539 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 11540 | fi |
4f14bcd8 | 11541 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
11542 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
11543 | fi | |
4f14bcd8 | 11544 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
11545 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
11546 | fi | |
4f14bcd8 | 11547 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
11548 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
11549 | fi | |
2224580a | 11550 | |
2224580a VZ |
11551 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
11552 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
11553 | ||
11554 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
11555 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 11556 | else |
dad6c0ea VZ |
11557 | USE_GUI=0 |
11558 | ||
3a922bb4 | 11559 | TOOLKIT_DIR="base" |
f6bcfd97 | 11560 | |
3a922bb4 RL |
11561 | if test "$USE_WIN32" = 1 ; then |
11562 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
11563 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 11564 | |
3a922bb4 | 11565 | TOOLKIT="MSW" |
f6bcfd97 | 11566 | else |
3a922bb4 RL |
11567 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
11568 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
11569 | fi |
11570 | ||
831b3152 | 11571 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
11572 | RPM_FILES="src/rpmfiles.lst" |
11573 | RPM_SPEC="wxBase.spec" | |
11574 | ||
11575 | GUIDIST="BASE_DIST" | |
11576 | DISTDIR="wxBase" | |
10f2d63a VZ |
11577 | fi |
11578 | ||
4f14bcd8 | 11579 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
11580 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
11581 | fi | |
4f14bcd8 | 11582 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
11583 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
11584 | fi | |
10f2d63a | 11585 | |
3a922bb4 RL |
11586 | if test "$wxUSE_OPENGL" = "yes"; then |
11587 | if test "$wxUSE_MAC" = 1; then | |
11588 | cat >> confdefs.h <<\EOF | |
11589 | #define wxUSE_OPENGL 1 | |
11590 | EOF | |
10f2d63a | 11591 | |
3a922bb4 RL |
11592 | cat >> confdefs.h <<\EOF |
11593 | #define wxUSE_GLCANVAS 1 | |
11594 | EOF | |
10f2d63a | 11595 | |
3a922bb4 RL |
11596 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
11597 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
11598 | else | |
11599 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11600 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
4f14bcd8 | 11601 | echo "configure:11602: checking for GL/gl.h" >&5 |
3a922bb4 RL |
11602 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11604 | else | |
11605 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11606 | #line 11607 "configure" |
3a922bb4 RL |
11607 | #include "confdefs.h" |
11608 | #include <GL/gl.h> | |
11609 | EOF | |
11610 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 11611 | { (eval echo configure:11612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11612 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11613 | if test -z "$ac_err"; then | |
11614 | rm -rf conftest* | |
11615 | eval "ac_cv_header_$ac_safe=yes" | |
11616 | else | |
11617 | echo "$ac_err" >&5 | |
11618 | echo "configure: failed program was:" >&5 | |
11619 | cat conftest.$ac_ext >&5 | |
11620 | rm -rf conftest* | |
11621 | eval "ac_cv_header_$ac_safe=no" | |
11622 | fi | |
11623 | rm -f conftest* | |
11624 | fi | |
11625 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11626 | echo "$ac_t""yes" 1>&6 | |
11627 | ||
11628 | cat >> confdefs.h <<\EOF | |
11629 | #define wxUSE_OPENGL 1 | |
11630 | EOF | |
10f2d63a | 11631 | |
3a922bb4 RL |
11632 | cat >> confdefs.h <<\EOF |
11633 | #define wxUSE_GLCANVAS 1 | |
11634 | EOF | |
10f2d63a | 11635 | |
3a922bb4 RL |
11636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
11637 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
4f14bcd8 | 11638 | echo "configure:11639: checking for glFlush in -lGL" >&5 |
3a922bb4 RL |
11639 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
11640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11642 | else | |
11643 | ac_save_LIBS="$LIBS" | |
11644 | LIBS="-lGL $LIBS" | |
11645 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11646 | #line 11647 "configure" |
3a922bb4 RL |
11647 | #include "confdefs.h" |
11648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11649 | /* We use char because int might match the return type of a gcc2 | |
11650 | builtin and then its argument prototype would still apply. */ | |
11651 | char glFlush(); | |
55e80573 | 11652 | |
3a922bb4 RL |
11653 | int main() { |
11654 | glFlush() | |
11655 | ; return 0; } | |
11656 | EOF | |
4f14bcd8 | 11657 | if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11658 | rm -rf conftest* |
11659 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11660 | else | |
11661 | echo "configure: failed program was:" >&5 | |
11662 | cat conftest.$ac_ext >&5 | |
11663 | rm -rf conftest* | |
11664 | eval "ac_cv_lib_$ac_lib_var=no" | |
11665 | fi | |
11666 | rm -f conftest* | |
11667 | LIBS="$ac_save_LIBS" | |
55e80573 | 11668 | |
3a922bb4 RL |
11669 | fi |
11670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11671 | echo "$ac_t""yes" 1>&6 | |
11672 | ||
11673 | OPENGL_LIBS="-lGL -lGLU" | |
11674 | ||
11675 | else | |
11676 | echo "$ac_t""no" 1>&6 | |
11677 | ||
11678 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 | |
4f14bcd8 | 11679 | echo "configure:11680: checking for glFlush in -lMesaGL" >&5 |
3a922bb4 RL |
11680 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
11681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11683 | else | |
11684 | ac_save_LIBS="$LIBS" | |
11685 | LIBS="-lMesaGL $LIBS" | |
11686 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11687 | #line 11688 "configure" |
3a922bb4 RL |
11688 | #include "confdefs.h" |
11689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11690 | /* We use char because int might match the return type of a gcc2 | |
11691 | builtin and then its argument prototype would still apply. */ | |
11692 | char glFlush(); | |
11693 | ||
11694 | int main() { | |
11695 | glFlush() | |
11696 | ; return 0; } | |
11697 | EOF | |
4f14bcd8 | 11698 | if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11699 | rm -rf conftest* |
11700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11701 | else | |
11702 | echo "configure: failed program was:" >&5 | |
11703 | cat conftest.$ac_ext >&5 | |
11704 | rm -rf conftest* | |
11705 | eval "ac_cv_lib_$ac_lib_var=no" | |
11706 | fi | |
11707 | rm -f conftest* | |
11708 | LIBS="$ac_save_LIBS" | |
11709 | ||
11710 | fi | |
11711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11712 | echo "$ac_t""yes" 1>&6 | |
11713 | ||
11714 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11715 | ||
11716 | else | |
11717 | echo "$ac_t""no" 1>&6 | |
11718 | fi | |
55e80573 | 11719 | |
3a922bb4 RL |
11720 | |
11721 | fi | |
11722 | ||
11723 | ||
11724 | else | |
11725 | echo "$ac_t""no" 1>&6 | |
11726 | wxUSE_OPENGL=0 | |
11727 | fi | |
11728 | ||
11729 | fi | |
11730 | fi | |
11731 | ||
11732 | if test -z "$TOOLKIT_VPATH" ; then | |
11733 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11734 | fi | |
11735 | ||
11736 | if test -n "$TOOLKIT" ; then | |
11737 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11738 | fi | |
11739 | ||
11740 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11741 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
11742 | fi | |
11743 | ||
11744 | lib_debug_suffix= | |
11745 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11746 | lib_debug_suffix=d | |
11747 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d" | |
11748 | fi | |
11749 | ||
11750 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}" | |
11751 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
11752 | ||
11753 | if test "$cross_compiling" = "yes"; then | |
11754 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11755 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11756 | fi | |
11757 | ||
11758 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11759 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11760 | ||
11761 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11762 | ||
11763 | if test "$wxUSE_OPENGL" = "yes"; then | |
11764 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11765 | fi | |
11766 | ||
11767 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11768 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11769 | ||
11770 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11771 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11772 | ||
11773 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11774 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11775 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11776 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11777 | ||
d08b457b | 11778 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 11779 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 RL |
11780 | |
11781 | ||
11782 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11783 | |
11784 | if test "$wxUSE_OPENGL" = "yes"; then | |
11785 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11786 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11787 | else |
11788 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11789 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11790 | fi |
11791 | ||
dd4f7467 | 11792 | if test "$GCC" = "yes"; then |
55e80573 | 11793 | PIC_FLAG="-fPIC" |
dd4f7467 | 11794 | fi |
55e80573 VZ |
11795 | |
11796 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11797 | |
10f2d63a VZ |
11798 | case "${host}" in |
11799 | *-hp-hpux* ) | |
55e80573 | 11800 | if test "$GCC" != "yes"; then |
f6bcfd97 BP |
11801 | LDFLAGS="-L/usr/lib" |
11802 | ||
10f2d63a VZ |
11803 | SHARED_LD="${CXX} -b -o" |
11804 | PIC_FLAG="+Z" | |
11805 | fi | |
55e80573 | 11806 | |
7b7a7637 RL |
11807 | if test "$wxUSE_OPENGL" = "yes"; then |
11808 | WX_ALL_INSTALLED="preinstall_gl" | |
11809 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
11810 | else | |
11811 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
11812 | fi | |
10f2d63a | 11813 | ;; |
b12915c1 | 11814 | |
55e80573 VZ |
11815 | *-*-linux* ) |
11816 | if test "$GCC" != "yes"; then | |
11817 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
4f14bcd8 | 11818 | echo "configure:11819: checking for Intel compiler" >&5 |
55e80573 VZ |
11819 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11821 | else | |
11822 | ||
11823 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 11824 | #line 11825 "configure" |
55e80573 VZ |
11825 | #include "confdefs.h" |
11826 | ||
11827 | int main() { | |
11828 | ||
11829 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11830 | #error Not icc |
55e80573 VZ |
11831 | #endif |
11832 | ||
11833 | ; return 0; } | |
11834 | EOF | |
4f14bcd8 | 11835 | if { (eval echo configure:11836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11836 | rm -rf conftest* |
11837 | wx_cv_prog_icc=yes | |
11838 | else | |
11839 | echo "configure: failed program was:" >&5 | |
11840 | cat conftest.$ac_ext >&5 | |
11841 | rm -rf conftest* | |
11842 | wx_cv_prog_icc=no | |
11843 | ||
11844 | fi | |
11845 | rm -f conftest* | |
11846 | ||
11847 | fi | |
11848 | ||
11849 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11850 | if test "$wx_cv_prog_icc" = "yes"; then |
11851 | PIC_FLAG="-KPIC" | |
11852 | fi | |
11853 | fi | |
11854 | ||
3a922bb4 RL |
11855 | if test "$wxUSE_SONAME" = "yes" ; then |
11856 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11857 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11858 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11859 | fi |
10f2d63a | 11860 | ;; |
55e80573 | 11861 | |
10f2d63a VZ |
11862 | *-*-solaris2* ) |
11863 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11864 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11865 | else |
11866 | SHARED_LD="${CXX} -G -o" | |
11867 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
11868 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
11869 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 11870 | fi |
10f2d63a | 11871 | ;; |
55e80573 | 11872 | |
b4085ce6 | 11873 | *-*-darwin* ) |
d08b457b GD |
11874 | CFLAGS="${CFLAGS} -fno-common" |
11875 | CXXFLAGS="${CXXFLAGS} -fno-common" | |
ea5999b9 GD |
11876 | SHARED_LD="${CXX} -dynamiclib -o" |
11877 | PIC_FLAG="-dynamic -fPIC" | |
10f2d63a | 11878 | ;; |
55e80573 | 11879 | |
10f2d63a VZ |
11880 | *-*-aix* ) |
11881 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11882 | ;; |
55e80573 | 11883 | |
7b7a7637 | 11884 | *-*-cygwin* | *-*-mingw32* ) |
3a922bb4 RL |
11885 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o" |
11886 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1" | |
18dbb1f6 | 11887 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" |
7b7a7637 RL |
11888 | |
11889 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 11890 | WX_ALL_INSTALLED="preinstall_gl" |
3a922bb4 | 11891 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11892 | else |
3a922bb4 | 11893 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11894 | fi |
7b7a7637 | 11895 | PIC_FLAG= |
10f2d63a | 11896 | ;; |
55e80573 | 11897 | |
6fa882bd | 11898 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 11899 | wxUSE_SHARED=no |
10f2d63a | 11900 | ;; |
55e80573 | 11901 | |
b12915c1 | 11902 | *-*-beos* ) |
e2b8b066 | 11903 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11904 | ;; |
55e80573 VZ |
11905 | |
11906 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11907 | *-*-sunos4* | \ | |
11908 | *-*-irix5* | *-*-irix6* | \ | |
11909 | *-*-osf* | \ | |
11910 | *-*-dgux5* | \ | |
11911 | *-*-sysv5* ) | |
11912 | ;; | |
11913 | ||
10f2d63a | 11914 | *) |
7b7a7637 | 11915 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
11916 | esac |
11917 | ||
11918 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11919 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11920 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11921 | fi |
55e80573 | 11922 | |
3711412e | 11923 | WX_TARGET_LIBRARY_TYPE="so" |
3a922bb4 | 11924 | fi |
f6bcfd97 | 11925 | |
3a922bb4 | 11926 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11927 | |
3a922bb4 | 11928 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11929 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11930 | fi | |
11931 | ||
6fa882bd RR |
11932 | if test "$wxUSE_MAC" = 1; then |
11933 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11934 | fi | |
11935 | ||
3a922bb4 RL |
11936 | if test "$wxUSE_OPENGL" = "yes"; then |
11937 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11938 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11939 | else | |
11940 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11941 | fi | |
698dcdb6 | 11942 | |
3a922bb4 RL |
11943 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11944 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11945 | ||
11946 | WX_TARGET_LIBRARY_TYPE="a" | |
10f2d63a | 11947 | fi |
10f2d63a | 11948 | |
d08b457b GD |
11949 | if test "$wxUSE_MAC" = 1; then |
11950 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 11951 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
11952 | # Extract the first word of "Rez", so it can be a program name with args. |
11953 | set dummy Rez; ac_word=$2 | |
11954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4f14bcd8 | 11955 | echo "configure:11956: checking for $ac_word" >&5 |
d08b457b GD |
11956 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
11957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11958 | else | |
11959 | if test -n "$RESCOMP"; then | |
11960 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11961 | else | |
11962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11963 | ac_dummy="$PATH" | |
11964 | for ac_dir in $ac_dummy; do | |
11965 | test -z "$ac_dir" && ac_dir=. | |
11966 | if test -f $ac_dir/$ac_word; then | |
11967 | ac_cv_prog_RESCOMP="Rez" | |
11968 | break | |
11969 | fi | |
11970 | done | |
11971 | IFS="$ac_save_ifs" | |
11972 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
11973 | fi | |
11974 | fi | |
11975 | RESCOMP="$ac_cv_prog_RESCOMP" | |
11976 | if test -n "$RESCOMP"; then | |
11977 | echo "$ac_t""$RESCOMP" 1>&6 | |
11978 | else | |
11979 | echo "$ac_t""no" 1>&6 | |
11980 | fi | |
11981 | ||
11982 | # Extract the first word of "Derez", so it can be a program name with args. | |
11983 | set dummy Derez; ac_word=$2 | |
11984 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4f14bcd8 | 11985 | echo "configure:11986: checking for $ac_word" >&5 |
d08b457b GD |
11986 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
11987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11988 | else | |
11989 | if test -n "$DEREZ"; then | |
11990 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
11991 | else | |
11992 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11993 | ac_dummy="$PATH" | |
11994 | for ac_dir in $ac_dummy; do | |
11995 | test -z "$ac_dir" && ac_dir=. | |
11996 | if test -f $ac_dir/$ac_word; then | |
11997 | ac_cv_prog_DEREZ="Derez" | |
11998 | break | |
11999 | fi | |
12000 | done | |
12001 | IFS="$ac_save_ifs" | |
12002 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
12003 | fi | |
12004 | fi | |
12005 | DEREZ="$ac_cv_prog_DEREZ" | |
12006 | if test -n "$DEREZ"; then | |
12007 | echo "$ac_t""$DEREZ" 1>&6 | |
12008 | else | |
12009 | echo "$ac_t""no" 1>&6 | |
12010 | fi | |
12011 | ||
12012 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12013 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12014 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12015 | fi |
12016 | ||
3a922bb4 | 12017 | |
13c0541d GD |
12018 | if test "$wxUSE_MAC" != 1; then |
12019 | for ac_hdr in strings.h | |
9cfadba2 | 12020 | do |
698dcdb6 VZ |
12021 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12022 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12023 | echo "configure:12024: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12024 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12026 | else | |
12027 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12028 | #line 12029 "configure" |
9cfadba2 | 12029 | #include "confdefs.h" |
698dcdb6 VZ |
12030 | #include <$ac_hdr> |
12031 | EOF | |
12032 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12033 | { (eval echo configure:12034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12034 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12035 | if test -z "$ac_err"; then | |
12036 | rm -rf conftest* | |
12037 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12038 | else |
698dcdb6 VZ |
12039 | echo "$ac_err" >&5 |
12040 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12041 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12042 | rm -rf conftest* |
12043 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12044 | fi |
698dcdb6 | 12045 | rm -f conftest* |
9cfadba2 | 12046 | fi |
698dcdb6 VZ |
12047 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12048 | echo "$ac_t""yes" 1>&6 | |
12049 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12050 | cat >> confdefs.h <<EOF | |
12051 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12052 | EOF |
698dcdb6 VZ |
12053 | |
12054 | else | |
12055 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12056 | fi |
12057 | done | |
10f2d63a | 12058 | |
13c0541d GD |
12059 | fi |
12060 | ||
3a922bb4 | 12061 | for ac_hdr in stdlib.h |
10f2d63a | 12062 | do |
698dcdb6 VZ |
12063 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12064 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12065 | echo "configure:12066: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12066 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12068 | else | |
12069 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12070 | #line 12071 "configure" |
10f2d63a | 12071 | #include "confdefs.h" |
698dcdb6 VZ |
12072 | #include <$ac_hdr> |
12073 | EOF | |
12074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12075 | { (eval echo configure:12076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12076 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12077 | if test -z "$ac_err"; then | |
12078 | rm -rf conftest* | |
12079 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12080 | else |
698dcdb6 VZ |
12081 | echo "$ac_err" >&5 |
12082 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12083 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12084 | rm -rf conftest* |
12085 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12086 | fi |
698dcdb6 | 12087 | rm -f conftest* |
10f2d63a | 12088 | fi |
698dcdb6 VZ |
12089 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12090 | echo "$ac_t""yes" 1>&6 | |
12091 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12092 | cat >> confdefs.h <<EOF | |
12093 | #define $ac_tr_hdr 1 | |
10f2d63a | 12094 | EOF |
698dcdb6 VZ |
12095 | |
12096 | else | |
12097 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12098 | fi |
12099 | done | |
12100 | ||
3a922bb4 | 12101 | for ac_hdr in unistd.h |
10f2d63a | 12102 | do |
698dcdb6 VZ |
12103 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12104 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12105 | echo "configure:12106: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12106 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12108 | else | |
12109 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12110 | #line 12111 "configure" |
10f2d63a | 12111 | #include "confdefs.h" |
698dcdb6 VZ |
12112 | #include <$ac_hdr> |
12113 | EOF | |
12114 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12115 | { (eval echo configure:12116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12116 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12117 | if test -z "$ac_err"; then | |
12118 | rm -rf conftest* | |
12119 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12120 | else |
698dcdb6 VZ |
12121 | echo "$ac_err" >&5 |
12122 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12123 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12124 | rm -rf conftest* |
12125 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12126 | fi |
698dcdb6 | 12127 | rm -f conftest* |
6f72b082 | 12128 | fi |
698dcdb6 VZ |
12129 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12130 | echo "$ac_t""yes" 1>&6 | |
12131 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12132 | cat >> confdefs.h <<EOF | |
12133 | #define $ac_tr_hdr 1 | |
6f72b082 | 12134 | EOF |
698dcdb6 VZ |
12135 | |
12136 | else | |
12137 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12138 | fi |
12139 | done | |
12140 | ||
3a922bb4 | 12141 | for ac_hdr in wchar.h |
6f72b082 | 12142 | do |
698dcdb6 VZ |
12143 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12144 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12145 | echo "configure:12146: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12146 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12148 | else | |
12149 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12150 | #line 12151 "configure" |
6f72b082 | 12151 | #include "confdefs.h" |
698dcdb6 VZ |
12152 | #include <$ac_hdr> |
12153 | EOF | |
12154 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12155 | { (eval echo configure:12156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12156 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12157 | if test -z "$ac_err"; then | |
12158 | rm -rf conftest* | |
12159 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12160 | else |
698dcdb6 VZ |
12161 | echo "$ac_err" >&5 |
12162 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12163 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12164 | rm -rf conftest* |
12165 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12166 | fi |
698dcdb6 | 12167 | rm -f conftest* |
6f72b082 | 12168 | fi |
698dcdb6 VZ |
12169 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12170 | echo "$ac_t""yes" 1>&6 | |
12171 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12172 | cat >> confdefs.h <<EOF | |
12173 | #define $ac_tr_hdr 1 | |
6f72b082 | 12174 | EOF |
698dcdb6 VZ |
12175 | |
12176 | else | |
12177 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12178 | fi |
12179 | done | |
12180 | ||
3a922bb4 | 12181 | for ac_hdr in wcstr.h |
6f72b082 | 12182 | do |
698dcdb6 VZ |
12183 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12184 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12185 | echo "configure:12186: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12186 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12188 | else | |
12189 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12190 | #line 12191 "configure" |
6f72b082 | 12191 | #include "confdefs.h" |
698dcdb6 VZ |
12192 | #include <$ac_hdr> |
12193 | EOF | |
12194 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12195 | { (eval echo configure:12196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12196 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12197 | if test -z "$ac_err"; then | |
12198 | rm -rf conftest* | |
12199 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12200 | else |
698dcdb6 VZ |
12201 | echo "$ac_err" >&5 |
12202 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12203 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12204 | rm -rf conftest* |
12205 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12206 | fi |
698dcdb6 | 12207 | rm -f conftest* |
10f2d63a | 12208 | fi |
698dcdb6 VZ |
12209 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12210 | echo "$ac_t""yes" 1>&6 | |
12211 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12212 | cat >> confdefs.h <<EOF | |
12213 | #define $ac_tr_hdr 1 | |
10f2d63a | 12214 | EOF |
698dcdb6 VZ |
12215 | |
12216 | else | |
12217 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12218 | fi |
12219 | done | |
12220 | ||
3a922bb4 | 12221 | for ac_hdr in fnmatch.h |
0fb0dd83 | 12222 | do |
698dcdb6 VZ |
12223 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12224 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12225 | echo "configure:12226: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12226 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12228 | else | |
12229 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12230 | #line 12231 "configure" |
0fb0dd83 | 12231 | #include "confdefs.h" |
698dcdb6 VZ |
12232 | #include <$ac_hdr> |
12233 | EOF | |
12234 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12235 | { (eval echo configure:12236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12236 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12237 | if test -z "$ac_err"; then | |
12238 | rm -rf conftest* | |
12239 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12240 | else |
698dcdb6 VZ |
12241 | echo "$ac_err" >&5 |
12242 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12243 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12244 | rm -rf conftest* |
12245 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12246 | fi |
698dcdb6 | 12247 | rm -f conftest* |
0fb0dd83 | 12248 | fi |
698dcdb6 VZ |
12249 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12250 | echo "$ac_t""yes" 1>&6 | |
12251 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12252 | cat >> confdefs.h <<EOF | |
12253 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12254 | EOF |
698dcdb6 VZ |
12255 | |
12256 | else | |
12257 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12258 | fi |
12259 | done | |
12260 | ||
3a922bb4 | 12261 | for ac_hdr in iconv.h |
1f8ae82f | 12262 | do |
698dcdb6 VZ |
12263 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12264 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12265 | echo "configure:12266: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12266 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12268 | else | |
12269 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12270 | #line 12271 "configure" |
1f8ae82f | 12271 | #include "confdefs.h" |
698dcdb6 VZ |
12272 | #include <$ac_hdr> |
12273 | EOF | |
12274 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12275 | { (eval echo configure:12276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12276 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12277 | if test -z "$ac_err"; then | |
12278 | rm -rf conftest* | |
12279 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12280 | else |
698dcdb6 VZ |
12281 | echo "$ac_err" >&5 |
12282 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12283 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12284 | rm -rf conftest* |
12285 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12286 | fi |
698dcdb6 | 12287 | rm -f conftest* |
1f8ae82f | 12288 | fi |
698dcdb6 VZ |
12289 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12290 | echo "$ac_t""yes" 1>&6 | |
12291 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12292 | cat >> confdefs.h <<EOF | |
12293 | #define $ac_tr_hdr 1 | |
1f8ae82f | 12294 | EOF |
698dcdb6 VZ |
12295 | |
12296 | else | |
12297 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
12298 | fi |
12299 | done | |
12300 | ||
3a922bb4 | 12301 | for ac_hdr in langinfo.h |
10f2d63a | 12302 | do |
698dcdb6 VZ |
12303 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12304 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12305 | echo "configure:12306: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12306 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12308 | else | |
12309 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12310 | #line 12311 "configure" |
10f2d63a | 12311 | #include "confdefs.h" |
698dcdb6 VZ |
12312 | #include <$ac_hdr> |
12313 | EOF | |
12314 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12315 | { (eval echo configure:12316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12316 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12317 | if test -z "$ac_err"; then | |
12318 | rm -rf conftest* | |
12319 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12320 | else |
698dcdb6 VZ |
12321 | echo "$ac_err" >&5 |
12322 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12323 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12324 | rm -rf conftest* |
12325 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12326 | fi |
698dcdb6 | 12327 | rm -f conftest* |
10f2d63a | 12328 | fi |
698dcdb6 VZ |
12329 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12330 | echo "$ac_t""yes" 1>&6 | |
12331 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12332 | cat >> confdefs.h <<EOF | |
12333 | #define $ac_tr_hdr 1 | |
10f2d63a | 12334 | EOF |
698dcdb6 VZ |
12335 | |
12336 | else | |
12337 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12338 | fi |
12339 | done | |
12340 | ||
10f2d63a | 12341 | |
3a922bb4 RL |
12342 | if test "$wxUSE_GUI" = "yes"; then |
12343 | if test "$wxUSE_UNIX" = "yes"; then | |
12344 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
12345 | do |
12346 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12347 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 12348 | echo "configure:12349: checking for $ac_hdr" >&5 |
29fd3c0c VS |
12349 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12351 | else | |
12352 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12353 | #line 12354 "configure" |
29fd3c0c VS |
12354 | #include "confdefs.h" |
12355 | #include <$ac_hdr> | |
12356 | EOF | |
12357 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12358 | { (eval echo configure:12359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
12359 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12360 | if test -z "$ac_err"; then | |
12361 | rm -rf conftest* | |
12362 | eval "ac_cv_header_$ac_safe=yes" | |
12363 | else | |
12364 | echo "$ac_err" >&5 | |
12365 | echo "configure: failed program was:" >&5 | |
12366 | cat conftest.$ac_ext >&5 | |
12367 | rm -rf conftest* | |
12368 | eval "ac_cv_header_$ac_safe=no" | |
12369 | fi | |
12370 | rm -f conftest* | |
12371 | fi | |
12372 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12373 | echo "$ac_t""yes" 1>&6 | |
12374 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12375 | cat >> confdefs.h <<EOF | |
12376 | #define $ac_tr_hdr 1 | |
12377 | EOF | |
12378 | ||
12379 | else | |
12380 | echo "$ac_t""no" 1>&6 | |
12381 | fi | |
12382 | done | |
12383 | ||
3a922bb4 | 12384 | fi |
29fd3c0c VS |
12385 | fi |
12386 | ||
698dcdb6 VZ |
12387 | |
12388 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
4f14bcd8 | 12389 | echo "configure:12390: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
12390 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
12391 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12392 | else |
698dcdb6 | 12393 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12394 | #line 12395 "configure" |
10f2d63a VZ |
12395 | #include "confdefs.h" |
12396 | #include <stdlib.h> | |
12397 | #include <stdarg.h> | |
12398 | #include <string.h> | |
12399 | #include <float.h> | |
698dcdb6 VZ |
12400 | EOF |
12401 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 12402 | { (eval echo configure:12403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12403 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12404 | if test -z "$ac_err"; then | |
12405 | rm -rf conftest* | |
10f2d63a VZ |
12406 | ac_cv_header_stdc=yes |
12407 | else | |
698dcdb6 VZ |
12408 | echo "$ac_err" >&5 |
12409 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12410 | cat conftest.$ac_ext >&5 |
698dcdb6 | 12411 | rm -rf conftest* |
10f2d63a VZ |
12412 | ac_cv_header_stdc=no |
12413 | fi | |
698dcdb6 | 12414 | rm -f conftest* |
10f2d63a VZ |
12415 | |
12416 | if test $ac_cv_header_stdc = yes; then | |
12417 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 12418 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12419 | #line 12420 "configure" |
10f2d63a VZ |
12420 | #include "confdefs.h" |
12421 | #include <string.h> | |
698dcdb6 | 12422 | EOF |
10f2d63a VZ |
12423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12424 | egrep "memchr" >/dev/null 2>&1; then | |
12425 | : | |
12426 | else | |
698dcdb6 | 12427 | rm -rf conftest* |
10f2d63a VZ |
12428 | ac_cv_header_stdc=no |
12429 | fi | |
12430 | rm -f conftest* | |
12431 | ||
12432 | fi | |
12433 | ||
12434 | if test $ac_cv_header_stdc = yes; then | |
12435 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 12436 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12437 | #line 12438 "configure" |
10f2d63a VZ |
12438 | #include "confdefs.h" |
12439 | #include <stdlib.h> | |
698dcdb6 | 12440 | EOF |
10f2d63a VZ |
12441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12442 | egrep "free" >/dev/null 2>&1; then | |
12443 | : | |
12444 | else | |
698dcdb6 | 12445 | rm -rf conftest* |
10f2d63a VZ |
12446 | ac_cv_header_stdc=no |
12447 | fi | |
12448 | rm -f conftest* | |
12449 | ||
12450 | fi | |
12451 | ||
12452 | if test $ac_cv_header_stdc = yes; then | |
12453 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 12454 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
12455 | : |
12456 | else | |
698dcdb6 | 12457 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12458 | #line 12459 "configure" |
10f2d63a VZ |
12459 | #include "confdefs.h" |
12460 | #include <ctype.h> | |
698dcdb6 VZ |
12461 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12462 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 12463 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
12464 | int main () { int i; for (i = 0; i < 256; i++) |
12465 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
12466 | exit (0); } | |
12467 | ||
12468 | EOF | |
4f14bcd8 | 12469 | if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12470 | then |
10f2d63a VZ |
12471 | : |
12472 | else | |
698dcdb6 VZ |
12473 | echo "configure: failed program was:" >&5 |
12474 | cat conftest.$ac_ext >&5 | |
12475 | rm -fr conftest* | |
12476 | ac_cv_header_stdc=no | |
10f2d63a | 12477 | fi |
698dcdb6 | 12478 | rm -fr conftest* |
10f2d63a | 12479 | fi |
698dcdb6 | 12480 | |
10f2d63a VZ |
12481 | fi |
12482 | fi | |
1e487827 | 12483 | |
698dcdb6 VZ |
12484 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
12485 | if test $ac_cv_header_stdc = yes; then | |
12486 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12487 | #define STDC_HEADERS 1 |
12488 | EOF | |
12489 | ||
12490 | fi | |
12491 | ||
698dcdb6 | 12492 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
4f14bcd8 | 12493 | echo "configure:12494: checking for mode_t" >&5 |
698dcdb6 VZ |
12494 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
12495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12496 | else |
698dcdb6 | 12497 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12498 | #line 12499 "configure" |
1e487827 | 12499 | #include "confdefs.h" |
698dcdb6 VZ |
12500 | #include <sys/types.h> |
12501 | #if STDC_HEADERS | |
12502 | #include <stdlib.h> | |
12503 | #include <stddef.h> | |
12504 | #endif | |
12505 | EOF | |
12506 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12507 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12508 | rm -rf conftest* | |
10f2d63a VZ |
12509 | ac_cv_type_mode_t=yes |
12510 | else | |
698dcdb6 VZ |
12511 | rm -rf conftest* |
12512 | ac_cv_type_mode_t=no | |
703e0a69 | 12513 | fi |
698dcdb6 | 12514 | rm -f conftest* |
1e487827 | 12515 | |
698dcdb6 VZ |
12516 | fi |
12517 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
12518 | if test $ac_cv_type_mode_t = no; then | |
12519 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12520 | #define mode_t int |
12521 | EOF | |
12522 | ||
12523 | fi | |
12524 | ||
698dcdb6 | 12525 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
4f14bcd8 | 12526 | echo "configure:12527: checking for off_t" >&5 |
698dcdb6 VZ |
12527 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
12528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12529 | else |
698dcdb6 | 12530 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12531 | #line 12532 "configure" |
10f2d63a | 12532 | #include "confdefs.h" |
698dcdb6 VZ |
12533 | #include <sys/types.h> |
12534 | #if STDC_HEADERS | |
12535 | #include <stdlib.h> | |
12536 | #include <stddef.h> | |
12537 | #endif | |
12538 | EOF | |
12539 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12540 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12541 | rm -rf conftest* | |
10f2d63a VZ |
12542 | ac_cv_type_off_t=yes |
12543 | else | |
698dcdb6 VZ |
12544 | rm -rf conftest* |
12545 | ac_cv_type_off_t=no | |
703e0a69 | 12546 | fi |
698dcdb6 | 12547 | rm -f conftest* |
1e487827 | 12548 | |
698dcdb6 VZ |
12549 | fi |
12550 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
12551 | if test $ac_cv_type_off_t = no; then | |
12552 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12553 | #define off_t long |
12554 | EOF | |
12555 | ||
12556 | fi | |
12557 | ||
698dcdb6 | 12558 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
4f14bcd8 | 12559 | echo "configure:12560: checking for pid_t" >&5 |
698dcdb6 VZ |
12560 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
12561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12562 | else |
698dcdb6 | 12563 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12564 | #line 12565 "configure" |
10f2d63a | 12565 | #include "confdefs.h" |
698dcdb6 VZ |
12566 | #include <sys/types.h> |
12567 | #if STDC_HEADERS | |
12568 | #include <stdlib.h> | |
12569 | #include <stddef.h> | |
12570 | #endif | |
12571 | EOF | |
12572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12573 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12574 | rm -rf conftest* | |
10f2d63a VZ |
12575 | ac_cv_type_pid_t=yes |
12576 | else | |
698dcdb6 VZ |
12577 | rm -rf conftest* |
12578 | ac_cv_type_pid_t=no | |
703e0a69 | 12579 | fi |
698dcdb6 | 12580 | rm -f conftest* |
1e487827 | 12581 | |
698dcdb6 VZ |
12582 | fi |
12583 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
12584 | if test $ac_cv_type_pid_t = no; then | |
12585 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12586 | #define pid_t int |
12587 | EOF | |
12588 | ||
12589 | fi | |
12590 | ||
698dcdb6 | 12591 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
4f14bcd8 | 12592 | echo "configure:12593: checking for size_t" >&5 |
698dcdb6 VZ |
12593 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
12594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12595 | else |
698dcdb6 | 12596 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12597 | #line 12598 "configure" |
10f2d63a | 12598 | #include "confdefs.h" |
698dcdb6 VZ |
12599 | #include <sys/types.h> |
12600 | #if STDC_HEADERS | |
12601 | #include <stdlib.h> | |
12602 | #include <stddef.h> | |
12603 | #endif | |
12604 | EOF | |
12605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12606 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12607 | rm -rf conftest* | |
10f2d63a VZ |
12608 | ac_cv_type_size_t=yes |
12609 | else | |
698dcdb6 VZ |
12610 | rm -rf conftest* |
12611 | ac_cv_type_size_t=no | |
703e0a69 | 12612 | fi |
698dcdb6 | 12613 | rm -f conftest* |
1e487827 | 12614 | |
698dcdb6 VZ |
12615 | fi |
12616 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
12617 | if test $ac_cv_type_size_t = no; then | |
12618 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12619 | #define size_t unsigned |
12620 | EOF | |
12621 | ||
12622 | fi | |
12623 | ||
698dcdb6 | 12624 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
4f14bcd8 | 12625 | echo "configure:12626: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
12626 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
12627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12628 | else |
698dcdb6 | 12629 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12630 | #line 12631 "configure" |
10f2d63a VZ |
12631 | #include "confdefs.h" |
12632 | #include <sys/types.h> | |
698dcdb6 | 12633 | EOF |
10f2d63a VZ |
12634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12635 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 12636 | rm -rf conftest* |
10f2d63a VZ |
12637 | ac_cv_type_uid_t=yes |
12638 | else | |
698dcdb6 | 12639 | rm -rf conftest* |
10f2d63a VZ |
12640 | ac_cv_type_uid_t=no |
12641 | fi | |
12642 | rm -f conftest* | |
12643 | ||
12644 | fi | |
1e487827 | 12645 | |
698dcdb6 VZ |
12646 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
12647 | if test $ac_cv_type_uid_t = no; then | |
12648 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12649 | #define uid_t int |
12650 | EOF | |
12651 | ||
698dcdb6 | 12652 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12653 | #define gid_t int |
12654 | EOF | |
12655 | ||
12656 | fi | |
12657 | ||
1e487827 | 12658 | |
698dcdb6 | 12659 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
4f14bcd8 | 12660 | echo "configure:12661: checking for wchar_t" >&5 |
698dcdb6 VZ |
12661 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
12662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12663 | else | |
12664 | ||
12665 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12666 | #line 12667 "configure" |
0046ff7c VS |
12667 | #include "confdefs.h" |
12668 | #include <wchar.h> | |
698dcdb6 | 12669 | int main() { |
0046ff7c | 12670 | |
d836ee96 VZ |
12671 | wchar_t wc, *ws; |
12672 | wc = L'a'; | |
12673 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12674 | |
12675 | ; return 0; } | |
12676 | EOF | |
4f14bcd8 | 12677 | if { (eval echo configure:12678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12678 | rm -rf conftest* |
1f8ae82f | 12679 | wx_cv_type_wchar_t=yes |
0046ff7c | 12680 | else |
698dcdb6 VZ |
12681 | echo "configure: failed program was:" >&5 |
12682 | cat conftest.$ac_ext >&5 | |
12683 | rm -rf conftest* | |
12684 | wx_cv_type_wchar_t=no | |
d836ee96 | 12685 | |
6232543b | 12686 | fi |
698dcdb6 | 12687 | rm -f conftest* |
703e0a69 | 12688 | |
1e487827 | 12689 | fi |
698dcdb6 VZ |
12690 | |
12691 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12692 | |
12693 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12694 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12695 | #define wxUSE_WCHAR_T 1 |
12696 | EOF | |
12697 | ||
12698 | fi | |
12699 | ||
19af3b06 VZ |
12700 | |
12701 | ac_ext=C | |
12702 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12703 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12704 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12705 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12706 | cross_compiling=$ac_cv_prog_cxx_cross | |
12707 | ||
d836ee96 | 12708 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
4f14bcd8 | 12709 | echo "configure:12710: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12710 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12712 | else | |
dd2c8b7c | 12713 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12714 | #line 12715 "configure" |
d836ee96 VZ |
12715 | #include "confdefs.h" |
12716 | #include <stddef.h> | |
12717 | int main() { | |
12718 | ||
dd2c8b7c VZ |
12719 | return 0; } |
12720 | ||
d836ee96 | 12721 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12722 | |
12723 | int bar() { | |
d836ee96 VZ |
12724 | |
12725 | ; return 0; } | |
12726 | EOF | |
4f14bcd8 | 12727 | if { (eval echo configure:12728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12728 | rm -rf conftest* |
12729 | wx_cv_size_t_is_uint=no | |
12730 | else | |
12731 | echo "configure: failed program was:" >&5 | |
12732 | cat conftest.$ac_ext >&5 | |
12733 | rm -rf conftest* | |
12734 | wx_cv_size_t_is_uint=yes | |
12735 | ||
12736 | fi | |
12737 | rm -f conftest* | |
12738 | ||
12739 | fi | |
12740 | ||
12741 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12742 | ||
12743 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12744 | cat >> confdefs.h <<\EOF | |
12745 | #define wxSIZE_T_IS_UINT 1 | |
12746 | EOF | |
12747 | ||
12748 | else | |
12749 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
4f14bcd8 | 12750 | echo "configure:12751: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12751 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12753 | else | |
12754 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12755 | #line 12756 "configure" |
d836ee96 VZ |
12756 | #include "confdefs.h" |
12757 | #include <stddef.h> | |
12758 | int main() { | |
12759 | ||
dd2c8b7c VZ |
12760 | return 0; } |
12761 | ||
d836ee96 | 12762 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12763 | |
12764 | int bar() { | |
d836ee96 VZ |
12765 | |
12766 | ; return 0; } | |
12767 | EOF | |
4f14bcd8 | 12768 | if { (eval echo configure:12769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12769 | rm -rf conftest* |
12770 | wx_cv_size_t_is_ulong=no | |
12771 | else | |
12772 | echo "configure: failed program was:" >&5 | |
12773 | cat conftest.$ac_ext >&5 | |
12774 | rm -rf conftest* | |
12775 | wx_cv_size_t_is_ulong=yes | |
12776 | ||
12777 | fi | |
12778 | rm -f conftest* | |
12779 | ||
12780 | fi | |
12781 | ||
12782 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12783 | ||
12784 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12785 | cat >> confdefs.h <<\EOF | |
12786 | #define wxSIZE_T_IS_ULONG 1 | |
12787 | EOF | |
12788 | ||
12789 | fi | |
12790 | fi | |
12791 | ||
19af3b06 VZ |
12792 | ac_ext=c |
12793 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12794 | ac_cpp='$CPP $CPPFLAGS' | |
12795 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12796 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12797 | cross_compiling=$ac_cv_prog_cc_cross | |
12798 | ||
12799 | ||
1e487827 | 12800 | |
698dcdb6 | 12801 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
4f14bcd8 | 12802 | echo "configure:12803: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12803 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12804 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12805 | else | |
12806 | ||
12807 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12808 | #line 12809 "configure" |
b12915c1 VZ |
12809 | #include "confdefs.h" |
12810 | #include <pwd.h> | |
698dcdb6 | 12811 | int main() { |
b12915c1 VZ |
12812 | |
12813 | char *p; | |
12814 | struct passwd *pw; | |
12815 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12816 | |
12817 | ; return 0; } | |
12818 | EOF | |
4f14bcd8 | 12819 | if { (eval echo configure:12820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12820 | rm -rf conftest* |
12821 | ||
b12915c1 | 12822 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12823 | |
b12915c1 | 12824 | else |
698dcdb6 VZ |
12825 | echo "configure: failed program was:" >&5 |
12826 | cat conftest.$ac_ext >&5 | |
12827 | rm -rf conftest* | |
12828 | ||
b12915c1 | 12829 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12830 | |
12831 | ||
6232543b | 12832 | fi |
698dcdb6 VZ |
12833 | rm -f conftest* |
12834 | ||
703e0a69 | 12835 | |
1e487827 | 12836 | fi |
698dcdb6 VZ |
12837 | |
12838 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12839 | |
bd3277fe | 12840 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12841 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12842 | #define HAVE_PW_GECOS 1 |
12843 | EOF | |
12844 | ||
12845 | fi | |
12846 | ||
698dcdb6 VZ |
12847 | |
12848 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
4f14bcd8 | 12849 | echo "configure:12850: checking for working const" >&5 |
698dcdb6 VZ |
12850 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12852 | else |
698dcdb6 | 12853 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12854 | #line 12855 "configure" |
10f2d63a | 12855 | #include "confdefs.h" |
698dcdb6 VZ |
12856 | |
12857 | int main() { | |
12858 | ||
12859 | /* Ultrix mips cc rejects this. */ | |
12860 | typedef int charset[2]; const charset x; | |
12861 | /* SunOS 4.1.1 cc rejects this. */ | |
12862 | char const *const *ccp; | |
12863 | char **p; | |
12864 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12865 | struct point {int x, y;}; | |
12866 | static struct point const zero = {0,0}; | |
12867 | /* AIX XL C 1.02.0.0 rejects this. | |
12868 | It does not let you subtract one const X* pointer from another in an arm | |
12869 | of an if-expression whose if-part is not a constant expression */ | |
12870 | const char *g = "string"; | |
12871 | ccp = &g + (g ? g-g : 0); | |
12872 | /* HPUX 7.0 cc rejects these. */ | |
12873 | ++ccp; | |
12874 | p = (char**) ccp; | |
12875 | ccp = (char const *const *) p; | |
12876 | { /* SCO 3.2v4 cc rejects this. */ | |
12877 | char *t; | |
12878 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12879 | ||
12880 | *t++ = 0; | |
10f2d63a | 12881 | } |
698dcdb6 VZ |
12882 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12883 | int x[] = {25, 17}; | |
12884 | const int *foo = &x[0]; | |
12885 | ++foo; | |
703e0a69 | 12886 | } |
698dcdb6 VZ |
12887 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12888 | typedef const int *iptr; | |
12889 | iptr p = 0; | |
12890 | ++p; | |
6232543b | 12891 | } |
698dcdb6 VZ |
12892 | { /* AIX XL C 1.02.0.0 rejects this saying |
12893 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12894 | struct s { int j; const int *ap[3]; }; | |
12895 | struct s *b; b->j = 5; | |
1e487827 | 12896 | } |
698dcdb6 VZ |
12897 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12898 | const int foo = 10; | |
12899 | } | |
4f14bcd8 GD |
12900 | |
12901 | ; return 0; } | |
698dcdb6 | 12902 | EOF |
4f14bcd8 GD |
12903 | if { (eval echo configure:12904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
12904 | rm -rf conftest* | |
12905 | ac_cv_c_const=yes | |
698dcdb6 VZ |
12906 | else |
12907 | echo "configure: failed program was:" >&5 | |
12908 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
12909 | rm -rf conftest* |
12910 | ac_cv_c_const=no | |
703e0a69 | 12911 | fi |
4f14bcd8 | 12912 | rm -f conftest* |
698dcdb6 VZ |
12913 | fi |
12914 | ||
4f14bcd8 GD |
12915 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12916 | if test $ac_cv_c_const = no; then | |
12917 | cat >> confdefs.h <<\EOF | |
12918 | #define const | |
698dcdb6 VZ |
12919 | EOF |
12920 | ||
4f14bcd8 | 12921 | fi |
698dcdb6 | 12922 | |
4f14bcd8 GD |
12923 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
12924 | echo "configure:12925: checking for inline" >&5 | |
12925 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
698dcdb6 | 12926 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 12927 | else |
4f14bcd8 GD |
12928 | ac_cv_c_inline=no |
12929 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12930 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 12931 | #line 12932 "configure" |
10f2d63a | 12932 | #include "confdefs.h" |
4f14bcd8 GD |
12933 | |
12934 | int main() { | |
12935 | } $ac_kw foo() { | |
12936 | ; return 0; } | |
698dcdb6 | 12937 | EOF |
4f14bcd8 GD |
12938 | if { (eval echo configure:12939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
12939 | rm -rf conftest* | |
12940 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 12941 | else |
698dcdb6 VZ |
12942 | echo "configure: failed program was:" >&5 |
12943 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12944 | fi |
4f14bcd8 GD |
12945 | rm -f conftest* |
12946 | done | |
698dcdb6 | 12947 | |
10f2d63a | 12948 | fi |
4f14bcd8 GD |
12949 | |
12950 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12951 | case "$ac_cv_c_inline" in | |
12952 | inline | yes) ;; | |
12953 | no) cat >> confdefs.h <<\EOF | |
12954 | #define inline | |
12955 | EOF | |
12956 | ;; | |
12957 | *) cat >> confdefs.h <<EOF | |
12958 | #define inline $ac_cv_c_inline | |
698dcdb6 | 12959 | EOF |
4f14bcd8 GD |
12960 | ;; |
12961 | esac | |
698dcdb6 VZ |
12962 | |
12963 | ||
4f14bcd8 GD |
12964 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
12965 | echo "configure:12966: checking size of char" >&5 | |
12966 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
698dcdb6 VZ |
12967 | echo $ac_n "(cached) $ac_c" 1>&6 |
12968 | else | |
12969 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 12970 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
12971 | else |
12972 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 12973 | #line 12974 "configure" |
698dcdb6 VZ |
12974 | #include "confdefs.h" |
12975 | #include <stdio.h> | |
12976 | main() | |
12977 | { | |
12978 | FILE *f=fopen("conftestval", "w"); | |
12979 | if (!f) exit(1); | |
4f14bcd8 | 12980 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
12981 | exit(0); |
12982 | } | |
12983 | EOF | |
4f14bcd8 | 12984 | if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12985 | then |
4f14bcd8 | 12986 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 12987 | else |
698dcdb6 VZ |
12988 | echo "configure: failed program was:" >&5 |
12989 | cat conftest.$ac_ext >&5 | |
12990 | rm -fr conftest* | |
4f14bcd8 | 12991 | ac_cv_sizeof_char=0 |
6232543b | 12992 | fi |
698dcdb6 VZ |
12993 | rm -fr conftest* |
12994 | fi | |
12995 | ||
703e0a69 | 12996 | fi |
4f14bcd8 | 12997 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 12998 | cat >> confdefs.h <<EOF |
4f14bcd8 | 12999 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13000 | EOF |
13001 | ||
1e487827 | 13002 | |
4f14bcd8 GD |
13003 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
13004 | echo "configure:13005: checking size of short" >&5 | |
13005 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
698dcdb6 VZ |
13006 | echo $ac_n "(cached) $ac_c" 1>&6 |
13007 | else | |
4f14bcd8 GD |
13008 | if test "$cross_compiling" = yes; then |
13009 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13010 | else |
698dcdb6 | 13011 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 13012 | #line 13013 "configure" |
b93d0d08 | 13013 | #include "confdefs.h" |
4f14bcd8 GD |
13014 | #include <stdio.h> |
13015 | main() | |
13016 | { | |
13017 | FILE *f=fopen("conftestval", "w"); | |
13018 | if (!f) exit(1); | |
13019 | fprintf(f, "%d\n", sizeof(short)); | |
13020 | exit(0); | |
13021 | } | |
698dcdb6 | 13022 | EOF |
4f14bcd8 | 13023 | if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13024 | then |
4f14bcd8 | 13025 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13026 | else |
698dcdb6 VZ |
13027 | echo "configure: failed program was:" >&5 |
13028 | cat conftest.$ac_ext >&5 | |
13029 | rm -fr conftest* | |
4f14bcd8 | 13030 | ac_cv_sizeof_short=0 |
b93d0d08 | 13031 | fi |
698dcdb6 | 13032 | rm -fr conftest* |
b93d0d08 VS |
13033 | fi |
13034 | ||
b93d0d08 | 13035 | fi |
4f14bcd8 | 13036 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13037 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13038 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13039 | EOF |
13040 | ||
698dcdb6 | 13041 | |
4f14bcd8 GD |
13042 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
13043 | echo "configure:13044: checking size of int *" >&5 | |
13044 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then | |
698dcdb6 | 13045 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13046 | else |
4f14bcd8 GD |
13047 | if test "$cross_compiling" = yes; then |
13048 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13049 | else |
3a922bb4 | 13050 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 13051 | #line 13052 "configure" |
3a922bb4 | 13052 | #include "confdefs.h" |
4f14bcd8 GD |
13053 | #include <stdio.h> |
13054 | main() | |
13055 | { | |
13056 | FILE *f=fopen("conftestval", "w"); | |
13057 | if (!f) exit(1); | |
13058 | fprintf(f, "%d\n", sizeof(int *)); | |
13059 | exit(0); | |
13060 | } | |
13061 | EOF | |
13062 | if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13063 | then | |
13064 | ac_cv_sizeof_int_p=`cat conftestval` | |
13065 | else | |
13066 | echo "configure: failed program was:" >&5 | |
13067 | cat conftest.$ac_ext >&5 | |
13068 | rm -fr conftest* | |
13069 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13070 | fi |
4f14bcd8 | 13071 | rm -fr conftest* |
3a922bb4 | 13072 | fi |
698dcdb6 | 13073 | |
4f14bcd8 GD |
13074 | fi |
13075 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13076 | cat >> confdefs.h <<EOF | |
13077 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13078 | EOF |
13079 | ||
703e0a69 | 13080 | |
4f14bcd8 GD |
13081 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
13082 | echo "configure:13083: checking size of int" >&5 | |
13083 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
698dcdb6 | 13084 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13085 | else |
13086 | if test "$cross_compiling" = yes; then | |
13087 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13088 | else |
13089 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 13090 | #line 13091 "configure" |
10f2d63a | 13091 | #include "confdefs.h" |
4f14bcd8 GD |
13092 | #include <stdio.h> |
13093 | main() | |
13094 | { | |
13095 | FILE *f=fopen("conftestval", "w"); | |
13096 | if (!f) exit(1); | |
13097 | fprintf(f, "%d\n", sizeof(int)); | |
13098 | exit(0); | |
13099 | } | |
698dcdb6 | 13100 | EOF |
4f14bcd8 GD |
13101 | if { (eval echo configure:13102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
13102 | then | |
13103 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13104 | else |
698dcdb6 | 13105 | echo "configure: failed program was:" >&5 |
10f2d63a | 13106 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13107 | rm -fr conftest* |
13108 | ac_cv_sizeof_int=0 | |
10f2d63a | 13109 | fi |
4f14bcd8 | 13110 | rm -fr conftest* |
10f2d63a | 13111 | fi |
10f2d63a | 13112 | |
4f14bcd8 GD |
13113 | fi |
13114 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13115 | cat >> confdefs.h <<EOF | |
13116 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13117 | EOF |
13118 | ||
698dcdb6 | 13119 | |
4f14bcd8 GD |
13120 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
13121 | echo "configure:13122: checking size of long" >&5 | |
13122 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
698dcdb6 VZ |
13123 | echo $ac_n "(cached) $ac_c" 1>&6 |
13124 | else | |
4f14bcd8 GD |
13125 | if test "$cross_compiling" = yes; then |
13126 | ac_cv_sizeof_long=4 | |
13127 | else | |
13128 | cat > conftest.$ac_ext <<EOF | |
13129 | #line 13130 "configure" | |
10f2d63a | 13130 | #include "confdefs.h" |
4f14bcd8 GD |
13131 | #include <stdio.h> |
13132 | main() | |
13133 | { | |
13134 | FILE *f=fopen("conftestval", "w"); | |
13135 | if (!f) exit(1); | |
13136 | fprintf(f, "%d\n", sizeof(long)); | |
13137 | exit(0); | |
13138 | } | |
698dcdb6 | 13139 | EOF |
4f14bcd8 GD |
13140 | if { (eval echo configure:13141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
13141 | then | |
13142 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13143 | else |
698dcdb6 VZ |
13144 | echo "configure: failed program was:" >&5 |
13145 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13146 | rm -fr conftest* |
13147 | ac_cv_sizeof_long=0 | |
10f2d63a | 13148 | fi |
4f14bcd8 | 13149 | rm -fr conftest* |
10f2d63a | 13150 | fi |
698dcdb6 | 13151 | |
4f14bcd8 GD |
13152 | fi |
13153 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13154 | cat >> confdefs.h <<EOF | |
13155 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13156 | EOF |
13157 | ||
698dcdb6 | 13158 | |
4f14bcd8 GD |
13159 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
13160 | echo "configure:13161: checking size of long long" >&5 | |
13161 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
698dcdb6 | 13162 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13163 | else |
4f14bcd8 GD |
13164 | if test "$cross_compiling" = yes; then |
13165 | ac_cv_sizeof_long_long=0 | |
13166 | else | |
13167 | cat > conftest.$ac_ext <<EOF | |
13168 | #line 13169 "configure" | |
10f2d63a | 13169 | #include "confdefs.h" |
4f14bcd8 GD |
13170 | #include <stdio.h> |
13171 | main() | |
13172 | { | |
13173 | FILE *f=fopen("conftestval", "w"); | |
13174 | if (!f) exit(1); | |
13175 | fprintf(f, "%d\n", sizeof(long long)); | |
13176 | exit(0); | |
13177 | } | |
698dcdb6 | 13178 | EOF |
4f14bcd8 GD |
13179 | if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
13180 | then | |
13181 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13182 | else |
13183 | echo "configure: failed program was:" >&5 | |
13184 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13185 | rm -fr conftest* |
13186 | ac_cv_sizeof_long_long=0 | |
13187 | fi | |
13188 | rm -fr conftest* | |
698dcdb6 | 13189 | fi |
698dcdb6 VZ |
13190 | |
13191 | fi | |
4f14bcd8 GD |
13192 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13193 | cat >> confdefs.h <<EOF | |
13194 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13195 | EOF |
13196 | ||
10f2d63a | 13197 | |
4f14bcd8 GD |
13198 | |
13199 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
13200 | echo "configure:13201: checking size of wchar_t" >&5 | |
13201 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
698dcdb6 | 13202 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13203 | else |
4f14bcd8 GD |
13204 | |
13205 | if test "$cross_compiling" = yes; then | |
13206 | wx_cv_sizeof_wchar_t=4 | |
13207 | ||
13208 | else | |
13209 | cat > conftest.$ac_ext <<EOF | |
13210 | #line 13211 "configure" | |
10f2d63a | 13211 | #include "confdefs.h" |
698dcdb6 | 13212 | |
4f14bcd8 GD |
13213 | #ifdef HAVE_WCHAR_H |
13214 | # include <wchar.h> | |
13215 | #endif | |
13216 | #ifdef HAVE_STDLIB_H | |
13217 | # include <stdlib.h> | |
13218 | #endif | |
13219 | #include <stdio.h> | |
13220 | int main() | |
13221 | { | |
13222 | FILE *f=fopen("conftestval", "w"); | |
13223 | if (!f) exit(1); | |
13224 | fprintf(f, "%i", sizeof(wchar_t)); | |
13225 | exit(0); | |
13226 | } | |
13227 | ||
698dcdb6 | 13228 | EOF |
4f14bcd8 GD |
13229 | if { (eval echo configure:13230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
13230 | then | |
13231 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
13232 | else |
13233 | echo "configure: failed program was:" >&5 | |
13234 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13235 | rm -fr conftest* |
13236 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 13237 | fi |
4f14bcd8 GD |
13238 | rm -fr conftest* |
13239 | fi | |
13240 | ||
698dcdb6 VZ |
13241 | |
13242 | fi | |
4f14bcd8 GD |
13243 | |
13244 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13245 | ||
13246 | cat >> confdefs.h <<EOF | |
13247 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
13248 | EOF |
13249 | ||
18dbb1f6 | 13250 | |
4f14bcd8 GD |
13251 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
13252 | echo "configure:13253: checking whether byte ordering is bigendian" >&5 | |
13253 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
18dbb1f6 VZ |
13254 | echo $ac_n "(cached) $ac_c" 1>&6 |
13255 | else | |
4f14bcd8 GD |
13256 | ac_cv_c_bigendian=unknown |
13257 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 13258 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 13259 | #line 13260 "configure" |
18dbb1f6 | 13260 | #include "confdefs.h" |
4f14bcd8 GD |
13261 | #include <sys/types.h> |
13262 | #include <sys/param.h> | |
13263 | int main() { | |
18dbb1f6 | 13264 | |
4f14bcd8 GD |
13265 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
13266 | bogus endian macros | |
13267 | #endif | |
13268 | ; return 0; } | |
13269 | EOF | |
13270 | if { (eval echo configure:13271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13271 | rm -rf conftest* | |
13272 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13273 | cat > conftest.$ac_ext <<EOF | |
13274 | #line 13275 "configure" | |
13275 | #include "confdefs.h" | |
13276 | #include <sys/types.h> | |
13277 | #include <sys/param.h> | |
18dbb1f6 | 13278 | int main() { |
4f14bcd8 GD |
13279 | |
13280 | #if BYTE_ORDER != BIG_ENDIAN | |
13281 | not big endian | |
13282 | #endif | |
18dbb1f6 VZ |
13283 | ; return 0; } |
13284 | EOF | |
4f14bcd8 | 13285 | if { (eval echo configure:13286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 13286 | rm -rf conftest* |
4f14bcd8 | 13287 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
13288 | else |
13289 | echo "configure: failed program was:" >&5 | |
13290 | cat conftest.$ac_ext >&5 | |
13291 | rm -rf conftest* | |
4f14bcd8 | 13292 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
13293 | fi |
13294 | rm -f conftest* | |
698dcdb6 | 13295 | else |
4f14bcd8 GD |
13296 | echo "configure: failed program was:" >&5 |
13297 | cat conftest.$ac_ext >&5 | |
1e487827 | 13298 | fi |
4f14bcd8 GD |
13299 | rm -f conftest* |
13300 | if test $ac_cv_c_bigendian = unknown; then | |
13301 | if test "$cross_compiling" = yes; then | |
13302 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
13303 | else |
13304 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 13305 | #line 13306 "configure" |
b3e8d00a | 13306 | #include "confdefs.h" |
4f14bcd8 GD |
13307 | main () { |
13308 | /* Are we little or big endian? From Harbison&Steele. */ | |
13309 | union | |
13310 | { | |
13311 | long l; | |
13312 | char c[sizeof (long)]; | |
13313 | } u; | |
13314 | u.l = 1; | |
13315 | exit (u.c[sizeof (long) - 1] == 1); | |
13316 | } | |
b3e8d00a | 13317 | EOF |
4f14bcd8 GD |
13318 | if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
13319 | then | |
13320 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
13321 | else |
13322 | echo "configure: failed program was:" >&5 | |
13323 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13324 | rm -fr conftest* |
13325 | ac_cv_c_bigendian=yes | |
b3e8d00a | 13326 | fi |
4f14bcd8 | 13327 | rm -fr conftest* |
b3e8d00a VZ |
13328 | fi |
13329 | ||
4f14bcd8 GD |
13330 | fi |
13331 | fi | |
13332 | ||
13333 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13334 | if test $ac_cv_c_bigendian = unknown; then | |
13335 | 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 | |
13336 | fi | |
13337 | if test $ac_cv_c_bigendian = yes; then | |
13338 | cat >> confdefs.h <<\EOF | |
13339 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 13340 | EOF |
4f14bcd8 | 13341 | |
b3e8d00a | 13342 | fi |
b3e8d00a VZ |
13343 | |
13344 | ||
4f14bcd8 GD |
13345 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
13346 | echo "configure:13347: checking how to run the C++ preprocessor" >&5 | |
13347 | if test -z "$CXXCPP"; then | |
13348 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
13349 | echo $ac_n "(cached) $ac_c" 1>&6 |
13350 | else | |
4f14bcd8 GD |
13351 | ac_ext=C |
13352 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13353 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13354 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13355 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13356 | cross_compiling=$ac_cv_prog_cxx_cross | |
13357 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 13358 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 13359 | #line 13360 "configure" |
10f2d63a | 13360 | #include "confdefs.h" |
4f14bcd8 | 13361 | #include <stdlib.h> |
698dcdb6 | 13362 | EOF |
4f14bcd8 GD |
13363 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13364 | { (eval echo configure:13365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13365 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13366 | if test -z "$ac_err"; then | |
13367 | : | |
698dcdb6 | 13368 | else |
4f14bcd8 | 13369 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13370 | echo "configure: failed program was:" >&5 |
13371 | cat conftest.$ac_ext >&5 | |
13372 | rm -rf conftest* | |
4f14bcd8 | 13373 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
13374 | fi |
13375 | rm -f conftest* | |
4f14bcd8 GD |
13376 | ac_cv_prog_CXXCPP="$CXXCPP" |
13377 | ac_ext=C | |
13378 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13379 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13380 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13381 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13382 | cross_compiling=$ac_cv_prog_cxx_cross | |
13383 | fi | |
698dcdb6 | 13384 | fi |
4f14bcd8 GD |
13385 | CXXCPP="$ac_cv_prog_CXXCPP" |
13386 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 13387 | |
4f14bcd8 GD |
13388 | |
13389 | if test "$cross_compiling" = "yes"; then | |
13390 | cat >> confdefs.h <<\EOF | |
13391 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
13392 | EOF |
13393 | ||
4f14bcd8 GD |
13394 | else |
13395 | ||
13396 | ac_ext=C | |
13397 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13399 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13400 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13401 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 13402 | |
4f14bcd8 GD |
13403 | |
13404 | for ac_hdr in iostream | |
13405 | do | |
13406 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13407 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13408 | echo "configure:13409: checking for $ac_hdr" >&5 | |
13409 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
698dcdb6 VZ |
13410 | echo $ac_n "(cached) $ac_c" 1>&6 |
13411 | else | |
13412 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 13413 | #line 13414 "configure" |
10f2d63a | 13414 | #include "confdefs.h" |
4f14bcd8 | 13415 | #include <$ac_hdr> |
698dcdb6 | 13416 | EOF |
4f14bcd8 GD |
13417 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13418 | { (eval echo configure:13419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13419 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13420 | if test -z "$ac_err"; then | |
698dcdb6 | 13421 | rm -rf conftest* |
4f14bcd8 | 13422 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 13423 | else |
4f14bcd8 | 13424 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13425 | echo "configure: failed program was:" >&5 |
13426 | cat conftest.$ac_ext >&5 | |
13427 | rm -rf conftest* | |
4f14bcd8 | 13428 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
13429 | fi |
13430 | rm -f conftest* | |
13431 | fi | |
4f14bcd8 | 13432 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 13433 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13434 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
13435 | cat >> confdefs.h <<EOF | |
13436 | #define $ac_tr_hdr 1 | |
10f2d63a | 13437 | EOF |
4f14bcd8 | 13438 | |
698dcdb6 VZ |
13439 | else |
13440 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 13441 | fi |
4f14bcd8 | 13442 | done |
10f2d63a | 13443 | |
10f2d63a | 13444 | |
4f14bcd8 GD |
13445 | if test "$ac_cv_header_iostream" = "yes" ; then |
13446 | : | |
13447 | else | |
13448 | cat >> confdefs.h <<\EOF | |
13449 | #define wxUSE_IOSTREAMH 1 | |
13450 | EOF | |
13451 | ||
13452 | fi | |
1e487827 | 13453 | |
4f14bcd8 GD |
13454 | ac_ext=c |
13455 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13456 | ac_cpp='$CPP $CPPFLAGS' | |
13457 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13458 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13459 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 13460 | |
4f14bcd8 | 13461 | fi |
698dcdb6 VZ |
13462 | |
13463 | ||
13464 | ||
4f14bcd8 GD |
13465 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
13466 | echo "configure:13467: checking if C++ compiler supports bool" >&5 | |
13467 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
698dcdb6 VZ |
13468 | echo $ac_n "(cached) $ac_c" 1>&6 |
13469 | else | |
13470 | ||
4f14bcd8 GD |
13471 | |
13472 | ac_ext=C | |
13473 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13474 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13475 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13476 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13477 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 13478 | |
10f2d63a | 13479 | |
4f14bcd8 GD |
13480 | cat > conftest.$ac_ext <<EOF |
13481 | #line 13482 "configure" | |
13482 | #include "confdefs.h" | |
10f2d63a | 13483 | |
4f14bcd8 GD |
13484 | |
13485 | int main() { | |
f6bcfd97 | 13486 | |
4f14bcd8 | 13487 | bool b = true; |
f6bcfd97 | 13488 | |
4f14bcd8 GD |
13489 | return 0; |
13490 | ||
698dcdb6 VZ |
13491 | ; return 0; } |
13492 | EOF | |
4f14bcd8 | 13493 | if { (eval echo configure:13494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13494 | rm -rf conftest* |
13495 | ||
4f14bcd8 GD |
13496 | wx_cv_cpp_bool=yes |
13497 | ||
10f2d63a | 13498 | else |
698dcdb6 VZ |
13499 | echo "configure: failed program was:" >&5 |
13500 | cat conftest.$ac_ext >&5 | |
13501 | rm -rf conftest* | |
13502 | ||
4f14bcd8 GD |
13503 | wx_cv_cpp_bool=no |
13504 | ||
13505 | ||
13506 | fi | |
13507 | rm -f conftest* | |
c521c494 | 13508 | |
4f14bcd8 GD |
13509 | ac_ext=c |
13510 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13511 | ac_cpp='$CPP $CPPFLAGS' | |
13512 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13513 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13514 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 13515 | |
4f14bcd8 GD |
13516 | |
13517 | fi | |
c521c494 | 13518 | |
4f14bcd8 | 13519 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 13520 | |
4f14bcd8 GD |
13521 | if test "$wx_cv_cpp_bool" = "yes"; then |
13522 | cat >> confdefs.h <<\EOF | |
13523 | #define HAVE_BOOL 1 | |
13524 | EOF | |
c521c494 | 13525 | |
4f14bcd8 GD |
13526 | fi |
13527 | ||
13528 | ||
13529 | ||
13530 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
13531 | echo "configure:13532: checking for wcslen in -lc" >&5 | |
13532 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` | |
13533 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13535 | else | |
13536 | ac_save_LIBS="$LIBS" | |
13537 | LIBS="-lc $LIBS" | |
13538 | cat > conftest.$ac_ext <<EOF | |
13539 | #line 13540 "configure" | |
13540 | #include "confdefs.h" | |
13541 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13542 | /* We use char because int might match the return type of a gcc2 | |
13543 | builtin and then its argument prototype would still apply. */ | |
13544 | char wcslen(); | |
13545 | ||
13546 | int main() { | |
13547 | wcslen() | |
698dcdb6 VZ |
13548 | ; return 0; } |
13549 | EOF | |
4f14bcd8 | 13550 | if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13551 | rm -rf conftest* |
4f14bcd8 | 13552 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 13553 | else |
698dcdb6 VZ |
13554 | echo "configure: failed program was:" >&5 |
13555 | cat conftest.$ac_ext >&5 | |
13556 | rm -rf conftest* | |
4f14bcd8 | 13557 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13558 | fi |
698dcdb6 | 13559 | rm -f conftest* |
4f14bcd8 | 13560 | LIBS="$ac_save_LIBS" |
703e0a69 | 13561 | |
1e487827 | 13562 | fi |
4f14bcd8 GD |
13563 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13564 | echo "$ac_t""yes" 1>&6 | |
13565 | ||
13566 | cat >> confdefs.h <<\EOF | |
13567 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13568 | EOF |
13569 | ||
4f14bcd8 GD |
13570 | WCHAR_LINK="" |
13571 | ||
9d8deca0 | 13572 | else |
4f14bcd8 | 13573 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 13574 | |
4f14bcd8 GD |
13575 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
13576 | echo "configure:13577: checking for wcslen in -lw" >&5 | |
13577 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
13578 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 13579 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13580 | else |
4f14bcd8 GD |
13581 | ac_save_LIBS="$LIBS" |
13582 | LIBS="-lw $LIBS" | |
13583 | cat > conftest.$ac_ext <<EOF | |
13584 | #line 13585 "configure" | |
10f2d63a | 13585 | #include "confdefs.h" |
4f14bcd8 GD |
13586 | /* Override any gcc2 internal prototype to avoid an error. */ |
13587 | /* We use char because int might match the return type of a gcc2 | |
13588 | builtin and then its argument prototype would still apply. */ | |
13589 | char wcslen(); | |
10f2d63a | 13590 | |
698dcdb6 | 13591 | int main() { |
4f14bcd8 | 13592 | wcslen() |
698dcdb6 VZ |
13593 | ; return 0; } |
13594 | EOF | |
4f14bcd8 | 13595 | if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13596 | rm -rf conftest* |
4f14bcd8 | 13597 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 13598 | else |
698dcdb6 VZ |
13599 | echo "configure: failed program was:" >&5 |
13600 | cat conftest.$ac_ext >&5 | |
13601 | rm -rf conftest* | |
4f14bcd8 | 13602 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13603 | fi |
698dcdb6 | 13604 | rm -f conftest* |
4f14bcd8 | 13605 | LIBS="$ac_save_LIBS" |
703e0a69 | 13606 | |
1e487827 | 13607 | fi |
4f14bcd8 GD |
13608 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13609 | echo "$ac_t""yes" 1>&6 | |
13610 | ||
13611 | cat >> confdefs.h <<\EOF | |
13612 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13613 | EOF |
13614 | ||
4f14bcd8 GD |
13615 | WCHAR_LINK="-lw" |
13616 | ||
13617 | else | |
13618 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 13619 | |
4f14bcd8 GD |
13620 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
13621 | echo "configure:13622: checking for wcslen in -lmsvcrt" >&5 | |
13622 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
13623 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13624 | echo $ac_n "(cached) $ac_c" 1>&6 |
13625 | else | |
4f14bcd8 GD |
13626 | ac_save_LIBS="$LIBS" |
13627 | LIBS="-lmsvcrt $LIBS" | |
13628 | cat > conftest.$ac_ext <<EOF | |
13629 | #line 13630 "configure" | |
95c8801c | 13630 | #include "confdefs.h" |
4f14bcd8 GD |
13631 | /* Override any gcc2 internal prototype to avoid an error. */ |
13632 | /* We use char because int might match the return type of a gcc2 | |
13633 | builtin and then its argument prototype would still apply. */ | |
13634 | char wcslen(); | |
95c8801c | 13635 | |
4f14bcd8 GD |
13636 | int main() { |
13637 | wcslen() | |
698dcdb6 VZ |
13638 | ; return 0; } |
13639 | EOF | |
4f14bcd8 | 13640 | if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13641 | rm -rf conftest* |
4f14bcd8 | 13642 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 13643 | else |
698dcdb6 VZ |
13644 | echo "configure: failed program was:" >&5 |
13645 | cat conftest.$ac_ext >&5 | |
13646 | rm -rf conftest* | |
4f14bcd8 | 13647 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 13648 | fi |
698dcdb6 | 13649 | rm -f conftest* |
4f14bcd8 | 13650 | LIBS="$ac_save_LIBS" |
95c8801c VS |
13651 | |
13652 | fi | |
4f14bcd8 GD |
13653 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13654 | echo "$ac_t""yes" 1>&6 | |
13655 | ||
13656 | cat >> confdefs.h <<\EOF | |
13657 | #define HAVE_WCSLEN 1 | |
13658 | EOF | |
698dcdb6 | 13659 | |
4f14bcd8 GD |
13660 | WCHAR_LINK="" |
13661 | ||
13662 | else | |
13663 | echo "$ac_t""no" 1>&6 | |
13664 | fi | |
10f2d63a | 13665 | |
4f14bcd8 GD |
13666 | |
13667 | fi | |
95c8801c | 13668 | |
4f14bcd8 | 13669 | |
95c8801c | 13670 | fi |
10f2d63a | 13671 | |
1e487827 | 13672 | |
4f14bcd8 | 13673 | for ac_func in wcsrtombs |
eb4efbdc | 13674 | do |
698dcdb6 | 13675 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 13676 | echo "configure:13677: checking for $ac_func" >&5 |
698dcdb6 VZ |
13677 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13679 | else | |
13680 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 13681 | #line 13682 "configure" |
eb4efbdc VZ |
13682 | #include "confdefs.h" |
13683 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13684 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13685 | #include <assert.h> |
13686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13687 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13688 | builtin and then its argument prototype would still apply. */ |
13689 | char $ac_func(); | |
13690 | ||
13691 | int main() { | |
eb4efbdc VZ |
13692 | |
13693 | /* The GNU C library defines this for functions which it implements | |
13694 | to always fail with ENOSYS. Some functions are actually named | |
13695 | something starting with __ and the normal name is an alias. */ | |
13696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13697 | choke me | |
13698 | #else | |
698dcdb6 | 13699 | $ac_func(); |
eb4efbdc VZ |
13700 | #endif |
13701 | ||
698dcdb6 | 13702 | ; return 0; } |
eb4efbdc | 13703 | EOF |
4f14bcd8 | 13704 | if { (eval echo configure:13705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13705 | rm -rf conftest* |
13706 | eval "ac_cv_func_$ac_func=yes" | |
13707 | else | |
13708 | echo "configure: failed program was:" >&5 | |
13709 | cat conftest.$ac_ext >&5 | |
13710 | rm -rf conftest* | |
13711 | eval "ac_cv_func_$ac_func=no" | |
13712 | fi | |
13713 | rm -f conftest* | |
13714 | fi | |
eb4efbdc | 13715 | |
698dcdb6 VZ |
13716 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13717 | echo "$ac_t""yes" 1>&6 | |
13718 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13719 | cat >> confdefs.h <<EOF | |
13720 | #define $ac_tr_func 1 | |
13721 | EOF | |
13722 | ||
13723 | else | |
13724 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13725 | fi |
13726 | done | |
13727 | ||
698dcdb6 | 13728 | |
4f14bcd8 GD |
13729 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
13730 | echo "configure:13731: checking for vprintf" >&5 | |
13731 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
698dcdb6 VZ |
13732 | echo $ac_n "(cached) $ac_c" 1>&6 |
13733 | else | |
4f14bcd8 GD |
13734 | cat > conftest.$ac_ext <<EOF |
13735 | #line 13736 "configure" | |
f6bcfd97 | 13736 | #include "confdefs.h" |
4f14bcd8 GD |
13737 | /* System header to define __stub macros and hopefully few prototypes, |
13738 | which can conflict with char vprintf(); below. */ | |
13739 | #include <assert.h> | |
13740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13741 | /* We use char because int might match the return type of a gcc2 | |
13742 | builtin and then its argument prototype would still apply. */ | |
13743 | char vprintf(); | |
13744 | ||
698dcdb6 | 13745 | int main() { |
f6bcfd97 | 13746 | |
4f14bcd8 GD |
13747 | /* The GNU C library defines this for functions which it implements |
13748 | to always fail with ENOSYS. Some functions are actually named | |
13749 | something starting with __ and the normal name is an alias. */ | |
13750 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
13751 | choke me | |
13752 | #else | |
13753 | vprintf(); | |
13754 | #endif | |
f6bcfd97 | 13755 | |
698dcdb6 VZ |
13756 | ; return 0; } |
13757 | EOF | |
4f14bcd8 | 13758 | if { (eval echo configure:13759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13759 | rm -rf conftest* |
4f14bcd8 | 13760 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 13761 | else |
698dcdb6 VZ |
13762 | echo "configure: failed program was:" >&5 |
13763 | cat conftest.$ac_ext >&5 | |
13764 | rm -rf conftest* | |
4f14bcd8 | 13765 | eval "ac_cv_func_vprintf=no" |
6232543b | 13766 | fi |
698dcdb6 | 13767 | rm -f conftest* |
1e487827 | 13768 | fi |
698dcdb6 | 13769 | |
4f14bcd8 GD |
13770 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
13771 | echo "$ac_t""yes" 1>&6 | |
13772 | cat >> confdefs.h <<\EOF | |
13773 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
13774 | EOF |
13775 | ||
4f14bcd8 GD |
13776 | else |
13777 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13778 | fi |
13779 | ||
4f14bcd8 GD |
13780 | if test "$ac_cv_func_vprintf" != yes; then |
13781 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
13782 | echo "configure:13783: checking for _doprnt" >&5 | |
13783 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
698dcdb6 VZ |
13784 | echo $ac_n "(cached) $ac_c" 1>&6 |
13785 | else | |
13786 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 13787 | #line 13788 "configure" |
10f2d63a VZ |
13788 | #include "confdefs.h" |
13789 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 13790 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13791 | #include <assert.h> |
13792 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13793 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 13794 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 13795 | char _doprnt(); |
698dcdb6 VZ |
13796 | |
13797 | int main() { | |
10f2d63a VZ |
13798 | |
13799 | /* The GNU C library defines this for functions which it implements | |
13800 | to always fail with ENOSYS. Some functions are actually named | |
13801 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 13802 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
13803 | choke me |
13804 | #else | |
4f14bcd8 | 13805 | _doprnt(); |
10f2d63a VZ |
13806 | #endif |
13807 | ||
698dcdb6 | 13808 | ; return 0; } |
10f2d63a | 13809 | EOF |
4f14bcd8 | 13810 | if { (eval echo configure:13811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13811 | rm -rf conftest* |
4f14bcd8 | 13812 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
13813 | else |
13814 | echo "configure: failed program was:" >&5 | |
13815 | cat conftest.$ac_ext >&5 | |
13816 | rm -rf conftest* | |
4f14bcd8 | 13817 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
13818 | fi |
13819 | rm -f conftest* | |
13820 | fi | |
270a909e | 13821 | |
4f14bcd8 | 13822 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 13823 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13824 | cat >> confdefs.h <<\EOF |
13825 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 13826 | EOF |
4f14bcd8 | 13827 | |
698dcdb6 VZ |
13828 | else |
13829 | echo "$ac_t""no" 1>&6 | |
270a909e | 13830 | fi |
270a909e | 13831 | |
4f14bcd8 | 13832 | fi |
1e487827 | 13833 | |
52e8b690 | 13834 | |
52e8b690 | 13835 | |
52e8b690 | 13836 | |
52e8b690 | 13837 | |
52e8b690 | 13838 | |
4f14bcd8 GD |
13839 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
13840 | echo "configure:13841: checking for vsnprintf" >&5 | |
13841 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
698dcdb6 | 13842 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 13843 | else |
4f14bcd8 | 13844 | |
af15babd | 13845 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 13846 | #line 13847 "configure" |
c63c7106 | 13847 | #include "confdefs.h" |
698dcdb6 | 13848 | |
4f14bcd8 GD |
13849 | #include <stdio.h> |
13850 | #include <stdarg.h> | |
13851 | ||
af15babd VZ |
13852 | int main() { |
13853 | ||
4f14bcd8 GD |
13854 | int wx_test_vsnprintf(const char *, ...); |
13855 | ||
13856 | wx_test_vsnprintf("%s"); | |
13857 | return 0; | |
13858 | } | |
13859 | ||
13860 | int wx_test_vsnprintf(const char *fmt, ...) | |
13861 | { | |
13862 | char *s; | |
13863 | ||
13864 | va_list argp; | |
13865 | va_start(argp, fmt); | |
13866 | vsnprintf(s, 42, fmt, argp); | |
13867 | va_end(argp); | |
13868 | ||
af15babd VZ |
13869 | ; return 0; } |
13870 | EOF | |
4f14bcd8 | 13871 | if { (eval echo configure:13872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd VZ |
13872 | rm -rf conftest* |
13873 | ||
4f14bcd8 GD |
13874 | wx_cv_func_vsnprintf=yes |
13875 | ||
af15babd VZ |
13876 | else |
13877 | echo "configure: failed program was:" >&5 | |
13878 | cat conftest.$ac_ext >&5 | |
13879 | rm -rf conftest* | |
13880 | ||
4f14bcd8 GD |
13881 | cat > conftest.$ac_ext <<EOF |
13882 | #line 13883 "configure" | |
af15babd | 13883 | #include "confdefs.h" |
af15babd | 13884 | |
4f14bcd8 GD |
13885 | #include <stdio.h> |
13886 | #include <stdarg.h> | |
13887 | ||
af15babd VZ |
13888 | int main() { |
13889 | ||
4f14bcd8 GD |
13890 | int wx_test_vsnprintf(const char *, ...); |
13891 | ||
13892 | wx_test_vsnprintf("%s"); | |
13893 | return 0; | |
13894 | } | |
13895 | ||
13896 | int wx_test_vsnprintf(const char *fmt, ...) | |
13897 | { | |
13898 | char *s; | |
af15babd | 13899 | |
4f14bcd8 GD |
13900 | va_list argp; |
13901 | va_start(argp, fmt); | |
13902 | _vsnprintf(s, 42, fmt, argp); | |
13903 | va_end(argp); | |
13904 | ||
af15babd VZ |
13905 | ; return 0; } |
13906 | EOF | |
4f14bcd8 | 13907 | if { (eval echo configure:13908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 13908 | rm -rf conftest* |
4f14bcd8 GD |
13909 | |
13910 | wx_cv_func_vsnprintf=yes | |
13911 | ||
af15babd VZ |
13912 | else |
13913 | echo "configure: failed program was:" >&5 | |
13914 | cat conftest.$ac_ext >&5 | |
13915 | rm -rf conftest* | |
4f14bcd8 GD |
13916 | |
13917 | wx_cv_func_vsnprintf=no | |
13918 | ||
af15babd VZ |
13919 | fi |
13920 | rm -f conftest* | |
4f14bcd8 | 13921 | |
af15babd | 13922 | fi |
4f14bcd8 | 13923 | rm -f conftest* |
af15babd | 13924 | |
af15babd | 13925 | fi |
af15babd | 13926 | |
4f14bcd8 | 13927 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 13928 | |
4f14bcd8 GD |
13929 | if test "$wx_cv_func_vsnprintf" = yes; then |
13930 | cat >> confdefs.h <<\EOF | |
13931 | #define HAVE_VSNPRINTF 1 | |
13932 | EOF | |
13933 | ||
13934 | else | |
13935 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
af15babd VZ |
13936 | fi |
13937 | ||
4f14bcd8 GD |
13938 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
13939 | echo "configure:13940: checking for vsscanf" >&5 | |
13940 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
af15babd VZ |
13941 | echo $ac_n "(cached) $ac_c" 1>&6 |
13942 | else | |
4f14bcd8 | 13943 | |
af15babd | 13944 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 13945 | #line 13946 "configure" |
af15babd | 13946 | #include "confdefs.h" |
af15babd | 13947 | |
4f14bcd8 GD |
13948 | #include <stdio.h> |
13949 | #include <stdarg.h> | |
13950 | ||
af15babd VZ |
13951 | int main() { |
13952 | ||
4f14bcd8 GD |
13953 | int wx_test_vsscanf(const char *, ...); |
13954 | ||
13955 | wx_test_vsscanf("%d"); | |
13956 | return 0; | |
13957 | } | |
af15babd | 13958 | |
4f14bcd8 GD |
13959 | int wx_test_vsscanf(const char *fmt, ...) |
13960 | { | |
13961 | va_list argp; | |
13962 | va_start(argp, fmt); | |
13963 | vsscanf("42", fmt, argp); | |
13964 | va_end(argp); | |
13965 | ||
af15babd VZ |
13966 | ; return 0; } |
13967 | EOF | |
4f14bcd8 | 13968 | if { (eval echo configure:13969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 13969 | rm -rf conftest* |
4f14bcd8 GD |
13970 | |
13971 | wx_cv_func_vsscanf=yes | |
13972 | ||
af15babd VZ |
13973 | else |
13974 | echo "configure: failed program was:" >&5 | |
13975 | cat conftest.$ac_ext >&5 | |
13976 | rm -rf conftest* | |
4f14bcd8 GD |
13977 | |
13978 | wx_cv_func_vsscanf=no | |
13979 | ||
af15babd VZ |
13980 | fi |
13981 | rm -f conftest* | |
4f14bcd8 | 13982 | |
af15babd VZ |
13983 | fi |
13984 | ||
4f14bcd8 GD |
13985 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
13986 | ||
13987 | if test "$wx_cv_func_vsscanf" = yes; then | |
13988 | cat >> confdefs.h <<\EOF | |
13989 | #define HAVE_VSSCANF 1 | |
af15babd | 13990 | EOF |
4f14bcd8 | 13991 | |
af15babd | 13992 | fi |
af15babd | 13993 | |
4f14bcd8 | 13994 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 13995 | |
4f14bcd8 GD |
13996 | |
13997 | ||
13998 | ac_ext=C | |
13999 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14000 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14001 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14002 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14003 | cross_compiling=$ac_cv_prog_cxx_cross | |
14004 | ||
14005 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
14006 | echo "configure:14007: checking if iconv() takes char**" >&5 | |
14007 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then | |
af15babd VZ |
14008 | echo $ac_n "(cached) $ac_c" 1>&6 |
14009 | else | |
4f14bcd8 GD |
14010 | |
14011 | cat > conftest.$ac_ext <<EOF | |
14012 | #line 14013 "configure" | |
af15babd | 14013 | #include "confdefs.h" |
4f14bcd8 | 14014 | #include <iconv.h> |
af15babd VZ |
14015 | int main() { |
14016 | ||
4f14bcd8 GD |
14017 | char **inbuf, **outbuf; |
14018 | iconv_t cd; | |
14019 | size_t insz, outsz; | |
14020 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14021 | ||
af15babd VZ |
14022 | ; return 0; } |
14023 | EOF | |
4f14bcd8 | 14024 | if { (eval echo configure:14025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14025 | rm -rf conftest* |
4f14bcd8 | 14026 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14027 | else |
14028 | echo "configure: failed program was:" >&5 | |
14029 | cat conftest.$ac_ext >&5 | |
14030 | rm -rf conftest* | |
4f14bcd8 | 14031 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14032 | fi |
14033 | rm -f conftest* | |
af15babd | 14034 | |
af15babd | 14035 | fi |
af15babd | 14036 | |
4f14bcd8 GD |
14037 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14038 | ac_ext=c | |
14039 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14040 | ac_cpp='$CPP $CPPFLAGS' | |
14041 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14042 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14043 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14044 | |
4f14bcd8 GD |
14045 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14046 | cat >> confdefs.h <<\EOF | |
14047 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14048 | EOF |
14049 | ||
af15babd VZ |
14050 | fi |
14051 | ||
af15babd | 14052 | |
4f14bcd8 GD |
14053 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14054 | for ac_func in sigaction | |
af15babd VZ |
14055 | do |
14056 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4f14bcd8 | 14057 | echo "configure:14058: checking for $ac_func" >&5 |
af15babd VZ |
14058 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14060 | else | |
14061 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14062 | #line 14063 "configure" |
af15babd VZ |
14063 | #include "confdefs.h" |
14064 | /* System header to define __stub macros and hopefully few prototypes, | |
14065 | which can conflict with char $ac_func(); below. */ | |
14066 | #include <assert.h> | |
14067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14068 | /* We use char because int might match the return type of a gcc2 | |
14069 | builtin and then its argument prototype would still apply. */ | |
14070 | char $ac_func(); | |
14071 | ||
14072 | int main() { | |
14073 | ||
14074 | /* The GNU C library defines this for functions which it implements | |
14075 | to always fail with ENOSYS. Some functions are actually named | |
14076 | something starting with __ and the normal name is an alias. */ | |
14077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14078 | choke me | |
14079 | #else | |
14080 | $ac_func(); | |
14081 | #endif | |
14082 | ||
14083 | ; return 0; } | |
14084 | EOF | |
4f14bcd8 | 14085 | if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14086 | rm -rf conftest* |
14087 | eval "ac_cv_func_$ac_func=yes" | |
14088 | else | |
14089 | echo "configure: failed program was:" >&5 | |
14090 | cat conftest.$ac_ext >&5 | |
14091 | rm -rf conftest* | |
14092 | eval "ac_cv_func_$ac_func=no" | |
14093 | fi | |
14094 | rm -f conftest* | |
14095 | fi | |
14096 | ||
14097 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14098 | echo "$ac_t""yes" 1>&6 | |
14099 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14100 | cat >> confdefs.h <<EOF | |
14101 | #define $ac_tr_func 1 | |
14102 | EOF | |
4f14bcd8 | 14103 | |
af15babd VZ |
14104 | else |
14105 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14106 | fi |
14107 | done | |
14108 | ||
14109 | ||
14110 | if test "$ac_cv_func_sigaction" = "no"; then | |
14111 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14112 | wxUSE_ON_FATAL_EXCEPTION=no | |
14113 | fi | |
14114 | ||
14115 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14116 | ||
14117 | ac_ext=C | |
14118 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14120 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14121 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14122 | cross_compiling=$ac_cv_prog_cxx_cross | |
14123 | ||
14124 | ||
14125 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
14126 | echo "configure:14127: checking for sa_handler type" >&5 | |
14127 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
af15babd VZ |
14128 | echo $ac_n "(cached) $ac_c" 1>&6 |
14129 | else | |
4f14bcd8 GD |
14130 | |
14131 | cat > conftest.$ac_ext <<EOF | |
14132 | #line 14133 "configure" | |
af15babd | 14133 | #include "confdefs.h" |
4f14bcd8 | 14134 | #include <signal.h> |
af15babd | 14135 | int main() { |
4f14bcd8 GD |
14136 | |
14137 | extern void testSigHandler(int); | |
14138 | ||
14139 | struct sigaction sa; | |
14140 | sa.sa_handler = testSigHandler; | |
14141 | ||
af15babd VZ |
14142 | ; return 0; } |
14143 | EOF | |
4f14bcd8 | 14144 | if { (eval echo configure:14145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14145 | rm -rf conftest* |
4f14bcd8 GD |
14146 | |
14147 | wx_cv_type_sa_handler=int | |
14148 | ||
af15babd VZ |
14149 | else |
14150 | echo "configure: failed program was:" >&5 | |
14151 | cat conftest.$ac_ext >&5 | |
14152 | rm -rf conftest* | |
4f14bcd8 GD |
14153 | |
14154 | wx_cv_type_sa_handler=void | |
14155 | ||
af15babd VZ |
14156 | fi |
14157 | rm -f conftest* | |
4f14bcd8 GD |
14158 | |
14159 | fi | |
14160 | ||
14161 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14162 | ||
14163 | ac_ext=c | |
14164 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14165 | ac_cpp='$CPP $CPPFLAGS' | |
14166 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14167 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14168 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14169 | |
4f14bcd8 GD |
14170 | |
14171 | cat >> confdefs.h <<EOF | |
14172 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14173 | EOF |
14174 | ||
4f14bcd8 GD |
14175 | fi |
14176 | fi | |
af15babd | 14177 | |
4f14bcd8 | 14178 | for ac_func in vfork |
af15babd VZ |
14179 | do |
14180 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4f14bcd8 | 14181 | echo "configure:14182: checking for $ac_func" >&5 |
af15babd VZ |
14182 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14184 | else | |
14185 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14186 | #line 14187 "configure" |
af15babd VZ |
14187 | #include "confdefs.h" |
14188 | /* System header to define __stub macros and hopefully few prototypes, | |
14189 | which can conflict with char $ac_func(); below. */ | |
14190 | #include <assert.h> | |
14191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14192 | /* We use char because int might match the return type of a gcc2 | |
14193 | builtin and then its argument prototype would still apply. */ | |
14194 | char $ac_func(); | |
14195 | ||
14196 | int main() { | |
14197 | ||
14198 | /* The GNU C library defines this for functions which it implements | |
14199 | to always fail with ENOSYS. Some functions are actually named | |
14200 | something starting with __ and the normal name is an alias. */ | |
14201 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14202 | choke me | |
14203 | #else | |
14204 | $ac_func(); | |
14205 | #endif | |
14206 | ||
14207 | ; return 0; } | |
14208 | EOF | |
4f14bcd8 | 14209 | if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14210 | rm -rf conftest* |
14211 | eval "ac_cv_func_$ac_func=yes" | |
14212 | else | |
14213 | echo "configure: failed program was:" >&5 | |
14214 | cat conftest.$ac_ext >&5 | |
14215 | rm -rf conftest* | |
14216 | eval "ac_cv_func_$ac_func=no" | |
14217 | fi | |
14218 | rm -f conftest* | |
14219 | fi | |
14220 | ||
14221 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14222 | echo "$ac_t""yes" 1>&6 | |
14223 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14224 | cat >> confdefs.h <<EOF | |
14225 | #define $ac_tr_func 1 | |
14226 | EOF | |
4f14bcd8 | 14227 | |
af15babd VZ |
14228 | else |
14229 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14230 | fi |
14231 | done | |
14232 | ||
af15babd | 14233 | |
4f14bcd8 GD |
14234 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
14235 | echo "configure:14236: checking for statfs" >&5 | |
14236 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then | |
14237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14238 | else | |
14239 | cat > conftest.$ac_ext <<EOF | |
14240 | #line 14241 "configure" | |
14241 | #include "confdefs.h" | |
14242 | ||
14243 | #if defined(__BSD__) | |
14244 | #include <sys/param.h> | |
14245 | #include <sys/mount.h> | |
14246 | #else | |
14247 | #include <sys/vfs.h> | |
14248 | #endif | |
14249 | ||
14250 | int main() { | |
14251 | ||
14252 | long l; | |
14253 | struct statfs fs; | |
14254 | statfs("/", &fs); | |
14255 | l = fs.f_bsize; | |
14256 | l += fs.f_blocks; | |
14257 | l += fs.f_bavail; | |
14258 | ||
14259 | ; return 0; } | |
14260 | EOF | |
14261 | if { (eval echo configure:14262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14262 | rm -rf conftest* | |
14263 | ||
14264 | wx_cv_func_statfs=yes | |
14265 | ||
14266 | else | |
14267 | echo "configure: failed program was:" >&5 | |
14268 | cat conftest.$ac_ext >&5 | |
14269 | rm -rf conftest* | |
14270 | ||
14271 | wx_cv_func_statfs=no | |
af15babd VZ |
14272 | |
14273 | ||
14274 | fi | |
4f14bcd8 | 14275 | rm -f conftest* |
af15babd VZ |
14276 | |
14277 | fi | |
14278 | ||
4f14bcd8 GD |
14279 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
14280 | ||
14281 | if test "$wx_cv_func_statfs" = "yes"; then | |
14282 | cat >> confdefs.h <<\EOF | |
14283 | #define HAVE_STATFS 1 | |
14284 | EOF | |
14285 | ||
14286 | else | |
14287 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
14288 | echo "configure:14289: checking for statvfs" >&5 | |
14289 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then | |
af15babd VZ |
14290 | echo $ac_n "(cached) $ac_c" 1>&6 |
14291 | else | |
14292 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14293 | #line 14294 "configure" |
af15babd | 14294 | #include "confdefs.h" |
af15babd | 14295 | |
4f14bcd8 GD |
14296 | #include <sys/statvfs.h> |
14297 | ||
af15babd VZ |
14298 | int main() { |
14299 | ||
4f14bcd8 GD |
14300 | long l; |
14301 | struct statvfs fs; | |
14302 | statvfs("/", &fs); | |
14303 | l = fs.f_bsize; | |
14304 | l += fs.f_blocks; | |
14305 | l += fs.f_bavail; | |
14306 | ||
af15babd VZ |
14307 | ; return 0; } |
14308 | EOF | |
4f14bcd8 | 14309 | if { (eval echo configure:14310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14310 | rm -rf conftest* |
4f14bcd8 GD |
14311 | |
14312 | wx_cv_func_statvfs=yes | |
14313 | ||
af15babd VZ |
14314 | else |
14315 | echo "configure: failed program was:" >&5 | |
14316 | cat conftest.$ac_ext >&5 | |
14317 | rm -rf conftest* | |
4f14bcd8 GD |
14318 | |
14319 | wx_cv_func_statvfs=no | |
14320 | ||
14321 | ||
af15babd VZ |
14322 | fi |
14323 | rm -f conftest* | |
4f14bcd8 | 14324 | |
af15babd VZ |
14325 | fi |
14326 | ||
4f14bcd8 | 14327 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 14328 | |
4f14bcd8 GD |
14329 | if test "$wx_cv_func_statvfs" = "yes"; then |
14330 | cat >> confdefs.h <<\EOF | |
14331 | #define HAVE_STATVFS 1 | |
14332 | EOF | |
af15babd | 14333 | |
4f14bcd8 GD |
14334 | else |
14335 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
14336 | fi | |
14337 | fi | |
af15babd | 14338 | |
4f14bcd8 GD |
14339 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
14340 | for ac_func in fcntl flock | |
af15babd VZ |
14341 | do |
14342 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4f14bcd8 | 14343 | echo "configure:14344: checking for $ac_func" >&5 |
af15babd VZ |
14344 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14345 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14346 | else | |
14347 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14348 | #line 14349 "configure" |
af15babd VZ |
14349 | #include "confdefs.h" |
14350 | /* System header to define __stub macros and hopefully few prototypes, | |
14351 | which can conflict with char $ac_func(); below. */ | |
14352 | #include <assert.h> | |
14353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
14354 | /* We use char because int might match the return type of a gcc2 |
14355 | builtin and then its argument prototype would still apply. */ | |
14356 | char $ac_func(); | |
14357 | ||
14358 | int main() { | |
14359 | ||
14360 | /* The GNU C library defines this for functions which it implements | |
14361 | to always fail with ENOSYS. Some functions are actually named | |
14362 | something starting with __ and the normal name is an alias. */ | |
14363 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14364 | choke me | |
14365 | #else | |
14366 | $ac_func(); | |
14367 | #endif | |
14368 | ||
14369 | ; return 0; } | |
14370 | EOF | |
4f14bcd8 | 14371 | if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14372 | rm -rf conftest* |
14373 | eval "ac_cv_func_$ac_func=yes" | |
14374 | else | |
14375 | echo "configure: failed program was:" >&5 | |
14376 | cat conftest.$ac_ext >&5 | |
14377 | rm -rf conftest* | |
14378 | eval "ac_cv_func_$ac_func=no" | |
14379 | fi | |
14380 | rm -f conftest* | |
14381 | fi | |
14382 | ||
14383 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14384 | echo "$ac_t""yes" 1>&6 | |
14385 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14386 | cat >> confdefs.h <<EOF | |
14387 | #define $ac_tr_func 1 | |
14388 | EOF | |
4f14bcd8 | 14389 | break |
af15babd VZ |
14390 | else |
14391 | echo "$ac_t""no" 1>&6 | |
14392 | fi | |
14393 | done | |
14394 | ||
14395 | ||
4f14bcd8 GD |
14396 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
14397 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
14398 | wxUSE_SNGLINST_CHECKER=no | |
14399 | fi | |
14400 | fi | |
af15babd | 14401 | |
4f14bcd8 | 14402 | for ac_func in timegm |
af15babd VZ |
14403 | do |
14404 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4f14bcd8 | 14405 | echo "configure:14406: checking for $ac_func" >&5 |
af15babd VZ |
14406 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14408 | else | |
14409 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14410 | #line 14411 "configure" |
af15babd VZ |
14411 | #include "confdefs.h" |
14412 | /* System header to define __stub macros and hopefully few prototypes, | |
14413 | which can conflict with char $ac_func(); below. */ | |
14414 | #include <assert.h> | |
14415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14416 | /* We use char because int might match the return type of a gcc2 | |
14417 | builtin and then its argument prototype would still apply. */ | |
14418 | char $ac_func(); | |
14419 | ||
698dcdb6 | 14420 | int main() { |
698dcdb6 | 14421 | |
af15babd VZ |
14422 | /* The GNU C library defines this for functions which it implements |
14423 | to always fail with ENOSYS. Some functions are actually named | |
14424 | something starting with __ and the normal name is an alias. */ | |
14425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14426 | choke me | |
14427 | #else | |
14428 | $ac_func(); | |
14429 | #endif | |
14430 | ||
698dcdb6 VZ |
14431 | ; return 0; } |
14432 | EOF | |
4f14bcd8 | 14433 | if { (eval echo configure:14434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14434 | rm -rf conftest* |
af15babd | 14435 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14436 | else |
14437 | echo "configure: failed program was:" >&5 | |
14438 | cat conftest.$ac_ext >&5 | |
14439 | rm -rf conftest* | |
af15babd | 14440 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 14441 | fi |
9952adac | 14442 | rm -f conftest* |
af15babd | 14443 | fi |
703e0a69 | 14444 | |
af15babd VZ |
14445 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14446 | echo "$ac_t""yes" 1>&6 | |
14447 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
14448 | cat >> confdefs.h <<EOF |
14449 | #define $ac_tr_func 1 | |
14450 | EOF | |
14451 | ||
14452 | else | |
14453 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14454 | fi |
14455 | done | |
14456 | ||
14457 | ||
4f14bcd8 | 14458 | for ac_func in putenv setenv |
10f2d63a | 14459 | do |
698dcdb6 | 14460 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 14461 | echo "configure:14462: checking for $ac_func" >&5 |
698dcdb6 VZ |
14462 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14463 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14464 | else | |
14465 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14466 | #line 14467 "configure" |
af15babd VZ |
14467 | #include "confdefs.h" |
14468 | /* System header to define __stub macros and hopefully few prototypes, | |
14469 | which can conflict with char $ac_func(); below. */ | |
14470 | #include <assert.h> | |
14471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14472 | /* We use char because int might match the return type of a gcc2 | |
14473 | builtin and then its argument prototype would still apply. */ | |
14474 | char $ac_func(); | |
14475 | ||
14476 | int main() { | |
14477 | ||
14478 | /* The GNU C library defines this for functions which it implements | |
14479 | to always fail with ENOSYS. Some functions are actually named | |
14480 | something starting with __ and the normal name is an alias. */ | |
14481 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14482 | choke me | |
14483 | #else | |
14484 | $ac_func(); | |
14485 | #endif | |
14486 | ||
14487 | ; return 0; } | |
14488 | EOF | |
4f14bcd8 | 14489 | if { (eval echo configure:14490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14490 | rm -rf conftest* |
14491 | eval "ac_cv_func_$ac_func=yes" | |
14492 | else | |
14493 | echo "configure: failed program was:" >&5 | |
14494 | cat conftest.$ac_ext >&5 | |
14495 | rm -rf conftest* | |
14496 | eval "ac_cv_func_$ac_func=no" | |
14497 | fi | |
14498 | rm -f conftest* | |
14499 | fi | |
14500 | ||
14501 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14502 | echo "$ac_t""yes" 1>&6 | |
14503 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14504 | cat >> confdefs.h <<EOF | |
14505 | #define $ac_tr_func 1 | |
14506 | EOF | |
4f14bcd8 | 14507 | break |
af15babd VZ |
14508 | else |
14509 | echo "$ac_t""no" 1>&6 | |
14510 | fi | |
af15babd VZ |
14511 | done |
14512 | ||
14513 | ||
4f14bcd8 GD |
14514 | HAVE_SOME_SLEEP_FUNC=0 |
14515 | if test "$USE_BEOS" = 1; then | |
14516 | cat >> confdefs.h <<\EOF | |
14517 | #define HAVE_SLEEP 1 | |
af15babd VZ |
14518 | EOF |
14519 | ||
4f14bcd8 | 14520 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14521 | fi |
14522 | ||
4f14bcd8 GD |
14523 | if test "$USE_DARWIN" = 1; then |
14524 | cat >> confdefs.h <<\EOF | |
14525 | #define HAVE_USLEEP 1 | |
af15babd | 14526 | EOF |
10f2d63a | 14527 | |
4f14bcd8 | 14528 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14529 | fi |
14530 | ||
4f14bcd8 GD |
14531 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
14532 | POSIX4_LINK= | |
14533 | for ac_func in nanosleep | |
14534 | do | |
14535 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14536 | echo "configure:14537: checking for $ac_func" >&5 | |
14537 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
698dcdb6 | 14538 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14539 | else |
4f14bcd8 GD |
14540 | cat > conftest.$ac_ext <<EOF |
14541 | #line 14542 "configure" | |
10f2d63a | 14542 | #include "confdefs.h" |
4f14bcd8 GD |
14543 | /* System header to define __stub macros and hopefully few prototypes, |
14544 | which can conflict with char $ac_func(); below. */ | |
14545 | #include <assert.h> | |
10f2d63a VZ |
14546 | /* Override any gcc2 internal prototype to avoid an error. */ |
14547 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14548 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14549 | char $ac_func(); |
698dcdb6 VZ |
14550 | |
14551 | int main() { | |
4f14bcd8 GD |
14552 | |
14553 | /* The GNU C library defines this for functions which it implements | |
14554 | to always fail with ENOSYS. Some functions are actually named | |
14555 | something starting with __ and the normal name is an alias. */ | |
14556 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14557 | choke me | |
14558 | #else | |
14559 | $ac_func(); | |
14560 | #endif | |
14561 | ||
698dcdb6 VZ |
14562 | ; return 0; } |
14563 | EOF | |
4f14bcd8 | 14564 | if { (eval echo configure:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14565 | rm -rf conftest* |
4f14bcd8 | 14566 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14567 | else |
14568 | echo "configure: failed program was:" >&5 | |
14569 | cat conftest.$ac_ext >&5 | |
14570 | rm -rf conftest* | |
4f14bcd8 | 14571 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14572 | fi |
14573 | rm -f conftest* | |
698dcdb6 | 14574 | fi |
4f14bcd8 GD |
14575 | |
14576 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14577 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14578 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14579 | cat >> confdefs.h <<EOF | |
14580 | #define $ac_tr_func 1 | |
14581 | EOF | |
14582 | cat >> confdefs.h <<\EOF | |
14583 | #define HAVE_NANOSLEEP 1 | |
14584 | EOF | |
14585 | ||
10f2d63a | 14586 | else |
698dcdb6 | 14587 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
14588 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
14589 | echo "configure:14590: checking for nanosleep in -lposix4" >&5 | |
14590 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
14591 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14593 | else |
698dcdb6 | 14594 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14595 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14596 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 14597 | #line 14598 "configure" |
10f2d63a VZ |
14598 | #include "confdefs.h" |
14599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14600 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14601 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14602 | char nanosleep(); |
698dcdb6 VZ |
14603 | |
14604 | int main() { | |
4f14bcd8 | 14605 | nanosleep() |
698dcdb6 VZ |
14606 | ; return 0; } |
14607 | EOF | |
4f14bcd8 | 14608 | if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14609 | rm -rf conftest* |
14610 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14611 | else | |
14612 | echo "configure: failed program was:" >&5 | |
14613 | cat conftest.$ac_ext >&5 | |
14614 | rm -rf conftest* | |
14615 | eval "ac_cv_lib_$ac_lib_var=no" | |
14616 | fi | |
14617 | rm -f conftest* | |
14618 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14619 | |
698dcdb6 VZ |
14620 | fi |
14621 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14622 | echo "$ac_t""yes" 1>&6 | |
14623 | ||
4f14bcd8 GD |
14624 | cat >> confdefs.h <<\EOF |
14625 | #define HAVE_NANOSLEEP 1 | |
14626 | EOF | |
14627 | ||
14628 | POSIX4_LINK="-lposix4" | |
14629 | ||
10f2d63a | 14630 | else |
698dcdb6 | 14631 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14632 | |
4f14bcd8 GD |
14633 | for ac_func in usleep |
14634 | do | |
14635 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14636 | echo "configure:14637: checking for $ac_func" >&5 | |
14637 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
698dcdb6 | 14638 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14639 | else |
698dcdb6 | 14640 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 14641 | #line 14642 "configure" |
10f2d63a | 14642 | #include "confdefs.h" |
4f14bcd8 GD |
14643 | /* System header to define __stub macros and hopefully few prototypes, |
14644 | which can conflict with char $ac_func(); below. */ | |
14645 | #include <assert.h> | |
14646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14647 | /* We use char because int might match the return type of a gcc2 | |
14648 | builtin and then its argument prototype would still apply. */ | |
14649 | char $ac_func(); | |
14650 | ||
14651 | int main() { | |
14652 | ||
14653 | /* The GNU C library defines this for functions which it implements | |
14654 | to always fail with ENOSYS. Some functions are actually named | |
14655 | something starting with __ and the normal name is an alias. */ | |
14656 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14657 | choke me | |
14658 | #else | |
14659 | $ac_func(); | |
14660 | #endif | |
14661 | ||
14662 | ; return 0; } | |
698dcdb6 | 14663 | EOF |
4f14bcd8 | 14664 | if { (eval echo configure:14665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14665 | rm -rf conftest* |
4f14bcd8 | 14666 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14667 | else |
698dcdb6 | 14668 | echo "configure: failed program was:" >&5 |
10f2d63a | 14669 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14670 | rm -rf conftest* |
4f14bcd8 | 14671 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14672 | fi |
698dcdb6 | 14673 | rm -f conftest* |
10f2d63a | 14674 | fi |
4f14bcd8 GD |
14675 | |
14676 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14677 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14678 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14679 | cat >> confdefs.h <<EOF | |
14680 | #define $ac_tr_func 1 | |
14681 | EOF | |
14682 | cat >> confdefs.h <<\EOF | |
14683 | #define HAVE_USLEEP 1 | |
14684 | EOF | |
14685 | ||
698dcdb6 VZ |
14686 | else |
14687 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14688 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
14689 | ||
10f2d63a | 14690 | fi |
4f14bcd8 | 14691 | done |
10f2d63a | 14692 | |
4f14bcd8 | 14693 | |
698dcdb6 | 14694 | |
6232543b | 14695 | fi |
10f2d63a | 14696 | |
698dcdb6 | 14697 | |
4f14bcd8 | 14698 | |
1e487827 | 14699 | fi |
4f14bcd8 | 14700 | done |
703e0a69 | 14701 | |
10f2d63a VZ |
14702 | fi |
14703 | ||
4f14bcd8 | 14704 | for ac_func in uname gethostname |
70846f0a | 14705 | do |
698dcdb6 | 14706 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 14707 | echo "configure:14708: checking for $ac_func" >&5 |
698dcdb6 VZ |
14708 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14710 | else | |
14711 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14712 | #line 14713 "configure" |
70846f0a VZ |
14713 | #include "confdefs.h" |
14714 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14715 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14716 | #include <assert.h> |
14717 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14718 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14719 | builtin and then its argument prototype would still apply. */ |
14720 | char $ac_func(); | |
14721 | ||
14722 | int main() { | |
70846f0a VZ |
14723 | |
14724 | /* The GNU C library defines this for functions which it implements | |
14725 | to always fail with ENOSYS. Some functions are actually named | |
14726 | something starting with __ and the normal name is an alias. */ | |
14727 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14728 | choke me | |
14729 | #else | |
698dcdb6 | 14730 | $ac_func(); |
70846f0a VZ |
14731 | #endif |
14732 | ||
698dcdb6 | 14733 | ; return 0; } |
70846f0a | 14734 | EOF |
4f14bcd8 | 14735 | if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14736 | rm -rf conftest* |
14737 | eval "ac_cv_func_$ac_func=yes" | |
14738 | else | |
14739 | echo "configure: failed program was:" >&5 | |
14740 | cat conftest.$ac_ext >&5 | |
14741 | rm -rf conftest* | |
14742 | eval "ac_cv_func_$ac_func=no" | |
14743 | fi | |
14744 | rm -f conftest* | |
14745 | fi | |
70846f0a | 14746 | |
698dcdb6 VZ |
14747 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14748 | echo "$ac_t""yes" 1>&6 | |
14749 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14750 | cat >> confdefs.h <<EOF | |
14751 | #define $ac_tr_func 1 | |
14752 | EOF | |
4f14bcd8 | 14753 | break |
698dcdb6 VZ |
14754 | else |
14755 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14756 | fi |
14757 | done | |
14758 | ||
698dcdb6 | 14759 | |
4f14bcd8 GD |
14760 | |
14761 | ac_ext=C | |
14762 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14763 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14764 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14765 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14766 | cross_compiling=$ac_cv_prog_cxx_cross | |
14767 | ||
14768 | ||
14769 | for ac_func in strtok_r | |
10f2d63a | 14770 | do |
4f14bcd8 GD |
14771 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14772 | echo "configure:14773: checking for $ac_func" >&5 | |
14773 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
698dcdb6 VZ |
14774 | echo $ac_n "(cached) $ac_c" 1>&6 |
14775 | else | |
14776 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 14777 | #line 14778 "configure" |
10f2d63a | 14778 | #include "confdefs.h" |
4f14bcd8 GD |
14779 | /* System header to define __stub macros and hopefully few prototypes, |
14780 | which can conflict with char $ac_func(); below. */ | |
14781 | #include <assert.h> | |
14782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14783 | #ifdef __cplusplus | |
14784 | extern "C" | |
14785 | #endif | |
14786 | /* We use char because int might match the return type of a gcc2 | |
14787 | builtin and then its argument prototype would still apply. */ | |
14788 | char $ac_func(); | |
14789 | ||
14790 | int main() { | |
14791 | ||
14792 | /* The GNU C library defines this for functions which it implements | |
14793 | to always fail with ENOSYS. Some functions are actually named | |
14794 | something starting with __ and the normal name is an alias. */ | |
14795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14796 | choke me | |
14797 | #else | |
14798 | $ac_func(); | |
14799 | #endif | |
14800 | ||
14801 | ; return 0; } | |
698dcdb6 | 14802 | EOF |
4f14bcd8 | 14803 | if { (eval echo configure:14804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14804 | rm -rf conftest* |
4f14bcd8 | 14805 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14806 | else |
698dcdb6 | 14807 | echo "configure: failed program was:" >&5 |
10f2d63a | 14808 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14809 | rm -rf conftest* |
4f14bcd8 | 14810 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14811 | fi |
698dcdb6 | 14812 | rm -f conftest* |
10f2d63a | 14813 | fi |
4f14bcd8 GD |
14814 | |
14815 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14816 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 14817 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 14818 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14819 | #define $ac_tr_func 1 |
10f2d63a | 14820 | EOF |
698dcdb6 VZ |
14821 | |
14822 | else | |
14823 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14824 | fi |
14825 | done | |
14826 | ||
698dcdb6 | 14827 | |
4f14bcd8 GD |
14828 | ac_ext=c |
14829 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14830 | ac_cpp='$CPP $CPPFLAGS' | |
14831 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14832 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14833 | cross_compiling=$ac_cv_prog_cc_cross | |
14834 | ||
14835 | ||
14836 | INET_LINK= | |
14837 | for ac_func in inet_addr | |
14838 | do | |
14839 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14840 | echo "configure:14841: checking for $ac_func" >&5 | |
14841 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
698dcdb6 | 14842 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14843 | else |
4f14bcd8 GD |
14844 | cat > conftest.$ac_ext <<EOF |
14845 | #line 14846 "configure" | |
10f2d63a | 14846 | #include "confdefs.h" |
4f14bcd8 GD |
14847 | /* System header to define __stub macros and hopefully few prototypes, |
14848 | which can conflict with char $ac_func(); below. */ | |
14849 | #include <assert.h> | |
10f2d63a VZ |
14850 | /* Override any gcc2 internal prototype to avoid an error. */ |
14851 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14852 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14853 | char $ac_func(); |
698dcdb6 VZ |
14854 | |
14855 | int main() { | |
4f14bcd8 GD |
14856 | |
14857 | /* The GNU C library defines this for functions which it implements | |
14858 | to always fail with ENOSYS. Some functions are actually named | |
14859 | something starting with __ and the normal name is an alias. */ | |
14860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14861 | choke me | |
14862 | #else | |
14863 | $ac_func(); | |
14864 | #endif | |
14865 | ||
698dcdb6 VZ |
14866 | ; return 0; } |
14867 | EOF | |
4f14bcd8 | 14868 | if { (eval echo configure:14869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14869 | rm -rf conftest* |
4f14bcd8 | 14870 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14871 | else |
14872 | echo "configure: failed program was:" >&5 | |
14873 | cat conftest.$ac_ext >&5 | |
14874 | rm -rf conftest* | |
4f14bcd8 | 14875 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14876 | fi |
14877 | rm -f conftest* | |
698dcdb6 | 14878 | fi |
4f14bcd8 GD |
14879 | |
14880 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14881 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14882 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14883 | cat >> confdefs.h <<EOF | |
14884 | #define $ac_tr_func 1 | |
14885 | EOF | |
14886 | cat >> confdefs.h <<\EOF | |
14887 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
14888 | EOF |
14889 | ||
14890 | else | |
698dcdb6 | 14891 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
14892 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
14893 | echo "configure:14894: checking for inet_addr in -lnsl" >&5 | |
14894 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
14895 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14897 | else |
698dcdb6 | 14898 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14899 | LIBS="-lnsl $LIBS" |
698dcdb6 | 14900 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 14901 | #line 14902 "configure" |
10f2d63a VZ |
14902 | #include "confdefs.h" |
14903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14904 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14905 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14906 | char inet_addr(); |
698dcdb6 VZ |
14907 | |
14908 | int main() { | |
4f14bcd8 | 14909 | inet_addr() |
698dcdb6 VZ |
14910 | ; return 0; } |
14911 | EOF | |
4f14bcd8 | 14912 | if { (eval echo configure:14913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14913 | rm -rf conftest* |
14914 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14915 | else | |
14916 | echo "configure: failed program was:" >&5 | |
14917 | cat conftest.$ac_ext >&5 | |
14918 | rm -rf conftest* | |
14919 | eval "ac_cv_lib_$ac_lib_var=no" | |
14920 | fi | |
14921 | rm -f conftest* | |
14922 | LIBS="$ac_save_LIBS" | |
14923 | ||
14924 | fi | |
14925 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14926 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 14927 | INET_LINK="nsl" |
10f2d63a | 14928 | else |
698dcdb6 | 14929 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
14930 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
14931 | echo "configure:14932: checking for inet_addr in -lresolv" >&5 | |
14932 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
14933 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14935 | else |
698dcdb6 | 14936 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14937 | LIBS="-lresolv $LIBS" |
698dcdb6 | 14938 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 14939 | #line 14940 "configure" |
10f2d63a VZ |
14940 | #include "confdefs.h" |
14941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14942 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14943 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14944 | char inet_addr(); |
698dcdb6 VZ |
14945 | |
14946 | int main() { | |
4f14bcd8 | 14947 | inet_addr() |
698dcdb6 VZ |
14948 | ; return 0; } |
14949 | EOF | |
4f14bcd8 | 14950 | if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14951 | rm -rf conftest* |
14952 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14953 | else | |
14954 | echo "configure: failed program was:" >&5 | |
14955 | cat conftest.$ac_ext >&5 | |
14956 | rm -rf conftest* | |
14957 | eval "ac_cv_lib_$ac_lib_var=no" | |
14958 | fi | |
14959 | rm -f conftest* | |
14960 | LIBS="$ac_save_LIBS" | |
14961 | ||
14962 | fi | |
14963 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14964 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
14965 | INET_LINK="resolv" |
14966 | ||
698dcdb6 | 14967 | else |
4f14bcd8 GD |
14968 | echo "$ac_t""no" 1>&6 |
14969 | fi | |
698dcdb6 | 14970 | |
4f14bcd8 | 14971 | |
698dcdb6 | 14972 | fi |
4f14bcd8 GD |
14973 | |
14974 | ||
698dcdb6 VZ |
14975 | |
14976 | fi | |
4f14bcd8 GD |
14977 | done |
14978 | ||
14979 | ||
14980 | for ac_func in inet_aton | |
14981 | do | |
14982 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14983 | echo "configure:14984: checking for $ac_func" >&5 | |
14984 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
698dcdb6 VZ |
14985 | echo $ac_n "(cached) $ac_c" 1>&6 |
14986 | else | |
4f14bcd8 GD |
14987 | cat > conftest.$ac_ext <<EOF |
14988 | #line 14989 "configure" | |
f6bcfd97 | 14989 | #include "confdefs.h" |
4f14bcd8 GD |
14990 | /* System header to define __stub macros and hopefully few prototypes, |
14991 | which can conflict with char $ac_func(); below. */ | |
14992 | #include <assert.h> | |
f6bcfd97 BP |
14993 | /* Override any gcc2 internal prototype to avoid an error. */ |
14994 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14995 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14996 | char $ac_func(); |
698dcdb6 VZ |
14997 | |
14998 | int main() { | |
4f14bcd8 GD |
14999 | |
15000 | /* The GNU C library defines this for functions which it implements | |
15001 | to always fail with ENOSYS. Some functions are actually named | |
15002 | something starting with __ and the normal name is an alias. */ | |
15003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15004 | choke me | |
15005 | #else | |
15006 | $ac_func(); | |
15007 | #endif | |
15008 | ||
698dcdb6 VZ |
15009 | ; return 0; } |
15010 | EOF | |
4f14bcd8 | 15011 | if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15012 | rm -rf conftest* |
4f14bcd8 | 15013 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15014 | else |
15015 | echo "configure: failed program was:" >&5 | |
15016 | cat conftest.$ac_ext >&5 | |
15017 | rm -rf conftest* | |
4f14bcd8 | 15018 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15019 | fi |
15020 | rm -f conftest* | |
698dcdb6 | 15021 | fi |
4f14bcd8 GD |
15022 | |
15023 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15024 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15025 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15026 | cat >> confdefs.h <<EOF | |
15027 | #define $ac_tr_func 1 | |
15028 | EOF | |
15029 | cat >> confdefs.h <<\EOF | |
15030 | #define HAVE_INET_ATON 1 | |
15031 | EOF | |
15032 | ||
10f2d63a | 15033 | else |
698dcdb6 | 15034 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
15035 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
15036 | echo "configure:15037: checking for inet_aton in -l$INET_LINK" >&5 | |
15037 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
15038 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15040 | else |
698dcdb6 | 15041 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15042 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15043 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 15044 | #line 15045 "configure" |
10f2d63a | 15045 | #include "confdefs.h" |
6232543b | 15046 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15047 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15048 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15049 | char inet_aton(); |
698dcdb6 VZ |
15050 | |
15051 | int main() { | |
4f14bcd8 | 15052 | inet_aton() |
698dcdb6 VZ |
15053 | ; return 0; } |
15054 | EOF | |
4f14bcd8 | 15055 | if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15056 | rm -rf conftest* |
15057 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15058 | else | |
15059 | echo "configure: failed program was:" >&5 | |
15060 | cat conftest.$ac_ext >&5 | |
15061 | rm -rf conftest* | |
15062 | eval "ac_cv_lib_$ac_lib_var=no" | |
15063 | fi | |
15064 | rm -f conftest* | |
15065 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15066 | |
698dcdb6 VZ |
15067 | fi |
15068 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15069 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15070 | cat >> confdefs.h <<\EOF |
15071 | #define HAVE_INET_ATON 1 | |
15072 | EOF | |
15073 | ||
698dcdb6 VZ |
15074 | else |
15075 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15076 | fi |
15077 | ||
4f14bcd8 | 15078 | |
10f2d63a | 15079 | fi |
4f14bcd8 | 15080 | done |
10f2d63a | 15081 | |
4f14bcd8 GD |
15082 | |
15083 | if test "x$INET_LINK" != "x"; then | |
15084 | cat >> confdefs.h <<\EOF | |
15085 | #define HAVE_INET_ADDR 1 | |
15086 | EOF | |
15087 | ||
15088 | INET_LINK="-l$INET_LINK" | |
6232543b | 15089 | fi |
10f2d63a | 15090 | |
1e487827 | 15091 | fi |
703e0a69 | 15092 | |
698dcdb6 | 15093 | |
4f14bcd8 GD |
15094 | cat > confcache <<\EOF |
15095 | # This file is a shell script that caches the results of configure | |
15096 | # tests run on this system so they can be shared between configure | |
15097 | # scripts and configure runs. It is not useful on other systems. | |
15098 | # If it contains results you don't want to keep, you may remove or edit it. | |
15099 | # | |
15100 | # By default, configure uses ./config.cache as the cache file, | |
15101 | # creating it if it does not exist already. You can give configure | |
15102 | # the --cache-file=FILE option to use a different cache file; that is | |
15103 | # what configure does when it calls configure scripts in | |
15104 | # subdirectories, so they share the cache. | |
15105 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15106 | # config.status only pays attention to the cache file if you give it the | |
15107 | # --recheck option to rerun configure. | |
15108 | # | |
f6bcfd97 | 15109 | EOF |
4f14bcd8 GD |
15110 | # The following way of writing the cache mishandles newlines in values, |
15111 | # but we know of no workaround that is simple, portable, and efficient. | |
15112 | # So, don't put newlines in cache variables' values. | |
15113 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15114 | # and sets the high bit in the cache file unless we assign to the vars. | |
15115 | (set) 2>&1 | | |
15116 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15117 | *ac_space=\ *) | |
15118 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15119 | # turns \\\\ into \\, and sed turns \\ into \). | |
15120 | sed -n \ | |
15121 | -e "s/'/'\\\\''/g" \ | |
15122 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15123 | ;; | |
15124 | *) | |
15125 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15126 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15127 | ;; | |
15128 | esac >> confcache | |
15129 | if cmp -s $cache_file confcache; then | |
15130 | : | |
15131 | else | |
15132 | if test -w $cache_file; then | |
15133 | echo "updating cache $cache_file" | |
15134 | cat confcache > $cache_file | |
f6bcfd97 | 15135 | else |
4f14bcd8 | 15136 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15137 | fi |
4f14bcd8 GD |
15138 | fi |
15139 | rm -f confcache | |
f6bcfd97 | 15140 | |
4f14bcd8 GD |
15141 | |
15142 | ||
15143 | if test "$TOOLKIT" != "MSW"; then | |
15144 | ||
15145 | ||
15146 | THREADS_LINK= | |
15147 | THREADS_OBJ= | |
15148 | CODE_GEN_FLAGS= | |
15149 | CODE_GEN_FLAGS_CXX= | |
15150 | ||
15151 | if test "$wxUSE_THREADS" = "yes" ; then | |
15152 | if test "$wxUSE_WINE" = 1 ; then | |
15153 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
15154 | wxUSE_THREADS="no" | |
15155 | elif test "$USE_BEOS" = 1; then | |
15156 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
15157 | wxUSE_THREADS="no" | |
15158 | fi | |
15159 | fi | |
15160 | ||
15161 | if test "$wxUSE_THREADS" = "yes" ; then | |
15162 | ||
15163 | if test "$USE_AIX" = 1; then | |
15164 | THREADS_LIB=pthreads | |
15165 | else | |
15166 | THREADS_LIB=pthread | |
15167 | fi | |
15168 | ||
15169 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
15170 | echo "configure:15171: checking for pthread_create in -l$THREADS_LIB" >&5 | |
15171 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
15172 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15174 | else |
698dcdb6 | 15175 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15176 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 15177 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 15178 | #line 15179 "configure" |
10f2d63a VZ |
15179 | #include "confdefs.h" |
15180 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15181 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15182 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15183 | char pthread_create(); |
698dcdb6 VZ |
15184 | |
15185 | int main() { | |
4f14bcd8 | 15186 | pthread_create() |
698dcdb6 VZ |
15187 | ; return 0; } |
15188 | EOF | |
4f14bcd8 | 15189 | if { (eval echo configure:15190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15190 | rm -rf conftest* |
15191 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15192 | else | |
15193 | echo "configure: failed program was:" >&5 | |
15194 | cat conftest.$ac_ext >&5 | |
15195 | rm -rf conftest* | |
15196 | eval "ac_cv_lib_$ac_lib_var=no" | |
15197 | fi | |
15198 | rm -f conftest* | |
15199 | LIBS="$ac_save_LIBS" | |
15200 | ||
15201 | fi | |
15202 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15203 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15204 | |
15205 | THREADS_OBJ="threadpsx.lo" | |
15206 | THREADS_LINK=$THREADS_LIB | |
15207 | ||
10f2d63a | 15208 | else |
698dcdb6 | 15209 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15210 | |
4f14bcd8 GD |
15211 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
15212 | echo "configure:15213: checking for pthread_create in -lc_r" >&5 | |
15213 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | |
15214 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15215 | echo $ac_n "(cached) $ac_c" 1>&6 |
15216 | else | |
4f14bcd8 GD |
15217 | ac_save_LIBS="$LIBS" |
15218 | LIBS="-lc_r $LIBS" | |
15219 | cat > conftest.$ac_ext <<EOF | |
15220 | #line 15221 "configure" | |
10f2d63a | 15221 | #include "confdefs.h" |
4f14bcd8 GD |
15222 | /* Override any gcc2 internal prototype to avoid an error. */ |
15223 | /* We use char because int might match the return type of a gcc2 | |
15224 | builtin and then its argument prototype would still apply. */ | |
15225 | char pthread_create(); | |
10f2d63a | 15226 | |
4f14bcd8 GD |
15227 | int main() { |
15228 | pthread_create() | |
698dcdb6 VZ |
15229 | ; return 0; } |
15230 | EOF | |
4f14bcd8 | 15231 | if { (eval echo configure:15232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15232 | rm -rf conftest* |
4f14bcd8 | 15233 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15234 | else |
698dcdb6 VZ |
15235 | echo "configure: failed program was:" >&5 |
15236 | cat conftest.$ac_ext >&5 | |
15237 | rm -rf conftest* | |
4f14bcd8 | 15238 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15239 | fi |
698dcdb6 | 15240 | rm -f conftest* |
4f14bcd8 | 15241 | LIBS="$ac_save_LIBS" |
d9b9876f | 15242 | |
4f14bcd8 GD |
15243 | fi |
15244 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15245 | echo "$ac_t""yes" 1>&6 | |
15246 | ||
15247 | THREADS_OBJ="threadpsx.lo" | |
15248 | THREADS_LINK="c_r" | |
15249 | ||
15250 | else | |
15251 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 15252 | |
4f14bcd8 GD |
15253 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
15254 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
15255 | echo "configure:15256: checking for sys/prctl.h" >&5 | |
15256 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
698dcdb6 | 15257 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 15258 | else |
4f14bcd8 GD |
15259 | cat > conftest.$ac_ext <<EOF |
15260 | #line 15261 "configure" | |
d9b9876f | 15261 | #include "confdefs.h" |
4f14bcd8 | 15262 | #include <sys/prctl.h> |
698dcdb6 | 15263 | EOF |
4f14bcd8 GD |
15264 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
15265 | { (eval echo configure:15266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15266 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15267 | if test -z "$ac_err"; then | |
698dcdb6 | 15268 | rm -rf conftest* |
4f14bcd8 | 15269 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 15270 | else |
4f14bcd8 | 15271 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15272 | echo "configure: failed program was:" >&5 |
15273 | cat conftest.$ac_ext >&5 | |
15274 | rm -rf conftest* | |
4f14bcd8 | 15275 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 15276 | fi |
698dcdb6 | 15277 | rm -f conftest* |
4f14bcd8 GD |
15278 | fi |
15279 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15280 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 15281 | |
4f14bcd8 GD |
15282 | THREADS_OBJ="threadsgi.lo" |
15283 | ||
15284 | else | |
15285 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15286 | fi |
698dcdb6 | 15287 | |
4f14bcd8 GD |
15288 | |
15289 | fi | |
d9b9876f | 15290 | |
4f14bcd8 GD |
15291 | |
15292 | fi | |
d9b9876f | 15293 | |
4f14bcd8 GD |
15294 | |
15295 | if test -z "$THREADS_OBJ" ; then | |
15296 | wxUSE_THREADS=no | |
15297 | echo "configure: warning: No thread support on this system" 1>&2 | |
15298 | fi | |
15299 | fi | |
15300 | ||
15301 | if test "$wxUSE_THREADS" = "yes" ; then | |
15302 | for ac_func in thr_setconcurrency | |
15303 | do | |
15304 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15305 | echo "configure:15306: checking for $ac_func" >&5 | |
15306 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
698dcdb6 VZ |
15307 | echo $ac_n "(cached) $ac_c" 1>&6 |
15308 | else | |
4f14bcd8 GD |
15309 | cat > conftest.$ac_ext <<EOF |
15310 | #line 15311 "configure" | |
d9b9876f | 15311 | #include "confdefs.h" |
4f14bcd8 GD |
15312 | /* System header to define __stub macros and hopefully few prototypes, |
15313 | which can conflict with char $ac_func(); below. */ | |
15314 | #include <assert.h> | |
15315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15316 | /* We use char because int might match the return type of a gcc2 | |
15317 | builtin and then its argument prototype would still apply. */ | |
15318 | char $ac_func(); | |
15319 | ||
698dcdb6 | 15320 | int main() { |
d9b9876f | 15321 | |
4f14bcd8 GD |
15322 | /* The GNU C library defines this for functions which it implements |
15323 | to always fail with ENOSYS. Some functions are actually named | |
15324 | something starting with __ and the normal name is an alias. */ | |
15325 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15326 | choke me | |
15327 | #else | |
15328 | $ac_func(); | |
15329 | #endif | |
15330 | ||
698dcdb6 VZ |
15331 | ; return 0; } |
15332 | EOF | |
4f14bcd8 | 15333 | if { (eval echo configure:15334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15334 | rm -rf conftest* |
4f14bcd8 | 15335 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 15336 | else |
698dcdb6 VZ |
15337 | echo "configure: failed program was:" >&5 |
15338 | cat conftest.$ac_ext >&5 | |
15339 | rm -rf conftest* | |
4f14bcd8 | 15340 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15341 | fi |
698dcdb6 | 15342 | rm -f conftest* |
1e487827 | 15343 | fi |
698dcdb6 | 15344 | |
4f14bcd8 GD |
15345 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15346 | echo "$ac_t""yes" 1>&6 | |
15347 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15348 | cat >> confdefs.h <<EOF | |
15349 | #define $ac_tr_func 1 | |
d9b9876f | 15350 | EOF |
4f14bcd8 GD |
15351 | |
15352 | else | |
15353 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15354 | fi |
4f14bcd8 | 15355 | done |
10f2d63a | 15356 | |
10f2d63a | 15357 | |
4f14bcd8 GD |
15358 | |
15359 | for ac_hdr in sched.h | |
15360 | do | |
15361 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15362 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
15363 | echo "configure:15364: checking for $ac_hdr" >&5 | |
15364 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
15365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15366 | else |
4f14bcd8 GD |
15367 | cat > conftest.$ac_ext <<EOF |
15368 | #line 15369 "configure" | |
15369 | #include "confdefs.h" | |
15370 | #include <$ac_hdr> | |
13111b2a | 15371 | EOF |
4f14bcd8 GD |
15372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
15373 | { (eval echo configure:15374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15375 | if test -z "$ac_err"; then | |
15376 | rm -rf conftest* | |
15377 | eval "ac_cv_header_$ac_safe=yes" | |
15378 | else | |
15379 | echo "$ac_err" >&5 | |
15380 | echo "configure: failed program was:" >&5 | |
15381 | cat conftest.$ac_ext >&5 | |
15382 | rm -rf conftest* | |
15383 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 15384 | fi |
4f14bcd8 | 15385 | rm -f conftest* |
10f2d63a | 15386 | fi |
4f14bcd8 GD |
15387 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15388 | echo "$ac_t""yes" 1>&6 | |
15389 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 15390 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15391 | #define $ac_tr_hdr 1 |
f6bcfd97 | 15392 | EOF |
4f14bcd8 GD |
15393 | |
15394 | else | |
15395 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 15396 | fi |
4f14bcd8 | 15397 | done |
f6bcfd97 | 15398 | |
10f2d63a | 15399 | |
4f14bcd8 GD |
15400 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
15401 | echo "configure:15402: checking for sched_yield in -l$THREADS_LINK" >&5 | |
15402 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` | |
15403 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15405 | else | |
15406 | ac_save_LIBS="$LIBS" | |
15407 | LIBS="-l$THREADS_LINK $LIBS" | |
15408 | cat > conftest.$ac_ext <<EOF | |
15409 | #line 15410 "configure" | |
15410 | #include "confdefs.h" | |
15411 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15412 | /* We use char because int might match the return type of a gcc2 | |
15413 | builtin and then its argument prototype would still apply. */ | |
15414 | char sched_yield(); | |
10f2d63a | 15415 | |
4f14bcd8 GD |
15416 | int main() { |
15417 | sched_yield() | |
15418 | ; return 0; } | |
10f2d63a | 15419 | EOF |
4f14bcd8 GD |
15420 | if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15421 | rm -rf conftest* | |
15422 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15423 | else |
4f14bcd8 GD |
15424 | echo "configure: failed program was:" >&5 |
15425 | cat conftest.$ac_ext >&5 | |
15426 | rm -rf conftest* | |
15427 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15428 | fi |
4f14bcd8 GD |
15429 | rm -f conftest* |
15430 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15431 | |
4f14bcd8 GD |
15432 | fi |
15433 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15434 | echo "$ac_t""yes" 1>&6 | |
15435 | cat >> confdefs.h <<\EOF | |
15436 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
15437 | EOF |
15438 | ||
4f14bcd8 GD |
15439 | else |
15440 | echo "$ac_t""no" 1>&6 | |
15441 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
15442 | echo "configure:15443: checking for sched_yield in -lposix4" >&5 | |
15443 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
15444 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15446 | else | |
15447 | ac_save_LIBS="$LIBS" | |
15448 | LIBS="-lposix4 $LIBS" | |
15449 | cat > conftest.$ac_ext <<EOF | |
15450 | #line 15451 "configure" | |
15451 | #include "confdefs.h" | |
15452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15453 | /* We use char because int might match the return type of a gcc2 | |
15454 | builtin and then its argument prototype would still apply. */ | |
15455 | char sched_yield(); | |
47c13eb7 | 15456 | |
4f14bcd8 GD |
15457 | int main() { |
15458 | sched_yield() | |
15459 | ; return 0; } | |
10f2d63a | 15460 | EOF |
4f14bcd8 GD |
15461 | if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
15462 | rm -rf conftest* | |
15463 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15464 | else |
4f14bcd8 GD |
15465 | echo "configure: failed program was:" >&5 |
15466 | cat conftest.$ac_ext >&5 | |
15467 | rm -rf conftest* | |
15468 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15469 | fi |
4f14bcd8 GD |
15470 | rm -f conftest* |
15471 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15472 | |
54276ccf | 15473 | fi |
4f14bcd8 GD |
15474 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15475 | echo "$ac_t""yes" 1>&6 | |
15476 | cat >> confdefs.h <<\EOF | |
15477 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 15478 | EOF |
4f14bcd8 GD |
15479 | POSIX4_LINK="-lposix4" |
15480 | else | |
15481 | echo "$ac_t""no" 1>&6 | |
15482 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
15483 | ||
54276ccf VZ |
15484 | fi |
15485 | ||
4f14bcd8 GD |
15486 | |
15487 | fi | |
698dcdb6 | 15488 | |
10f2d63a | 15489 | |
4f14bcd8 GD |
15490 | HAVE_PRIOR_FUNCS=0 |
15491 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
15492 | echo "configure:15493: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
15493 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
15494 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15495 | echo $ac_n "(cached) $ac_c" 1>&6 |
15496 | else | |
4f14bcd8 GD |
15497 | ac_save_LIBS="$LIBS" |
15498 | LIBS="-l$THREADS_LINK $LIBS" | |
15499 | cat > conftest.$ac_ext <<EOF | |
15500 | #line 15501 "configure" | |
422107f9 | 15501 | #include "confdefs.h" |
4f14bcd8 GD |
15502 | /* Override any gcc2 internal prototype to avoid an error. */ |
15503 | /* We use char because int might match the return type of a gcc2 | |
15504 | builtin and then its argument prototype would still apply. */ | |
15505 | char pthread_attr_getschedpolicy(); | |
15506 | ||
15507 | int main() { | |
15508 | pthread_attr_getschedpolicy() | |
15509 | ; return 0; } | |
698dcdb6 | 15510 | EOF |
4f14bcd8 | 15511 | if { (eval echo configure:15512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15512 | rm -rf conftest* |
4f14bcd8 | 15513 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15514 | else |
698dcdb6 | 15515 | echo "configure: failed program was:" >&5 |
422107f9 | 15516 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15517 | rm -rf conftest* |
4f14bcd8 | 15518 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15519 | fi |
698dcdb6 | 15520 | rm -f conftest* |
4f14bcd8 GD |
15521 | LIBS="$ac_save_LIBS" |
15522 | ||
422107f9 | 15523 | fi |
4f14bcd8 | 15524 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15525 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15526 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
15527 | echo "configure:15528: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 | |
15528 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
15529 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15531 | else |
698dcdb6 | 15532 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15533 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15534 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 15535 | #line 15536 "configure" |
422107f9 VZ |
15536 | #include "confdefs.h" |
15537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15538 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15539 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15540 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
15541 | |
15542 | int main() { | |
4f14bcd8 | 15543 | pthread_attr_setschedparam() |
698dcdb6 VZ |
15544 | ; return 0; } |
15545 | EOF | |
4f14bcd8 | 15546 | if { (eval echo configure:15547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15547 | rm -rf conftest* |
15548 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15549 | else | |
15550 | echo "configure: failed program was:" >&5 | |
15551 | cat conftest.$ac_ext >&5 | |
15552 | rm -rf conftest* | |
15553 | eval "ac_cv_lib_$ac_lib_var=no" | |
15554 | fi | |
15555 | rm -f conftest* | |
15556 | LIBS="$ac_save_LIBS" | |
15557 | ||
15558 | fi | |
15559 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15560 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15561 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
15562 | echo "configure:15563: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 | |
15563 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
15564 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15565 | echo $ac_n "(cached) $ac_c" 1>&6 |
15566 | else | |
4f14bcd8 GD |
15567 | ac_save_LIBS="$LIBS" |
15568 | LIBS="-l$THREADS_LINK $LIBS" | |
15569 | cat > conftest.$ac_ext <<EOF | |
15570 | #line 15571 "configure" | |
422107f9 | 15571 | #include "confdefs.h" |
4f14bcd8 GD |
15572 | /* Override any gcc2 internal prototype to avoid an error. */ |
15573 | /* We use char because int might match the return type of a gcc2 | |
15574 | builtin and then its argument prototype would still apply. */ | |
15575 | char sched_get_priority_max(); | |
15576 | ||
15577 | int main() { | |
15578 | sched_get_priority_max() | |
15579 | ; return 0; } | |
698dcdb6 | 15580 | EOF |
4f14bcd8 | 15581 | if { (eval echo configure:15582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15582 | rm -rf conftest* |
4f14bcd8 | 15583 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15584 | else |
698dcdb6 | 15585 | echo "configure: failed program was:" >&5 |
422107f9 | 15586 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15587 | rm -rf conftest* |
4f14bcd8 | 15588 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15589 | fi |
698dcdb6 | 15590 | rm -f conftest* |
4f14bcd8 GD |
15591 | LIBS="$ac_save_LIBS" |
15592 | ||
422107f9 | 15593 | fi |
4f14bcd8 | 15594 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15595 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15596 | HAVE_PRIOR_FUNCS=1 |
15597 | else | |
15598 | echo "$ac_t""no" 1>&6 | |
15599 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
15600 | echo "configure:15601: checking for sched_get_priority_max in -lposix4" >&5 | |
15601 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
15602 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15604 | else |
698dcdb6 | 15605 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15606 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15607 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 15608 | #line 15609 "configure" |
422107f9 VZ |
15609 | #include "confdefs.h" |
15610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15611 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15612 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15613 | char sched_get_priority_max(); |
698dcdb6 VZ |
15614 | |
15615 | int main() { | |
4f14bcd8 | 15616 | sched_get_priority_max() |
698dcdb6 VZ |
15617 | ; return 0; } |
15618 | EOF | |
4f14bcd8 | 15619 | if { (eval echo configure:15620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15620 | rm -rf conftest* |
15621 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15622 | else | |
15623 | echo "configure: failed program was:" >&5 | |
15624 | cat conftest.$ac_ext >&5 | |
15625 | rm -rf conftest* | |
15626 | eval "ac_cv_lib_$ac_lib_var=no" | |
15627 | fi | |
15628 | rm -f conftest* | |
15629 | LIBS="$ac_save_LIBS" | |
15630 | ||
15631 | fi | |
15632 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15633 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15634 | |
15635 | HAVE_PRIOR_FUNCS=1 | |
15636 | POSIX4_LINK="-lposix4" | |
15637 | ||
698dcdb6 VZ |
15638 | else |
15639 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15640 | fi |
15641 | ||
698dcdb6 | 15642 | |
422107f9 VZ |
15643 | fi |
15644 | ||
4f14bcd8 GD |
15645 | |
15646 | else | |
15647 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15648 | fi |
15649 | ||
4f14bcd8 | 15650 | |
698dcdb6 | 15651 | else |
4f14bcd8 GD |
15652 | echo "$ac_t""no" 1>&6 |
15653 | fi | |
463abc64 | 15654 | |
463abc64 | 15655 | |
4f14bcd8 GD |
15656 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
15657 | cat >> confdefs.h <<\EOF | |
15658 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
698dcdb6 | 15659 | EOF |
463abc64 | 15660 | |
4f14bcd8 GD |
15661 | else |
15662 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
15663 | fi | |
463abc64 | 15664 | |
4f14bcd8 GD |
15665 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
15666 | echo "configure:15667: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
15667 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` | |
698dcdb6 VZ |
15668 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15670 | else |
698dcdb6 | 15671 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15672 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15673 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 15674 | #line 15675 "configure" |
422107f9 VZ |
15675 | #include "confdefs.h" |
15676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15677 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15678 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15679 | char pthread_cancel(); |
698dcdb6 VZ |
15680 | |
15681 | int main() { | |
4f14bcd8 | 15682 | pthread_cancel() |
698dcdb6 VZ |
15683 | ; return 0; } |
15684 | EOF | |
4f14bcd8 | 15685 | if { (eval echo configure:15686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15686 | rm -rf conftest* |
15687 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15688 | else | |
15689 | echo "configure: failed program was:" >&5 | |
15690 | cat conftest.$ac_ext >&5 | |
15691 | rm -rf conftest* | |
15692 | eval "ac_cv_lib_$ac_lib_var=no" | |
15693 | fi | |
15694 | rm -f conftest* | |
15695 | LIBS="$ac_save_LIBS" | |
15696 | ||
15697 | fi | |
15698 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15699 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15700 | cat >> confdefs.h <<\EOF |
15701 | #define HAVE_PTHREAD_CANCEL 1 | |
15702 | EOF | |
15703 | ||
698dcdb6 VZ |
15704 | else |
15705 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15706 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
15707 | fi |
15708 | ||
422107f9 | 15709 | |
4f14bcd8 GD |
15710 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
15711 | echo "configure:15712: checking for pthread_cleanup_push/pop" >&5 | |
15712 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
15713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15714 | else | |
15715 | ||
15716 | cat > conftest.$ac_ext <<EOF | |
15717 | #line 15718 "configure" | |
15718 | #include "confdefs.h" | |
15719 | #include <pthread.h> | |
15720 | int main() { | |
15721 | ||
15722 | pthread_cleanup_push(NULL, NULL); | |
15723 | pthread_cleanup_pop(0); | |
15724 | ||
15725 | ; return 0; } | |
15726 | EOF | |
15727 | if { (eval echo configure:15728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15728 | rm -rf conftest* | |
15729 | ||
15730 | wx_cv_func_pthread_cleanup_push=yes | |
15731 | ||
15732 | else | |
15733 | echo "configure: failed program was:" >&5 | |
15734 | cat conftest.$ac_ext >&5 | |
15735 | rm -rf conftest* | |
15736 | ||
15737 | wx_cv_func_pthread_cleanup_push=no | |
15738 | ||
15739 | fi | |
15740 | rm -f conftest* | |
15741 | ||
10f2d63a VZ |
15742 | fi |
15743 | ||
4f14bcd8 GD |
15744 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
15745 | ||
15746 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
15747 | cat >> confdefs.h <<\EOF | |
15748 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
c7a2bf27 RR |
15749 | EOF |
15750 | ||
4f14bcd8 GD |
15751 | fi |
15752 | ||
15753 | ||
15754 | if test "x$wx_lib_glibc21" = "xyes"; then | |
15755 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
15756 | fi | |
15757 | ||
15758 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
15759 | echo "configure:15760: checking for pthread_mutexattr_t" >&5 | |
15760 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
698dcdb6 VZ |
15761 | echo $ac_n "(cached) $ac_c" 1>&6 |
15762 | else | |
4f14bcd8 GD |
15763 | |
15764 | cat > conftest.$ac_ext <<EOF | |
15765 | #line 15766 "configure" | |
0dcf9893 | 15766 | #include "confdefs.h" |
4f14bcd8 GD |
15767 | #include <pthread.h> |
15768 | int main() { | |
15769 | ||
15770 | pthread_mutexattr_t attr; | |
15771 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
15772 | ||
15773 | ; return 0; } | |
698dcdb6 | 15774 | EOF |
4f14bcd8 | 15775 | if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15776 | rm -rf conftest* |
4f14bcd8 GD |
15777 | |
15778 | wx_cv_type_pthread_mutexattr_t=yes | |
15779 | ||
3fed1840 | 15780 | else |
698dcdb6 | 15781 | echo "configure: failed program was:" >&5 |
3fed1840 | 15782 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15783 | rm -rf conftest* |
4f14bcd8 GD |
15784 | |
15785 | wx_cv_type_pthread_mutexattr_t=no | |
15786 | ||
15787 | ||
3fed1840 | 15788 | fi |
698dcdb6 | 15789 | rm -f conftest* |
4f14bcd8 | 15790 | |
3fed1840 | 15791 | fi |
4f14bcd8 GD |
15792 | |
15793 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
15794 | ||
15795 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
15796 | cat >> confdefs.h <<\EOF | |
15797 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
15798 | EOF | |
15799 | ||
15800 | else | |
15801 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
15802 | echo "configure:15803: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
15803 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
698dcdb6 | 15804 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 15805 | else |
4f14bcd8 GD |
15806 | |
15807 | cat > conftest.$ac_ext <<EOF | |
15808 | #line 15809 "configure" | |
3fed1840 | 15809 | #include "confdefs.h" |
4f14bcd8 | 15810 | #include <pthread.h> |
698dcdb6 | 15811 | int main() { |
4f14bcd8 GD |
15812 | |
15813 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
15814 | ||
698dcdb6 VZ |
15815 | ; return 0; } |
15816 | EOF | |
4f14bcd8 | 15817 | if { (eval echo configure:15818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15818 | rm -rf conftest* |
4f14bcd8 GD |
15819 | |
15820 | wx_cv_type_pthread_rec_mutex_init=yes | |
15821 | ||
698dcdb6 VZ |
15822 | else |
15823 | echo "configure: failed program was:" >&5 | |
15824 | cat conftest.$ac_ext >&5 | |
15825 | rm -rf conftest* | |
4f14bcd8 GD |
15826 | |
15827 | wx_cv_type_pthread_rec_mutex_init=no | |
15828 | ||
15829 | ||
698dcdb6 VZ |
15830 | fi |
15831 | rm -f conftest* | |
4f14bcd8 | 15832 | |
3fed1840 RR |
15833 | fi |
15834 | ||
4f14bcd8 GD |
15835 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
15836 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
15837 | cat >> confdefs.h <<\EOF | |
15838 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
15839 | EOF | |
3fed1840 | 15840 | |
4f14bcd8 GD |
15841 | else |
15842 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
3fed1840 RR |
15843 | fi |
15844 | fi | |
4f14bcd8 GD |
15845 | |
15846 | THREADS_LINK="-l$THREADS_LINK" | |
15847 | ||
15848 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
15849 | CPPFLAGS="${CFLAGS} -mt" | |
15850 | CXXFLAGS="${CXXFLAGS} -mt" | |
15851 | LDFLAGS="${LDFLAGS} -mt" | |
15852 | fi | |
3fed1840 RR |
15853 | fi |
15854 | ||
4f14bcd8 GD |
15855 | fi |
15856 | ||
15857 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 15858 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15859 | #define wxUSE_THREADS 1 |
7b6058cd GD |
15860 | EOF |
15861 | ||
4f14bcd8 GD |
15862 | |
15863 | if test "$USE_DARWIN" != 1; then | |
15864 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15865 | fi | |
15866 | ||
15867 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 15868 | else |
4f14bcd8 GD |
15869 | if test "$ac_cv_func_strtok_r" = "yes"; then |
15870 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
15871 | echo "configure:15872: checking if -D_REENTRANT is needed" >&5 | |
15872 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
15873 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15874 | echo "$ac_t""yes" 1>&6 | |
15875 | else | |
15876 | echo "$ac_t""no" 1>&6 | |
15877 | fi | |
15878 | fi | |
15879 | fi | |
15880 | ||
15881 | if test "$WXGTK20" = 1 ; then | |
15882 | cat >> confdefs.h <<EOF | |
15883 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 15884 | EOF |
4f14bcd8 GD |
15885 | |
15886 | WXGTK12=1 | |
10f2d63a | 15887 | fi |
4f14bcd8 GD |
15888 | |
15889 | if test "$WXGTK12" = 1 ; then | |
15890 | cat >> confdefs.h <<EOF | |
15891 | #define __WXGTK12__ $WXGTK12 | |
15892 | EOF | |
15893 | ||
10f2d63a | 15894 | fi |
698dcdb6 | 15895 | |
4f14bcd8 GD |
15896 | if test "$WXGTK127" = 1 ; then |
15897 | cat >> confdefs.h <<EOF | |
15898 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 15899 | EOF |
4f14bcd8 | 15900 | |
698dcdb6 | 15901 | fi |
10f2d63a | 15902 | |
4f14bcd8 GD |
15903 | WXDEBUG= |
15904 | ||
15905 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15906 | WXDEBUG="-g" | |
15907 | wxUSE_OPTIMISE=no | |
698dcdb6 | 15908 | fi |
4f14bcd8 GD |
15909 | |
15910 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15911 | wxUSE_DEBUG_INFO=yes | |
15912 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
15913 | fi |
15914 | ||
4f14bcd8 GD |
15915 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
15916 | cat >> confdefs.h <<\EOF | |
15917 | #define WXDEBUG 1 | |
15918 | EOF | |
15919 | ||
15920 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 15921 | else |
4f14bcd8 GD |
15922 | if test "$wxUSE_GTK" = 1 ; then |
15923 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15924 | fi | |
15925 | fi | |
15926 | ||
15927 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
15928 | cat >> confdefs.h <<\EOF | |
15929 | #define wxUSE_MEMORY_TRACING 1 | |
15930 | EOF | |
15931 | ||
15932 | cat >> confdefs.h <<\EOF | |
15933 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
15934 | EOF | |
15935 | ||
15936 | cat >> confdefs.h <<\EOF | |
15937 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
15938 | EOF | |
15939 | ||
15940 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15941 | fi | |
15942 | ||
15943 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15944 | DMALLOC_LINK="-ldmalloc" | |
15945 | fi | |
15946 | ||
15947 | PROFILE= | |
15948 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15949 | PROFILE="-pg" | |
10f2d63a VZ |
15950 | fi |
15951 | ||
4f14bcd8 GD |
15952 | if test "$GCC" = yes ; then |
15953 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
15954 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 15955 | fi |
4f14bcd8 GD |
15956 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
15957 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
15958 | fi | |
15959 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
15960 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
15961 | fi | |
15962 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
15963 | CFLAGS="-MMD ${CFLAGS}" | |
15964 | CXXFLAGS="-MMD ${CXXFLAGS}" | |
15965 | fi | |
15966 | if test "$USE_WIN32" = 1 ; then | |
15967 | # I'm not even really sure what this was ever added to solve, | |
15968 | # but someone added it for mingw native builds, so I guess | |
15969 | # they had a reason, right?? | |
15970 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
15971 | fi | |
15972 | fi | |
15973 | ||
15974 | ||
15975 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
15976 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
15977 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
15978 | OPTIMISE= | |
15979 | else | |
15980 | if test "$GCC" = yes ; then | |
15981 | OPTIMISE="-O2" | |
15982 | case "${host}" in | |
15983 | i586-*-*|i686-*-* ) | |
15984 | OPTIMISE="${OPTIMISE} " | |
15985 | ;; | |
15986 | esac | |
15987 | else | |
15988 | OPTIMISE="-O" | |
15989 | fi | |
15990 | fi | |
15991 | ||
15992 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
15993 | cat >> confdefs.h <<\EOF | |
15994 | #define WXWIN_COMPATIBILITY_2 1 | |
15995 | EOF | |
15996 | ||
15997 | ||
15998 | WXWIN_COMPATIBILITY_2_2="yes" | |
15999 | fi | |
16000 | ||
16001 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16002 | cat >> confdefs.h <<\EOF | |
16003 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16004 | EOF | |
16005 | ||
10f2d63a VZ |
16006 | fi |
16007 | ||
698dcdb6 | 16008 | |
10f2d63a | 16009 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16011 | #define wxUSE_GUI 1 |
16012 | EOF | |
16013 | ||
698dcdb6 | 16014 | |
10f2d63a | 16015 | else |
698dcdb6 | 16016 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16017 | #define wxUSE_NOGUI 1 |
16018 | EOF | |
16019 | ||
16020 | fi | |
16021 | ||
698dcdb6 | 16022 | |
10f2d63a | 16023 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16024 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16025 | #define wxUSE_UNIX 1 |
16026 | EOF | |
16027 | ||
16028 | fi | |
16029 | ||
698dcdb6 | 16030 | |
10f2d63a | 16031 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16032 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16033 | #define wxUSE_APPLE_IEEE 1 |
16034 | EOF | |
16035 | ||
16036 | fi | |
16037 | ||
1e6feb95 VZ |
16038 | if test "$wxUSE_TIMER" = "yes"; then |
16039 | cat >> confdefs.h <<\EOF | |
16040 | #define wxUSE_TIMER 1 | |
16041 | EOF | |
16042 | ||
16043 | fi | |
16044 | ||
10f2d63a | 16045 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16046 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16047 | #define wxUSE_WAVE 1 |
16048 | EOF | |
16049 | ||
16050 | fi | |
16051 | ||
1e6feb95 VZ |
16052 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16053 | cat >> confdefs.h <<\EOF | |
16054 | #define wxUSE_CMDLINE_PARSER 1 | |
16055 | EOF | |
16056 | ||
16057 | fi | |
16058 | ||
16059 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16060 | cat >> confdefs.h <<\EOF | |
16061 | #define wxUSE_STOPWATCH 1 | |
16062 | EOF | |
16063 | ||
16064 | fi | |
16065 | ||
16066 | if test "$wxUSE_DATETIME" = "yes"; then | |
16067 | cat >> confdefs.h <<\EOF | |
16068 | #define wxUSE_DATETIME 1 | |
16069 | EOF | |
16070 | ||
16071 | fi | |
16072 | ||
16073 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16074 | cat >> confdefs.h <<\EOF | |
16075 | #define wxUSE_TIMEDATE 1 | |
16076 | EOF | |
16077 | ||
16078 | fi | |
16079 | ||
10f2d63a | 16080 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16081 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16082 | #define wxUSE_FILE 1 |
16083 | EOF | |
16084 | ||
16085 | fi | |
16086 | ||
1e6feb95 VZ |
16087 | if test "$wxUSE_FFILE" = "yes"; then |
16088 | cat >> confdefs.h <<\EOF | |
16089 | #define wxUSE_FFILE 1 | |
16090 | EOF | |
16091 | ||
16092 | fi | |
16093 | ||
24528b0c | 16094 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16095 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16096 | #define wxUSE_FILESYSTEM 1 |
16097 | EOF | |
16098 | ||
16099 | fi | |
16100 | ||
10f2d63a | 16101 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16102 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16103 | #define wxUSE_FS_INET 1 |
16104 | EOF | |
16105 | ||
16106 | fi | |
16107 | ||
16108 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16109 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16110 | #define wxUSE_FS_ZIP 1 |
16111 | EOF | |
16112 | ||
16113 | fi | |
16114 | ||
16115 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16117 | #define wxUSE_ZIPSTREAM 1 |
16118 | EOF | |
16119 | ||
16120 | fi | |
16121 | ||
eb4efbdc | 16122 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16123 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16124 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16125 | EOF | |
16126 | ||
16127 | fi | |
16128 | ||
4f3c5f06 | 16129 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16130 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16131 | #define wxUSE_SNGLINST_CHECKER 1 |
16132 | EOF | |
16133 | ||
16134 | fi | |
16135 | ||
10f2d63a | 16136 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16137 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16138 | #define wxUSE_BUSYINFO 1 |
16139 | EOF | |
16140 | ||
16141 | fi | |
16142 | ||
16143 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16144 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16145 | #define wxUSE_STD_IOSTREAM 1 |
16146 | EOF | |
16147 | ||
16148 | fi | |
16149 | ||
16150 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
16151 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16152 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16153 | else |
698dcdb6 | 16154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16155 | #define wxUSE_TEXTFILE 1 |
16156 | EOF | |
16157 | ||
16158 | fi | |
16159 | fi | |
16160 | ||
16161 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16162 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 16163 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16164 | else |
698dcdb6 | 16165 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16166 | #define wxUSE_CONFIG 1 |
16167 | EOF | |
16168 | ||
16169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16170 | fi | |
16171 | fi | |
16172 | ||
16173 | if test "$wxUSE_INTL" = "yes" ; then | |
16174 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16175 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16176 | else |
698dcdb6 | 16177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16178 | #define wxUSE_INTL 1 |
16179 | EOF | |
16180 | ||
16181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 16182 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
16183 | fi |
16184 | fi | |
16185 | ||
16186 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 16187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16188 | #define wxUSE_LOG 1 |
16189 | EOF | |
16190 | ||
d73be714 VZ |
16191 | |
16192 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16193 | cat >> confdefs.h <<\EOF | |
16194 | #define wxUSE_LOGGUI 1 | |
16195 | EOF | |
16196 | ||
16197 | fi | |
16198 | ||
16199 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16200 | cat >> confdefs.h <<\EOF | |
16201 | #define wxUSE_LOGWINDOW 1 | |
16202 | EOF | |
16203 | ||
16204 | fi | |
10f2d63a VZ |
16205 | fi |
16206 | ||
16207 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16209 | #define wxUSE_LONGLONG 1 |
16210 | EOF | |
16211 | ||
16212 | fi | |
16213 | ||
e8f65ba6 | 16214 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16215 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16216 | #define wxUSE_GEOMETRY 1 |
16217 | EOF | |
16218 | ||
16219 | fi | |
16220 | ||
10f2d63a | 16221 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16223 | #define wxUSE_DIALUP_MANAGER 1 |
16224 | EOF | |
16225 | ||
70f7a477 | 16226 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16227 | fi |
16228 | ||
16229 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16231 | #define wxUSE_STREAMS 1 |
16232 | EOF | |
16233 | ||
16234 | fi | |
16235 | ||
1e487827 | 16236 | |
1e6feb95 | 16237 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16238 | for ac_func in strptime |
83307f33 | 16239 | do |
698dcdb6 | 16240 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 16241 | echo "configure:16242: checking for $ac_func" >&5 |
698dcdb6 VZ |
16242 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16244 | else | |
16245 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16246 | #line 16247 "configure" |
83307f33 VZ |
16247 | #include "confdefs.h" |
16248 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16249 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16250 | #include <assert.h> |
16251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16252 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16253 | builtin and then its argument prototype would still apply. */ |
16254 | char $ac_func(); | |
16255 | ||
16256 | int main() { | |
83307f33 VZ |
16257 | |
16258 | /* The GNU C library defines this for functions which it implements | |
16259 | to always fail with ENOSYS. Some functions are actually named | |
16260 | something starting with __ and the normal name is an alias. */ | |
16261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16262 | choke me | |
16263 | #else | |
698dcdb6 | 16264 | $ac_func(); |
83307f33 VZ |
16265 | #endif |
16266 | ||
698dcdb6 | 16267 | ; return 0; } |
83307f33 | 16268 | EOF |
4f14bcd8 | 16269 | if { (eval echo configure:16270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16270 | rm -rf conftest* |
16271 | eval "ac_cv_func_$ac_func=yes" | |
16272 | else | |
16273 | echo "configure: failed program was:" >&5 | |
16274 | cat conftest.$ac_ext >&5 | |
16275 | rm -rf conftest* | |
16276 | eval "ac_cv_func_$ac_func=no" | |
16277 | fi | |
16278 | rm -f conftest* | |
16279 | fi | |
83307f33 | 16280 | |
698dcdb6 VZ |
16281 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16282 | echo "$ac_t""yes" 1>&6 | |
16283 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16284 | cat >> confdefs.h <<EOF | |
16285 | #define $ac_tr_func 1 | |
16286 | EOF | |
16287 | ||
16288 | else | |
16289 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16290 | fi |
16291 | done | |
16292 | ||
1e487827 | 16293 | |
698dcdb6 | 16294 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
4f14bcd8 | 16295 | echo "configure:16296: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16296 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16298 | else | |
16299 | ||
16300 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16301 | #line 16302 "configure" |
360d6699 VZ |
16302 | #include "confdefs.h" |
16303 | ||
b4085ce6 | 16304 | #include <time.h> |
698dcdb6 VZ |
16305 | |
16306 | int main() { | |
360d6699 VZ |
16307 | |
16308 | int tz; | |
4f11a343 | 16309 | tz = timezone; |
698dcdb6 VZ |
16310 | |
16311 | ; return 0; } | |
16312 | EOF | |
4f14bcd8 | 16313 | if { (eval echo configure:16314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16314 | rm -rf conftest* |
16315 | ||
4f11a343 | 16316 | wx_cv_var_timezone=timezone |
698dcdb6 | 16317 | |
360d6699 | 16318 | else |
698dcdb6 VZ |
16319 | echo "configure: failed program was:" >&5 |
16320 | cat conftest.$ac_ext >&5 | |
16321 | rm -rf conftest* | |
16322 | ||
16323 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16324 | #line 16325 "configure" |
360d6699 VZ |
16325 | #include "confdefs.h" |
16326 | ||
b4085ce6 | 16327 | #include <time.h> |
698dcdb6 VZ |
16328 | |
16329 | int main() { | |
360d6699 VZ |
16330 | |
16331 | int tz; | |
16332 | tz = _timezone; | |
698dcdb6 VZ |
16333 | |
16334 | ; return 0; } | |
16335 | EOF | |
4f14bcd8 | 16336 | if { (eval echo configure:16337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16337 | rm -rf conftest* |
16338 | ||
360d6699 | 16339 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16340 | |
5357c8e8 | 16341 | else |
698dcdb6 VZ |
16342 | echo "configure: failed program was:" >&5 |
16343 | cat conftest.$ac_ext >&5 | |
16344 | rm -rf conftest* | |
16345 | ||
16346 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16347 | #line 16348 "configure" |
5357c8e8 VZ |
16348 | #include "confdefs.h" |
16349 | ||
b4085ce6 | 16350 | #include <time.h> |
698dcdb6 VZ |
16351 | |
16352 | int main() { | |
5357c8e8 VZ |
16353 | |
16354 | int tz; | |
4f11a343 | 16355 | tz = __timezone; |
698dcdb6 VZ |
16356 | |
16357 | ; return 0; } | |
16358 | EOF | |
4f14bcd8 | 16359 | if { (eval echo configure:16360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16360 | rm -rf conftest* |
16361 | ||
4f11a343 | 16362 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16363 | |
360d6699 | 16364 | else |
698dcdb6 VZ |
16365 | echo "configure: failed program was:" >&5 |
16366 | cat conftest.$ac_ext >&5 | |
16367 | rm -rf conftest* | |
16368 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16369 | ||
360d6699 | 16370 | fi |
698dcdb6 VZ |
16371 | rm -f conftest* |
16372 | ||
16373 | ||
360d6699 | 16374 | fi |
698dcdb6 VZ |
16375 | rm -f conftest* |
16376 | ||
16377 | ||
6232543b | 16378 | fi |
698dcdb6 VZ |
16379 | rm -f conftest* |
16380 | ||
16381 | ||
1e487827 | 16382 | fi |
703e0a69 | 16383 | |
698dcdb6 VZ |
16384 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16385 | ||
16386 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16387 | #define WX_TIMEZONE $wx_cv_var_timezone |
16388 | EOF | |
16389 | ||
698dcdb6 VZ |
16390 | |
16391 | for ac_func in localtime | |
afc31813 | 16392 | do |
698dcdb6 | 16393 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 16394 | echo "configure:16395: checking for $ac_func" >&5 |
698dcdb6 VZ |
16395 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16397 | else | |
16398 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16399 | #line 16400 "configure" |
10f2d63a | 16400 | #include "confdefs.h" |
afc31813 | 16401 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16402 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16403 | #include <assert.h> |
16404 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16405 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16406 | builtin and then its argument prototype would still apply. */ |
16407 | char $ac_func(); | |
16408 | ||
16409 | int main() { | |
afc31813 VZ |
16410 | |
16411 | /* The GNU C library defines this for functions which it implements | |
16412 | to always fail with ENOSYS. Some functions are actually named | |
16413 | something starting with __ and the normal name is an alias. */ | |
16414 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16415 | choke me | |
16416 | #else | |
698dcdb6 | 16417 | $ac_func(); |
afc31813 VZ |
16418 | #endif |
16419 | ||
698dcdb6 | 16420 | ; return 0; } |
10f2d63a | 16421 | EOF |
4f14bcd8 | 16422 | if { (eval echo configure:16423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16423 | rm -rf conftest* |
16424 | eval "ac_cv_func_$ac_func=yes" | |
16425 | else | |
16426 | echo "configure: failed program was:" >&5 | |
16427 | cat conftest.$ac_ext >&5 | |
16428 | rm -rf conftest* | |
16429 | eval "ac_cv_func_$ac_func=no" | |
16430 | fi | |
16431 | rm -f conftest* | |
16432 | fi | |
afc31813 | 16433 | |
698dcdb6 VZ |
16434 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16435 | echo "$ac_t""yes" 1>&6 | |
16436 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16437 | cat >> confdefs.h <<EOF | |
16438 | #define $ac_tr_func 1 | |
16439 | EOF | |
16440 | ||
16441 | else | |
16442 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16443 | fi |
16444 | done | |
16445 | ||
1e487827 | 16446 | |
698dcdb6 VZ |
16447 | if test "$ac_cv_func_localtime" = "yes"; then |
16448 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
4f14bcd8 | 16449 | echo "configure:16450: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16450 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16452 | else | |
16453 | ||
16454 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16455 | #line 16456 "configure" |
0470b1e6 VZ |
16456 | #include "confdefs.h" |
16457 | ||
b4085ce6 | 16458 | #include <time.h> |
698dcdb6 VZ |
16459 | |
16460 | int main() { | |
0470b1e6 VZ |
16461 | |
16462 | struct tm tm; | |
16463 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16464 | |
16465 | ; return 0; } | |
16466 | EOF | |
4f14bcd8 | 16467 | if { (eval echo configure:16468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16468 | rm -rf conftest* |
16469 | ||
f03a98d8 | 16470 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16471 | |
0470b1e6 | 16472 | else |
698dcdb6 VZ |
16473 | echo "configure: failed program was:" >&5 |
16474 | cat conftest.$ac_ext >&5 | |
16475 | rm -rf conftest* | |
16476 | wx_cv_struct_tm_has_gmtoff=no | |
16477 | ||
0470b1e6 | 16478 | fi |
698dcdb6 VZ |
16479 | rm -f conftest* |
16480 | ||
1e487827 | 16481 | fi |
698dcdb6 VZ |
16482 | |
16483 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16484 | fi |
16485 | ||
16486 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16487 | cat >> confdefs.h <<\EOF |
6232543b VS |
16488 | #define WX_GMTOFF_IN_TM 1 |
16489 | EOF | |
0470b1e6 | 16490 | |
3fcdd07b VZ |
16491 | fi |
16492 | ||
698dcdb6 | 16493 | for ac_func in gettimeofday ftime |
3fcdd07b | 16494 | do |
698dcdb6 | 16495 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 16496 | echo "configure:16497: checking for $ac_func" >&5 |
698dcdb6 VZ |
16497 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16499 | else | |
16500 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16501 | #line 16502 "configure" |
3fcdd07b VZ |
16502 | #include "confdefs.h" |
16503 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16504 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16505 | #include <assert.h> |
16506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16507 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16508 | builtin and then its argument prototype would still apply. */ |
16509 | char $ac_func(); | |
16510 | ||
16511 | int main() { | |
3fcdd07b VZ |
16512 | |
16513 | /* The GNU C library defines this for functions which it implements | |
16514 | to always fail with ENOSYS. Some functions are actually named | |
16515 | something starting with __ and the normal name is an alias. */ | |
16516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16517 | choke me | |
16518 | #else | |
698dcdb6 | 16519 | $ac_func(); |
3fcdd07b VZ |
16520 | #endif |
16521 | ||
698dcdb6 VZ |
16522 | ; return 0; } |
16523 | EOF | |
4f14bcd8 | 16524 | if { (eval echo configure:16525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16525 | rm -rf conftest* |
16526 | eval "ac_cv_func_$ac_func=yes" | |
16527 | else | |
16528 | echo "configure: failed program was:" >&5 | |
16529 | cat conftest.$ac_ext >&5 | |
16530 | rm -rf conftest* | |
16531 | eval "ac_cv_func_$ac_func=no" | |
16532 | fi | |
16533 | rm -f conftest* | |
16534 | fi | |
16535 | ||
16536 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16537 | echo "$ac_t""yes" 1>&6 | |
16538 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16539 | cat >> confdefs.h <<EOF | |
16540 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16541 | EOF |
16542 | break | |
698dcdb6 VZ |
16543 | else |
16544 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16545 | fi |
16546 | done | |
16547 | ||
afc31813 | 16548 | |
698dcdb6 VZ |
16549 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16550 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
4f14bcd8 | 16551 | echo "configure:16552: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16552 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16554 | else | |
16555 | ||
16556 | ||
16557 | ac_ext=C | |
16558 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16559 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16560 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16561 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16562 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16563 | |
698dcdb6 VZ |
16564 | |
16565 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16566 | #line 16567 "configure" |
10f2d63a | 16567 | #include "confdefs.h" |
afc31813 VZ |
16568 | |
16569 | #include <sys/time.h> | |
16570 | #include <unistd.h> | |
698dcdb6 VZ |
16571 | |
16572 | int main() { | |
afc31813 VZ |
16573 | |
16574 | struct timeval tv; | |
776862b4 | 16575 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16576 | |
16577 | ; return 0; } | |
16578 | EOF | |
4f14bcd8 | 16579 | if { (eval echo configure:16580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16580 | rm -rf conftest* |
afc31813 | 16581 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16582 | else |
698dcdb6 VZ |
16583 | echo "configure: failed program was:" >&5 |
16584 | cat conftest.$ac_ext >&5 | |
16585 | rm -rf conftest* | |
16586 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16587 | #line 16588 "configure" |
10f2d63a | 16588 | #include "confdefs.h" |
afc31813 VZ |
16589 | |
16590 | #include <sys/time.h> | |
16591 | #include <unistd.h> | |
698dcdb6 VZ |
16592 | |
16593 | int main() { | |
afc31813 VZ |
16594 | |
16595 | struct timeval tv; | |
16596 | gettimeofday(&tv); | |
698dcdb6 VZ |
16597 | |
16598 | ; return 0; } | |
16599 | EOF | |
4f14bcd8 | 16600 | if { (eval echo configure:16601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16601 | rm -rf conftest* |
afc31813 | 16602 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16603 | else |
698dcdb6 VZ |
16604 | echo "configure: failed program was:" >&5 |
16605 | cat conftest.$ac_ext >&5 | |
16606 | rm -rf conftest* | |
776862b4 VZ |
16607 | |
16608 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16609 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16610 | ||
698dcdb6 | 16611 | |
10f2d63a | 16612 | fi |
698dcdb6 VZ |
16613 | rm -f conftest* |
16614 | ||
10f2d63a | 16615 | fi |
698dcdb6 | 16616 | rm -f conftest* |
afc31813 | 16617 | ac_ext=c |
698dcdb6 | 16618 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16619 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16620 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16621 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16622 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16623 | |
698dcdb6 | 16624 | |
afc31813 | 16625 | fi |
698dcdb6 VZ |
16626 | |
16627 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16628 | |
afc31813 | 16629 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16630 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16631 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16632 | EOF | |
16633 | ||
16634 | fi | |
16635 | fi | |
16636 | ||
698dcdb6 | 16637 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16638 | #define wxUSE_TIMEDATE 1 |
16639 | EOF | |
16640 | ||
16641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16642 | fi | |
16643 | ||
698dcdb6 | 16644 | |
b089607b VZ |
16645 | if test "$TOOLKIT" != "MSW"; then |
16646 | ||
3a922bb4 RL |
16647 | if test "$wxUSE_SOCKETS" = "yes"; then |
16648 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
4f14bcd8 | 16649 | echo "configure:16650: checking for socket" >&5 |
698dcdb6 VZ |
16650 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16652 | else |
698dcdb6 | 16653 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 16654 | #line 16655 "configure" |
c63c7106 VZ |
16655 | #include "confdefs.h" |
16656 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16657 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16658 | #include <assert.h> |
16659 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16660 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16661 | builtin and then its argument prototype would still apply. */ |
16662 | char socket(); | |
16663 | ||
16664 | int main() { | |
c63c7106 VZ |
16665 | |
16666 | /* The GNU C library defines this for functions which it implements | |
16667 | to always fail with ENOSYS. Some functions are actually named | |
16668 | something starting with __ and the normal name is an alias. */ | |
16669 | #if defined (__stub_socket) || defined (__stub___socket) | |
16670 | choke me | |
16671 | #else | |
698dcdb6 | 16672 | socket(); |
c63c7106 VZ |
16673 | #endif |
16674 | ||
698dcdb6 VZ |
16675 | ; return 0; } |
16676 | EOF | |
4f14bcd8 | 16677 | if { (eval echo configure:16678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16678 | rm -rf conftest* |
16679 | eval "ac_cv_func_socket=yes" | |
16680 | else | |
16681 | echo "configure: failed program was:" >&5 | |
16682 | cat conftest.$ac_ext >&5 | |
16683 | rm -rf conftest* | |
16684 | eval "ac_cv_func_socket=no" | |
16685 | fi | |
16686 | rm -f conftest* | |
16687 | fi | |
16688 | ||
16689 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16690 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16691 | : |
16692 | else | |
698dcdb6 VZ |
16693 | echo "$ac_t""no" 1>&6 |
16694 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
4f14bcd8 | 16695 | echo "configure:16696: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16696 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16697 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16699 | else |
698dcdb6 | 16700 | ac_save_LIBS="$LIBS" |
c63c7106 | 16701 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16702 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 16703 | #line 16704 "configure" |
c63c7106 VZ |
16704 | #include "confdefs.h" |
16705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16706 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16707 | builtin and then its argument prototype would still apply. */ |
16708 | char socket(); | |
16709 | ||
16710 | int main() { | |
16711 | socket() | |
16712 | ; return 0; } | |
16713 | EOF | |
4f14bcd8 | 16714 | if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16715 | rm -rf conftest* |
16716 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16717 | else | |
16718 | echo "configure: failed program was:" >&5 | |
16719 | cat conftest.$ac_ext >&5 | |
16720 | rm -rf conftest* | |
16721 | eval "ac_cv_lib_$ac_lib_var=no" | |
16722 | fi | |
16723 | rm -f conftest* | |
16724 | LIBS="$ac_save_LIBS" | |
16725 | ||
16726 | fi | |
16727 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16728 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16729 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16730 | else |
698dcdb6 | 16731 | echo "$ac_t""no" 1>&6 |
afc31813 | 16732 | |
3a922bb4 RL |
16733 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16734 | wxUSE_SOCKETS=no | |
16735 | ||
698dcdb6 | 16736 | |
6232543b | 16737 | fi |
b089607b | 16738 | |
3a922bb4 | 16739 | |
1e487827 | 16740 | fi |
afc31813 | 16741 | |
3a922bb4 | 16742 | fi |
51a9faba | 16743 | |
3a922bb4 RL |
16744 | |
16745 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16746 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
4f14bcd8 | 16747 | echo "configure:16748: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16748 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16750 | else | |
16751 | ||
3a922bb4 RL |
16752 | |
16753 | ac_ext=C | |
698dcdb6 | 16754 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16755 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16756 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16757 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16758 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16759 | |
698dcdb6 | 16760 | |
3a922bb4 | 16761 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 16762 | #line 16763 "configure" |
afc31813 | 16763 | #include "confdefs.h" |
51a9faba | 16764 | |
3a922bb4 RL |
16765 | #include <sys/types.h> |
16766 | #include <sys/socket.h> | |
16767 | ||
698dcdb6 | 16768 | int main() { |
51a9faba | 16769 | |
3a922bb4 RL |
16770 | socklen_t len; |
16771 | getsockname(0, 0, &len); | |
16772 | ||
698dcdb6 VZ |
16773 | ; return 0; } |
16774 | EOF | |
4f14bcd8 | 16775 | if { (eval echo configure:16776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16776 | rm -rf conftest* |
51a9faba | 16777 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16778 | else |
698dcdb6 VZ |
16779 | echo "configure: failed program was:" >&5 |
16780 | cat conftest.$ac_ext >&5 | |
16781 | rm -rf conftest* | |
16782 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16783 | #line 16784 "configure" |
afc31813 | 16784 | #include "confdefs.h" |
51a9faba | 16785 | |
3a922bb4 RL |
16786 | #include <sys/types.h> |
16787 | #include <sys/socket.h> | |
16788 | ||
698dcdb6 | 16789 | int main() { |
51a9faba | 16790 | |
3a922bb4 RL |
16791 | size_t len; |
16792 | getsockname(0, 0, &len); | |
16793 | ||
698dcdb6 VZ |
16794 | ; return 0; } |
16795 | EOF | |
4f14bcd8 | 16796 | if { (eval echo configure:16797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16797 | rm -rf conftest* |
51a9faba | 16798 | wx_cv_type_getsockname3=size_t |
afc31813 | 16799 | else |
698dcdb6 VZ |
16800 | echo "configure: failed program was:" >&5 |
16801 | cat conftest.$ac_ext >&5 | |
16802 | rm -rf conftest* | |
16803 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16804 | #line 16805 "configure" |
afc31813 | 16805 | #include "confdefs.h" |
51a9faba | 16806 | |
3a922bb4 RL |
16807 | #include <sys/types.h> |
16808 | #include <sys/socket.h> | |
16809 | ||
698dcdb6 | 16810 | int main() { |
51a9faba | 16811 | |
3a922bb4 RL |
16812 | int len; |
16813 | getsockname(0, 0, &len); | |
16814 | ||
698dcdb6 VZ |
16815 | ; return 0; } |
16816 | EOF | |
4f14bcd8 | 16817 | if { (eval echo configure:16818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16818 | rm -rf conftest* |
51a9faba | 16819 | wx_cv_type_getsockname3=int |
afc31813 | 16820 | else |
698dcdb6 VZ |
16821 | echo "configure: failed program was:" >&5 |
16822 | cat conftest.$ac_ext >&5 | |
16823 | rm -rf conftest* | |
16824 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16825 | |
afc31813 | 16826 | fi |
698dcdb6 | 16827 | rm -f conftest* |
3a922bb4 | 16828 | |
afc31813 | 16829 | fi |
698dcdb6 | 16830 | rm -f conftest* |
3a922bb4 | 16831 | |
afc31813 | 16832 | fi |
698dcdb6 | 16833 | rm -f conftest* |
51a9faba | 16834 | |
3a922bb4 | 16835 | ac_ext=c |
698dcdb6 | 16836 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16837 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16838 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16839 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16840 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16841 | |
3a922bb4 | 16842 | |
51a9faba | 16843 | fi |
698dcdb6 VZ |
16844 | |
16845 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16846 | |
3a922bb4 RL |
16847 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16848 | wxUSE_SOCKETS=no | |
16849 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16850 | else | |
16851 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16852 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16853 | EOF | |
16854 | ||
3a922bb4 | 16855 | fi |
51a9faba VZ |
16856 | fi |
16857 | fi | |
afc31813 | 16858 | |
51a9faba | 16859 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16860 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16861 | #define wxUSE_SOCKETS 1 |
16862 | EOF | |
16863 | ||
70f7a477 | 16864 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16865 | fi |
16866 | ||
698dcdb6 | 16867 | |
dc3d889d VZ |
16868 | if test "$wxUSE_GUI" = "yes"; then |
16869 | ||
3a922bb4 RL |
16870 | if test "$TOOLKIT" != "MSW"; then |
16871 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16872 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16873 | do |
698dcdb6 VZ |
16874 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16875 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 16876 | echo "configure:16877: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16877 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16879 | else | |
16880 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16881 | #line 16882 "configure" |
10f2d63a | 16882 | #include "confdefs.h" |
698dcdb6 VZ |
16883 | #include <$ac_hdr> |
16884 | EOF | |
16885 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 16886 | { (eval echo configure:16887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16887 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16888 | if test -z "$ac_err"; then | |
16889 | rm -rf conftest* | |
16890 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16891 | else |
698dcdb6 VZ |
16892 | echo "$ac_err" >&5 |
16893 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16894 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16895 | rm -rf conftest* |
16896 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16897 | fi |
698dcdb6 | 16898 | rm -f conftest* |
10f2d63a | 16899 | fi |
698dcdb6 VZ |
16900 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16901 | echo "$ac_t""yes" 1>&6 | |
16902 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16903 | cat >> confdefs.h <<EOF | |
16904 | #define $ac_tr_hdr 1 | |
10f2d63a | 16905 | EOF |
698dcdb6 VZ |
16906 | |
16907 | else | |
16908 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16909 | fi |
16910 | done | |
16911 | ||
3a922bb4 RL |
16912 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
16913 | wxUSE_JOYSTICK=no | |
16914 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16915 | fi | |
16916 | fi | |
16917 | fi | |
b089607b | 16918 | |
3a922bb4 RL |
16919 | if test "$wxUSE_JOYSTICK" = "yes"; then |
16920 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16921 | #define wxUSE_JOYSTICK 1 |
16922 | EOF | |
16923 | ||
3a922bb4 RL |
16924 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
16925 | fi | |
dc3d889d VZ |
16926 | fi |
16927 | ||
698dcdb6 | 16928 | |
b089607b VZ |
16929 | if test "$TOOLKIT" != "MSW"; then |
16930 | ||
3a922bb4 RL |
16931 | HAVE_DL_FUNCS=0 |
16932 | HAVE_SHL_FUNCS=0 | |
16933 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16934 | if test "$USE_DARWIN" = 1; then | |
16935 | HAVE_DL_FUNCS=1 | |
16936 | else | |
16937 | for ac_func in dlopen | |
10f2d63a | 16938 | do |
698dcdb6 | 16939 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 16940 | echo "configure:16941: checking for $ac_func" >&5 |
698dcdb6 VZ |
16941 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16943 | else | |
16944 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 16945 | #line 16946 "configure" |
10f2d63a VZ |
16946 | #include "confdefs.h" |
16947 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16948 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16949 | #include <assert.h> |
16950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16951 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16952 | builtin and then its argument prototype would still apply. */ |
16953 | char $ac_func(); | |
16954 | ||
16955 | int main() { | |
10f2d63a VZ |
16956 | |
16957 | /* The GNU C library defines this for functions which it implements | |
16958 | to always fail with ENOSYS. Some functions are actually named | |
16959 | something starting with __ and the normal name is an alias. */ | |
16960 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16961 | choke me | |
16962 | #else | |
698dcdb6 | 16963 | $ac_func(); |
10f2d63a VZ |
16964 | #endif |
16965 | ||
698dcdb6 VZ |
16966 | ; return 0; } |
16967 | EOF | |
4f14bcd8 | 16968 | if { (eval echo configure:16969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16969 | rm -rf conftest* |
16970 | eval "ac_cv_func_$ac_func=yes" | |
16971 | else | |
16972 | echo "configure: failed program was:" >&5 | |
16973 | cat conftest.$ac_ext >&5 | |
16974 | rm -rf conftest* | |
16975 | eval "ac_cv_func_$ac_func=no" | |
16976 | fi | |
16977 | rm -f conftest* | |
16978 | fi | |
16979 | ||
16980 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16981 | echo "$ac_t""yes" 1>&6 | |
16982 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16983 | cat >> confdefs.h <<EOF | |
16984 | #define $ac_tr_func 1 | |
16985 | EOF | |
16986 | ||
3a922bb4 | 16987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16988 | #define HAVE_DLOPEN 1 |
16989 | EOF | |
16990 | ||
3a922bb4 RL |
16991 | HAVE_DL_FUNCS=1 |
16992 | ||
10f2d63a | 16993 | else |
698dcdb6 VZ |
16994 | echo "$ac_t""no" 1>&6 |
16995 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
4f14bcd8 | 16996 | echo "configure:16997: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16997 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17000 | else |
698dcdb6 | 17001 | ac_save_LIBS="$LIBS" |
10f2d63a | 17002 | LIBS="-ldl $LIBS" |
698dcdb6 | 17003 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 17004 | #line 17005 "configure" |
10f2d63a VZ |
17005 | #include "confdefs.h" |
17006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17008 | builtin and then its argument prototype would still apply. */ |
17009 | char dlopen(); | |
17010 | ||
17011 | int main() { | |
17012 | dlopen() | |
17013 | ; return 0; } | |
17014 | EOF | |
4f14bcd8 | 17015 | if { (eval echo configure:17016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17016 | rm -rf conftest* |
17017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17018 | else | |
17019 | echo "configure: failed program was:" >&5 | |
17020 | cat conftest.$ac_ext >&5 | |
17021 | rm -rf conftest* | |
17022 | eval "ac_cv_lib_$ac_lib_var=no" | |
17023 | fi | |
17024 | rm -f conftest* | |
17025 | LIBS="$ac_save_LIBS" | |
17026 | ||
17027 | fi | |
17028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17029 | echo "$ac_t""yes" 1>&6 | |
17030 | ||
3a922bb4 | 17031 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17032 | #define HAVE_DLOPEN 1 |
17033 | EOF | |
17034 | ||
3a922bb4 RL |
17035 | HAVE_DL_FUNCS=1 |
17036 | LIBS="$LIBS -ldl" | |
17037 | ||
10f2d63a | 17038 | else |
698dcdb6 | 17039 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17040 | |
3a922bb4 | 17041 | for ac_func in shl_load |
10f2d63a | 17042 | do |
698dcdb6 | 17043 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 17044 | echo "configure:17045: checking for $ac_func" >&5 |
698dcdb6 VZ |
17045 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17047 | else | |
17048 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 17049 | #line 17050 "configure" |
10f2d63a VZ |
17050 | #include "confdefs.h" |
17051 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17052 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17053 | #include <assert.h> |
17054 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17055 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17056 | builtin and then its argument prototype would still apply. */ |
17057 | char $ac_func(); | |
17058 | ||
17059 | int main() { | |
10f2d63a VZ |
17060 | |
17061 | /* The GNU C library defines this for functions which it implements | |
17062 | to always fail with ENOSYS. Some functions are actually named | |
17063 | something starting with __ and the normal name is an alias. */ | |
17064 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17065 | choke me | |
17066 | #else | |
698dcdb6 | 17067 | $ac_func(); |
10f2d63a VZ |
17068 | #endif |
17069 | ||
698dcdb6 VZ |
17070 | ; return 0; } |
17071 | EOF | |
4f14bcd8 | 17072 | if { (eval echo configure:17073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17073 | rm -rf conftest* |
17074 | eval "ac_cv_func_$ac_func=yes" | |
17075 | else | |
17076 | echo "configure: failed program was:" >&5 | |
17077 | cat conftest.$ac_ext >&5 | |
17078 | rm -rf conftest* | |
17079 | eval "ac_cv_func_$ac_func=no" | |
17080 | fi | |
17081 | rm -f conftest* | |
17082 | fi | |
17083 | ||
17084 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17085 | echo "$ac_t""yes" 1>&6 | |
17086 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17087 | cat >> confdefs.h <<EOF | |
17088 | #define $ac_tr_func 1 | |
17089 | EOF | |
17090 | ||
3a922bb4 | 17091 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17092 | #define HAVE_SHL_LOAD 1 |
17093 | EOF | |
17094 | ||
3a922bb4 RL |
17095 | HAVE_SHL_FUNCS=1 |
17096 | ||
10f2d63a | 17097 | else |
698dcdb6 VZ |
17098 | echo "$ac_t""no" 1>&6 |
17099 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
4f14bcd8 | 17100 | echo "configure:17101: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17101 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17102 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17104 | else |
698dcdb6 | 17105 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17106 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17107 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 17108 | #line 17109 "configure" |
f6bcfd97 BP |
17109 | #include "confdefs.h" |
17110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17111 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17112 | builtin and then its argument prototype would still apply. */ |
17113 | char dld(); | |
17114 | ||
17115 | int main() { | |
17116 | dld() | |
17117 | ; return 0; } | |
17118 | EOF | |
4f14bcd8 | 17119 | if { (eval echo configure:17120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17120 | rm -rf conftest* |
17121 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17122 | else | |
17123 | echo "configure: failed program was:" >&5 | |
17124 | cat conftest.$ac_ext >&5 | |
17125 | rm -rf conftest* | |
17126 | eval "ac_cv_lib_$ac_lib_var=no" | |
17127 | fi | |
17128 | rm -f conftest* | |
17129 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 17130 | |
698dcdb6 VZ |
17131 | fi |
17132 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17133 | echo "$ac_t""yes" 1>&6 | |
17134 | ||
3a922bb4 RL |
17135 | HAVE_SHL_FUNCS=1 |
17136 | LIBS="$LIBS -ldld" | |
17137 | ||
698dcdb6 VZ |
17138 | else |
17139 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17140 | fi |
17141 | ||
3a922bb4 | 17142 | |
10f2d63a VZ |
17143 | fi |
17144 | done | |
17145 | ||
3a922bb4 | 17146 | |
10f2d63a VZ |
17147 | fi |
17148 | ||
3a922bb4 | 17149 | |
10f2d63a VZ |
17150 | fi |
17151 | done | |
17152 | ||
1e487827 | 17153 | |
3a922bb4 RL |
17154 | if test "$HAVE_DL_FUNCS" = 1; then |
17155 | for ac_func in dlerror | |
f6bcfd97 | 17156 | do |
698dcdb6 | 17157 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4f14bcd8 | 17158 | echo "configure:17159: checking for $ac_func" >&5 |
698dcdb6 VZ |
17159 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17161 | else | |
17162 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 17163 | #line 17164 "configure" |
f6bcfd97 BP |
17164 | #include "confdefs.h" |
17165 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17166 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
17167 | #include <assert.h> |
17168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17169 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17170 | builtin and then its argument prototype would still apply. */ |
17171 | char $ac_func(); | |
17172 | ||
17173 | int main() { | |
f6bcfd97 BP |
17174 | |
17175 | /* The GNU C library defines this for functions which it implements | |
17176 | to always fail with ENOSYS. Some functions are actually named | |
17177 | something starting with __ and the normal name is an alias. */ | |
17178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17179 | choke me | |
17180 | #else | |
698dcdb6 | 17181 | $ac_func(); |
f6bcfd97 BP |
17182 | #endif |
17183 | ||
698dcdb6 VZ |
17184 | ; return 0; } |
17185 | EOF | |
4f14bcd8 | 17186 | if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17187 | rm -rf conftest* |
17188 | eval "ac_cv_func_$ac_func=yes" | |
17189 | else | |
17190 | echo "configure: failed program was:" >&5 | |
17191 | cat conftest.$ac_ext >&5 | |
17192 | rm -rf conftest* | |
17193 | eval "ac_cv_func_$ac_func=no" | |
17194 | fi | |
17195 | rm -f conftest* | |
17196 | fi | |
17197 | ||
17198 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17199 | echo "$ac_t""yes" 1>&6 | |
17200 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17201 | cat >> confdefs.h <<EOF | |
17202 | #define $ac_tr_func 1 | |
17203 | EOF | |
17204 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17205 | #define HAVE_DLERROR 1 |
17206 | EOF | |
17207 | ||
17208 | else | |
698dcdb6 VZ |
17209 | echo "$ac_t""no" 1>&6 |
17210 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
4f14bcd8 | 17211 | echo "configure:17212: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17212 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17213 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17215 | else |
698dcdb6 | 17216 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17217 | LIBS="-ldl $LIBS" |
698dcdb6 | 17218 | cat > conftest.$ac_ext <<EOF |
4f14bcd8 | 17219 | #line 17220 "configure" |
f6bcfd97 BP |
17220 | #include "confdefs.h" |
17221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17222 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17223 | builtin and then its argument prototype would still apply. */ |
17224 | char dlerror(); | |
17225 | ||
17226 | int main() { | |
17227 | dlerror() | |
17228 | ; return 0; } | |
17229 | EOF | |
4f14bcd8 | 17230 | if { (eval echo configure:17231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17231 | rm -rf conftest* |
17232 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17233 | else | |
17234 | echo "configure: failed program was:" >&5 | |
17235 | cat conftest.$ac_ext >&5 | |
17236 | rm -rf conftest* | |
17237 | eval "ac_cv_lib_$ac_lib_var=no" | |
17238 | fi | |
17239 | rm -f conftest* | |
17240 | LIBS="$ac_save_LIBS" | |
17241 | ||
17242 | fi | |
17243 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17244 | echo "$ac_t""yes" 1>&6 | |
17245 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17246 | #define HAVE_DLERROR 1 |
17247 | EOF | |
17248 | ||
698dcdb6 VZ |
17249 | else |
17250 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17251 | fi |
17252 | ||
17253 | fi | |
17254 | done | |
17255 | ||
3a922bb4 RL |
17256 | fi |
17257 | fi | |
f6bcfd97 | 17258 | |
3a922bb4 RL |
17259 | if test "$HAVE_DL_FUNCS" = 0; then |
17260 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17261 | if test "$USE_UNIX" = 1; then | |
17262 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17263 | wxUSE_DYNLIB_CLASS=no | |
17264 | else | |
17265 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17266 | fi | |
17267 | fi | |
10f2d63a VZ |
17268 | fi |
17269 | fi | |
17270 | fi | |
17271 | ||
17272 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17273 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17274 | #define wxUSE_DYNLIB_CLASS 1 |
17275 | EOF | |
17276 | ||
b12915c1 VZ |
17277 | else |
17278 | wxUSE_ODBC=no | |
17279 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17280 | fi |
17281 | ||
698dcdb6 | 17282 | |
1e6feb95 VZ |
17283 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17284 | cat >> confdefs.h <<\EOF | |
17285 | #define wxUSE_FONTMAP 1 | |
17286 | EOF | |
17287 | ||
17288 | fi | |
17289 | ||
10f2d63a | 17290 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17291 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17292 | #define wxUSE_UNICODE 1 |
17293 | EOF | |
17294 | ||
17295 | fi | |
17296 | ||
10f2d63a | 17297 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17299 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17300 | EOF | |
17301 | ||
17302 | fi | |
17303 | ||
698dcdb6 | 17304 | |
b12915c1 | 17305 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17306 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17307 | #define wxUSE_SERIAL 1 |
17308 | EOF | |
17309 | ||
17310 | fi | |
17311 | ||
698dcdb6 | 17312 | |
10f2d63a VZ |
17313 | IODBC_C_SRC="" |
17314 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17316 | #define wxUSE_ODBC 1 |
17317 | EOF | |
17318 | ||
17319 | WXODBCFLAG="-D_IODBC_" | |
17320 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17321 | fi |
17322 | ||
698dcdb6 | 17323 | |
10f2d63a | 17324 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17326 | #define wxUSE_POSTSCRIPT 1 |
17327 | EOF | |
17328 | ||
17329 | fi | |
17330 | ||
698dcdb6 | 17331 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17332 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17333 | EOF | |
17334 | ||
698dcdb6 VZ |
17335 | |
17336 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17337 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17338 | EOF | |
17339 | ||
698dcdb6 VZ |
17340 | |
17341 | ||
10f2d63a | 17342 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17343 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17344 | #define wxUSE_CONSTRAINTS 1 |
17345 | EOF | |
17346 | ||
17347 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17348 | fi | |
17349 | ||
17350 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab RL |
17351 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
17352 | echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2 | |
17353 | wxUSE_MDI_ARCHITECTURE=no | |
17354 | fi | |
17355 | ||
17356 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17357 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17358 | #define wxUSE_MDI_ARCHITECTURE 1 |
17359 | EOF | |
17360 | ||
fc26f4ab RL |
17361 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
17362 | fi | |
10f2d63a VZ |
17363 | fi |
17364 | ||
17365 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17366 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17367 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17368 | EOF | |
17369 | ||
17370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17371 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17372 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17373 | fi | |
17374 | fi | |
17375 | ||
17376 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17377 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17378 | #define wxUSE_HELP 1 |
17379 | EOF | |
17380 | ||
17381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17382 | |
3e44f09d | 17383 | if test "$USE_WIN32" = 1; then |
031d8228 | 17384 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17385 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17386 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
4f14bcd8 | 17387 | echo "configure:17388: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17388 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17390 | else | |
17391 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 17392 | #line 17393 "configure" |
29fd3c0c VS |
17393 | #include "confdefs.h" |
17394 | #include <htmlhelp.h> | |
17395 | EOF | |
17396 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 17397 | { (eval echo configure:17398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17398 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17399 | if test -z "$ac_err"; then | |
17400 | rm -rf conftest* | |
17401 | eval "ac_cv_header_$ac_safe=yes" | |
17402 | else | |
17403 | echo "$ac_err" >&5 | |
17404 | echo "configure: failed program was:" >&5 | |
17405 | cat conftest.$ac_ext >&5 | |
17406 | rm -rf conftest* | |
17407 | eval "ac_cv_header_$ac_safe=no" | |
17408 | fi | |
17409 | rm -f conftest* | |
17410 | fi | |
17411 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17412 | echo "$ac_t""yes" 1>&6 | |
17413 | ||
17414 | cat >> confdefs.h <<\EOF | |
17415 | #define wxUSE_MS_HTML_HELP 1 | |
17416 | EOF | |
17417 | ||
17418 | ||
17419 | else | |
17420 | echo "$ac_t""no" 1>&6 | |
17421 | ||
fc26f4ab | 17422 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
17423 | wxUSE_MS_HTML_HELP=no |
17424 | ||
17425 | fi | |
17426 | ||
3e44f09d | 17427 | fi |
3379ed37 | 17428 | fi |
031d8228 VS |
17429 | |
17430 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17431 | if test "$wxUSE_HTML" = "yes"; then | |
17432 | cat >> confdefs.h <<\EOF | |
17433 | #define wxUSE_WXHTML_HELP 1 | |
17434 | EOF | |
17435 | ||
17436 | else | |
17437 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17438 | wxUSE_WXHTML_HELP=no | |
17439 | fi | |
17440 | fi | |
10f2d63a VZ |
17441 | fi |
17442 | ||
17443 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17444 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17445 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17446 | else |
698dcdb6 | 17447 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17448 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17449 | EOF | |
17450 | ||
17451 | fi | |
17452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17453 | fi | |
17454 | ||
17455 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17456 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17457 | #define wxUSE_PROLOGIO 1 |
17458 | EOF | |
17459 | ||
17460 | fi | |
17461 | ||
17462 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17463 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17464 | #define wxUSE_RESOURCES 1 |
17465 | EOF | |
17466 | ||
3379ed37 | 17467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17468 | fi |
17469 | ||
17470 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17471 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17472 | #define wxUSE_X_RESOURCES 1 |
17473 | EOF | |
17474 | ||
17475 | fi | |
17476 | ||
698dcdb6 | 17477 | |
3a922bb4 RL |
17478 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17479 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17480 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17481 | for ac_hdr in ole2.h |
10f2d63a | 17482 | do |
698dcdb6 VZ |
17483 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17484 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4f14bcd8 | 17485 | echo "configure:17486: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17486 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17488 | else | |
17489 | cat > conftest.$ac_ext <<EOF | |
4f14bcd8 | 17490 | #line 17491 "configure" |
10f2d63a | 17491 | #include "confdefs.h" |
698dcdb6 VZ |
17492 | #include <$ac_hdr> |
17493 | EOF | |
17494 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4f14bcd8 | 17495 | { (eval echo configure:17496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17496 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17497 | if test -z "$ac_err"; then | |
17498 | rm -rf conftest* | |
17499 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17500 | else |
698dcdb6 VZ |
17501 | echo "$ac_err" >&5 |
17502 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17503 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17504 | rm -rf conftest* |
17505 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17506 | fi |
698dcdb6 | 17507 | rm -f conftest* |
10f2d63a | 17508 | fi |
698dcdb6 VZ |
17509 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17510 | echo "$ac_t""yes" 1>&6 | |
17511 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17512 | cat >> confdefs.h <<EOF | |
17513 | #define $ac_tr_hdr 1 | |
10f2d63a | 17514 | EOF |
698dcdb6 VZ |
17515 | |
17516 | else | |
17517 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17518 | fi |
17519 | done | |
17520 | ||
698dcdb6 | 17521 | |
2b9bdf71 VZ |
17522 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17523 | if test "$GCC" = yes ; then | |
17524 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 VZ |
17525 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
17526 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" | |
17527 | cat >> confdefs.h <<\EOF | |
4f11a343 VS |
17528 | #define wxUSE_OLE 1 |
17529 | EOF | |
17530 | ||
b64f0a5f | 17531 | |
2b9bdf71 VZ |
17532 | fi |
17533 | ||
17534 | cat >> confdefs.h <<\EOF | |
17535 | #define wxUSE_DATAOBJ 1 | |
17536 | EOF | |
17537 | ||
17538 | else | |
17539 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17540 | ||
17541 | wxUSE_CLIPBOARD=no | |
17542 | wxUSE_DRAG_AND_DROP=no | |
17543 | wxUSE_DATAOBJ=no | |
17544 | fi | |
17545 | ||
17546 | if test "$wxUSE_METAFILE" = "yes"; then | |
17547 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17548 | #define wxUSE_METAFILE 1 |
17549 | EOF | |
17550 | ||
2b9bdf71 VZ |
17551 | |
17552 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17553 | #define wxUSE_ENH_METAFILE 1 |
17554 | EOF | |
17555 | ||
2b9bdf71 VZ |
17556 | fi |
17557 | fi | |
17558 | ||
17559 | if test "$wxUSE_IPC" = "yes"; then | |
17560 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17561 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17562 | fi | |
17563 | ||
17564 | cat >> confdefs.h <<\EOF | |
17565 | #define wxUSE_IPC 1 | |
17566 | EOF | |
17567 | ||
17568 | fi | |
17569 | ||
17570 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17571 | cat >> confdefs.h <<\EOF | |
17572 | #define wxUSE_CLIPBOARD 1 | |
17573 | EOF | |
17574 | ||
673f4220 | 17575 | |
e33ef661 | 17576 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17577 | #define wxUSE_DATAOBJ 1 |
17578 | EOF | |
17579 | ||
2b9bdf71 VZ |
17580 | fi |
17581 | ||
17582 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17583 | if test "$wxUSE_GTK" = 1; then | |
17584 | if test "$WXGTK12" != 1; then | |
17585 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17586 | wxUSE_DRAG_AND_DROP=no |
17587 | fi | |
17588 | fi | |
17589 | ||
2b9bdf71 VZ |
17590 | if test "$wxUSE_MOTIF" = 1; then |
17591 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17592 | wxUSE_DRAG_AND_DROP=no | |
17593 | fi | |
17594 | ||
17595 | if test "$wxUSE_MAC" = 1; then | |
17596 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17597 | wxUSE_DRAG_AND_DROP=no | |
17598 | fi | |
17599 | ||
10f2d63a | 17600 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17601 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17602 | #define wxUSE_DRAG_AND_DROP 1 |
17603 | EOF | |
17604 | ||
17605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17606 | fi | |
17607 | ||
17608 | fi | |
17609 | ||
17610 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17611 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17612 | #define wxUSE_SPLINES 1 |
17613 | EOF | |
17614 | ||
17615 | fi | |
17616 | ||
698dcdb6 | 17617 | |
1e6feb95 VZ |
17618 | USES_CONTROLS=0 |
17619 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17620 | USES_CONTROLS=1 | |
17621 | fi | |
17622 | ||
10f2d63a | 17623 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17624 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17625 | #define wxUSE_ACCEL 1 |
17626 | EOF | |
17627 | ||
1e6feb95 VZ |
17628 | USES_CONTROLS=1 |
17629 | fi | |
17630 | ||
17631 | if test "$wxUSE_BUTTON" = "yes"; then | |
17632 | cat >> confdefs.h <<\EOF | |
17633 | #define wxUSE_BUTTON 1 | |
17634 | EOF | |
17635 | ||
17636 | USES_CONTROLS=1 | |
17637 | fi | |
17638 | ||
17639 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17640 | cat >> confdefs.h <<\EOF | |
17641 | #define wxUSE_BMPBUTTON 1 | |
17642 | EOF | |
17643 | ||
17644 | USES_CONTROLS=1 | |
17645 | fi | |
17646 | ||
17647 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17648 | cat >> confdefs.h <<\EOF | |
17649 | #define wxUSE_CALENDARCTRL 1 | |
17650 | EOF | |
17651 | ||
17652 | USES_CONTROLS=1 | |
17653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17654 | fi |
17655 | ||
17656 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17657 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17658 | #define wxUSE_CARET 1 |
17659 | EOF | |
17660 | ||
1e6feb95 | 17661 | USES_CONTROLS=1 |
10f2d63a VZ |
17662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17663 | fi | |
17664 | ||
17665 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17666 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17667 | #define wxUSE_COMBOBOX 1 |
17668 | EOF | |
17669 | ||
1e6feb95 | 17670 | USES_CONTROLS=1 |
10f2d63a VZ |
17671 | fi |
17672 | ||
17673 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17674 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17675 | #define wxUSE_CHOICE 1 |
17676 | EOF | |
17677 | ||
1e6feb95 | 17678 | USES_CONTROLS=1 |
10f2d63a VZ |
17679 | fi |
17680 | ||
17681 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17683 | #define wxUSE_CHECKBOX 1 |
17684 | EOF | |
17685 | ||
1e6feb95 | 17686 | USES_CONTROLS=1 |
10f2d63a VZ |
17687 | fi |
17688 | ||
17689 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17690 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17691 | #define wxUSE_CHECKLISTBOX 1 |
17692 | EOF | |
17693 | ||
1e6feb95 | 17694 | USES_CONTROLS=1 |
10f2d63a VZ |
17695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17696 | fi | |
17697 | ||
17698 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17699 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17700 | #define wxUSE_GAUGE 1 |
17701 | EOF | |
17702 | ||
1e6feb95 | 17703 | USES_CONTROLS=1 |
10f2d63a VZ |
17704 | fi |
17705 | ||
d6a55c4b VZ |
17706 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17707 | wxUSE_GRID="yes" | |
698dcdb6 | 17708 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17709 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17710 | EOF |
17711 | ||
1e6feb95 | 17712 | USES_CONTROLS=1 |
d6a55c4b | 17713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17714 | fi |
17715 | ||
d6a55c4b | 17716 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17717 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17718 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17719 | EOF |
17720 | ||
1e6feb95 | 17721 | USES_CONTROLS=1 |
d6a55c4b | 17722 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17723 | fi |
17724 | ||
17725 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17726 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17727 | #define wxUSE_IMAGLIST 1 |
17728 | EOF | |
17729 | ||
17730 | fi | |
17731 | ||
17732 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17733 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17734 | #define wxUSE_LISTBOX 1 |
17735 | EOF | |
17736 | ||
1e6feb95 | 17737 | USES_CONTROLS=1 |
10f2d63a VZ |
17738 | fi |
17739 | ||
17740 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17741 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17742 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17743 | #define wxUSE_LISTCTRL 1 |
17744 | EOF | |
17745 | ||
1e6feb95 | 17746 | USES_CONTROLS=1 |
10f2d63a VZ |
17747 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17748 | else | |
698dcdb6 | 17749 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17750 | fi |
17751 | fi | |
17752 | ||
17753 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17754 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17755 | #define wxUSE_NOTEBOOK 1 |
17756 | EOF | |
17757 | ||
1e6feb95 | 17758 | USES_CONTROLS=1 |
10f2d63a VZ |
17759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17760 | fi | |
17761 | ||
24176f2c GD |
17762 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17763 | cat >> confdefs.h <<\EOF | |
17764 | #define wxUSE_PROPSHEET 1 | |
17765 | EOF | |
17766 | ||
17767 | USES_CONTROLS=1 | |
17768 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17769 | fi | |
17770 | ||
10f2d63a | 17771 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17773 | #define wxUSE_RADIOBOX 1 |
17774 | EOF | |
17775 | ||
1e6feb95 | 17776 | USES_CONTROLS=1 |
10f2d63a VZ |
17777 | fi |
17778 | ||
17779 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17780 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17781 | #define wxUSE_RADIOBTN 1 |
17782 | EOF | |
17783 | ||
1e6feb95 | 17784 | USES_CONTROLS=1 |
10f2d63a VZ |
17785 | fi |
17786 | ||
17787 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17788 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17789 | #define wxUSE_SASH 1 |
17790 | EOF | |
17791 | ||
17792 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17793 | fi | |
17794 | ||
17795 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17796 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17797 | #define wxUSE_SCROLLBAR 1 |
17798 | EOF | |
17799 | ||
1e6feb95 | 17800 | USES_CONTROLS=1 |
741a9306 | 17801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17802 | fi |
17803 | ||
17804 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17805 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17806 | #define wxUSE_SLIDER 1 |
17807 | EOF | |
17808 | ||
1e6feb95 | 17809 | USES_CONTROLS=1 |
10f2d63a VZ |
17810 | fi |
17811 | ||
17812 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17813 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17814 | #define wxUSE_SPINBTN 1 |
17815 | EOF | |
17816 | ||
1e6feb95 | 17817 | USES_CONTROLS=1 |
10f2d63a VZ |
17818 | fi |
17819 | ||
56cfaa52 | 17820 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17821 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17822 | #define wxUSE_SPINCTRL 1 |
17823 | EOF | |
17824 | ||
1e6feb95 | 17825 | USES_CONTROLS=1 |
56cfaa52 RR |
17826 | fi |
17827 | ||
10f2d63a | 17828 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17829 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17830 | #define wxUSE_SPLITTER 1 |
17831 | EOF | |
17832 | ||
17833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17834 | fi | |
17835 | ||
17836 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17837 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17838 | #define wxUSE_STATBMP 1 |
17839 | EOF | |
17840 | ||
1e6feb95 | 17841 | USES_CONTROLS=1 |
10f2d63a VZ |
17842 | fi |
17843 | ||
17844 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17845 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17846 | #define wxUSE_STATBOX 1 |
17847 | EOF | |
17848 | ||
1e6feb95 VZ |
17849 | USES_CONTROLS=1 |
17850 | fi | |
17851 | ||
17852 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17853 | cat >> confdefs.h <<\EOF | |
17854 | #define wxUSE_STATTEXT 1 | |
17855 | EOF | |
17856 | ||
17857 | USES_CONTROLS=1 | |
10f2d63a VZ |
17858 | fi |
17859 | ||
17860 | if test "$wxUSE_STATLINE" = "yes"; then | |
17861 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17862 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17863 | else |
698dcdb6 | 17864 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17865 | #define wxUSE_STATLINE 1 |
17866 | EOF | |
17867 | ||
1e6feb95 | 17868 | USES_CONTROLS=1 |
10f2d63a VZ |
17869 | fi |
17870 | fi | |
17871 | ||
17872 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17873 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17874 | #define wxUSE_STATUSBAR 1 |
17875 | EOF | |
17876 | ||
1e6feb95 | 17877 | USES_CONTROLS=1 |
698dcdb6 | 17878 | |
2286341c | 17879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17880 | fi |
17881 | ||
17882 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17883 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17884 | #define wxUSE_TAB_DIALOG 1 |
17885 | EOF | |
17886 | ||
17887 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17888 | fi | |
17889 | ||
1e6feb95 VZ |
17890 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17891 | cat >> confdefs.h <<\EOF | |
17892 | #define wxUSE_TEXTCTRL 1 | |
17893 | EOF | |
17894 | ||
17895 | USES_CONTROLS=1 | |
17896 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17897 | fi | |
17898 | ||
1db8dc4a | 17899 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
fc26f4ab RL |
17900 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then |
17901 | echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
17902 | wxUSE_TOGGLEBTN=no |
17903 | fi | |
17904 | ||
17905 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17906 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17907 | #define wxUSE_TOGGLEBTN 1 |
17908 | EOF | |
17909 | ||
1e6feb95 | 17910 | USES_CONTROLS=1 |
a45d7ab7 | 17911 | fi |
1db8dc4a VZ |
17912 | fi |
17913 | ||
360d6699 | 17914 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17915 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17916 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17917 | EOF | |
17918 | ||
17919 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17920 | USES_CONTROLS=1 |
360d6699 VZ |
17921 | fi |
17922 | ||
10f2d63a | 17923 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17924 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17925 | #define wxUSE_TOOLBAR 1 |
17926 | EOF | |
17927 | ||
1e6feb95 | 17928 | USES_CONTROLS=1 |
698dcdb6 | 17929 | |
360d6699 VZ |
17930 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17931 | wxUSE_TOOLBAR_NATIVE="yes" | |
17932 | fi | |
17933 | ||
1e6feb95 VZ |
17934 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17935 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17936 | #define wxUSE_TOOLBAR_NATIVE 1 |
17937 | EOF | |
17938 | ||
1e6feb95 VZ |
17939 | USES_CONTROLS=1 |
17940 | fi | |
17941 | ||
17942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17943 | fi |
17944 | ||
10f2d63a VZ |
17945 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17946 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17947 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17948 | else |
17949 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17950 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17951 | else |
698dcdb6 | 17952 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17953 | #define wxUSE_TOOLTIPS 1 |
17954 | EOF | |
17955 | ||
17956 | fi | |
17957 | fi | |
17958 | fi | |
17959 | ||
17960 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17961 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17962 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17963 | #define wxUSE_TREECTRL 1 |
17964 | EOF | |
17965 | ||
1e6feb95 | 17966 | USES_CONTROLS=1 |
10f2d63a VZ |
17967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17968 | else | |
698dcdb6 | 17969 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17970 | fi |
17971 | fi | |
17972 | ||
9f41d601 | 17973 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17974 | if test "$wxUSE_MAC" = 1; then |
17975 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17976 | else | |
17977 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17978 | #define wxUSE_POPUPWIN 1 |
17979 | EOF | |
17980 | ||
6abe4b65 GD |
17981 | USES_CONTROLS=1 |
17982 | fi | |
9f41d601 RR |
17983 | fi |
17984 | ||
1e6feb95 VZ |
17985 | if test "$USES_CONTROLS" = 1; then |
17986 | cat >> confdefs.h <<\EOF | |
17987 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17988 | EOF |
17989 | ||
10f2d63a VZ |
17990 | fi |
17991 | ||
1e6feb95 | 17992 | |
24176f2c GD |
17993 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
17994 | cat >> confdefs.h <<\EOF | |
17995 | #define wxUSE_TREELAYOUT 1 | |
17996 | EOF | |
17997 | ||
17998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
17999 | fi | |
1e6feb95 | 18000 | |
24fd6d87 VZ |
18001 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18002 | cat >> confdefs.h <<\EOF | |
18003 | #define wxUSE_DRAGIMAGE 1 | |
18004 | EOF | |
18005 | ||
18006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18007 | fi | |
18008 | ||
1e6feb95 | 18009 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18010 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18011 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18012 | EOF |
18013 | ||
1e6feb95 | 18014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18015 | fi |
18016 | ||
1e6feb95 VZ |
18017 | if test "$wxUSE_METAFILE" = "yes"; then |
18018 | cat >> confdefs.h <<\EOF | |
18019 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18020 | EOF |
18021 | ||
10f2d63a VZ |
18022 | fi |
18023 | ||
1e6feb95 VZ |
18024 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18025 | cat >> confdefs.h <<\EOF | |
18026 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18027 | EOF |
18028 | ||
10f2d63a VZ |
18029 | fi |
18030 | ||
3e44f09d VZ |
18031 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18032 | cat >> confdefs.h <<\EOF | |
18033 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18034 | EOF | |
18035 | ||
18036 | fi | |
18037 | ||
10f2d63a | 18038 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18039 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18040 | #define wxUSE_MINIFRAME 1 |
18041 | EOF | |
18042 | ||
18043 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18044 | fi | |
18045 | ||
18046 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18047 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18048 | #define wxUSE_HTML 1 |
18049 | EOF | |
18050 | ||
18051 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18052 | fi |
18053 | ||
18054 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18055 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18056 | #define wxUSE_VALIDATORS 1 |
18057 | EOF | |
703e0a69 | 18058 | |
698dcdb6 VZ |
18059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
18060 | fi | |
18061 | ||
edae8572 VZ |
18062 | if test "$wxUSE_PALETTE" = "yes" ; then |
18063 | cat >> confdefs.h <<\EOF | |
18064 | #define wxUSE_PALETTE 1 | |
18065 | EOF | |
18066 | ||
18067 | fi | |
18068 | ||
698dcdb6 VZ |
18069 | if test "$wxUSE_IMAGE" = "yes" ; then |
18070 | cat >> confdefs.h <<\EOF | |
18071 | #define wxUSE_IMAGE 1 | |
18072 | EOF | |
18073 | ||
18074 | fi | |
18075 | ||
18076 | if test "$wxUSE_GIF" = "yes" ; then | |
18077 | cat >> confdefs.h <<\EOF | |
18078 | #define wxUSE_GIF 1 | |
18079 | EOF | |
18080 | ||
18081 | fi | |
18082 | ||
18083 | if test "$wxUSE_PCX" = "yes" ; then | |
18084 | cat >> confdefs.h <<\EOF | |
18085 | #define wxUSE_PCX 1 | |
18086 | EOF | |
18087 | ||
18088 | fi | |
18089 | ||
18090 | if test "$wxUSE_PNM" = "yes" ; then | |
18091 | cat >> confdefs.h <<\EOF | |
18092 | #define wxUSE_PNM 1 | |
18093 | EOF | |
18094 | ||
18095 | fi | |
18096 | ||
18097 | if test "$wxUSE_XPM" = "yes" ; then | |
18098 | cat >> confdefs.h <<\EOF | |
18099 | #define wxUSE_XPM 1 | |
18100 | EOF | |
18101 | ||
18102 | fi | |
18103 | ||
18104 | ||
1e6feb95 VZ |
18105 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
18106 | cat >> confdefs.h <<\EOF | |
18107 | #define wxUSE_CHOICEDLG 1 | |
18108 | EOF | |
18109 | ||
18110 | fi | |
18111 | ||
18112 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18113 | cat >> confdefs.h <<\EOF | |
18114 | #define wxUSE_COLOURDLG 1 | |
18115 | EOF | |
18116 | ||
18117 | fi | |
18118 | ||
18119 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18120 | cat >> confdefs.h <<\EOF | |
18121 | #define wxUSE_FILEDLG 1 | |
18122 | EOF | |
18123 | ||
18124 | fi | |
18125 | ||
8db37e06 VZ |
18126 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
18127 | cat >> confdefs.h <<\EOF | |
18128 | #define wxUSE_FINDREPLDLG 1 | |
18129 | EOF | |
18130 | ||
18131 | fi | |
18132 | ||
1e6feb95 VZ |
18133 | if test "$wxUSE_FONTDLG" = "yes"; then |
18134 | cat >> confdefs.h <<\EOF | |
18135 | #define wxUSE_FONTDLG 1 | |
18136 | EOF | |
18137 | ||
18138 | fi | |
18139 | ||
18140 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18141 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18142 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18143 | else | |
18144 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18145 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18146 | else | |
18147 | cat >> confdefs.h <<\EOF | |
18148 | #define wxUSE_DIRDLG 1 | |
18149 | EOF | |
18150 | ||
18151 | fi | |
18152 | fi | |
18153 | fi | |
18154 | ||
18155 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18156 | cat >> confdefs.h <<\EOF | |
18157 | #define wxUSE_MSGDLG 1 | |
18158 | EOF | |
18159 | ||
18160 | fi | |
18161 | ||
18162 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18163 | cat >> confdefs.h <<\EOF | |
18164 | #define wxUSE_NUMBERDLG 1 | |
18165 | EOF | |
18166 | ||
18167 | fi | |
18168 | ||
18169 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18170 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18171 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18172 | else | |
18173 | cat >> confdefs.h <<\EOF | |
18174 | #define wxUSE_PROGRESSDLG 1 | |
18175 | EOF | |
18176 | ||
18177 | fi | |
18178 | fi | |
18179 | ||
cbca9943 VZ |
18180 | if test "$wxUSE_SPLASH" = "yes"; then |
18181 | cat >> confdefs.h <<\EOF | |
18182 | #define wxUSE_SPLASH 1 | |
18183 | EOF | |
18184 | ||
18185 | fi | |
18186 | ||
1e6feb95 VZ |
18187 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
18188 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18189 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18190 | else | |
18191 | cat >> confdefs.h <<\EOF | |
18192 | #define wxUSE_STARTUP_TIPS 1 | |
18193 | EOF | |
18194 | ||
18195 | fi | |
18196 | fi | |
18197 | ||
18198 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18199 | cat >> confdefs.h <<\EOF | |
18200 | #define wxUSE_TEXTDLG 1 | |
18201 | EOF | |
18202 | ||
18203 | fi | |
18204 | ||
b1f5d087 VZ |
18205 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18206 | cat >> confdefs.h <<\EOF | |
18207 | #define wxUSE_WIZARDDLG 1 | |
18208 | EOF | |
18209 | ||
18210 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18211 | fi | |
18212 | ||
1e6feb95 | 18213 | |
698dcdb6 VZ |
18214 | if test "$cross_compiling" = "yes"; then |
18215 | OSINFO="\"$host\"" | |
18216 | else | |
18217 | OSINFO=`uname -s -r -m` | |
18218 | OSINFO="\"$OSINFO\"" | |
18219 | fi | |
18220 | ||
18221 | cat >> confdefs.h <<EOF | |
18222 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18223 | EOF | |
18224 | ||
18225 | ||
18226 | ||
06dda230 VZ |
18227 | if test "x$prefix" != "xNONE"; then |
18228 | wxPREFIX=$prefix | |
18229 | else | |
18230 | wxPREFIX=$ac_default_prefix | |
18231 | fi | |
18232 | ||
7e67ed0d | 18233 | cat >> confdefs.h <<EOF |
06dda230 | 18234 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18235 | EOF |
18236 | ||
18237 | ||
18238 | ||
698dcdb6 | 18239 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
698dcdb6 VZ |
18240 | |
18241 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
3a922bb4 | 18242 | |
f11bdd03 | 18243 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
18244 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
18245 | fi | |
3a922bb4 | 18246 | |
698dcdb6 VZ |
18247 | if test "$wxUSE_GUI" = "yes"; then |
18248 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
3a922bb4 RL |
18249 | |
18250 | ||
18251 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18252 | drawing dynamic erase event exec font image \ | |
18253 | minimal richedit rotate widgets" | |
18254 | ||
3a922bb4 RL |
18255 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
18256 | else | |
18257 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18258 | fi |
18259 | ||
18260 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
18261 | ||
d714471b | 18262 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18263 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18264 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
18265 | |
18266 | if test "$wxUSE_GTK" = 1; then | |
18267 | WXCONFIG_INCLUDE="" | |
18268 | else | |
18269 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18270 | fi | |
18271 | ||
18272 | if test "$GXX" = yes ; then | |
18273 | CXXWARNINGS="-Wall" | |
18274 | fi | |
18275 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
18276 | ||
18277 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18278 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18279 | ||
18280 | LDFLAGS="$LDFLAGS $PROFILE" | |
18281 | ||
698dcdb6 VZ |
18282 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18283 | ||
18284 | ||
18285 | ||
18286 | ||
18287 | ||
18288 | ||
18289 | ||
18290 | ||
18291 | ||
18292 | ||
18293 | ||
18294 | ||
18295 | ||
18296 | ||
18297 | ||
18298 | ||
18299 | ||
18300 | ||
18301 | ||
18302 | ||
18303 | ||
18304 | ||
18305 | ||
18306 | ||
18307 | ||
18308 | ||
18309 | ||
18310 | ||
18311 | ||
18312 | ||
18313 | ||
18314 | ||
18315 | ||
18316 | ||
18317 | ||
18318 | ||
18319 | ||
18320 | ||
18321 | ||
18322 | ||
18323 | ||
18324 | ||
18325 | ||
18326 | ||
18327 | ||
18328 | ||
18329 | ||
18330 | ||
18331 | ||
18332 | ||
18333 | ||
18334 | ||
18335 | ||
18336 | ||
18337 | ||
18338 | ||
18339 | ||
18340 | ||
18341 | ||
18342 | ||
18343 | ||
18344 | ||
18345 | ||
18346 | ||
18347 | ||
18348 | ||
18349 | ||
32832908 | 18350 | |
2f51a9ec GD |
18351 | |
18352 | ||
18353 | ||
18354 | ||
f6bcfd97 | 18355 | |
dad6c0ea | 18356 | |
caa2c79b | 18357 | |
3711412e | 18358 | |
1e6feb95 VZ |
18359 | |
18360 | ||
0f3f1cbc | 18361 | |
18dbb1f6 | 18362 | |
2baaf735 | 18363 | |
e23081de | 18364 | |
10f2d63a VZ |
18365 | |
18366 | ||
698dcdb6 | 18367 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
4f14bcd8 | 18368 | echo "configure:18369: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18369 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18370 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18372 | else |
698dcdb6 | 18373 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18374 | all: |
18375 | @echo 'ac_maketemp="${MAKE}"' | |
18376 | EOF | |
18377 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18378 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18379 | if test -n "$ac_maketemp"; then |
18380 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18381 | else | |
18382 | eval ac_cv_prog_make_${ac_make}_set=no | |
18383 | fi | |
698dcdb6 | 18384 | rm -f conftestmake |
10f2d63a VZ |
18385 | fi |
18386 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18387 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18388 | SET_MAKE= |
18389 | else | |
698dcdb6 | 18390 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18391 | SET_MAKE="MAKE=${MAKE-make}" |
18392 | fi | |
18393 | ||
698dcdb6 | 18394 | |
3a922bb4 RL |
18395 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18396 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18397 | fi |
665bbe97 | 18398 | |
698dcdb6 | 18399 | |
10f2d63a | 18400 | |
2224580a | 18401 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18402 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18403 | wx_cv_path_ifs=$PATH_IFS |
18404 | wx_cv_program_ext=$PROGRAM_EXT | |
18405 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18406 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18407 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18408 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18409 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18410 | subdirs="demos samples utils contrib" |
2224580a VZ |
18411 | |
18412 | fi | |
10f2d63a | 18413 | |
698dcdb6 VZ |
18414 | trap '' 1 2 15 |
18415 | cat > confcache <<\EOF | |
10f2d63a VZ |
18416 | # This file is a shell script that caches the results of configure |
18417 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18418 | # scripts and configure runs. It is not useful on other systems. |
18419 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18420 | # |
698dcdb6 VZ |
18421 | # By default, configure uses ./config.cache as the cache file, |
18422 | # creating it if it does not exist already. You can give configure | |
18423 | # the --cache-file=FILE option to use a different cache file; that is | |
18424 | # what configure does when it calls configure scripts in | |
18425 | # subdirectories, so they share the cache. | |
18426 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18427 | # config.status only pays attention to the cache file if you give it the | |
18428 | # --recheck option to rerun configure. | |
10f2d63a | 18429 | # |
698dcdb6 | 18430 | EOF |
10f2d63a VZ |
18431 | # The following way of writing the cache mishandles newlines in values, |
18432 | # but we know of no workaround that is simple, portable, and efficient. | |
18433 | # So, don't put newlines in cache variables' values. | |
18434 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18435 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18436 | (set) 2>&1 | |
18437 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18438 | *ac_space=\ *) | |
18439 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18440 | # turns \\\\ into \\, and sed turns \\ into \). | |
18441 | sed -n \ | |
18442 | -e "s/'/'\\\\''/g" \ | |
18443 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18444 | ;; | |
18445 | *) | |
18446 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18447 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18448 | ;; | |
18449 | esac >> confcache | |
18450 | if cmp -s $cache_file confcache; then | |
18451 | : | |
18452 | else | |
10f2d63a | 18453 | if test -w $cache_file; then |
698dcdb6 VZ |
18454 | echo "updating cache $cache_file" |
18455 | cat confcache > $cache_file | |
10f2d63a VZ |
18456 | else |
18457 | echo "not updating unwritable cache $cache_file" | |
18458 | fi | |
18459 | fi | |
18460 | rm -f confcache | |
18461 | ||
698dcdb6 VZ |
18462 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18463 | ||
10f2d63a VZ |
18464 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18465 | # Let make expand exec_prefix. | |
18466 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18467 | ||
698dcdb6 VZ |
18468 | # Any assignment to VPATH causes Sun make to only execute |
18469 | # the first set of double-colon rules, so remove it if not needed. | |
18470 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18471 | if test "x$srcdir" = x.; then |
698dcdb6 | 18472 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18473 | fi |
18474 | ||
698dcdb6 VZ |
18475 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18476 | ||
10f2d63a VZ |
18477 | DEFS=-DHAVE_CONFIG_H |
18478 | ||
698dcdb6 | 18479 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18480 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18481 | |
18482 | echo creating $CONFIG_STATUS | |
18483 | rm -f $CONFIG_STATUS | |
18484 | cat > $CONFIG_STATUS <<EOF | |
18485 | #! /bin/sh | |
10f2d63a VZ |
18486 | # Generated automatically by configure. |
18487 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18488 | # This directory was configured as follows, |
18489 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18490 | # | |
18491 | # $0 $ac_configure_args | |
18492 | # | |
10f2d63a | 18493 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18494 | # configure, is in ./config.log if it exists. |
1e487827 | 18495 | |
698dcdb6 VZ |
18496 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18497 | for ac_option | |
10f2d63a | 18498 | do |
698dcdb6 | 18499 | case "\$ac_option" in |
10f2d63a | 18500 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18501 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18502 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18503 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18504 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18505 | exit 0 ;; | |
18506 | -help | --help | --hel | --he | --h) | |
18507 | echo "\$ac_cs_usage"; exit 0 ;; | |
18508 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18509 | esac |
18510 | done | |
18511 | ||
698dcdb6 VZ |
18512 | ac_given_srcdir=$srcdir |
18513 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18514 | |
698dcdb6 VZ |
18515 | trap 'rm -fr `echo " |
18516 | wx-config | |
18517 | src/make.env | |
18518 | src/makeprog.env | |
18519 | src/makelib.env | |
18520 | Makefile | |
18521 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18522 | EOF |
698dcdb6 | 18523 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18524 | |
698dcdb6 VZ |
18525 | # Protect against being on the right side of a sed subst in config.status. |
18526 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18527 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18528 | $ac_vpsub | |
18529 | $extrasub | |
18530 | s%@SHELL@%$SHELL%g | |
18531 | s%@CFLAGS@%$CFLAGS%g | |
18532 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18533 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18534 | s%@FFLAGS@%$FFLAGS%g | |
18535 | s%@DEFS@%$DEFS%g | |
18536 | s%@LDFLAGS@%$LDFLAGS%g | |
18537 | s%@LIBS@%$LIBS%g | |
18538 | s%@exec_prefix@%$exec_prefix%g | |
18539 | s%@prefix@%$prefix%g | |
18540 | s%@program_transform_name@%$program_transform_name%g | |
18541 | s%@bindir@%$bindir%g | |
18542 | s%@sbindir@%$sbindir%g | |
18543 | s%@libexecdir@%$libexecdir%g | |
18544 | s%@datadir@%$datadir%g | |
18545 | s%@sysconfdir@%$sysconfdir%g | |
18546 | s%@sharedstatedir@%$sharedstatedir%g | |
18547 | s%@localstatedir@%$localstatedir%g | |
18548 | s%@libdir@%$libdir%g | |
18549 | s%@includedir@%$includedir%g | |
18550 | s%@oldincludedir@%$oldincludedir%g | |
18551 | s%@infodir@%$infodir%g | |
18552 | s%@mandir@%$mandir%g | |
18553 | s%@host@%$host%g | |
18554 | s%@host_alias@%$host_alias%g | |
18555 | s%@host_cpu@%$host_cpu%g | |
18556 | s%@host_vendor@%$host_vendor%g | |
18557 | s%@host_os@%$host_os%g | |
18558 | s%@target@%$target%g | |
18559 | s%@target_alias@%$target_alias%g | |
18560 | s%@target_cpu@%$target_cpu%g | |
18561 | s%@target_vendor@%$target_vendor%g | |
18562 | s%@target_os@%$target_os%g | |
18563 | s%@build@%$build%g | |
18564 | s%@build_alias@%$build_alias%g | |
18565 | s%@build_cpu@%$build_cpu%g | |
18566 | s%@build_vendor@%$build_vendor%g | |
18567 | s%@build_os@%$build_os%g | |
18568 | s%@CC@%$CC%g | |
18569 | s%@CPP@%$CPP%g | |
18570 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18571 | s%@RANLIB@%$RANLIB%g |
18572 | s%@AR@%$AR%g | |
18573 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18574 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18575 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18576 | s%@STRIP@%$STRIP%g | |
18577 | s%@YACC@%$YACC%g | |
18578 | s%@LEX@%$LEX%g | |
18579 | s%@LEXLIB@%$LEXLIB%g | |
18580 | s%@LN_S@%$LN_S%g | |
18581 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18582 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18583 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18584 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18585 | s%@X_CFLAGS@%$X_CFLAGS%g |
18586 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18587 | s%@X_LIBS@%$X_LIBS%g | |
18588 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18589 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18590 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18591 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18592 | s%@LEX_STEM@%$LEX_STEM%g |
18593 | s%@PATH_IFS@%$PATH_IFS%g | |
18594 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18595 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18596 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18597 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18598 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
698dcdb6 VZ |
18599 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18600 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18601 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18602 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18603 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18604 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18605 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18606 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18607 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18608 | s%@WX_ALL@%$WX_ALL%g |
18609 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18610 | s%@SHARED_LD@%$SHARED_LD%g | |
18611 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18612 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18613 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18614 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18615 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18616 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18617 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18618 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18619 | s%@USE_GUI@%$USE_GUI%g | |
18620 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18621 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18622 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18623 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18624 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18625 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18626 | s%@cross_compiling@%$cross_compiling%g | |
18627 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18628 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
698dcdb6 VZ |
18629 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18630 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18631 | s%@GUIDIST@%$GUIDIST%g |
18632 | s%@PORT_FILES@%$PORT_FILES%g | |
18633 | s%@DISTDIR@%$DISTDIR%g | |
18634 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18635 | s%@RPM_FILES@%$RPM_FILES%g | |
698dcdb6 | 18636 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
698dcdb6 VZ |
18637 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g |
18638 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18639 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18640 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18641 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 | 18642 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 18643 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 18644 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 18645 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
18646 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18647 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 18648 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
18649 | s%@DLLTOOL@%$DLLTOOL%g |
18650 | s%@AS@%$AS%g | |
18651 | s%@NM@%$NM%g | |
18652 | s%@LD@%$LD%g | |
18653 | s%@MAKEINFO@%$MAKEINFO%g | |
18654 | s%@SET_MAKE@%$SET_MAKE%g | |
18655 | s%@subdirs@%$subdirs%g | |
1e487827 | 18656 | |
1e487827 | 18657 | CEOF |
1e487827 VS |
18658 | EOF |
18659 | ||
698dcdb6 VZ |
18660 | cat >> $CONFIG_STATUS <<\EOF |
18661 | ||
18662 | # Split the substitutions into bite-sized pieces for seds with | |
18663 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18664 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18665 | ac_file=1 # Number of current file. | |
18666 | ac_beg=1 # First line for current file. | |
18667 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18668 | ac_more_lines=: | |
18669 | ac_sed_cmds="" | |
18670 | while $ac_more_lines; do | |
18671 | if test $ac_beg -gt 1; then | |
18672 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18673 | else | |
18674 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18675 | fi | |
18676 | if test ! -s conftest.s$ac_file; then | |
18677 | ac_more_lines=false | |
18678 | rm -f conftest.s$ac_file | |
18679 | else | |
18680 | if test -z "$ac_sed_cmds"; then | |
18681 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18682 | else |
698dcdb6 | 18683 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18684 | fi |
698dcdb6 VZ |
18685 | ac_file=`expr $ac_file + 1` |
18686 | ac_beg=$ac_end | |
18687 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18688 | fi |
698dcdb6 VZ |
18689 | done |
18690 | if test -z "$ac_sed_cmds"; then | |
18691 | ac_sed_cmds=cat | |
18692 | fi | |
18693 | EOF | |
10f2d63a | 18694 | |
698dcdb6 VZ |
18695 | cat >> $CONFIG_STATUS <<EOF |
18696 | ||
18697 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18698 | src/make.env | |
18699 | src/makeprog.env | |
18700 | src/makelib.env | |
18701 | Makefile | |
18702 | "} | |
10f2d63a | 18703 | EOF |
698dcdb6 VZ |
18704 | cat >> $CONFIG_STATUS <<\EOF |
18705 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18706 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18707 | case "$ac_file" in |
18708 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18709 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18710 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18711 | esac |
18712 | ||
698dcdb6 | 18713 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18714 | |
698dcdb6 VZ |
18715 | # Remove last slash and all that follows it. Not all systems have dirname. |
18716 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18717 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18718 | # The file is in a subdirectory. | |
18719 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18720 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18721 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18722 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18723 | else |
18724 | ac_dir_suffix= ac_dots= | |
18725 | fi | |
18726 | ||
698dcdb6 VZ |
18727 | case "$ac_given_srcdir" in |
18728 | .) srcdir=. | |
18729 | if test -z "$ac_dots"; then top_srcdir=. | |
18730 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18731 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18732 | *) # Relative path. |
698dcdb6 VZ |
18733 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18734 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18735 | esac |
18736 | ||
698dcdb6 VZ |
18737 | case "$ac_given_INSTALL" in |
18738 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18739 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18740 | esac |
18741 | ||
698dcdb6 VZ |
18742 | echo creating "$ac_file" |
18743 | rm -f "$ac_file" | |
18744 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18745 | case "$ac_file" in | |
18746 | *Makefile*) ac_comsub="1i\\ | |
18747 | # $configure_input" ;; | |
18748 | *) ac_comsub= ;; | |
18749 | esac | |
10f2d63a | 18750 | |
698dcdb6 VZ |
18751 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18752 | sed -e "$ac_comsub | |
18753 | s%@configure_input@%$configure_input%g | |
18754 | s%@srcdir@%$srcdir%g | |
18755 | s%@top_srcdir@%$top_srcdir%g | |
18756 | s%@INSTALL@%$INSTALL%g | |
18757 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18758 | fi; done | |
18759 | rm -f conftest.s* | |
10f2d63a VZ |
18760 | |
18761 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18762 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18763 | # | |
18764 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18765 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18766 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18767 | ac_dC='\3' | |
18768 | ac_dD='%g' | |
18769 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18770 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18771 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18772 | ac_uC=' ' |
698dcdb6 VZ |
18773 | ac_uD='\4%g' |
18774 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18775 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18776 | ac_eB='$%\1#\2define\3' | |
18777 | ac_eC=' ' | |
18778 | ac_eD='%g' | |
10f2d63a | 18779 | |
698dcdb6 VZ |
18780 | if test "${CONFIG_HEADERS+set}" != set; then |
18781 | EOF | |
18782 | cat >> $CONFIG_STATUS <<EOF | |
18783 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18784 | EOF | |
18785 | cat >> $CONFIG_STATUS <<\EOF | |
18786 | fi | |
18787 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18788 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18789 | case "$ac_file" in |
18790 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18791 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18792 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18793 | esac |
18794 | ||
698dcdb6 VZ |
18795 | echo creating $ac_file |
18796 | ||
18797 | rm -f conftest.frag conftest.in conftest.out | |
18798 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18799 | cat $ac_file_inputs > conftest.in | |
18800 | ||
18801 | EOF | |
18802 | ||
18803 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18804 | # the proper values into config.h.in to produce config.h. And first: | |
18805 | # Protect against being on the right side of a sed subst in config.status. | |
18806 | # Protect against being in an unquoted here document in config.status. | |
18807 | rm -f conftest.vals | |
18808 | cat > conftest.hdr <<\EOF | |
18809 | s/[\\&%]/\\&/g | |
18810 | s%[\\$`]%\\&%g | |
18811 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18812 | s%ac_d%ac_u%gp | |
18813 | s%ac_u%ac_e%gp | |
18814 | EOF | |
18815 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18816 | rm -f conftest.hdr | |
10f2d63a VZ |
18817 | |
18818 | # This sed command replaces #undef with comments. This is necessary, for | |
18819 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18820 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18821 | cat >> conftest.vals <<\EOF |
18822 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18823 | EOF |
18824 | ||
698dcdb6 VZ |
18825 | # Break up conftest.vals because some shells have a limit on |
18826 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18827 | |
18828 | rm -f conftest.tail | |
698dcdb6 | 18829 | while : |
10f2d63a | 18830 | do |
698dcdb6 VZ |
18831 | ac_lines=`grep -c . conftest.vals` |
18832 | # grep -c gives empty output for an empty file on some AIX systems. | |
18833 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18834 | # Write a limited-size here document to conftest.frag. | |
18835 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18836 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18837 | echo 'CEOF |
698dcdb6 VZ |
18838 | sed -f conftest.frag conftest.in > conftest.out |
18839 | rm -f conftest.in | |
18840 | mv conftest.out conftest.in | |
18841 | ' >> $CONFIG_STATUS | |
18842 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18843 | rm -f conftest.vals | |
18844 | mv conftest.tail conftest.vals | |
10f2d63a | 18845 | done |
698dcdb6 VZ |
18846 | rm -f conftest.vals |
18847 | ||
18848 | cat >> $CONFIG_STATUS <<\EOF | |
18849 | rm -f conftest.frag conftest.h | |
18850 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18851 | cat conftest.in >> conftest.h | |
18852 | rm -f conftest.in | |
18853 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18854 | echo "$ac_file is unchanged" | |
18855 | rm -f conftest.h | |
10f2d63a | 18856 | else |
698dcdb6 VZ |
18857 | # Remove last slash and all that follows it. Not all systems have dirname. |
18858 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18859 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18860 | # The file is in a subdirectory. |
18861 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18862 | fi |
698dcdb6 VZ |
18863 | rm -f $ac_file |
18864 | mv conftest.h $ac_file | |
10f2d63a | 18865 | fi |
698dcdb6 VZ |
18866 | fi; done |
18867 | ||
10f2d63a | 18868 | EOF |
698dcdb6 | 18869 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18870 | |
3a922bb4 | 18871 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18872 | LN_S="${LN_S}" |
18873 | ||
18874 | ||
18875 | EOF | |
18876 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18877 | |
652d930d | 18878 | if test ! -h wx-config; then |
991a5759 | 18879 | chmod +x wx-config |
3a922bb4 RL |
18880 | mv wx-config wx${TOOLCHAIN_NAME}-config |
18881 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 18882 | fi |
665bbe97 | 18883 | |
00cf1208 RR |
18884 | if test ! -d lib; then |
18885 | mkdir lib | |
18886 | fi | |
18887 | if test ! -d lib/wx; then | |
18888 | mkdir lib/wx | |
18889 | fi | |
18890 | if test ! -d lib/wx/include; then | |
18891 | mkdir lib/wx/include | |
18892 | fi | |
3a922bb4 RL |
18893 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
18894 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 18895 | fi |
3a922bb4 RL |
18896 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
18897 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
18898 | fi |
18899 | if test -f setup.h; then | |
3a922bb4 | 18900 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 18901 | fi |
698dcdb6 VZ |
18902 | |
18903 | exit 0 | |
10f2d63a VZ |
18904 | EOF |
18905 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18906 | rm -fr confdefs* $ac_clean_files |
18907 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18908 | |
2224580a VZ |
18909 | if test "$no_recursion" != yes; then |
18910 | ||
18911 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18912 | ac_sub_configure_args= | |
18913 | ac_prev= | |
18914 | for ac_arg in $ac_configure_args; do | |
18915 | if test -n "$ac_prev"; then | |
18916 | ac_prev= | |
18917 | continue | |
18918 | fi | |
698dcdb6 | 18919 | case "$ac_arg" in |
2224580a VZ |
18920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18922 | ac_prev=cache_file ;; | |
18923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18925 | ;; |
18926 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18927 | ac_prev=srcdir ;; | |
18928 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18929 | ;; | |
18930 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18931 | esac | |
18932 | done | |
18933 | ||
698dcdb6 | 18934 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18935 | |
18936 | # Do not complain, so a configure script can configure whichever | |
18937 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18938 | if test ! -d $srcdir/$ac_config_dir; then |
18939 | continue | |
18940 | fi | |
18941 | ||
18942 | echo configuring in $ac_config_dir | |
2224580a | 18943 | |
698dcdb6 | 18944 | case "$srcdir" in |
2224580a VZ |
18945 | .) ;; |
18946 | *) | |
698dcdb6 VZ |
18947 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18948 | else | |
18949 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18950 | fi | |
18951 | ;; | |
2224580a VZ |
18952 | esac |
18953 | ||
18954 | ac_popdir=`pwd` | |
698dcdb6 | 18955 | cd $ac_config_dir |
2224580a | 18956 | |
698dcdb6 VZ |
18957 | # A "../" for each directory in /$ac_config_dir. |
18958 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18959 | |
698dcdb6 | 18960 | case "$srcdir" in |
2224580a VZ |
18961 | .) # No --srcdir option. We are building in place. |
18962 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18963 | /*) # Absolute path. |
18964 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18965 | *) # Relative path. |
698dcdb6 | 18966 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18967 | esac |
18968 | ||
18969 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18970 | if test -f $ac_sub_srcdir/configure; then |
18971 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18972 | elif test -f $ac_sub_srcdir/configure.in; then |
18973 | ac_sub_configure=$ac_configure | |
18974 | else | |
698dcdb6 | 18975 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18976 | ac_sub_configure= |
18977 | fi | |
18978 | ||
18979 | # The recursion is here. | |
18980 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18981 | |
2224580a | 18982 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18983 | case "$cache_file" in |
18984 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18985 | *) # Relative path. |
698dcdb6 | 18986 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18987 | esac |
698dcdb6 VZ |
18988 | case "$ac_given_INSTALL" in |
18989 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18990 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18991 | esac | |
2224580a | 18992 | |
698dcdb6 | 18993 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18994 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18995 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18996 | then : | |
18997 | else | |
18998 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18999 | fi | |
2224580a VZ |
19000 | fi |
19001 | ||
19002 | cd $ac_popdir | |
19003 | done | |
19004 | fi | |
19005 | ||
698dcdb6 | 19006 |